:root {
  --bg: #f5f7fa;
  --ink: #16253b;
  --muted: #748094;
  --line: #e6eaf0;
  --green: #0b977c;
  --deep: #0d2130;
  --blue: #3668e8;
  --panel: #fff;
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--bg);
}

/* The same compact filter controls are shared by every reporting screen. */
#period-controls {
  display: contents;
}
#period-controls.hidden {
  display: none;
}
.report-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 16px;
  padding: 14px;
  margin: 0 0 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel);
}
.report-filters.hidden {
  display: none;
}
.report-filters > label,
.report-filters #period-controls > label,
.filter-field {
  display: flex;
  flex: 1 1 160px;
  flex-direction: column;
  min-width: 130px;
  gap: 6px;
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
}
.workspace .report-filters input:not([type="checkbox"]),
.workspace .report-filters select,
.workspace .multi-filter summary {
  font: inherit;
  font-size: 11px;
  min-height: 32px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--ink);
  background: var(--panel);
  width: 100%;
  box-sizing: border-box;
}
.multi-filter {
  position: relative;
  font-weight: 400;
}
.multi-filter summary {
  cursor: pointer;
  list-style: none;
  padding-right: 24px !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.multi-filter summary::after {
  content: "⌄";
  position: absolute;
  right: 9px;
  color: var(--muted);
}
.multi-filter summary::-webkit-details-marker {
  display: none;
}
.multi-filter[open] summary {
  border-color: var(--blue);
}
.multi-options {
  position: absolute;
  z-index: 50;
  top: 100%;
  left: 0;
  min-width: 100%;
  width: max-content;
  max-width: min(340px, 75vw);
  padding: 10px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 12px 30px #0004;
  border-radius: 3px;
}
.multi-options .check-label {
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 7px 3px;
  margin: 0;
  font-size: 11px;
  font-weight: 400;
}
.multi-options input[type="checkbox"] {
  width: 14px;
  height: 14px;
  min-height: 0;
  margin: 0;
  accent-color: var(--blue);
  flex-shrink: 0;
}
.multi-options .check-label:hover {
  background: color-mix(in srgb, var(--blue) 12%, transparent);
}
.multi-items {
  max-height: 240px;
  overflow-y: auto;
}
.multi-items .hidden {
  display: none;
}
.more-filter-toggle {
  margin-left: auto;
}
.extra-filters {
  flex-basis: 100%;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.extra-filters > label {
  max-width: 240px;
}
.filter-reset {
  align-self: flex-end;
}
.filter-note {
  flex-basis: 100%;
  margin: 0;
  font-size: 10px;
  color: var(--muted);
  line-height: 1.5;
}
.meta-panel .report-filters {
  border-width: 0 0 1px;
  border-radius: 0;
  margin: 0;
}
.workspace .meta-filters {
  margin: 0;
  padding: 12px 14px;
}
.workspace .meta-filters label {
  flex: 0 1 260px;
}
.report-filters label.hidden {
  display: none !important;
}
.profile-accounts {
  border: 1px solid var(--line);
  border-radius: 10px;
  margin: 12px 0;
}
.profile-accounts summary {
  cursor: pointer;
  padding: 18px;
}
.profile-accounts summary span {
  color: var(--muted);
  font-size: 12px;
  margin-left: 14px;
}
.profile-account-options {
  padding: 0 18px 18px;
}
.account-select-all {
  justify-content: flex-end;
  padding: 12px 0;
}
.profile-accounts input[role="switch"] {
  appearance: none;
  flex-shrink: 0;
  width: 36px;
  height: 21px;
  padding: 2px;
  border-radius: 20px;
  background: var(--muted);
  border: 0;
  cursor: pointer;
}
.profile-accounts input[role="switch"]::before {
  content: "";
  display: block;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: white;
}
.profile-accounts input[role="switch"]:checked {
  background: var(--green);
}
.profile-accounts input[role="switch"]:checked::before {
  transform: translateX(15px);
}
.profile-accounts input[role="switch"]:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  transition:
    background 0.15s,
    transform 0.15s;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
a {
  color: var(--green);
  text-decoration: none;
}
.hidden {
  display: none !important;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  letter-spacing: -1.4px;
  font-size: 34px;
  margin-bottom: 10px;
}
h2 {
  letter-spacing: -0.7px;
  font-size: 24px;
}
h3 {
  font-size: 16px;
}
.eyebrow {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--green);
}
.brand {
  font-size: 29px;
  font-weight: 800;
  letter-spacing: -1.4px;
  color: inherit;
  display: flex;
  align-items: center;
}
.brand span {
  font-weight: 400;
}
.brand i {
  height: 7px;
  width: 7px;
  border-radius: 50%;
  background: #43dcba;
  margin: 8px 0 0 5px;
}
.login-screen {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  background: var(--panel);
}
.login-story {
  background: var(--deep);
  color: #fff;
  padding: 50px 65px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  background-image: radial-gradient(
    ellipse at 25% 75%,
    #124b47 0,
    transparent 60%
  );
}
.login-story h1 {
  font-size: clamp(32px, 4vw, 62px);
  line-height: 1.08;
  font-weight: 500;
  margin-top: 25px;
  letter-spacing: -2px;
}
.login-story p {
  color: #b2c4ca;
  line-height: 1.8;
}
.login-story small {
  color: #78949a;
  font-size: 12px;
}
.orbit {
  display: flex;
  gap: 18px;
  align-items: center;
  font-size: 9px;
  letter-spacing: 2px;
  color: #8bc2b8;
  margin-top: 48px;
}
.orbit i {
  height: 1px;
  width: 35px;
  background: #2b655d;
}
.login-box {
  align-self: center;
  padding: 70px;
  max-width: 520px;
  width: 100%;
  justify-self: center;
}
.login-box h2 {
  font-size: 30px;
  margin-top: 20px;
  margin-bottom: 12px;
}
.login-box p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.login-box form {
  margin: 35px 0;
}
.login-box small {
  font-size: 11px;
  color: #909bad;
  line-height: 1.7;
}
.login-box .primary {
  width: 100%;
  margin-top: 10px;
  justify-content: space-between;
}
.workspace {
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  min-height: 100vh;
}
aside {
  background: var(--deep);
  color: #bfd0db;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
aside .brand {
  color: #fff;
  padding: 2px 14px 42px;
}
.nav-label {
  font-size: 9px;
  letter-spacing: 2px;
  color: #65838f;
  padding: 0 15px 18px;
}
nav {
  display: grid;
  gap: 6px;
}
nav button {
  display: flex;
  align-items: center;
  gap: 13px;
  border: 0;
  color: #9fb3c0;
  text-align: left;
  background: transparent;
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 19px;
}
nav button span {
  font-size: 12px;
  font-weight: 500;
}
nav button:hover {
  background: #183344;
}
nav button.selected {
  background: #163f43;
  color: #69e6c7;
  box-shadow: inset 3px 0 #48d6b4;
}
.sidebar-foot {
  margin-top: auto;
  padding: 24px 14px 0;
  font-size: 11px;
  line-height: 2;
  color: #7e9aa8;
}
.sidebar-foot a {
  display: block;
  color: #b0c4cd;
  margin: 15px 0;
}
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4dd2a2;
  margin-right: 7px;
}
.subtle {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  padding: 8px 0;
}
.sidebar-foot .subtle {
  display: block;
  color: #7e9aa8;
}
main {
  min-width: 0;
}
header {
  height: 78px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 42px;
}
.breadcrumb {
  font-size: 11px;
  color: #99a1af;
}
.breadcrumb span {
  margin: 0 14px;
  color: #c4cbd4;
}
.breadcrumb b {
  font-weight: 500;
  color: #49566a;
}
.user-badge {
  font-size: 11px;
  color: #6b788d;
  display: flex;
  align-items: center;
  gap: 10px;
}
.avatar {
  height: 31px;
  width: 31px;
  display: inline-grid;
  place-items: center;
  background: #eef1f7;
  border-radius: 50%;
  color: #4f617a;
  font-weight: 700;
}
.page-body {
  padding: 35px 42px 0;
  max-width: 1800px;
  margin: auto;
}
.title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 30px;
}
.title-row h1 {
  margin-top: 10px;
}
.title-row p {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 0;
}
.primary,
.secondary,
.danger {
  border: 0;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
}
.primary {
  background: var(--green);
  color: white;
}
.primary:hover {
  background: #087e69;
}
.secondary {
  border: 1px solid var(--line);
  background: var(--panel);
  color: #46576e;
}
.secondary:hover {
  background: #f6f8fb;
}
.danger {
  background: #fff0f0;
  color: #bc3f4c;
}
.toolbar {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 16px 20px;
  display: flex;
  align-items: end;
  gap: 14px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.filter-spacer {
  flex: 1;
}
label {
  font-size: 11px;
  color: #68758a;
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}
label input,
label select,
label textarea {
  min-width: 0;
  width: 100%;
}
input,
select,
textarea {
  border: 1px solid #dde3eb;
  background: var(--panel);
  color: var(--ink);
  padding: 12px 13px;
  border-radius: 6px;
  outline: none;
  font-size: 12px;
}
input:focus,
select:focus,
textarea:focus {
  border-color: #47b69e;
  box-shadow: 0 0 0 3px #e5f7f0;
}
.toolbar label {
  margin: 0;
  font-size: 9px;
  min-width: 100px;
}
.toolbar select,
.toolbar input {
  padding: 9px 11px;
}
.toolbar label:first-child {
  min-width: 180px;
}
.toolbar .add-dashboard {
  color: var(--green);
  margin-bottom: 3px;
  font-size: 10px;
}
textarea {
  resize: vertical;
  min-height: 80px;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 17px;
  margin-bottom: 23px;
}
.metric {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 23px;
}
.metric-label {
  font-size: 11px;
  color: #7b879a;
  display: flex;
  justify-content: space-between;
}
.metric-value {
  font-size: 27px;
  font-weight: 600;
  letter-spacing: -1px;
  margin: 16px 0 12px;
}
.metric small {
  font-size: 9px;
  color: #8e98a9;
}
.metric.featured {
  background: #123d3b;
  border-color: #123d3b;
  color: white;
}
.metric.featured .metric-label {
  color: #a3d3c4;
}
.metric.featured small {
  color: #7eb8a8;
}
.metric-icon {
  color: #34ad90;
}
.split {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 24px;
  margin-bottom: 20px;
  min-width: 0;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
}
.panel-head h3 {
  margin: 0;
}
.panel-head p {
  font-size: 11px;
  color: var(--muted);
  margin: 6px 0 0;
}
.pill {
  font-size: 9px;
  padding: 6px 9px;
  background: #e7f6ef;
  color: #16886b;
  border-radius: 20px;
  white-space: nowrap;
}
.pill.muted {
  background: #f0f2f7;
  color: #788397;
}
.pill.red {
  background: #ffeded;
  color: #bb4a4a;
}
.pill.blue {
  background: #edf3ff;
  color: #4f6cca;
}
.empty {
  text-align: center;
  padding: 50px 15px;
  color: #8794a8;
}
.empty .empty-icon {
  font-size: 32px;
  color: #b6c7d6;
  margin-bottom: 15px;
}
.empty h3 {
  font-size: 14px;
  color: #465870;
  margin: 10px 0;
}
.empty p {
  font-size: 12px;
  line-height: 1.8;
  max-width: 380px;
  margin: 0 auto 20px;
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 11px;
  white-space: nowrap;
}
th {
  font-size: 9px;
  letter-spacing: 0.6px;
  color: #8792a4;
  font-weight: 600;
  padding: 14px 10px;
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 16px 10px;
  border-bottom: 1px solid #f0f2f6;
  color: #526177;
}
td strong {
  color: #2a3f59;
  font-weight: 500;
}
td small {
  display: block;
  color: #9ba4b2;
  font-size: 9px;
  margin-top: 5px;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.pixel-card {
  margin-bottom: 0;
}
.pixel-card h3 {
  margin: 0 0 8px;
}
.pixel-id {
  font-size: 10px;
  color: #8794a6;
  overflow-wrap: anywhere;
}
.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
  color: #7a8898;
}
.card-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.card-actions button {
  font-size: 10px;
  padding: 10px 12px;
}
.notice {
  padding: 14px 18px;
  background: #fff8e7;
  border: 1px solid #f3e6bb;
  color: #897134;
  font-size: 12px;
  border-radius: 7px;
  margin-bottom: 20px;
  line-height: 1.6;
}
.error {
  color: #c14958 !important;
  font-size: 12px;
  line-height: 1.6;
}
footer {
  padding: 28px 0;
  font-size: 10px;
  color: #9aa4b3;
  border-top: 1px solid var(--line);
  margin-top: 30px;
}
footer span {
  margin: 0 8px;
}
.footer-right {
  float: right;
}
.steps {
  display: grid;
  gap: 22px;
}
.step {
  display: flex;
  gap: 13px;
  align-items: start;
}
.step b {
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: #f0f6f4;
  color: #3f9782;
  min-width: 29px;
  height: 29px;
  font-size: 11px;
}
.step strong {
  font-size: 11px;
  font-weight: 600;
}
.step p {
  font-size: 10px;
  color: #8a95a4;
  line-height: 1.7;
  margin: 7px 0 0;
}
.chart {
  height: 150px;
  display: flex;
  align-items: end;
  gap: 8px;
  padding-top: 10px;
  border-bottom: 1px solid var(--line);
}
.chart-bar {
  background: #b7e7db;
  border-radius: 4px 4px 0 0;
  flex: 1;
  min-height: 2px;
}
.chart-labels {
  display: flex;
  justify-content: space-between;
  color: #a1aaba;
  font-size: 9px;
  padding-top: 12px;
}
.funnel {
  display: grid;
  gap: 15px;
}
.funnel-line {
  display: grid;
  grid-template-columns: 110px 1fr 38px;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  color: #8390a1;
}
.funnel-track {
  height: 7px;
  border-radius: 4px;
  background: #f1f5f8;
  overflow: hidden;
}
.funnel-fill {
  height: 100%;
  background: #41bda1;
  min-width: 2px;
  border-radius: 4px;
}
.funnel-line b {
  text-align: right;
  color: #51667c;
}
.code {
  display: block;
  background: #0f2433;
  color: #a1dac9;
  border-radius: 7px;
  padding: 18px;
  font:
    11px/1.8 Consolas,
    monospace;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-all;
}
.inline-code {
  font:
    11px Consolas,
    monospace;
  background: #f2f5f8;
  padding: 3px 6px;
  border-radius: 4px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 28px;
  width: min(580px, calc(100vw - 30px));
  max-height: 90vh;
  color: var(--ink);
  box-shadow: 0 30px 100px #0a1a3240;
}
dialog::backdrop {
  background: #0d1c3277;
  backdrop-filter: blur(3px);
}
dialog.pixel-dialog {
  position: fixed;
  inset: 0 0 0 auto;
  margin: 0;
  width: min(560px, 100vw);
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  border-radius: 0;
  padding: 24px;
}
.pixel-form-section {
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 16px;
}
.pixel-form-section h3 {
  margin: 0 0 14px;
  font-size: 15px;
}
.pixel-destination {
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 14px;
  margin: 12px 0;
  min-width: 0;
}
.pixel-destination legend {
  padding: 0 6px;
  color: var(--muted);
}
.pixel-products {
  border: 1px solid var(--line);
  padding: 12px;
  border-radius: 4px;
}
.pixel-products summary {
  cursor: pointer;
}
.pixel-products .check-label {
  margin: 8px 0;
}
.pixel-list {
  display: grid;
  gap: 12px;
}
.pixel-list .pixel-card {
  margin: 0;
  padding: 16px;
}
.pixel-list .card-meta {
  margin: 8px 0;
}
.modal-top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 20px;
}
.modal-top h2 {
  margin: 8px 0 0;
}
.icon-button {
  border: 0;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  color: #7e8a9b;
  background: #f3f5f8;
  font-size: 20px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.signup-button {
  width: 100%;
  margin: 12px 0;
}
.check-label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  line-height: 1.6;
}
.check-label input {
  width: auto;
  box-shadow: none;
}
.hint {
  font-size: 11px;
  color: #8692a2;
  line-height: 1.8;
}
.secret {
  background: #f5fbf8;
  border: 1px solid #c6e8dc;
  border-radius: 8px;
  padding: 18px;
  margin: 18px 0;
}
.toast {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #153f39;
  color: #fff;
  padding: 16px 22px;
  border-radius: 8px;
  font-size: 12px;
  box-shadow: 0 8px 30px #1234;
  max-width: 430px;
  z-index: 10;
}
.doc-body {
  max-width: 900px;
  margin: 60px auto;
  padding: 0 25px;
  line-height: 1.8;
}
.doc-body h1 {
  margin-top: 40px;
}
.doc-body p,
.doc-body li {
  font-size: 14px;
  color: #617086;
}
.doc-body h2 {
  margin-top: 40px;
}
.doc-body code {
  font-family: Consolas, monospace;
}
.account-line {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.account-line small {
  color: var(--muted);
}
@media (min-width: 1500px) {
  .page-body {
    padding-left: 55px;
    padding-right: 55px;
  }
  .metric-value {
    font-size: 32px;
  }
}
@media (max-width: 1100px) {
  .workspace {
    grid-template-columns: 190px minmax(0, 1fr);
  }
  aside {
    padding: 25px 12px;
  }
  .page-body {
    padding: 28px 24px 0;
  }
  header {
    padding: 0 24px;
  }
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .split {
    grid-template-columns: 1fr;
  }
  .card-grid {
    grid-template-columns: 1fr;
  }
  .login-story {
    padding: 40px;
  }
  .login-box {
    padding: 40px;
  }
}
@media (max-width: 700px) {
  .workspace {
    display: block;
  }
  aside {
    position: static;
    height: auto;
    padding: 18px;
  }
  .brand {
    font-size: 25px;
  }
  aside .brand {
    padding: 0 0 18px;
  }
  .nav-label,
  .sidebar-foot {
    display: none;
  }
  nav {
    display: flex;
    overflow: auto;
    gap: 5px;
  }
  nav button {
    padding: 10px;
    min-width: max-content;
  }
  nav button span {
    font-size: 10px;
  }
  header {
    height: 55px;
    padding: 0 18px;
  }
  .page-body {
    padding: 25px 16px 0;
  }
  .metric {
    padding: 17px;
  }
  .metric-value {
    font-size: 24px;
  }
  .toolbar {
    gap: 10px;
    padding: 14px;
  }
  .toolbar label {
    flex: 1;
    min-width: 100px;
  }
  .filter-spacer {
    display: none;
  }
  .panel {
    padding: 18px;
  }
  .title-row {
    align-items: start;
  }
  h1 {
    font-size: 28px;
  }
  .footer-right {
    float: none;
    display: block;
    margin: 12px 0;
  }
  .login-screen {
    display: block;
  }
  .login-story {
    min-height: 340px;
    padding: 28px;
  }
  .login-story h1 {
    font-size: 38px;
    margin-top: 25px;
  }
  .login-story small,
  .orbit {
    display: none;
  }
  .login-story .eyebrow {
    display: none;
  }
  .login-box {
    padding: 35px 25px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
}

#operations {
  display: grid;
  gap: 6px;
  padding-bottom: 12px;
  margin-bottom: 12px;
}
#operations .nav-label {
  display: block;
  padding-bottom: 10px;
}
#operations .operation {
  display: flex;
  gap: 10px;
  align-items: center;
  border: 0;
  background: transparent;
  color: #93adbb;
  padding: 9px 14px;
  text-align: left;
  font-size: 13px;
  width: 100%;
  border-radius: 6px;
}
#operations .operation.current {
  background: #173e40;
  color: #6cdec4;
}
.operation .operation-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.operation-chevron {
  flex: 0 0 auto;
  margin-left: auto;
}
.operation-group {
  min-width: 0;
}
.operation-menu {
  display: grid;
  gap: 3px;
  margin: 6px 0 10px 9px;
  padding-left: 6px;
  border-left: 1px solid #294751;
}
#operations .operation-menu button {
  padding: 10px 9px;
  gap: 9px;
  min-width: 0;
  width: 100%;
}
#operations .operation-menu button span {
  font-size: 11px;
  line-height: 1.5;
}
#operations .operation-menu .menu-icon {
  width: 18px;
  flex-shrink: 0;
  font-size: 16px;
  text-align: center;
}
#operations .sidebar-create {
  padding: 10px 14px;
  color: #6cdec4;
  font-size: 12px;
}
.sidebar-empty {
  padding: 0 14px;
  color: #93adbb;
  font-size: 12px;
  line-height: 1.7;
}
#navigation:has(button:not(.hidden)) {
  border-top: 1px solid #25414d;
  padding-top: 12px;
}
.funnel progress {
  width: 100%;
  height: 9px;
  accent-color: #0b977c;
}
#secret-value {
  width: 100%;
  font:
    12px/1.7 Consolas,
    monospace;
}
.toolbar [name="entity-search"] {
  min-width: 160px;
}
@media (max-width: 700px) {
  #operations {
    display: grid;
    max-height: 55vh;
    overflow-y: auto;
    border: 0;
    margin: 0;
    padding: 0 0 10px;
  }
  #operations .nav-label {
    display: none;
  }
  #operations .operation {
    width: 100%;
    min-width: 0;
  }
  .metric-grid {
    gap: 10px;
  }
  .metric small {
    line-height: 1.7;
  }
}

aside {
  overflow-y: auto;
}
#operations,
aside nav {
  flex-shrink: 0;
}
.toolbar label:has([name="manage-account"]) {
  min-width: 180px;
}

.setup-hero {
  background: linear-gradient(110deg, #103832, #0f2534);
  color: #fff;
  padding: 30px;
  border-radius: 12px;
  margin-bottom: 20px;
  display: flex;
  gap: 25px;
  align-items: center;
  justify-content: space-between;
}
.setup-hero h2 {
  margin: 12px 0;
  font-size: 27px;
}
.setup-hero p {
  font-size: 12px;
  color: #adcbc4;
  max-width: 580px;
  line-height: 1.8;
  margin: 0;
}
.setup-hero .eyebrow {
  color: #7be0c4;
}
.setup-checks {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  max-width: 220px;
}
.setup-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
  overflow: auto;
  padding: 3px;
}
.setup-tabs button {
  flex: 1;
  min-width: max-content;
  background: var(--panel);
  border: 1px solid #e0e6eb;
  border-radius: 7px;
  color: #728294;
  padding: 15px;
  font-size: 12px;
}
.setup-tabs button.active {
  border-color: #0b977c;
  background: #e8f7f1;
  color: #07785f;
  font-weight: 600;
}
.code-text {
  width: 100%;
  font:
    12px/1.9 Consolas,
    monospace;
  background: #102b36;
  color: #b0ecdb;
  border: 1px solid #214954;
  padding: 20px;
  margin: 12px 0 18px;
}
.facebook-button {
  background: #1877f2;
  color: #fff;
  min-height: 47px;
  width: 100%;
}
.facebook-button:hover {
  background: #1265cf;
}
.connect-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 25px;
  background: #eef3f7;
}
.connect-card {
  width: min(500px, 100%);
  padding: 38px;
  background: var(--panel);
  border: 1px solid #e0e8ed;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 20px 80px #1231;
}
.connect-card .brand {
  justify-content: center;
}
.facebook-icon {
  width: 55px;
  height: 55px;
  display: grid;
  place-items: center;
  margin: 35px auto 25px;
  background: #1877f2;
  border-radius: 50%;
  color: #fff;
  font-size: 46px;
  font-weight: 800;
  font-family: Arial;
}
.connect-card h1 {
  font-size: 28px;
  margin: 15px 0;
}
.connect-card > p {
  font-size: 13px;
  color: #78899b;
  line-height: 1.9;
}
.connection-assurance {
  padding: 20px;
  background: #f5f9f7;
  border-radius: 8px;
  margin-top: 25px;
  font-size: 11px;
  color: #507367;
  line-height: 1.8;
}
.connection-assurance p {
  margin: 8px 0 0;
}
.connect-intro .notice .secondary {
  margin-top: 12px;
}
.dashboard-settings {
  text-align: right;
  margin: -14px 0 13px;
}
.connect-card a.primary {
  margin-top: 15px;
}
@media (max-width: 700px) {
  .setup-hero {
    display: block;
    padding: 23px;
  }
  .setup-checks {
    margin-top: 20px;
    max-width: none;
  }
  .setup-tabs button {
    padding: 13px 10px;
    font-size: 11px;
  }
}

/* Account appearance and lifetime approved revenue. */
:root {
  color-scheme: light;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #101923;
  --panel: #192634;
  --ink: #e4edf5;
  --muted: #a1b2c4;
  --line: #304354;
  --green: #37c9a8;
  --blue: #82aaff;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}
header {
  height: auto;
  min-height: 112px;
  gap: 20px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.user-panel {
  width: 270px;
  max-width: 100%;
}
.user-badge {
  justify-content: flex-end;
  color: var(--ink);
  margin-bottom: 7px;
}
.revenue-progress {
  font-size: 10px;
  color: var(--muted);
}
.revenue-caption {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}
.revenue-caption strong {
  color: var(--ink);
  font-size: 12px;
}
.revenue-progress small {
  font-size: 9px;
}
.revenue-progress progress {
  display: block;
  width: 100%;
  height: 6px;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  background: var(--line);
  margin: 6px 0;
  accent-color: var(--green);
}
.revenue-progress progress::-webkit-progress-bar {
  background: var(--line);
  border-radius: 10px;
}
.revenue-progress progress::-webkit-progress-value {
  background: var(--green);
  border-radius: 10px;
}
.revenue-progress progress::-moz-progress-bar {
  background: var(--green);
  border-radius: 10px;
}
.login-theme {
  margin-bottom: 25px;
}
.danger-zone {
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding: 20px 0;
}
.danger-zone h3 {
  color: #cf5868;
  margin-bottom: 8px;
}
.danger-zone p {
  color: var(--muted);
  font-size: 12px;
}
dialog {
  background: var(--panel);
}
[data-theme="dark"]
  :is(
    .secondary,
    label,
    td,
    td strong,
    .breadcrumb b,
    .empty h3,
    .funnel-line b,
    .doc-body p,
    .doc-body li
  ) {
  color: var(--ink);
}
[data-theme="dark"]
  :is(
    .hint,
    .metric-label,
    .metric small,
    .card-meta,
    .pixel-id,
    th,
    .step p,
    .chart-labels,
    .funnel-line,
    .empty
  ) {
  color: var(--muted);
}
[data-theme="dark"]
  :is(input, select, textarea, td, .setup-tabs button, .connect-card) {
  border-color: var(--line);
}
[data-theme="dark"]
  :is(
    th,
    .secondary:hover,
    .icon-button,
    .inline-code,
    .avatar,
    .funnel-track
  ) {
  background: #243646;
  color: var(--ink);
}
[data-theme="dark"] :is(.secret, .step b, .setup-tabs button.active) {
  background: #183d37;
  border-color: #2b6457;
  color: #7ce3c7;
}
[data-theme="dark"] .setup-tabs button {
  color: var(--muted);
}
[data-theme="dark"] .notice {
  background: #3b3422;
  border-color: #6b5933;
  color: #f1d28b;
}
[data-theme="dark"] :is(.danger, .pill.red) {
  background: #4a2731;
  color: #ffb2bc;
}
[data-theme="dark"] .pill {
  background: #183d37;
  color: #7ce3c7;
}
[data-theme="dark"] .pill.blue {
  background: #273d60;
  color: #b3cbff;
}
[data-theme="dark"] .pill.muted {
  background: #30404e;
  color: #c4d1df;
}
[data-theme="dark"] .primary {
  color: #08271e;
}
[data-theme="dark"] .primary:hover {
  background: #66debf;
}
[data-theme="dark"] .error {
  color: #ff9cae !important;
}
[data-theme="dark"] :is(.connect-screen, .install-note) {
  background: var(--bg);
  color: var(--muted);
}
[data-theme="dark"] :is(input:focus, select:focus, textarea:focus) {
  box-shadow: 0 0 0 3px #225044;
}
@media (max-width: 900px) {
  header {
    flex-wrap: wrap;
    padding: 16px 20px;
  }
  .header-actions {
    margin-left: auto;
    gap: 15px;
  }
}
@media (max-width: 520px) {
  .header-actions {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }
  .header-actions > button {
    padding: 10px;
    font-size: 10px;
    flex-shrink: 0;
  }
  .user-panel {
    width: 240px;
  }
  .revenue-caption {
    flex-wrap: wrap;
    gap: 3px;
  }
}

/* Compact operations layout, shared by both themes. */
:root {
  --green: #0866e8;
  --blue: #0866e8;
  --deep: #1d2438;
}
:root[data-theme="dark"] {
  --bg: #181e31;
  --panel: #272f46;
  --ink: #e1e5ef;
  --muted: #aeb7c8;
  --line: #3b4359;
  --green: #0866e8;
  --blue: #438dff;
}
.workspace {
  grid-template-columns: 180px minmax(0, 1fr);
}
.workspace aside {
  padding: 12px 8px;
  background: #1e263b;
}
.workspace aside .brand {
  font-size: 28px;
  padding: 2px 10px 20px;
}
.workspace .nav-label {
  font-size: 9px;
  letter-spacing: 0.7px;
  padding: 0 10px 10px;
  color: #a3afc5;
}
.workspace nav {
  gap: 3px;
}
.workspace nav button {
  border-radius: 3px;
  padding: 8px 10px;
  color: #d1d8e5;
}
.workspace nav button:hover {
  background: #303a52;
}
.workspace nav button.selected {
  color: #fff;
  background: #0759d5;
  box-shadow: none;
}
#operations {
  gap: 5px;
  padding-bottom: 8px;
  margin-bottom: 8px;
}
#operations .operation {
  padding: 8px 10px;
  border-radius: 3px;
  color: #dce3f0;
  font-size: 11px;
  background: #171e30;
}
#operations .operation.current {
  background: #171e30;
  color: #fff;
}
.operation-menu {
  margin: 4px 0 6px;
  padding: 0;
  border: 0;
  gap: 2px;
}
#operations .operation-menu button {
  padding: 7px 10px 7px 20px;
  gap: 8px;
}
#operations .operation-menu button span {
  font-size: 11px;
}
#operations .operation-menu .menu-icon {
  font-size: 13px;
}
#operations .sidebar-create {
  font-size: 11px;
  padding: 9px 10px;
  color: #91baff;
}
.workspace .sidebar-foot {
  font-size: 10px;
  padding: 14px 10px 0;
}
.workspace header {
  min-height: 72px;
  padding: 8px 18px;
  gap: 12px;
}
.workspace .header-actions {
  gap: 16px;
}
.workspace .user-panel {
  width: 240px;
}
.workspace .user-badge {
  font-size: 10px;
  margin-bottom: 4px;
}
.workspace .avatar {
  width: 25px;
  height: 25px;
  background: #0759d5;
  color: #fff;
}
.workspace .page-body {
  padding: 14px 14px 0;
  max-width: none;
}
.workspace .title-row {
  margin-bottom: 12px;
}
.workspace .title-row h1 {
  font-size: 18px;
  letter-spacing: -0.3px;
  margin: 0;
}
.workspace #page-eyebrow {
  display: none;
}
.workspace #page-description {
  margin-top: 5px;
  font-size: 11px;
}
.workspace :is(.primary, .secondary, .danger) {
  padding: 8px 13px;
  border-radius: 3px;
  font-size: 11px;
}
.workspace .primary {
  background: #0866e8;
  color: #fff;
}
.workspace .primary:hover {
  background: #0756c4;
}
.workspace .toolbar {
  padding: 12px;
  gap: 12px;
  margin-bottom: 12px;
  border-radius: 4px;
}
.workspace .toolbar label {
  gap: 6px;
  font-size: 10px;
}
.workspace :is(input, select) {
  padding: 7px 9px;
  border-radius: 3px;
  font-size: 11px;
}
.workspace .dashboard-settings {
  margin-bottom: 10px;
}
.workspace .panel {
  padding: 14px;
  border-radius: 4px;
  margin-bottom: 12px;
}
.workspace .panel-head {
  margin-bottom: 12px;
}
.workspace .panel-head h3 {
  font-size: 12px;
}
.workspace .panel-head p {
  font-size: 10px;
}
.workspace .hint {
  font-size: 10px;
  line-height: 1.6;
}
.workspace .metric-grid {
  gap: 10px;
  margin-bottom: 12px;
}
.workspace .metric {
  padding: 13px;
  border-radius: 4px;
}
.workspace .metric-label {
  font-size: 10px;
}
.workspace .metric-value {
  font-size: 20px;
  letter-spacing: -0.4px;
  margin: 8px 0;
}
.workspace .metric.featured {
  background: var(--panel);
  border-color: var(--line);
  color: #16b95e;
}
.workspace .metric.featured .metric-label {
  color: var(--muted);
}
.workspace .metric.featured small {
  color: var(--muted);
}
.workspace :is(.card-grid, .split) {
  gap: 10px;
}
.workspace .setup-hero {
  padding: 18px;
  border-radius: 4px;
  margin-bottom: 12px;
}
.workspace .setup-hero h2 {
  font-size: 20px;
}
.workspace .setup-tabs {
  gap: 8px;
  margin-bottom: 12px;
}
.workspace .setup-tabs button {
  border-radius: 3px;
  padding: 10px 12px;
}
.workspace .setup-tabs button.active {
  background: var(--panel);
  color: var(--blue);
  border-color: var(--blue);
}
.integration-tabs {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
}
.integration-tabs button {
  flex: 1 0 110px;
  padding: 15px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  text-align: left;
}
.integration-tabs button.active {
  color: var(--blue);
  border-bottom-color: var(--blue);
}
.integration-status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.workspace .profile-accounts {
  border-radius: 4px;
}
.workspace .profile-accounts summary {
  padding: 14px;
  font-size: 12px;
}
.workspace .profile-accounts summary span {
  font-size: 10px;
}
.workspace .profile-accounts input[role="switch"] {
  background: #616a7c;
}
.workspace .profile-accounts input[role="switch"]:checked {
  background: #0866e8;
}
.workspace .profile-account-options {
  padding: 0 14px 12px;
}
.workspace .account-line {
  padding: 10px 0;
}
.workspace table {
  font-size: 11px;
}
.workspace th {
  font-size: 9px;
  padding: 10px 9px;
  text-transform: uppercase;
  letter-spacing: 0.2px;
}
.workspace td {
  padding: 11px 9px;
  border: 1px solid var(--line);
}
.workspace td strong {
  font-weight: 600;
}
.workspace td small {
  font-size: 9px;
  margin-top: 4px;
}
.workspace .table-wrap {
  border: 1px solid var(--line);
  border-radius: 3px;
}
.workspace tbody tr:nth-child(even) {
  background: color-mix(in srgb, var(--panel) 94%, var(--ink));
}
.workspace tbody tr:hover {
  background: color-mix(in srgb, var(--panel) 87%, var(--blue));
}
.workspace footer {
  font-size: 10px;
  margin-top: 20px;
  padding-top: 14px;
}
.meta-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}
.meta-tabs button {
  background: var(--panel);
  color: var(--muted);
  padding: 13px;
  text-align: left;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 4px 4px 0 0;
  font-size: 12px;
  font-weight: 600;
}
.meta-tabs button.active {
  color: var(--blue);
  border-bottom-color: #0866e8;
}
.workspace .meta-panel {
  border-top: 0;
  border-radius: 0 0 4px 4px;
}
.workspace .meta-filters {
  padding: 12px 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
}
.workspace .meta-filters label {
  flex: 1;
  min-width: 170px;
}
.meta-panel .table-wrap {
  max-height: 70vh;
}
.meta-panel th {
  position: sticky;
  top: 0;
  z-index: 1;
}
.meta-panel td:first-child {
  white-space: normal;
  min-width: 200px;
  max-width: 280px;
}
.metric-positive {
  color: #16c76b;
  font-weight: 600;
}
.metric-negative {
  color: #fa6170;
  font-weight: 600;
}
.ad-status {
  display: inline-block;
  width: 25px;
  height: 14px;
  border-radius: 10px;
  background: #646c7d;
  vertical-align: middle;
  margin-right: 6px;
}
.ad-status::after {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  margin: 2px;
  border-radius: 50%;
  background: #fff;
}
.ad-status.active {
  background: #0866e8;
}
.ad-status.active::after {
  transform: translateX(11px);
}
[data-theme="dark"] .workspace th {
  background: #333d56;
}
[data-theme="dark"] .workspace .metric small {
  color: #9ea9be;
}
[data-theme="dark"] .workspace .notice {
  background: #3b3240;
  border-color: #594854;
  color: #eed2ae;
}
@media (min-width: 1500px) {
  .workspace .metric-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
@media (max-width: 950px) {
  .workspace {
    grid-template-columns: 164px minmax(0, 1fr);
  }
  .workspace .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .workspace .toolbar label {
    flex: 1;
    min-width: 120px;
  }
  .workspace header {
    padding: 10px 12px;
  }
}
@media (max-width: 700px) {
  .workspace {
    display: block;
  }
  .workspace aside {
    position: static;
    height: auto;
    max-height: 45vh;
  }
  .workspace aside .brand {
    padding-bottom: 10px;
  }
  .workspace header {
    flex-wrap: wrap;
  }
  .workspace .page-body {
    padding: 10px;
  }
  .workspace .meta-filters label {
    min-width: 140px;
  }
  .meta-tabs {
    gap: 3px;
  }
  .meta-tabs button {
    padding: 11px 6px;
    font-size: 10px;
  }
  .workspace .panel-head {
    flex-wrap: wrap;
  }
  .workspace .profile-accounts summary span {
    display: block;
    margin: 6px 0 0;
  }
}
