@font-face {
  font-display: swap;
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  src: url("/fonts/geist-latin-wght-normal.woff2") format("woff2-variations"), url("/fonts/geist-latin-wght-normal.woff2") format("woff2");
}
@font-face {
  font-display: swap;
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 100 900;
  src: url("/fonts/geist-mono-latin-wght-normal.woff2") format("woff2-variations"), url("/fonts/geist-mono-latin-wght-normal.woff2") format("woff2");
}

/* ---------- Tokens ---------- */

:root {
  color-scheme: light;
  --bg: #f4f3ef;
  --surface: #ffffff;
  --surface-2: #ecebe5;
  --surface-3: #f8f7f4;
  --ink: #101820;
  --muted: #5a6068;
  --line: #dedcd4;
  --line-strong: #bebcb3;
  --red: #ff321f;
  --red-text: #c42410;
  --btn-bg: #101820;
  --btn-ink: #ffffff;
  --btn-hover: #2b343d;
  --input-bg: #ffffff;
  --focus-ring: rgba(255, 50, 31, .22);
  --shadow-sm: 0 1px 2px rgba(16, 24, 32, .04);
  --shadow: 0 1px 2px rgba(16, 24, 32, .04), 0 12px 32px rgba(16, 24, 32, .06);
  --shadow-lg: 0 24px 70px rgba(16, 24, 32, .20);
  --ok: #17633c;
  --ok-bg: #e4f0e7;
  --ok-line: #b9d8c3;
  --warn: #6f4a0f;
  --warn-bg: #fcf1db;
  --warn-line: #efd39a;
  --danger: #b3200f;
  --danger-bg: #fcebe8;
  --danger-line: #f3bdb4;
  --danger-solid: #d92718;
  --danger-solid-hover: #b82015;
  --off: #5f6364;
  --off-bg: #ecebe5;
  --selected-row: #fcf1db;
  --brand-panel: #101820;
  --tone-1: #e0301e;
  --tone-2: #0f8571;
  --tone-3: #2f63d0;
  --tone-4: #c47a00;
  --tone-5: #7651d0;
  --tone-6: #5f6364;
  --pattern-fill: #101820;
  --pattern-empty: #dedcd4;
  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --topbar-height: 72px;
  --powerbi-bottom-chrome-height: 68px;
  font-family: var(--font-sans);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a0e13;
  --surface: #11171e;
  --surface-2: #19212b;
  --surface-3: #0e141a;
  --ink: #eef0ec;
  --muted: #9aa3ad;
  --line: #252e39;
  --line-strong: #3a4552;
  --red: #ff4633;
  --red-text: #ff7466;
  --btn-bg: #eef0ec;
  --btn-ink: #0a0e13;
  --btn-hover: #d4d8d2;
  --input-bg: #0e141a;
  --focus-ring: rgba(255, 70, 51, .32);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 16px 40px rgba(0, 0, 0, .28);
  --shadow-lg: 0 24px 70px rgba(0, 0, 0, .55);
  --ok: #7fdba5;
  --ok-bg: #11261a;
  --ok-line: #1f4a31;
  --warn: #ffc56b;
  --warn-bg: #2a2010;
  --warn-line: #54401c;
  --danger: #ff8a7d;
  --danger-bg: #2c1512;
  --danger-line: #5a2620;
  --danger-solid: #e0301e;
  --danger-solid-hover: #c42410;
  --off: #b7bbb8;
  --off-bg: #19212b;
  --selected-row: #2a2010;
  --brand-panel: #060a0e;
  --tone-1: #ff5a48;
  --tone-2: #45c9b0;
  --tone-3: #7ea2ff;
  --tone-4: #ffb549;
  --tone-5: #b39bff;
  --tone-6: #b7bbb8;
  --pattern-fill: #eef0ec;
  --pattern-empty: #252e39;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0a0e13;
    --surface: #11171e;
    --surface-2: #19212b;
    --surface-3: #0e141a;
    --ink: #eef0ec;
    --muted: #9aa3ad;
    --line: #252e39;
    --line-strong: #3a4552;
    --red: #ff4633;
    --red-text: #ff7466;
    --btn-bg: #eef0ec;
    --btn-ink: #0a0e13;
    --btn-hover: #d4d8d2;
    --input-bg: #0e141a;
    --focus-ring: rgba(255, 70, 51, .32);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 16px 40px rgba(0, 0, 0, .28);
    --shadow-lg: 0 24px 70px rgba(0, 0, 0, .55);
    --ok: #7fdba5;
    --ok-bg: #11261a;
    --ok-line: #1f4a31;
    --warn: #ffc56b;
    --warn-bg: #2a2010;
    --warn-line: #54401c;
    --danger: #ff8a7d;
    --danger-bg: #2c1512;
    --danger-line: #5a2620;
    --danger-solid: #e0301e;
    --danger-solid-hover: #c42410;
    --off: #b7bbb8;
    --off-bg: #19212b;
    --selected-row: #2a2010;
    --brand-panel: #060a0e;
    --tone-1: #ff5a48;
    --tone-2: #45c9b0;
    --tone-3: #7ea2ff;
    --tone-4: #ffb549;
    --tone-5: #b39bff;
    --tone-6: #b7bbb8;
    --pattern-fill: #eef0ec;
    --pattern-empty: #252e39;
  }
}

/* Elements that change with the effective theme (logo, toggle icon). */
.for-dark { display: none !important; }
:root[data-theme="dark"] .for-light { display: none !important; }
:root[data-theme="dark"] .for-dark { display: block !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .for-light { display: none !important; }
  :root:not([data-theme="light"]) .for-dark { display: block !important; }
}

/* ---------- Base ---------- */

* { box-sizing: border-box; }
html { min-height: 100%; width: 100%; }
body {
  -webkit-font-smoothing: antialiased;
  background: var(--bg);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  font-size: 15px;
  line-height: 1.5;
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
}
body > main { flex: 1 0 auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.15; }
a:focus-visible,
button:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

[hidden],
.is-hidden {
  display: none !important;
}

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

.icon-svg {
  display: block;
  fill: none;
  flex: 0 0 auto;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.75;
}

.red-square {
  background: var(--red);
  display: inline-block;
  flex: 0 0 auto;
  height: 7px;
  width: 7px;
}

.site-footer {
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  flex: 0 0 auto;
  font-size: 13px;
  gap: 16px;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 48px;
}
.site-footer-mark {
  align-items: center;
  display: inline-flex;
  gap: 8px;
}
.site-footer-mark .red-square { height: 6px; width: 6px; }

/* ---------- Top bar ---------- */

.topbar {
  align-items: center;
  backdrop-filter: saturate(1.4) blur(14px);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex: 0 0 auto;
  gap: 40px;
  min-height: var(--topbar-height);
  padding: 0 48px;
  position: sticky;
  top: 0;
  z-index: 60;
}

.brand {
  align-items: center;
  color: var(--ink);
  display: inline-flex;
  flex: 0 0 auto;
  gap: 14px;
  line-height: 1;
}
.brand-logo {
  display: block;
  height: 20px;
  width: auto;
}
.brand-divider {
  background: var(--line);
  display: block;
  height: 18px;
  width: 1px;
}
.brand-subtitle {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.nav { display: flex; flex: 1; flex-wrap: wrap; gap: 4px; min-width: 0; }
.nav a {
  align-items: center;
  border-radius: 10px;
  color: var(--muted);
  display: inline-flex;
  font-size: 14px;
  font-weight: 500;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  transition: background-color .15s ease, color .15s ease;
}
.nav a:hover { background: color-mix(in srgb, var(--surface-2) 60%, transparent); color: var(--ink); }
.nav a.active { background: var(--surface-2); color: var(--ink); }
.nav a.active::before {
  background: var(--red);
  content: "";
  height: 6px;
  width: 6px;
}
.nav-icon { display: none; }

.topbar-actions {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  gap: 12px;
  justify-content: flex-end;
  margin-left: auto;
}
.topbar-logout-form { margin: 0; }

.theme-toggle {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  height: 40px;
  justify-content: center;
  padding: 0;
  transition: border-color .15s ease;
  width: 40px;
}
.theme-toggle:hover { border-color: var(--line-strong); }

.country-indicator {
  border-radius: 999px;
  box-shadow: 0 0 0 1px var(--line);
  display: inline-flex;
  flex: 0 0 auto;
  height: 24px;
  overflow: hidden;
  width: 24px;
}
.country-indicator img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.profile-menu {
  margin: -4px;
  padding: 4px;
  position: relative;
}
.profile-menu::after {
  content: "";
  height: 14px;
  left: 0;
  position: absolute;
  right: 0;
  top: 100%;
}
.profile-trigger {
  align-items: center;
  background: linear-gradient(135deg, #ff321f, #ffb549);
  border: 2px solid var(--bg);
  border-radius: 999px;
  box-shadow: 0 0 0 1px var(--line);
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  height: 40px;
  justify-content: center;
  overflow: hidden;
  padding: 0;
  width: 40px;
}
.profile-trigger:hover,
.profile-trigger:focus-visible { box-shadow: 0 0 0 1px var(--line-strong); }
.profile-trigger img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}
.profile-trigger span {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .01em;
  text-shadow: 0 1px 4px rgba(16, 24, 32, .35);
}
.profile-menu-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  color: var(--ink);
  display: none;
  min-width: 260px;
  padding: 8px;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 80;
}
.profile-menu:hover .profile-menu-panel,
.profile-menu:focus-within .profile-menu-panel {
  display: block;
}
.profile-menu-user {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 2px;
  margin-bottom: 6px;
  padding: 10px 12px 14px;
}
.profile-menu-user strong {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}
.profile-menu-user span {
  color: var(--muted);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.profile-menu-panel form { margin: 0; }
.profile-menu-item {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  font-size: 14px;
  gap: 10px;
  min-height: 40px;
  padding: 0 12px;
  text-align: left;
  width: 100%;
}
.profile-menu-item.is-danger { color: var(--red-text); }
.profile-menu-item:hover,
.profile-menu-item:focus-visible {
  background: var(--surface-2);
  outline: none;
}

/* ---------- Layout ---------- */

.page {
  margin: 0 auto;
  max-width: 1296px;
  padding: 48px 48px 72px;
  width: 100%;
}
.page.narrow { max-width: 816px; }
.page-title {
  align-items: flex-end;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 32px;
}
.page-title h1 {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: 0;
}
.page > h1 {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 600;
  letter-spacing: -0.035em;
  margin: 0 0 16px;
}
.eyebrow {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .14em;
  margin: 0 0 12px;
  text-transform: uppercase;
}
.muted { color: var(--muted); }

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 28px;
}
.panel h2 { font-size: 20px; font-weight: 600; margin: 0; }
.panel-head { display: grid; gap: 6px; }
.panel-head p { color: var(--muted); font-size: 14px; margin: 0; }

.stack { display: grid; gap: 18px; }
.split { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); margin-bottom: 20px; }

/* ---------- Forms ---------- */

label { color: var(--ink); display: grid; font-size: 13px; font-weight: 500; gap: 8px; }
input, select, textarea {
  background: var(--input-bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  font-size: 15px;
  min-height: 46px;
  padding: 11px 14px;
  transition: border-color .15s ease, box-shadow .15s ease;
  width: 100%;
}
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .8; }
select option {
  background: var(--surface);
  color: var(--ink);
}
input:hover, select:hover, textarea:hover { border-color: var(--line-strong); }
input:disabled, select:disabled, textarea:disabled {
  background: var(--surface-2);
  border-color: var(--line);
  color: var(--muted);
  cursor: not-allowed;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 4px var(--focus-ring);
  outline: none;
}
input[type="checkbox"], input[type="radio"] { accent-color: var(--red); }
input[type="file"] { cursor: pointer; padding: 8px; }
input[type="file"]::file-selector-button {
  background: var(--surface-2);
  border: 0;
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  margin-right: 12px;
  padding: 8px 12px;
}
textarea { line-height: 1.5; resize: vertical; }
.field { display: grid; gap: 8px; }
.field-hint { color: var(--muted); font-size: 13px; margin: 0; }

.password-input {
  display: block;
  position: relative;
}
.password-input input { padding-right: 52px; }
.password-reveal {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 10px;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  height: 42px;
  justify-content: center;
  padding: 0;
  position: absolute;
  right: 2px;
  top: 2px;
  width: 44px;
}
.password-reveal:hover { color: var(--ink); }

.password-field-row {
  align-items: stretch;
  display: flex;
  gap: 8px;
}
.password-field-row > input {
  flex: 1 1 auto;
  min-width: 0;
}
.password-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}
.button.icon.password-action {
  height: 46px;
  min-width: 46px;
  padding: 0;
  width: 46px;
}
.password-copy-status {
  color: var(--ok);
  font-size: 12px;
  font-weight: 500;
  min-height: 18px;
}
.password-copy-status:empty { display: none; }
.password-copy-status.is-error { color: var(--danger); }
.check { align-items: center; display: flex; gap: 10px; }
.check input { min-height: auto; width: auto; }

.turnstile-widget {
  display: block;
  min-height: 65px;
  width: 100%;
}
.turnstile-widget .cf-turnstile { width: 100%; }

/* ---------- Buttons ---------- */

.button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  display: inline-flex;
  font-size: 14px;
  font-weight: 500;
  gap: 8px;
  justify-content: center;
  line-height: 1.2;
  min-height: 44px;
  padding: 10px 18px;
  text-align: center;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.button.primary { background: var(--btn-bg); color: var(--btn-ink); }
.button.primary:hover { background: var(--btn-hover); }
.button.secondary { background: var(--surface); border-color: var(--line); color: var(--ink); }
.button.secondary:hover { border-color: var(--line-strong); }
.button:disabled {
  cursor: not-allowed;
  opacity: .5;
}
.button.large { font-size: 15px; min-height: 52px; }
.button.full { width: 100%; }
.button.icon {
  min-width: 44px;
  padding: 9px;
}
.button.icon svg { display: block; }
.button.danger { background: var(--danger-bg); border-color: var(--danger-line); color: var(--danger); }
.button.danger:hover { border-color: var(--danger); }
.button.danger.solid { background: var(--danger-solid); border-color: var(--danger-solid); color: #ffffff; }
.button.danger.solid:hover { background: var(--danger-solid-hover); border-color: var(--danger-solid-hover); }

.button.access-copy-button.is-copied {
  background: var(--ok-bg);
  border-color: var(--ok-line);
  color: var(--ok);
}
.button.access-copy-button.is-error {
  background: var(--danger-bg);
  border-color: var(--danger-line);
  color: var(--danger);
}
.button.icon.access-copy-button {
  height: 38px;
  min-height: 38px;
  min-width: 38px;
  width: 38px;
}
.button.icon.access-copy-button.is-unavailable {
  border-color: var(--line);
  color: var(--muted);
  cursor: not-allowed;
  opacity: .55;
}
.button.icon.access-copy-button.is-unavailable:hover,
.button.icon.access-copy-button.is-unavailable:focus-visible {
  background: var(--surface);
  border-color: var(--line);
}
.access-copy-popover {
  background: var(--surface);
  border: 1px solid var(--ok-line);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  color: var(--ink);
  display: grid;
  font-size: 12px;
  gap: 8px;
  line-height: 1.45;
  max-width: calc(100vw - 24px);
  padding: 12px 14px;
  position: absolute;
  white-space: pre-line;
  width: 320px;
  word-break: break-word;
  z-index: 90;
}
.access-copy-popover strong { color: var(--ok); font-size: 12px; }
.access-copy-popover.is-error { border-color: var(--danger-line); color: var(--danger); }
.access-copy-popover.is-error strong { color: var(--danger); }

.auth-link {
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  justify-self: center;
  text-align: center;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 4px;
}
.auth-link:hover { text-decoration-color: var(--red); }

.actions { align-items: center; display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.actions-cell { text-align: right; white-space: nowrap; width: 1%; }
.actions-cell form { display: inline; margin: 0; }
.actions-cell .actions { flex-wrap: nowrap; }
.actions-cell .button:not(.icon) { border-radius: 10px; min-height: 38px; padding: 8px 14px; }
.actions-cell .button.icon { height: 38px; min-height: 38px; min-width: 38px; width: 38px; }

.table-sort {
  align-items: center;
  color: inherit;
  display: inline-flex;
  gap: 6px;
  min-height: 24px;
  text-decoration: none;
}
.table-sort:hover,
.table-sort:focus-visible,
.table-sort.active {
  color: var(--ink);
  outline: none;
}
.table-sort-indicator {
  color: var(--muted);
  font-size: 12px;
  line-height: 1;
}
.table-sort.active .table-sort-indicator { color: var(--red-text); }

/* ---------- Pagination ---------- */

.pagination {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-top: 24px;
}
.pagination-summary {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
}
.pagination-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}
.pagination-link {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  display: inline-flex;
  font-size: 14px;
  font-weight: 500;
  justify-content: center;
  min-height: 40px;
  min-width: 40px;
  padding: 0 12px;
}
.pagination-link:hover { border-color: var(--line-strong); }
.pagination-link.active {
  background: var(--btn-bg);
  border-color: var(--btn-bg);
  color: var(--btn-ink);
}

/* ---------- Dialogs ---------- */

.modal-open { overflow: hidden; }
.confirm-overlay {
  align-items: center;
  background: rgba(6, 10, 14, .6);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 24px;
  position: fixed;
  z-index: 100;
}
.confirm-dialog {
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  display: grid;
  gap: 16px;
  grid-template-columns: auto minmax(0, 1fr);
  max-width: 480px;
  padding: 24px;
  width: min(100%, 480px);
}
.confirm-icon {
  align-items: center;
  background: var(--danger-bg);
  border: 1px solid var(--danger-line);
  border-radius: 12px;
  color: var(--danger);
  display: flex;
  font-size: 18px;
  font-weight: 700;
  height: 40px;
  justify-content: center;
  width: 40px;
}
.confirm-copy h2 { font-size: 18px; font-weight: 600; margin: 0 0 8px; }
.confirm-copy p { color: var(--muted); line-height: 1.5; margin: 0; }
.confirm-actions {
  display: flex;
  gap: 10px;
  grid-column: 1 / -1;
  justify-content: flex-end;
}

/* ---------- Messages, badges, tags ---------- */

.alert,
.notice {
  border: 1px solid;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
  padding: 12px 16px;
}
.alert { background: var(--danger-bg); border-color: var(--danger-line); color: var(--danger); }
.notice { background: var(--warn-bg); border-color: var(--warn-line); color: var(--warn); }
.notice.success {
  align-items: center;
  background: var(--ok-bg);
  border-color: var(--ok-line);
  color: var(--ok);
  display: flex;
  font-weight: 500;
  gap: 10px;
}
.page > .notice, .page > .alert { margin-bottom: 20px; }

.badge {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 500;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  white-space: nowrap;
}
.badge::before {
  background: currentColor;
  border-radius: 999px;
  content: "";
  height: 6px;
  width: 6px;
}
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.off { background: var(--off-bg); color: var(--off); }

.tag-row { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-chip {
  --tone: var(--tone-6);
  align-items: center;
  background: var(--surface-2);
  border-radius: 999px;
  color: var(--ink);
  display: inline-flex;
  font-size: 12px;
  font-weight: 500;
  gap: 6px;
  height: 26px;
  line-height: 1;
  padding: 0 10px;
  white-space: nowrap;
}
.tag-chip::before {
  background: var(--tone);
  border-radius: 999px;
  content: "";
  height: 6px;
  width: 6px;
}
.tag-tone-1 { --tone: var(--tone-1); }
.tag-tone-2 { --tone: var(--tone-2); }
.tag-tone-3 { --tone: var(--tone-3); }
.tag-tone-4 { --tone: var(--tone-4); }
.tag-tone-5 { --tone: var(--tone-5); }
.tag-tone-6 { --tone: var(--tone-6); }

.category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 28px;
}
.category-filter a {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  display: inline-flex;
  font-size: 14px;
  font-weight: 500;
  height: 38px;
  padding: 0 16px;
  transition: border-color .15s ease;
}
.category-filter a:hover { border-color: var(--line-strong); }
.category-filter a.active {
  background: var(--btn-bg);
  border-color: var(--btn-bg);
  color: var(--btn-ink);
}

.tag-editor {
  background: var(--input-bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  gap: 8px;
  padding: 8px;
}
.tag-editor:focus-within {
  border-color: var(--ink);
  box-shadow: 0 0 0 4px var(--focus-ring);
}
.tag-editor input {
  border: 0;
  box-shadow: none;
  min-height: 30px;
  padding: 2px 6px;
}
.tag-editor input:focus { box-shadow: none; }
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tag-token {
  background: var(--btn-bg);
  border: 0;
  border-radius: 999px;
  color: var(--btn-ink);
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  padding: 6px 10px;
}
.category-selector { display: grid; gap: 10px; }
.category-selector-head h2 { font-size: 16px; margin: 0; }
.tag-section-title {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .12em;
  margin: 0;
  text-transform: uppercase;
}
.tag-suggestions {
  background: var(--surface-3);
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  gap: 8px;
  padding: 12px;
}
.tag-suggestion {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  padding: 6px 11px;
}
.tag-suggestion:hover { border-color: var(--line-strong); }
.tag-suggestion.is-selected {
  background: var(--btn-bg);
  border-color: var(--btn-bg);
  color: var(--btn-ink);
}

/* ---------- Metrics & generic cards ---------- */

.metric-grid, .card-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.metric, .card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  padding: 24px;
}
.metric { display: grid; gap: 6px; }
.metric strong { display: block; font-size: 40px; font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.metric span, .card p { color: var(--muted); }
.metric span { align-items: center; display: inline-flex; font-size: 14px; gap: 8px; }
.metric span::before { background: var(--red); content: ""; height: 6px; width: 6px; }
.card { position: relative; }

/* ---------- Tables ---------- */

.table-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  overflow: auto;
}
table { border-collapse: collapse; min-width: 760px; table-layout: auto; width: 100%; }
th, td { border-bottom: 1px solid var(--line); padding: 14px 16px; text-align: left; vertical-align: middle; }
th {
  background: var(--surface-3);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .08em;
  text-transform: uppercase;
}
td { font-size: 14px; }
tr:last-child td { border-bottom: 0; }
tbody tr { transition: background-color .12s ease; }
tbody tr:hover { background: color-mix(in srgb, var(--surface-2) 45%, transparent); }

.filter-panel {
  align-items: end;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(180px, .9fr) minmax(260px, 1.25fr) max-content;
  margin-bottom: 16px;
  padding: 16px;
}
.filter-panel label { font-size: 12px; gap: 6px; }
.filter-panel select, .filter-panel input { min-height: 42px; padding: 8px 12px; }
.filter-actions { display: flex; gap: 8px; white-space: nowrap; }
.filter-actions .button { min-height: 42px; padding: 8px 14px; }

/* ---------- Reports (admin) ---------- */

.reports-page { max-width: 1416px; }
.reports-filter {
  grid-template-columns: minmax(190px, 1fr) minmax(240px, 1.15fr) minmax(170px, .7fr) max-content;
}
.reports-metrics { margin-bottom: 24px; }
.reports-section {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}
.reports-section .table-wrap { overflow-x: hidden; }
.reports-section table {
  min-width: 0;
  table-layout: fixed;
}
.reports-section th,
.reports-section td {
  overflow-wrap: anywhere;
  white-space: normal;
}
.reports-section h2 { font-size: 20px; font-weight: 600; margin: 0; }
.section-heading {
  align-items: end;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}
.reports-context {
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}
.report-counts { display: grid; gap: 3px; }
.report-counts span { color: var(--muted); font-size: 12px; }
.report-counts strong { color: var(--ink); font-weight: 600; }
.report-cell-stack {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.company-audit-table td { height: 104px; vertical-align: top; }
.company-audit-table .company-column { width: 17%; }
.company-audit-table .users-column { width: 13%; }
.company-audit-table .activity-column { width: 15%; }
.company-audit-table .last-activity-column { width: 20%; }
.company-audit-table .recent-user-column { width: 18%; }
.company-audit-table .origin-column { width: 17%; }
.company-audit-table tr.is-selected td { background: var(--selected-row); }
.company-report-link {
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.company-report-link strong { font-size: 14px; font-weight: 600; }
.company-report-link span {
  color: var(--red-text);
  font-size: 12px;
  font-weight: 500;
}
.company-report-link:hover strong { color: var(--red-text); }
.report-origin { font-size: 13px; }
.company-detail-section { scroll-margin-top: 88px; }
.company-detail-summary {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  overflow: hidden;
}
.company-detail-summary > div {
  border-right: 1px solid var(--line);
  display: grid;
  gap: 5px;
  padding: 16px 18px;
}
.company-detail-summary > div:last-child { border-right: 0; }
.company-detail-summary dt {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.company-detail-summary dd {
  font-size: 15px;
  font-weight: 600;
  margin: 0;
}
.client-details summary {
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
}
.client-details > span {
  color: var(--muted);
  display: block;
  font-size: 11px;
  margin-top: 5px;
  overflow-wrap: anywhere;
}
.reports-split {
  align-items: start;
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* ---------- Assignments & access (admin) ---------- */

.assignment-row { align-items: center; border-top: 1px solid var(--line); display: flex; gap: 12px; justify-content: space-between; padding: 12px 0; }
.access-section {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 14px;
  padding-top: 20px;
}
.access-section h2 { font-size: 18px; font-weight: 600; margin: 0 0 4px; }
.access-section p { margin: 0; }
.check-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.check-option {
  align-items: flex-start;
  background: var(--surface-3);
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  gap: 10px;
  min-height: 72px;
  padding: 14px;
  transition: border-color .15s ease;
}
.check-option:hover { border-color: var(--line-strong); }
.check-option:has(input:checked) { border-color: var(--ink); }
.check-option input {
  margin-top: 3px;
  min-height: auto;
  width: auto;
}
.check-option span { display: grid; gap: 3px; }
.check-option small {
  color: var(--muted);
  font-weight: 400;
  line-height: 1.35;
}
.check-option.is-hidden { display: none; }

/* ---------- Auth pages ---------- */

.auth-page .site-footer { display: none; }
.auth-shell {
  display: grid;
  flex: 1 0 auto;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  min-height: 100vh;
  min-height: 100dvh;
}
.auth-aside {
  background: var(--brand-panel);
  color: #eef0ec;
  display: flex;
  flex-direction: column;
  gap: 48px;
  justify-content: space-between;
  min-width: 0;
  padding: 48px 56px;
}
.auth-aside .brand { color: #eef0ec; }
.auth-aside .brand-logo { height: 22px; }
.auth-aside .brand-divider { background: rgba(238, 240, 236, .24); }
.auth-aside .brand-subtitle { color: rgba(238, 240, 236, .66); }
.auth-pattern {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  max-width: 640px;
  width: 100%;
}
.auth-pattern span {
  animation: square-in .5s cubic-bezier(.2, .7, .2, 1) both;
  animation-delay: calc(var(--i, 0) * 14ms);
  aspect-ratio: 1;
  border: 1px solid rgba(238, 240, 236, .12);
  border-radius: 5px;
}
.auth-pattern span.is-on { background: rgba(238, 240, 236, .92); border-color: rgba(238, 240, 236, .92); }
.auth-pattern span.is-red { background: var(--red); border-color: var(--red); }
.auth-headline { display: grid; gap: 18px; }
.auth-headline h2 {
  font-size: clamp(36px, 3.8vw, 54px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.04;
  margin: 0;
  max-width: 620px;
}
.auth-headline p {
  color: rgba(238, 240, 236, .72);
  font-size: 17px;
  line-height: 1.55;
  margin: 0;
  max-width: 520px;
}
.auth-main {
  align-items: center;
  display: flex;
  justify-content: center;
  min-width: 0;
  padding: 96px 24px;
  position: relative;
}
.auth-main > .theme-toggle {
  position: absolute;
  right: 40px;
  top: 32px;
}
.auth-card {
  display: grid;
  gap: 28px;
  width: min(400px, 100%);
}
.auth-card-head { display: grid; gap: 12px; }
.auth-card-head .eyebrow {
  align-items: center;
  display: inline-flex;
  gap: 8px;
  margin: 0;
}
.auth-card h1 {
  font-size: 38px;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: 0;
}
.auth-card-head p { color: var(--muted); margin: 0; }
.auth-foot {
  bottom: 32px;
  color: var(--muted);
  font-size: 13px;
  left: 0;
  position: absolute;
  right: 0;
  text-align: center;
}

@keyframes square-in {
  from { opacity: 0; transform: scale(.6); }
  to { opacity: 1; transform: scale(1); }
}

/* ---------- Client: dashboards list ---------- */

.client-hero { display: grid; gap: 14px; margin-bottom: 32px; }
.client-hero .eyebrow { margin: 0; }
.client-hero h1 {
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 0;
}
.client-hero p:not(.eyebrow) { color: var(--muted); font-size: 17px; margin: 0; }
.client-hero p strong { color: var(--ink); font-weight: 500; }

.dash-list { display: grid; gap: 20px; }
.dash-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dash-card,
.dash-feature {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  color: var(--ink);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.dash-card:hover,
.dash-feature:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.dash-card {
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 236px;
  min-width: 0;
  padding: 24px;
}
.dash-card-top { align-items: center; display: flex; gap: 12px; }
.dash-card-icon {
  align-items: center;
  background: var(--surface-2);
  border-radius: 10px;
  display: flex;
  flex: 0 0 auto;
  height: 40px;
  justify-content: center;
  width: 40px;
}
.dash-card-arrow { color: var(--muted); display: flex; margin-left: auto; transition: color .2s ease, transform .2s ease; }
.dash-card:hover .dash-card-arrow { color: var(--ink); transform: translate(2px, -2px); }
.dash-card-body { display: grid; gap: 8px; }
.dash-card h2 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
  margin: 0;
  overflow-wrap: anywhere;
}
.dash-card p { color: var(--muted); font-size: 14px; line-height: 1.55; margin: 0; }
.dash-card-foot {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 16px;
}
.dash-date {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  white-space: nowrap;
}
.new-badge {
  align-items: center;
  color: var(--red-text);
  display: inline-flex;
  font-family: var(--font-mono);
  font-size: 11px;
  gap: 7px;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.dash-feature {
  align-items: stretch;
  border-radius: 20px;
  display: grid;
  gap: 48px;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 260px;
  padding: 36px 40px;
}
.dash-feature-body { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.dash-feature-meta { align-items: center; display: flex; flex-wrap: wrap; gap: 12px; }
.dash-feature h2 {
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0;
  overflow-wrap: anywhere;
}
.dash-feature p { color: var(--muted); font-size: 16px; line-height: 1.55; margin: 0; max-width: 560px; }
.dash-feature-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 16px; margin-top: auto; }
.dash-feature-cta {
  align-items: center;
  background: var(--btn-bg);
  border-radius: 12px;
  color: var(--btn-ink);
  display: inline-flex;
  font-size: 15px;
  font-weight: 500;
  gap: 10px;
  min-height: 44px;
  padding: 0 18px;
}
.dash-feature:hover .dash-feature-cta { background: var(--btn-hover); }
.dash-pattern {
  align-self: center;
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(10, 22px);
}
.dash-pattern span {
  border: 1px solid var(--pattern-empty);
  border-radius: 3px;
  height: 22px;
  width: 22px;
}
.dash-pattern span.is-on { background: var(--pattern-fill); border-color: var(--pattern-fill); }
.dash-pattern span.is-red { background: var(--red); border-color: var(--red); }

.empty-state {
  align-items: flex-start;
  background: var(--surface);
  border: 1px dashed var(--line-strong);
  border-radius: 18px;
  display: grid;
  gap: 8px;
  padding: 40px;
}
.empty-state h2 { font-size: 20px; font-weight: 600; margin: 0; }
.empty-state p { color: var(--muted); margin: 0; }

/* ---------- Dashboard types (admin) ---------- */

.plain-fieldset { border: 0; margin: 0; min-width: 0; padding: 0; }
.type-options {
  border: 0;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  min-width: 0;
  padding: 0;
}
.type-options legend { font-size: 13px; font-weight: 500; margin-bottom: 8px; padding: 0; }
.type-option {
  align-content: start;
  border: 2px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  position: relative;
  transition: border-color .15s ease;
}
.type-option:hover { border-color: var(--line-strong); }
.type-option:has(input:checked) { border-color: var(--ink); }
.type-option:has(input:focus-visible) { box-shadow: 0 0 0 4px var(--focus-ring); }
.type-option input { inset: 0; margin: 0; min-height: 0; opacity: 0; position: absolute; }
.type-option-title { align-items: center; display: flex; font-size: 15px; font-weight: 600; gap: 8px; }
.type-option-title .red-square { visibility: hidden; }
.type-option:has(input:checked) .type-option-title .red-square { visibility: visible; }
.type-option small { color: var(--muted); font-size: 13px; font-weight: 400; line-height: 1.45; }

.type-badge {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--red-text);
  display: inline-flex;
  font-family: var(--font-mono);
  font-size: 11px;
  gap: 6px;
  height: 24px;
  letter-spacing: .1em;
  margin-left: 8px;
  padding: 0 9px;
  text-transform: uppercase;
  vertical-align: middle;
  white-space: nowrap;
}
.type-badge .red-square { height: 6px; width: 6px; }

.native-title { padding-top: 0; }
.native-actions { margin-left: auto; }
.native-meta { align-items: center; display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 16px; }
.native-meta .type-badge { margin-left: 0; }
.native-meta .dash-date { margin-left: 4px; }
.native-description { color: var(--muted); margin: 0 0 24px; max-width: 720px; }
.native-empty {
  align-items: center;
  background: var(--surface);
  border: 1px dashed var(--line-strong);
  border-radius: 20px;
  display: grid;
  gap: 48px;
  grid-template-columns: auto minmax(0, 1fr);
  padding: 48px;
}
.native-empty-copy { display: grid; gap: 10px; max-width: 620px; }
.native-empty-copy h2 { font-size: 24px; font-weight: 600; letter-spacing: -0.025em; margin: 0; }
.native-empty-copy p { margin: 0; }
.native-empty-copy p:not(.muted) { color: var(--ink); line-height: 1.6; }

/* ---------- Client: dashboard detail ---------- */

body.dashboard-view {
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
}
body.dashboard-view .site-footer { display: none; }
.dashboard-page {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  padding: 0 32px 24px;
  width: 100%;
}
.dashboard-title {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  gap: 18px;
  padding: 18px 0;
}
.back-button {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  display: flex;
  flex: 0 0 auto;
  height: 44px;
  justify-content: center;
  width: 44px;
}
.back-button:hover { border-color: var(--line-strong); }
.dashboard-heading { display: grid; gap: 4px; min-width: 0; }
.dashboard-crumb {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dashboard-crumb a:hover { color: var(--ink); }
.dashboard-title h1 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dashboard-meta { align-items: center; display: flex; flex: 0 0 auto; gap: 14px; margin-left: auto; }
.dashboard-frame {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  position: relative;
}
.dashboard-loading {
  align-items: center;
  display: flex;
  inset: 0;
  justify-content: center;
  pointer-events: none;
  position: absolute;
  z-index: 0;
}
.dashboard-loading span {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow);
  display: inline-flex;
  font-size: 14px;
  font-weight: 500;
  gap: 12px;
  min-height: 48px;
  padding: 0 20px;
}
.dashboard-loading .red-square { animation: pulse-square 1.2s ease-in-out infinite; height: 8px; width: 8px; }
@keyframes pulse-square {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .35; transform: scale(.7); }
}
.powerbi-frame-host {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  position: relative;
  width: 100%;
  z-index: 1;
}
.powerbi-frame {
  border: 0;
  display: block;
  flex: 1 1 auto;
  height: 100%;
  min-height: 0;
  width: 100%;
}
.powerbi-frame-host.controls-hidden .powerbi-frame {
  height: calc(100% + var(--powerbi-bottom-chrome-height));
  margin-bottom: calc(-1 * var(--powerbi-bottom-chrome-height));
}

/* ---------- Client: account ---------- */

.account-layout {
  align-items: start;
  display: grid;
  gap: 32px;
  grid-template-columns: 300px minmax(0, 1fr);
}
.account-aside {
  display: grid;
  gap: 16px;
  position: sticky;
  top: calc(var(--topbar-height) + 24px);
}
.account-summary {
  display: grid;
  gap: 20px;
}
.account-summary h2 { font-size: 20px; margin: 0; }
.account-identity { display: grid; gap: 4px; min-width: 0; }
.account-identity span { color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.account-facts {
  border-top: 1px solid var(--line);
  display: grid;
  font-size: 14px;
  gap: 12px;
  margin: 0;
  padding-top: 18px;
}
.account-facts div { align-items: center; display: flex; gap: 12px; justify-content: space-between; }
.account-facts dt { color: var(--muted); }
.account-facts dd { align-items: center; display: inline-flex; font-weight: 500; gap: 8px; margin: 0; text-align: right; }
.account-facts img { border-radius: 999px; height: 16px; object-fit: cover; width: 16px; }
.account-nav {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  display: grid;
  gap: 2px;
  padding: 8px;
}
.account-nav a {
  align-items: center;
  border-radius: 10px;
  color: var(--muted);
  display: flex;
  font-size: 14px;
  font-weight: 500;
  gap: 12px;
  min-height: 44px;
  padding: 0 12px;
}
.account-nav a:hover { background: var(--surface-2); color: var(--ink); }
.account-forms {
  display: grid;
  gap: 20px;
  min-width: 0;
}
.account-forms .panel { padding: 32px; scroll-margin-top: calc(var(--topbar-height) + 24px); }
.account-forms h2 { font-size: 20px; font-weight: 600; margin: 0; }
.field-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field-grid > * { min-width: 0; }
.form-foot { align-items: center; display: flex; gap: 12px; justify-content: space-between; }
.form-foot .actions { margin-left: auto; }
.char-count { color: var(--muted); font-family: var(--font-mono); font-size: 12px; }

.profile-avatar {
  align-items: center;
  border-radius: 999px;
  color: #ffffff;
  display: flex;
  flex: 0 0 auto;
  font-size: 30px;
  font-weight: 600;
  height: 88px;
  justify-content: center;
  letter-spacing: -0.02em;
  line-height: 1;
  overflow: hidden;
  text-shadow: 0 2px 10px rgba(16, 24, 32, .3);
  width: 88px;
}
.profile-avatar img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}
.profile-avatar.has-image {
  background: var(--surface-2);
  text-shadow: none;
}
.admin-profile-avatar {
  font-size: 34px;
  height: 120px;
  width: 120px;
}

.avatar-upload { align-items: center; display: flex; gap: 20px; }
.avatar-upload .profile-avatar { font-size: 24px; height: 72px; width: 72px; }
.file-drop {
  align-items: center;
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  cursor: pointer;
  display: flex;
  flex: 1 1 auto;
  gap: 14px;
  min-height: 72px;
  min-width: 0;
  padding: 12px 20px;
  position: relative;
  transition: border-color .15s ease, background-color .15s ease;
}
.file-drop:hover { background: var(--surface-3); border-color: var(--ink); }
.file-drop:focus-within { border-color: var(--ink); box-shadow: 0 0 0 4px var(--focus-ring); }
.file-drop input {
  cursor: pointer;
  inset: 0;
  min-height: 0;
  opacity: 0;
  position: absolute;
}
.file-drop-icon {
  align-items: center;
  background: var(--surface-2);
  border-radius: 10px;
  display: flex;
  flex: 0 0 auto;
  height: 40px;
  justify-content: center;
  width: 40px;
}
.file-drop-text { display: grid; gap: 2px; min-width: 0; }
.file-drop-text strong { font-size: 14px; font-weight: 500; }
.file-drop-text span { color: var(--muted); font-size: 13px; font-weight: 400; overflow-wrap: anywhere; }

.theme-options {
  border: 0;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
}
.theme-option {
  border: 2px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
  display: grid;
  gap: 12px;
  padding: 10px 10px 14px;
  position: relative;
  transition: border-color .15s ease;
}
.theme-option:hover { border-color: var(--line-strong); }
.theme-option:has(input:checked) { border-color: var(--ink); }
.theme-option:has(input:focus-visible) { box-shadow: 0 0 0 4px var(--focus-ring); }
.theme-option input { inset: 0; margin: 0; min-height: 0; opacity: 0; position: absolute; }
.theme-option-label { align-items: center; display: flex; font-size: 14px; font-weight: 500; gap: 8px; padding: 0 4px; }
.theme-option-label .red-square { visibility: hidden; }
.theme-option:has(input:checked) .theme-option-label .red-square { visibility: visible; }
.theme-preview {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  height: 84px;
  overflow: hidden;
}
.theme-preview-side { display: grid; gap: 6px; padding: 10px; width: 36%; align-content: start; }
.theme-preview-main { display: grid; flex: 1; gap: 6px; grid-template-rows: auto 1fr; padding: 10px; }
.theme-preview i { border-radius: 3px; display: block; height: 6px; }
.theme-preview-main i:first-child { height: 8px; width: 40%; }
.theme-preview-main i:last-child { border-radius: 5px; height: auto; }
.theme-preview.is-light { background: #f4f3ef; }
.theme-preview.is-light .theme-preview-side { background: #ffffff; }
.theme-preview.is-light i { background: #d6d4cc; }
.theme-preview.is-light i:first-child { background: #101820; }
.theme-preview.is-light .theme-preview-main i:last-child { background: #ffffff; }
.theme-preview.is-dark { background: #0a0e13; }
.theme-preview.is-dark .theme-preview-side { background: #11171e; }
.theme-preview.is-dark i { background: #2a3440; }
.theme-preview.is-dark i:first-child { background: #eef0ec; }
.theme-preview.is-dark .theme-preview-main i:last-child { background: #19212b; }
.theme-preview.is-system { background: linear-gradient(135deg, #f4f3ef 50%, #0a0e13 50%); }
.theme-preview.is-system .theme-preview-side { background: #ffffff; }
.theme-preview.is-system i { background: #d6d4cc; }
.theme-preview.is-system i:first-child { background: #101820; }
.theme-preview.is-system .theme-preview-main i { background: #2a3440; }
.theme-preview.is-system .theme-preview-main i:first-child { background: #eef0ec; }
.theme-preview.is-system .theme-preview-main i:last-child { background: #19212b; }

/* ---------- Resources (admin) ---------- */

.resource-page { max-width: 1356px; }
.resource-breadcrumbs {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.resource-breadcrumbs a { color: var(--red-text); font-weight: 500; }
.resource-breadcrumbs span { color: var(--muted); }
.resource-actions {
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr);
  margin-bottom: 28px;
}
.resource-inline-form, .resource-upload-form {
  align-items: end;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  padding-top: 16px;
}
.resource-upload-form { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; }
.resource-upload-form .resource-upload-status,
.resource-upload-form .resource-progress { grid-column: 1 / -1; }
.resource-folder-upload-form {
  align-items: end;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) auto;
  padding-top: 16px;
}
.resource-folder-upload-form .resource-upload-status,
.resource-folder-upload-form .resource-progress { grid-column: 1 / -1; }
.resource-progress { accent-color: var(--red); height: 8px; width: 100%; }
.resource-inline-form .button { justify-self: start; }
.resource-upload-status { color: var(--muted); font-size: 12px; margin: 0; min-height: 16px; }
.resource-upload-status.is-error { color: var(--danger); }
.resource-section { margin-top: 24px; }
.resource-section .section-heading { margin-bottom: 12px; }
.resource-section h2 { font-size: 20px; font-weight: 600; margin: 0; }
.resource-folder-list { display: flex; flex-wrap: wrap; gap: 8px; }
.resource-folder {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  display: inline-flex;
  font-weight: 500;
  gap: 8px;
  min-height: 44px;
  padding: 10px 14px;
}
.resource-folder:hover { border-color: var(--line-strong); }
.resource-folder-icon { color: var(--red-text); }
.resource-folder-row { align-items: center; display: flex; gap: 6px; max-width: 100%; }
.resource-folder-row .resource-folder { min-width: 0; overflow-wrap: anywhere; }
.resource-folder-row form { flex: 0 0 auto; }
.button.icon.resource-delete-button {
  align-items: center;
  display: inline-flex;
  height: 38px;
  justify-content: center;
  min-height: 38px;
  min-width: 38px;
  padding: 0;
  width: 38px;
}
.resource-access-list { border-top: 1px solid var(--line); }
.resource-access-row { align-items: center; border-bottom: 1px solid var(--line); display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr) auto minmax(220px, 310px); padding: 14px 0; }
.resource-access-person { display: grid; gap: 4px; min-width: 0; overflow-wrap: anywhere; }
.resource-access-form { align-items: center; display: flex; gap: 12px; justify-content: flex-end; }
.resource-access-form label { align-items: center; display: flex; gap: 8px; margin: 0; }
.resource-access-form input[type="checkbox"] { height: 18px; min-height: 0; width: 18px; }
.resource-list { border-top: 1px solid var(--line); }
.resource-item {
  align-items: start;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 16px;
  grid-template-columns: 112px minmax(0, 1fr) 38px;
  padding: 14px 0;
}
.resource-preview { background: var(--surface-2); border-radius: 10px; display: block; height: 76px; overflow: hidden; width: 112px; }
.resource-preview img { height: 100%; object-fit: contain; width: 100%; }
.resource-info { display: grid; gap: 5px; min-width: 0; }
.resource-info strong, .resource-info a { overflow-wrap: anywhere; }
.resource-info a { color: var(--red-text); font-size: 12px; }
.resource-info .muted { font-size: 12px; }
.resource-item-actions { align-items: start; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; min-width: 0; }
.resource-delete-form { justify-self: end; }
.resource-edit { min-width: 110px; }
.resource-edit summary {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  font-size: 14px;
  font-weight: 500;
  min-height: 38px;
  padding: 0 14px;
}
.resource-edit[open] { width: min(320px, 100%); }
.resource-edit-form { border-bottom: 1px solid var(--line); display: grid; gap: 8px; padding: 10px 0; }
.resource-edit-form .button { justify-self: start; }
.resource-edit > form:last-child { padding-top: 10px; }

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .dash-card:hover, .dash-feature:hover { transform: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .dash-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-pattern { display: none; }
  .dash-feature { grid-template-columns: minmax(0, 1fr); }
  .topbar { gap: 24px; padding: 0 24px; }
  .page { padding: 40px 24px 64px; }
  .site-footer { padding: 0 24px; }
  .account-layout { grid-template-columns: 260px minmax(0, 1fr); }
}

@media (max-width: 900px) {
  .auth-shell { grid-template-columns: minmax(0, 1fr); }
  .auth-aside { gap: 20px; padding: 24px 20px 28px; }
  .auth-pattern { display: none; }
  .auth-headline h2 { font-size: 28px; }
  .auth-headline p { font-size: 15px; }
  .auth-main { align-items: flex-start; padding: 40px 20px 96px; }
  .auth-main > .theme-toggle { right: 20px; top: 20px; }
  .auth-aside .brand { padding-right: 56px; }
  .account-layout { grid-template-columns: minmax(0, 1fr); }
  .account-aside { position: static; }
  .account-nav { display: none; }
  .reports-split { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 720px) {
  :root { --topbar-height: 60px; }
  body { font-size: 15px; }
  .topbar {
    /* backdrop-filter would become the containing block of the fixed client tab bar. */
    backdrop-filter: none;
    background: var(--bg);
    flex-wrap: wrap;
    gap: 8px 12px;
    min-height: var(--topbar-height);
    padding: 8px 16px;
  }
  .brand { gap: 10px; }
  .brand-logo { height: 16px; }
  .brand-divider, .topbar .brand-subtitle { display: none; }
  .topbar-actions { gap: 8px; }
  .theme-toggle { height: 44px; width: 44px; }
  .profile-trigger { height: 44px; width: 44px; }
  .profile-menu-panel { max-width: calc(100vw - 32px); right: 0; }

  /* Admin: nav wraps below the brand row. */
  .nav { flex-basis: 100%; order: 3; padding-bottom: 4px; }
  .nav a { height: 38px; padding: 0 12px; }

  /* Client: nav becomes a bottom tab bar. */
  .nav.nav-client {
    background: var(--surface);
    border-top: 1px solid var(--line);
    bottom: 0;
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    left: 0;
    padding: 8px 16px calc(8px + env(safe-area-inset-bottom));
    position: fixed;
    right: 0;
    z-index: 70;
  }
  .nav.nav-client a { height: 48px; justify-content: center; }
  body:has(.nav-client) { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  body.dashboard-view .nav.nav-client { display: none; }
  body.dashboard-view:has(.nav-client) { padding-bottom: 0; }

  .page { padding: 28px 16px 48px; }
  .page-title { align-items: stretch; flex-direction: column; margin-bottom: 24px; }
  .actions { justify-content: flex-start; }
  .panel { border-radius: 16px; padding: 20px; }
  .account-forms .panel { padding: 20px; }
  .site-footer { flex-direction: column; gap: 4px; justify-content: center; padding: 16px; text-align: center; }

  .client-hero { margin-bottom: 24px; }
  .client-hero h1 { font-size: 34px; }
  .client-hero p:not(.eyebrow) { font-size: 15px; }
  .category-filter { margin-bottom: 20px; }
  .category-filter a { font-size: 13px; height: 36px; padding: 0 14px; }
  .dash-grid { gap: 12px; grid-template-columns: minmax(0, 1fr); }
  .dash-list { gap: 12px; }
  .dash-card { gap: 14px; min-height: 0; padding: 18px; }
  .dash-card-icon { display: none; }
  .dash-card h2 { font-size: 17px; }
  .dash-feature { border-radius: 16px; gap: 16px; min-height: 0; padding: 22px 20px; }
  .dash-feature p { font-size: 15px; }

  .dashboard-page { padding: 0 12px 12px; }
  .dashboard-title { gap: 12px; padding: 12px 0; }
  .dashboard-title h1 { font-size: 17px; }
  .dashboard-meta { display: none; }
  .dashboard-frame { border-radius: 12px; }

  .field-grid { grid-template-columns: minmax(0, 1fr); }
  .type-options { grid-template-columns: minmax(0, 1fr); }
  .native-empty { gap: 24px; grid-template-columns: minmax(0, 1fr); padding: 28px 20px; }
  .native-title .native-actions { display: none; }
  .avatar-upload { align-items: stretch; flex-direction: column; }
  .theme-options { gap: 8px; }
  .theme-preview { height: 56px; }
  .theme-option { padding: 6px 6px 10px; }
  .theme-option-label { font-size: 13px; }
  .form-foot { align-items: stretch; flex-direction: column; }
  .form-foot .actions { margin-left: 0; }

  .filter-panel { grid-template-columns: minmax(0, 1fr); }
  .reports-context { text-align: left; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .company-detail-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .company-detail-summary > div:nth-child(2) { border-right: 0; }
  .company-detail-summary > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .pagination { align-items: stretch; flex-direction: column; }
  .pagination-links { justify-content: flex-start; }
}

@media (max-width: 800px) {
  .resource-actions { grid-template-columns: minmax(0, 1fr); }
  .resource-access-row { grid-template-columns: minmax(0, 1fr) auto; }
  .resource-access-form { grid-column: 1 / -1; justify-content: flex-start; }
  .resource-item { gap: 12px; grid-template-columns: 80px minmax(0, 1fr) 38px; }
  .resource-preview { height: 64px; width: 80px; }
}
@media (max-width: 560px) {
  .resource-upload-form { grid-template-columns: minmax(0, 1fr); }
  .resource-folder-list { display: grid; }
  .resource-folder-row { justify-content: space-between; }
  .resource-folder-upload-form { grid-template-columns: minmax(0, 1fr); }
  .resource-upload-form .resource-upload-status,
  .resource-upload-form .resource-progress,
  .resource-folder-upload-form .resource-upload-status,
  .resource-folder-upload-form .resource-progress { grid-column: auto; }
}

/* Native NPS preview */
.native-nps {
  --section-color: #5c6875;
  --section-soft: color-mix(in srgb, var(--section-color) 9%, var(--surface));
  --section-line: color-mix(in srgb, var(--section-color) 34%, var(--line));
  min-width: 0;
  padding-bottom: 32px;
}
.native-nps.is-section-nps { --section-color: #c83b2d; }
.native-nps.is-section-cx { --section-color: #1877a5; }
.native-nps.is-section-tom { --section-color: #187858; }
.native-nps-toolbar {
  align-items: center;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 0;
  padding: 8px 0;
  position: sticky;
  top: var(--topbar-height);
  z-index: 35;
}
.native-nps-toolbar-primary, .native-nps-toolbar-pages {
  align-items: center;
  display: flex;
  gap: 7px;
  min-width: 0;
}
.native-nps-sidebar { min-width: 0; }
.native-nps-canvas { min-width: 0; }
.native-nps-export-button {
  align-items: center;
  background: var(--section-color);
  border: 1px solid var(--section-color);
  border-radius: 6px;
  color: #fff;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 700;
  gap: 7px;
  height: 34px;
  padding: 0 12px;
}
.native-nps-export-button:hover { filter: brightness(.92); }
.native-nps-nav-button {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  height: 34px;
  justify-content: center;
  padding: 0;
  text-decoration: none;
  width: 34px;
}
.native-nps-nav-button:hover, .native-nps-nav-button:focus-visible {
  background: var(--surface-3);
  border-color: var(--line-strong);
  outline: none;
}
.native-nps-nav-button.is-disabled { cursor: default; opacity: .35; }
.native-nps-page-position {
  background: var(--section-soft);
  border: 1px solid var(--section-line);
  border-radius: 6px;
  display: grid;
  gap: 1px;
  min-width: 58px;
  padding: 4px 9px;
}
.native-nps-page-position span, .native-nps-page-select > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}
.native-nps-page-position strong { color: var(--ink); font-family: var(--font-mono); font-size: 12px; }
.native-nps-page-select { align-items: center; display: flex; gap: 8px; min-width: 0; }
.native-nps-page-select select {
  background: var(--input-bg);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  height: 34px;
  max-width: min(440px, 38vw);
  min-width: 240px;
  padding: 0 30px 0 10px;
}
.native-nps-page-select select:focus-visible {
  border-color: var(--section-color);
  outline: 3px solid color-mix(in srgb, var(--section-color) 20%, transparent);
}
.native-nps-filter-panel {
  background: color-mix(in srgb, var(--section-color) 3%, var(--surface));
  border: 1px solid var(--line);
  border-radius: 6px;
  margin: 10px 0 14px;
  min-width: 0;
  overflow: hidden;
}
.native-nps-wave-form {
  align-items: stretch;
  display: flex;
  gap: 0;
  margin: 0;
  min-width: 0;
  width: 100%;
}
.native-nps-filter-group.is-period { flex: 0 0 210px; }
.native-nps-filter-panel:has(.native-nps-wave-picker[open]) { overflow: visible; }
.native-nps-wave-picker { min-width: 0; position: relative; }
.native-nps-wave-picker summary {
  align-items: center;
  background: var(--input-bg);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--ink);
  cursor: pointer;
  display: grid;
  gap: 2px 8px;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 46px;
  padding: 6px 10px;
}
.native-nps-wave-picker summary::-webkit-details-marker { display: none; }
.native-nps-wave-picker summary span { color: var(--muted); font-size: 10px; font-weight: 650; grid-column: 1; }
.native-nps-wave-picker summary strong { font-size: 12px; grid-column: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.native-nps-wave-picker summary .icon-svg { grid-column: 2; grid-row: 1 / span 2; transform: rotate(90deg); }
.native-nps-wave-picker[open] summary { border-color: var(--section-color); }
.native-nps-wave-picker[open] summary .icon-svg { transform: rotate(270deg); }
.native-nps-wave-picker summary:focus-visible { outline: 2px solid var(--section-color); outline-offset: 2px; }
.native-nps-wave-options {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .16);
  left: 0;
  padding: 10px;
  position: absolute;
  top: calc(100% + 5px);
  width: min(610px, calc(100vw - 42px));
  z-index: 30;
}
.native-nps-wave-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.native-nps-wave-actions button {
  background: var(--surface-3);
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 650;
  padding: 6px 9px;
}
.native-nps-wave-actions button:hover { border-color: var(--section-color); }
.native-nps-wave-options fieldset { border: 0; display: grid; gap: 5px; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; min-width: 0; padding: 0; }
.native-nps-wave-options fieldset label { min-width: 0; }
.native-nps-wave-options fieldset span { justify-content: center; min-height: 31px; padding: 4px 6px; text-align: center; width: 100%; }
.native-nps-wave-submit { display: block; font-size: 11px; margin: 10px 0 0 auto; min-height: 32px; padding: 6px 11px; }
@media (max-width: 620px) { .native-nps-wave-options fieldset { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.native-nps-filter-group.is-countries { flex: 0 0 470px; }
.native-nps-filter-group.is-profile { flex: 1 1 480px; }
.native-nps-filter-group {
  align-content: start;
  display: grid;
  gap: 7px;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
  padding: 11px 14px 13px;
}
.native-nps-filter-group + .native-nps-filter-group { border-left: 1px solid var(--line); }
.native-nps-filter-group-title {
  color: var(--section-color);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
}
.native-nps-filter-group label,
.native-nps-country-fieldset legend {
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}
.native-nps-filter-group > label { display: grid; gap: 5px; }
.native-nps-filter-group select {
  background: var(--input-bg);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  height: 36px;
  min-width: 0;
  padding: 0 30px 0 10px;
  width: 100%;
}
.native-nps-filter-group select:focus-visible {
  border-color: var(--section-color);
  outline: 3px solid color-mix(in srgb, var(--section-color) 18%, transparent);
}
.native-nps-demographic-filters {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(230px, .8fr) minmax(390px, 1.35fr) minmax(110px, .42fr) minmax(120px, .48fr);
  min-width: 0;
  width: 100%;
}
.native-nps-demographic-filters label { min-width: 0; }
.native-nps-visual-filter { border: 0; margin: 0; min-width: 0; padding: 0; }
.native-nps-visual-filter legend,
.native-nps-select-filter > span {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 11px;
  font-weight: 650;
  gap: 5px;
  margin-bottom: 5px;
  padding: 0;
}
.native-nps-choice-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.native-nps-choice-chips label { cursor: pointer; display: block; position: relative; }
.native-nps-choice-chips input {
  height: 1px;
  margin: -1px;
  opacity: 0;
  position: absolute;
  width: 1px;
}
.native-nps-choice-chips span {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--muted);
  display: inline-flex;
  font-size: 11px;
  font-weight: 650;
  gap: 5px;
  min-height: 36px;
  padding: 0 9px;
}
.native-nps-choice-chips input:checked + span {
  background: var(--section-color);
  border-color: var(--section-color);
  color: #fff;
}
.native-nps-choice-chips input:focus-visible + span { outline: 2px solid var(--section-color); outline-offset: 1px; }
.native-nps-select-filter { display: grid; gap: 0; }
.native-nps-country-fieldset { border: 0; margin: 0; min-width: 0; padding: 0; }
.native-nps-country-fieldset legend {
  margin-bottom: 5px;
  padding: 0;
}
.native-nps-country-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.native-nps-country-chips label { cursor: pointer; display: block; min-width: 0; position: relative; }
.native-nps-country-chips input {
  height: 1px;
  margin: -1px;
  opacity: 0;
  position: absolute;
  width: 1px;
}
.native-nps-country-chips span {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--muted);
  display: inline-flex;
  gap: 8px;
  font-size: 12px;
  font-weight: 650;
  min-height: 34px;
  padding: 0 10px;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.native-nps-country-chips .is-all span { font-weight: 750; }
.native-nps-country-chips img {
  border: 1px solid color-mix(in srgb, var(--line-strong) 65%, transparent);
  border-radius: 2px;
  flex: 0 0 auto;
  object-fit: cover;
}
.native-nps-country-chips input:checked + span {
  background: var(--section-soft);
  border-color: var(--section-color);
  color: var(--section-color);
}
.native-nps-country-chips input:focus-visible + span {
  outline: 2px solid var(--section-color);
  outline-offset: 1px;
}
.native-nps-status {
  align-items: center;
  background: var(--warn-bg);
  border-bottom: 1px solid var(--warn-line);
  color: var(--warn);
  display: flex;
  flex-wrap: wrap;
  font-size: 12px;
  gap: 6px 14px;
  margin: 0;
  padding: 7px 11px;
}
.native-nps-status strong { font-size: 12px; }
.native-nps-filter-panel .native-nps-filter-note {
  border-top: 1px solid var(--line);
  margin: 0;
  padding: 8px 14px;
}
.native-nps-heading {
  align-items: flex-end;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding-bottom: 18px;
}
.native-nps-heading h2 {
  color: var(--ink);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  margin: 5px 0 0;
}
.native-nps-global {
  align-items: flex-end;
  background: #14648f;
  border-radius: 6px;
  color: #fff;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  gap: 4px;
  min-width: 190px;
  padding: 12px 16px;
}
.native-nps-global span { font-size: 12px; font-weight: 600; }
.native-nps-heading-with-waves { align-items: center; gap: 12px; }
.native-nps-heading-with-waves > div:first-child { flex: 0 1 370px; min-width: 0; }
.native-nps-heading-with-waves h2 { overflow-wrap: break-word; }
.native-nps-selected-waves {
  align-items: center;
  display: flex;
  flex: 1 1 0;
  gap: 5px;
  min-width: 0;
  overflow-x: auto;
  padding: 3px 0;
  scrollbar-width: thin;
  white-space: nowrap;
}
.native-nps-selected-wave {
  align-items: center;
  background: var(--section-soft);
  border: 1px solid var(--section-line);
  border-radius: 4px;
  color: var(--ink);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 700;
  gap: 4px;
  min-height: 26px;
  padding: 3px 5px 3px 8px;
}
.native-nps-selected-wave button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 3px;
  color: var(--section-color);
  cursor: pointer;
  display: inline-flex;
  height: 20px;
  justify-content: center;
  padding: 0;
  width: 20px;
}
.native-nps-selected-wave button:hover { background: color-mix(in srgb, var(--section-color) 15%, transparent); }
.native-nps-selected-wave-add {
  background: var(--surface);
  border: 1px dashed var(--section-line);
  border-radius: 4px;
  color: var(--section-color);
  cursor: pointer;
  flex: 0 0 28px;
  font: inherit;
  font-size: 18px;
  font-weight: 600;
  height: 27px;
  line-height: 1;
}
.native-nps-selected-wave-add:hover { background: var(--section-soft); }
.native-nps-selected-waves button:focus-visible { outline: 2px solid var(--section-color); outline-offset: 1px; }
@media (max-width: 720px) {
  .native-nps-heading-with-waves > div:first-child { flex: none; width: 100%; }
  .native-nps-heading-with-waves > .native-nps-selected-waves { flex: none; width: 100%; }
}
.native-nps-global strong { font-size: 30px; line-height: 1; }
.native-nps-filters {
  align-items: end;
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 15px 0;
}
.native-nps-filters label, .native-nps-period {
  color: var(--muted);
  display: grid;
  font-size: 12px;
  font-weight: 600;
  gap: 6px;
  min-width: 180px;
}
.native-nps-filters select {
  background: var(--input-bg);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  height: 38px;
  padding: 0 34px 0 11px;
}
.native-nps-filters select:focus-visible { outline: 3px solid var(--focus-ring); }
.native-nps-period strong { color: var(--ink); font-size: 14px; line-height: 38px; }
.native-nps-section-heading {
  align-items: end;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  margin: 28px 0 12px;
}
.native-nps-section-heading h3 { font-size: 16px; margin: 0; }
.native-nps-tabs { border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 4px; }
.native-nps-tabs a {
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 12px;
  text-decoration: none;
}
.native-nps-tabs a:hover { color: var(--ink); }
.native-nps-tabs a.is-active { border-bottom-color: var(--red); color: var(--ink); }
.native-nps-table-wrap { border: 1px solid var(--line); border-radius: 6px; max-height: min(70vh, 760px); overflow: auto; }
.native-nps-table { border-collapse: collapse; min-width: 0; table-layout: fixed; width: 100%; }
.native-nps-table th, .native-nps-table td {
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  overflow-wrap: anywhere;
  padding: 13px 12px;
  text-align: left;
}
.native-nps-table tbody tr:last-child th, .native-nps-table tbody tr:last-child td { border-bottom: 0; }
.native-nps-table thead { background: #12649a; color: #fff; }
.native-nps-table thead th { background: #12649a; font-size: 12px; font-weight: 600; line-height: 1.25; position: sticky; top: 0; z-index: 1; }
.native-nps-table th:first-child { width: 20%; }
.native-nps-table th:nth-child(2) { width: 17%; }
.native-nps-table tbody th { color: var(--ink); font-weight: 700; }
.native-nps-table tbody tr:nth-child(even) { background: var(--surface-3); }
.native-nps-score { position: relative; }
.native-nps-score-bar { background: #c3e1ef; bottom: 8px; left: 7px; position: absolute; top: 8px; width: var(--score-width); }
.native-nps-score strong {
  color: #fff;
  mix-blend-mode: difference;
  position: relative;
}
.native-nps-value.is-high { background: var(--ok-bg); color: var(--ok); }
.native-nps-value.is-low { background: var(--warn-bg); color: var(--warn); }
.native-nps-caption { color: var(--muted); font-size: 12px; margin: 10px 0 0; }
.native-nps-brand-label {
  align-items: center;
  display: inline-flex;
  gap: 9px;
  line-height: 1.25;
  min-width: 0;
  vertical-align: middle;
}
.native-nps-brand-label > span:last-child { overflow-wrap: anywhere; }
.native-nps-brand-avatar {
  align-items: center;
  background: #e7edf2;
  border: 1px solid color-mix(in srgb, var(--line-strong) 70%, transparent);
  border-radius: 6px;
  color: #273744;
  display: inline-flex;
  flex: 0 0 28px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 800;
  height: 28px;
  justify-content: center;
  overflow: hidden;
  width: 28px;
}
.native-nps-brand-avatar img { height: 100%; object-fit: contain; padding: 3px; width: 100%; }
.native-nps-brand-avatar.is-multi-country { flex-basis: 48px; gap: 1px; width: 48px; }
.native-nps-brand-avatar.is-multi-country img { flex: 0 0 22px; height: 22px; padding: 1px; width: 22px; }
.native-nps table .native-nps-brand-label { gap: 6px; }
.native-nps table .native-nps-brand-avatar { flex-basis: 24px; height: 24px; width: 24px; }
.native-nps table .native-nps-brand-avatar.is-multi-country { flex-basis: 42px; width: 42px; }
.native-nps table .native-nps-brand-avatar.is-multi-country img { flex-basis: 19px; height: 19px; width: 19px; }
.native-nps-brand-avatar.tone-1 { background: #e8f3ef; color: #17633c; }
.native-nps-brand-avatar.tone-2 { background: #e8f0f8; color: #175d8e; }
.native-nps-brand-avatar.tone-3 { background: #f8eee2; color: #7a4d12; }
.native-nps-brand-avatar.tone-4 { background: #f5e9e7; color: #9c3328; }
.native-nps-brand-avatar.tone-5 { background: #eeeaf8; color: #594294; }
:root[data-theme="dark"] .native-nps-brand-avatar { border-color: #3b4855; }
.native-nps-active-brand {
  align-items: center;
  background: var(--section-soft);
  border: 1px solid var(--section-line);
  border-radius: 6px;
  display: inline-flex;
  gap: 12px;
  margin: 2px 0 14px;
  padding: 7px 10px;
}
.native-nps-active-brand > span:first-child { color: var(--muted); font-size: 11px; font-weight: 650; }
.native-nps-cx-pyramid {
  container-type: inline-size;
  margin: 8px auto 0;
  max-width: 1120px;
  width: 100%;
}
.native-nps-cx-overall {
  align-items: center;
  background: var(--surface-3);
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  min-height: 76px;
  padding: 12px 20px;
}
.native-nps-cx-overall span { color: var(--ink); font-size: 16px; font-weight: 750; text-transform: uppercase; }
.native-nps-cx-overall strong { color: #126d91; font-size: 30px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.native-nps-cx-diagram {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(150px, .5fr) minmax(260px, 1.1fr) minmax(290px, 1fr);
  margin-top: 18px;
  min-width: 0;
}
.native-nps-cx-effects, .native-nps-cx-stages, .native-nps-cx-metrics {
  display: grid;
  gap: 10px;
  grid-template-rows: repeat(3, 100px);
  margin: 0;
  min-width: 0;
}
.native-nps-cx-effects { padding-left: 42px; position: relative; }
.native-nps-cx-effects::before {
  background: #8497a2;
  bottom: 8px;
  content: "";
  left: 24px;
  position: absolute;
  top: 12px;
  width: 3px;
}
.native-nps-cx-effects::after {
  border-bottom: 10px solid #8497a2;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  content: "";
  left: 18px;
  position: absolute;
  top: 1px;
}
.native-nps-cx-axis {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  left: 0;
  letter-spacing: 0;
  position: absolute;
  text-transform: uppercase;
  top: 50%;
  transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-rl;
}
.native-nps-cx-effect {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.25;
}
.native-nps-cx-tier {
  align-items: center;
  display: flex;
  justify-content: center;
  min-width: 0;
  position: relative;
}
.native-nps-cx-shape {
  bottom: 0;
  display: block;
  height: 100%;
  position: absolute;
  transition: filter .2s ease, transform .2s ease;
}
.native-nps-cx-tier:hover .native-nps-cx-shape { filter: saturate(1.13) brightness(.97); transform: scale(1.025); }
.native-nps-cx-tier strong {
  color: #1b2831;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  max-width: 75%;
  position: relative;
  text-align: center;
  text-transform: uppercase;
}
.native-nps-cx-tier.is-pleasant .native-nps-cx-shape {
  background: #a9cce9;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  width: 60%;
}
.native-nps-cx-tier.is-pleasant strong { padding-top: 38px; }
.native-nps-cx-tier.is-easy .native-nps-cx-shape {
  background: #f5c48f;
  clip-path: polygon(18% 0, 82% 0, 100% 100%, 0 100%);
  width: 78%;
}
.native-nps-cx-tier.is-effective .native-nps-cx-shape {
  background: #d9a6bc;
  clip-path: polygon(14% 0, 86% 0, 100% 100%, 0 100%);
  width: 100%;
}
.native-nps-cx-metric {
  align-items: center;
  border-radius: 6px;
  color: #17232c;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 12px 16px;
}
.native-nps-cx-metric.is-pleasant { background: #d6e8f6; }
.native-nps-cx-metric.is-easy { background: #fbe5c9; }
.native-nps-cx-metric.is-effective { background: #f1d9e3; }
.native-nps-cx-metric dt { display: grid; gap: 3px; min-width: 0; }
.native-nps-cx-metric dt strong { font-size: 15px; }
.native-nps-cx-metric dt small { font-size: 11px; line-height: 1.25; }
.native-nps-cx-metric dd {
  font-size: 24px;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  margin: 0;
  white-space: nowrap;
}
@media (max-width: 900px) {
  .native-nps-cx-diagram { grid-template-columns: minmax(0, 1fr) minmax(240px, 1fr); }
  .native-nps-cx-effects { display: none; }
}
@media (max-width: 620px) {
  .native-nps-cx-overall { min-height: 60px; padding: 10px 12px; }
  .native-nps-cx-overall span { font-size: 12px; }
  .native-nps-cx-overall strong { font-size: 23px; }
  .native-nps-cx-diagram { gap: 8px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin-top: 10px; }
  .native-nps-cx-stages, .native-nps-cx-metrics { gap: 8px; grid-template-rows: repeat(3, 88px); }
  .native-nps-cx-tier strong { font-size: 11px; max-width: 85%; }
  .native-nps-cx-tier.is-pleasant .native-nps-cx-shape { width: 90%; }
  .native-nps-cx-tier.is-easy .native-nps-cx-shape { width: 95%; }
  .native-nps-cx-tier.is-pleasant strong { padding-top: 28px; }
  .native-nps-cx-metric { align-content: center; gap: 4px; grid-template-columns: 1fr; padding: 7px 9px; }
  .native-nps-cx-metric dt { gap: 0; }
  .native-nps-cx-metric dt strong { font-size: 12px; }
  .native-nps-cx-metric dt small { font-size: 10px; }
  .native-nps-cx-metric dd { font-size: 18px; }
}
@container (max-width: 800px) {
  .native-nps-cx-diagram { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .native-nps-cx-effects { display: none; }
}
@container (max-width: 520px) {
  .native-nps-cx-diagram { gap: 8px; margin-top: 10px; }
  .native-nps-cx-stages, .native-nps-cx-metrics { gap: 8px; grid-template-rows: repeat(3, 88px); }
  .native-nps-cx-tier strong { font-size: 11px; max-width: 85%; }
  .native-nps-cx-tier.is-pleasant .native-nps-cx-shape { width: 90%; }
  .native-nps-cx-tier.is-easy .native-nps-cx-shape { width: 95%; }
  .native-nps-cx-tier.is-pleasant strong { padding-top: 28px; }
  .native-nps-cx-metric { align-content: center; gap: 4px; grid-template-columns: 1fr; padding: 7px 9px; }
  .native-nps-cx-metric dt { gap: 0; }
  .native-nps-cx-metric dt strong { font-size: 12px; }
  .native-nps-cx-metric dt small { font-size: 10px; }
  .native-nps-cx-metric dd { font-size: 18px; }
}
@media (min-width: 721px) {
  .native-nps-analysis .native-nps-table-wrap { max-height: 72vh; overflow: auto; }
  .native-nps-analysis .native-nps-table { min-width: 1780px; table-layout: auto; }
  .native-nps-analysis .native-nps-table th,
  .native-nps-analysis .native-nps-table td { min-width: 120px; overflow-wrap: normal; }
  .native-nps-analysis .native-nps-table th:first-child { min-width: 190px; width: 190px; }
  .native-nps-analysis .native-nps-table th:nth-child(2) { min-width: 110px; width: 110px; }
  .native-nps-analysis .native-nps-table thead th { background: #12649a; color: #fff; position: sticky; top: 0; z-index: 1; }
  .native-nps-analysis .native-nps-analysis-group-row th { background: #0f578b; height: 34px; text-align: center; text-transform: uppercase; white-space: nowrap; }
  .native-nps-analysis .native-nps-analysis-group-row th[rowspan] { z-index: 2; }
  .native-nps-analysis .native-nps-analysis-metric-row th { top: 34px; }
}

@media (max-width: 1180px) {
  .native-nps-wave-form { flex-wrap: wrap; }
  .native-nps-filter-group.is-period { flex-basis: 220px; }
  .native-nps-filter-group.is-countries { flex: 1 1 430px; }
  .native-nps-filter-group.is-profile {
    border-left: 0;
    border-top: 1px solid var(--line);
    flex: 0 0 100%;
    width: 100%;
  }
  .native-nps-demographic-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 800px) {
  .native-nps-wave-form { display: block; }
  .native-nps-filter-group + .native-nps-filter-group {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .native-nps-demographic-filters { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 720px) {
  .native-nps-toolbar { align-items: stretch; flex-direction: column; position: static; }
  .native-nps-toolbar-pages { width: 100%; }
  .native-nps-page-select { flex: 1; }
  .native-nps-page-select > span { display: none; }
  .native-nps-page-select select { max-width: none; min-width: 0; width: 100%; }
  .native-nps-country-chips span { font-size: 11px; min-height: 32px; padding: 0 8px; }
  .native-nps-heading { align-items: stretch; flex-direction: column; }
  .native-nps-global { align-items: baseline; flex-direction: row; justify-content: space-between; width: 100%; }
  .native-nps-global strong { font-size: 24px; }
  .native-nps-filters label, .native-nps-period { flex: 1 1 140px; min-width: 0; }
  .native-nps-table thead { display: none; }
  .native-nps-table, .native-nps-table tbody { display: block; }
  .native-nps-table tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .native-nps-table tbody tr + tr { border-top: 1px solid var(--line-strong); }
  .native-nps-table tbody th:first-child { grid-column: 1 / -1; overflow-wrap: normal; width: 100%; }
  .native-nps-table tbody th, .native-nps-table tbody td { border-bottom: 1px solid var(--line); padding: 10px 12px; }
  .native-nps-table tbody td::before {
    color: var(--muted);
    content: attr(data-label);
    display: block;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 4px;
  }
  .native-nps-score-bar { bottom: 5px; top: 21px; }
}

@media (max-width: 460px) {
  .native-nps-demographic-filters { grid-template-columns: minmax(0, 1fr); }
}

.native-nps-navigation, .native-nps-report-nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
  min-width: 0;
}
.native-nps-navigation {
  border-bottom: 1px solid var(--line);
  gap: 8px;
  margin-bottom: 0;
  padding: 0 0 10px;
}
.native-nps-navigation a, .native-nps-report-nav a {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  display: inline-flex;
  flex: 0 1 auto;
  font-size: 12px;
  font-weight: 600;
  gap: 6px;
  line-height: 1.25;
  max-width: 100%;
  min-height: 32px;
  overflow-wrap: anywhere;
  padding: 6px 10px;
  text-decoration: none;
  white-space: normal;
}
.native-nps-navigation a {
  --tab-color: #5c6875;
  background: color-mix(in srgb, var(--tab-color) 5%, var(--surface));
  border-color: color-mix(in srgb, var(--tab-color) 25%, var(--line));
  color: color-mix(in srgb, var(--tab-color) 78%, var(--ink));
  padding-left: 11px;
}
.native-nps-navigation a::before {
  background: var(--tab-color);
  border-radius: 50%;
  content: "";
  flex: 0 0 auto;
  height: 7px;
  width: 7px;
}
.native-nps-navigation a.is-nps { --tab-color: #c83b2d; }
.native-nps-navigation a.is-cx { --tab-color: #1877a5; }
.native-nps-navigation a.is-tom { --tab-color: #187858; }
.native-nps-navigation a:hover, .native-nps-report-nav a:hover {
  background: var(--section-soft);
  color: var(--ink);
}
.native-nps-navigation a:hover { background: color-mix(in srgb, var(--tab-color) 11%, var(--surface)); }
.native-nps-navigation a.is-active {
  background: var(--tab-color);
  border-color: var(--tab-color);
  color: #fff;
}
.native-nps-navigation a.is-active::before {
  background: currentColor;
  box-shadow: 0 0 0 3px color-mix(in srgb, #fff 24%, transparent);
}
.native-nps-report-nav a.is-active {
  background: var(--section-soft);
  border-color: var(--section-color);
  color: var(--section-color);
}
.native-nps-navigation a:focus-visible, .native-nps-report-nav a:focus-visible {
  outline: 2px solid var(--section-color);
  outline-offset: 2px;
}
.native-nps-navigation a:focus-visible { outline-color: var(--tab-color); }
.native-nps-report-nav {
  background: linear-gradient(90deg, var(--section-soft), transparent 68%);
  border-bottom: 1px solid var(--section-line);
  margin-top: 0;
  padding: 9px 8px 10px;
}
.native-dashboard-page {
  max-width: none;
  padding: 24px clamp(12px, 1.5vw, 28px) 40px;
}
.native-dashboard-page .native-title { padding-bottom: 8px; }
.native-dashboard-page .native-meta { margin-bottom: 12px; }
.native-dashboard-page .native-nps-status { padding: 7px 10px; }
.native-dashboard-page .native-nps-heading { padding-bottom: 10px; }
.native-dashboard-page .native-nps-filters { padding: 10px 0; }
.native-dashboard-page .native-nps-section-heading { margin: 16px 0 8px; }

/* Full-screen NPS explorer */
body.native-explorer-body { height: 100vh; height: 100dvh; min-height: 0; overflow: hidden; }
body.native-explorer-body .site-footer { display: none; }
.native-explorer-page {
  background: var(--bg);
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  width: 100%;
}
.native-explorer-header {
  align-items: center;
  background: #111820;
  border-bottom: 1px solid #26323d;
  color: #eef3f5;
  display: grid;
  flex: 0 0 64px;
  gap: 18px;
  grid-template-columns: minmax(300px, 1fr) auto minmax(300px, 1fr);
  min-height: 64px;
  padding: 0 clamp(12px, 1.4vw, 24px);
  position: relative;
  z-index: 60;
}
.native-explorer-brand, .native-explorer-actions, .native-explorer-context {
  align-items: center;
  display: flex;
  min-width: 0;
}
.native-explorer-brand { gap: 10px; }
.native-explorer-brand > div { display: grid; min-width: 0; }
.native-explorer-brand > div span {
  color: var(--red-text);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0;
}
.native-explorer-brand > div strong {
  color: #fff;
  font-size: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.native-explorer-mark {
  align-items: center;
  background: var(--red);
  color: #fff;
  display: inline-flex;
  font-size: 16px;
  font-weight: 800;
  height: 30px;
  justify-content: center;
  width: 30px;
}
.native-explorer-context {
  color: #b8c2ca;
  font-size: 12px;
  font-weight: 650;
  gap: 9px;
  justify-content: center;
}
.native-explorer-context i { background: var(--red); height: 5px; width: 5px; }
.native-explorer-context-flags { display: flex; isolation: isolate; padding-left: 6px; }
.native-explorer-context-flags img {
  border: 2px solid #111820;
  border-radius: 3px;
  height: 18px;
  margin-left: -6px;
  object-fit: cover;
  width: 27px;
}
.native-explorer-actions { gap: 7px; justify-content: flex-end; }
.native-explorer-mode {
  border-bottom: 1px solid #52606c;
  color: #b8c2ca;
  font-size: 12px;
  font-weight: 650;
  padding: 6px 2px 5px;
}
.native-explorer-mode:hover { border-color: var(--red); color: #fff; }
.native-explorer-header .native-nps-nav-button {
  background: #1a242d;
  border-color: #34414d;
  color: #fff;
}
.native-explorer-header .native-nps-nav-button:hover { background: #26333e; border-color: #52606c; }
.native-nps.is-explorer {
  display: grid;
  flex: 1 1 auto;
  grid-template-columns: 320px minmax(0, 1fr);
  grid-template-rows: 52px auto minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
  padding: 0;
  position: relative;
}
.native-nps.is-explorer .native-nps-toolbar {
  background: var(--surface);
  border-top: 0;
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  padding: 8px 22px;
  position: static;
  z-index: 20;
}
.native-nps.is-explorer .native-nps-filter-panel {
  background: var(--surface);
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  transition: max-height .2s ease, opacity .2s ease;
}
.native-nps.is-explorer .native-nps-status {
  background: transparent;
  border: 0;
  padding: 8px 22px 0;
}
.native-nps.is-explorer .native-nps-status strong {
  background: var(--warn-bg);
  border: 1px solid var(--warn-line);
  border-radius: 999px;
  padding: 2px 8px;
}
.native-nps.is-explorer .native-nps-wave-form {
  display: grid;
  grid-template-columns: 160px minmax(300px, 380px) minmax(0, 1fr);
  padding: 0 8px;
}
.native-nps.is-explorer .native-nps-filter-group.is-profile { grid-column: 3; grid-row: 1; }
.native-nps.is-explorer .native-nps-filter-group { padding: 8px 12px; }
.native-nps.is-explorer .native-nps-filter-group.is-brand {
  border-left: 0;
  border-top: 1px solid var(--line);
  grid-column: 1 / -1;
  grid-row: 2;
  flex-basis: auto;
}
.native-nps.is-explorer .native-nps-brand-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.native-nps.is-explorer .native-nps-demographic-filters {
  grid-template-columns: minmax(160px, .9fr) minmax(220px, 1.45fr) minmax(95px, .55fr) minmax(95px, .55fr);
}
.native-nps.is-explorer .native-nps-choice-chips span { min-height: 30px; }
.native-nps.is-explorer .native-nps-filter-group select { height: 32px; }
.native-nps.is-explorer .native-nps-country-chips span { min-height: 30px; }
.native-nps.is-explorer.is-filters-collapsed .native-nps-filter-panel { display: none; }
.native-nps.is-explorer.is-filters-collapsed { grid-template-rows: 52px 0 minmax(0, 1fr); }
.native-nps.is-explorer .native-nps-sidebar {
  background: #111820;
  border-right: 1px solid #25313c;
  color: #eef3f5;
  grid-column: 1;
  grid-row: 1 / 4;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 18px 14px 28px;
  scrollbar-color: #53616d transparent;
  z-index: 45;
}
.native-nps-sidebar-heading {
  align-items: center;
  border-bottom: 1px solid #2a3540;
  display: grid;
  gap: 1px 8px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-bottom: 10px;
  padding: 0 8px 15px;
}
.native-nps-sidebar-heading span {
  color: #8f9ca8;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  grid-column: 1;
  text-transform: uppercase;
}
.native-nps-sidebar-heading strong { font-size: 17px; grid-column: 1; }
.native-nps-sidebar-heading .native-nps-nav-button { display: none; grid-column: 2; grid-row: 1 / 3; }
.native-nps-sidebar-home, .native-nps-sidebar-group nav a, .native-nps-sidebar-section {
  border-radius: 5px;
  color: #b8c2ca;
  display: flex;
  text-decoration: none;
}
.native-nps-sidebar-home {
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 8px 12px;
}
.native-nps-sidebar-home:hover, .native-nps-sidebar-home.is-active { background: #202b35; color: #fff; }
.native-nps-sidebar-group { --sidebar-accent: #c83b2d; border-top: 1px solid #25313c; margin-top: 12px; padding-top: 12px; }
.native-nps-sidebar-group.is-cx { --sidebar-accent: #176d91; }
.native-nps-sidebar-group.is-tom { --sidebar-accent: #167858; }
.native-nps-sidebar-section {
  align-items: center;
  color: #fff;
  cursor: pointer;
  font-size: 11px;
  font-weight: 750;
  justify-content: space-between;
  background: color-mix(in srgb, var(--sidebar-accent) 16%, #111820);
  min-height: 38px;
  padding: 7px 12px;
  text-transform: uppercase;
}
.native-nps-sidebar-section:hover { background: color-mix(in srgb, var(--sidebar-accent) 25%, #111820); }
.native-nps-sidebar-section:focus-visible { outline: 2px solid #f4bf63; outline-offset: 2px; }
.native-nps-sidebar-section::-webkit-details-marker { display: none; }
.native-nps-sidebar-group[open] .native-nps-sidebar-section { background: color-mix(in srgb, var(--sidebar-accent) 22%, #111820); }
.native-nps-sidebar-section span { padding-left: 0; }
.native-nps-sidebar-section-end { align-items: center; display: inline-flex; gap: 9px; }
.native-nps-sidebar-section-end .icon-svg { color: #adbac4; transition: transform .18s ease; }
.native-nps-sidebar-group[open] .native-nps-sidebar-section-end .icon-svg { transform: rotate(90deg); }
.native-nps-sidebar-section small { color: #adbac4; font-family: var(--font-mono); }
.native-nps-sidebar-group nav { display: grid; gap: 2px; margin-top: 2px; }
.native-nps-sidebar-group nav a {
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 7px 11px;
}
.native-nps-sidebar-group nav a > span { color: #82919d; flex: 0 0 28px; font-family: var(--font-mono); font-size: 11px; }
.native-nps-sidebar-group nav a > strong { font-size: 13px; font-weight: 590; line-height: 1.3; }
.native-nps-sidebar-group nav a:hover { background: #1a252e; color: #fff; }
.native-nps-sidebar-group nav a.is-active {
  background: var(--sidebar-accent);
  color: #fff;
}
.native-nps-sidebar-group nav a.is-active > span { color: rgba(255, 255, 255, .78); }
.native-nps-sidebar [hidden] { display: none !important; }
.native-nps-sidebar-search {
  align-items: center;
  background: #1a2732;
  border: 1px solid #394b59;
  border-radius: 5px;
  color: #aebfca;
  display: flex;
  gap: 9px;
  margin: 0 2px 11px;
  min-height: 43px;
  padding: 0 12px;
}
.native-nps-sidebar-search:focus-within { border-color: #69b6d5; box-shadow: 0 0 0 2px rgba(105, 182, 213, .18); }
.native-nps-sidebar-search input { background: none; border: 0; color: #fff; flex: 1; font: inherit; font-size: 13px; min-width: 0; outline: 0; }
.native-nps-sidebar-search input::placeholder { color: #9aabb7; }
.native-nps-search-count { color: #a7b8c4; font-size: 11px; padding: 0 8px 7px; }
.native-nps-favorites { border-bottom: 1px solid #2a3945; margin: 0 0 11px; padding: 0 0 11px; }
.native-nps-favorites-heading { align-items: center; color: #f4bf63; display: flex; font-size: 11px; font-weight: 750; gap: 7px; letter-spacing: 0; padding: 4px 10px 8px; text-transform: uppercase; }
.native-nps-favorites nav { display: grid; gap: 2px; }
.native-nps-sidebar-overview { border-bottom: 1px solid #2a3945; display: grid; margin-bottom: 11px; padding-bottom: 10px; }
.native-nps-sidebar-item {
  --sidebar-accent: #c83b2d;
  align-items: center;
  border-radius: 5px;
  display: flex;
  min-width: 0;
  transition: background-color .15s ease;
}
.native-nps-sidebar-item.is-cx { --sidebar-accent: #176d91; }
.native-nps-sidebar-item.is-tom { --sidebar-accent: #167858; }
.native-nps-sidebar-item.is-overview { --sidebar-accent: #405668; }
.native-nps-sidebar-item:hover { background: #1d2b36; }
.native-nps-sidebar-item.is-active, .native-nps-sidebar-item.is-active:hover { background: var(--sidebar-accent); }
.native-nps-sidebar .native-nps-sidebar-item > a {
  align-items: center;
  color: #c8d2da;
  display: flex;
  flex: 1;
  gap: 8px;
  line-height: 1.3;
  min-height: 45px;
  min-width: 0;
  padding: 8px 4px 8px 11px;
  text-decoration: none;
}
.native-nps-sidebar-item > a strong { font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.native-nps-sidebar-item > a .native-nps-sidebar-number { color: #9badb9; flex: 0 0 27px; font-family: var(--font-mono); font-size: 11px; }
.native-nps-sidebar-group .native-nps-sidebar-item > a:hover,
.native-nps-sidebar-group .native-nps-sidebar-item > a.is-active,
.native-nps-favorites .native-nps-sidebar-item > a:hover,
.native-nps-favorites .native-nps-sidebar-item > a.is-active { background: transparent; color: #fff; }
.native-nps-sidebar-item.is-active > a .native-nps-sidebar-number { color: rgba(255, 255, 255, .83); }
.native-nps-favorite-toggle {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 4px;
  color: #8da1af;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 35px;
  height: 35px;
  justify-content: center;
  margin-right: 3px;
  opacity: 0;
  padding: 0;
  pointer-events: none;
  transition: opacity .15s ease, color .15s ease;
}
.native-nps-sidebar-item:hover .native-nps-favorite-toggle,
.native-nps-sidebar-item:focus-within .native-nps-favorite-toggle { opacity: 1; pointer-events: auto; }
.native-nps-favorite-toggle:hover, .native-nps-favorite-toggle[aria-pressed="true"] { color: #f4bf63; }
.native-nps-favorite-toggle[aria-pressed="true"] svg { fill: #f4bf63; }
.native-nps-sidebar-item.is-active .native-nps-favorite-toggle { color: #fff; }
.native-nps-sidebar-item.is-active .native-nps-favorite-toggle[aria-pressed="true"] svg { fill: #fff; }
.native-nps-favorite-toggle:focus-visible, .native-nps-sidebar-item > a:focus-visible { outline: 2px solid #f4bf63; outline-offset: -2px; }
@media (hover: none) {
  .native-nps-favorite-toggle { opacity: 1; pointer-events: auto; }
}
.native-nps.is-explorer .native-nps-canvas {
  --nps-canvas-gutter: 24px;
  background: var(--surface);
  grid-column: 2;
  grid-row: 3;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.native-nps.is-explorer .native-nps-canvas:has(table) { overflow-x: auto; }
.native-nps.is-explorer .native-nps-canvas > section { padding-top: 12px; }
.native-nps.is-explorer .native-nps-sticky-bar {
  align-items: center;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-sizing: border-box;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  left: calc(-1 * var(--nps-canvas-gutter));
  margin-inline: calc(-1 * var(--nps-canvas-gutter));
  min-height: 60px;
  padding: 8px var(--nps-canvas-gutter);
  position: sticky;
  top: 0;
  width: auto;
  z-index: 20;
}
.native-nps.is-explorer .native-nps-sticky-bar .native-nps-heading {
  flex: 1 1 auto;
  margin: 0;
  min-width: 0;
  padding: 0;
}
.native-nps.is-explorer .native-nps-sticky-bar .native-nps-history-tools {
  align-items: center;
  flex-wrap: nowrap;
  gap: 10px;
  margin: 0;
  padding: 0;
}
.native-nps.is-explorer .native-nps-history-tools label { align-items: center; display: flex; gap: 8px; }
.native-nps.is-explorer .native-nps-history-tools select { height: 34px; min-width: 210px; }
.native-nps.is-explorer .native-nps-history-tools button { white-space: nowrap; }
.native-nps.is-explorer .native-nps-sticky-bar.has-brand-filter .native-nps-filters {
  border: 0;
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
}
.native-nps.is-explorer .native-nps-sticky-bar.has-brand-filter .native-nps-filters label {
  align-items: center;
  display: flex;
  gap: 8px;
  min-width: 0;
  white-space: nowrap;
}
.native-nps.is-explorer .native-nps-sticky-bar.has-brand-filter .native-nps-filters select { height: 34px; max-width: 240px; }
.native-nps.is-explorer .native-nps-sticky-bar.has-brand-filter + section > .native-nps-active-brand { display: none; }
.native-nps.is-explorer .native-nps-history-count { margin: 0; padding: 0; white-space: nowrap; }
.native-nps.is-explorer .native-nps-canvas {
  padding: 0 24px 38px;
  scrollbar-color: var(--line-strong) transparent;
}
.native-nps.is-explorer .native-nps-heading { padding-bottom: 12px; }
.native-nps.is-explorer .native-nps-heading h2 { font-size: 24px; }
.native-nps.is-explorer .native-nps-section-heading { margin: 16px 0 8px; }
.native-nps.is-explorer .native-nps-canvas :is(
  .native-nps-table-wrap,
  .native-nps-history-scroll,
  .native-nps-analysis-detail-scroll,
  .native-nps-proportion-detail-scroll
) {
  max-height: none;
  max-width: none;
  min-width: 100%;
  overflow: visible;
  width: max-content;
}
.native-nps.is-explorer .native-nps-canvas :is(
  .native-nps-table,
  .native-nps-evolution-table,
  .native-nps-history-pivot,
  .native-nps-history-table,
  .native-nps-comparison-pivot,
  .native-nps-quarter-pivot,
  .native-nps-analysis-detail,
  .native-nps-proportion-detail
) thead th {
  position: sticky;
  top: var(--nps-sticky-title-height, 0px);
  z-index: 5;
}
.native-nps.is-explorer .native-nps-canvas :is(
  .native-nps-history-pivot,
  .native-nps-comparison-pivot,
  .native-nps-quarter-pivot,
  .native-nps-analysis-detail,
  .native-nps-proportion-detail
) thead tr:first-child th { height: 40px; }
.native-nps.is-explorer .native-nps-canvas :is(
  .native-nps-history-pivot,
  .native-nps-comparison-pivot,
  .native-nps-quarter-pivot,
  .native-nps-analysis-detail,
  .native-nps-proportion-detail
) thead tr:nth-child(2) th { top: calc(var(--nps-sticky-title-height, 0px) + 40px); }
.native-nps.is-explorer .native-nps-canvas :is(
  .native-nps-history-pivot,
  .native-nps-comparison-pivot,
  .native-nps-quarter-pivot,
  .native-nps-analysis-detail,
  .native-nps-proportion-detail
) thead tr:first-child th:first-child { z-index: 7; }
.native-nps.is-explorer .native-nps-canvas :is(
  .native-nps-history-pivot,
  .native-nps-history-table,
  .native-nps-comparison-pivot,
  .native-nps-quarter-pivot,
  .native-nps-analysis-detail,
  .native-nps-proportion-detail
) tr > th:first-child { left: calc(-1 * var(--nps-canvas-gutter)); }
.native-nps.is-explorer .native-nps-canvas .native-nps-history-table tr > th:nth-child(2) { left: calc(190px - var(--nps-canvas-gutter)); }
@media (max-width: 720px) {
  .native-nps.is-explorer .native-nps-canvas .native-nps-history-table tr > th:nth-child(2) { left: calc(120px - var(--nps-canvas-gutter)); }
}
.native-nps.is-explorer .native-nps-filters { padding: 10px 0; }
.native-nps.is-explorer .native-nps-analysis .native-nps-table-wrap { max-height: none; }
.native-nps.is-explorer .native-nps-canvas .native-nps-heatmap thead th:first-child,
.native-nps.is-explorer .native-nps-canvas .native-nps-heatmap tbody th { left: calc(-1 * var(--nps-canvas-gutter)); }
.native-nps.is-explorer .native-nps-canvas .native-nps-heatmap thead th:first-child { z-index: 8; }
.native-nps.is-explorer .native-nps-canvas .native-nps-heatmap tbody th { z-index: 4; }
.native-nps.is-explorer .native-nps-canvas .native-nps-heatmap:has(tbody th[rowspan]) thead th:nth-child(2),
.native-nps.is-explorer .native-nps-canvas .native-nps-heatmap:has(tbody th[rowspan]) tbody th[scope="row"] {
  left: calc(180px - var(--nps-canvas-gutter));
  position: sticky;
  z-index: 3;
}
@media (max-width: 720px) {
  .native-nps.is-explorer .native-nps-canvas .native-nps-heatmap:has(tbody th[rowspan]) thead th:nth-child(2),
  .native-nps.is-explorer .native-nps-canvas .native-nps-heatmap:has(tbody th[rowspan]) tbody th[scope="row"] { left: calc(155px - var(--nps-canvas-gutter)); }
}
.native-nps-sidebar-trigger, .native-nps-sidebar-scrim { display: none; }

@media (max-width: 1280px) {
  .native-explorer-header { grid-template-columns: minmax(260px, 1fr) auto; }
  .native-explorer-context { display: none; }
}
@media (min-width: 801px) and (max-width: 1800px) {
  .native-nps.is-explorer .native-nps-wave-form { grid-template-columns: 150px minmax(0, 1fr) 230px; }
  .native-nps.is-explorer .native-nps-filter-group.is-countries { grid-column: 2 / -1; grid-row: 1; }
  .native-nps.is-explorer .native-nps-filter-group.is-profile {
    border-left: 0;
    border-top: 1px solid var(--line);
    grid-column: 1 / 3;
    grid-row: 2;
  }
  .native-nps.is-explorer .native-nps-demographic-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .native-nps.is-explorer .native-nps-filter-group.is-brand {
    border-left: 1px solid var(--line);
    grid-column: 3;
    grid-row: 2;
  }
  .native-nps.is-explorer .native-nps-brand-filters { grid-template-columns: minmax(0, 1fr); gap: 6px; }
}
@media (min-width: 1400px) {
  .native-nps.is-explorer .native-nps-wave-form { grid-template-columns: 120px 310px minmax(400px, 1fr) 190px; }
  .native-nps.is-explorer .native-nps-demographic-filters { grid-template-columns: minmax(180px, .8fr) minmax(250px, 1.2fr); }
  .native-nps.is-explorer .native-nps-filter-group.is-brand select { min-width: 0; width: 100%; }
  .native-nps.is-explorer .native-nps-filter-group.is-period { grid-column: 1; grid-row: 1; }
  .native-nps.is-explorer .native-nps-filter-group.is-countries { grid-column: 2; grid-row: 1; }
  .native-nps.is-explorer .native-nps-filter-group.is-profile {
    border-left: 1px solid var(--line);
    border-top: 0;
    grid-column: 3;
    grid-row: 1;
  }
  .native-nps.is-explorer .native-nps-filter-group.is-brand {
    border-left: 1px solid var(--line);
    border-top: 0;
    grid-column: 4;
    grid-row: 1;
  }
}
@media (min-width: 981px) and (max-height: 950px) {
  .native-nps.is-explorer .native-nps-cx-pyramid :is(.native-nps-cx-effects, .native-nps-cx-stages, .native-nps-cx-metrics) { grid-template-rows: repeat(3, 78px); }
  .native-nps.is-explorer .native-nps-cx-tier.is-pleasant strong { padding-top: 24px; }
  .native-nps.is-explorer .native-nps-cx-summary { margin-bottom: 0; padding-bottom: 8px; }
  .native-nps.is-explorer .native-nps-cx-summary div { align-items: center; flex-direction: row; gap: 8px; }
  .native-nps.is-explorer .native-nps-two-col .native-nps-subtitle { margin-top: 12px; }
  .native-nps.is-explorer .native-nps-bar-list { gap: 5px; }
  .native-nps.is-explorer .native-nps-bar-track { height: 18px; }
  .native-nps.is-explorer .native-nps-stack-legend { margin: 8px 0; }
  .native-nps.is-explorer .native-nps-stack-row { padding: 5px 0; }
}
@media (max-width: 800px) {
  .native-nps.is-explorer .native-nps-wave-form { grid-template-columns: minmax(0, 1fr); }
  .native-nps.is-explorer .native-nps-filter-group.is-countries,
  .native-nps.is-explorer .native-nps-filter-group.is-profile,
  .native-nps.is-explorer .native-nps-filter-group.is-brand {
    border-left: 0;
    border-top: 1px solid var(--line);
    grid-column: 1;
    grid-row: auto;
  }
  .native-nps.is-explorer .native-nps-demographic-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .native-nps.is-explorer .native-nps-filter-panel {
    max-height: 42dvh;
    overflow-y: auto;
  }
  .native-nps.is-explorer .native-nps-filter-panel:has(.native-nps-wave-picker[open]) {
    max-height: none;
    overflow: visible;
  }
}

@media (max-width: 620px) {
  .native-nps.is-explorer .native-nps-wave-form { grid-template-columns: minmax(0, 1fr); }
  .native-nps.is-explorer .native-nps-demographic-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .native-nps.is-explorer .native-nps-filter-group.is-countries { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 980px) {
  .native-nps.is-explorer .native-nps-sticky-bar { align-items: flex-start; flex-wrap: wrap; }
  .native-nps.is-explorer .native-nps-sticky-bar .native-nps-heading { flex-basis: 100%; }
  .native-nps.is-explorer .native-nps-sticky-bar .native-nps-history-tools { flex-wrap: wrap; width: 100%; }
  .native-nps.is-explorer .native-nps-history-count { white-space: normal; }
}

@media (max-width: 620px) {
  .native-nps.is-explorer .native-nps-filter-group.is-profile,
  .native-nps.is-explorer .native-nps-filter-group.is-brand { grid-column: 1; }
  .native-nps.is-explorer .native-nps-brand-filters { grid-template-columns: minmax(0, 1fr); }
  .native-nps.is-explorer .native-nps-sticky-bar { gap: 6px; min-height: 0; padding: 7px 10px; }
  .native-nps.is-explorer .native-nps-sticky-bar .section-eyebrow { display: none; }
  .native-nps.is-explorer .native-nps-sticky-bar .native-nps-heading h2 { font-size: 16px; line-height: 1.2; }
  .native-nps.is-explorer .native-nps-sticky-bar .native-nps-history-tools {
    align-items: center;
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .native-nps.is-explorer .native-nps-sticky-bar .native-nps-history-tools label {
    display: block;
    font-size: 0;
    min-width: 0;
  }
  .native-nps.is-explorer .native-nps-history-tools select { font-size: 12px; min-width: 0; width: 100%; }
  .native-nps.is-explorer .native-nps-history-count { display: none; }
}

@media (min-width: 1900px) {
  .native-explorer-header { min-height: 72px; flex-basis: 72px; padding-left: 22px; padding-right: 22px; }
  .native-explorer-brand > div strong { font-size: 17px; }
  .native-nps.is-explorer { grid-template-columns: 380px minmax(0, 1fr); grid-template-rows: 58px auto minmax(0, 1fr); }
  .native-nps.is-explorer .native-nps-toolbar { padding-left: 28px; padding-right: 28px; }
  .native-nps.is-explorer .native-nps-sidebar { padding: 22px 18px 34px; }
  .native-nps-sidebar-heading strong { font-size: 19px; }
  .native-nps-sidebar-home { font-size: 15px; min-height: 48px; }
  .native-nps-sidebar-section { font-size: 13px; min-height: 43px; }
  .native-nps-sidebar-group nav a { min-height: 48px; padding: 9px 13px; }
  .native-nps-sidebar-group nav a > span { flex-basis: 32px; font-size: 12px; }
  .native-nps-sidebar-group nav a > strong { font-size: 15px; }
  .native-nps-sidebar-search { min-height: 50px; }
  .native-nps-sidebar-search input { font-size: 15px; }
  .native-nps-sidebar .native-nps-sidebar-item > a { min-height: 50px; padding-bottom: 9px; padding-top: 9px; }
  .native-nps-sidebar-item > a strong { font-size: 15px; }
  .native-nps-favorite-toggle { flex-basis: 40px; height: 40px; }
  .native-nps-brand-avatar { flex-basis: 34px; height: 34px; width: 34px; }
  .native-nps-brand-label { font-size: 14px; }
  .native-nps.is-explorer .native-nps-canvas { --nps-canvas-gutter: 32px; padding: 0 32px 44px; }
}

@media (min-width: 2800px) {
  .native-nps.is-explorer { grid-template-columns: 440px minmax(0, 1fr); }
  .native-nps-sidebar-group nav a > strong { font-size: 16px; }
  .native-nps-sidebar-item > a strong { font-size: 16px; }
  .native-nps.is-explorer .native-nps-canvas { --nps-canvas-gutter: 40px; padding-left: 40px; padding-right: 40px; }
}

@media (min-width: 981px) {
  .native-nps.is-explorer .native-nps-sidebar { box-sizing: border-box; height: 100%; padding: 6px 12px 4px; }
  .native-nps.is-explorer .native-nps-sidebar-heading { margin-bottom: 5px; padding: 0 6px 8px; }
  .native-nps.is-explorer .native-nps-sidebar-search { margin-bottom: 5px; min-height: 38px; }
  .native-nps.is-explorer .native-nps-sidebar-overview { margin-bottom: 5px; padding-bottom: 5px; }
  .native-nps.is-explorer .native-nps-sidebar-group { margin-top: 2px; padding-top: 2px; }
  .native-nps.is-explorer .native-nps-sidebar-section { min-height: 30px; padding: 5px 9px; }
  .native-nps.is-explorer .native-nps-sidebar-group nav { gap: 0; margin-top: 0; }
  .native-nps.is-explorer .native-nps-sidebar .native-nps-sidebar-item > a { min-height: 30px; padding: 4px 4px 4px 9px; }
  .native-nps.is-explorer .native-nps-sidebar-item > a .native-nps-sidebar-number { flex-basis: 24px; }
  .native-nps.is-explorer .native-nps-sidebar-item > a strong { line-height: 1.25; }
  .native-nps.is-explorer .native-nps-favorite-toggle { flex: 0 0 28px; height: 28px; margin-right: 0; }
}

@media (max-width: 980px) {
  .native-nps.is-explorer { grid-template-columns: minmax(0, 1fr); }
  .native-nps.is-explorer .native-nps-toolbar,
  .native-nps.is-explorer .native-nps-filter-panel,
  .native-nps.is-explorer .native-nps-canvas { grid-column: 1; }
  .native-nps.is-explorer .native-nps-sidebar {
    bottom: 0;
    box-shadow: 18px 0 46px rgba(0, 0, 0, .34);
    grid-column: 1;
    grid-row: 1 / 4;
    left: 0;
    max-width: min(320px, 86vw);
    position: absolute;
    top: 0;
    transform: translateX(-105%);
    transition: transform .2s ease;
    width: 100%;
  }
  .native-nps.is-explorer.is-sidebar-open .native-nps-sidebar { transform: translateX(0); }
  .native-nps-sidebar-trigger { display: inline-flex; }
  .native-nps-sidebar-heading .native-nps-nav-button { background: #202b35; border-color: #34424e; color: #fff; display: inline-flex; }
  .native-nps-sidebar-scrim {
    background: rgba(3, 8, 12, .56);
    border: 0;
    bottom: 0;
    grid-column: 1;
    grid-row: 1 / 4;
    left: 0;
    opacity: 0;
    padding: 0;
    pointer-events: none;
    position: absolute;
    right: 0;
    top: 0;
    transition: opacity .2s ease;
    z-index: 40;
  }
  .native-nps.is-explorer.is-sidebar-open .native-nps-sidebar-scrim { display: block; opacity: 1; pointer-events: auto; }
}

.native-nps.has-nps-motion .native-nps-score-bar,
.native-nps.has-nps-motion .native-nps-bar-track i,
.native-nps.has-nps-motion .native-nps-proportion-bar span,
.native-nps.has-nps-motion .native-nps-stack span {
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .58s cubic-bezier(.22, .78, .24, 1), filter .16s ease;
}
.native-nps.has-nps-motion .native-nps-score-bar.is-revealed,
.native-nps.has-nps-motion .native-nps-bar-track i.is-revealed,
.native-nps.has-nps-motion .native-nps-proportion-bar span.is-revealed,
.native-nps.has-nps-motion .native-nps-stack span.is-revealed { transform: scaleX(1); }
.native-nps.has-nps-motion .native-nps-cx-tier { opacity: 0; transform: translateY(9px); transition: opacity .4s ease, transform .4s ease; }
.native-nps.has-nps-motion .native-nps-cx-tier.is-revealed { opacity: 1; transform: translateY(0); }
.native-nps-canvas .native-nps-bar-row:hover .native-nps-bar-track i,
.native-nps-canvas .native-nps-proportion-bar span:hover,
.native-nps-canvas .native-nps-stack span:hover { filter: brightness(1.17) saturate(1.13); }
.native-nps-canvas .native-nps-bar-row:hover,
.native-nps-canvas .native-nps-stack-row:hover { background: color-mix(in srgb, var(--tone-3) 5%, transparent); }
.native-nps-canvas .native-nps-table tbody tr:hover,
.native-nps-canvas .native-nps-evolution-table tbody tr:hover { background: color-mix(in srgb, var(--tone-3) 9%, var(--surface)); }
.native-nps-chart-tooltip {
  background: #17222d;
  border: 1px solid #394956;
  border-radius: 5px;
  box-shadow: 0 9px 24px rgba(0, 0, 0, .17);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  max-width: min(320px, 75vw);
  padding: 8px 10px;
  pointer-events: none;
  position: fixed;
  z-index: 120;
}

.native-nps-assistant { bottom: 18px; position: fixed; right: 20px; z-index: 110; }
.native-nps-assistant [hidden] { display: none !important; }
.native-nps-assistant-launch {
  align-items: center;
  background: #f5f8fa;
  border: 1px solid #9fb7c4;
  border-radius: 50%;
  box-shadow: 0 8px 30px rgba(11, 32, 48, .22);
  cursor: pointer;
  display: flex;
  height: 70px;
  justify-content: center;
  margin-left: auto;
  padding: 2px;
  position: relative;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  width: 70px;
}
.native-nps-assistant-launch:hover { border-color: #227ca9; box-shadow: 0 12px 34px rgba(11, 32, 48, .28); transform: translateY(-3px); }
.native-nps-assistant-launch img { height: 64px; object-fit: contain; width: 64px; }
.native-nps-assistant-ai-mark { align-items: center; background: #fff; border: 1px solid #9fb7c4; border-radius: 50%; box-shadow: 0 2px 7px rgba(11, 32, 48, .13); color: #176a98; display: flex; height: 24px; justify-content: center; position: absolute; right: -3px; top: -3px; width: 24px; }
.native-nps-assistant-launch-tip { background: #142331; border: 1px solid #526477; border-radius: 4px; bottom: calc(100% + 10px); box-shadow: 0 7px 20px rgba(0, 0, 0, .2); color: #fff; font-size: 12px; font-weight: 700; opacity: 0; padding: 7px 10px; pointer-events: none; position: absolute; right: 0; transform: translateY(5px); transition: opacity .15s ease, transform .15s ease; white-space: nowrap; }
.native-nps-assistant-launch:hover .native-nps-assistant-launch-tip, .native-nps-assistant-launch:focus-visible .native-nps-assistant-launch-tip { opacity: 1; transform: translateY(0); }
.native-nps-assistant-panel {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  box-shadow: 0 20px 55px rgba(8, 23, 32, .28);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  height: min(650px, calc(100dvh - 44px));
  margin-bottom: 0;
  overflow: hidden;
  width: min(480px, calc(100vw - 26px));
}
.native-nps-assistant-head { align-items: center; background: #142331; color: #f3f7f8; display: flex; gap: 10px; min-height: 66px; padding: 8px 12px; }
.native-nps-assistant-head img { background: #f5f8fa; border-radius: 50%; flex: 0 0 40px; object-fit: contain; }
.native-nps-assistant-head > div { display: grid; flex: 1; gap: 2px; min-width: 0; }
.native-nps-assistant-head strong { font-size: 14px; }
.native-nps-assistant-head span { color: #a7b9c6; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.native-nps-assistant-head .native-nps-nav-button { background: #223746; border-color: #354e5e; color: #fff; }
.native-nps-assistant-head .native-nps-nav-button[aria-pressed="true"] { background: #227ca9; border-color: #69b6d5; }
.native-nps-assistant-conversation, .native-nps-assistant-history { display: flex; flex: 1; flex-direction: column; min-height: 0; }
.native-nps-assistant-messages { display: flex; flex: 1; flex-direction: column; gap: 12px; min-height: 0; overflow: auto; padding: 16px; }
.native-nps-assistant-intro { color: var(--muted); font-size: 13px; margin: auto 0; text-align: center; }
.native-nps-assistant-message { border: 1px solid var(--line); border-radius: 7px; font-size: 13px; line-height: 1.5; max-width: 96%; overflow-wrap: anywhere; padding: 10px 12px; }
.native-nps-assistant-message p { margin: 0; white-space: pre-line; }
.native-nps-assistant-message.is-user { align-self: flex-end; background: color-mix(in srgb, #227ca9 13%, var(--surface)); border-color: color-mix(in srgb, #227ca9 35%, var(--line)); }
.native-nps-assistant-message.is-answer { align-self: flex-start; background: var(--surface-3); }
.native-nps-assistant-message.is-error { align-self: flex-start; background: var(--warn-bg); color: var(--warn); }
.native-nps-assistant-sources { border-top: 1px solid var(--line); color: var(--muted); display: block; font-size: 10px; line-height: 1.35; margin-top: 10px; padding-top: 7px; }
.native-nps-assistant-research { align-items: center; border-top: 1px solid var(--line); color: var(--muted); display: flex; font-size: 12px; font-weight: 650; gap: 8px; min-height: 64px; padding: 5px 16px; }
.native-nps-assistant-research-scene { flex: 0 0 96px; height: 54px; position: relative; }
.native-nps-assistant-research-scene img { height: 66px; left: 0; object-fit: contain; position: absolute; top: -6px; width: 66px; animation: nps-research-bob 1.45s ease-in-out infinite; }
.native-nps-assistant-mini-cloud { background: #d5ebf3; border: 1px solid #8cb9cb; border-radius: 50%; height: 11px; position: absolute; right: 0; top: 7px; width: 16px; animation: nps-research-ask 1.7s ease-in-out infinite; }
.native-nps-assistant-mini-cloud.is-two { height: 8px; right: 5px; top: 28px; width: 12px; animation-delay: .55s; }
.native-nps-research-prop { display: none; position: absolute; }
.native-nps-assistant-research-scene[data-scene="0"] .is-first { animation: nps-research-blink .7s steps(2) infinite; background: #e28152; display: block; height: 12px; right: 3px; top: 20px; width: 3px; }
.native-nps-assistant-research-scene[data-scene="1"] .native-nps-assistant-mini-cloud { animation: nps-research-ask .9s ease-in-out infinite alternate; }
.native-nps-assistant-research-scene[data-scene="2"] .is-first { animation: nps-research-scan 1.35s ease-in-out infinite; background: rgba(35, 150, 190, .5); display: block; height: 36px; right: 6px; top: 9px; width: 4px; }
.native-nps-assistant-research-scene[data-scene="3"] .native-nps-research-prop { animation: nps-research-grow 1.1s ease-in-out infinite alternate; background: #2d96ba; bottom: 5px; display: block; width: 7px; }
.native-nps-assistant-research-scene[data-scene="3"] .is-first { height: 14px; right: 21px; }
.native-nps-assistant-research-scene[data-scene="3"] .is-second { animation-delay: .22s; height: 27px; right: 12px; }
.native-nps-assistant-research-scene[data-scene="3"] .is-third { animation-delay: .42s; background: #c83b2d; height: 38px; right: 3px; }
.native-nps-assistant-research-scene[data-scene="4"] .is-first { animation: nps-research-inspect 1.6s ease-in-out infinite; border: 3px solid #2d96ba; border-radius: 50%; display: block; height: 19px; right: 7px; top: 11px; width: 19px; }
.native-nps-assistant-research-scene[data-scene="4"] .is-second { animation: nps-research-inspect 1.6s ease-in-out infinite; background: #2d96ba; display: block; height: 12px; right: 4px; top: 27px; transform: rotate(-40deg); width: 3px; }
.native-nps-assistant-research-scene[data-scene="5"] .is-first, .native-nps-assistant-research-scene[data-scene="5"] .is-second { animation: nps-research-compare 1.4s ease-in-out infinite alternate; background: #b7d9e7; border: 1px solid #2d96ba; border-radius: 2px; display: block; height: 29px; right: 17px; top: 12px; width: 20px; }
.native-nps-assistant-research-scene[data-scene="5"] .is-second { animation-delay: .3s; background: #f3d3c9; border-color: #c83b2d; right: 0; }
.native-nps-assistant-research-scene[data-scene="6"] .native-nps-research-prop { animation: nps-research-connect 1.4s ease-in-out infinite; background: #2d96ba; border-radius: 50%; display: block; height: 9px; right: 4px; top: 5px; width: 9px; }
.native-nps-assistant-research-scene[data-scene="6"] .is-second { animation-delay: .22s; right: 21px; top: 24px; }
.native-nps-assistant-research-scene[data-scene="6"] .is-third { animation-delay: .44s; background: #c83b2d; right: 4px; top: 43px; }
.native-nps-assistant-research-scene[data-scene="7"] .is-first { animation: nps-research-verify 1.2s ease-in-out infinite; border-bottom: 4px solid #16946b; border-right: 4px solid #16946b; display: block; height: 23px; right: 7px; top: 10px; transform: rotate(45deg); width: 12px; }
.native-nps-assistant-research-scene[data-scene="8"] .is-first { animation: nps-research-flip 1.5s ease-in-out infinite; background: #fff; border: 2px solid #2d96ba; border-radius: 2px; display: block; height: 32px; right: 5px; top: 10px; width: 27px; }
.native-nps-assistant-research-scene[data-scene="8"] .is-second { background: #c83b2d; display: block; height: 4px; right: 8px; top: 18px; width: 21px; }
.native-nps-assistant-research-scene[data-scene="9"] .is-first { animation: nps-research-report 1.4s ease-in-out infinite; background: #fff; border: 2px solid #2d96ba; border-radius: 2px; display: block; height: 36px; right: 4px; top: 12px; width: 28px; }
.native-nps-assistant-research-scene[data-scene="9"] .is-second, .native-nps-assistant-research-scene[data-scene="9"] .is-third { background: #94b6c8; display: block; height: 3px; right: 9px; top: 24px; width: 18px; }
.native-nps-assistant-research-scene[data-scene="9"] .is-third { top: 32px; width: 12px; }
.native-nps-assistant-dots { color: #227ca9; letter-spacing: 2px; }
.native-nps-assistant-form { border-top: 1px solid var(--line); display: grid; gap: 5px; padding: 11px 14px 13px; }
.native-nps-assistant-form label { color: var(--ink); font-size: 12px; font-weight: 700; }
.native-nps-assistant-form input { background: var(--input-bg); border: 1px solid var(--line-strong); border-radius: 5px; color: var(--ink); font: inherit; font-size: 13px; height: 42px; min-width: 0; padding: 0 11px; width: 100%; }
.native-nps-assistant-form input:focus-visible, .native-nps-assistant-launch:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
.native-nps-assistant-chart { margin: 12px 0 0; min-width: 0; }
.native-nps-assistant-chart figcaption { font-size: 12px; font-weight: 700; margin-bottom: 8px; }
.native-nps-assistant-chart-box { height: 260px; position: relative; width: 100%; }
.native-nps-assistant-history-toolbar { align-items: center; border-bottom: 1px solid var(--line); display: flex; gap: 12px; justify-content: space-between; padding: 14px 16px; }
.native-nps-assistant-history-toolbar strong { font-size: 14px; }
.native-nps-assistant-history-toolbar button, .native-nps-history-back { background: none; border: 0; color: #227ca9; cursor: pointer; font: inherit; font-size: 12px; font-weight: 700; padding: 4px 0; }
.native-nps-assistant-history-toolbar button:hover, .native-nps-history-back:hover { text-decoration: underline; }
.native-nps-assistant-history-list, .native-nps-assistant-history-detail { flex: 1; min-height: 0; overflow: auto; }
.native-nps-assistant-history-list { padding: 0 16px; }
.native-nps-history-item { background: transparent; border: 0; border-bottom: 1px solid var(--line); color: var(--ink); cursor: pointer; display: grid; gap: 5px; padding: 13px 2px; text-align: left; width: 100%; }
.native-nps-history-item:hover, .native-nps-history-item:focus-visible { background: var(--surface-3); }
.native-nps-history-item strong { font-size: 12px; font-weight: 700; line-height: 1.4; }
.native-nps-history-item span { color: var(--muted); font-size: 10px; }
.native-nps-assistant-history-empty { color: var(--muted); font-size: 13px; padding: 20px 0; }
.native-nps-assistant-history-detail { padding: 16px; }
.native-nps-assistant-history-detail h3 { font-size: 15px; line-height: 1.35; margin: 14px 0 5px; }
.native-nps-assistant-history-detail > small { color: var(--muted); display: block; font-size: 11px; }
.native-nps-assistant-history-detail > p { font-size: 13px; line-height: 1.55; white-space: pre-line; }
@keyframes nps-research-bob { 50% { transform: translateY(-3px) rotate(-2deg); } }
@keyframes nps-research-ask { 50% { opacity: .55; transform: translateY(-6px) scale(1.08); } }
@keyframes nps-research-blink { 50% { opacity: 0; } }
@keyframes nps-research-scan { 50% { transform: translateX(-21px); } }
@keyframes nps-research-grow { 50% { transform: scaleY(.4); transform-origin: bottom; } }
@keyframes nps-research-inspect { 50% { margin-right: 12px; margin-top: -5px; } }
@keyframes nps-research-compare { 50% { transform: translateX(-6px) rotate(-5deg); } }
@keyframes nps-research-connect { 50% { opacity: .35; transform: scale(1.4); } }
@keyframes nps-research-verify { 50% { opacity: .4; transform: rotate(45deg) scale(.7); } }
@keyframes nps-research-flip { 50% { transform: rotateY(75deg); } }
@keyframes nps-research-report { 50% { transform: translateY(-7px); } }
@media (min-width: 2800px) {
  .native-nps-assistant-launch { height: 84px; width: 84px; }
  .native-nps-assistant-launch img { height: 76px; width: 76px; }
  .native-nps-assistant-panel { width: 560px; }
}
@media (max-width: 560px) {
  .native-nps-assistant { bottom: 12px; right: 12px; }
  .native-nps-assistant-panel { height: min(620px, calc(100dvh - 24px)); }
}
@media (prefers-reduced-motion: reduce) {
  .native-nps-assistant *, .native-nps.has-nps-motion .native-nps-score-bar, .native-nps.has-nps-motion .native-nps-bar-track i,
  .native-nps.has-nps-motion .native-nps-proportion-bar span, .native-nps.has-nps-motion .native-nps-stack span,
  .native-nps.has-nps-motion .native-nps-cx-tier { animation: none !important; transition: none !important; }
}

@media (max-width: 720px) {
  .native-explorer-header { flex-basis: 58px; grid-template-columns: minmax(0, 1fr) auto; min-height: 58px; }
  .native-explorer-mark { display: none; }
  .native-explorer-brand > .native-nps-nav-button { height: 32px; width: 32px; }
  .native-explorer-brand > div span { display: none; }
  .native-explorer-brand > div strong { font-size: 13px; }
  .native-explorer-mode { display: none; }
  .native-nps.is-explorer { grid-template-rows: auto auto minmax(0, 1fr); }
  .native-nps.is-explorer .native-nps-toolbar { align-items: center; flex-direction: row; flex-wrap: wrap; padding: 7px 10px; }
  .native-nps.is-explorer .native-nps-toolbar-primary { flex: 1 1 auto; }
  .native-nps.is-explorer .native-nps-toolbar-pages { flex: 1 1 100%; }
  .native-nps.is-explorer .native-nps-page-select > span { display: none; }
  .native-nps.is-explorer .native-nps-export-button span { display: none; }
  .native-nps.is-explorer .native-nps-export-button { justify-content: center; padding: 0; width: 34px; }
  .native-nps.is-explorer .native-nps-canvas { --nps-canvas-gutter: 10px; padding: 0 10px 28px; }
  .native-nps.is-explorer .native-nps-heading h2 { font-size: 20px; }
}
@media (max-width: 720px) {
  .native-dashboard-page { padding-top: 20px; }
  .native-nps-navigation a, .native-nps-report-nav a { font-size: 12px; padding: 6px 8px; }
}

.native-nps-directory-heading { border-bottom: 1px solid var(--line); padding: 8px 0 20px; }
.native-nps.is-section-overview:not(.is-explorer) { display: flex; flex-direction: column; }
.native-nps.is-section-overview:not(.is-explorer) .native-nps-toolbar { order: 0; }
.native-nps.is-section-overview:not(.is-explorer) .native-nps-canvas { order: 1; }
.native-nps.is-section-overview:not(.is-explorer) .native-nps-filter-panel { order: 2; }
.native-nps.is-section-overview:not(.is-explorer) .native-nps-sidebar { display: none; }
.native-nps-directory-heading h2 { font-size: 23px; line-height: 1.25; margin: 5px 0 8px; }
.native-nps-directory-heading p { color: var(--muted); font-size: 13px; margin: 0; }
.native-nps-directory-heading .native-nps-selected-waves { margin-top: 10px; max-width: 100%; }
.native-nps-directory-list { border-bottom: 1px solid var(--line); }
.native-nps-directory { container-type: inline-size; }
.native-nps-directory-list.is-home { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.native-nps-directory-list.is-home .native-nps-home-group { border-top: 0; min-width: 0; }
.native-nps-directory-list.is-home .native-nps-home-group.is-nps { grid-column: 1 / -1; }
.native-nps-directory-list.is-home .native-nps-home-group.is-tom { border-left: 1px solid var(--line); }
.native-nps-directory-list.is-home .native-nps-home-pages { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-left: 0; }
.native-nps-directory-list.is-home .native-nps-home-pages .native-nps-directory-row { border-bottom: 1px solid var(--line); border-top: 0; min-height: 42px; padding: 6px 10px; }
.native-nps-directory-list.is-home .native-nps-home-group > .native-nps-directory-row { min-height: 48px; padding: 8px 12px; }
.native-nps-directory-list.is-home .native-nps-directory-row strong { font-size: 12px; line-height: 1.3; }
@container (min-width: 950px) {
  .native-nps-directory-list.is-home { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .native-nps-directory-list.is-home .native-nps-home-group.is-nps { grid-column: span 2; }
  .native-nps-directory-list.is-home .native-nps-home-group.is-cx { border-left: 1px solid var(--line); }
  .native-nps-directory-list.is-home .native-nps-home-pages { grid-template-columns: minmax(0, 1fr); }
  .native-nps-directory-list.is-home .native-nps-home-group.is-nps .native-nps-home-pages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container (max-width: 599px) {
  .native-nps-directory-list.is-home { grid-template-columns: minmax(0, 1fr); }
  .native-nps-directory-list.is-home .native-nps-home-group.is-nps { grid-column: 1; }
  .native-nps-directory-list.is-home .native-nps-home-group.is-tom { border-left: 0; }
  .native-nps-directory-list.is-home .native-nps-home-group + .native-nps-home-group { border-top: 1px solid var(--line); }
  .native-nps-directory-list.is-home .native-nps-home-pages { grid-template-columns: minmax(0, 1fr); }
}
.native-nps-directory-tabs { display: none; }
@container (max-width: 949px) {
  .native-nps-directory-tabs { border-bottom: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .native-nps-directory-tab { background: transparent; border: 0; color: var(--muted); cursor: pointer; font: inherit; font-size: 12px; font-weight: 700; min-height: 44px; padding: 8px; }
  .native-nps-directory-tab:hover { background: var(--surface-3); color: var(--ink); }
  .native-nps-directory-tab[aria-pressed="true"] { box-shadow: inset 0 -3px currentColor; color: var(--ink); }
  .native-nps-directory-tab.is-nps[aria-pressed="true"] { color: #c83b2d; }
  .native-nps-directory-tab.is-cx[aria-pressed="true"] { color: #176d91; }
  .native-nps-directory-tab.is-tom[aria-pressed="true"] { color: #167858; }
  .native-nps-directory-list.is-home { display: block; }
  .native-nps-directory-list.is-home .native-nps-home-group { display: none; }
  .native-nps-directory-list.is-home .native-nps-home-group.is-active { display: block; }
  .native-nps-directory-list.is-home .native-nps-home-group.is-tom { border-left: 0; }
  .native-nps-directory-list.is-home .native-nps-home-pages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.native-nps-directory-row {
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--ink);
  display: grid;
  gap: 14px;
  grid-template-columns: 40px minmax(0, 1fr) auto 20px;
  min-height: 60px;
  padding: 10px 8px;
  text-decoration: none;
}
a.native-nps-directory-row:hover { background: var(--surface-3); }
.native-nps-home-group { --home-accent: #c83b2d; border-top: 1px solid var(--line); }
.native-nps-home-group.is-cx { --home-accent: #176d91; }
.native-nps-home-group.is-tom { --home-accent: #167858; }
.native-nps-home-group > .native-nps-directory-row { border-top: 0; cursor: pointer; list-style: none; }
.native-nps-home-group > .native-nps-directory-row::-webkit-details-marker { display: none; }
.native-nps-home-group > .native-nps-directory-row:hover,
.native-nps-home-group[open] > .native-nps-directory-row { background: color-mix(in srgb, var(--home-accent) 10%, var(--surface)); }
.native-nps-home-group > .native-nps-directory-row:focus-visible { outline: 2px solid var(--home-accent); outline-offset: -2px; }
.native-nps-home-group > .native-nps-directory-row .icon-svg { color: var(--home-accent); transition: transform .18s ease; }
.native-nps-home-group[open] > .native-nps-directory-row .icon-svg { transform: rotate(90deg); }
.native-nps-home-pages { border-top: 1px solid var(--line); display: grid; padding-left: 40px; }
.native-nps-home-pages .native-nps-directory-row { border-top: 0; grid-template-columns: 30px minmax(0, 1fr) 20px; min-height: 48px; }
.native-nps-home-pages .native-nps-directory-row + .native-nps-directory-row { border-top: 1px solid var(--line); }
.native-nps-home-pages .native-nps-directory-row:hover { background: color-mix(in srgb, var(--home-accent) 7%, var(--surface)); }
.native-nps-home-pages .native-nps-directory-row .icon-svg { color: var(--muted); }
.native-nps-directory-row strong { font-size: 14px; line-height: 1.4; }
.native-nps-directory-number { color: var(--muted); font-size: 12px; font-weight: 700; }
.native-nps-directory-count { color: var(--muted); font-size: 12px; }
.native-nps-directory-row.is-pending { color: var(--muted); }
.native-nps-directory-row.is-pending strong { font-weight: 500; }
@media (max-width: 720px) {
  .native-nps-home-pages { padding-left: 12px; }
  .native-nps-home-pages .native-nps-directory-row { grid-template-columns: 24px minmax(0, 1fr) 18px; }
  .native-nps-home-pages .native-nps-directory-row .icon-svg { grid-row: 1; }
}

.native-nps-data-page { max-width: 1180px; padding-top: 28px; }
.native-nps-import-summary {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 8px 0 32px;
}
.native-nps-import-summary div { display: grid; gap: 5px; padding: 18px 20px; }
.native-nps-import-summary div + div { border-left: 1px solid var(--line); }
.native-nps-import-summary span { color: var(--muted); font-size: 12px; }
.native-nps-import-summary strong { color: var(--ink); font-size: 20px; }
.native-nps-import-section { border-bottom: 1px solid var(--line); padding: 0 0 32px; }
.native-nps-import-section + .native-nps-import-section { padding-top: 32px; }
.native-nps-import-heading { align-items: end; display: flex; gap: 16px; justify-content: space-between; }
.native-nps-import-heading h2 { font-size: 22px; margin: 4px 0 0; }
.native-nps-import-message { color: var(--muted); font-size: 14px; margin: 10px 0 20px; }
.native-nps-import-form { display: grid; gap: 12px; }
.native-nps-file-field {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  display: grid;
  gap: 12px;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  min-height: 82px;
  overflow: hidden;
  padding: 12px 16px;
  position: relative;
}
.native-nps-file-field:hover { background: var(--surface-3); border-color: var(--line-strong); }
.native-nps-file-field input { inset: 0; opacity: 0; position: absolute; width: 100%; }
.native-nps-file-icon {
  align-items: center;
  background: var(--surface-2);
  border-radius: 6px;
  color: var(--ink);
  display: flex;
  height: 38px;
  justify-content: center;
  width: 38px;
}
.native-nps-file-copy { display: grid; gap: 2px; min-width: 0; }
.native-nps-file-copy strong { font-size: 14px; }
.native-nps-file-copy small { color: var(--muted); font-size: 12px; }
.native-nps-file-copy > span { color: var(--ink); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.native-nps-file-state { color: var(--muted); font-family: var(--font-mono); font-size: 12px; }
.native-nps-upload-track { background: var(--surface-2); bottom: 0; height: 3px; left: 0; position: absolute; right: 0; }
.native-nps-upload-track i { background: var(--red); display: block; height: 100%; transition: width .15s linear; width: 0; }
.native-nps-import-actions { display: flex; gap: 10px; justify-content: flex-end; padding-top: 6px; }
.native-nps-import-guidance { color: var(--muted); font-size: 13px; line-height: 1.55; margin: 0 0 20px; max-width: 860px; }
.native-nps-import-guidance strong { color: var(--ink); }
.native-nps-import-guidance code { color: var(--ink); font-size: 12px; }
.native-nps-month-controls { display: grid; gap: 6px; margin-bottom: 4px; max-width: 320px; }
.native-nps-month-controls label { color: var(--ink); font-size: 13px; font-weight: 700; }
.native-nps-month-controls input { background: var(--surface); border: 1px solid var(--line-strong); border-radius: 5px; color: var(--ink); font: inherit; min-height: 40px; padding: 6px 10px; width: 100%; }
.native-nps-month-controls span { color: var(--muted); font-size: 12px; }
.native-nps-month-confirm { align-items: center; color: var(--ink); display: flex; font-size: 13px; gap: 10px; line-height: 1.45; margin: 2px 0 8px; max-width: 100%; width: fit-content; }
.native-nps-month-confirm input[type="checkbox"] { flex: 0 0 18px; height: 18px; min-height: 0; margin: 0; padding: 0; width: 18px; }
.native-nps-month-confirm span { min-width: 0; }
.native-nps-processing-progress { display: grid; gap: 7px; margin-top: 10px; }
.native-nps-processing-progress[hidden] { display: none; }
.native-nps-processing-progress > div { color: var(--ink); display: flex; font-size: 13px; justify-content: space-between; }
.native-nps-processing-progress progress { accent-color: var(--red); border: 0; height: 8px; width: 100%; }
.native-nps-import-section .table-wrap .button { font-size: 12px; padding: 7px 10px; white-space: nowrap; }
@media (max-width: 720px) {
  .native-nps-data-page { padding-top: 20px; }
  .native-nps-import-summary { grid-template-columns: 1fr; }
  .native-nps-import-summary div + div { border-left: 0; border-top: 1px solid var(--line); }
  .native-nps-file-field { grid-template-columns: 38px minmax(0, 1fr); }
  .native-nps-file-state { grid-column: 2; }
  .native-nps-import-actions { flex-direction: column; }
  .native-nps-import-actions .button { width: 100%; }
}
.native-nps-window-controls {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: 32px minmax(140px, auto) 32px;
  text-align: center;
}
.native-nps-window-controls a, .native-nps-window-controls > span {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  display: flex;
  height: 32px;
  justify-content: center;
  width: 32px;
}
.native-nps-window-controls a { color: var(--ink); }
.native-nps-window-controls a:hover { background: var(--surface-3); }
.native-nps-window-controls > span { border-color: transparent; }
.native-nps-window-controls strong { font-size: 13px; }
.native-nps-evolution-table { border-collapse: collapse; min-width: 0; table-layout: fixed; width: 100%; }
.native-nps-evolution-table thead { background: #12649a; color: #fff; }
.native-nps-evolution-table th, .native-nps-evolution-table td {
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  overflow-wrap: anywhere;
  padding: 13px 10px;
  text-align: right;
}
.native-nps-evolution-table thead th { background: #12649a; color: #fff; font-size: 12px; font-weight: 600; position: sticky; top: 0; z-index: 1; }
.native-nps-evolution-table th:first-child { text-align: left; width: 22%; }
.native-nps-evolution-table tbody th { font-weight: 700; }
.native-nps-evolution-table tbody tr:nth-child(even) { background: var(--surface-3); }
.native-nps-evolution-table tbody tr.is-global { background: #e8f4f8; color: #0c4f72; }
.native-nps-evolution-table tbody tr:last-child th, .native-nps-evolution-table tbody tr:last-child td { border-bottom: 0; }

@media (max-width: 720px) {
  .native-nps-directory-row { gap: 6px 12px; grid-template-columns: 30px minmax(0, 1fr) 20px; }
  .native-nps-directory-count { grid-column: 2; grid-row: 2; }
  .native-nps-directory-row .icon-svg { grid-column: 3; grid-row: 1 / 3; }
  .native-nps-period-heading { align-items: flex-start; flex-direction: column; }
  .native-nps-evolution-table, .native-nps-evolution-table tbody { display: block; }
  .native-nps-evolution-table thead { display: none; }
  .native-nps-evolution-table tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .native-nps-evolution-table tbody tr + tr { border-top: 1px solid var(--line-strong); }
  .native-nps-evolution-table tbody th:first-child { grid-column: 1 / -1; text-align: left; width: 100%; }
  .native-nps-evolution-table tbody th, .native-nps-evolution-table tbody td { padding: 9px 12px; text-align: left; }
  .native-nps-evolution-table tbody td::before {
    color: var(--muted);
    content: attr(data-label);
    display: block;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 4px;
  }
}

.native-nps-history-tools { align-items: end; display: flex; flex-wrap: wrap; gap: 12px 20px; margin: 12px 0 18px; }
.native-nps-history-tools label { color: var(--muted); display: grid; font-size: 12px; font-weight: 700; gap: 5px; }
.native-nps-history-tools select { color: var(--ink); min-width: 240px; }
.native-nps-history-count { color: var(--muted); font-size: 13px; margin-right: auto; padding-bottom: 11px; }
.native-nps-history-scroll { border: 1px solid var(--line); border-radius: 6px; max-height: min(70vh, 760px); max-width: 100%; overflow: auto; overscroll-behavior: contain; }
.native-nps-history-scroll:focus-visible { outline: 2px solid var(--tone-3); outline-offset: 2px; }
.native-nps-history-table { border-collapse: separate; border-spacing: 0; font-variant-numeric: tabular-nums; min-width: 100%; width: max-content; }
.native-nps-history-table th, .native-nps-history-table td { border-bottom: 1px solid var(--line); font-size: 12px; height: 38px; padding: 8px 12px; white-space: nowrap; }
.native-nps-history-table td { min-width: 104px; text-align: right; }
.native-nps-history-table th { text-align: left; }
.native-nps-history-table thead th { background: #12649a; color: #fff; min-width: 104px; position: sticky; top: 0; z-index: 3; }
.native-nps-history-table tbody th { background: var(--surface); position: sticky; z-index: 1; }
.native-nps-history-table tbody tr.is-alt { background: var(--surface-3); }
.native-nps-history-table tbody tr.is-alt th { background: var(--surface-3); }
.native-nps-history-table tbody tr:hover, .native-nps-history-table tbody tr:hover th { background: color-mix(in srgb, var(--tone-3) 9%, var(--surface)); }
.native-nps-history-table tr[hidden] { display: none !important; }
.native-nps-history-table th:first-child { left: 0; min-width: 190px; width: 190px; }
.native-nps-history-table th:nth-child(2) { left: 190px; min-width: 190px; width: 190px; }
.native-nps-history-table thead th:first-child, .native-nps-history-table thead th:nth-child(2) { z-index: 5; }
.native-nps-history-table tbody th:first-child { font-weight: 700; }
.native-nps-history-table tbody th:nth-child(2) { color: var(--muted); font-weight: 550; }
.native-nps-history-table tbody tr[data-native-indicator-row="nps"] > * { border-top: 1px solid var(--line-strong); }
.native-nps-history-pivot { border-collapse: separate; border-spacing: 0; font-variant-numeric: tabular-nums; min-width: 100%; width: max-content; }
.native-nps-history-pivot th, .native-nps-history-pivot td {
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  height: 40px;
  min-width: 112px;
  padding: 7px 10px;
  text-align: right;
  white-space: nowrap;
}
.native-nps-history-pivot [hidden] { display: none !important; }
.native-nps-history-pivot thead th { background: #12649a; color: #fff; position: sticky; z-index: 3; }
.native-nps-history-pivot thead tr:first-child th { top: 0; }
.native-nps-history-pivot thead tr:nth-child(2) th { background: #185a82; font-size: 10px; line-height: 1.25; max-width: 132px; top: 40px; white-space: normal; }
.native-nps-history-pivot thead tr:first-child th:not(:first-child) { border-left: 2px solid rgba(255, 255, 255, .4); text-align: center; }
.native-nps-history-pivot thead tr:first-child th:first-child { left: 0; min-width: 190px; text-align: left; z-index: 6; }
.native-nps-history-pivot tbody th { background: var(--surface); font-weight: 700; left: 0; min-width: 190px; position: sticky; text-align: left; z-index: 2; }
.native-nps-history-pivot tbody tr:nth-child(even), .native-nps-history-pivot tbody tr:nth-child(even) th { background: var(--surface-3); }
.native-nps-history-pivot tbody tr:hover, .native-nps-history-pivot tbody tr:hover th { background: color-mix(in srgb, var(--tone-3) 9%, var(--surface)); }
.native-nps-history-pivot tbody td:nth-child(11n + 2) { border-left: 2px solid var(--line-strong); }
@media (max-width: 720px) {
  .native-nps-history-pivot thead tr:first-child th:first-child,
  .native-nps-history-pivot tbody th { min-width: 125px; width: 125px; }
  .native-nps-history-pivot th, .native-nps-history-pivot td { font-size: 11px; min-width: 100px; padding: 6px 8px; }
  .native-nps-history-pivot tbody th { overflow-wrap: anywhere; white-space: normal; }
}
@media (max-width: 720px) {
  .native-nps-history-tools { align-items: stretch; }
  .native-nps-history-tools label, .native-nps-history-tools select { width: 100%; }
  .native-nps-history-count { margin-right: 0; padding-bottom: 0; }
  .native-nps-history-tools button { margin-left: auto; }
  .native-nps-history-table th:first-child { min-width: 120px; width: 120px; }
  .native-nps-history-table th:nth-child(2) { left: 120px; min-width: 135px; width: 135px; }
  .native-nps-history-table tbody th { line-height: 1.2; overflow-wrap: anywhere; white-space: normal; }
  .native-nps-history-table th, .native-nps-history-table td { padding: 7px 9px; }
}

.native-nps-rank {
  align-items: center;
  border-radius: 3px;
  display: inline-flex;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  height: 28px;
  justify-content: center;
  min-width: 30px;
}
.native-nps-rank.is-first { background: #d9f1e4; color: #075c39; }
.native-nps-rank.is-second { background: #e7f2d2; color: #466315; }
.native-nps-proportion-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.native-nps-proportion-legend span { align-items: center; color: var(--muted); display: inline-flex; font-size: 12px; gap: 6px; }
.native-nps-proportion-legend i { border-radius: 2px; display: inline-block; height: 10px; width: 10px; }
.native-nps-proportion-legend .is-price i, .native-nps-proportion-bar .is-price { background: #14648f; }
.native-nps-proportion-legend .is-product i, .native-nps-proportion-bar .is-product { background: #58a873; }
.native-nps-proportion-legend .is-experience i, .native-nps-proportion-bar .is-experience { background: #e4ad3e; }
.native-nps-proportion-legend .is-quality i, .native-nps-proportion-bar .is-quality { background: #d37b70; }
.native-nps-proportion-summary { border-bottom: 1px solid var(--line); }
.native-nps-proportion-row {
  align-items: center;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(95px, 175px) minmax(0, 1fr) 55px;
  min-height: 52px;
  padding: 9px 12px;
}
.native-nps-proportion-row.is-total { background: var(--surface-3); }
.native-nps-proportion-row strong { font-size: 13px; }
.native-nps-proportion-row > span { color: var(--muted); font-size: 12px; text-align: right; }
.native-nps-proportion-bar { border-radius: 3px; display: flex; height: 20px; overflow: hidden; width: 100%; }
.native-nps-proportion-bar span { display: block; flex-shrink: 0; height: 100%; }
.native-nps-proportion-table tbody tr.is-total { background: var(--surface-3); }
.native-nps-proportion-table tbody tr.is-total th { font-weight: 700; }
.native-nps-proportion-group-total { background: #e8f4f8; color: #0c4f72; }
.native-nps-proportion-detail-scroll { border: 1px solid var(--line); border-radius: 6px; max-height: min(70vh, 760px); max-width: 100%; overflow: auto; }
.native-nps-proportion-detail-scroll:focus-visible { outline: 2px solid var(--tone-3); outline-offset: 2px; }
.native-nps-proportion-detail { border-collapse: separate; border-spacing: 0; font-variant-numeric: tabular-nums; min-width: 100%; width: max-content; }
.native-nps-proportion-detail th, .native-nps-proportion-detail td { border-bottom: 1px solid var(--line); font-size: 12px; min-width: 95px; padding: 10px 12px; text-align: right; white-space: nowrap; }
.native-nps-proportion-detail thead th { background: #12649a; color: #fff; font-weight: 700; position: sticky; text-align: center; top: 0; z-index: 3; }
.native-nps-proportion-detail thead tr:first-child th { height: 40px; }
.native-nps-proportion-detail thead tr:nth-child(2) th { background: #185a82; max-width: 130px; min-width: 95px; top: 40px; white-space: normal; }
.native-nps-proportion-detail thead th.is-price { background: #14648f; }
.native-nps-proportion-detail thead th.is-product { background: #29754d; }
.native-nps-proportion-detail thead th.is-experience { background: #966006; }
.native-nps-proportion-detail thead th.is-quality { background: #a84435; }
.native-nps-proportion-detail th:first-child { left: 0; min-width: 150px; position: sticky; text-align: left; z-index: 2; }
.native-nps-proportion-detail thead th:first-child { z-index: 3; }
.native-nps-proportion-detail tbody th { background: var(--surface); font-weight: 700; }
.native-nps-proportion-detail tbody tr:nth-child(even), .native-nps-proportion-detail tbody tr:nth-child(even) th { background: var(--surface-3); }
.native-nps-proportion-detail tbody tr:hover, .native-nps-proportion-detail tbody tr:hover th { background: color-mix(in srgb, var(--tone-3) 9%, var(--surface)); }
.native-nps-proportion-detail tbody tr.is-total, .native-nps-proportion-detail tbody tr.is-total th { font-weight: 750; }
.native-nps-proportion-detail .is-subtotal { background: color-mix(in srgb, var(--tone-3) 9%, var(--surface)); font-weight: 700; }
.native-nps-proportion-detail .is-grand-total { background: color-mix(in srgb, var(--tone-3) 16%, var(--surface)); font-weight: 750; }
@media (max-width: 720px) { .native-nps-proportion-detail th:first-child { min-width: 110px; width: 110px; } }

.native-nps-analysis-detail-scroll { border: 1px solid var(--line); border-radius: 6px; max-height: min(70vh, 760px); max-width: 100%; overflow: auto; }
.native-nps-analysis-detail-scroll:focus-visible { outline: 2px solid var(--tone-3); outline-offset: 2px; }
.native-nps-analysis-detail { border-collapse: separate; border-spacing: 0; font-variant-numeric: tabular-nums; min-width: 100%; width: max-content; }
.native-nps-analysis-detail th, .native-nps-analysis-detail td { border-bottom: 1px solid var(--line); font-size: 12px; min-width: 96px; padding: 9px 11px; text-align: right; white-space: nowrap; }
.native-nps-analysis-detail thead th { background: #12649a; color: #fff; font-weight: 700; position: sticky; text-align: center; top: 0; z-index: 3; }
.native-nps-analysis-detail thead tr:first-child th { height: 40px; }
.native-nps-analysis-detail thead tr:nth-child(2) th { background: #185a82; max-width: 130px; top: 40px; white-space: normal; }
.native-nps-analysis-detail thead th.is-price { background: #14648f; }
.native-nps-analysis-detail thead th.is-assortment { background: #28754c; }
.native-nps-analysis-detail thead th.is-experience { background: #955e07; }
.native-nps-analysis-detail thead th.is-trust { background: #a74639; }
.native-nps-analysis-detail th:first-child { left: 0; min-width: 160px; position: sticky; text-align: left; z-index: 2; }
.native-nps-analysis-detail thead th:first-child { z-index: 4; }
.native-nps-analysis-detail tbody th { background: var(--surface); }
.native-nps-analysis-detail tbody tr:nth-child(even), .native-nps-analysis-detail tbody tr:nth-child(even) th { background: var(--surface-3); }
.native-nps-analysis-detail tbody tr:hover, .native-nps-analysis-detail tbody tr:hover th { background: color-mix(in srgb, var(--tone-3) 9%, var(--surface)); }
.native-nps-analysis-detail td.is-nps { background: color-mix(in srgb, var(--tone-3) 20%, var(--surface)); font-weight: 750; }
.native-nps-analysis-detail td.is-subtotal { background: color-mix(in srgb, var(--tone-3) 9%, var(--surface)); font-weight: 700; }
.native-nps-comparison-pivot { border-collapse: separate; border-spacing: 0; font-variant-numeric: tabular-nums; min-width: 100%; width: max-content; }
.native-nps-comparison-pivot th, .native-nps-comparison-pivot td { border-bottom: 1px solid var(--line); font-size: 12px; min-width: 100px; padding: 8px 11px; text-align: right; white-space: nowrap; }
.native-nps-comparison-pivot thead th { background: #12649a; color: #fff; position: sticky; text-align: center; z-index: 3; }
.native-nps-comparison-pivot thead tr:first-child th { top: 0; }
.native-nps-comparison-pivot thead tr:nth-child(2) th { background: #185a82; font-size: 11px; top: 37px; }
.native-nps-comparison-pivot thead tr:first-child th:not(:first-child) { border-left: 2px solid rgba(255, 255, 255, .35); }
.native-nps-comparison-pivot th:first-child { left: 0; min-width: 165px; position: sticky; text-align: left; z-index: 4; }
.native-nps-comparison-pivot tbody th { background: var(--surface); font-weight: 700; z-index: 2; }
.native-nps-comparison-pivot tbody tr:nth-child(even), .native-nps-comparison-pivot tbody tr:nth-child(even) th { background: var(--surface-3); }
.native-nps-comparison-pivot tbody tr:hover, .native-nps-comparison-pivot tbody tr:hover th { background: color-mix(in srgb, var(--tone-3) 9%, var(--surface)); }
@media (max-width: 720px) { .native-nps-comparison-pivot th:first-child { min-width: 115px; width: 115px; } }
.native-nps-quarter-pivot { border-collapse: separate; border-spacing: 0; font-variant-numeric: tabular-nums; min-width: 100%; width: max-content; }
.native-nps-quarter-pivot th, .native-nps-quarter-pivot td { border-bottom: 1px solid var(--line); font-size: 12px; min-width: 96px; padding: 8px 11px; text-align: right; white-space: nowrap; }
.native-nps-quarter-pivot thead th { background: #12649a; color: #fff; position: sticky; text-align: center; z-index: 3; }
.native-nps-quarter-pivot thead tr:first-child th { top: 0; }
.native-nps-quarter-pivot thead tr:nth-child(2) th { background: #185a82; font-size: 11px; top: 37px; }
.native-nps-quarter-pivot thead tr:first-child th:not(:first-child) { border-left: 2px solid rgba(255, 255, 255, .35); }
.native-nps-quarter-pivot th:first-child { left: 0; min-width: 165px; position: sticky; text-align: left; z-index: 4; }
.native-nps-quarter-pivot tbody th { background: var(--surface); font-weight: 700; z-index: 2; }
.native-nps-quarter-pivot tbody tr:nth-child(even), .native-nps-quarter-pivot tbody tr:nth-child(even) th { background: var(--surface-3); }
@media (max-width: 720px) { .native-nps-quarter-pivot th:first-child { min-width: 115px; width: 115px; } }
@media (max-width: 720px) {
  .native-nps-proportion-legend { justify-content: flex-start; width: 100%; }
  .native-nps-proportion-row { gap: 6px 10px; grid-template-columns: minmax(0, 1fr) 54px; }
  .native-nps-proportion-row strong { grid-column: 1 / -1; }
  .native-nps-proportion-bar { grid-column: 1; }
  .native-nps-proportion-row > span { grid-column: 2; }
  .native-nps-proportion-table tbody tr.is-total th { background: var(--surface-3); }
  .native-nps-proportion-table .native-nps-proportion-group-total { grid-column: 1 / -1; }
}

.native-nps-quarterly > .native-nps-section-heading:not(:first-of-type) { margin-top: 22px; }
.native-nps-quarterly .native-nps-table-wrap { max-height: 72vh; overflow: auto; }
.native-nps-quarter-table thead th { background: var(--surface-3); position: sticky; top: 0; z-index: 1; }
.native-nps-quarter-table th:first-child { width: 17%; }
.native-nps-quarter-table td:nth-child(2) { text-align: left; width: 22%; }
.native-nps-quarter-table tbody tr.is-brand-start { border-top: 2px solid var(--line-strong); }
.native-nps-quarter-table tbody tr:first-child { border-top: 0; }

@media (max-width: 720px) {
  .native-nps-quarterly .native-nps-quarter-table {
    display: table;
    min-width: 980px;
    table-layout: auto;
  }
  .native-nps-quarterly .native-nps-quarter-table thead { display: table-header-group; }
  .native-nps-quarterly .native-nps-quarter-table tbody { display: table-row-group; }
  .native-nps-quarterly .native-nps-quarter-table tbody tr { display: table-row; }
  .native-nps-quarterly .native-nps-quarter-table tbody th,
  .native-nps-quarterly .native-nps-quarter-table tbody td { display: table-cell; min-width: 95px; padding: 9px 10px; }
  .native-nps-quarterly .native-nps-quarter-table th:first-child { min-width: 130px; width: 130px; }
  .native-nps-quarterly .native-nps-quarter-table td:nth-child(2) { min-width: 170px; width: 170px; }
  .native-nps-quarterly .native-nps-quarter-table tbody td::before { display: none; }
}

.native-nps-filter-group.is-brand {
  border-top: 1px solid var(--line);
  flex: 0 0 100%;
}
.native-nps-brand-filters {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.native-nps-brand-filters label { display: grid; gap: 5px; min-width: 0; }
.native-nps-brand-filters label span { color: var(--muted); font-size: 11px; font-weight: 650; }
@media (max-width: 620px) {
  .native-nps-brand-filters { grid-template-columns: minmax(0, 1fr); }
}
