:root {
  --bg: #f5f7fb;
  --card: #ffffff;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --success: #16a34a;
  --danger: #dc2626;
  --warning: #d97706;
  --text: #111827;
  --muted: #6b7280;
  --border: #e5e7eb;
  --shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
  font-family: 'Inter', sans-serif;
}

body.theme--dark {
  --bg: #0f172a;
  --card: #111827;
  --primary: #3b82f6;
  --primary-dark: #2563eb;
  --success: #22c55e;
  --danger: #f87171;
  --warning: #facc15;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --border: #1f2937;
  --shadow: 0 12px 32px rgba(8, 15, 35, 0.45);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: var(--card);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 10;
}

.navbar__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}

.navbar__identity {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--text);
}

.navbar__identity:hover {
  color: var(--text);
}

.navbar__logo {
  width: 46px;
  height: 46px;
  border-radius: 0.75rem;
  object-fit: contain;
  background: #ffffff;
  padding: 0.35rem;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.15);
}

body.theme--dark .navbar__logo {
  background: #1f2937;
  box-shadow: 0 6px 16px rgba(2, 6, 23, 0.55);
}

.navbar__text {
  display: flex;
  flex-direction: column;
}

.navbar__title {
  font-weight: 600;
  letter-spacing: 0.01em;
}

.navbar__product {
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.15rem;
}

.navbar__subtitle {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 400;
  margin-top: 0.2rem;
}

.navbar__links {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
  align-items: center;
}

.navbar__links a,
.navbar__links span {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  padding: 0.35rem 0.75rem;
  border-radius: 0.5rem;
  transition: background 0.2s ease;
}

.navbar__links a:hover,
.navbar__links span:hover {
  background: rgba(37, 99, 235, 0.1);
}

body.theme--dark .navbar__links a:hover,
body.theme--dark .navbar__links span:hover {
  background: rgba(59, 130, 246, 0.15);
}

.dropdown {
  position: relative;
  display: inline-flex;
  align-items: stretch;
}

.dropdown__toggle {
  background: transparent;
  border: none;
  font: inherit;
  color: inherit;
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background 0.2s ease;
}


.dropdown:hover .dropdown__toggle,
.dropdown:focus-within .dropdown__toggle,
.dropdown.is-open .dropdown__toggle,
.dropdown__toggle:hover,
.dropdown__toggle:focus {
  background: rgba(37, 99, 235, 0.1);
}

body.theme--dark .dropdown:hover .dropdown__toggle,
body.theme--dark .dropdown:focus-within .dropdown__toggle,
body.theme--dark .dropdown.is-open .dropdown__toggle,
body.theme--dark .dropdown__toggle:hover,
body.theme--dark .dropdown__toggle:focus {
  background: rgba(59, 130, 246, 0.15);
}

.dropdown__toggle:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.dropdown__menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  transform: translateY(0.35rem);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  min-width: 190px;
  padding: 0.5rem 0;
  box-shadow: var(--shadow);
  z-index: 20;
}

.dropdown__menu::before {
  content: '';
  position: absolute;
  top: -0.5rem;
  left: 0;
  right: 0;
  height: 0.5rem;
}

.dropdown:hover .dropdown__menu,
.dropdown:focus-within .dropdown__menu,
.dropdown.is-open .dropdown__menu {
  display: flex;
  flex-direction: column;
}

.dropdown__menu::before {
  content: '';
  position: absolute;
  top: -0.5rem;
  left: 0;
  right: 0;
  height: 0.5rem;
}

.dropdown__menu a {
  padding: 0.5rem 1rem;
  color: var(--text);
  white-space: nowrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border 0.2s ease;
}

.button--primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.button--primary:hover {
  background: var(--primary-dark);
}

.container {
  max-width: 1100px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

.card {
  background: var(--card);
  border-radius: 1rem;
  box-shadow: var(--shadow);
  padding: 1.75rem;
  margin-bottom: 2rem;
}

.card--centered {
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.helper-text {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 0.35rem;
}

.form-section-title {
  margin: 0 0 0.35rem;
  font-size: 0.9rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.template-preview {
  background: rgba(37, 99, 235, 0.05);
  border: 1px dashed var(--border);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}

body.theme--dark .template-preview {
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(148, 163, 184, 0.35);
}

.integration-guide {
  background: rgba(37, 99, 235, 0.04);
  border: 1px solid rgba(37, 99, 235, 0.15);
  border-radius: 0.9rem;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.75rem;
}

body.theme--dark .integration-guide {
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.25);
}

.integration-guide__header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.integration-guide__body h2 {
  margin: 1rem 0 0.5rem;
  font-size: 1.05rem;
}

.integration-guide__steps {
  margin: 0;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.35rem;
  font-size: 0.95rem;
}

.integration-guide__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

.integration-test {
  margin-top: 1.5rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  background: rgba(15, 23, 42, 0.02);
  display: grid;
  gap: 1rem;
}

body.theme--dark .integration-test {
  background: rgba(15, 23, 42, 0.35);
}

.integration-test__header h3 {
  margin: 0;
  font-size: 1rem;
}

.integration-test__form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-end;
}

.integration-test__form .form-field {
  flex: 1 1 260px;
  margin: 0;
}

.integration-test__form button {
  flex: 0 0 auto;
}

.helper-text--error {
  color: var(--danger);
  font-weight: 500;
}

.integration-hub__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.integration-hub__header h1 {
  margin: 0;
}

.integration-hub__header p {
  margin: 0.5rem 0 0;
  max-width: 540px;
}

.integration-status-banner {
  margin-top: 1.5rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  background: rgba(15, 23, 42, 0.02);
}

body.theme--dark .integration-status-banner {
  background: rgba(148, 163, 184, 0.04);
  border-color: rgba(148, 163, 184, 0.25);
}

.integration-status-banner__summary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
}

.integration-status-banner__details {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.status-dot--connected {
  background: var(--success);
}

.status-dot--pending {
  background: var(--warning);
}

.status-dot--disconnected {
  background: var(--muted);
}

.integration-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.integration-chip--connected {
  background: rgba(22, 163, 74, 0.15);
  color: var(--success);
}

.integration-chip--pending {
  background: rgba(217, 119, 6, 0.15);
  color: var(--warning);
}

.integration-chip--disconnected {
  background: rgba(148, 163, 184, 0.25);
  color: var(--muted);
}

.integration-grid {
  margin-top: 1.5rem;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.integration-card {
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
  display: grid;
  gap: 1rem;
  background: rgba(15, 23, 42, 0.01);
}

body.theme--dark .integration-card {
  background: rgba(148, 163, 184, 0.04);
  border-color: rgba(148, 163, 184, 0.25);
}

.integration-card__brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.integration-card__brand h2 {
  margin: 0;
}

.integration-card__brand p {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.integration-card__logo {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
}

.integration-card__logo span {
  font-size: 0.95rem;
}

.integration-card__logo--google {
  background: linear-gradient(135deg, #ea4335, #4285f4);
}

.integration-card__logo--microsoft {
  background: linear-gradient(135deg, #2563eb, #059669);
}

.integration-card__logo--custom {
  background: linear-gradient(135deg, #6366f1, #a855f7);
}

.integration-card__detail {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.integration-card__list {
  margin: 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.integration-card__button {
  width: 100%;
  justify-content: center;
}

.integration-card__action {
  margin: 0;
}

.integration-modal {
  border: none;
  border-radius: 1rem;
  padding: 0;
  width: min(420px, 90vw);
  background: var(--card);
}

.integration-modal::backdrop {
  background: rgba(15, 23, 42, 0.45);
}

.integration-modal__content {
  display: grid;
  gap: 1rem;
  padding: 1.75rem;
  position: relative;
}

.integration-modal__content label {
  font-weight: 600;
}

.integration-modal__content input,
.integration-modal__content textarea,
.integration-modal__content select {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  font-size: 0.95rem;
  font-family: inherit;
}

.integration-modal__grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.integration-modal__checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.integration-modal__checkbox input {
  width: auto;
  margin: 0;
}

.integration-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.integration-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  font-size: 1.35rem;
  cursor: pointer;
  color: var(--muted);
}

.integration-modal__close:hover {
  color: var(--text);
}

.integration-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(107, 114, 128, 0.15);
  color: var(--muted);
}

.integration-status--pending {
  background: rgba(217, 119, 6, 0.18);
  color: var(--warning);
}

.integration-status--connected {
  background: rgba(22, 163, 74, 0.18);
  color: var(--success);
}

.integration-status--disconnected {
  background: rgba(220, 38, 38, 0.16);
  color: var(--danger);
}

.connect-form {
  margin: 0;
}

.branding-preview {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 0;
}

.branding-preview img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 0.75rem;
  background: #fff;
  padding: 0.35rem;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
}

body.theme--dark .branding-preview img {
  background: #1f2937;
  box-shadow: 0 6px 16px rgba(8, 15, 35, 0.6);
}

.card__header {
  margin-bottom: 1.5rem;
}

.card__header--between {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.calendar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.calendar__controls {
  display: flex;
  gap: 0.75rem;
}

.btn {
  background: transparent;
  border: 1px solid var(--border);
  padding: 0.5rem 1rem;
  border-radius: 0.6rem;
  cursor: pointer;
  color: var(--text);
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  background: rgba(15, 23, 42, 0.06);
}

.btn--primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.btn--primary:hover {
  background: var(--primary-dark);
}

.btn--secondary {
  background: #e0e7ff;
  color: var(--primary-dark);
  border-color: transparent;
}

.btn--success {
  background: var(--success);
  color: #fff;
  border-color: transparent;
}

.btn--danger {
  background: var(--danger);
  color: #fff;
  border-color: transparent;
}

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

.required {
  color: var(--danger);
  margin-left: 0.25rem;
}

.form-grid {
  display: grid;
  gap: 1.25rem;
}

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

.form-grid--two {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.form-grid--three {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.form-field label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.35rem;
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  font-size: 0.95rem;
  font-family: inherit;
}

.form-field textarea {
  resize: vertical;
  min-height: 140px;
}

.form-field--full {
  grid-column: 1 / -1;
}

.form-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

.form-inline {
  display: grid;
  gap: 0.5rem;
}

.table-responsive {
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.table th,
.table td {
  text-align: left;
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid var(--border);
}

.table th {
  font-weight: 600;
  color: var(--muted);
}

.table tr:hover {
  background: rgba(37, 99, 235, 0.05);
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(15, 23, 42, 0.06);
  color: var(--text);
}

.chip--danger {
  background: rgba(220, 38, 38, 0.1);
  color: var(--danger);
}

.chip--status {
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.chip--status-pending {
  background: rgba(217, 119, 6, 0.15);
  color: var(--warning);
}

.chip--status-approved {
  background: rgba(37, 99, 235, 0.15);
  color: var(--primary-dark);
}

.chip--status-implemented {
  background: rgba(22, 163, 74, 0.15);
  color: var(--success);
}

.chip--status-trialing {
  background: rgba(37, 99, 235, 0.12);
  color: var(--primary-dark);
}

.chip--status-active {
  background: rgba(22, 163, 74, 0.15);
  color: var(--success);
}

.chip--status-inactive {
  background: rgba(239, 68, 68, 0.12);
  color: var(--danger);
}

.super-admin__actions {
  display: grid;
  gap: 0.5rem;
}

.super-admin__actions form {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.super-admin__actions select {
  padding: 0.35rem 0.5rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  font-family: inherit;
}

.chip--status-validated {
  background: rgba(22, 163, 74, 0.2);
  color: var(--success);
}

.chip--status-rejected {
  background: rgba(220, 38, 38, 0.15);
  color: var(--danger);
}

.calendar {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(120px, 1fr));
  gap: 0.5rem;
}

.calendar__grid--labels {
  margin-bottom: 0.5rem;
}

.calendar__cell {
  background: rgba(15, 23, 42, 0.02);
  border-radius: 0.75rem;
  padding: 0.75rem;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  border: 1px solid transparent;
}

.calendar__cell--label {
  background: transparent;
  text-align: center;
  font-weight: 600;
  color: var(--muted);
  min-height: auto;
}

.calendar__cell--muted {
  opacity: 0.4;
}

.calendar__cell--blackout {
  border-color: rgba(220, 38, 38, 0.4);
  background: rgba(220, 38, 38, 0.05);
}

.calendar__date {
  font-weight: 600;
  font-size: 1.05rem;
}

.change-chip {
  display: flex;
  flex-direction: column;
  padding: 0.35rem 0.6rem;
  border-radius: 0.6rem;
  text-decoration: none;
  background: var(--card);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  color: inherit;
  transition: box-shadow 0.2s ease;
}

.change-chip:hover {
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.18);
}

.change-chip--pending {
  border-color: rgba(217, 119, 6, 0.4);
}

.change-chip--approved {
  border-color: rgba(37, 99, 235, 0.4);
}

.change-chip--implemented,
.change-chip--validated {
  border-color: rgba(22, 163, 74, 0.4);
}

.change-chip--rejected {
  border-color: rgba(220, 38, 38, 0.4);
}

.change-chip__title {
  font-weight: 600;
}

.change-chip__item {
  color: var(--muted);
}

.meta-list {
  display: grid;
  gap: 0.6rem;
}

.meta-list dt {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.meta-list dd {
  margin: 0;
  font-weight: 500;
}

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

.detail-section {
  margin-top: 1.5rem;
}

.action-panel__grid {
  display: grid;
  gap: 1rem;
}

.list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.list li {
  display: flex;
  justify-content: space-between;
  background: rgba(15, 23, 42, 0.03);
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
}

.alert {
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  margin-bottom: 1rem;
  font-weight: 500;
}

.alert--success {
  background: rgba(34, 197, 94, 0.15);
  color: #166534;
}

.alert--danger {
  background: rgba(239, 68, 68, 0.15);
  color: #991b1b;
}

.alert--info {
  background: rgba(37, 99, 235, 0.15);
  color: #1d4ed8;
}

.alert--warning {
  background: rgba(234, 179, 8, 0.15);
  color: #b45309;
}

.flash-container {
  margin-bottom: 1.5rem;
}

.auth-card {
  max-width: 520px;
  margin: 4rem auto;
  background: var(--card);
  padding: 2.5rem;
  border-radius: 1.25rem;
  box-shadow: var(--shadow);
}

.auth-card__footer {
  margin-top: 1.75rem;
  font-size: 0.95rem;
}

.auth-card p {
  margin-top: 0;
}

.auth-card a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.plan-options {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.plan-card {
  display: flex;
  gap: 0.85rem;
  border: 2px solid var(--border);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  align-items: flex-start;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  background: var(--card);
  position: relative;
}

/* Hide native radio — replaced by ::before pseudo-element */
.plan-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

/* Custom radio indicator */
.plan-card::before {
  content: '';
  width: 18px;
  height: 18px;
  min-width: 18px;
  border-radius: 50%;
  border: 2px solid var(--border);
  margin-top: 0.2rem;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
  flex-shrink: 0;
}

.plan-card:hover {
  border-color: var(--primary);
}

.plan-card:hover::before {
  border-color: var(--primary);
}

.plan-card:has(input:checked) {
  border-color: var(--primary);
  background: rgba(37, 99, 235, 0.05);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.plan-card:has(input:checked)::before {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: inset 0 0 0 3px var(--card);
}

.plan-card strong {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.plan-card p {
  margin: 0.2rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.45;
}

@media (max-width: 768px) {
  .navbar {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .calendar__grid {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }

  .calendar__grid--labels {
    display: none;
  }
}

/* =====================================================
   LANDING PAGE STYLES
   ===================================================== */

/* Nav */
.home-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 2.5rem;
  background: #fff;
  border-bottom: 1px solid #f0f2f7;
  position: sticky;
  top: 0;
  z-index: 100;
}

.home-nav__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.home-nav__logomark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.02em;
  font-family: 'Inter', sans-serif;
}

.home-nav__title {
  font-weight: 700;
  font-size: 1rem;
  color: #111827;
  font-family: 'Inter', sans-serif;
}

.home-nav__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.home-nav__link {
  color: #374151;
  font-weight: 500;
  text-decoration: none;
  padding: 0.4rem 0.85rem;
  border-radius: 0.5rem;
  transition: background 0.15s;
  font-family: 'Inter', sans-serif;
}

.home-nav__link:hover {
  background: #f3f4f6;
}

.home-nav__cta {
  background: #2563eb;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  transition: background 0.15s;
  font-family: 'Inter', sans-serif;
}

.home-nav__cta:hover {
  background: #1d4ed8;
}

/* Hero */
.lp-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 2.5rem 4rem;
  font-family: 'Inter', sans-serif;
}

.lp-badge {
  display: inline-block;
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.lp-hero__headline {
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1.1;
  color: #0f172a;
  margin: 0 0 1.25rem;
  letter-spacing: -0.02em;
}

.lp-hero__sub {
  font-size: 1.15rem;
  color: #4b5563;
  line-height: 1.7;
  margin: 0 0 2rem;
  max-width: 480px;
}

.lp-hero__actions {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  flex-wrap: wrap;
}

.lp-btn {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.7rem 1.5rem;
  font-size: 0.95rem;
  transition: all 0.15s ease;
  font-family: 'Inter', sans-serif;
}

.lp-btn--primary {
  background: #2563eb;
  color: #fff;
}

.lp-btn--primary:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
}

.lp-btn--ghost {
  color: #374151;
  background: transparent;
}

.lp-btn--ghost:hover {
  color: #2563eb;
}

.lp-btn--lg {
  padding: 0.9rem 2rem;
  font-size: 1.05rem;
}

.lp-hero__footnote {
  margin-top: 1.25rem;
  font-size: 0.82rem;
  color: #9ca3af;
}

/* Mock window */
.lp-mock-window {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.lp-mock-window__bar {
  background: #f8fafc;
  border-bottom: 1px solid #e5e7eb;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.lp-mock-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.lp-mock-dot--red    { background: #ef4444; }
.lp-mock-dot--yellow { background: #f59e0b; }
.lp-mock-dot--green  { background: #22c55e; }

.lp-mock-window__title {
  margin-left: 0.5rem;
  font-size: 0.78rem;
  color: #9ca3af;
  font-weight: 500;
}

.lp-mock-window__body {
  padding: 1rem;
}

/* Mock calendar */
.lp-mock-cal__labels {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  margin-bottom: 4px;
}

.lp-mock-cal__labels span {
  text-align: center;
  font-size: 0.62rem;
  font-weight: 600;
  color: #9ca3af;
  padding: 0.2rem 0;
}

.lp-mock-cal__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}

.lp-mock-cell {
  background: #f9fafb;
  border-radius: 5px;
  padding: 3px 4px;
  min-height: 52px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border: 1px solid transparent;
}

.lp-mock-cell span {
  font-size: 0.65rem;
  font-weight: 600;
  color: #374151;
}

.lp-mock-cell--muted { opacity: 0.4; }

.lp-mock-cell--today {
  border-color: #2563eb;
  background: rgba(37, 99, 235, 0.04);
}

.lp-mock-cell--blackout {
  border-color: rgba(220, 38, 38, 0.3);
  background: rgba(220, 38, 38, 0.04);
}

.lp-mock-evt {
  font-size: 0.55rem;
  font-weight: 600;
  padding: 1px 4px;
  border-radius: 3px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lp-mock-evt--approved   { background: rgba(37, 99, 235, 0.15); color: #1d4ed8; }
.lp-mock-evt--pending    { background: rgba(217, 119, 6, 0.15); color: #b45309; }
.lp-mock-evt--done       { background: rgba(22, 163, 74, 0.15); color: #166534; }
.lp-mock-evt--blackout   { background: rgba(220, 38, 38, 0.15); color: #991b1b; }

/* Proof bar */
.lp-proof-bar {
  background: #f8fafc;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  padding: 1.25rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: #6b7280;
}

.lp-proof-bar__stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.lp-stat {
  color: #374151;
}

.lp-stat strong {
  color: #111827;
}

.lp-stat-divider {
  width: 1px;
  height: 16px;
  background: #d1d5db;
}

/* Sections */
.lp-section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 2.5rem;
  font-family: 'Inter', sans-serif;
}

.lp-section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.lp-section-header h2 {
  font-size: 2.25rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.lp-section-header p {
  font-size: 1.05rem;
  color: #6b7280;
  margin: 0;
}

.lp-section-header--light h2 { color: #fff; }
.lp-section-header--light p  { color: rgba(255,255,255,0.75); }

/* Features grid */
.lp-features {
  background: #fff;
}

.lp-features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.lp-feature-card {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  padding: 1.75rem;
  transition: box-shadow 0.2s, transform 0.2s;
}

.lp-feature-card:hover {
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.12);
  transform: translateY(-2px);
}

.lp-feature-card__icon {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.lp-feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 0.5rem;
}

.lp-feature-card p {
  font-size: 0.92rem;
  color: #6b7280;
  line-height: 1.65;
  margin: 0;
}

/* Screenshots */
.lp-screenshots {
  background: linear-gradient(160deg, #0f172a 0%, #1e3a8a 100%);
}

.lp-screenshots__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.lp-screenshot-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 1rem;
  overflow: hidden;
}

.lp-screenshot-card__label {
  padding: 0.85rem 1.1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.lp-screenshot-card__mock {
  padding: 1.25rem;
  background: #fff;
}

/* Mock form */
.lp-mf { display: grid; gap: 0.65rem; }

.lp-mf__field { display: grid; gap: 0.3rem; }

.lp-mf__label {
  height: 8px;
  background: #e5e7eb;
  border-radius: 4px;
}

.lp-mf__input {
  height: 28px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
}

.lp-mf__input--tall { height: 52px; }

.lp-mf__select {
  height: 28px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  position: relative;
}

.lp-mf__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.lp-mf__btn {
  height: 30px;
  background: #2563eb;
  border-radius: 6px;
  margin-top: 0.25rem;
}

/* Mock detail */
.lp-md { display: grid; gap: 0.75rem; }

.lp-md__topbar { display: flex; align-items: center; }

.lp-md__chip {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}

.lp-md__chip--pending {
  background: rgba(217, 119, 6, 0.15);
  color: #b45309;
}

.lp-md__title {
  height: 14px;
  background: #111827;
  border-radius: 4px;
  width: 80%;
  opacity: 0.15;
}

.lp-md__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.lp-md__meta { display: grid; gap: 0.2rem; }

.lp-md__meta-label {
  height: 7px;
  background: #d1d5db;
  border-radius: 3px;
  width: 50px;
}

.lp-md__meta-value {
  height: 10px;
  background: #374151;
  border-radius: 3px;
  width: 70px;
  opacity: 0.4;
}

.lp-md__meta-value--wide { width: 110px; }

.lp-md__actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.lp-md__approve-btn {
  height: 26px;
  flex: 1;
  background: #16a34a;
  border-radius: 6px;
  opacity: 0.85;
}

.lp-md__reject-btn {
  height: 26px;
  flex: 1;
  background: #dc2626;
  border-radius: 6px;
  opacity: 0.7;
}

/* Mock table */
.lp-mt { display: grid; gap: 0; }

.lp-mt__header {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 0.5rem;
  padding: 0.5rem 0;
  border-bottom: 2px solid #e5e7eb;
  margin-bottom: 0.25rem;
}

.lp-mt__header div {
  height: 8px;
  background: #9ca3af;
  border-radius: 3px;
}

.lp-mt__row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 0.5rem;
  align-items: center;
  padding: 0.55rem 0;
  border-bottom: 1px solid #f3f4f6;
}

.lp-mt__title {
  height: 9px;
  background: #374151;
  border-radius: 3px;
  opacity: 0.5;
  width: 90%;
}

.lp-mt__title--short { width: 60%; }

.lp-mt__chip {
  height: 16px;
  border-radius: 999px;
  width: 70px;
}

.lp-mt__chip--approved { background: rgba(37, 99, 235, 0.2); }
.lp-mt__chip--pending  { background: rgba(217, 119, 6, 0.2); }
.lp-mt__chip--done     { background: rgba(22, 163, 74, 0.2); }

.lp-mt__date {
  height: 8px;
  background: #d1d5db;
  border-radius: 3px;
  width: 55px;
}

.lp-mt__user {
  height: 8px;
  background: #d1d5db;
  border-radius: 3px;
  width: 45px;
}

/* Pricing */
.lp-pricing {
  background: #f8fafc;
}

.lp-pricing__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 700px;
  margin: 0 auto;
}

.lp-plan-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 1.25rem;
  padding: 2rem;
  position: relative;
  font-family: 'Inter', sans-serif;
}

.lp-plan-card--featured {
  border-color: #2563eb;
  box-shadow: 0 12px 40px rgba(37, 99, 235, 0.18);
}

.lp-plan-card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #2563eb;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.85rem;
  border-radius: 999px;
  white-space: nowrap;
}

.lp-plan-card__name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.5rem;
}

.lp-plan-card__price {
  font-size: 1.75rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 1.5rem;
}

.lp-plan-card__price span {
  display: block;
  font-size: 0.8rem;
  font-weight: 400;
  color: #9ca3af;
  margin-top: 0.1rem;
}

.lp-plan-card__features {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.lp-plan-card__features li {
  font-size: 0.9rem;
  color: #374151;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lp-plan-card__features li::before {
  content: '✓';
  color: #16a34a;
  font-weight: 700;
  font-size: 0.85rem;
}

.lp-plan-card__btn {
  display: block;
  text-align: center;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  transition: all 0.15s;
}

.lp-plan-card__btn--outline {
  border: 1.5px solid #d1d5db;
  color: #374151;
}

.lp-plan-card__btn--outline:hover {
  border-color: #2563eb;
  color: #2563eb;
}

.lp-plan-card__btn--primary {
  background: #2563eb;
  color: #fff;
}

.lp-plan-card__btn--primary:hover {
  background: #1d4ed8;
}

/* CTA */
.lp-cta {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  text-align: center;
}

.lp-cta__inner {
  max-width: 600px;
  margin: 0 auto;
  padding: 5rem 2.5rem;
  font-family: 'Inter', sans-serif;
}

.lp-cta h2 {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.lp-cta p {
  color: rgba(255,255,255,0.8);
  font-size: 1.05rem;
  margin: 0 0 2rem;
}

.lp-cta .lp-btn--primary {
  background: #fff;
  color: #1d4ed8;
  font-size: 1rem;
}

.lp-cta .lp-btn--primary:hover {
  background: #f0f4ff;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

/* Footer */
.lp-footer {
  background: #0f172a;
  font-family: 'Inter', sans-serif;
}

.lp-footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.lp-footer__brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
}

.lp-nav-logomark-sm {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lp-footer__copy {
  font-size: 0.82rem;
  color: #6b7280;
  margin: 0;
}

.lp-footer__copy a {
  color: #94a3b8;
  text-decoration: none;
}

.lp-footer__copy a:hover { color: #fff; }

/* =====================================================
   IMPROVED LOGIN STYLES
   ===================================================== */

.auth-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 70px);
  margin: -2rem -1.5rem;
}

.auth-split__panel {
  background: linear-gradient(160deg, #0f172a 0%, #1e3a8a 100%);
  padding: 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2.5rem;
}

.auth-split__logomark {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
  font-family: 'Inter', sans-serif;
}

.auth-split__product {
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.5rem;
  font-family: 'Inter', sans-serif;
}

.auth-split__tagline {
  color: rgba(255,255,255,0.65);
  font-size: 0.95rem;
  margin: 0;
  font-family: 'Inter', sans-serif;
}

.auth-split__features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
  font-family: 'Inter', sans-serif;
}

.auth-split__features li {
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.auth-split__check {
  color: #4ade80;
  font-weight: 700;
}

.auth-split__form {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: var(--bg);
}

.auth-split__form .auth-card {
  width: 100%;
  max-width: 420px;
  margin: 0;
}

.btn--full {
  width: 100%;
  justify-content: center;
}

.form-field input {
  background: var(--card);
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form-field input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* =====================================================
   DASHBOARD
   ===================================================== */

.dashboard__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: var(--card);
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--border);
  border-top: 3px solid var(--primary);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.stat-card--warn  { border-top-color: #f59e0b; }
.stat-card--success { border-top-color: #22c55e; }
.stat-card--info  { border-top-color: #6366f1; }

.stat-card__label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
  font-weight: 600;
}

.stat-card__value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

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

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

/* =====================================================
   DARK MODE FORM FIX
   ===================================================== */

.form-field textarea,
.form-field select {
  background: var(--card);
  color: var(--text);
  transition: border-color 0.15s;
}

.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.integration-modal__content input,
.integration-modal__content textarea,
.integration-modal__content select {
  background: var(--card);
  color: var(--text);
}

/* =====================================================
   USER MANAGEMENT
   ===================================================== */

.user-seat-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.user-seat-bar__track {
  flex: 1;
  height: 6px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
}

.user-seat-bar__fill {
  height: 100%;
  background: var(--primary);
  border-radius: 99px;
  transition: width 0.4s ease;
}

.user-seat-bar__fill--warn { background: #f59e0b; }
.user-seat-bar__fill--full { background: #ef4444; }

.user-seat-bar__label {
  font-size: 0.82rem;
  color: var(--muted);
  white-space: nowrap;
}

.user-row__actions {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.btn--xs {
  padding: 0.2rem 0.55rem;
  font-size: 0.75rem;
  border-radius: 0.4rem;
}

.user-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.15rem 0.5rem;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 600;
}

.user-status-badge--active {
  background: rgba(34,197,94,.12);
  color: #16a34a;
}

.user-status-badge--inactive {
  background: rgba(239,68,68,.1);
  color: #dc2626;
}

.user-edit-row {
  background: var(--bg);
  border-radius: 0.5rem;
  padding: 1rem;
  margin-top: 0.5rem;
  display: none;
}

.user-edit-row.is-open { display: block; }

.user-edit-row form {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: flex-end;
}

.user-edit-row .form-field {
  flex: 1;
  min-width: 140px;
  margin-bottom: 0;
}

/* =====================================================
   GUIDE PANEL
   ===================================================== */

.guide-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  flex-shrink: 0;
  line-height: 1;
  margin-left: 0.4rem;
  vertical-align: middle;
}

.guide-trigger:hover { opacity: 0.85; }

.guide-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 999;
  display: none;
}

.guide-overlay.is-open { display: block; }

.guide-panel {
  position: fixed;
  top: 0;
  right: -400px;
  width: 380px;
  height: 100vh;
  background: var(--card);
  border-left: 1px solid var(--border);
  box-shadow: -6px 0 30px rgba(0,0,0,.18);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  transition: right 0.28s ease;
  overflow: hidden;
}

.guide-panel.is-open { right: 0; }

.guide-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: var(--card);
}

.guide-panel__title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
}

.guide-panel__close {
  background: transparent;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--muted);
  padding: 0.2rem;
  line-height: 1;
}

.guide-panel__close:hover { color: var(--text); }

.guide-panel__body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
}

.guide-step {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.guide-step__num {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

.guide-step__text {
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.6;
}

.guide-tip {
  background: rgba(37,99,235,.08);
  border-left: 3px solid var(--primary);
  padding: 0.75rem 1rem;
  border-radius: 0 0.45rem 0.45rem 0;
  font-size: 0.83rem;
  color: var(--text);
  margin-top: 1.25rem;
  line-height: 1.55;
}

/* =====================================================
   EMAIL SETTINGS — AZURE SETUP CALLOUT
   ===================================================== */

.azure-setup-callout {
  background: rgba(239,68,68,.06);
  border: 1px solid rgba(239,68,68,.25);
  border-radius: 0.6rem;
  padding: 1.25rem 1.5rem;
  margin-top: 1rem;
}

.azure-setup-callout h3 {
  color: #b91c1c;
  font-size: 0.95rem;
  margin-bottom: 0.6rem;
}

.azure-setup-callout ol {
  padding-left: 1.25rem;
  font-size: 0.875rem;
  color: var(--text);
  line-height: 1.65;
  margin: 0 0 0.75rem 0;
}

.azure-redirect-uri {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 0.4rem;
  padding: 0.45rem 0.75rem;
  font-family: monospace;
  font-size: 0.82rem;
  color: var(--text);
  word-break: break-all;
  user-select: all;
  cursor: text;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (max-width: 900px) {
  .lp-hero {
    grid-template-columns: 1fr;
    padding: 3rem 1.5rem;
  }

  .lp-hero__headline { font-size: 2.25rem; }

  .lp-hero__visual { display: none; }

  .auth-split {
    grid-template-columns: 1fr;
  }

  .auth-split__panel { display: none; }

  .auth-split__form {
    padding: 3rem 1.5rem;
  }

  .lp-section-inner { padding: 3.5rem 1.5rem; }

  .lp-proof-bar { flex-direction: column; gap: 1rem; text-align: center; }
}

/* =====================================================
   SUPER ADMIN STYLES
   ===================================================== */

.sa-page {
  max-width: 1300px;
  margin: 0 auto;
  padding: 2rem 0;
  font-family: 'Inter', sans-serif;
}

/* Header */
.sa-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}

.sa-header__eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.sa-header__title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text);
  margin: 0;
  letter-spacing: -0.02em;
}

.sa-header__actions {
  display: flex;
  gap: 0.65rem;
  align-items: center;
}

/* Buttons */
.sa-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5rem 1.1rem;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, box-shadow 0.15s, transform 0.1s;
  white-space: nowrap;
}

.sa-btn--primary {
  background: var(--primary);
  color: #fff;
}

.sa-btn--primary:hover {
  background: #1d4ed8;
  box-shadow: 0 4px 12px rgba(37,99,235,0.3);
}

.sa-btn--ghost {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
}

.sa-btn--ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.sa-btn--success {
  background: #16a34a;
  color: #fff;
}

.sa-btn--success:hover { background: #15803d; }

.sa-btn--danger {
  background: transparent;
  color: #dc2626;
  border: 1px solid #fca5a5;
}

.sa-btn--danger:hover {
  background: #fef2f2;
  border-color: #dc2626;
}

.sa-btn--sm {
  font-size: 0.8rem;
  padding: 0.35rem 0.85rem;
}

.sa-btn--xs {
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 0.375rem;
}

.sa-btn--copy { background: var(--card); color: var(--primary); border: 1px solid var(--border); }
.sa-btn--copy:hover { border-color: var(--primary); }
.sa-btn--copied { background: #dcfce7; color: #16a34a; border-color: #86efac; }

/* Stats row */
.sa-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.sa-stat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.875rem;
  padding: 1.25rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.sa-stat::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--border);
}

.sa-stat--active::before { background: #16a34a; }
.sa-stat--trial::before  { background: #d97706; }
.sa-stat--inactive::before { background: #9ca3af; }

.sa-stat__value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  margin-bottom: 0.35rem;
  letter-spacing: -0.03em;
}

.sa-stat__label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Section */
.sa-section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.sa-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.sa-section__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

/* Table */
.sa-table-wrap {
  overflow-x: auto;
}

.sa-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.sa-table th {
  text-align: left;
  padding: 0.65rem 1.25rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.sa-table td {
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  color: var(--text);
}

.sa-table tr:last-child td { border-bottom: none; }

.sa-table tr:hover td { background: var(--bg); }

.sa-row--used td { opacity: 0.5; }
.sa-row--expired td { opacity: 0.5; }

/* Table content helpers */
.sa-org-name { font-weight: 600; color: var(--text); }
.sa-org-slug  { font-size: 0.78rem; color: var(--muted); margin-top: 1px; }
.sa-org-date  { font-size: 0.75rem; color: var(--muted); margin-top: 2px; }
.sa-user-count { font-weight: 600; text-align: center; }
.sa-muted  { color: var(--muted); font-size: 0.82rem; }
.sa-empty  { text-align: center; color: var(--muted); padding: 2.5rem !important; }
.sa-date-col   { white-space: nowrap; }
.sa-date-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin-bottom: 1px; }
.sa-stripe-col { font-family: monospace; font-size: 0.75rem; }
.sa-stripe-id  { color: var(--muted); }
.sa-invite-email { font-weight: 500; }
.sa-seats-label { font-size: 0.72rem; color: var(--muted); margin-top: 1px; }

/* Status badges */
.sa-status {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  white-space: nowrap;
}

.sa-status--active    { background: #dcfce7; color: #166534; }
.sa-status--trialing  { background: #fef3c7; color: #92400e; }
.sa-status--inactive  { background: #f3f4f6; color: #6b7280; }
.sa-status--canceled  { background: #fee2e2; color: #991b1b; }
.sa-status--past-due  { background: #fee2e2; color: #991b1b; }

/* Plan badges */
.sa-plan-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.18rem 0.55rem;
  border-radius: 0.375rem;
}

.sa-plan-badge--team { background: rgba(37,99,235,0.12); color: #1d4ed8; }
.sa-plan-badge--solo { background: #f3f4f6; color: #374151; }

/* Row actions */
.sa-row-actions {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 190px;
}

.sa-inline-form {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

.sa-status-actions {
  display: flex;
  gap: 0.4rem;
}

.sa-select {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  padding: 0.22rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
}

/* Modal */
.sa-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(2px);
  z-index: 500;
  align-items: center;
  justify-content: center;
}

.sa-modal-overlay.is-open {
  display: flex;
}

.sa-modal {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  box-shadow: 0 25px 60px rgba(15,23,42,0.25);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  margin: 1rem;
}

.sa-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.sa-modal__header h2 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
  color: var(--text);
}

.sa-modal__close {
  background: none;
  border: none;
  font-size: 1rem;
  color: var(--muted);
  cursor: pointer;
  padding: 0.2rem;
  line-height: 1;
  border-radius: 0.375rem;
}

.sa-modal__close:hover { background: var(--bg); color: var(--text); }

.sa-modal__body {
  padding: 1.5rem;
  display: grid;
  gap: 1rem;
}

.sa-modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.65rem;
  padding-top: 0.5rem;
}

/* Modal fields */
.sa-field {
  display: grid;
  gap: 0.35rem;
}

.sa-field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
}

.sa-field input,
.sa-field select {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.sa-field input:focus,
.sa-field select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}

.sa-field-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.sa-field-hint {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

/* Impersonation bar */
.impersonation-bar {
  background: #fef3c7;
  border-bottom: 2px solid #d97706;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
}

.impersonation-bar--edit {
  background: #fee2e2;
  border-bottom-color: #dc2626;
}

.impersonation-bar__inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0.6rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.impersonation-bar__icon { font-size: 1.1rem; }

.impersonation-bar__msg {
  flex: 1;
  color: #78350f;
}

.impersonation-bar--edit .impersonation-bar__msg { color: #7f1d1d; }

.impersonation-bar__exit {
  background: #fff;
  border: 1px solid #d97706;
  color: #92400e;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.15s;
}

.impersonation-bar__exit:hover { background: #fef9f0; }
.impersonation-bar--edit .impersonation-bar__exit { border-color: #dc2626; color: #991b1b; }

/* View-as / Login-as buttons */
.sa-impersonate-actions { display: flex; gap: 0.4rem; margin-top: 0.25rem; }

.sa-btn--view {
  background: rgba(37,99,235,0.08);
  color: #1d4ed8;
  border: 1px solid rgba(37,99,235,0.2);
}
.sa-btn--view:hover { background: rgba(37,99,235,0.15); }

.sa-btn--edit-as {
  background: rgba(220,38,38,0.07);
  color: #dc2626;
  border: 1px solid rgba(220,38,38,0.2);
}
.sa-btn--edit-as:hover { background: rgba(220,38,38,0.14); }

/* Report rows */
.sa-report-grid { padding: 1.25rem 1.5rem; display: grid; gap: 0.85rem; }

.sa-report-row {
  display: grid;
  grid-template-columns: 130px 1fr 56px;
  align-items: center;
  gap: 1rem;
}

.sa-report-row__label { display: flex; align-items: center; }

.sa-report-row__bar-wrap {
  height: 10px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
}

.sa-report-row__bar {
  height: 100%;
  border-radius: 999px;
  transition: width 0.4s ease;
  min-width: 2px;
}

.sa-report-row__count {
  text-align: right;
  font-weight: 700;
  color: var(--text);
  font-size: 0.95rem;
}

/* Logs */
.sa-log-ts { font-family: monospace; font-size: 0.78rem; white-space: nowrap; color: var(--muted); }
.sa-log-actor .sa-log-email { font-weight: 600; font-size: 0.85rem; }
.sa-log-detail { font-size: 0.82rem; color: var(--muted); max-width: 340px; }
.sa-log-action {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.18rem 0.55rem;
  border-radius: 0.375rem;
  background: #f3f4f6;
  color: #374151;
}
.sa-log-action--impersonate-start-view,
.sa-log-action--impersonate-start-edit { background: #fef3c7; color: #92400e; }
.sa-log-action--impersonate-exit { background: #dcfce7; color: #166534; }
.sa-log-row--impersonate td { background: rgba(253, 243, 199, 0.3); }
.sa-monospace { font-family: monospace; font-size: 0.8rem; }

/* Team */
.sa-staff-role {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 0.2rem 0.6rem;
  border-radius: 0.375rem;
}
.sa-staff-role--owner   { background: rgba(124,58,237,0.12); color: #6d28d9; }
.sa-staff-role--admin   { background: rgba(37,99,235,0.12);  color: #1d4ed8; }
.sa-staff-role--support { background: #f3f4f6; color: #374151; }

.sa-perm-desc { font-size: 0.82rem; max-width: 340px; }

.sa-role-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  padding: 1.25rem 1.5rem;
}

.sa-role-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 0.875rem;
  padding: 1.25rem;
}

.sa-role-perms {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.sa-role-perms li {
  font-size: 0.85rem;
  color: var(--muted);
  display: flex;
  gap: 0.4rem;
  align-items: flex-start;
}

.sa-role-perms li::before {
  content: '✓';
  color: #16a34a;
  font-weight: 700;
  flex-shrink: 0;
}

/* Header note */
.sa-header__note {
  font-size: 0.82rem;
  color: var(--muted);
  align-self: flex-end;
  padding-bottom: 0.25rem;
}

/* =====================================================
   SYSTEM SETTINGS PAGE
   ===================================================== */

/* Tabs */
.sa-tabs {
  display: flex;
  gap: 0.25rem;
  border-bottom: 2px solid var(--border);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.sa-tab {
  background: none;
  border: none;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  border-radius: 6px 6px 0 0;
  transition: color 0.15s, border-color 0.15s;
}
.sa-tab:hover { color: var(--text); }
.sa-tab.is-active { color: var(--primary); border-bottom-color: var(--primary); }

.sa-tab-panel { display: none; }
.sa-tab-panel.is-active { display: block; }

/* Settings form layout */
.sa-settings-form { max-width: 720px; }

.sa-settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.sa-field--full { grid-column: 1 / -1; }

.sa-settings-footer {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.sa-section-desc {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 1.25rem;
  max-width: 640px;
}

/* Logo preview */
.sa-logo-preview {
  padding: 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
}
.sa-logo-img { max-height: 48px; max-width: 240px; object-fit: contain; }
.sa-logo-empty {
  color: var(--muted);
  font-size: 0.875rem;
  font-style: italic;
  padding: 0.75rem 1rem;
  background: var(--bg);
  border: 1px dashed var(--border);
  border-radius: 8px;
}

/* Maintenance toggle */
.sa-toggle-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.sa-toggle { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; }
.sa-toggle input[type="checkbox"] { position: absolute; opacity: 0; width: 0; height: 0; }
.sa-toggle__track {
  width: 44px;
  height: 24px;
  border-radius: 12px;
  background: var(--border);
  position: relative;
  flex-shrink: 0;
  transition: background 0.2s;
}
.sa-toggle__track::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  top: 3px;
  left: 3px;
  transition: transform 0.2s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.sa-toggle input:checked + .sa-toggle__track { background: var(--primary); }
.sa-toggle input:checked + .sa-toggle__track::after { transform: translateX(20px); }
.sa-toggle-label { font-weight: 500; font-size: 0.9375rem; }

.sa-maintenance-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(234,88,12,0.12);
  color: #c2410c;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.375rem 0.875rem;
  border-radius: 99px;
  border: 1px solid rgba(234,88,12,0.25);
}

/* Info box (SSO hints) */
.sa-info-box {
  background: rgba(37,99,235,0.06);
  border: 1px solid rgba(37,99,235,0.2);
  border-radius: 8px;
  padding: 0.875rem 1rem;
  font-size: 0.8125rem;
  color: var(--text);
  line-height: 1.5;
}
.sa-info-box code {
  background: rgba(37,99,235,0.1);
  padding: 0.1em 0.4em;
  border-radius: 4px;
  font-size: 0.9em;
  word-break: break-all;
}

/* Database */
.sa-db-info { display: flex; flex-direction: column; gap: 0.5rem; }
.sa-db-info__label { font-size: 0.8125rem; font-weight: 500; color: var(--muted); }
.sa-db-info__value { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }

.sa-subsection-title { font-size: 1rem; font-weight: 600; margin-bottom: 0.5rem; }

.sa-restore-form { margin-top: 0.75rem; }
.sa-restore-row { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }

/* Health cards */
.sa-health-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

.sa-health-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem 1rem;
}
.sa-health-card__label { font-size: 0.8125rem; color: var(--muted); margin-bottom: 0.375rem; }
.sa-health-card__value { font-size: 1.75rem; font-weight: 700; line-height: 1; }
.sa-health-card__value--ok { color: #16a34a; font-size: 1rem; }
.sa-health-card__sub { font-size: 0.8125rem; color: var(--muted); margin-top: 0.25rem; }

/* SSO login button on login page */
.sso-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 0;
  color: var(--muted);
  font-size: 0.8125rem;
}
.sso-divider::before, .sso-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.sso-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.625rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}
.sso-btn:hover { background: var(--bg); border-color: var(--primary); color: var(--primary); }

@media (max-width: 640px) {
  .sa-settings-grid { grid-template-columns: 1fr; }
}

/* Announcement banner */
.platform-announcement {
  padding: .625rem 1rem;
  font-size: .875rem;
  font-weight: 500;
}
.platform-announcement--info { background: rgba(37,99,235,0.12); color: #1e40af; }
.platform-announcement--warning { background: rgba(217,119,6,0.12); color: #92400e; }
.platform-announcement--danger { background: rgba(220,38,38,0.12); color: #991b1b; }
.platform-announcement--success { background: rgba(22,163,74,0.12); color: #166534; }
.platform-announcement__inner {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.platform-announcement__close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: .875rem;
  opacity: .6;
  padding: .25rem;
}
.platform-announcement__close:hover { opacity: 1; }

/* Customer health badges */
.sa-health { font-size: .8125rem; font-weight: 600; white-space: nowrap; }
.sa-health--good { color: #16a34a; }
.sa-health--warn { color: #d97706; }
.sa-health--risk { color: #dc2626; }
.sa-health--none { color: var(--muted); }

/* Extra action row in customers table */
.sa-extra-actions { display: flex; flex-wrap: wrap; gap: .25rem; margin-bottom: .35rem; }
