/* Thème Fabrik — control plane + cockpit tenant */

html, body {
  background: #0f172a;
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
}

body:not(.login-page) {
  height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 50% at 0% -10%, rgba(29, 106, 241, 0.18), transparent 50%),
    radial-gradient(ellipse 50% 40% at 100% 0%, rgba(139, 92, 246, 0.12), transparent 46%),
    #0f172a;
}

.topbar {
  background: rgba(2, 6, 23, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(18px);
  box-shadow: none;
  padding: 10px 24px;
  min-height: 72px;
}

.brand {
  color: #8ecaff;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand span { color: #f8fafc; }

.env-badge.dev {
  background: rgba(251, 191, 36, 0.12);
  color: #fde68a;
  border-color: rgba(251, 191, 36, 0.28);
}
.env-badge.preprod {
  background: rgba(56, 189, 248, 0.12);
  color: #7dd3fc;
  border-color: rgba(56, 189, 248, 0.28);
}
.env-badge.prod {
  background: rgba(52, 211, 153, 0.12);
  color: #6ee7b7;
  border-color: rgba(52, 211, 153, 0.28);
}

.plat-nav-btn {
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: #94a3b8;
}
.plat-nav-btn:hover {
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.05);
  border-color: transparent;
}
.plat-nav-btn.active {
  color: #8ecaff;
  background: rgba(29, 106, 241, 0.2);
  border-color: rgba(29, 106, 241, 0.2);
}

#client-select,
.controls select,
.onboard-form input,
.onboard-form select,
.modal-panel input:not([type="checkbox"]),
.modal-panel select,
.modal-field select,
.sf-search-form input,
.ad-import-form input,
.ad-import-form select {
  color-scheme: dark;
  background: #0b1220 !important;
  color: #e2e8f0 !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 10px;
  caret-color: #e2e8f0;
}

#client-select:-webkit-autofill,
.onboard-form input:-webkit-autofill,
.modal-panel input:-webkit-autofill,
.sf-search-form input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px #0b1220 inset !important;
  -webkit-text-fill-color: #e2e8f0 !important;
  caret-color: #e2e8f0;
}

#refresh-btn,
.btn-primary,
.btn-hero {
  background: linear-gradient(135deg, #1d6af1, #1555de);
  color: #fff;
  border: none;
  box-shadow: 0 10px 28px -16px rgba(29, 106, 241, 0.8);
}

#refresh-btn:not(:disabled):hover,
.btn-primary:hover,
.btn-hero:hover {
  background: linear-gradient(135deg, #3389fc, #1d6af1);
}

.btn-secondary,
.user-logout {
  background: transparent;
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:not(:disabled):hover,
.user-logout:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #f8fafc;
}

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

.panel,
.score-detail-card,
.metric-tile,
.msp-card,
.admin-user-card,
.modal-panel,
.sync-modal,
.sup-kpis .kpi,
.ov-card,
.overview-modern,
.table-wrap,
.dash-section .panel,
.hub-value,
.hub-stat,
.msp-empty,
.dash-synth-tile {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: none !important;
  color: #e2e8f0;
}

.panel,
.modal-panel {
  border-radius: 16px !important;
}

.msp-card {
  border-radius: 16px !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)) !important;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.msp-card:hover {
  transform: translateY(-2px);
  border-color: rgba(89, 173, 255, 0.4) !important;
  box-shadow: 0 20px 40px -24px rgba(29, 106, 241, 0.55) !important;
}

.panel h2,
.panel-subtitle,
.msp-card-titles h3,
.msp-card h3,
.hub-section-title,
.modal-panel h2 {
  color: #f8fafc !important;
}

.msp-headline { color: #8ecaff; }

.hub-hero {
  background:
    radial-gradient(ellipse 80% 70% at 90% 0%, rgba(29, 106, 241, 0.28), transparent 50%),
    radial-gradient(ellipse 50% 50% at 0% 100%, rgba(139, 92, 246, 0.18), transparent 46%),
    linear-gradient(180deg, #0b1220 0%, #0f172a 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hub-hero-glow {
  background:
    radial-gradient(ellipse 60% 80% at 85% 50%, rgba(29, 106, 241, 0.28), transparent),
    radial-gradient(ellipse 40% 50% at 10% 80%, rgba(6, 182, 212, 0.16), transparent);
}

.hub-hero .hub-360 {
  background: linear-gradient(90deg, #8ecaff, #fff);
  -webkit-background-clip: text;
  background-clip: text;
}

.hub-values,
.hub-portfolio-header,
.hub-section-sub,
.panel-note,
.field-hint {
  color: #94a3b8;
}

.hub-value {
  border-radius: 14px;
}

.status-bar {
  background: rgba(15, 23, 42, 0.6);
  border-color: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
}

.dash-nav {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.06);
}

.dash-nav button,
.dash-nav a {
  color: #94a3b8;
}

.dash-nav .active,
.dash-nav button.active {
  color: #8ecaff;
  background: rgba(29, 106, 241, 0.16);
}

table,
.sup-table {
  background: transparent !important;
  color: #e2e8f0;
}

th {
  background: rgba(255, 255, 255, 0.05) !important;
  color: #cbd5e1 !important;
}

td {
  border-color: rgba(255, 255, 255, 0.08) !important;
  color: #e2e8f0;
}

.pill,
.sync-badge {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
}

.pill.ok {
  background: rgba(52, 211, 153, 0.12);
  color: #6ee7b7;
  border-color: rgba(52, 211, 153, 0.25);
}

.modal-backdrop {
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(10px);
}

.modal-panel {
  background: #0f172a !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45) !important;
}

.modal-close { color: #94a3b8; }

.onboard-form label,
.modal-panel label {
  color: #cbd5e1;
}

.onboard-result {
  background: rgba(29, 106, 241, 0.1);
  border-color: rgba(29, 106, 241, 0.25);
  color: #dbeafe;
}

.onboard-result.error,
.login-error-box,
.warn-box {
  background: rgba(248, 113, 113, 0.1) !important;
  border-color: rgba(248, 113, 113, 0.3) !important;
  color: #fca5a5 !important;
}

.client-logo {
  background: #0f172a;
  border-color: rgba(255, 255, 255, 0.1);
}

.sync-modal {
  background: #0b1220 !important;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
}

.empty-state,
.no-access-state {
  color: #e2e8f0;
}

/* —— Login Fabrik —— */
.login-page {
  min-height: 100vh;
  margin: 0;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #060b14;
}

.login-bg {
  position: absolute;
  inset: 0;
  background-color: #060b14;
  background-image:
    radial-gradient(ellipse 90% 60% at 50% -10%, rgba(29, 106, 241, 0.35), transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 50%, rgba(139, 92, 246, 0.22), transparent 50%),
    radial-gradient(ellipse 60% 45% at 0% 80%, rgba(14, 165, 233, 0.18), transparent 50%),
    linear-gradient(180deg, #080d18 0%, #0a1020 45%, #050810 100%);
}

.login-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 40%, black 20%, transparent 72%);
}

.login-orb {
  position: absolute;
  border-radius: 9999px;
  filter: blur(80px);
  pointer-events: none;
  animation: login-orb-float 18s ease-in-out infinite;
}

.login-orb-1 {
  top: 8%;
  left: 12%;
  width: 22rem;
  height: 22rem;
  background: rgba(37, 99, 235, 0.28);
}

.login-orb-2 {
  right: 8%;
  bottom: 10%;
  width: 26rem;
  height: 26rem;
  background: rgba(124, 58, 237, 0.22);
  animation-delay: -6s;
}

.login-orb-3 {
  top: 42%;
  left: 50%;
  width: 18rem;
  height: 18rem;
  background: rgba(6, 182, 212, 0.14);
  animation-delay: -12s;
}

@keyframes login-orb-float {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  33% { transform: translate3d(2%, -3%, 0) scale(1.05); }
  66% { transform: translate3d(-2%, 2%, 0) scale(0.96); }
}

.login-center {
  position: relative;
  z-index: 2;
  width: min(28rem, calc(100% - 2rem));
}

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

.login-brand-mark {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: #8ecaff;
}

.login-brand-title {
  margin: 8px 0 0;
  font-size: 2.4rem;
  font-weight: 650;
  letter-spacing: -0.03em;
  color: #fff;
}

.login-brand-title span {
  background: linear-gradient(90deg, #8ecaff, #c4b5fd);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.login-tagline {
  margin: 10px 0 0;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.9);
}

.login-glass {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
}

.login-glass h2 {
  margin: 0 0 8px;
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
}

.login-lead {
  margin: 0 0 1.4rem;
  color: #94a3b8;
  font-size: 14px;
}

.btn-login-ms {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 14px 18px;
  border-radius: 12px;
  background: #fff;
  color: #0f172a;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease;
}

.btn-login-ms:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.ms-icon { width: 20px; height: 20px; }

.login-secure {
  margin: 14px 0 0;
  text-align: center;
  font-size: 12px;
  color: #64748b;
}

.login-uri-hint code {
  display: inline-block;
  margin-top: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.35);
  color: #e2e8f0;
  word-break: break-all;
}

@media (prefers-reduced-motion: reduce) {
  .login-orb { animation: none; }
}

.pill.warn,
.sync-badge.stale,
.score-legend-chip--warn,
.score-status-pill--warn,
.exec-summary-badge--attention,
.exec-item-icon--attention {
  background: rgba(251, 191, 36, 0.12) !important;
  color: #fde68a !important;
  border-color: rgba(251, 191, 36, 0.28) !important;
}

.pill.bad,
.score-legend-chip--critical,
.score-status-pill--critical,
.trend-down {
  background: rgba(248, 113, 113, 0.12) !important;
  color: #fca5a5 !important;
  border-color: rgba(248, 113, 113, 0.28) !important;
}

.score-legend-chip--good,
.score-status-pill--good,
.pill.info {
  background: rgba(29, 106, 241, 0.16) !important;
  color: #8ecaff !important;
  border-color: rgba(29, 106, 241, 0.28) !important;
}

.loading {
  background: rgba(2, 6, 23, 0.72);
}

.inline-loading,
.status-bar,
.sync-warnings {
  background: rgba(15, 23, 42, 0.55);
  border-color: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  text-decoration: none;
}

.brand-text {
  text-align: center;
  font-size: 15px;
}

.brand-logo-img {
  display: block;
  height: auto;
  width: auto;
  max-height: 88px;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
}

.login-logo-img {
  display: block;
  height: 112px;
  width: auto;
  max-width: min(100%, 22rem);
  margin: 0 auto 18px;
  object-fit: contain;
}

.config-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.config-tile {
  min-height: 140px;
  padding: 20px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  color: #e2e8f0;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.config-tile:hover {
  border-color: rgba(29, 106, 241, 0.35);
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-2px);
}

.config-tile-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(29, 106, 241, 0.15);
  color: #59adff;
  display: grid;
  place-items: center;
}

.config-tile-icon svg {
  width: 22px;
  height: 22px;
}

.config-tile h3 {
  margin: 0;
  font-size: 16px;
  color: #fff;
  font-weight: 600;
}

.config-tile p {
  margin: 4px 0 0;
  font-size: 12px;
  color: #64748b;
}

.modal-panel--config {
  width: min(520px, 100%);
}

.branding-preview {
  display: grid;
  place-items: center;
  min-height: 140px;
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  background: rgba(2, 6, 23, 0.45);
  padding: 16px;
}

.branding-preview img {
  max-height: 120px;
  max-width: 100%;
  object-fit: contain;
}

.branding-preview-fallback {
  font-size: 13px;
  letter-spacing: 0.18em;
  color: #8ecaff;
  font-weight: 700;
}

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

.app-shell {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

.app-sidebar {
  width: 16rem;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(15, 23, 42, 0.5);
}

.sidebar-brand {
  padding: 1.5rem 1.25rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.sidebar-tagline {
  margin: 4px 0 0;
  text-align: center;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1.5;
  color: #94a3b8;
}

.sidebar-version {
  margin: 0;
  text-align: center;
  font-size: 10px;
  letter-spacing: 0.04em;
  color: #64748b;
}

.sidebar-brand .env-badge {
  margin: 0;
}

.sidebar-nav {
  flex: 1;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}

.sidebar-nav-btn,
.sidebar-logout {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: #94a3b8;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.sidebar-nav-btn svg,
.sidebar-logout svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.sidebar-nav-btn:hover,
.sidebar-logout:hover {
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.05);
  border-color: transparent;
}

.sidebar-nav-btn.active {
  color: #8ecaff;
  background: rgba(29, 106, 241, 0.2);
  border-color: rgba(29, 106, 241, 0.2);
}

.sidebar-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 12px;
}

.sidebar-footer .user-menu {
  margin: 0;
  padding: 8px 12px;
  border: 0;
  max-width: 100%;
}

.sidebar-footer .user-display {
  max-width: 100%;
  font-size: 12px;
  color: #94a3b8;
}

.app-main {
  flex: 1;
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
}

.sidebar-toggle {
  display: none;
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 30;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.7);
  color: #cbd5e1;
  cursor: pointer;
}

.sidebar-toggle svg {
  width: 18px;
  height: 18px;
}

.app-main .container {
  max-width: 1600px;
  padding: 16px 32px 40px;
}

.empty-state {
  padding: 0 0 24px;
  text-align: left;
}

.dash-synth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
  margin: 28px 0 0;
}

.hub-hero-wheel {
  justify-self: center;
  align-self: center;
}

.hub-hero .dash-synth-tile {
  min-height: 92px;
  padding: 12px 14px;
}

.hub-hero .dash-synth-tile strong {
  color: #fff;
}

.hub-hero .dash-synth-tile span:last-child {
  color: rgba(226, 232, 240, 0.62);
}

.dash-synth-tile {
  appearance: none;
  width: 100%;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.dash-synth-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(89, 173, 255, 0.4) !important;
  box-shadow: 0 20px 40px -24px rgba(29, 106, 241, 0.55) !important;
}

.dash-synth-score {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.1;
  color: #8ecaff;
}

.hub-stat-n {
  color: #8ecaff !important;
}

.hub-stat-l {
  color: #94a3b8 !important;
}

.account-card--focus {
  outline: 2px solid rgba(89, 173, 255, 0.55);
  box-shadow: 0 0 0 6px rgba(29, 106, 241, 0.16);
}

.modal-panel--onboard {
  width: min(720px, 100%);
  color-scheme: dark;
}

.onboard-wizard-title {
  margin: 0 0 14px !important;
}

.onboard-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}

.onboard-steps li {
  flex: 1;
  min-width: 88px;
  padding: 8px 6px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: #94a3b8;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.02em;
}

.onboard-steps li.is-active {
  color: #dbeafe;
  border-color: rgba(29, 106, 241, 0.45);
  background: rgba(29, 106, 241, 0.16);
}

.onboard-steps li.is-done {
  color: #6ee7b7;
  border-color: rgba(52, 211, 153, 0.28);
}

.onboard-step h3 {
  margin: 8px 0 8px;
  font-size: 17px;
  color: #f8fafc;
}

.onboard-guide {
  margin: 12px 0 18px;
  padding-left: 18px;
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.55;
}

.onboard-guide li { margin: 8px 0; }
.onboard-guide a { color: #8ecaff; }
.onboard-guide code {
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
}

.onboard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.onboard-cert-box {
  margin: 12px 0;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #e2e8f0;
  font-size: 13px;
}

.onboard-cert-box code {
  word-break: break-all;
  color: #8ecaff;
}

.admin-client-check {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #e2e8f0 !important;
  border-radius: 10px;
  padding: 10px 12px !important;
}

.admin-client-check input[type="checkbox"] {
  accent-color: #1d6af1;
  width: 16px;
  height: 16px;
  margin-top: 2px;
}

.onboard-slug-preview {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px dashed rgba(255, 255, 255, 0.16) !important;
  color: #94a3b8 !important;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 10px;
  text-decoration: none;
}

#onboard-cert-download,
#onboard-entra-guide {
  text-decoration: none;
  text-align: center;
}

.onboard-origin-grid {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.onboard-origin-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #e2e8f0;
  text-align: left;
  cursor: pointer;
}

.onboard-origin-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(29, 106, 241, 0.35);
}

.onboard-origin-card:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.onboard-origin-card strong {
  font-size: 15px;
}

.onboard-origin-card span {
  color: #94a3b8;
  font-size: 12px;
}

.onboard-origin-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
}

.onboard-origin-icon svg {
  width: 18px;
  height: 18px;
}

.onboard-origin-icon--sf {
  background: rgba(56, 189, 248, 0.15);
  color: #7dd3fc;
}

.onboard-origin-icon--manual {
  background: rgba(251, 191, 36, 0.15);
  color: #fde68a;
}

.onboard-back {
  border: 0;
  background: none;
  color: #94a3b8;
  font: inherit;
  font-size: 12px;
  padding: 0 0 8px;
  cursor: pointer;
}

.onboard-back:hover { color: #e2e8f0; }

.sf-search-form {
  display: flex;
  gap: 8px;
  margin: 12px 0;
}

.sf-search-form input {
  flex: 1;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(15, 23, 42, 0.9);
  color: #e2e8f0;
}

.sf-results {
  display: grid;
  gap: 8px;
  max-height: 42vh;
  overflow-y: auto;
}

.sf-result,
.sf-selected {
  width: 100%;
  text-align: left;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: #e2e8f0;
  padding: 14px;
  cursor: pointer;
}

.sf-result:hover,
.sf-result.active {
  border-color: rgba(29, 106, 241, 0.45);
  background: rgba(29, 106, 241, 0.12);
}

.sf-selected {
  cursor: default;
  margin-bottom: 14px;
}

.sf-result-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: flex-start;
}

.sf-result p,
.sf-selected p,
.sf-ref,
.sf-phone {
  margin: 6px 0 0;
  font-size: 12px;
  color: #94a3b8;
}

@media (max-width: 900px) {
  .sidebar-toggle { display: grid; }
  .app-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 40;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    background: #0f172a;
  }
  .app-sidebar.open { transform: translateX(0); }
}
