/* Enterprise Modular Wholesale SaaS Design System Tokens & Components */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  /* Color Palette - HSL Tailored Dark Enterprise Theme */
  --bg-dark: hsl(222, 24%, 9%);
  --bg-surface: hsl(222, 20%, 13%);
  --bg-surface-elevated: hsl(222, 18%, 18%);
  --bg-glass: rgba(22, 28, 38, 0.85);

  --border-subtle: hsl(220, 16%, 22%);
  --border-active: hsl(217, 91%, 60%);

  --text-primary: hsl(210, 40%, 98%);
  --text-secondary: hsl(215, 20%, 65%);
  --text-muted: hsl(215, 16%, 45%);

  --brand-primary: hsl(217, 91%, 60%);
  --brand-gradient: linear-gradient(135deg, hsl(217, 91%, 60%) 0%, hsl(245, 82%, 67%) 100%);
  --brand-hover: hsl(217, 91%, 68%);

  --semantic-success: hsl(152, 69%, 41%);
  --semantic-warning: hsl(38, 92%, 50%);
  --semantic-error: hsl(354, 70%, 54%);
  --semantic-info: hsl(199, 89%, 48%);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 25px rgba(59, 130, 246, 0.25);

  --touch-target-min: 48px;
  --font-ui: 'Manrope', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

[data-theme="light"] {
  --bg-dark: hsl(210, 20%, 98%);
  --bg-surface: hsl(0, 0%, 100%);
  --bg-surface-elevated: hsl(210, 16%, 93%);
  --bg-glass: rgba(255, 255, 255, 0.9);
  --border-subtle: hsl(214, 20%, 88%);
  --text-primary: hsl(222, 47%, 11%);
  --text-secondary: hsl(215, 16%, 35%);
  --text-muted: hsl(215, 12%, 55%);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-ui);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  overflow-x: hidden;
}

/* App Layout Grid */
#app-shell {
  display: flex;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

/* Login Screen Overlay */
.login-screen-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.15), transparent 50%), var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.login-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 440px;
  padding: 2.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.login-brand-header {
  text-align: center;
  margin-bottom: 0.5rem;
}

.login-logo {
  width: 48px;
  height: 48px;
  background: var(--brand-gradient);
  border-radius: var(--radius-md);
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  box-shadow: var(--shadow-glow);
}

.login-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
}

.login-subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-dark);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: var(--font-ui);
}

.form-input:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.quick-login-pills {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.quick-pill {
  flex: 1;
  padding: 0.4rem;
  font-size: 0.75rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: center;
  font-weight: 500;
}

.quick-pill:hover {
  background: var(--brand-primary);
  color: white;
  border-color: var(--brand-primary);
}

/* Sidebar Navigation */
.sidebar {
  width: 260px;
  background: var(--bg-surface);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 100;
}

.sidebar-account {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding: 14px 16px;
  border-top: 1px solid var(--border-subtle);
}

.sidebar-account span,
.sidebar-account strong {
  display: block;
}

.sidebar-account span {
  margin-bottom: 2px;
  color: var(--text-muted);
  font-size: 10px;
  text-transform: uppercase;
}

.sidebar-account strong {
  max-width: 140px;
  overflow: hidden;
  color: var(--text-primary);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-signout {
  padding: 7px 9px;
  border: 1px solid var(--border-subtle);
  border-radius: 7px;
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
  font: inherit;
  font-size: 11px;
}

.brand-header {
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.brand-logo {
  width: 36px;
  height: 36px;
  background: var(--brand-gradient);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: white;
  box-shadow: var(--shadow-glow);
}

.brand-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.tenant-badge {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
}

.nav-menu {
  padding: 1rem 0.75rem;
  flex: 1;
  overflow-y: auto;
}

.nav-section-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  padding: 0.5rem 0.75rem;
  font-weight: 600;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.85rem;
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  cursor: pointer;
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
  min-height: 44px;
}

.nav-item:hover {
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
}

.nav-item.active {
  background: var(--brand-gradient);
  color: white;
  font-weight: 600;
  box-shadow: var(--shadow-glow);
}

.nav-item svg {
  width: 20px;
  height: 20px;
}

/* Main Content Surface */
.main-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.top-bar {
  height: 64px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
}

.search-input-group {
  position: relative;
  width: 320px;
}

.search-input {
  width: 100%;
  padding: 0.5rem 1rem 0.5rem 2.5rem;
  background: var(--bg-dark);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.875rem;
}

.search-input:focus {
  outline: none;
  border-color: var(--brand-primary);
}

.search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  width: 16px;
  height: 16px;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.role-pill {
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(59, 130, 246, 0.15);
  color: var(--brand-primary);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.logout-btn {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.logout-btn:hover {
  background: rgba(239, 68, 68, 0.15);
  color: var(--semantic-error);
  border-color: rgba(239, 68, 68, 0.3);
}

.content-body {
  flex: 1;
  padding: 1.75rem;
  overflow-y: auto;
  background: var(--bg-dark);
}

/* Cards & Statistics */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  box-shadow: var(--shadow-subtle);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  font-weight: 600;
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-mono);
}

/* Exception Alert Cards */
.exception-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.exception-card {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 1rem;
  border-left: 4px solid var(--semantic-warning);
  background: rgba(245, 158, 11, 0.08);
}

.exception-card.info {
  border-left-color: var(--semantic-info);
  background: rgba(14, 165, 233, 0.08);
}

/* Data Tables */
.data-table-wrapper {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
}

.data-table-header {
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.data-table th {
  background: var(--bg-surface-elevated);
  padding: 0.85rem 1.25rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  border-bottom: 1px solid var(--border-subtle);
}

.data-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.9rem;
  color: var(--text-primary);
}

.data-table tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.numeric-cell {
  font-family: var(--font-mono);
  font-weight: 500;
}

/* Status Badges */
.status-badge {
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: capitalize;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.status-badge.active, .status-badge.completed, .status-badge.delivered, .status-badge.paid {
  background: rgba(16, 185, 129, 0.15);
  color: var(--semantic-success);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-badge.pending, .status-badge.submitted, .status-badge.in_transit {
  background: rgba(245, 158, 11, 0.15);
  color: var(--semantic-warning);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-badge.draft {
  background: rgba(148, 163, 184, 0.15);
  color: var(--text-secondary);
  border: 1px solid rgba(148, 163, 184, 0.3);
}

/* Touch Button */
.touch-btn {
  min-height: var(--touch-target-min);
  padding: 0 1.25rem;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  border: none;
  background: var(--brand-gradient);
  color: white;
  box-shadow: var(--shadow-glow);
  transition: transform 0.1s ease, filter 0.2s ease;
}

.touch-btn:active {
  transform: scale(0.98);
}

.touch-btn.secondary {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  box-shadow: none;
}

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0s linear 0.2s;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.module-error {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border: 1px solid #f2c7c7;
  border-radius: 12px;
  background: #fff8f7;
  color: #713c3c;
}

.module-error > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: #b42318;
  color: #fff;
  font-weight: 800;
}

.module-error h2 {
  margin: 0 0 3px;
  color: #4f2323;
  font-size: 16px;
}

.module-error p {
  margin: 0;
  font-size: 13px;
}

@media (max-width: 640px) {
  .module-error {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .module-error .touch-btn {
    grid-column: 1 / -1;
    width: 100%;
  }
}

body.registration-mode .modal-overlay,
body.registration-mode #public-site,
body.registration-mode #app-shell {
  display: none !important;
}

.modal-content {
  display: flex;
  max-height: calc(100dvh - 32px);
  flex-direction: column;
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 600px;
  padding: 1.75rem;
  box-shadow: var(--shadow-subtle);
}

.modal-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  margin: -0.65rem -0.65rem 0.45rem;
  padding: 0.35rem 0.45rem;
  background: var(--bg-surface);
}

.modal-close {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
}

.modal-close:hover,
.modal-close:focus-visible {
  border-color: var(--border-subtle);
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  outline: none;
}

#modal-content-area {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0.15rem;
}

.modal-content.print-preview-panel {
  width: min(1100px, calc(100% - 24px));
  max-width: 1100px;
  height: calc(100dvh - 24px);
}

.print-preview-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.25rem 0 0.75rem;
}

.print-preview-toolbar h2 {
  font-size: 1rem;
}

.print-preview-toolbar p {
  margin-top: 0.15rem;
  color: var(--text-muted);
  font-size: 0.68rem;
}

.print-preview-frame {
  width: 100%;
  height: calc(100dvh - 150px);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  background: #fff;
}

@media (max-width: 640px) {
  .print-preview-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .print-preview-toolbar .table-actions {
    width: 100%;
  }

  .print-preview-toolbar .touch-btn {
    flex: 1;
  }
}

@media (max-width: 768px) {
  .sidebar {
    width: 70px;
  }
  .brand-title, .tenant-badge, .nav-item span, .nav-section-title {
    display: none;
  }
  .search-input-group {
    width: 180px;
  }
}

/* NEW ADDITIONS */
.notification-bell {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.notification-bell svg {
  width: 24px;
  height: 24px;
}
.notification-bell:hover {
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
}

.notification-dropdown {
  position: absolute;
  right: 0;
  top: 40px;
  width: 320px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-subtle);
  z-index: 1000;
  max-height: 400px;
  overflow-y: auto;
}
.notification-item {
  padding: 1rem;
  border-bottom: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: background 0.2s;
}
.notification-item:hover {
  background: var(--bg-surface);
}

.tab-bar {
  display: flex;
  gap: 1rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.5rem;
}
.tab-item {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}
.tab-item:hover {
  color: var(--text-primary);
}
.tab-item.active {
  color: var(--brand-primary);
  border-bottom-color: var(--brand-primary);
}

.form-row {
  display: flex;
  gap: 1rem;
  width: 100%;
}
.form-row > * {
  flex: 1;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.status-badge.inactive, .status-badge.cancelled {
  background: rgba(239, 68, 68, 0.15);
  color: var(--semantic-error);
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.status-badge.overdue {
  background: rgba(245, 158, 11, 0.15);
  color: var(--semantic-warning);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.registration-page {
  width: 100%;
  max-width: 480px;
}
.filter-bar {
  display: flex;
  gap: 1rem;
  align-items: center;
  background: var(--bg-surface);
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

/* Multi-Tab Drawer Styles */
.modal-content.drawer-panel {
  max-width: 760px;
  width: 95%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 1.75rem;
}

.drawer-tab-nav {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 1.5rem;
  overflow-x: auto;
}

.drawer-tab-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.65rem 1rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: all 0.2s;
}

.drawer-tab-btn:hover {
  color: var(--text-primary);
}

.drawer-tab-btn.active {
  color: var(--brand-primary);
  border-bottom-color: var(--brand-primary);
}

.timeline-step {
  display: flex;
  gap: 1rem;
  padding-bottom: 1rem;
  position: relative;
}

.timeline-step:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 24px;
  bottom: 0;
  width: 2px;
  background: var(--border-subtle);
}

.timeline-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-surface-elevated);
  border: 2px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 1;
}

.timeline-step.completed .timeline-icon {
  background: var(--semantic-success);
  border-color: var(--semantic-success);
  color: white;
}

.timeline-step.active .timeline-icon {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: white;
}

/* 2026 operations workspace */
:root,
[data-theme="light"] {
  --bg-dark: #f4f6f8;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #f7f9fb;
  --border-subtle: #dde3e9;
  --border-active: #1769e0;
  --text-primary: #17212b;
  --text-secondary: #52606d;
  --text-muted: #718096;
  --brand-primary: #1769e0;
  --brand-hover: #0f57c4;
  --semantic-success: #14804a;
  --semantic-warning: #b65c00;
  --semantic-error: #c93737;
  --semantic-info: #1769e0;
  --radius-sm: 5px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --shadow-subtle: 0 8px 24px rgba(24, 39, 58, 0.08);
  --shadow-glow: none;
}

body {
  background: var(--bg-dark);
  color: var(--text-primary);
  font-size: 14px;
}

button,
input,
select,
textarea {
  font: inherit;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid rgba(23, 105, 224, 0.22);
  outline-offset: 2px;
}

.sidebar {
  width: 238px;
  flex: 0 0 238px;
  background: #fff;
}

.brand-header {
  min-height: 60px;
  padding: 10px 16px;
  gap: 10px;
}

.brand-logo,
.login-logo {
  background: #172f4d;
  border-radius: 9px 9px 9px 3px;
  box-shadow: none;
}

.brand-title {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.tenant-badge {
  font-size: 11px;
}

.nav-menu {
  padding: 8px;
}

.nav-group + .nav-group {
  margin-top: 8px;
}

.nav-section-title {
  margin: 0;
  padding: 8px 10px 4px;
  color: #7c8795;
  font-size: 10px;
  letter-spacing: 0.09em;
}

.nav-item {
  width: 100%;
  min-height: 36px;
  margin: 1px 0;
  padding: 7px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #425466;
  font-size: 13px;
  text-align: left;
  position: relative;
}

.nav-item:hover {
  color: #17212b;
  background: #f1f5f9;
  transform: none;
}

.nav-item.active {
  color: #0f57c4;
  background: #eaf2fd;
  font-weight: 650;
}

.nav-item.active::before {
  content: "";
  position: absolute;
  inset: 7px auto 7px -8px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--brand-primary);
}

.nav-icon {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
}

.main-wrapper {
  min-width: 0;
}

.top-bar {
  min-height: 60px;
  height: 60px;
  padding: 0 22px;
  gap: 16px;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
}

.page-context {
  display: none;
  min-width: 0;
}

.page-context span {
  color: var(--text-muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.page-context strong {
  display: block;
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-nav-toggle {
  display: none;
  width: 38px;
  height: 38px;
  padding: 10px;
  border: 1px solid var(--border-subtle);
  border-radius: 7px;
  background: #fff;
}

.mobile-nav-toggle span {
  display: block;
  height: 2px;
  margin: 3px 0;
  border-radius: 2px;
  background: #344054;
}

.search-input-group {
  width: min(440px, 42vw);
}

.search-input {
  height: 36px;
  background: #f4f6f8;
  border-color: transparent;
  font-size: 13px;
}

.top-bar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.xero-header-status {
  height: 32px;
  padding: 0 11px;
  border: 1px solid #9ee7de;
  border-radius: 16px;
  background: #ecfdf9;
  color: #087f73;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.content-body {
  width: 100%;
  max-width: 1560px;
  margin: 0 auto;
  padding: 22px 24px 36px;
  overflow-x: hidden;
}

.workspace-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.workspace-eyebrow {
  margin-bottom: 2px;
  color: var(--brand-primary) !important;
  font-size: 10px !important;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.workspace-heading h1 {
  margin: 0;
  font-size: clamp(21px, 2vw, 26px);
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.workspace-heading p {
  max-width: 650px;
  margin-top: 4px;
  color: var(--text-secondary);
  font-size: 13px;
}

.workspace-actions,
.integration-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.touch-btn {
  min-height: 36px;
  padding: 8px 13px;
  border-radius: 6px;
  font-size: 13px;
  box-shadow: none;
}

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

.operations-kpi-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 16px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  border-radius: 9px;
  background: #fff;
}

.operation-kpi {
  min-width: 0;
  min-height: 78px;
  padding: 13px 15px;
  border: 0;
  border-right: 1px solid var(--border-subtle);
  background: transparent;
  color: inherit;
  text-align: left;
}

button.operation-kpi {
  cursor: pointer;
}

button.operation-kpi:hover {
  background: #f8fafc;
}

.operation-kpi:last-child {
  border-right: 0;
}

.operation-kpi span {
  display: block;
  overflow: hidden;
  color: var(--text-secondary);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.operation-kpi strong {
  display: block;
  margin-top: 7px;
  overflow: hidden;
  font-size: 20px;
  line-height: 1;
  letter-spacing: -0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.operations-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.8fr);
  gap: 16px;
}

.operations-panel,
.integration-primary-card,
.system-boundary-card {
  min-width: 0;
  border: 1px solid var(--border-subtle);
  border-radius: 9px;
  background: #fff;
}

.panel-heading {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 15px;
  border-bottom: 1px solid var(--border-subtle);
}

.panel-heading h2,
.integration-primary-card h2,
.system-boundary-card h2 {
  font-size: 14px;
  letter-spacing: -0.01em;
}

.panel-heading p,
.integration-primary-card p,
.system-boundary-card p,
.channel-card p {
  margin-top: 2px;
  color: var(--text-secondary);
  font-size: 11px;
}

.panel-count {
  min-width: 26px;
  padding: 3px 7px;
  border-radius: 12px;
  background: #eef2f6;
  color: #52606d;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.exception-row,
.work-queue-row {
  display: grid;
  width: 100%;
  align-items: center;
  border: 0;
  border-bottom: 1px solid #edf1f4;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.exception-row {
  grid-template-columns: 8px minmax(0, 1fr) auto;
  gap: 11px;
  padding: 12px 15px;
}

.exception-row:hover,
.work-queue-row:hover {
  background: #f8fafc;
}

.exception-row:last-child,
.work-queue-row:last-child {
  border-bottom: 0;
}

.exception-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--semantic-info);
}

.exception-row.warning .exception-indicator {
  background: var(--semantic-warning);
}

.exception-row.success .exception-indicator {
  background: var(--semantic-success);
}

.exception-row strong,
.exception-row small {
  display: block;
}

.exception-row strong {
  font-size: 12px;
}

.exception-row small {
  margin-top: 2px;
  overflow: hidden;
  color: var(--text-secondary);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row-action,
.text-action {
  color: var(--brand-primary);
  font-size: 11px;
  font-weight: 700;
}

.work-queue-row {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 12px;
  padding: 10px 15px;
}

.work-queue-row > span {
  font-size: 12px;
}

.work-queue-row > strong {
  grid-row: 1 / 3;
  grid-column: 2;
  font-size: 16px;
}

.work-queue-row > small {
  color: var(--brand-primary);
  font-size: 10px;
}

.commercial-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  border-radius: 9px;
  background: var(--border-subtle);
}

.commercial-strip > div {
  padding: 12px 15px;
  background: #fff;
}

.commercial-strip span,
.commercial-strip strong {
  display: block;
}

.commercial-strip span {
  color: var(--text-secondary);
  font-size: 11px;
}

.commercial-strip strong {
  margin-top: 4px;
  font-size: 15px;
}

.empty-state.compact {
  display: flex;
  min-height: 110px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 12px;
}

.integration-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.75fr);
  gap: 16px;
}

.integration-primary-card,
.system-boundary-card {
  padding: 18px;
}

.integration-card-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}

.integration-mark,
.channel-mark {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 7px;
  font-weight: 800;
}

.integration-mark {
  width: 38px;
  height: 38px;
  font-size: 18px;
}

.xero-mark {
  background: #13b5ea;
  color: #fff;
}

.integration-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
  padding: 12px 0;
  border-block: 1px solid var(--border-subtle);
}

.integration-facts span,
.integration-facts strong {
  display: block;
}

.integration-facts span {
  color: var(--text-secondary);
  font-size: 10px;
}

.integration-facts strong {
  margin-top: 3px;
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.integration-actions p {
  max-width: 420px;
  margin: 0;
}

.connection-pill {
  padding: 5px 9px;
  border-radius: 14px;
  font-size: 11px;
  font-weight: 700;
}

.connection-pill.connected {
  background: #e9f8ef;
  color: var(--semantic-success);
}

.connection-pill.not-connected {
  background: #fff4e5;
  color: #9a4b00;
}

.boundary-row {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

.boundary-row strong,
.boundary-row span {
  display: block;
}

.boundary-row strong {
  font-size: 12px;
}

.boundary-row span {
  margin-top: 3px;
  color: var(--text-secondary);
  font-size: 11px;
}

.integration-section {
  margin-top: 16px;
}

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

.channel-card {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 13px 15px;
  border-right: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.channel-card:nth-child(2n) {
  border-right: 0;
}

.channel-card:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.channel-card h3 {
  font-size: 12px;
}

.channel-mark {
  width: 32px;
  height: 32px;
  background: #edf2f7;
  color: #344054;
}

.text-action {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.data-table-wrapper {
  max-width: 100%;
  overflow-x: auto;
  border-radius: 9px;
}

.data-table {
  min-width: 720px;
}

@media (max-width: 1100px) {
  .operations-kpi-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .operation-kpi:nth-child(3) {
    border-right: 0;
  }

  .operation-kpi:nth-child(-n + 3) {
    border-bottom: 1px solid var(--border-subtle);
  }

  .operations-grid,
  .integration-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  #app-shell {
    overflow: hidden;
  }

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(280px, 86vw);
    flex-basis: auto;
    transform: translateX(-102%);
    box-shadow: 10px 0 30px rgba(24, 39, 58, 0.16);
    transition: transform 180ms ease;
  }

  #app-shell.nav-open .sidebar {
    transform: translateX(0);
  }

  .brand-title,
  .tenant-badge,
  .nav-item span,
  .nav-section-title {
    display: block;
  }

  .mobile-nav-toggle,
  .page-context {
    display: block;
  }

  .search-input-group {
    width: min(320px, 40vw);
  }
}

@media (max-width: 680px) {
  .top-bar {
    padding: 0 12px;
    gap: 8px;
  }

  .search-input-group {
    display: none;
  }

  .xero-header-status,
  .role-pill,
  .user-profile > div,
  .logout-btn {
    display: none;
  }

  .content-body {
    padding: 16px 12px 28px;
  }

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

  .workspace-actions {
    width: 100%;
  }

  .workspace-actions .touch-btn {
    flex: 1;
  }

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

  .operation-kpi,
  .operation-kpi:nth-child(3) {
    border-right: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
  }

  .operation-kpi:nth-child(2n) {
    border-right: 0;
  }

  .operation-kpi:last-child {
    grid-column: 1 / -1;
    border-right: 0;
    border-bottom: 0;
  }

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

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

  .channel-card,
  .channel-card:nth-child(2n),
  .channel-card:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid var(--border-subtle);
  }

  .channel-card:last-child {
    border-bottom: 0;
  }

  .integration-facts {
    grid-template-columns: 1fr;
  }

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

  .modal-content,
  .modal-content.drawer-panel {
    width: calc(100% - 16px);
    max-height: calc(100dvh - 16px);
    padding: 15px;
  }

  .form-row,
  .detail-grid {
    grid-template-columns: 1fr;
    flex-direction: column;
  }
}

@media (max-width: 380px) {
  .notification-bell {
    display: none;
  }

  .operations-kpi-strip,
  .commercial-strip {
    grid-template-columns: 1fr;
  }

  .operation-kpi,
  .operation-kpi:nth-child(2n),
  .operation-kpi:last-child {
    grid-column: auto;
    border-right: 0;
    border-bottom: 1px solid var(--border-subtle);
  }

  .operation-kpi:last-child {
    border-bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Public website */
.public-site {
  width: 100%;
  min-height: 100vh;
  background:
    linear-gradient(rgba(23, 47, 77, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 47, 77, 0.035) 1px, transparent 1px),
    #fff;
  background-size: 32px 32px;
  color: #17212b;
}

.public-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  width: min(1180px, calc(100% - 40px));
  min-height: 64px;
  align-items: center;
  gap: 28px;
  margin: 0 auto;
  border-bottom: 1px solid rgba(221, 227, 233, 0.86);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.public-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #17212b;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.public-brand-mark {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border-radius: 8px 8px 8px 3px;
  background: #172f4d;
  color: #fff;
  font-size: 13px;
}

.public-navigation {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
}

.public-navigation a,
.public-text-button {
  border: 0;
  background: transparent;
  color: #52606d;
  font-size: 12px;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
}

.public-navigation a:hover,
.public-text-button:hover {
  color: #1769e0;
}

.public-header-actions {
  display: flex;
  align-items: center;
  gap: 11px;
}

.public-button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 9px 15px;
  border: 1px solid #1769e0;
  border-radius: 6px;
  background: #1769e0;
  color: #fff;
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}

.public-button:hover {
  border-color: #0f57c4;
  background: #0f57c4;
}

.public-button.small {
  min-height: 34px;
  padding: 7px 12px;
}

.public-button.secondary {
  border-color: #cfd8e3;
  background: #fff;
  color: #344054;
}

.public-button.secondary:hover {
  border-color: #aebbc9;
  background: #f7f9fb;
}

.public-hero {
  display: grid;
  width: min(1180px, calc(100% - 40px));
  grid-template-columns: minmax(380px, 0.86fr) minmax(530px, 1.14fr);
  align-items: center;
  gap: 54px;
  min-height: 620px;
  margin: 0 auto;
  padding: 62px 0;
}

.public-kicker {
  display: block;
  margin-bottom: 10px;
  color: #1769e0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.public-hero h1 {
  max-width: 650px;
  font-size: clamp(34px, 4.1vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.048em;
}

.public-hero-copy > p {
  max-width: 590px;
  margin-top: 18px;
  color: #52606d;
  font-size: 15px;
  line-height: 1.7;
}

.public-hero-actions {
  display: flex;
  gap: 9px;
  margin-top: 24px;
}

.public-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 23px;
}

.public-proof span {
  position: relative;
  padding-left: 13px;
  color: #52606d;
  font-size: 10px;
  font-weight: 650;
}

.public-proof span::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #14804a;
}

.product-preview {
  overflow: hidden;
  border: 1px solid #dbe3eb;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 28px 70px rgba(29, 52, 79, 0.16);
  transform: perspective(1100px) rotateY(-2deg) rotateX(1deg);
}

.preview-toolbar {
  display: grid;
  grid-template-columns: 28px 1fr 28px;
  align-items: center;
  gap: 13px;
  min-height: 49px;
  padding: 0 13px;
  border-bottom: 1px solid #e3e9ef;
}

.preview-brand,
.preview-user {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 7px;
  background: #172f4d;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
}

.preview-user {
  border-radius: 50%;
  background: #e8eef5;
  color: #52606d;
}

.preview-search {
  padding: 7px 10px;
  border-radius: 5px;
  background: #f4f6f8;
  color: #8994a3;
  font-size: 9px;
}

.preview-workspace {
  display: grid;
  grid-template-columns: 126px minmax(0, 1fr);
  min-height: 380px;
}

.preview-nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 15px 9px;
  border-right: 1px solid #e3e9ef;
  background: #fbfcfd;
}

.preview-nav span,
.preview-nav strong {
  padding: 7px 9px;
  border-radius: 5px;
  color: #667382;
  font-size: 9px;
}

.preview-nav strong {
  background: #eaf2fd;
  color: #1769e0;
}

.preview-content {
  min-width: 0;
  padding: 19px;
  background: #f5f7f9;
}

.preview-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.preview-title strong {
  font-size: 13px;
}

.preview-title span {
  color: #718096;
  font-size: 9px;
}

.preview-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid #e0e6ec;
  border-radius: 7px;
  background: #fff;
}

.preview-kpis div {
  min-width: 0;
  padding: 12px 9px;
  border-right: 1px solid #e0e6ec;
}

.preview-kpis div:last-child {
  border-right: 0;
}

.preview-kpis span,
.preview-kpis strong {
  display: block;
}

.preview-kpis span {
  overflow: hidden;
  color: #718096;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-kpis strong {
  margin-top: 5px;
  font-size: 17px;
}

.preview-panels {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 10px;
  margin-top: 11px;
}

.preview-panels > div {
  min-width: 0;
  padding: 13px;
  border: 1px solid #e0e6ec;
  border-radius: 7px;
  background: #fff;
}

.preview-panels > div > strong {
  display: block;
  margin-bottom: 8px;
  font-size: 10px;
}

.preview-panels p {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 7px 0;
  border-top: 1px solid #edf1f4;
  color: #667382;
  font-size: 8px;
}

.preview-panels p span {
  min-width: 0;
  flex: 1;
}

.preview-panels i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.preview-panels i.amber { background: #d97706; }
.preview-panels i.blue { background: #1769e0; }
.preview-panels i.green { background: #14804a; }

.public-section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 76px 0;
  border-top: 1px solid #e1e7ed;
}

.section-intro {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(320px, 1.2fr);
  align-items: end;
  gap: 36px;
  margin-bottom: 30px;
}

.section-intro .public-kicker {
  grid-column: 1 / -1;
  margin-bottom: -22px;
}

.section-intro h2,
.integration-public-section h2,
.public-cta h2 {
  max-width: 620px;
  font-size: clamp(25px, 2.9vw, 36px);
  line-height: 1.18;
  letter-spacing: -0.035em;
}

.section-intro > p,
.integration-public-section > div > p {
  color: #52606d;
  font-size: 13px;
  line-height: 1.65;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid #dce3ea;
  border-left: 1px solid #dce3ea;
}

.feature-grid article {
  min-height: 190px;
  padding: 22px;
  border-right: 1px solid #dce3ea;
  border-bottom: 1px solid #dce3ea;
  background: rgba(255, 255, 255, 0.82);
}

.feature-grid article > span {
  color: #8b97a5;
  font-family: var(--font-mono);
  font-size: 9px;
}

.feature-grid h3 {
  margin-top: 33px;
  font-size: 15px;
}

.feature-grid p {
  margin-top: 7px;
  color: #52606d;
  font-size: 12px;
  line-height: 1.6;
}

.process-section {
  border-radius: 14px;
  border-top: 0;
  padding: 54px;
  background: #172f4d;
  color: #fff;
}

.process-section .public-kicker {
  color: #80b5ff;
}

.process-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 28px;
  background: rgba(255, 255, 255, 0.16);
}

.process-row > div {
  min-height: 170px;
  padding: 20px;
  background: #172f4d;
}

.process-row span,
.process-row strong {
  display: block;
}

.process-row span {
  color: #80b5ff;
  font-family: var(--font-mono);
  font-size: 10px;
}

.process-row strong {
  margin-top: 28px;
  font-size: 13px;
}

.process-row p {
  margin-top: 7px;
  color: #becadd;
  font-size: 11px;
  line-height: 1.6;
}

.integration-public-section {
  display: grid;
  grid-template-columns: minmax(340px, 0.9fr) minmax(460px, 1.1fr);
  align-items: center;
  gap: 70px;
}

.integration-public-section > div > p {
  margin-top: 13px;
}

.public-integration-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid #dce3ea;
  border-radius: 10px;
  background: #fff;
}

.public-integration-list > div {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 2px 10px;
  align-items: center;
  min-height: 84px;
  padding: 14px;
  border-right: 1px solid #dce3ea;
  border-bottom: 1px solid #dce3ea;
}

.public-integration-list > div:nth-child(2n) { border-right: 0; }
.public-integration-list > div:nth-last-child(-n + 2) { border-bottom: 0; }

.integration-logo {
  display: grid;
  grid-row: 1 / 3;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  font-weight: 800;
}

.integration-logo.xero { background: #13b5ea; }
.integration-logo.myob { background: #6e236b; }
.integration-logo.shopify { background: #5c8d3a; }
.integration-logo.woo { background: #6753ba; }
.integration-logo.api { background: #172f4d; }

.public-integration-list strong {
  align-self: end;
  font-size: 12px;
}

.public-integration-list small {
  align-self: start;
  color: #718096;
  font-size: 9px;
}

.pricing-card {
  display: grid;
  grid-template-columns: minmax(260px, 1.1fr) minmax(320px, 1fr) auto;
  align-items: center;
  gap: 34px;
  padding: 30px;
  border: 1px solid #ccd6e0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(29, 52, 79, 0.08);
}

.pricing-card > div > span {
  color: #1769e0;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pricing-card h3 {
  margin-top: 5px;
  font-size: 22px;
}

.pricing-card p {
  margin-top: 7px;
  color: #52606d;
  font-size: 11px;
  line-height: 1.6;
}

.pricing-card ul {
  display: grid;
  gap: 7px;
  list-style: none;
}

.pricing-card li {
  position: relative;
  padding-left: 17px;
  color: #425466;
  font-size: 11px;
}

.pricing-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #14804a;
  font-weight: 800;
}

.public-cta {
  display: flex;
  width: min(1180px, calc(100% - 40px));
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin: 0 auto 58px;
  padding: 38px 42px;
  border-radius: 14px;
  background: #1769e0;
  color: #fff;
}

.public-cta .public-kicker {
  color: #c9dfff;
}

.public-button.light {
  flex: 0 0 auto;
  border-color: #fff;
  background: #fff;
  color: #17304d;
}

.public-footer {
  display: flex;
  width: min(1180px, calc(100% - 40px));
  min-height: 88px;
  align-items: center;
  gap: 24px;
  margin: 0 auto;
  border-top: 1px solid #dce3ea;
}

.public-footer p {
  margin-right: auto;
  color: #718096;
  font-size: 10px;
}

.public-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 13px;
}

.public-footer-links a {
  color: #718096;
  font-size: 10px;
  text-decoration: none;
}

.public-footer-links a:hover {
  color: #1769e0;
}

@media (max-width: 980px) {
  .public-navigation {
    display: none;
  }

  .public-hero {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .product-preview {
    width: min(720px, 100%);
    transform: none;
  }

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

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

  .integration-public-section,
  .pricing-card {
    grid-template-columns: 1fr;
  }

  .pricing-card .public-button {
    justify-self: start;
  }
}

@media (max-width: 720px) {
  .public-header {
    width: calc(100% - 24px);
  }

  .public-navigation {
    display: none;
  }

  .public-header-actions {
    margin-left: auto;
  }

  .public-hero,
  .public-section,
  .public-cta,
  .public-footer {
    width: calc(100% - 24px);
  }

  .public-hero {
    min-height: auto;
    padding: 45px 0 52px;
  }

  .public-hero h1 {
    font-size: 36px;
  }

  .preview-workspace {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .preview-nav {
    padding-inline: 5px;
  }

  .preview-nav span,
  .preview-nav strong {
    overflow: hidden;
    padding-inline: 5px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .preview-content {
    padding: 12px;
  }

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

  .preview-kpis div:nth-child(2) {
    border-right: 0;
  }

  .preview-kpis div:nth-child(-n + 2) {
    border-bottom: 1px solid #e0e6ec;
  }

  .preview-panels {
    grid-template-columns: 1fr;
  }

  .public-section {
    padding: 54px 0;
  }

  .section-intro {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .section-intro .public-kicker {
    margin-bottom: 0;
  }

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

  .feature-grid article {
    min-height: 160px;
  }

  .process-section {
    padding: 35px 22px;
  }

  .process-row {
    grid-template-columns: 1fr;
  }

  .process-row > div {
    min-height: 140px;
  }

  .integration-public-section {
    gap: 30px;
  }

  .public-integration-list {
    grid-template-columns: 1fr;
  }

  .public-integration-list > div,
  .public-integration-list > div:nth-child(2n),
  .public-integration-list > div:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid #dce3ea;
  }

  .public-integration-list > div:last-child {
    border-bottom: 0;
  }

  .pricing-card {
    padding: 22px;
  }

  .public-cta {
    align-items: flex-start;
    flex-direction: column;
    padding: 30px 24px;
  }

  .public-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
    padding: 25px 0;
  }

  .public-footer p {
    margin-right: 0;
  }
}

@media (max-width: 420px) {
  .public-brand > span:last-child {
    display: none;
  }

  .public-header-actions {
    gap: 5px;
  }

  .public-header-actions .public-button.small {
    padding-inline: 9px;
  }

  .public-hero h1 {
    font-size: 31px;
  }

  .public-hero-copy > p {
    font-size: 13px;
  }

  .public-hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .preview-workspace {
    grid-template-columns: 1fr;
  }

  .preview-nav {
    display: none;
  }
}

/* Connected providers and secure business onboarding */
.workspace-notice{margin-bottom:1rem;padding:.75rem 1rem;border:1px solid var(--border-subtle);border-radius:8px;background:var(--bg-surface-elevated);font-size:.8rem}.workspace-notice.success{border-color:#b9dfc9;background:#f1fbf5;color:#16643a}.workspace-notice.error{border-color:#efc9c9;background:#fff5f5;color:#a33232}.integration-choice{margin-bottom:1rem;padding:1rem;border:1px solid var(--border-subtle);border-radius:10px;background:var(--bg-surface-elevated)}.integration-provider-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem;margin-top:.8rem}.integration-provider-card{min-width:0;padding:1rem;border:1px solid var(--border-subtle);border-radius:9px;background:#fff}.integration-provider-card.primary{border-color:#90b8ec;box-shadow:0 0 0 2px rgba(23,105,224,.08)}.integration-provider-card>header{display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:center;gap:.7rem}.integration-provider-card h2{font-size:.9rem}.integration-provider-card header p,.integration-help{margin-top:.15rem;color:var(--text-muted);font-size:.7rem}.myob-mark{background:#6e236b}.shopify-mark{background:#5c8d3a}.integration-error{margin-top:.75rem;padding:.55rem;border-radius:6px;background:#fff3f3;color:#a33232;font-size:.7rem}.shopify-connect-row{display:flex;align-items:end;gap:.7rem;margin-top:1rem}.shopify-connect-row label{display:grid;flex:1;gap:.35rem;color:var(--text-secondary);font-size:.7rem}.registration-shell{width:min(1180px,100%);max-height:calc(100vh - 24px);overflow:auto;border:1px solid var(--border-subtle);border-radius:14px;background:#f7f9fc;box-shadow:0 24px 70px rgba(14,35,60,.2)}.registration-header{position:sticky;top:0;z-index:5;display:grid;grid-template-columns:220px minmax(0,1fr) auto;align-items:center;gap:1rem;padding:.8rem 1.2rem;border-bottom:1px solid var(--border-subtle);background:rgba(255,255,255,.97);backdrop-filter:blur(12px)}.registration-brand{display:flex;align-items:center;gap:.6rem;color:var(--text-primary);text-decoration:none}.registration-header>div span,.registration-header>div strong{display:block}.registration-header>div span{color:var(--text-muted);font-size:.62rem;text-transform:uppercase;letter-spacing:.08em}.registration-header>div strong{margin-top:.1rem;font-size:.72rem}.registration-header>a:last-child{color:var(--brand-primary);font-size:.72rem;font-weight:700;text-decoration:none}.registration-form{display:grid;grid-template-columns:220px minmax(0,1fr);gap:1rem;padding:1.2rem}.registration-intro{grid-column:1;padding:.4rem .3rem}.registration-intro h1{margin-top:.35rem;font-size:1.35rem;line-height:1.2}.registration-intro>p:last-child{margin-top:.55rem;color:var(--text-secondary);font-size:.75rem}.registration-section{grid-column:2;padding:1rem;border:1px solid var(--border-subtle);border-radius:9px;background:#fff}.registration-section>header{display:flex;align-items:center;gap:.65rem;margin-bottom:.9rem;padding-bottom:.7rem;border-bottom:1px solid var(--border-subtle)}.registration-section>header>span{display:grid;width:28px;height:28px;place-items:center;border-radius:6px;background:#edf4fd;color:var(--brand-primary);font-size:.65rem;font-weight:800}.registration-section h2{font-size:.9rem}.registration-section header p{color:var(--text-muted);font-size:.65rem}.registration-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.7rem}.registration-grid label{display:grid;gap:.3rem;color:var(--text-secondary);font-size:.68rem;font-weight:600}.registration-grid label>span{color:var(--text-muted);font-size:.6rem;font-weight:400}.registration-grid label small{color:var(--text-muted);font-size:.6rem}.registration-grid .wide{grid-column:1/-1}.registration-check{display:flex!important;align-items:center;align-self:end;min-height:40px;padding:.6rem;border:1px solid var(--border-subtle);border-radius:6px}.registration-check input{width:16px;height:16px}.registration-consent{grid-column:2;display:grid;gap:.65rem;padding:1rem;border:1px solid #cfe1f7;border-radius:9px;background:#f6f9fe}.registration-consent label{display:flex;align-items:flex-start;gap:.55rem;font-size:.7rem}.registration-consent label input{width:16px;height:16px;margin-top:1px}.registration-consent a{color:var(--brand-primary)}.registration-consent button{justify-self:start}.registration-consent>p{color:var(--text-muted);font-size:.62rem}.registration-consent #registration-error{min-height:1rem;color:var(--semantic-error);font-size:.7rem}
.brand-logo,.login-logo,.registration-brand .brand-logo{display:block;width:34px;height:34px;padding:0;border-radius:9px;background:none}.public-brand-mark{display:block;object-fit:contain;background:none}.preview-brand{width:30px;height:30px;border-radius:8px;object-fit:contain;background:none}
@media(max-width:900px){.integration-provider-grid{grid-template-columns:1fr}.registration-header{grid-template-columns:1fr auto}.registration-header>div{display:none}.registration-form{grid-template-columns:1fr}.registration-intro,.registration-section,.registration-consent{grid-column:1}.registration-intro{padding:.4rem 0}}
@media(max-width:620px){.registration-shell{max-height:100vh;border:0;border-radius:0}.registration-header{padding:.7rem}.registration-header>a:last-child{font-size:.65rem}.registration-form{padding:.7rem}.registration-grid{grid-template-columns:1fr}.registration-grid .wide{grid-column:auto}.integration-provider-card>header{grid-template-columns:34px minmax(0,1fr)}.integration-provider-card>header .connection-pill{grid-column:2;justify-self:start}.shopify-connect-row{align-items:stretch;flex-direction:column}.shopify-connect-row .touch-btn{width:100%}}
.woo-mark{background:#7356a8}

/* Tenant support desk */
.support-workspace{display:grid;grid-template-columns:minmax(260px,34%) minmax(0,1fr);min-height:560px;overflow:hidden;border:1px solid var(--border-subtle);border-radius:var(--radius-lg);background:var(--bg-surface)}.support-ticket-list{overflow:auto;border-right:1px solid var(--border-subtle)}.support-ticket-item{display:grid;width:100%;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:.75rem;padding:.85rem 1rem;border:0;border-bottom:1px solid var(--border-subtle);background:transparent;color:var(--text-primary);text-align:left;cursor:pointer}.support-ticket-item:hover,.support-ticket-item.active{background:var(--bg-surface-elevated)}.support-ticket-item>span{min-width:0}.support-ticket-item>span:last-child{text-align:right}.support-ticket-item strong,.support-ticket-item small{display:block}.support-ticket-item strong{font-size:.75rem}.support-ticket-item small{margin-top:.2rem;overflow:hidden;color:var(--text-muted);font-size:.68rem;text-overflow:ellipsis;white-space:nowrap}.support-ticket-item b{font-weight:600}.support-conversation{display:flex;min-width:0;flex-direction:column}.support-conversation>header{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem 1.1rem;border-bottom:1px solid var(--border-subtle)}.support-conversation>header p{color:var(--brand-primary);font-size:.7rem;font-weight:700}.support-conversation>header h2{margin-top:.15rem;font-size:1rem}.support-conversation>header span{display:block;margin-top:.15rem;color:var(--text-muted);font-size:.7rem}.support-message-list{display:grid;max-height:410px;gap:.8rem;overflow:auto;padding:1rem;background:var(--bg-surface-elevated)}.support-message-list article{max-width:82%;padding:.8rem .9rem;border:1px solid var(--border-subtle);border-radius:var(--radius-md);background:var(--bg-surface)}.support-message-list article.mine{justify-self:end;border-color:var(--brand-border);background:var(--brand-soft)}.support-message-list article>div{display:flex;justify-content:space-between;gap:.8rem}.support-message-list strong{font-size:.72rem}.support-message-list small{color:var(--text-muted);font-size:.62rem}.support-message-list p{margin-top:.45rem;color:var(--text-secondary);font-size:.75rem;white-space:pre-wrap}.support-message-list article>span{display:block;margin-top:.45rem;color:var(--text-muted);font-size:.62rem}.support-reply{display:grid;gap:.7rem;padding:1rem;border-top:1px solid var(--border-subtle)}.support-reply label,.support-ticket-form label{display:grid;gap:.35rem;color:var(--text-secondary);font-size:.72rem;font-weight:600}.support-reply textarea,.support-ticket-form textarea{min-height:94px;resize:vertical;padding:.75rem;border:1px solid var(--border-subtle);border-radius:var(--radius-md);background:var(--bg-surface);color:var(--text-primary);font:inherit}.support-reply .touch-btn{justify-self:end}.support-ticket-form{display:grid;gap:1rem}.support-placeholder{align-self:center;padding:2rem;color:var(--text-secondary);text-align:center}.support-placeholder strong{font-size:1rem}.support-placeholder p{margin-top:.35rem;font-size:.78rem}.empty-state-inline{padding:2rem 1rem;color:var(--text-muted);font-size:.75rem;text-align:center}
@media(max-width:880px){.support-workspace{grid-template-columns:1fr}.support-ticket-list{max-height:250px;border-right:0;border-bottom:1px solid var(--border-subtle)}}
@media(max-width:560px){.support-conversation>header{align-items:flex-start;flex-direction:column}.support-message-list article{max-width:94%}.support-ticket-item{padding:.75rem}.support-workspace{min-height:500px}}

/* Product builder and open POS */
.product-create-form{display:grid;gap:1rem}.product-create-form>label{display:grid;gap:.35rem;color:var(--text-secondary);font-size:.72rem;font-weight:600}.product-create-form textarea{min-height:78px;resize:vertical;padding:.7rem;border:1px solid var(--border-subtle);border-radius:var(--radius-md);font:inherit}.product-variant-builder,.product-bundle-builder{overflow:hidden;border:1px solid var(--border-subtle);border-radius:var(--radius-md)}.product-variant-builder>header,.product-bundle-builder>header{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.75rem;background:var(--bg-surface-elevated)}.product-variant-builder header div,.product-bundle-builder header{font-size:.72rem}.product-variant-builder header strong,.product-variant-builder header small,.product-bundle-builder header strong,.product-bundle-builder header small{display:block}.product-variant-builder header small,.product-bundle-builder header small{margin-top:.15rem;color:var(--text-muted);font-size:.62rem}.product-variant-row{display:grid;grid-template-columns:1.2fr 1fr .7fr repeat(3,.85fr) 28px;gap:.45rem;padding:.65rem;border-top:1px solid var(--border-subtle)}.product-variant-row .search-input{min-width:0}.variant-remove{border:0;border-radius:5px;background:#fff1f1;color:var(--semantic-error);font-size:1rem;cursor:pointer}.bundle-component-row{display:grid;grid-template-columns:minmax(0,1fr) 110px;gap:.55rem;padding:.7rem}.open-pos-shell{display:grid;grid-template-columns:minmax(0,1fr) 370px;min-height:620px;overflow:hidden;border:1px solid var(--border-subtle);border-radius:var(--radius-lg);background:var(--bg-surface)}.open-pos-catalog{min-width:0;border-right:1px solid var(--border-subtle)}.open-pos-toolbar{display:flex;align-items:end;justify-content:space-between;gap:1rem;padding:.9rem;border-bottom:1px solid var(--border-subtle)}.open-pos-toolbar label{display:grid;width:min(430px,100%);gap:.3rem;color:var(--text-secondary);font-size:.68rem;font-weight:600}.open-pos-toolbar>span{color:var(--text-muted);font-size:.68rem}.open-pos-products{display:grid;grid-template-columns:repeat(auto-fill,minmax(185px,1fr));gap:.65rem;max-height:560px;overflow:auto;padding:.8rem;background:var(--bg-surface-elevated)}.open-pos-products article{display:flex;min-height:150px;flex-direction:column;padding:.8rem;border:1px solid var(--border-subtle);border-radius:var(--radius-md);background:var(--bg-surface)}.open-pos-products article>span,.open-pos-products article>small{color:var(--text-muted);font-size:.62rem}.open-pos-products article>strong{margin-top:.3rem;font-size:.8rem}.open-pos-products article>small{margin-top:.25rem}.open-pos-products article>div{display:flex;align-items:center;justify-content:space-between;gap:.6rem;margin-top:auto}.open-pos-products article b{font-size:.9rem}.open-pos-products article button,.open-pos-customer button,.open-pos-cart>div>button{border:0;background:transparent;color:var(--brand-primary);font-size:.7rem;font-weight:700;cursor:pointer}.open-pos-order{display:flex;min-width:0;flex-direction:column}.open-pos-customer,.open-pos-cart{padding:.9rem;border-bottom:1px solid var(--border-subtle)}.open-pos-customer>div:first-child,.open-pos-cart>div:first-child{display:flex;align-items:center;justify-content:space-between}.open-pos-customer h2,.open-pos-cart h2{font-size:.82rem}.open-pos-customer>.search-input{margin-top:.55rem}.open-pos-exposure{margin-top:.6rem;padding:.6rem;border-radius:6px;background:var(--bg-surface-elevated);color:var(--text-muted);font-size:.65rem}.open-pos-exposure span{display:flex;justify-content:space-between}.open-pos-exposure span+span{margin-top:.25rem}.open-pos-exposure.warning{background:#fff5e8;color:#9b5507}.open-pos-exposure.healthy{background:#eff9f3;color:#167348}.open-pos-cart{flex:1;min-height:0}.open-pos-cart>#pos-cart-items{max-height:250px;overflow:auto;margin-top:.6rem;color:var(--text-muted);font-size:.72rem}.open-pos-line{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:.55rem;padding:.55rem 0;border-bottom:1px solid var(--border-subtle)}.open-pos-line>span:first-child strong,.open-pos-line>span:first-child small{display:block}.open-pos-line>span:first-child strong{font-size:.7rem}.open-pos-line>span:first-child small{color:var(--text-muted);font-size:.6rem}.open-pos-qty{display:flex;align-items:center;gap:.3rem}.open-pos-qty button{width:24px;height:24px;border:1px solid var(--border-subtle);border-radius:4px;background:#fff;cursor:pointer}.open-pos-total{display:grid;gap:.45rem;padding:.9rem}.open-pos-total>div{display:flex;justify-content:space-between;color:var(--text-secondary);font-size:.72rem}.open-pos-total .grand{margin-top:.25rem;padding-top:.55rem;border-top:1px solid var(--border-subtle);color:var(--text-primary);font-size:.9rem}
@media(max-width:1050px){.product-variant-row{grid-template-columns:repeat(3,minmax(0,1fr)) 28px}.open-pos-shell{grid-template-columns:minmax(0,1fr) 330px}}
@media(max-width:780px){.open-pos-shell{grid-template-columns:1fr}.open-pos-catalog{border-right:0;border-bottom:1px solid var(--border-subtle)}.open-pos-products{max-height:420px}.open-pos-order{min-height:530px}}
@media(max-width:560px){.product-variant-row{grid-template-columns:1fr 1fr}.product-variant-row .variant-remove{min-height:36px}.open-pos-toolbar{align-items:stretch;flex-direction:column}.open-pos-products{grid-template-columns:1fr 1fr}.open-pos-shell{border-radius:8px}}
@media(max-width:410px){.open-pos-products{grid-template-columns:1fr}}
.nav-item-link{text-decoration:none}.nav-item-link .nav-launch{margin-left:auto;color:var(--text-muted);font-size:.68rem}
.commerce-launch-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.7rem;margin-bottom:1rem}.commerce-launch-grid article{display:flex;min-height:210px;flex-direction:column;padding:1rem;border:1px solid var(--border-subtle);border-radius:var(--radius-lg);background:var(--bg-surface)}.commerce-launch-grid article>span{color:var(--brand-primary);font-size:.62rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase}.commerce-launch-grid h2{margin:.5rem 0 .3rem;font-size:.9rem}.commerce-launch-grid p{margin:0 0 1rem;color:var(--text-secondary);font-size:.68rem;line-height:1.6}.commerce-launch-grid .touch-btn{align-self:flex-start;margin-top:auto;text-decoration:none}
@media(max-width:850px){.commerce-launch-grid{grid-template-columns:1fr}}

.settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.settings-card{min-width:0;padding:18px;border:1px solid var(--border-subtle);border-radius:14px;background:var(--bg-surface-elevated)}.settings-card.wide{grid-column:1/-1}.settings-card>header{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:16px}.settings-card h2{font-size:16px}.settings-card header p:not(.workspace-eyebrow){margin-top:4px;color:var(--text-secondary);font-size:12px;line-height:1.55}
.settings-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.settings-form-grid label{display:grid;gap:6px;color:var(--text-secondary);font-size:11px;font-weight:700}.settings-form-grid .wide{grid-column:1/-1}.settings-form-grid textarea{min-height:90px;padding:11px;border:1px solid var(--border-subtle);border-radius:9px;resize:vertical;background:var(--bg-surface)}
.store-mode-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-bottom:16px}.store-mode-option{display:flex;align-items:flex-start;gap:9px;padding:13px;border:1px solid var(--border-subtle);border-radius:10px;cursor:pointer}.store-mode-option.selected{border-color:var(--brand-primary);background:color-mix(in srgb,var(--brand-primary) 6%,var(--bg-surface-elevated))}.store-mode-option input{margin-top:2px;accent-color:var(--brand-primary)}.store-mode-option span{display:grid;gap:3px}.store-mode-option strong{font-size:12px}.store-mode-option small{color:var(--text-secondary);font-size:10px;line-height:1.45}
.slug-input{display:flex;align-items:center;overflow:hidden;border:1px solid var(--border-subtle);border-radius:9px;background:var(--bg-surface)}.slug-input span{padding-left:10px;color:var(--text-muted);font-size:10px;white-space:nowrap}.slug-input input{min-width:0;flex:1;border:0;padding:10px 8px;background:transparent;outline:0}.slug-ok{color:var(--semantic-success)!important}.slug-error{color:var(--semantic-danger)!important}
.settings-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;margin:0 0 14px;background:var(--border-subtle)}.settings-facts>div{padding:10px;background:var(--bg-surface)}.settings-facts dt{color:var(--text-muted);font-size:9px;text-transform:uppercase}.settings-facts dd{margin-top:3px;font-size:11px;font-weight:700}.settings-actions{display:flex;flex-wrap:wrap;gap:8px}.plan-choice-list{display:grid;gap:8px}.plan-choice{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px;border:1px solid var(--border-subtle);border-radius:10px;background:var(--bg-surface);text-align:left;cursor:pointer}.plan-choice span{display:grid}.plan-choice small{color:var(--text-muted);font-size:9px}.plan-choice b{font-size:11px}.settings-save-bar{position:sticky;bottom:12px;z-index:5;display:flex;align-items:center;justify-content:flex-end;gap:14px;margin-top:14px;padding:10px 12px;border:1px solid var(--border-subtle);border-radius:12px;background:color-mix(in srgb,var(--bg-surface-elevated) 92%,transparent);backdrop-filter:blur(12px)}.settings-save-bar .success{color:var(--semantic-success)}.settings-save-bar .error{color:var(--semantic-danger)}
@media(max-width:850px){.settings-grid{grid-template-columns:1fr}.settings-card.wide{grid-column:auto}.store-mode-grid{grid-template-columns:1fr}}
@media(max-width:560px){.settings-form-grid,.settings-facts{grid-template-columns:1fr}.settings-form-grid .wide{grid-column:auto}.slug-input{align-items:stretch;flex-direction:column}.slug-input span{padding:8px 10px 0}.settings-card{padding:14px}.settings-save-bar{position:static;justify-content:space-between}.settings-save-bar .touch-btn{min-width:0}}
.module-loader{display:grid;min-height:180px;place-items:center;align-content:center;gap:12px;color:var(--text-muted);text-align:center;text-transform:capitalize}.module-loader>span{display:flex;height:22px;align-items:end;gap:4px}.module-loader i{display:block;width:4px;height:9px;border-radius:4px;background:var(--brand-primary);animation:module-loader-pulse .9s ease-in-out infinite}.module-loader i:nth-child(2){height:17px;animation-delay:.12s}.module-loader i:nth-child(3){height:12px;animation-delay:.24s}.module-loader strong{font-size:.72rem;font-weight:600}.touch-btn[aria-busy="true"]{cursor:wait;opacity:.78}@keyframes module-loader-pulse{0%,100%{transform:scaleY(.55);opacity:.45}50%{transform:scaleY(1);opacity:1}}@media(prefers-reduced-motion:reduce){.module-loader i{animation:none}}
.table-actions{display:flex;flex-wrap:wrap;gap:6px}.touch-btn.compact{min-height:30px;padding:4px 9px;font-size:.7rem}
.customer-access-panel{overflow:hidden;margin-bottom:14px;border:1px solid var(--border-subtle);border-radius:12px;background:var(--bg-surface)}.customer-access-panel>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 15px;border-bottom:1px solid var(--border-subtle)}.customer-access-panel h2{font-size:14px}.customer-access-panel header p{margin-top:2px;color:var(--text-muted);font-size:10px}.customer-access-panel>header>span{padding:4px 8px;border-radius:99px;background:var(--bg-surface-elevated);font-size:9px;font-weight:700}.customer-access-list article{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:14px;padding:12px 15px;border-bottom:1px solid var(--border-subtle)}.customer-access-list article:last-child{border-bottom:0}.customer-access-list strong,.customer-access-list small{display:block}.customer-access-list strong{font-size:12px}.customer-access-list small{margin-top:2px;color:var(--text-muted);font-size:9px}.customer-access-list p{margin-top:5px;color:var(--text-secondary);font-size:10px}.customer-access-list article>div:last-child{display:flex;gap:6px}
@media(max-width:650px){.customer-access-list article{grid-template-columns:minmax(0,1fr) auto}.customer-access-list article>div:last-child{grid-column:1/-1}.workspace-heading{align-items:flex-start;flex-direction:column}}
.registration-plan-list{display:grid;gap:9px}.registration-plan{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px;padding:13px;border:1px solid var(--border-subtle);border-radius:10px;cursor:pointer}.registration-plan.selected{border-color:var(--brand-primary);background:var(--brand-soft)}.registration-plan input{accent-color:var(--brand-primary)}.registration-plan span,.registration-plan b{display:grid}.registration-plan strong{font-size:12px}.registration-plan small{margin-top:2px;color:var(--text-muted);font-size:9px}.registration-plan b{text-align:right;font-size:12px}.registration-plan-unavailable{color:var(--text-secondary);font-size:11px}
@media(max-width:520px){.registration-plan{grid-template-columns:auto minmax(0,1fr)}.registration-plan>b{grid-column:2;text-align:left}}
