.b2b-area {
  --b2b-surface: #111d30;
  --b2b-border: #2a3b54;
  --b2b-muted: #a0afc5;
  --b2b-accent: #ffae69;
  color: #eff4ff;
}
.b2b-shell { display: grid; gap: 20px; min-width: 0; }
.b2b-hero {
  position: relative;
  min-width: 0;
  padding: clamp(24px, 5vw, 56px);
  border: 1px solid var(--b2b-border);
  border-radius: 22px;
  background: radial-gradient(ellipse at 95% 10%, #433149 0%, transparent 60%), linear-gradient(128deg, #182840, #0d1727);
}
.b2b-hero h1 { margin: 0; font-size: clamp(32px, 5vw, 56px); letter-spacing: -.055em; line-height: 1.08; }
.b2b-hero h1 span { color: var(--b2b-accent); }
.b2b-area p { color: var(--b2b-muted); }
.b2b-hero p { max-width: 54ch; margin: 12px 0 16px; }
.b2b-badge { display: inline-block; max-width: 100%; padding: 4px 10px; border: 1px solid #765c55; border-radius: 30px; color: #ffcb9e; background: #271f29; font-size: 12px; }
.b2b-badge.b2b-on { border-color: #25695b; color: #9be7cc; background: #162f35; }
.b2b-card { min-width: 0; border: 1px solid var(--b2b-border); border-radius: 18px; background: var(--b2b-surface); }
.b2b-toolbar { display: grid; grid-template-columns: minmax(130px, 1fr) minmax(120px, .6fr) minmax(180px, 1.5fr) auto; align-items: end; padding: 20px; gap: 12px; }
.b2b-toolbar label, .b2b-form label { min-width: 0; display: grid; gap: 6px; font-weight: 600; }
.b2b-area input:not([type=checkbox]), .b2b-area select, .b2b-area textarea {
  width: 100%;
  min-width: 0;
  padding: 9px 11px;
  border: 1px solid #465b78;
  border-radius: 9px;
  background: #0b1524;
  color: #eff4ff;
  color-scheme: dark;
}
.b2b-area textarea { resize: vertical; }
.b2b-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  width: fit-content;
  max-width: 100%;
  padding: 7px 14px;
  border: 1px solid #465b78;
  border-radius: 9px;
  background: #1a2a41;
  color: #edf5ff;
  cursor: pointer;
  font-weight: 700;
}
.b2b-button-primary { background: #ffac64; color: #21160f; border-color: #ffac64; }
.b2b-button:hover:not(:disabled), .b2b-company:hover { border-color: var(--b2b-accent); }
.b2b-button:disabled, .b2b-company:disabled { cursor: wait; opacity: .65; }
.b2b-area :focus-visible { outline: 2px solid var(--b2b-accent); outline-offset: 3px; }
.b2b-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.b2b-pagination { padding: 12px 20px; }
.b2b-pagination:empty, .b2b-profile:empty { display: none; }
.b2b-table { overflow-x: auto; }
.b2b-table table { min-width: 680px; width: 100%; border-collapse: collapse; }
.b2b-table th, .b2b-table td { text-align: left; padding: 12px 16px; border-top: 1px solid var(--b2b-border); }
.b2b-table thead th { color: #b7c8df; font-size: 12px; white-space: nowrap; background: #0c192a; }
.b2b-table tbody tr:hover { background: #15243a; }
.b2b-company { border: 1px solid transparent; border-radius: 8px; background: transparent; color: inherit; text-align: left; padding: 3px 6px; cursor: pointer; overflow-wrap: anywhere; }
.b2b-company small { display: block; color: var(--b2b-muted); font-weight: 400; }
.b2b-empty { padding: 20px; }
.b2b-message { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px; margin: 0; border: 1px solid #8b5448; border-radius: 12px; }
.b2b-detail, .b2b-settings, .b2b-permissions { padding: 20px; }
.b2b-company-head { display: flex; align-items: start; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.b2b-company-head h2, .b2b-permissions h2 { margin: 0; font-size: 24px; line-height: 1.2; overflow-wrap: anywhere; }
.b2b-area a { color: #ffbe87; }
.b2b-profile { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 10px; margin: 16px 0; }
.b2b-profile div { padding: 10px 12px; border: 1px solid var(--b2b-border); border-radius: 9px; }
.b2b-profile dt { color: var(--b2b-muted); font-size: 12px; }
.b2b-profile dd { margin: 4px 0 0; overflow-wrap: anywhere; }
.b2b-settings summary, .b2b-edit summary { cursor: pointer; font-weight: 750; }
.b2b-install, .b2b-history { margin-top: 22px; padding-top: 15px; border-top: 1px solid var(--b2b-border); }
.b2b-history h3, .b2b-install h3 { margin: 0; font-size: 17px; }
.b2b-form { display: grid; gap: 12px; margin-top: 12px; }
.b2b-form-grid { grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); }
.b2b-form-grid button { grid-column: 1 / -1; }
.b2b-form small { color: var(--b2b-muted); font-weight: 400; }
.b2b-code { display: block; word-break: break-all; background: #0a1626; color: #cad8ec; padding: 12px; margin: 12px 0; border-radius: 9px; }
.b2b-visit { margin: 14px 0; padding: 12px 14px; border: 1px solid var(--b2b-border); border-radius: 10px; background: #0c192a; }
.b2b-visit h4 { margin: 0 0 5px; }
.b2b-visit ul { padding: 0; margin: 0; list-style: none; }
.b2b-visit li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px 16px; padding: 8px 0; border-top: 1px solid var(--b2b-border); overflow-wrap: anywhere; }
.b2b-visit small { color: var(--b2b-muted); }
.b2b-permissions { margin-top: 20px; }
.b2b-permission { display: flex; gap: 14px; align-items: center; justify-content: space-between; padding: 8px 0; border-top: 1px solid var(--b2b-border); overflow-wrap: anywhere; }
.b2b-permission input { width: 18px; height: 18px; flex-shrink: 0; accent-color: #ffac64; }
@media (max-width: 1050px) {
  .b2b-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .b2b-toolbar { grid-template-columns: minmax(0, 1fr); }
  .b2b-detail, .b2b-settings, .b2b-permissions { padding: 14px; }
  .b2b-visit li { grid-template-columns: minmax(0, 1fr) auto; }
  .b2b-visit li a { grid-column: 1 / -1; }
}

/* Websitebezoekers dashboard */
.b2b-area {
  container: website-visitors / inline-size;
  --b2b-mint: #62e1c8;
  --b2b-ink: #0a1424;
}
.b2b-shell { gap: 18px; }
.b2b-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(192px, 240px);
  align-items: end;
  gap: 24px;
  padding: clamp(22px, 3.5vw, 44px);
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 94% 20%, #312542 0%, transparent 49%),
    radial-gradient(ellipse at 23% 120%, #153a46 0%, transparent 56%),
    linear-gradient(110deg, #172841, #0c1728 84%);
}
.b2b-hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: '';
  opacity: .24;
  mask-image: linear-gradient(90deg, transparent 28%, #000 88%);
  background-image: linear-gradient(#7794b444 1px, transparent 1px), linear-gradient(90deg, #7794b444 1px, transparent 1px);
  background-size: 26px 26px;
}
.b2b-hero h1 { margin-top: 13px; font-weight: 850; }
.b2b-hero-copy p { margin-bottom: 0; }
.b2b-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  color: #a1f1df;
  border: 1px solid #357d72;
  border-radius: 30px;
  background: #102b35;
  font-size: 12px;
  font-weight: 700;
}
.b2b-live i { width: 7px; height: 7px; border-radius: 50%; background: #61e6c3; box-shadow: 0 0 9px #61e6c3aa; }
.b2b-live-off { color: #f9ceaf; border-color: #75574f; background: #2d2731; }
.b2b-live-off i { background: #f7b185; box-shadow: none; }
.b2b-site-switcher { display: grid; gap: 7px; padding: 14px; border: 1px solid #90a7c655; border-radius: 13px; background: #111d30de; }
.b2b-site-switcher label { color: #bdcde1; font-size: 12px; font-weight: 700; }
.b2b-site-switcher .b2b-button { min-height: 34px; font-size: 12px; }

.b2b-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.b2b-metric {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto 1fr auto;
  gap: 3px 6px;
  min-width: 0;
  min-height: 136px;
  align-items: start;
  padding: 16px;
  border: 1px solid var(--b2b-border);
  border-radius: 15px;
  background: linear-gradient(140deg, #17283d, #101b2b);
}
.b2b-metric:nth-child(2n) { background: linear-gradient(143deg, #1a263f, #101b2b); }
.b2b-metric-label { grid-column: 1; grid-row: 1; align-self: center; color: #d2e0f1; font-size: 13px; font-weight: 700; }
.b2b-symbol { grid-column: 2; grid-row: 1; display: grid; width: 30px; height: 30px; place-items: center; border-radius: 9px; background: #1c3b42; color: var(--b2b-mint); font-size: 16px; }
.b2b-metric:nth-child(2n) .b2b-symbol { background: #4e3941; color: var(--b2b-accent); }
.b2b-metric strong { grid-column: 1 / -1; font-size: clamp(26px, 4cqw, 43px); letter-spacing: -.05em; line-height: 1.18; }
.b2b-metric small { grid-column: 1 / -1; color: var(--b2b-muted); }
.b2b-week, .b2b-directory-head { padding: clamp(15px, 2.5cqw, 26px); }
.b2b-week-head, .b2b-week-footer, .b2b-directory-head { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; }
.b2b-week h2, .b2b-directory h2 { margin: 0; font-size: clamp(21px, 3.5cqw, 27px); line-height: 1.2; letter-spacing: -.03em; }
.b2b-week-head p, .b2b-directory-head p { margin: 4px 0 0; }
.b2b-week-head .b2b-button { min-height: 35px; padding: 5px 10px; font-size: 12px; }
.b2b-chart {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: clamp(3px, 1.2cqw, 12px);
  margin: 16px 0 13px;
  padding: 8px;
  border: 1px solid #2b3f59;
  border-radius: 12px;
  background: #0c1728;
}
.b2b-day {
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  gap: 3px;
  height: clamp(120px, 21cqw, 194px);
  min-width: 0;
  text-align: center;
  padding: 4px 2px;
  background: transparent;
  color: #becee5;
  border: 1px solid transparent;
  border-radius: 9px;
  cursor: pointer;
  font-weight: 650;
}
.b2b-day:not(:disabled):hover, .b2b-day-current { background: #1b2a3e; border-color: #975e43; }
.b2b-day:disabled { opacity: .48; cursor: default; }
.b2b-day strong { color: #f3f8ff; font-size: clamp(12px, 2cqw, 19px); }
.b2b-day small { color: var(--b2b-muted); font-size: clamp(9px, 1.25cqw, 12px); }
.b2b-bar-track { display: flex; align-items: end; justify-content: center; padding-top: 2px; border-bottom: 1px solid #3d566e; background: repeating-linear-gradient(0deg, transparent 0 25%, #54718a35 25% 26%); }
.b2b-bar { display: block; width: min(60%, 44px); height: var(--bar); border-radius: 6px 6px 0 0; background: linear-gradient(#70e7d2, #257f87); }
.b2b-day-current .b2b-bar { background: linear-gradient(#ffc489, #d47641); }
.b2b-week-totals { color: #c9daed; }
.b2b-week-totals b { color: #f6f9ff; }
.b2b-week-totals span { margin: 0 4px; color: var(--b2b-muted); }
.b2b-current-period, #b2bLastUpdated, .b2b-settings-status { color: var(--b2b-muted); font-size: 12px; }
.b2b-export-message { width: 100%; margin: 0; }
.b2b-export-message:empty { display: none; }

.b2b-directory-head { padding-bottom: 0; }
.b2b-directory .b2b-toolbar { grid-template-columns: minmax(170px, 1.5fr) minmax(130px, 1fr) auto; padding-top: 14px; }
.b2b-directory .b2b-table td { font-variant-numeric: tabular-nums; }
.b2b-crm { display: inline-block; padding: 3px 8px; white-space: nowrap; border-radius: 30px; color: #c7d7ef; background: #26374e; font-size: 12px; font-weight: 700; }
.b2b-crm-review { color: #cbd2ff; background: #343857; }
.b2b-crm-followup { color: #ffd3a4; background: #5c3c2d; }
.b2b-crm-customer { color: #9ee5cc; background: #25473e; }
.b2b-crm-ignored { color: #bec5d2; background: #333846; }
.b2b-notes { margin-block: 10px 18px; }
.b2b-notes h3 { margin: 0 0 4px; }
.b2b-notes p { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; }
.b2b-notes-label { grid-column: 1 / -1; }
.b2b-settings-actions { margin-top: 8px; }
.b2b-code { white-space: pre-wrap; }
.b2b-code code { font-family: 'IBM Plex Mono', monospace; }

.b2b-home {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, .7fr) minmax(0, .7fr) auto;
  align-items: center;
  gap: 10px 18px;
  margin: 0 0 20px;
  padding: 15px 17px;
  border: 1px solid #3a535f;
  border-radius: 15px;
  background: linear-gradient(115deg, #162b40, #142031 70%);
}
.b2b-home-icon { color: var(--b2b-mint); margin-right: 7px; }
.b2b-home h2 { display: inline; margin: 0; font-size: 17px; }
.b2b-home p { margin: 2px 0 0; color: #a9bccf; overflow-wrap: anywhere; }
.b2b-home-stat { display: grid; min-width: 0; }
.b2b-home-stat strong { color: #f7fdff; font-size: 23px; line-height: 1; }
.b2b-home-stat span { color: var(--b2b-muted); margin-top: 3px; font-size: 12px; }

@container website-visitors (max-width: 760px) {
  .b2b-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .b2b-home { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .b2b-home > div:first-child { grid-column: 1 / -1; }
  .b2b-home .b2b-button { grid-column: 1 / -1; }
  .b2b-week-totals { font-size: 12px; }
  .b2b-directory .b2b-table table { min-width: 0; }
  .b2b-directory .b2b-table thead { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); }
  .b2b-directory .b2b-table tbody { display: grid; }
  .b2b-directory .b2b-table tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 8px; padding: 8px 12px; border-top: 1px solid var(--b2b-border); }
  .b2b-directory .b2b-table tbody th { grid-column: 1 / -1; }
  .b2b-directory .b2b-table tbody th, .b2b-directory .b2b-table td { border: 0; padding: 4px 6px; }
  .b2b-directory .b2b-table td::before { display: block; content: attr(data-label); color: var(--b2b-muted); font-size: 11px; }
}
@container website-visitors (max-width: 490px) {
  .b2b-hero { grid-template-columns: minmax(0, 1fr); gap: 15px; }
  .b2b-metric { padding: 10px; min-height: 112px; }
  .b2b-symbol { width: 23px; height: 23px; }
  .b2b-metric-label { font-size: 12px; }
  .b2b-directory .b2b-toolbar { grid-template-columns: minmax(0, 1fr); }
  .b2b-day { gap: 2px; }
  .b2b-chart { padding: 4px; }
}
@container website-visitors (max-width: 360px) {
  .b2b-hero h1 { font-size: 28px; overflow-wrap: anywhere; }
  .b2b-day small { display: none; }
  .b2b-day { grid-template-rows: auto 1fr auto; }
}

.b2b-form [hidden] { display: none; }
.b2b-scope-hint { margin: -4px 0 0; font-size: 13px; }

.b2b-area {
  --b2b-surface: #14233a;
  --b2b-border: #3a526e;
}
.b2b-shell { gap: 20px; }
.b2b-hero {
  min-height: 220px;
  align-items: end;
  border-color: #536884;
  background: radial-gradient(ellipse at 75% 12%, #394766 0%, transparent 51%),
    radial-gradient(ellipse at 90% 92%, #553746 0%, transparent 37%),
    radial-gradient(ellipse at 23% 120%, #214651 0%, transparent 55%), #142138;
}
.b2b-hero h1 { max-width: 16ch; font-size: clamp(34px, 6cqw, 66px); }
.b2b-hero .b2b-hero-copy { position: relative; z-index: 1; }
.sai-visitor-orbit {
  position: absolute;
  z-index: -1;
  width: min(39%, 355px);
  aspect-ratio: 1;
  right: 19%;
  top: 50%;
  transform: translateY(-50%) rotate(19deg);
  opacity: .6;
}
.sai-visitor-orbit b { font-size: clamp(28px, 6cqw, 59px); }
.b2b-site-switcher { box-shadow: 0 8px 28px #0a14265c; }
.b2b-metric {
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at 100% 1%, #243c53 0%, transparent 74%), #142139;
}
.b2b-metric:nth-child(2n) { background: radial-gradient(ellipse at 100% 0%, #3d384e 0%, transparent 74%), #182339; }
.b2b-week, .b2b-directory { box-shadow: 0 12px 38px #04091442; }
.b2b-chart { background: #101d31; }
.b2b-chart .b2b-day-current { border-color: #d59665; }
.b2b-chart .b2b-bar { box-shadow: 0 0 13px #6ae4ce33; }
.b2b-chart .b2b-day-current .b2b-bar { box-shadow: 0 0 14px #ffbe8336; }
.b2b-directory-head h2, .b2b-week h2 { letter-spacing: -.05em; }
.sai-empty { display: flex; align-items: center; gap: 13px; padding: 21px; border-top: 1px solid var(--b2b-border); }
.sai-empty > span { display: grid; width: 38px; flex: 0 0 38px; aspect-ratio: 1; place-items: center; border-radius: 10px; color: #a5eadc; background: #254349; }
.sai-empty p { margin: 2px 0 0; }
@container website-visitors (max-width: 490px) {
  .b2b-hero { min-height: 0; }
  .sai-visitor-orbit { width: 54%; right: 1%; top: 30%; opacity: .35; }
}
