@layer legacy {
* {
  box-sizing: border-box;
}
html {
  background: #f7f8f7;
  color: #172421;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 14px;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
a {
  color: #087b50;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 29px;
  letter-spacing: -0.035em;
  margin-bottom: 9px;
}
h2 {
  font-size: 19px;
  letter-spacing: -0.02em;
}
h3 {
  font-size: 15px;
}
.muted {
  color: #586b63;
}
.small {
  font-size: 12px;
}
.loading {
  display: grid;
  place-items: center;
  min-height: 60vh;
  color: #586b63;
}
.shell {
  display: grid;
  grid-template-columns: 236px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: #102d23;
  color: #586b63;
  padding: 28px 18px;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.brand {
  font-size: 22px;
  font-weight: 750;
  letter-spacing: -0.05em;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 9px;
}
.brand-mark {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #8ce3bd;
  color: #102d23;
  font-size: 18px;
}
.sidebar label {
  color: #586b63;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.sidebar select {
  width: 100%;
  background: #213356;
  border: 1px solid #354667;
  color: #fff;
  border-radius: 8px;
  padding: 10px;
  margin: 7px 0;
}
.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.sidebar nav :is(button, a) {
  background: none;
  color: #586b63;
  border: 0;
  text-align: left;
  padding: 12px;
  border-radius: 8px;
  font-weight: 550;
}
.sidebar nav :is(button, a).active,
.sidebar nav :is(button, a):hover {
  background: #2a3c60;
  color: #fff;
}
.sidebar nav :is(button, a) span {
  display: inline-block;
  width: 25px;
}
.sidebar .bottom {
  margin-top: auto;
  border-top: 1px solid #33425f;
  padding-top: 18px;
  word-break: break-word;
}
.sidebar .bottom button {
  color: #586b63;
  background: none;
  border: 0;
  padding: 8px 0;
}
.workspace {
  min-width: 0;
  padding: 36px 42px 60px;
}
.topline {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 28px;
}
.eyebrow {
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: #52675c;
  font-weight: 700;
  margin-bottom: 12px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.btn {
  border: 1px solid #d8e0da;
  background: white;
  color: #233b2e;
  border-radius: 8px;
  padding: 10px 14px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  line-height: 1.2;
}
.btn:hover {
  background: #edf4ef;
}
.btn.primary {
  background: #087b50;
  border-color: #087b50;
  color: white;
}
.btn.primary:hover {
  background: #05633f;
}
.btn.danger {
  color: #a63342;
  border-color: #edcdd2;
}
.btn.small {
  padding: 7px 10px;
  font-size: 12px;
}
.btn.ghost {
  border-color: transparent;
  background: transparent;
}
.scope {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 12px;
  border: 1px solid #dce3de;
  background: #fff;
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 24px;
}
.scope label {
  font-size: 11px;
  color: #6e7b90;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.scope input,
.scope select {
  width: 140px;
  padding: 8px;
  border: 1px solid #dce2ed;
  border-radius: 6px;
  background: #fff;
  color: #33445e;
}
.scope input[type="date"] {
  width: 145px;
}
.scope .btn {
  margin-left: auto;
}
.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.card,
.panel {
  background: #fff;
  border: 1px solid #dce3de;
  border-radius: 12px;
  padding: 22px;
  box-shadow: 0 2px 3px #17244302;
}
.card .metric {
  font-size: 32px;
  font-weight: 650;
  letter-spacing: -0.04em;
  margin: 12px 0 4px;
}
.card .label {
  color: #51675c;
  font-size: 12px;
}
.panel {
  margin-bottom: 20px;
  overflow: hidden;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.panel-head h2 {
  margin: 0;
}
.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  white-space: nowrap;
}
th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #51675c;
  font-weight: 600;
  border-bottom: 1px solid #e3e8f1;
  padding: 12px 10px;
}
td {
  padding: 15px 10px;
  border-bottom: 1px solid #eef1f7;
  font-size: 13px;
}
tbody tr:last-child td {
  border-bottom: 0;
}
.badge {
  display: inline-block;
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 11px;
  line-height: 1;
  font-weight: 650;
  background: #edf1f8;
  color: #66758d;
}
.badge.running,
.badge.verified {
  background: #e6f6ee;
  color: #26734e;
}
.badge.draft {
  background: #eef0fd;
  color: #5e62b0;
}
.badge.stopped,
.badge.warning {
  background: #fff4df;
  color: #946916;
}
.badge.qa {
  background: #f3eafa;
  color: #7f47a4;
}
.empty {
  padding: 38px 20px;
  text-align: center;
  color: #5c6d63;
}
.empty h3 {
  color: #344762;
  font-size: 17px;
}
.empty p {
  max-width: 500px;
  margin: 10px auto 18px;
  line-height: 1.7;
}
.note {
  font-size: 12px;
  line-height: 1.65;
  color: #5c6d63;
  margin: 14px 0 0;
}
.notice {
  background: #eef4ff;
  border: 1px solid #dbe6fb;
  border-radius: 9px;
  padding: 15px;
  line-height: 1.7;
  color: #4b6087;
  margin-bottom: 20px;
}
.notice.warning {
  background: #fff9eb;
  border-color: #f1e0b8;
  color: #896929;
}
.pill-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.bar-row {
  display: grid;
  grid-template-columns: 130px 1fr 70px;
  align-items: center;
  gap: 14px;
  margin: 18px 0;
}
.bar {
  background: #eef2f8;
  border-radius: 6px;
  height: 12px;
  overflow: hidden;
}
.bar > i {
  display: block;
  height: 100%;
  background: #087b50;
  border-radius: 6px;
}
.funnel-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.stage {
  background: #f5f7fc;
  border: 1px solid #e0e7f2;
  border-radius: 10px;
  min-width: 145px;
  padding: 20px;
}
.stage strong {
  font-size: 26px;
  display: block;
  margin-top: 10px;
}
.arrow {
  color: #8999b1;
  font-size: 20px;
}
.wrap {
  white-space: normal;
  min-width: 160px;
  max-width: 400px;
}
.code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  background: #f0f3f9;
  border-radius: 6px;
  padding: 10px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.7;
}
.split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
dialog {
  border: 0;
  border-radius: 16px;
  padding: 0;
  max-width: min(1000px, calc(100vw - 28px));
  width: 640px;
  box-shadow: 0 25px 100px #10204030;
  max-height: 90vh;
  max-height: 90dvh;
  color: #24344f;
}
dialog::backdrop {
  background: #13243a66;
  backdrop-filter: blur(3px);
}
dialog.wide {
  width: 1000px;
}
#dialog-form {
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  max-height: 90dvh;
}
.dialog-head,
.dialog-foot {
  flex: 0 0 auto;
}
.dialog-head {
  padding: 24px 26px 18px;
  border-bottom: 1px solid #e4e9f2;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dialog-head h2 {
  margin: 0;
}
.dialog-body {
  padding: 24px 26px;
  min-height: 0;
  overflow: auto;
}
.dialog-foot {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 18px 26px;
  border-top: 1px solid #e4e9f2;
  background: #fafbfe;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 18px;
}
.field > span {
  font-size: 12px;
  font-weight: 650;
  color: #50617c;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #d5ddeb;
  border-radius: 7px;
  padding: 11px;
  background: white;
  color: #253752;
}
.field textarea {
  min-height: 100px;
  resize: vertical;
  line-height: 1.6;
}
.field textarea.source {
  font:
    12px/1.6 ui-monospace,
    SFMono-Regular,
    monospace;
  min-height: 160px;
  background: #fafbff;
  tab-size: 2;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid #97afe8;
  outline-offset: 1px;
}
.field.full {
  grid-column: 1/-1;
}
.checks {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.checks label {
  display: flex;
  align-items: center;
  gap: 7px;
}
.variant {
  border: 1px solid #dfe5f0;
  border-radius: 10px;
  padding: 18px;
  margin: 20px 0;
}
.treatment {
  border-top: 1px solid #e5eaf2;
  padding-top: 18px;
  margin-top: 16px;
}
.error {
  color: #b03a4c;
  background: #fff0f2;
  border-radius: 6px;
  padding: 11px;
  margin: 12px 0;
  line-height: 1.6;
}
.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.login-story {
  background: #102d23;
  color: #fff;
  padding: 70px 10%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.login-story h1 {
  font-size: clamp(36px, 4vw, 58px);
  line-height: 1.15;
  max-width: 550px;
  margin: 50px 0 25px;
}
.login-story p {
  font-size: 17px;
  line-height: 1.8;
  color: #b9c7e0;
  max-width: 440px;
}
.login-form {
  display: grid;
  place-items: center;
  padding: 36px;
}
.login-form form {
  width: 100%;
  max-width: 360px;
}
.login-form h2 {
  font-size: 25px;
}
.login-form .btn {
  width: 100%;
  padding: 13px;
}
.login-form .field {
  margin-top: 20px;
}
#toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  background: #102d23;
  color: #fff;
  padding: 14px 22px;
  border-radius: 9px;
  box-shadow: 0 5px 24px #0002;
  max-width: 400px;
  display: none;
}
#toast.visible {
  display: block;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.mobile-menu {
  display: none;
}
@media (max-width: 1100px) {
  .workspace {
    padding: 28px;
  }
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid2 {
    grid-template-columns: 1fr;
  }
  .shell {
    grid-template-columns: 210px 1fr;
  }
  .sidebar {
    padding: 24px 14px;
  }
}
@media (max-width: 720px) {
  .shell {
    display: block;
  }
  .sidebar {
    position: relative;
    height: auto;
    padding: 18px;
    gap: 12px;
  }
  .sidebar nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
  }
  .sidebar nav :is(button, a) {
    padding: 9px;
    font-size: 12px;
  }
  .sidebar nav :is(button, a) span {
    width: 17px;
  }
  .sidebar .bottom {
    display: none;
  }
  .sidebar .project-controls {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .sidebar select {
    margin: 0;
  }
  .sidebar .project-controls > label {
    display: none;
  }
  .brand {
    font-size: 20px;
  }
  .workspace {
    padding: 22px 16px;
  }
  .topline {
    flex-direction: column;
    margin-bottom: 20px;
  }
  h1 {
    font-size: 26px;
  }
  .scope {
    gap: 9px;
    padding: 12px;
  }
  .scope label {
    flex: 1;
    min-width: 110px;
  }
  .scope input,
  .scope select,
  .scope input[type="date"] {
    width: 100%;
  }
  .cards {
    gap: 10px;
  }
  .card,
  .panel {
    padding: 16px;
  }
  .metric {
    font-size: 28px !important;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .field.full {
    grid-column: auto;
  }
  .dialog-body,
  .dialog-head {
    padding: 18px;
  }
  .dialog-foot {
    padding: 14px 18px;
  }
  .login-page {
    grid-template-columns: 1fr;
  }
  .login-story {
    padding: 30px;
  }
  .login-story h1 {
    font-size: 32px;
    margin: 22px 0 12px;
  }
  .login-story p {
    display: none;
  }
  .login-form {
    padding: 30px 24px;
  }
  .stage {
    min-width: 120px;
    padding: 16px;
  }
  .bar-row {
    grid-template-columns: 85px 1fr 45px;
    gap: 9px;
  }
  #toast {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }
  .code {
    font-size: 11px;
  }
}

/* Decision-first workspace: measured outcomes and tracking health stay distinct. */
:root {
  color-scheme: light;
  --ink: #172421;
  --muted: #586b63;
  --accent: #087b50;
  --line: #dce3de;
}
body {
  line-height: 1.45;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible,
select:focus-visible,
input:focus-visible {
  outline: 3px solid #1b8b67;
  outline-offset: 3px;
}
h1 {
  font-size: 32px;
  letter-spacing: -0.04em;
  margin-bottom: 5px;
}
h2 {
  font-size: 18px;
}
p {
  line-height: 1.6;
}
.shell {
  grid-template-columns: 224px minmax(0, 1fr);
}
.sidebar {
  background: #fcfdfc;
  color: var(--ink);
  border-right: 1px solid var(--line);
  padding: 24px 16px;
  gap: 18px;
}
.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.sidebar .brand {
  color: #15261d;
  font-size: 21px;
  letter-spacing: -0.04em;
  white-space: nowrap;
}
.brand-mark {
  background: #b6f0d4;
  border-radius: 7px;
  color: #065a38;
  width: 30px;
  height: 30px;
}
.sidebar label {
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
  font-size: 12px;
}
.sidebar select {
  background: white;
  color: var(--ink);
  border-color: #cbd7ce;
  padding: 9px;
  min-height: 40px;
}
.project-controls {
  position: relative;
}
.project-controls > .btn {
  position: absolute;
  right: 0;
  top: -5px;
}
.sidebar nav {
  margin-top: 6px;
  gap: 5px;
}
.sidebar nav :is(button, a) {
  color: #42564a;
  min-height: 44px;
  padding: 12px;
}
.sidebar nav :is(button, a).active {
  color: #075538;
  background: #d7f4e4;
}
.sidebar nav :is(button, a):hover {
  background: #ecf5ee;
  color: #075538;
}
.sidebar nav :is(button, a) span {
  font-size: 18px;
  line-height: 1;
  vertical-align: middle;
}
.sidebar .bottom {
  border-color: var(--line);
  font-size: 12px;
  color: var(--muted);
}
.sidebar .bottom button {
  color: #315d44;
  min-height: 40px;
}
.workspace {
  padding: 30px 32px 50px;
  max-width: 1800px;
  width: 100%;
  margin: 0 auto;
}
.topline {
  margin-bottom: 20px;
  align-items: center;
}
.eyebrow {
  color: var(--muted);
  letter-spacing: 0.06em;
  margin-bottom: 7px;
  font-size: 10px;
}
.topline p {
  margin: 0;
}
.btn {
  min-height: 40px;
  line-height: 1.4;
  padding: 9px 13px;
  border-color: #ccd8cf;
  color: #244330;
}
.btn.primary {
  background: #087b50;
  border-color: #087b50;
}
.btn.primary:hover {
  background: #06623f;
}
.card,
.panel {
  border-color: var(--line);
  border-radius: 10px;
  box-shadow: none;
}
.card {
  padding: 20px;
}
.card .label {
  font-size: 13px;
  font-weight: 600;
  color: #3f5a4b;
}
.card .metric {
  font-size: 34px;
  font-weight: 700;
  margin: 10px 0 5px;
  font-variant-numeric: tabular-nums;
}
.cards {
  gap: 14px;
  margin-bottom: 20px;
}
.panel {
  padding: 20px;
  margin-bottom: 20px;
}
.panel-head {
  margin-bottom: 15px;
}
.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 1fr);
  gap: 20px;
}
.scope {
  position: relative;
  background: none;
  border: 0;
  padding: 0;
  gap: 12px;
  margin-bottom: 20px;
  align-items: start;
}
.scope-dates {
  display: flex;
  align-items: end;
  gap: 10px;
  flex-wrap: wrap;
}
.scope label {
  font-size: 11px;
  color: #52685a;
}
.scope input,
.scope select {
  min-height: 40px;
  border-color: #cbd7ce;
  color: #244330;
}
.scope .btn {
  margin: 0;
}
.scope input[type="date"] {
  width: 145px;
}
.date-separator {
  align-self: center;
  padding-top: 17px;
  color: #64796a;
}
.filter-details {
  margin-top: 21px;
}
.filter-details > summary {
  list-style: none;
  cursor: pointer;
  background: white;
}
.filter-details > summary::-webkit-details-marker {
  display: none;
}
.filter-grid {
  position: absolute;
  right: 0;
  top: 72px;
  z-index: 15;
  width: min(620px, 100%);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  background: white;
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px #183e2c19;
  padding: 20px;
  border-radius: 10px;
}
.filter-grid input,
.filter-grid select {
  width: 100%;
}
.filter-grid .btn {
  align-self: end;
}
.scope-chips {
  flex-basis: 100%;
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.scope-chips > span {
  background: #e6f0e9;
  color: #244f36;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 12px;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.checks-list {
  margin: 0 0 15px;
}
.checks-list > div {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
  border-bottom: 1px solid #e8ede9;
  padding: 13px 0;
}
.checks-list > div:first-child {
  padding-top: 0;
}
.checks-list dt {
  font-size: 13px;
}
.checks-list dd {
  margin: 0;
  text-align: right;
  font-weight: 650;
  font-size: 13px;
  max-width: 60%;
}
.checks-list small {
  display: block;
  color: #627469;
  font-size: 11px;
  font-weight: 400;
  margin-top: 5px;
}
.text-warning {
  color: #9b5609;
}
.trend {
  min-height: 210px;
}
.trend svg {
  display: block;
  width: 100%;
  height: auto;
  font-size: 11px;
  fill: #5a6e61;
  font-family: inherit;
}
.chart-grid {
  stroke: #e0e7e2;
  stroke-width: 1;
}
.chart-line {
  fill: none;
  stroke: #087b50;
  stroke-width: 2.3;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.chart-dot {
  fill: #087b50;
}
.chart-data {
  font-size: 12px;
  margin-top: 8px;
}
.chart-data summary {
  cursor: pointer;
  color: #315d44;
  min-height: 30px;
}
.chart-data .table-wrap {
  max-height: 300px;
}
.onboarding {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.onboarding li {
  font-size: 15px;
  color: #087b50;
}
.onboarding strong {
  color: #253f2e;
  font-size: 13px;
  margin-left: 6px;
}
.onboarding span {
  display: block;
  font-size: 12px;
  color: #627469;
  margin: 6px 0 0 20px;
}
th {
  background: #f6f8f6;
  text-transform: none;
  letter-spacing: 0;
  color: #51675c;
  font-size: 12px;
}
td {
  font-variant-numeric: tabular-nums;
}
.arm-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 5px 0;
}
.arm-key {
  display: inline-block;
  font-size: 11px;
  font-weight: 650;
  border-radius: 5px;
  padding: 4px 7px;
  white-space: normal;
}
.arm-0 {
  background: #daf3e4;
  color: #075437;
}
.arm-1 {
  background: #e8e8fb;
  color: #413d91;
}
.badge {
  line-height: 1.3;
}
.badge.draft {
  background: #f0f2f0;
  color: #57675c;
}
.badge.stopped {
  background: #f0f2f0;
  color: #57675c;
}
.badge.warning {
  color: #945409;
  background: #fff1db;
}
.detail-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.detail-tabs {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}
.detail-tabs .btn {
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  background: none;
  padding: 12px 3px;
}
.detail-tabs .selected {
  border-bottom-color: #087b50;
  color: #075437;
}
.experiment-results > .panel-head h3 {
  margin: 0;
}
.comparisons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 16px;
  margin-top: 18px;
}
.comparison {
  padding: 16px;
  background: #f9fbf9;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.comparison .split {
  align-items: start;
  flex-wrap: wrap;
}
.comparison .note {
  margin-top: 8px;
}
.interval {
  display: block;
  width: 100%;
  height: 45px;
  margin-top: 10px;
}
.interval-zero {
  stroke: #809389;
  stroke-width: 0.35;
  stroke-dasharray: 1, 1;
}
.interval-line {
  stroke: #087b50;
  stroke-width: 1;
}
.notice {
  background: #eef5f0;
  border-color: #dce9df;
  color: #3a644b;
  font-size: 12px;
  padding: 11px 14px;
}
.note {
  color: #5c6d63;
}
.code {
  color: #294532;
  background: #f0f5f1;
}
.skip-link {
  position: fixed;
  left: 12px;
  top: -70px;
  z-index: 100;
  background: white;
  padding: 12px;
  border: 2px solid #087b50;
}
.skip-link:focus {
  top: 10px;
}
.login-story {
  background: #102d23;
}
.login-story .brand {
  color: white;
}
.login-story p {
  color: #d0e5d8;
}
@media (max-width: 1200px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .overview-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 900px) {
  .workspace {
    padding: 24px;
  }
  .shell {
    grid-template-columns: 206px minmax(0, 1fr);
  }
  .sidebar {
    padding: 22px 12px;
  }
  .sidebar .brand {
    font-size: 19px;
  }
  .topline {
    align-items: start;
    flex-direction: column;
  }
  .scope-dates {
    gap: 7px;
  }
}
@media (max-width: 720px) {
  .shell {
    display: block;
  }
  .sidebar {
    position: sticky;
    top: 0;
    z-index: 30;
    height: auto;
    padding: 12px 16px;
    gap: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    background: #fcfdfcf5;
    backdrop-filter: blur(8px);
  }
  .sidebar .brand {
    font-size: 21px;
  }
  .brand-row {
    min-height: 40px;
  }
  .mobile-menu {
    display: inline-block;
    min-width: 44px;
    min-height: 44px;
    padding: 8px;
  }
  .sidebar .project-controls,
  .sidebar nav,
  .sidebar .bottom {
    display: none;
  }
  .sidebar.menu-open {
    max-height: 90dvh;
    overflow: auto;
    gap: 14px;
  }
  .sidebar.menu-open .project-controls,
  .sidebar.menu-open .bottom {
    display: block;
  }
  .sidebar.menu-open .project-controls > label {
    display: block;
  }
  .sidebar.menu-open nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .sidebar.menu-open .project-controls > .btn {
    top: -5px;
  }
  .sidebar.menu-open .bottom {
    padding-top: 12px;
  }
  .workspace {
    padding: 20px 16px 36px;
  }
  .topline {
    gap: 14px;
    margin-bottom: 18px;
  }
  h1 {
    font-size: 28px;
  }
  .topline .actions {
    gap: 7px;
  }
  .topline .actions > .btn {
    min-height: 44px;
  }
  .eyebrow {
    font-size: 10px;
  }
  .topline .muted {
    font-size: 13px;
  }
  .scope {
    gap: 9px;
  }
  .scope-dates {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 9px;
    width: 100%;
  }
  .scope-dates > .date-separator {
    display: none;
  }
  .scope-dates > .btn {
    grid-column: 1;
    min-height: 44px;
  }
  .scope label {
    min-width: 0;
  }
  .scope input[type="date"] {
    width: 100%;
    min-width: 0;
    font-size: 13px;
    min-height: 44px;
  }
  .filter-details {
    position: absolute;
    right: 0;
    top: 74px;
    margin: 0;
  }
  .filter-details > .summary {
    min-height: 44px;
  }
  .filter-details[open] {
    position: static;
    width: 100%;
  }
  .filter-details[open] > .filter-grid {
    position: static;
    width: 100%;
    margin-top: 10px;
    box-shadow: none;
    padding: 14px;
  }
  .filter-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .filter-grid .btn {
    min-height: 44px;
  }
  .filter-grid input,
  .filter-grid select {
    min-height: 44px;
  }
  .scope-chips {
    font-size: 11px;
  }
  .cards {
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .card,
  .panel {
    padding: 15px;
  }
  .card .label {
    font-size: 12px;
  }
  .card .metric {
    font-size: 28px !important;
  }
  .card .small {
    font-size: 11px;
  }
  .overview-grid {
    display: block;
  }
  .onboarding {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .onboarding span {
    margin-top: 3px;
  }
  .checks-list dd {
    max-width: 57%;
  }
  .panel-head {
    align-items: start;
    flex-wrap: wrap;
  }
  .panel-head h2 {
    font-size: 17px;
  }
  .responsive-results table,
  .responsive-results tbody,
  .responsive-results tr,
  .responsive-results td {
    display: block;
    width: 100%;
  }
  .responsive-results thead {
    display: none;
  }
  .responsive-results tr {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }
  .responsive-results td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: normal;
    gap: 14px;
    padding: 6px 0;
    border: 0;
  }
  .responsive-results td:before {
    content: attr(data-label);
    font-size: 12px;
    color: #586b63;
  }
  .responsive-results td:first-child:before {
    display: none;
  }
  .responsive-results td:first-child {
    font-weight: 700;
    margin-bottom: 5px;
  }
  .detail-tabs {
    gap: 28px;
  }
  .detail-tabs .btn {
    min-height: 44px;
  }
  .comparison {
    padding: 14px;
  }
  .comparison .badge {
    font-size: 10px;
  }
  .chart-data summary {
    min-height: 40px;
  }
  .trend {
    min-height: 190px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}

/* Scope controls disclose detail without displacing the current evidence. */
.scope {
  align-items: center;
}
.date-details,
.experiment-actions {
  position: relative;
}
.date-details > summary,
.experiment-actions > summary {
  list-style: none;
  cursor: pointer;
  background: white;
}
.date-details > summary::-webkit-details-marker,
.experiment-actions > summary::-webkit-details-marker {
  display: none;
}
.date-details .scope-dates {
  position: absolute;
  left: 0;
  top: 48px;
  z-index: 16;
  width: 455px;
  max-width: calc(100vw - 40px);
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
  box-shadow: 0 10px 30px #183e2c19;
}
.filter-details {
  margin-top: 0;
}
.filter-grid {
  top: 48px;
}
.actions-popover {
  position: absolute;
  right: 0;
  top: 48px;
  z-index: 17;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 170px;
  padding: 12px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
  box-shadow: 0 10px 30px #183e2c19;
}
.actions-popover > .btn {
  width: 100%;
  text-align: left;
}
h1,
.panel h2,
.panel h3 {
  overflow-wrap: anywhere;
}
@media (max-width: 720px) {
  .scope {
    align-items: start;
    flex-wrap: wrap;
  }
  .date-details {
    max-width: calc(100% - 82px);
  }
  .date-details > summary {
    font-size: 11px;
    min-height: 44px;
    display: flex;
    align-items: center;
    white-space: normal;
  }
  .filter-details,
  .filter-details[open] {
    position: static;
    right: auto;
    top: auto;
    width: auto;
    margin: 0;
  }
  .filter-details > summary {
    min-height: 44px;
  }
  .filter-details[open] > .filter-grid {
    position: absolute;
    top: 52px;
    right: 0;
    width: 100%;
    margin: 0;
    box-shadow: 0 10px 30px #183e2c19;
  }
  .date-details .scope-dates {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-width: 300px;
    width: calc(100vw - 32px);
    max-width: calc(100vw - 32px);
    padding: 14px;
  }
  .date-details .scope-dates > .btn {
    grid-column: 1/-1;
  }
  .experiment-actions > summary {
    min-height: 44px;
  }
}

@media (max-width: 720px) {
  .btn,
  .field input,
  .field select {
    min-height: 44px;
  }
}

.sidebar {
  overflow-y: auto;
}
.sidebar > .brand-row,
.sidebar > .project-controls {
  flex-shrink: 0;
}
@media (max-width: 720px) {
  .responsive-experiments table,
  .responsive-experiments tbody,
  .responsive-experiments tr,
  .responsive-experiments td {
    display: block;
    width: 100%;
  }
  .responsive-experiments thead {
    display: none;
  }
  .responsive-experiments tr {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }
  .responsive-experiments td {
    display: flex;
    align-items: start;
    justify-content: space-between;
    white-space: normal;
    gap: 12px;
    padding: 7px 0;
    border: 0;
  }
  .responsive-experiments td:before {
    content: attr(data-label);
    font-size: 12px;
    color: #586b63;
  }
  .responsive-experiments td:first-child {
    display: block;
  }
  .responsive-experiments td:first-child:before,
  .responsive-experiments td:last-child:before {
    display: none;
  }
  .responsive-experiments td[data-label="Goal rate · assigned"] {
    display: block;
  }
  .responsive-experiments td[data-label="Goal rate · assigned"]:before {
    display: block;
    margin-bottom: 6px;
  }
  .responsive-experiments td:last-child .btn {
    width: 100%;
  }
  .arm-line .arm-key {
    max-width: 120px;
  }
}

.interval-line {
  stroke: #5c52a4;
}
.interval .chart-dot {
  fill: #5c52a4;
}

/* Focused page investigation and navigable directories. */
.entity-link {
  color: var(--accent, #147650);
  font-weight: 650;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
.entity-link:hover {
  text-decoration-thickness: 2px;
}
.entity-link:focus-visible {
  outline: 3px solid #9aaeff;
  outline-offset: 4px;
  border-radius: 3px;
}
.list-tools {
  display: flex;
  gap: 12px;
  align-items: end;
  flex-wrap: wrap;
  margin: 18px 0;
}
.list-tools .field {
  flex: 1;
  min-width: 180px;
  margin: 0;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.page-heading {
  margin: 24px 0 16px;
}
.page-heading h2 {
  margin: 14px 0 8px;
  font-size: 20px;
}
.page-selectors {
  max-width: 680px;
  margin-bottom: 20px;
}
.reach-compare {
  display: grid;
  gap: 24px;
}
.reach-compare.paired {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.reach-profile {
  min-width: 0;
}
.reach-row {
  display: grid;
  grid-template-columns: 100px minmax(50px, 1fr) 55px;
  align-items: center;
  gap: 10px;
  margin: 20px 0;
}
.reach-row > .small {
  grid-column: 2/4;
}
.reach-compare.paired .reach-profile + .reach-profile .bar i {
  background: #6466bd;
}
.compare-picker {
  max-width: 520px;
}
.page-directory td:first-child {
  max-width: 420px;
}
@media (max-width: 700px) {
  .reach-compare.paired {
    grid-template-columns: 1fr;
  }
  .reach-compare.paired .reach-profile + .reach-profile {
    border-top: 1px solid var(--line, #dde3df);
    padding-top: 20px;
  }
  .list-tools > .btn {
    width: 100%;
  }
  .page-directory td:first-child {
    max-width: 230px;
  }
  .pagination .actions {
    flex-wrap: wrap;
  }
}
.variant-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 20px 0;
}
.variant-mini {
  padding: 20px;
  border: 1px solid #dce5df;
  border-radius: 12px;
  background: #f7faf8;
}
.change-editor {
  border: 1px solid #dce5df;
  border-radius: 12px;
  padding: 18px;
  margin: 18px 0;
}
.change-editor > summary {
  font-weight: 700;
  padding: 6px 0 16px;
  cursor: pointer;
}
.draft-review > div {
  display: grid;
  grid-template-columns: 150px 1fr;
  padding: 14px 0;
  border-bottom: 1px solid #e3e8e5;
  gap: 16px;
}
.draft-review dt {
  color: #586b63;
}
.draft-review dd {
  margin: 0;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.readiness {
  list-style: none;
  padding: 0;
  margin: 0;
}
.readiness li {
  display: flex;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid #e3e8e5;
}
.readiness p {
  margin: 6px 0 0;
  overflow-wrap: anywhere;
}
.check-indicator {
  flex: 0 0 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
}
.check-indicator.ready {
  background: #e2f4e9;
  color: #075a3c;
}
.check-indicator.needs-action {
  background: #fff0d5;
  color: #7b4700;
}
.directory-counts {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  color: #586b63;
}
.variant-summary {
  padding: 22px 0;
  border-bottom: 1px solid #e2e8e4;
}
@media (max-width: 600px) {
  .wizard-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .variant-pair {
    grid-template-columns: 1fr;
  }
  .draft-review > div {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

.sidebar nav a {
  display: block;
  text-decoration: none;
  min-height: 44px;
}
.directory-counts span {
  padding: 6px 10px;
  border: 1px solid #dce5df;
  border-radius: 8px;
}
.detail-tabs {
  flex-wrap: wrap;
  gap: 6px 18px;
}
.detail-tabs .btn {
  white-space: nowrap;
  min-height: 44px;
  flex: 0 0 auto;
}
.directory-counts .btn[aria-pressed="true"] {
  background: #d5efe1;
  border-color: #7fbb9d;
  color: #075437;
}

/* Create-first experiment workspace and assignment-cohort comparisons. */
.workspace-state {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin: 22px 0;
  padding: 18px 20px;
  background: var(--mint-soft, #eaf5ee);
  border: 1px solid #d5e5db;
  border-radius: 12px;
}
.workspace-state p {
  margin: 7px 0 0;
  color: #53655d;
  font-size: 13px;
  max-width: 750px;
}
.configuration-flow {
  display: grid;
  grid-template-columns: 1fr 1fr 1.5fr;
  gap: 20px;
  align-items: stretch;
  margin: 20px 0;
}
.configuration-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 20px 0;
}
.configuration-card {
  background: #fff;
  border: 1px solid #dce3df;
  border-radius: 12px;
  padding: 20px;
  min-width: 0;
}
.configuration-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.configuration-title h2 {
  font-size: 16px;
  margin: 0;
}
.rule-chip {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 12px;
  background: #f5f8f6;
  border: 1px solid #e5eae7;
  border-radius: 8px;
  overflow-wrap: anywhere;
  margin-bottom: 10px;
  font-size: 13px;
}
.configuration-arm {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid #edf0ee;
  flex-wrap: wrap;
}
.configuration-arm > div {
  flex: 1;
  min-width: 100px;
}
.configuration-arm small {
  display: block;
  font-size: 12px;
  color: #66766d;
  margin-top: 5px;
}
.configuration-arm:last-child {
  border-bottom: 0;
}
.goal-summary .badge {
  margin-left: 10px;
}
.goal-summary p {
  margin-top: 12px;
}
.allocation-track {
  height: 12px;
  display: flex;
  border-radius: 20px;
  overflow: hidden;
  margin: 18px 0;
}
.allocation-segment {
  min-width: 1px;
}
.arm-color-0 {
  background: #117654;
}
.arm-color-1 {
  background: #566ac0;
}
.arm-color-2 {
  background: #b87529;
}
.arm-color-3 {
  background: #9b589b;
}
.arm-color-4 {
  background: #327e9e;
}
.arm-color-5 {
  background: #9b6554;
}
.compact-definitions > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #edf0ee;
}
.compact-definitions dt {
  color: #65756c;
}
.compact-definitions dd {
  margin: 0;
  font-weight: 600;
}
.variation-page {
  padding: 18px 0;
  margin-bottom: 18px;
  border-bottom: 1px solid #e1e7e3;
}
.variation-page details {
  padding: 10px 0;
  margin-bottom: 14px;
}
.variation-page details[open] > summary {
  margin-bottom: 18px;
}
.variation-page summary {
  cursor: pointer;
  color: #39644f;
}
.report-context {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 12px 0 22px;
}
.report-context > span.small {
  flex: 1;
}
.report-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  flex-wrap: wrap;
  margin: 22px 0;
}
.report-toolbar form {
  display: flex;
  gap: 12px;
  align-items: end;
  flex-wrap: wrap;
}
.report-toolbar .field {
  margin: 0;
  min-width: 220px;
}
.page-link {
  overflow-wrap: anywhere;
  min-width: 160px;
  display: inline-block;
  max-width: 300px;
}
@media (max-width: 1100px) {
  .configuration-flow {
    grid-template-columns: 1fr 1fr;
  }
  .configuration-flow .variation-config {
    grid-column: 1/-1;
  }
}
@media (max-width: 700px) {
  .configuration-flow,
  .configuration-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .configuration-flow .variation-config {
    grid-column: auto;
  }
  .workspace-state {
    align-items: start;
    flex-direction: column;
    padding: 16px;
  }
  .configuration-card {
    padding: 16px;
  }
  .report-toolbar form,
  .report-toolbar .field {
    width: 100%;
  }
  .configuration-title .btn.small {
    min-height: 44px;
  }
  .detail-tabs {
    flex-wrap: wrap;
  }
  .configuration-arm .btn {
    min-height: 44px;
  }
}
.comparison-selector {
  display: flex;
  align-items: end;
  gap: 12px;
  flex-wrap: wrap;
  margin: 20px 0;
}
.comparison-selector .field {
  min-width: 260px;
  margin: 0;
}
@media (max-width: 700px) {
  .comparison-selector .field {
    min-width: 0;
    width: 100%;
  }
}
.page-link {
  width: 160px;
  min-width: 160px;
  max-width: 160px;
  white-space: normal;
}
.table-wrap:focus-visible {
  outline: 2px solid #117654;
  outline-offset: 4px;
}
.table-scroll-hint {
  display: none;
}
.metric-definitions {
  margin-top: 18px;
  font-size: 13px;
  color: #56685d;
}
.metric-definitions summary {
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.pagination {
  flex-wrap: wrap;
}
@media (max-width: 700px) {
  .page-link {
    width: 120px;
    min-width: 120px;
    max-width: 120px;
  }
  .report-context > span.small {
    flex: 1 1 100%;
    order: 3;
  }
  .table-scroll-hint {
    display: block;
    font-size: 12px;
    color: #65756c;
    margin: 14px 0;
  }
}

/* Focused product workspace: quieter chrome and a dedicated real-page code editor. */
html {
  background: #f6f7fb;
  color: #242938;
}
.sidebar {
  background: #fff;
  border-color: #e4e7ef;
}
.sidebar nav a.active {
  background: #eeedff;
  color: #4338ca;
}
.brand-mark {
  background: #e7e5ff;
  color: #4338ca;
  border-radius: 6px;
}
.btn {
  border-radius: 6px;
  box-shadow: none;
}
.btn.primary {
  background: #4f46e5;
  border-color: #4f46e5;
  color: #fff;
}
.btn.primary:hover {
  background: #4338ca;
}
.workspace h1 {
  font-size: 27px;
  letter-spacing: -0.65px;
}
.configuration-card,
.panel {
  border-color: #e1e5ed;
  border-radius: 8px;
  box-shadow: none;
}
.workspace-state {
  background: #fff;
  border-color: #e1e5ed;
  border-left: 3px solid #7770df;
  border-radius: 6px;
  padding: 14px 18px;
}
.rule-chip {
  background: #f6f7fa;
}
.configuration-title {
  margin-bottom: 14px;
}
.notice {
  background: #f0f2fa;
  border-color: #e0e4f2;
  color: #515b77;
  border-radius: 6px;
}
.configuration-flow {
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.configuration-flow .variation-config {
  grid-column: auto;
}
.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
dialog.code-workspace {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #f4f5f9;
  color: #242938;
}
.code-workspace-form {
  height: 100%;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.editor-header {
  min-height: 76px;
  padding: 12px 22px;
  display: flex;
  align-items: center;
  gap: 18px;
  background: #fff;
  border-bottom: 1px solid #e1e5ed;
  flex-shrink: 0;
}
.editor-back {
  border: 0;
  background: none;
  color: #555d72;
  padding: 12px 8px;
}
.editor-heading {
  flex: 1;
  min-width: 0;
}
.editor-heading span {
  display: block;
  color: #70788b;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.editor-heading h2 {
  margin: 4px 0 0;
  font-size: 18px;
}
#editor-save-state {
  font-size: 12px;
  color: #647089;
}
.editor-toolbar {
  display: flex;
  align-items: end;
  gap: 14px;
  padding: 14px 22px;
  background: #fff;
  border-bottom: 1px solid #e1e5ed;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.editor-url {
  flex: 1;
  min-width: 240px;
}
.editor-toolbar label span {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #65708a;
  margin-bottom: 5px;
}
.editor-toolbar input,
.editor-toolbar select {
  width: 100%;
  height: 40px;
  border: 1px solid #dce0e9;
  border-radius: 5px;
  padding: 8px 10px;
  background: #fff;
}
.editor-comparison {
  display: flex;
  gap: 0;
}
.editor-comparison .btn {
  border-radius: 0;
}
.editor-comparison .btn:first-child {
  border-radius: 5px 0 0 5px;
}
.editor-comparison .btn:last-child {
  border-radius: 0 5px 5px 0;
}
.editor-comparison .btn[aria-pressed="true"] {
  background: #eeedff;
  color: #4338ca;
  border-color: #a5a0ed;
}
.editor-layout {
  display: grid;
  grid-template-columns: 365px minmax(0, 1fr);
  flex: 1;
  min-height: 0;
  min-width: 0;
}
.editor-code {
  overflow: auto;
  background: #fff;
  border-right: 1px solid #dce0e9;
  padding: 18px;
  min-width: 0;
}
.editor-code-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 8px;
}
.editor-code .field {
  margin: 0 0 15px;
}
.editor-code .field input,
.editor-code .field select {
  border-radius: 5px;
  background: #fff;
}
.editor-code-tabs {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid #e1e5ed;
}
.editor-code-tabs button {
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  padding: 12px 2px;
  font-weight: 600;
  color: #647089;
}
.editor-code-tabs button[aria-selected="true"] {
  color: #4f46e5;
  border-color: #4f46e5;
}
.editor-source {
  display: block;
  width: 100%;
  min-height: 300px;
  height: 38vh;
  resize: vertical;
  border: 1px solid #e2e5ef;
  border-top: 0;
  border-radius: 0 0 5px 5px;
  padding: 15px;
  line-height: 1.65;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
  color: #303749;
  background: #fafbfe;
  tab-size: 2;
}
.editor-page-settings,
.editor-help {
  border-top: 1px solid #e7eaf0;
  padding: 15px 0;
  font-size: 12px;
  color: #65708a;
  margin-top: 16px;
}
.editor-page-settings summary,
.editor-help summary {
  cursor: pointer;
  font-weight: 600;
  margin-bottom: 12px;
}
.editor-original-note {
  background: #f5f6fa;
  padding: 18px;
  line-height: 1.6;
  border-radius: 6px;
}
.editor-preview {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}
.editor-preview-heading {
  min-height: 48px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 20px;
  font-size: 12px;
  color: #647089;
  background: #fafbfe;
  border-bottom: 1px solid #e0e4ed;
}
#editor-preview-status[data-state="ready"] {
  color: #147751;
}
#editor-preview-status[data-state="error"],
.editor-error {
  color: #b52a3b;
}
.editor-error:empty {
  display: none;
}
.editor-error {
  padding: 9px 22px;
  background: #fff3f4;
  font-size: 13px;
  flex-shrink: 0;
}
.editor-canvas {
  flex: 1;
  min-height: 0;
  overflow: auto;
  display: flex;
  justify-content: center;
  background: #e9ecf3;
  padding: 18px;
}
.editor-canvas iframe {
  flex-shrink: 0;
  width: 100%;
  height: 100%;
  min-height: 400px;
  border: 0;
  background: #fff;
  box-shadow: 0 1px 5px #19274612;
}
.editor-canvas[data-viewport="mobile"] iframe {
  width: 390px;
}
.editor-canvas[data-viewport="tablet"] iframe {
  width: 768px;
}
.editor-empty {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #7b8498;
  padding: 30px;
}
.editor-empty > span {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: #fff;
  color: #6c64d9;
  font-size: 26px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}
.editor-empty h3 {
  color: #404b64;
  margin-bottom: 8px;
}
.editor-empty p {
  max-width: 300px;
  line-height: 1.6;
}
.editor-footer {
  min-height: 34px;
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 22px;
  font-size: 11px;
  background: #fff;
  border-top: 1px solid #e1e5ed;
  color: #737c91;
}
@media (min-width: 1100px) {
  .configuration-card {
    padding: 18px;
  }
  .cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .editor-layout {
    grid-template-columns: 310px minmax(0, 1fr);
  }
  .editor-header {
    gap: 10px;
    padding: 10px 14px;
  }
  .editor-toolbar {
    padding: 12px 14px;
  }
  #editor-save-state {
    display: none;
  }
}
@media (max-width: 650px) {
  .configuration-flow {
    grid-template-columns: 1fr;
  }
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .editor-header {
    flex-wrap: wrap;
  }
  .editor-heading {
    flex-basis: 50%;
  }
  .editor-header .btn {
    flex: 1;
  }
  .editor-layout {
    display: block;
    overflow: auto;
  }
  .editor-code {
    border-right: 0;
  }
  .editor-source {
    height: 240px;
    min-height: 240px;
  }
  .editor-preview {
    min-height: 600px;
  }
  .editor-canvas {
    min-height: 520px;
  }
  .editor-canvas iframe {
    min-height: 520px;
  }
  .editor-preview-heading {
    flex-wrap: wrap;
  }
  .editor-footer span:last-child {
    display: none;
  }
  .editor-toolbar {
    gap: 10px;
  }
  .editor-url {
    flex-basis: 100%;
  }
}
@media (min-width: 651px) {
  .configuration-flow .variation-config {
    grid-column: 1/-1;
  }
}
#dialog.code-workspace #dialog-form {
  max-height: none;
}
.editor-canvas {
  justify-content: flex-start;
}
.editor-canvas iframe {
  margin-inline: auto;
}
.editor-empty {
  width: 100%;
}
@media (max-width: 650px) {
  .editor-canvas {
    padding: 0;
  }
}
.editor-mobile-tabs {
  display: none;
}
@media (max-width: 650px) {
  .editor-mobile-tabs {
    display: flex;
    flex-shrink: 0;
    background: #fff;
    border-bottom: 1px solid #dce0e9;
    padding: 0 14px;
    gap: 26px;
  }
  .editor-mobile-tabs button {
    min-height: 44px;
    border: 0;
    border-bottom: 2px solid transparent;
    background: none;
    color: #69728a;
    font-weight: 600;
  }
  .editor-mobile-tabs button[aria-pressed="true"] {
    color: #4f46e5;
    border-bottom-color: #4f46e5;
  }
  .editor-layout[data-pane="code"] .editor-preview,
  .editor-layout[data-pane="preview"] .editor-code {
    display: none;
  }
}
:root {
  --ink: #242938;
  --muted: #65708a;
  --line: #e1e5ed;
}
.detail-tabs .selected {
  color: #4338ca;
  border-bottom-color: #4f46e5;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid #7970df;
  outline-offset: 3px;
}
/* Task-led navigation and a single setup home. */
.sidebar .nav-more {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.nav-more > summary {
  cursor: pointer;
  padding: 10px 12px;
  color: #69728a;
  font-size: 13px;
}
.nav-more .project-controls {
  margin: 12px 8px;
}
.nav-more .project-controls label {
  font-size: 11px;
}
.test-list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.test-list-toolbar .directory-counts {
  margin: 0;
}
.test-search {
  display: flex;
  align-items: end;
  gap: 8px;
}
.test-search .field {
  margin: 0;
}
.test-search .field > span {
  position: absolute;
  clip: rect(0, 0, 0, 0);
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.test-search input {
  min-width: 220px;
}
.back-link {
  color: #65708a;
  font-size: 13px;
  font-weight: 500;
  padding: 10px;
  text-decoration: none;
}
.insight-tabs {
  display: flex;
  gap: 8px;
  margin: 4px 0 20px;
}
.insight-tabs .selected {
  background: #eeedff;
  color: #4338ca;
  border-color: #b4adef;
}
.test-setup-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  align-items: start;
}
.test-setup-main,
.test-setup-side {
  min-width: 0;
}
.setup-next {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 0 20px;
}
.setup-next strong {
  margin-left: 9px;
  font-size: 13px;
  font-weight: 500;
  color: #68728a;
}
.setup-next p {
  margin: 7px 0 0;
  color: #65708a;
  font-size: 13px;
}
.test-setup-layout .panel {
  padding: 20px;
  margin-bottom: 18px;
  border-radius: 7px;
}
.test-setup-layout .panel-head {
  margin-bottom: 12px;
}
.test-setup-layout .panel-head h2 {
  font-size: 16px;
}
.test-setup-layout .panel-head p {
  margin: 6px 0 0;
  font-size: 12px;
}
.test-variation {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 0;
  border-top: 1px solid #edf0f5;
}
.variation-symbol {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background: #eeedff;
  color: #4f46e5;
  font-weight: 600;
  flex-shrink: 0;
}
.variation-symbol.original {
  background: #f1f3f7;
  color: #69728a;
}
.variation-description {
  flex: 1;
  min-width: 0;
}
.variation-description a,
.variation-description strong {
  font-size: 14px;
  font-weight: 600;
  color: #30384d;
}
.variation-description small {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  color: #798197;
}
.traffic-share {
  color: #6a7387;
  font-size: 12px;
  white-space: nowrap;
}
.test-variation .actions {
  flex-wrap: nowrap;
}
.selected-goal {
  display: flex;
  align-items: start;
  gap: 14px;
  padding: 14px 0;
}
.goal-dot {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background: #eaf5ee;
  color: #16754d;
  border-radius: 50%;
  flex-shrink: 0;
}
.selected-goal p {
  word-break: break-word;
  font-size: 13px;
  margin: 5px 0;
}
.tracking-status {
  border-top: 1px solid var(--line);
  padding-top: 15px;
  margin-top: 15px;
  font-size: 12px;
}
.tracking-status > span {
  color: #69728a;
  font-weight: 600;
}
.setup-options,
.advanced-options,
.report-method {
  border-top: 1px solid var(--line);
  padding: 16px 0;
  margin-top: 14px;
  font-size: 13px;
  color: #65708a;
}
.setup-options > summary,
.advanced-options > summary,
.report-method > summary {
  cursor: pointer;
  font-weight: 500;
  color: #536078;
  margin-bottom: 10px;
}
.setup-options .actions {
  margin-top: 14px;
}
.result-outcome {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 20px;
}
.result-outcome h2 {
  font-size: 22px;
  margin: 6px 0;
}
.result-outcome p {
  margin: 0;
  color: #65708a;
  font-size: 13px;
}
.installation-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 20px;
  align-items: start;
}
.installation-layout .panel {
  min-width: 0;
}
.installation-layout .code {
  margin-bottom: 16px;
}
.notice {
  padding: 10px 14px;
  font-size: 12px;
  margin-bottom: 20px;
}
@media (max-width: 1100px) {
  .test-setup-layout {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 18px;
  }
  .traffic-share {
    display: none;
  }
  .installation-layout {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  .test-setup-layout {
    grid-template-columns: 1fr;
  }
  .test-variation {
    gap: 10px;
    flex-wrap: wrap;
  }
  .test-variation .actions {
    margin-left: 44px;
  }
  .setup-next {
    align-items: start;
    flex-wrap: wrap;
  }
  .test-search,
  .test-search .field {
    flex: 1;
  }
  .test-search input {
    min-width: 0;
    width: 100%;
  }
  .directory-counts {
    flex-wrap: wrap;
  }
  .result-outcome {
    flex-direction: column;
  }
}

/* Preview above wide code, matching the way a test is edited and checked. */
.code-workspace .editor-header {
  min-height: 64px;
  padding: 10px 20px;
}
.code-workspace .editor-heading {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 4px;
}
#editor-variation-select {
  font-size: 16px;
  font-weight: 600;
  border: 0;
  background: #fff;
  color: #29344a;
  min-width: 180px;
  max-width: 320px;
  padding: 2px 20px 2px 0;
}
.code-workspace .editor-toolbar {
  min-height: 64px;
  padding: 10px 20px;
  flex-wrap: nowrap;
}
.code-workspace .editor-toolbar .field {
  margin: 0;
}
.code-workspace .editor-page-picker {
  width: 180px;
  flex-shrink: 0;
}
.code-workspace .editor-page-picker > span {
  font-size: 11px;
}
.code-workspace .editor-url {
  min-width: 180px;
}
.code-workspace .editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(150px, 1fr) minmax(190px, 30%);
  overflow: hidden;
}
.code-workspace.code-expanded .editor-layout {
  grid-template-rows: minmax(120px, 1fr) minmax(200px, 55%);
}
.code-workspace .editor-preview {
  min-height: 0;
}
.code-workspace .editor-preview-heading {
  min-height: 44px;
  padding: 6px 20px;
  align-items: center;
}
.code-workspace .editor-preview-heading .editor-comparison {
  margin-right: auto;
}
.code-workspace .editor-comparison .btn {
  min-height: 30px;
  padding: 5px 14px;
  font-size: 12px;
}
.code-workspace .editor-canvas {
  padding: 10px 18px;
}
.code-workspace .editor-canvas iframe {
  min-height: 0;
}
.code-workspace .editor-code {
  border-right: 0;
  border-top: 1px solid #d5dae6;
  overflow: auto;
  padding: 0 20px 12px;
}
.editor-code-bar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-bottom: 1px solid #e1e5ed;
  margin-bottom: 0;
  min-height: 44px;
}
.editor-code-bar .editor-code-tabs {
  margin-right: auto;
  border: 0;
}
.editor-code-bar .editor-code-tabs button {
  min-height: 44px;
  padding: 9px 14px;
}
.editor-code-bar .btn {
  min-height: 30px;
  padding: 5px 12px;
}
.code-workspace .editor-source {
  height: calc(100dvh * 0.3 - 65px);
  min-height: 120px;
  border: 0;
  resize: none;
  padding: 12px 5px;
  background: #fff;
}
.code-workspace.code-expanded .editor-source {
  height: calc(100dvh * 0.55 - 65px);
}
.editor-more {
  position: relative;
  flex-shrink: 0;
}
.editor-settings-content {
  display: none;
}
.editor-more[open] > .editor-settings-content {
  display: block;
  position: absolute;
  z-index: 20;
  right: 0;
  top: 44px;
  width: 340px;
  max-height: 65vh;
  overflow: auto;
  padding: 18px;
  border: 1px solid #dce0e9;
  background: #fff;
  box-shadow: 0 12px 35px #18264620;
  border-radius: 6px;
}
.editor-more .field {
  margin-bottom: 12px !important;
}
.editor-more .field input {
  width: 100%;
}
.editor-more .editor-page-settings {
  border: 0;
  padding: 0;
  margin-top: 12px;
}
.editor-add-page {
  display: flex;
  align-items: end;
  gap: 8px;
  position: absolute;
  top: 130px;
  right: 20px;
  z-index: 22;
  padding: 18px;
  background: #fff;
  border: 1px solid #dce0e9;
  border-radius: 7px;
  box-shadow: 0 12px 35px #18264620;
  width: min(680px, calc(100vw - 40px));
}
.editor-add-page .field {
  flex: 1;
}
.code-workspace[data-original="true"] .editor-code {
  display: none;
}
.code-workspace[data-original="true"] .editor-layout {
  grid-template-rows: 1fr;
}
@media (max-width: 800px) {
  .code-workspace .editor-page-picker {
    width: 140px;
  }
  #editor-open {
    font-size: 0;
    min-width: 40px;
  }
  #editor-open:after {
    content: "↗";
    font-size: 20px;
  }
  .code-workspace .editor-toolbar {
    flex-wrap: wrap;
  }
  .editor-more {
    margin-left: auto;
  }
}
@media (max-width: 650px), (max-height: 600px) {
  .code-workspace .editor-mobile-tabs {
    display: flex;
    flex-shrink: 0;
    background: #fff;
    gap: 20px;
    padding: 0 14px;
  }
  .editor-mobile-tabs button {
    min-height: 40px;
    border: 0;
    background: none;
    color: #65708a;
  }
  .editor-mobile-tabs button[aria-pressed="true"] {
    color: #4f46e5;
    border-bottom: 2px solid #4f46e5;
  }
  .code-workspace .editor-layout {
    display: flex;
    flex-direction: column;
    overflow: auto;
  }
  .code-workspace .editor-layout[data-pane="code"] .editor-preview,
  .code-workspace .editor-layout[data-pane="preview"] .editor-code {
    display: none;
  }
  .code-workspace .editor-layout .editor-preview,
  .code-workspace .editor-code {
    flex: 1;
    min-height: 0;
  }
  .code-workspace .editor-canvas {
    min-height: 300px;
    padding: 0;
  }
  .code-workspace .editor-source {
    min-height: 200px;
    height: calc(100dvh - 360px);
  }
  .code-workspace .editor-header {
    flex-wrap: nowrap;
    gap: 8px;
    padding: 8px 12px;
  }
  .code-workspace .editor-header .editor-back {
    font-size: 12px;
    padding: 8px 0;
  }
  .code-workspace .editor-header .editor-heading {
    flex: 1;
    flex-basis: auto;
  }
  .code-workspace .editor-heading > span {
    display: none;
  }
  #editor-variation-select {
    min-width: 100px;
    max-width: 155px;
    font-size: 14px;
  }
  .code-workspace .editor-header .btn {
    flex: 0;
    white-space: nowrap;
    padding: 9px;
    font-size: 12px;
  }
  .code-workspace .editor-toolbar {
    padding: 8px 12px;
    gap: 8px;
  }
  .code-workspace .editor-url {
    flex-basis: 100%;
  }
  .editor-more[open] > .editor-settings-content {
    right: 0;
    width: min(340px, calc(100vw - 24px));
  }
  .editor-code-bar [data-expand-code] {
    display: none;
  }
  .editor-add-page {
    flex-wrap: wrap;
    top: 165px;
  }
}
.code-workspace .editor-code {
  overflow: hidden;
}
.code-workspace .editor-code > section[data-editor-page] {
  height: calc(100% - 44px);
}
.code-workspace .editor-source-panel {
  height: 100%;
}
.code-workspace .editor-source {
  height: 100%;
  min-height: 0;
}
.code-workspace.code-expanded .editor-source {
  height: 100%;
}
.code-workspace.code-hidden .editor-code {
  display: none;
}
.code-workspace.code-hidden .editor-layout {
  grid-template-rows: 1fr;
}
@media (max-width: 650px), (max-height: 600px) {
  .editor-code-toggle {
    display: none;
  }
}

/* ClickStep-style horizontal small multiples: one clearly named version per row. */
.funnel-comparison {
  margin-top: 22px;
}
.journey-intro {
  margin-bottom: 16px;
}
.journey-intro h2 {
  margin: 0 0 5px;
  font-size: 18px;
}
.journey-intro p {
  margin: 0;
  color: #596b63;
  font-size: 13px;
}
.journey-arm {
  padding: 20px;
  margin: 0 0 18px;
  border: 1px solid #dce4e0;
  border-radius: 12px;
  background: #fff;
  min-width: 0;
}
.journey-arm-heading {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.journey-arm-heading > div,
.journey-metric-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.journey-arm-heading h3,
.journey-metric-heading h3 {
  margin: 0;
  font-size: 15px;
  overflow-wrap: anywhere;
}
.journey-arm-heading p {
  margin: 0;
  font-size: 12px;
  color: #53665d;
  flex-shrink: 0;
}
.journey-arm-heading p > strong {
  color: var(--journey-color);
  font-size: 15px;
}
.journey-role {
  display: inline-block;
  color: var(--journey-color);
  background: #f3f5f7;
  border-left: 3px solid var(--journey-color);
  padding: 5px 8px;
  border-radius: 4px;
  font-size: 11px;
  line-height: 1.4;
  font-weight: 700;
  white-space: nowrap;
}
.journey-scroll {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  padding: 2px 2px 10px;
  border-radius: 8px;
}
.journey-scroll:focus-visible {
  outline: 3px solid #7970df;
  outline-offset: 4px;
}
.journey-track {
  display: grid;
  grid-template-columns: repeat(var(--journey-steps), minmax(172px, 1fr));
  gap: 64px;
  min-width: calc(
    var(--journey-steps) * 172px + (var(--journey-steps) - 1) * 64px
  );
  margin: 0;
  padding: 0;
  list-style: none;
}
.journey-node {
  position: relative;
  min-width: 0;
  display: flex;
}
.journey-tile {
  width: 100%;
  padding: 16px 12px 18px;
  border: 1px solid #dce4e8;
  border-radius: 9px;
  background: #f8fafb;
  text-align: center;
}
.journey-tile.journey-complete {
  background: #eff8f3;
  border-color: #cfe2d6;
}
.journey-icon {
  display: flex;
  justify-content: center;
  color: #87989f;
  height: 48px;
}
.journey-page-icon {
  width: 64px;
  height: 49px;
}
.journey-page-icon .wire-fill {
  fill: #eaf0f4;
}
.journey-page-icon .wire-accent {
  fill: #d1e7dc;
  stroke: #739c89;
}
.journey-step-index {
  display: block;
  margin-top: 10px;
  color: #687a71;
  font-size: 9px;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.journey-tile h4 {
  margin: 5px 0 12px;
  min-height: 36px;
  line-height: 1.5;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.journey-count {
  display: block;
  font-size: 30px;
  line-height: 1.1;
  font-weight: 650;
  letter-spacing: -0.8px;
  color: #243e31;
}
.journey-unit {
  display: block;
  color: #607268;
  font-size: 11px;
  margin-top: 6px;
}
.journey-progress {
  height: 5px;
  border-radius: 4px;
  overflow: hidden;
  background: #eededb;
  margin: 18px 0 10px;
}
.journey-progress > span {
  display: block;
  height: 100%;
  background: var(--journey-color);
}
.journey-continued,
.journey-dropoff,
.journey-completion-rate,
.journey-final-note {
  font-size: 11px;
  line-height: 1.6;
  margin: 6px 0 0;
}
.journey-continued {
  color: var(--journey-color);
}
.journey-dropoff {
  color: #89574c;
}
.journey-completion-rate {
  color: #315f46;
  margin-top: 20px;
}
.journey-final-note {
  color: #63746a;
}
.journey-arrow {
  position: absolute;
  left: 100%;
  top: 0;
  bottom: 0;
  width: 64px;
  padding: 0 5px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  text-align: center;
}
.journey-arrow > span {
  color: #8faaa0;
  font-size: 27px;
  line-height: 1.2;
}
.journey-arrow > strong {
  font-size: 12px;
  color: var(--journey-color);
}
.journey-arrow small {
  font-size: 10px;
  line-height: 1.4;
  color: #61756a;
  overflow-wrap: anywhere;
}
.journey-scroll-hint {
  display: none;
  font-size: 11px;
  color: #61756a;
  margin: 0 0 12px;
}
.journey-details,
.journey-definitions {
  background: #fff;
  border: 1px solid #dce4e0;
  border-radius: 10px;
  padding: 18px 20px;
  margin: 18px 0;
}
.journey-details > summary,
.journey-definitions > summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 650;
  color: #2d4337;
}
.journey-metric-group {
  margin-top: 22px;
  border-left: 3px solid var(--journey-color);
  padding-left: 16px;
}
.journey-metric-heading {
  margin-bottom: 12px;
}
.journey-metric-group .table-wrap {
  margin: 0;
}
.journey-metric-group td:first-child {
  font-weight: 600;
}
.journey-definitions p {
  font-size: 12px;
  color: #596b63;
  line-height: 1.7;
  margin-bottom: 0;
}
@media (max-width: 1300px) {
  .journey-scroll-hint {
    display: block;
  }
}
@media (max-width: 700px) {
  .journey-arm {
    padding: 16px 12px;
  }
  .journey-arm-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .journey-arm-heading > div {
    flex-wrap: wrap;
  }
  .journey-arm-heading p {
    flex-shrink: 1;
  }
  .journey-details,
  .journey-definitions {
    padding: 16px 12px;
  }
  .journey-metric-group {
    padding-left: 10px;
  }
}

.journey-arm:has(.journey-node:nth-child(5)) .journey-scroll-hint {
  display: block;
}

/* ClickStep-style page-level metric comparisons. */
.engagement-comparison {
  margin-top: 22px;
  min-width: 0;
}
.engagement-page-tools {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  margin: 20px 0 8px;
}
.engagement-page-picker {
  flex: 1;
  min-width: 0;
  max-width: 750px;
  margin: 0;
}
.engagement-page-picker select {
  width: 100%;
  text-overflow: ellipsis;
}
.engagement-search {
  padding-top: 24px;
}
.engagement-search form {
  display: flex;
  align-items: end;
  gap: 8px;
  margin-top: 12px;
}
.engagement-search .field {
  margin: 0;
}
.engagement-selected-url {
  overflow-wrap: anywhere;
  font-size: 12px;
  color: #5b6d63;
  margin: 12px 0 18px;
}
.engagement-arm-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}
.engagement-arm-card {
  background: #fff;
  border: 1px solid #dce4e0;
  border-top: 3px solid var(--journey-color);
  border-radius: 9px;
  padding: 16px;
  min-width: 0;
}
.engagement-column {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.engagement-column > strong {
  font-size: 14px;
  overflow-wrap: anywhere;
}
.engagement-arm-card > p {
  margin: 12px 0 6px;
  font-size: 13px;
}
.engagement-arm-card > p > strong {
  font-size: 22px;
}
.engagement-arm-card .small {
  font-size: 12px;
}
.engagement-inspect {
  display: inline-block;
  font-size: 12px;
  margin-top: 6px;
}
.engagement-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 18px 0 8px;
}
.engagement-tabs .selected {
  background: #eeebff;
  border-color: #a9a0ef;
  color: #473bcc;
}
.engagement-export-note {
  font-size: 11px;
  color: #62766a;
  margin: 10px 0 16px;
}
.engagement-matrix {
  background: #fff;
  border: 1px solid #dce4e0;
  border-radius: 10px;
  margin: 14px 0;
  max-width: 100%;
  overflow-x: auto;
}
.engagement-matrix table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}
.engagement-matrix th,
.engagement-matrix td {
  padding: 16px 18px;
  vertical-align: top;
  text-align: left;
}
.engagement-matrix thead th {
  background: #f7f9f8;
  border-bottom: 1px solid #dce4e0;
}
.engagement-matrix th:first-child {
  min-width: 180px;
}
.engagement-matrix th:not(:first-child),
.engagement-matrix td {
  min-width: 165px;
}
.engagement-matrix tbody th {
  font-size: 13px;
  font-weight: 600;
}
.engagement-matrix small {
  display: block;
  font-size: 11px;
  color: #607267;
  font-weight: 400;
  line-height: 1.6;
  margin-top: 5px;
  overflow-wrap: anywhere;
}
.engagement-matrix td > strong {
  font-size: 16px;
}
.engagement-matrix .engagement-difference {
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  color: #48596b;
}
.engagement-reach-bar {
  display: block;
  height: 6px;
  max-width: 210px;
  background: #edf0f1;
  border-radius: 4px;
  overflow: hidden;
  margin: 10px 0 7px;
}
.engagement-reach-bar > span {
  display: block;
  height: 100%;
  background: var(--journey-color);
}
.engagement-detail-role {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 18px 0;
  flex-wrap: wrap;
}
@media (max-width: 700px) {
  .engagement-page-tools {
    flex-direction: column;
    gap: 12px;
  }
  .engagement-page-picker {
    width: 100%;
  }
  .engagement-search {
    padding-top: 0;
    width: 100%;
  }
  .engagement-search form {
    flex-wrap: wrap;
  }
  .engagement-search .field {
    flex: 1;
    min-width: 160px;
  }
  .engagement-arm-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .engagement-arm-card {
    padding: 12px;
  }
  .engagement-column {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
  .engagement-column > strong {
    font-size: 13px;
  }
  .engagement-tabs .btn {
    min-height: 44px;
  }
  .engagement-matrix th,
  .engagement-matrix td {
    padding: 14px 12px;
  }
}
.engagement-scroll-hint {
  display: none;
  font-size: 12px;
  color: #607267;
}
.engagement-matrix th:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  background: #f7f9f8;
}
.engagement-matrix thead th:first-child {
  z-index: 2;
}
@media (max-width: 1000px) {
  .engagement-scroll-hint {
    display: block;
  }
}

/* Saved journeys and explicit page context */
.page-rule {
  display: block;
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted, #63746c);
  font-weight: 400;
  margin-top: 5px;
}
.journey-tile .page-rule {
  min-height: 50px;
  max-width: 100%;
  text-align: center;
}
.analysis-url {
  overflow-wrap: anywhere;
  font-size: 20px;
}
.device-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 18px 0 10px;
}
.cohort-trend {
  margin: 26px 0;
  padding: 22px 0;
  border-top: 1px solid #e1e8e4;
}
.cohort-trend svg {
  display: block;
  width: 100%;
  max-height: 280px;
  margin: 15px 0;
}
.cohort-trend svg text {
  font-size: 11px;
  fill: #63746c;
}
.cohort-trend details {
  margin-top: 16px;
}

/* Compact application shell and resource lists */
.workspace-breadcrumb {
  font-size: 12px;
  color: #69717e;
  margin-bottom: 12px;
}
.project-context {
  display: block;
}
.project-context-label {
  display: block;
  font-size: 11px;
  color: #6b7280;
  margin-bottom: 7px;
}
.project-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  background: #fff;
  border: 1px solid #dfe2e8;
  border-radius: 6px;
  padding: 10px 11px;
  text-align: left;
  font-weight: 600;
  color: #303642;
}
.project-switch > span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.project-switch:hover {
  border-color: #929aa8;
}
.project-picker-list {
  max-height: 360px;
  overflow: auto;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
}
.project-picker-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 13px 14px;
  border: 0;
  border-bottom: 1px solid #eef0f3;
  background: #fff;
  text-align: left;
  color: #303642;
}
.project-picker-row:hover,
.project-picker-row:focus-visible {
  background: #f3f2fd;
}
.project-picker-row small {
  display: block;
  color: #727987;
  font-size: 11px;
  margin-top: 4px;
}
.project-picker-row > span:last-child {
  font-size: 12px;
  color: #6860be;
}
.resource-toolbar {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  margin: 0 0 15px;
}
.resource-toolbar .field {
  margin: 0;
  max-width: 360px;
  flex: 1;
}
.resource-toolbar .field > span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.resource-secondary {
  display: block;
  color: #727987;
  font-size: 12px;
  margin-top: 5px;
}
.funnel-directory td {
  padding: 16px;
}
.funnel-directory .journey-path {
  font-size: 13px;
  color: #535c6a;
}
.funnel-directory .journey-path > span {
  color: #9299a5;
  margin: 0 4px;
}
.funnel-directory tr:hover td,
.page-directory tr:hover td,
.experiment-directory tr:hover td {
  background: #f8f9fb;
}
.report-controls {
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: space-between;
  flex-wrap: wrap;
  border-bottom: 1px solid #e2e5ea;
  padding: 10px 0 14px;
  margin: 0 0 18px;
}
.report-controls .device-chips {
  margin: 0;
  gap: 2px;
}
.report-controls .device-chips .btn {
  min-height: 32px;
  padding: 6px 10px;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #626b78;
  font-size: 12px;
}
.report-controls .device-chips .btn.selected {
  color: #4238ad;
  background: #efedf9;
  border-radius: 5px;
}
.report-controls .scope {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.report-controls .scope summary.btn {
  font-size: 12px;
  min-height: 32px;
  padding: 7px 10px;
}
.topline {
  margin-bottom: 22px;
}
.topline h1 {
  font-size: 25px;
  margin-bottom: 6px;
}
.topline .actions > .btn {
  min-height: 36px;
}
.section-label {
  font-size: 16px;
  margin: 18px 0;
}
.compact-outcome {
  padding: 0 0 16px !important;
  margin-bottom: 8px !important;
}
.compact-outcome strong {
  font-size: 16px;
}
.trend-disclosure {
  border-top: 1px solid #e5e7eb;
  margin-top: 20px;
  padding-top: 14px;
}
.trend-disclosure > summary {
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.cohort-trend {
  margin: 14px 0 0;
  padding: 0;
  border: 0;
}
.journey-arm {
  box-shadow: none;
}
.sidebar .nav-more {
  margin-top: 24px;
}
.sidebar nav > a {
  margin-bottom: 3px;
}
.sidebar nav > a.active {
  background: #f0eefb;
}
.panel {
  box-shadow: none;
}
.resource-toolbar input {
  min-height: 36px;
}
.btn {
  border-radius: 6px;
}
.journey-definitions,
.metric-definitions {
  font-size: 12px;
}
@media (max-width: 600px) {
  .report-controls {
    gap: 10px;
  }
  .report-controls .scope {
    width: 100%;
  }
  .resource-toolbar {
    align-items: center;
  }
  .resource-toolbar .field {
    min-width: 0;
  }
  .project-switch {
    min-height: 44px;
  }
  .funnel-directory td {
    padding: 12px;
  }
  .project-picker-row {
    min-height: 48px;
  }
}
.entity-link {
  color: #3e3b68;
  text-decoration: none;
  font-weight: 600;
}
.entity-link:hover {
  text-decoration: underline;
  color: #4d43c2;
}
.entity-link:focus-visible {
  outline: 2px solid #7970df;
  outline-offset: 4px;
  border-radius: 2px;
}
.project-picker-list [role="listitem"]:last-child .project-picker-row {
  border-bottom: 0;
}
.result-arm-role {
  display: block;
  font-size: 10px;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 500;
  color: #6b7280;
}
.funnel-insight {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 0 14px;
  margin-bottom: 12px;
  font-size: 12px;
  color: #596475;
}
.funnel-insight strong {
  font-weight: 600;
  color: #3b4350;
}
.funnel-insight .btn {
  padding: 5px 8px;
  min-height: 30px;
}
.linked-tests-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 20px 0 14px;
}
.linked-tests-toolbar .resource-toolbar {
  margin: 0;
  flex: 1;
}
.linked-tests-toolbar .resource-toolbar .field {
  min-width: 160px;
}

/* Experiment learning: evidence first, one deliberate comparison at a time. */
.review-brief {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin: 24px 0;
  align-items: flex-start;
}
.review-brief > div:first-child {
  max-width: 700px;
}
.review-brief h2 {
  font-size: 21px;
  margin: 0 0 10px;
}
.review-brief p {
  line-height: 1.65;
  margin: 8px 0;
}
.preserve-lines {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.review-brief .actions {
  flex-shrink: 0;
  max-width: 330px;
}
.review-captures {
  margin-bottom: 28px;
}
.review-capture-tools {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.capture-pages {
  display: flex;
  gap: 8px;
  overflow: auto;
  padding: 4px 0;
}
.capture-page-label {
  overflow-wrap: anywhere;
  margin: 10px 0;
}
.capture-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
}
.capture-card {
  border: 1px solid var(--border, #dce2e8);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
  min-width: 0;
}
.capture-card header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid #e9edf0;
}
.capture-open {
  display: block;
  padding: 0;
  width: 100%;
  height: 340px;
  border: 0;
  background: #f1f3f5;
  cursor: zoom-in;
  overflow: hidden;
  text-align: center;
}
.capture-open img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top;
  display: block;
}
.capture-card footer {
  font-size: 11px;
  color: #68717d;
  padding: 10px 16px;
}
.missing-capture {
  height: 340px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 8px;
  background: #f7f8fa;
  color: #637080;
  padding: 24px;
  text-align: center;
}
.missing-capture span {
  font-size: 12px;
}
.capture-full {
  max-height: 70vh;
  overflow: auto;
  background: #f2f4f6;
  text-align: center;
}
.capture-full img {
  max-width: 100%;
  height: auto;
}
.saved-review-banner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid #d8dfe8;
  background: #f5f7fb;
  border-radius: 8px;
  margin-bottom: 20px;
}
.saved-review-banner p {
  font-size: 12px;
  margin: 7px 0 0;
  overflow-wrap: anywhere;
}
.review-history > div {
  padding: 14px 0;
  border-bottom: 1px solid #eef0f3;
}
.review-history > div > span {
  margin-left: 16px;
}
.review-history p {
  font-size: 13px;
  max-width: 800px;
}
.review-decision {
  max-width: 800px;
}
.review-decision p {
  line-height: 1.7;
}
.learning-list {
  border: 1px solid #dce2e8;
  border-radius: 10px;
  background: white;
  overflow: hidden;
}
.learning-list-item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) minmax(160px, 26%);
  gap: 22px;
  padding: 24px;
  border-bottom: 1px solid #e8edf1;
  align-items: start;
}
.learning-list-item:last-child {
  border-bottom: 0;
}
.learning-list-item h2 {
  font-size: 17px;
  margin: 6px 0 10px;
}
.learning-list-item p {
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.learning-thumb {
  height: 100px;
  border: 1px solid #e6e9ee;
  border-radius: 5px;
  overflow: hidden;
  background: #f6f7f9;
}
.learning-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.learning-thumb.missing-capture {
  padding: 8px;
  font-size: 12px;
}
.learning-rates {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #566274;
}
.learning-rates strong {
  color: #202a38;
  margin: 0 5px;
}
.learning-list-decision p {
  color: #596779;
}
.review-captures img:not([src]) {
  visibility: hidden;
}
@media (max-width: 900px) {
  .review-brief {
    display: block;
  }
  .review-brief .actions {
    margin-top: 16px;
    max-width: none;
  }
  .learning-list-item {
    grid-template-columns: 90px minmax(0, 1fr);
  }
  .learning-list-decision {
    grid-column: 2;
  }
  .learning-thumb {
    height: 90px;
  }
}
@media (max-width: 600px) {
  .capture-pair {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
  .capture-open,
  .missing-capture {
    height: 270px;
  }
  .saved-review-banner {
    flex-direction: column;
  }
  .learning-list-item {
    grid-template-columns: minmax(0, 1fr);
    padding: 18px;
    gap: 12px;
  }
  .learning-thumb {
    display: none;
  }
  .learning-list-decision {
    grid-column: 1;
  }
  .review-history > div > span {
    display: block;
    margin: 6px 0;
  }
  .review-brief h2 {
    font-size: 19px;
  }
}
.brief-shortcut {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  margin: 16px 0;
  background: #f4f6fa;
  border-radius: 8px;
  font-size: 13px;
}
.review-method {
  margin: 16px 0 0;
}
.review-method > summary {
  font-size: 12px;
  color: #596b83;
  cursor: pointer;
}
.review-funnel {
  overflow: auto;
}
.review-funnel-arm {
  margin-bottom: 18px;
  min-width: 620px;
}
.review-funnel-name {
  margin-bottom: 10px;
}
.review-funnel-arm ol {
  list-style: none;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(150px, 1fr);
  gap: 12px;
  padding: 0;
  margin: 0;
}
.review-funnel-arm li {
  border: 1px solid #e0e5ec;
  border-radius: 8px;
  padding: 14px;
  min-width: 0;
}
.review-funnel-arm li > .small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.review-stage-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.review-stage-heading svg {
  width: 38px;
  height: 30px;
  flex-shrink: 0;
  color: #526b8b;
}
.review-stage-heading strong {
  font-size: 13px;
}
.review-funnel-arm li p {
  font-size: 12px;
  margin: 10px 0;
}
.review-funnel-arm li p strong {
  font-size: 20px;
  margin-right: 4px;
}
.review-stage-rates {
  font-size: 11px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: #687487;
}
.review-stage-rates span:first-child {
  color: #13765a;
}

}
/* ConvertHappy product system; responsive analytics geometry is retained in the legacy layer. */
:root {
  --ink: #182230;
  --muted: #667085;
  --line: #e4e7ec;
  --surface: #fff;
  --canvas: #f6f8fb;
  --accent: #3158e7;
  --accent-soft: #edf2ff;
  --success: #08785c;
  --radius: 8px;
  --space: 8px;
  color-scheme: light;
}
html {
  background: var(--surface);
  color: var(--ink);
  font:
    14px/1.5 ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-feature-settings: "cv11", "ss01";
}
body {
  background: var(--surface);
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  font-weight: 500;
}
h1,
h2,
h3 {
  color: var(--ink);
  line-height: 1.3;
}
h1 {
  font-size: 24px;
  letter-spacing: -0.035em;
  font-weight: 650;
  margin: 0 0 5px;
}
h2 {
  font-size: 15px;
  font-weight: 620;
  letter-spacing: -0.02em;
  margin: 0;
}
h3 {
  font-size: 14px;
  font-weight: 600;
}
p {
  margin: 0 0 12px;
}
.muted,
.note,
.small.muted {
  color: var(--muted);
}
.small,
.note {
  font-size: 12px;
}
.note {
  line-height: 1.6;
  margin: 12px 0 0;
}
.wrap {
  overflow-wrap: anywhere;
}
.preserve-lines {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
strong {
  font-weight: 600;
}
:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid #a5a0fa;
  outline-offset: 3px;
}
.shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  background: #f7f8fa;
  color: #475467;
  border-right: 1px solid var(--line);
  padding: 24px 14px 18px;
  gap: 28px;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
}
.brand {
  font-size: 19px;
  letter-spacing: -0.045em;
  color: var(--ink);
  font-weight: 700;
  gap: 9px;
}
.brand-mark {
  border-radius: 7px;
  background: var(--accent);
  color: white;
  width: 27px;
  height: 27px;
}
.brand-mark svg {
  width: 22px;
  height: 22px;
}
.brand-row {
  padding: 0 6px;
}
.sidebar label,
.project-context-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.07em;
  color: #667085;
}
.project-context {
  padding: 0 4px;
}
.project-context-label {
  margin-bottom: 8px;
}
.project-switch {
  width: 100%;
  height: 40px;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid #d8dee8;
  color: #344054;
  border-radius: 6px;
  font-size: 13px;
}
.project-switch:hover {
  background: #f0f3f9;
  color: var(--ink);
}
.sidebar nav {
  gap: 4px;
}
.sidebar nav :is(button, a) {
  border-radius: 6px;
  color: #667085;
  font-size: 13px;
  font-weight: 500;
  min-height: 38px;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sidebar nav :is(button, a) > span {
  display: inline-flex;
  align-items: center;
  width: 18px;
}
.sidebar nav :is(button, a):hover {
  background: #edf0f5;
  color: var(--ink);
  text-decoration: none;
}
.sidebar nav :is(button, a).active {
  background: #e9efff;
  color: #254ed6;
}
.sidebar nav a.active svg {
  stroke: #3158e7;
}
.nav-more {
  margin-top: 22px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.nav-more > summary {
  font-size: 12px;
  color: #667085;
  padding: 8px 12px;
  cursor: pointer;
}
.sidebar .bottom {
  border-color: var(--line);
  padding: 16px 8px 0;
  font-size: 12px;
  color: #667085;
}
.sidebar .bottom p {
  margin: 4px 0 10px;
}
.sidebar .bottom button {
  font-size: 12px;
  color: #667085;
}
.sidebar select {
  background: #fff;
  color: #344054;
  border: 1px solid #d8dee8;
  font-size: 13px;
}
.workspace {
  min-width: 0;
  width: 100%;
  max-width: 1600px;
  padding: 24px 32px 64px;
  background: #fff;
}
.workspace-breadcrumb {
  font-size: 12px;
  font-weight: 450;
  color: var(--muted);
  margin-bottom: 8px;
}
.topline {
  gap: 20px;
  align-items: center;
  margin: 0 0 14px;
}
.topline > div:first-child {
  min-width: 0;
}
.topline h1 {
  overflow-wrap: anywhere;
}
.topline p:empty {
  display: none;
}
.topline p {
  font-size: 12px;
  line-height: 1.5;
  margin: 0;
  color: var(--muted);
}
.topline .actions {
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
  gap: 8px;
}
.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.back-link {
  font-size: 12px;
  color: var(--muted);
  padding: 0;
  display: inline-block;
}
.btn {
  border: 1px solid #d0d5dd;
  background: #fff;
  color: #344054;
  border-radius: 6px;
  min-height: 34px;
  padding: 7px 12px;
  box-shadow: 0 1px 2px #10182805;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 550;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
}
.btn:hover {
  background: #f8f9fc;
  border-color: #b8c0cc;
  color: #182230;
  text-decoration: none;
}
.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 1px 2px #3e37a122;
}
.btn.primary:hover {
  background: #2447c8;
  border-color: #2447c8;
}
.btn.ghost {
  border-color: transparent;
  box-shadow: none;
  background: transparent;
  color: #667085;
}
.btn.ghost:hover {
  background: #f2f4f7;
  color: #182230;
}
.btn.small {
  min-height: 34px;
  font-size: 12px;
  padding: 6px 11px;
}
.btn.danger {
  background: #fff;
  border-color: #f3c8c5;
  color: #b42318;
}
.btn.selected {
  background: var(--accent-soft);
  border-color: #c9d5fb;
  color: #254ed6;
}
.btn:disabled {
  opacity: 0.5;
  box-shadow: none;
}
button:disabled {
  cursor: not-allowed;
}
.btn svg {
  width: 15px;
  height: 15px;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: none;
  margin: 0 0 20px;
}
.panel-head {
  margin: 0 0 16px;
  gap: 16px;
  align-items: center;
}
.panel-head h2 {
  font-size: 15px;
  margin: 0;
}
.panel > p:last-child {
  margin-bottom: 0;
}
.card {
  box-shadow: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.empty {
  padding: 42px 20px;
  text-align: center;
  color: var(--muted);
}
.empty h3 {
  font-size: 15px;
  margin-bottom: 8px;
}
.empty p {
  max-width: 520px;
  margin: 0 auto 16px;
  font-size: 13px;
}
.notice {
  background: #f9fafb;
  color: #475467;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 14px;
  font-size: 12px;
  line-height: 1.6;
  margin: 12px 0;
}
.notice.warning {
  background: #fffaeb;
  border-color: #fedf89;
  color: #93370d;
}
.error,
.editor-error {
  background: #fef3f2;
  border-color: #fecdca;
  color: #b42318;
  font-size: 12px;
}
.qa-indicator {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  letter-spacing: 0.01em;
  color: #8c650f;
  border-bottom: 1px solid #f0e7d4;
  margin: 0 0 18px;
}
.qa-indicator > span:first-child {
  width: 5px;
  height: 5px;
  background: #b78b22;
  border-radius: 50%;
}
.qa-detail {
  margin-left: auto;
  color: #9b8d71;
}
.badge {
  font-size: 12px;
  line-height: 1.4;
  font-weight: 600;
  border: 0;
  border-radius: 4px;
  padding: 4px 7px;
  text-transform: capitalize;
  background: #f2f4f7;
  color: #475467;
  letter-spacing: 0.01em;
}
.badge.running {
  background: #eaf7f1;
  color: #08785c;
}
.badge.draft {
  background: #f2f4f7;
  color: #667085;
}
.badge.stopped {
  background: #fffaeb;
  color: #94630a;
}
.badge.archived {
  background: #f2f4f7;
  color: #667085;
}
.badge.warning {
  background: #fff7e5;
  color: #96630d;
}
.workspace-tabs,
.detail-tabs {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  margin: 0 0 20px;
  padding: 0;
  overflow-x: auto;
  flex-wrap: nowrap;
}
.workspace-tabs a,
.detail-tabs .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 12px;
  min-height: 38px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #667085;
  font-size: 13px;
  font-weight: 550;
  white-space: nowrap;
}
.workspace-tabs a:hover,
.detail-tabs .btn:hover {
  text-decoration: none;
  color: #344054;
  background: transparent;
}
.workspace-tabs a[aria-current="page"],
.detail-tabs .btn[aria-current="page"] {
  border-bottom-color: var(--accent);
  color: var(--accent);
  background: transparent;
}
.analysis-tabs {
  display: flex;
  gap: 2px;
  flex-wrap: nowrap;
  margin: 0;
  padding: 0;
  align-items: center;
}
.analysis-tabs .btn {
  border: 0;
  background: transparent;
  color: #667085;
  padding: 8px;
  min-height: 38px;
  box-shadow: none;
  font-size: 12px;
}
.analysis-tabs .btn.selected {
  background: #edf2ff;
  color: #254ed6;
}
.test-list-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  margin: 0 0 16px;
  padding: 0;
}
.directory-counts {
  display: flex;
  gap: 2px;
  align-items: center;
  overflow: auto;
}
.directory-counts .btn {
  border: 0;
  box-shadow: none;
  background: none;
  color: #667085;
  padding: 6px 10px;
  font-size: 12px;
}
.directory-counts .btn.selected {
  background: #f2f4f7;
  color: #182230;
}
.test-search,
.resource-toolbar,
.list-tools {
  display: flex;
  align-items: end;
  gap: 8px;
  padding: 0;
  margin: 0 0 16px;
  flex-wrap: wrap;
}
.test-search {
  margin: 0;
}
.test-search .field,
.resource-toolbar .field,
.list-tools .field {
  margin: 0;
}
.test-search .field > span,
.resource-toolbar .field > span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.test-search input {
  min-width: 220px;
  padding: 7px 10px;
  font-size: 12px;
}
.test-search .btn {
  min-height: 32px;
}
.test-search .btn[type="submit"] {
  background: #f9fafb;
}
.table-wrap {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: auto;
  background: #fff;
  box-shadow: none;
}
.table-wrap:focus-visible {
  outline: 2px solid #b0aaf8;
  outline-offset: 2px;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-variant-numeric: tabular-nums;
  font-size: 12px;
}
thead {
  background: #f8f9fb;
}
th {
  color: #667085;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.015em;
  text-align: left;
  text-transform: none;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
td {
  padding: 16px 14px;
  border-bottom: 1px solid #edf0f4;
  vertical-align: middle;
  line-height: 1.6;
}
tbody tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: #fcfcfe;
}
.table-wrap td .btn {
  white-space: nowrap;
}
.test-identity {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 210px;
  max-width: 380px;
}
.test-identity > .entity-link {
  color: #182230;
  font-weight: 600;
  font-size: 13px;
}
.test-identity > .entity-link:hover {
  color: var(--accent);
}
.test-identity .small {
  font-size: 12px;
  color: #667085;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.test-intent {
  font-size: 12px;
  color: #667085;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.directory-outcomes {
  min-width: 180px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
}
.directory-outcomes > div {
  display: grid;
  grid-template-columns: minmax(85px, 1fr) 45px 52px;
  gap: 10px;
  align-items: center;
}
.directory-outcomes > div > span {
  color: #667085;
  white-space: nowrap;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.directory-outcomes strong {
  text-align: right;
  color: #344054;
  font-size: 12px;
}
.directory-outcomes small {
  font-size: 12px;
  color: #667085;
  text-align: right;
}
.arm-dot {
  width: 6px;
  height: 6px;
  display: inline-block;
  border-radius: 50%;
  margin-right: 7px;
  background: #6d63d4;
}
.arm-dot.arm-0 {
  background: #718096;
}
.draft-next {
  font-size: 12px;
  color: #667085;
}
.directory-decision {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 12px;
}
.directory-decision span {
  font-size: 12px;
  color: #667085;
}
.row-open {
  font-size: 12px;
  white-space: nowrap;
  color: #667085;
}
.row-open:hover {
  color: var(--accent);
}
.pagination {
  margin: 14px 0;
  font-size: 12px;
}
.pagination .btn {
  min-height: 30px;
  font-size: 12px;
}
.report-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 0;
  margin: 0 0 10px;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.device-chips {
  display: inline-flex;
  gap: 0;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fafbfc;
  max-width: 100%;
  overflow: auto;
}
.device-chips .btn {
  border: 0;
  box-shadow: none;
  background: none;
  min-height: 28px;
  padding: 5px 9px;
  color: #667085;
  font-size: 12px;
}
.device-chips .btn.selected {
  background: white;
  color: #344054;
  box-shadow: 0 1px 3px #1018281a;
}
.scope {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0;
}
.scope .btn {
  font-size: 12px;
  min-height: 32px;
}
.scope-dates,
.filter-grid {
  box-shadow: 0 8px 30px #10182814;
  border-color: var(--line);
  border-radius: 8px;
  background: white;
  z-index: 20;
}
.scope-chips {
  font-size: 12px;
  flex-basis: 100%;
}
.scope-chips > span {
  background: #f2f4f7;
  color: #667085;
  border-radius: 4px;
  padding: 3px 6px;
}
.report-context {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 16px;
  padding: 0;
  font-size: 12px;
  color: #667085;
}
.report-context .badge {
  display: none;
}
.report-context .small {
  font-size: 12px;
}
.report-context .btn {
  min-height: 26px;
  font-size: 12px;
  padding: 3px 8px;
  border-color: transparent;
  color: #667085;
  box-shadow: none;
}
.report-context > a {
  font-size: 12px;
}
.report-toolbar {
  margin-bottom: 20px;
}
.outcome-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.outcome-heading p {
  font-size: 12px;
  color: #667085;
  margin: 0;
}
.outcome-state {
  font-size: 12px;
  color: #667085;
  background: #f2f4f7;
  border-radius: 4px;
  padding: 4px 8px;
  white-space: nowrap;
}
.primary-outcome table {
  font-size: 13px;
}
.primary-outcome td {
  padding: 14px 16px;
}
.primary-outcome td strong {
  font-size: 16px;
  letter-spacing: -0.03em;
}
.primary-outcome .arm-key {
  font-size: 12px;
  font-weight: 550;
  padding: 5px 8px;
  border-radius: 4px;
  white-space: normal;
}
.arm-key.arm-0 {
  background: #f0f2f5;
  color: #475467;
}
.arm-key.arm-1 {
  background: #f0edfc;
  color: #6453ad;
}
.review-method > summary,
.brief-disclosure > summary,
.review-history-disclosure > summary {
  font-size: 12px;
  color: #667085;
  cursor: pointer;
  padding: 8px 0;
}
.primary-outcome .note {
  font-size: 12px;
  margin-top: 10px;
}
.review-decision-strip {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 20px;
  border: 1px solid #dbe3f6;
  background: #f7f9ff;
  border-radius: 8px;
  margin: 24px 0;
}
.review-decision-strip > div:first-child {
  max-width: 760px;
  min-width: 0;
}
.section-kicker {
  display: block;
  color: #667085;
  font-size: 12px;
  font-weight: 550;
  margin-bottom: 4px;
}
.review-decision-strip strong {
  font-size: 13px;
  color: #344054;
}
.review-decision-strip p {
  font-size: 12px;
  margin: 8px 0 0;
  color: #667085;
  line-height: 1.65;
}
.review-decision-strip .actions {
  flex-shrink: 0;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.section-heading p {
  font-size: 12px;
  color: #667085;
  margin: 5px 0 0;
}
.evidence-section {
  margin: 0 0 20px;
}
.evidence-empty {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px dashed #d0d5dd;
  padding: 20px;
  border-radius: 8px;
  color: #667085;
  background: #fafbfc;
}
.evidence-empty strong {
  color: #475467;
  font-size: 12px;
}
.evidence-empty p {
  font-size: 12px;
  margin: 4px 0 0;
}
.evidence-empty .btn {
  margin-left: auto;
}
.evidence-empty-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: #f2f4f7;
  border-radius: 6px;
}
.capture-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
}
.capture-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: white;
  min-width: 0;
}
.capture-card header {
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid #edf0f4;
}
.capture-card header .small {
  font-size: 12px;
}
.capture-card .arm-key {
  padding: 3px 6px;
  border-radius: 4px;
}
.capture-open {
  height: 248px;
  background: #f6f8fb;
  border: 0;
  padding: 0;
  width: 100%;
  display: block;
  cursor: zoom-in;
  overflow: hidden;
}
.capture-open img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.missing-capture {
  height: 260px;
  background: #fafbfc;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 7px;
  font-size: 12px;
  padding: 20px;
  color: #667085;
}
.missing-capture span {
  font-size: 12px;
}
.capture-card footer {
  color: #667085;
  border-top: 1px solid #edf0f4;
}
.review-capture-tools {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.capture-pages {
  display: flex;
  gap: 4px;
  overflow: auto;
}
.capture-pages .btn {
  border: 0;
  box-shadow: none;
  background: transparent;
  font-size: 12px;
  color: #667085;
}
.capture-pages .btn.selected {
  background: #f2f4f7;
  color: #344054;
}
.capture-page-label {
  font-size: 12px;
  color: #667085;
  margin: 8px 0 12px;
  overflow-wrap: anywhere;
}
.brief-disclosure,
.review-history-disclosure {
  border-top: 1px solid var(--line);
  padding: 8px 0;
}
.brief-disclosure > div {
  padding: 12px 0;
  font-size: 12px;
  max-width: 800px;
  color: #667085;
}
.review-history > div {
  padding: 14px 0;
  border-bottom: 1px solid #edf0f4;
}
.review-history p {
  font-size: 12px;
  color: #667085;
  max-width: 800px;
}
.saved-review-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #f7f9ff;
  border: 1px solid #e3e9f8;
  border-radius: 6px;
  margin: 0 0 14px;
  font-size: 12px;
}
.saved-review-banner strong {
  display: block;
  font-size: 12px;
  color: #63559d;
  margin-bottom: 4px;
}
.saved-review-banner span {
  display: block;
  color: #74638f;
  font-size: 12px;
  line-height: 1.6;
}
.empty-outcome {
  font-size: 12px;
  color: #667085;
  background: #fafbfc;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
}
.changes-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 244px;
  gap: 28px;
}
.test-variation {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 0;
  border-bottom: 1px solid #edf0f4;
}
.test-variation:last-child {
  border: 0;
  padding-bottom: 4px;
}
.variation-symbol {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: #f0edfc;
  color: #6c58ad;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
}
.variation-symbol.original {
  background: #f0f2f5;
  color: #475467;
}
.variation-description {
  min-width: 0;
  flex: 1;
}
.variation-description > .entity-link {
  font-size: 13px;
  font-weight: 600;
  color: #344054;
}
.variation-description > .entity-link:hover {
  color: var(--accent);
}
.variation-description strong {
  font-size: 13px;
}
.variation-description small {
  display: block;
  color: #667085;
  font-size: 12px;
  margin-top: 4px;
}
.traffic-share {
  font-size: 12px;
  color: #667085;
  white-space: nowrap;
  margin-right: 4px;
}
.change-brief p {
  font-size: 12px;
  line-height: 1.7;
  max-width: 740px;
}
.change-brief .actions {
  margin-top: 16px;
}
.setup-summary {
  padding: 0 0 16px;
  position: sticky;
  top: 24px;
}
.setup-summary h2 {
  font-size: 12px;
  color: #667085;
  padding: 2px 0 16px;
}
.readiness-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid #edf0f4;
}
.status-dot {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d0d5dd;
  margin-top: 6px;
  flex-shrink: 0;
}
.status-dot.is-ready {
  background: #53a68a;
}
.readiness-item strong {
  font-size: 12px;
  font-weight: 550;
}
.readiness-item p {
  font-size: 12px;
  color: #667085;
  margin: 4px 0 0;
}
.setup-summary > .btn {
  margin-top: 10px;
}
.setup-summary .note {
  font-size: 12px;
  max-width: 215px;
}
.settings-grid {
  display: grid;
}
.settings-grid .panel {
  margin: 0;
}
.setting-value {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0 0 16px;
  font-size: 12px;
}
.setting-value > span {
  font-size: 12px;
  color: #667085;
  overflow-wrap: anywhere;
}
.setting-value > strong {
  overflow-wrap: anywhere;
}
.allocation-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  padding: 9px 0;
  border-top: 1px solid #edf0f4;
}
.allocation-line:last-of-type {
  margin-bottom: 12px;
}
.settings-facts {
  margin: 0;
}
.settings-facts > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  font-size: 12px;
}
.settings-facts dt {
  color: #667085;
}
.settings-facts dd {
  margin: 0;
  color: #344054;
}
.settings-advanced {
  margin-top: 14px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.settings-advanced summary {
  font-size: 12px;
  color: #667085;
  cursor: pointer;
}
.settings-advanced .actions {
  padding-top: 12px;
}
.configuration-lock {
  font-size: 12px;
  padding: 12px 0 20px;
  color: #667085;
}
.field {
  margin: 0 0 16px;
}
.field > span,
label > span {
  font-size: 12px;
  color: #667085;
  font-weight: 500;
}
input,
select,
textarea {
  border: 1px solid #d0d5dd;
  border-radius: 6px;
  background: #fff;
  color: #344054;
  padding: 8px 10px;
  font-size: 12px;
  box-shadow: 0 1px 2px #10182803;
}
input:focus,
select:focus,
textarea:focus {
  border-color: #9c94e5;
  outline: 2px solid #eeecff;
}
textarea {
  line-height: 1.65;
}
.field > span {
  display: block;
  margin-bottom: 6px;
}
.dialog-head {
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}
.dialog-head h2 {
  font-size: 17px;
}
.dialog-body {
  padding: 24px;
}
.dialog-foot {
  padding: 16px 24px;
  border-top: 1px solid var(--line);
  background: #fafbfc;
  gap: 8px;
}
.dialog-foot .btn {
  min-height: 34px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 24px 64px #10182826;
}
dialog::backdrop {
  background: #10182855;
  backdrop-filter: blur(2px);
}
#toast {
  font-size: 12px;
  background: #182230;
  color: white;
  border-radius: 7px;
  box-shadow: 0 8px 24px #10182822;
}
dialog.code-workspace {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: #fff;
}
.editor-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 12px 20px;
  min-height: 64px;
  gap: 16px;
}
.editor-heading span {
  font-size: 12px;
  color: #667085;
  letter-spacing: 0;
  text-transform: none;
}
.editor-heading h2,
#editor-variation-select {
  font-size: 14px;
  font-weight: 600;
  color: #344054;
  letter-spacing: -0.02em;
}
.editor-back {
  font-size: 12px;
  color: #667085;
  padding: 6px 0;
  border: 0;
  background: none;
}
.editor-header #editor-save-state {
  font-size: 12px;
  color: #667085;
}
.editor-toolbar {
  background: #fafbfc;
  border-bottom: 1px solid var(--line);
  padding: 10px 20px;
  gap: 10px;
}
.editor-toolbar label span {
  font-size: 12px;
  color: #667085;
  letter-spacing: 0.03em;
}
.editor-toolbar input,
.editor-toolbar select {
  font-size: 12px;
  border-color: #d0d5dd;
  border-radius: 5px;
  padding: 6px 9px;
  background: #fff;
}
.editor-toolbar .btn {
  min-height: 30px;
  font-size: 12px;
}
.editor-comparison .btn {
  font-size: 12px;
}
.editor-comparison .btn[aria-pressed="true"] {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: #d5d0fa;
}
.editor-layout {
  background: #f8fafc;
}
.editor-preview-heading {
  padding: 8px 20px;
  min-height: 34px;
  font-size: 12px;
  color: #667085;
  border-color: var(--line);
  background: #fff;
}
.editor-preview-heading span {
  font-size: 12px;
}
.editor-canvas {
  background: #eef0f4;
}
.editor-code {
  background: #fff;
  border-color: var(--line);
}
.editor-code-bar {
  background: #fff;
  padding: 8px 20px;
  border-color: var(--line);
}
.editor-code-tabs button {
  font-size: 12px;
  color: #667085;
  padding: 8px 12px;
}
.editor-code-tabs button[aria-selected="true"] {
  color: var(--accent);
  border-color: var(--accent);
  background: transparent;
}
.editor-source {
  font:
    12px/1.75 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  color: #26334c;
  background: #fbfcfe;
  border: 0;
  border-radius: 0;
  padding: 16px 20px;
  tab-size: 2;
  caret-color: var(--accent);
}
.editor-footer {
  background: #fff;
  color: #667085;
  border-color: var(--line);
  padding: 8px 20px;
  font-size: 12px;
  min-height: 32px;
}
.editor-error:empty {
  display: none;
}
.editor-more > summary {
  color: #667085;
}
.editor-settings-content {
  border-color: var(--line);
  background: #fff;
  box-shadow: 0 10px 30px #1018281a;
}
.editor-empty {
  background: #f8fafc;
  color: #667085;
}
.editor-empty h3 {
  font-size: 16px;
  color: #667085;
}
.editor-empty p,
.editor-empty small {
  font-size: 12px;
}
.editor-mobile-tabs button {
  font-size: 12px;
}
.editor-mobile-tabs button[aria-pressed="true"] {
  color: var(--accent);
  border-color: var(--accent);
}
.journey-arm,
.engagement-comparison,
.engagement-matrix,
.funnel-comparison {
  box-shadow: none;
}
.journey-arm {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  margin: 0 0 20px;
  padding: 18px;
}
.journey-arm-heading {
  border-color: #edf0f4;
  padding-bottom: 12px;
  margin-bottom: 14px;
}
.journey-arm-heading h3 {
  font-size: 13px;
}
.journey-role {
  font-size: 12px;
  letter-spacing: 0.03em;
}
.journey-arm-heading p {
  font-size: 12px;
}
.journey-tile {
  box-shadow: none;
  border-color: var(--line);
  border-radius: 7px;
  background: #fff;
  padding: 14px;
}
.journey-step-index {
  font-size: 12px;
  color: #667085;
}
.journey-tile h4 {
  font-size: 13px;
  margin: 8px 0;
}
.journey-tile .page-rule {
  font-size: 12px;
  color: #667085;
}
.journey-count {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.04em;
}
.journey-continued,
.journey-dropoff,
.journey-completion-rate {
  font-size: 12px;
}
.journey-final-note {
  font-size: 12px;
}
.journey-icon {
  background: transparent;
}
.journey-page-icon {
  width: 72px;
  height: 56px;
}
.journey-arrow > span {
  color: #b3bac6;
}
.journey-arrow strong {
  font-size: 12px;
}
.journey-arrow small {
  font-size: 12px;
}
.journey-scroll-hint {
  font-size: 12px;
  color: #667085;
}
.funnel-insight {
  border: 1px solid var(--line);
  background: #fafbfc;
  border-radius: 6px;
  padding: 12px 14px;
  font-size: 12px;
}
.engagement-intro {
  font-size: 12px;
}
.engagement-tabs .btn,
.engagement-modes .btn {
  font-size: 12px;
}
.engagement-matrix th {
  font-size: 12px;
}
.engagement-matrix td {
  font-size: 12px;
}
.engagement-cell strong {
  font-size: 17px;
}
.engagement-cell small {
  font-size: 12px;
  color: #667085;
}
.learning-list {
  border-color: var(--line);
  border-radius: 8px;
}
.learning-list-item h2 {
  font-size: 14px;
  margin: 5px 0 9px;
}
.learning-list-item p {
  font-size: 12px;
  line-height: 1.6;
}
.learning-list-item .small {
  font-size: 12px;
}
.learning-thumb {
  height: 80px;
}
.learning-rates {
  font-size: 12px;
  gap: 16px;
}
.learning-list-decision .badge {
  font-size: 12px;
}
.learning-list-decision p {
  color: #667085;
}
@media (min-width: 1600px) {
  .workspace {
    padding-left: 48px;
    padding-right: 48px;
  }
  .changes-workspace {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 36px;
  }
  .capture-open {
    height: 320px;
  }
}
@media (max-width: 1100px) {
  .shell {
    grid-template-columns: 192px minmax(0, 1fr);
  }
  .workspace {
    padding: 24px 24px 48px;
  }
  .changes-workspace {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
  .test-setup-side .setup-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    position: static;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 16px;
  }
  .setup-summary h2 {
    grid-column: 1/-1;
    padding: 0;
  }
  .setup-summary .note {
    max-width: none;
    grid-column: 1/-1;
  }
  .readiness-item {
    border: 0;
    padding: 0;
  }
  .setup-summary > .btn {
    justify-self: start;
  }
  .directory-outcomes {
    min-width: 160px;
  }
  .test-identity {
    max-width: 270px;
  }
  .topline .actions {
    max-width: 45%;
    flex-wrap: wrap;
  }
  .test-variation .traffic-share {
    display: none;
  }
  .editor-header {
    gap: 10px;
  }
}
@media (max-width: 760px) {
  .shell {
    display: block;
  }
  .sidebar {
    height: auto;
    width: 100%;
    position: relative;
    top: 0;
    padding: 12px 16px;
    gap: 16px;
    border-right: 0;
    background: #f7f8fa;
    z-index: 30;
  }
  .brand {
    font-size: 18px;
  }
  .brand-row {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .mobile-menu {
    min-height: 32px;
    padding: 5px 9px;
  }
  .sidebar:not(.menu-open) :is(.project-controls, nav, .bottom) {
    display: none;
  }
  .sidebar.menu-open nav {
    display: flex;
  }
  .sidebar.menu-open .project-controls,
  .sidebar.menu-open .bottom {
    display: block;
  }
  .sidebar .bottom {
    margin-top: 0;
  }
  .workspace {
    overflow: hidden;
  }
  .workspace-breadcrumb {
    font-size: 12px;
    margin-bottom: 9px;
  }
  h1 {
    font-size: 22px;
  }
  .topline {
    align-items: flex-start;
    gap: 10px;
  }
  .topline .actions {
    gap: 6px;
  }
  .topline .actions > .btn {
    font-size: 12px;
    min-height: 32px;
    padding: 6px 9px;
  }
  .topline .actions > .back-link {
    order: 5;
    font-size: 12px;
  }
  .topline p {
    font-size: 12px;
  }
  .qa-indicator {
    font-size: 12px;
    margin-bottom: 16px;
    padding-bottom: 9px;
  }
  .qa-detail {
    font-size: 12px;
  }
  .workspace-tabs,
  .detail-tabs {
    gap: 24px;
    margin-bottom: 18px;
  }
  .detail-tabs .btn,
  .workspace-tabs a {
    font-size: 12px;
    min-height: 36px;
  }
  .analysis-tabs {
    gap: 2px;
    flex-wrap: nowrap;
    overflow: auto;
    white-space: nowrap;
    margin-bottom: 16px;
  }
  .analysis-tabs .btn {
    font-size: 12px;
    padding: 6px 8px;
    flex-shrink: 0;
  }
  .report-controls {
    gap: 10px;
  }
  .scope {
    justify-content: flex-start;
    width: 100%;
    gap: 6px;
  }
  .scope .btn {
    font-size: 12px;
    padding: 6px 9px;
  }
  .report-context .small {
    flex-basis: 100%;
    font-size: 12px;
  }
  .device-chips .btn {
    font-size: 12px;
    padding: 5px 8px;
  }
  .date-details .scope-dates {
    max-width: calc(100vw - 32px);
    right: auto;
    left: 0;
  }
  .filter-details .filter-grid {
    max-width: calc(100vw - 32px);
    right: auto;
    left: 0;
  }
  .test-list-toolbar {
    gap: 12px;
  }
  .directory-counts {
    max-width: 100%;
    width: 100%;
  }
  .directory-counts .btn {
    font-size: 12px;
    padding: 6px 9px;
  }
  .test-search {
    width: 100%;
    display: flex;
  }
  .test-search .field {
    flex: 1;
    min-width: 0;
  }
  .test-search input {
    min-width: 0;
    width: 100%;
  }
  .responsive-experiments table {
    display: table;
    min-width: 650px;
  }
  .responsive-experiments thead {
    display: table-header-group;
  }
  .responsive-experiments tbody {
    display: table-row-group;
  }
  .responsive-experiments tr {
    display: table-row;
  }
  .responsive-experiments th,
  .responsive-experiments td {
    display: table-cell;
  }
  .responsive-experiments td:before {
    display: none;
  }
  .responsive-experiments td {
    padding: 14px 12px;
    border-bottom: 1px solid var(--line);
  }
  .responsive-experiments .test-identity {
    min-width: 180px;
    max-width: 220px;
  }
  .test-intent {
    display: none;
  }
  .table-wrap {
    border-radius: 6px;
  }
  .panel {
    padding: 16px;
    margin-bottom: 16px;
  }
  .panel-head {
    margin-bottom: 14px;
  }
  .outcome-heading {
    margin-top: 20px;
  }
  .outcome-heading h2 {
    font-size: 15px;
  }
  .outcome-heading p {
    font-size: 12px;
  }
  .outcome-state {
    font-size: 12px;
  }
  .primary-outcome td {
    padding: 12px 10px;
  }
  .primary-outcome .table-wrap table {
    min-width: 560px;
  }
  .primary-outcome td strong {
    font-size: 15px;
  }
  .review-decision-strip {
    flex-direction: column;
    margin-bottom: 20px;
    padding-bottom: 16px;
  }
  .review-decision-strip p {
    font-size: 12px;
  }
  .section-heading {
    align-items: flex-start;
  }
  .section-heading h2 {
    font-size: 14px;
  }
  .section-heading p {
    font-size: 12px;
  }
  .capture-pair {
    gap: 14px;
  }
  .capture-open,
  .missing-capture {
    height: 270px;
  }
  .review-capture-tools {
    gap: 10px;
  }
  .capture-pages .btn {
    font-size: 12px;
  }
  .capture-page-label {
    font-size: 12px;
  }
  .saved-review-banner {
    flex-direction: column;
  }
  .saved-review-banner .btn {
    align-self: flex-start;
  }
  .evidence-empty {
    flex-wrap: wrap;
    padding: 16px;
  }
  .evidence-empty .btn {
    margin-left: 46px;
  }
  .evidence-empty > div {
    max-width: calc(100% - 48px);
  }
  .changes-workspace {
    display: block;
  }
  .test-variation {
    flex-wrap: wrap;
    padding: 18px 0;
    gap: 10px;
  }
  .variation-description {
    flex-basis: calc(100% - 50px);
  }
  .test-variation > .actions {
    margin-left: 42px;
  }
  .test-setup-side .setup-summary {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 20px;
  }
  .setup-summary h2 {
    grid-column: auto;
  }
  .setup-summary .note {
    grid-column: auto;
  }
  .readiness-item {
    padding: 4px 0;
  }
  .settings-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  .settings-grid .panel {
    margin: 0;
  }
  .dialog-head {
    padding: 16px 20px;
  }
  .dialog-body {
    padding: 20px;
  }
  .dialog-foot {
    padding: 12px 20px;
  }
  .editor-header {
    padding: 10px 12px;
    gap: 8px;
    min-height: 58px;
  }
  .editor-heading span {
    max-width: 150px;
    font-size: 12px;
  }
  .editor-back {
    font-size: 12px;
  }
  .editor-header .btn {
    font-size: 12px;
    padding: 6px 9px;
    min-height: 30px;
  }
  .editor-toolbar {
    padding: 10px 12px;
    gap: 8px;
  }
  .editor-code-bar {
    padding: 6px 12px;
  }
  .editor-source {
    padding: 12px;
    font-size: 12px;
  }
  .editor-footer {
    font-size: 12px;
    padding: 8px 12px;
  }
  .editor-preview-heading {
    padding: 8px 12px;
  }
  .learning-list-item {
    padding: 16px;
  }
  .learning-thumb {
    display: none;
  }
  .journey-arm {
    padding: 14px;
  }
  .journey-tile {
    padding: 12px;
  }
  .qa-detail {
    max-width: 48%;
    text-align: right;
  }
}
@media (max-height: 500px) and (min-width: 761px) {
  .editor-header {
    min-height: 50px;
    padding: 8px 16px;
  }
  .editor-toolbar {
    padding: 6px 16px;
  }
  .editor-footer {
    min-height: 28px;
    padding: 5px 16px;
  }
  .editor-preview-heading {
    min-height: 28px;
    padding: 5px 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
[hidden] {
  display: none !important;
}
.mobile-menu {
  display: none;
}
@media (min-width: 1100px) {
  .code-workspace .editor-layout {
    display: grid;
    grid-template-columns: minmax(360px, 0.36fr) minmax(0, 0.64fr);
    grid-template-rows: minmax(0, 1fr);
    overflow: hidden;
  }
  .code-workspace .editor-code {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
    border: 0;
    border-right: 1px solid var(--line);
  }
  .code-workspace .editor-preview {
    grid-column: 2;
    grid-row: 1;
  }
  .code-workspace .editor-code > section:not([hidden]) {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
  }
  .code-workspace .editor-source-panel:not([hidden]) {
    display: flex;
    flex: 1;
    min-height: 0;
  }
  .code-workspace .editor-source {
    height: 100%;
    min-height: 0;
    flex: 1;
    padding: 16px 20px;
    background: #fbfcfe;
    resize: none;
  }
  .code-workspace .editor-code-bar {
    flex-shrink: 0;
    min-height: 44px;
    padding: 6px 12px;
    gap: 6px;
  }
  .code-workspace .editor-code-bar .btn {
    font-size: 12px;
    padding: 5px 8px;
    min-height: 28px;
  }
  .code-workspace .editor-canvas {
    padding: 12px;
  }
  .code-workspace .editor-preview-heading {
    padding: 8px 12px;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 44px;
  }
  .code-workspace .editor-preview-heading #editor-preview-status {
    font-size: 12px;
    max-width: 52%;
    text-align: right;
  }
  .code-workspace.code-expanded .editor-layout {
    grid-template-columns: minmax(460px, 0.55fr) minmax(0, 0.45fr);
    grid-template-rows: minmax(0, 1fr);
  }
  .code-workspace.code-hidden .editor-layout {
    display: block;
  }
  .code-workspace.code-hidden .editor-code {
    display: none;
  }
  .code-workspace.code-hidden .editor-preview {
    height: 100%;
  }
  .code-workspace[data-original="true"] .editor-layout {
    display: block;
  }
  .code-workspace[data-original="true"] .editor-preview {
    height: 100%;
  }
}
@media (max-width: 760px) {
  .mobile-menu {
    display: inline-flex;
  }
}
.editor-toolbar .field,
.editor-toolbar label {
  margin: 0;
}
.editor-toolbar label {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.editor-toolbar label > span {
  margin: 0;
}
.editor-toolbar .editor-page-picker {
  width: 170px;
}
.editor-toolbar input,
.editor-toolbar select {
  height: 32px;
  min-height: 32px;
}
.editor-toolbar .editor-url {
  flex: 1;
}
@media (min-width: 1100px) {
  .editor-toolbar {
    min-height: 62px;
    align-items: end;
  }
  .editor-toolbar > .btn,
  .editor-toolbar > .editor-more {
    margin-bottom: 0;
  }
  .editor-header {
    min-height: 62px;
  }
}
@media (max-width: 760px) {
  .topline .actions > .back-link {
    margin-left: auto;
  }
  .code-workspace .editor-source {
    height: calc(100dvh - 260px);
    min-height: 160px;
  }
  .code-workspace .editor-preview-heading {
    flex-wrap: wrap;
  }
}
@media (max-height: 500px) {
  .editor-settings-content {
    max-height: calc(100dvh - 220px);
  }
}
.nav-more a > span {
  display: none;
}
.login-page {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  min-height: 100vh;
  background: #fff;
}
.login-story {
  padding: 64px;
  background: #101828;
  color: #667085;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  border: 0;
}
.login-story .brand {
  margin-bottom: 64px;
  color: #f9fafb;
}
.login-story h1 {
  color: #f9fafb;
  font-size: 40px;
  line-height: 1.15;
  letter-spacing: -0.05em;
  max-width: 420px;
  margin-bottom: 24px;
}
.login-story p {
  color: #98a2b3;
  font-size: 14px;
  line-height: 1.8;
  max-width: 380px;
}
.login-form {
  display: grid;
  place-items: center;
  background: #fff;
  padding: 48px;
}
.login-form form {
  width: 100%;
  max-width: 360px;
}
.login-form h2 {
  font-size: 24px;
  margin: 6px 0 12px;
}
.login-form .eyebrow {
  font-size: 12px;
  color: #667085;
  letter-spacing: 0.05em;
  margin: 0;
}
.login-form .btn.primary {
  width: 100%;
  margin-top: 8px;
}
.login-form .note {
  font-size: 12px;
  margin-top: 20px;
}
@media (max-width: 760px) {
  .login-page {
    display: block;
  }
  .login-story {
    padding: 28px 24px;
  }
  .login-story .brand {
    margin: 0;
  }
  .login-story h1,
  .login-story p {
    display: none;
  }
  .login-form {
    padding: 36px 24px;
  }
}
.engagement-arm-cards {
  display: flex;
  gap: 12px 28px;
  flex-wrap: wrap;
  margin: 14px 0 0;
  padding: 0;
}
.engagement-arm-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 0;
  border-top: 0;
  box-shadow: none;
  padding: 0;
  background: none;
  min-width: 0;
  flex: initial;
}
.engagement-arm-card .engagement-column {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
}
.engagement-arm-card .engagement-column strong {
  font-size: 12px;
}
.engagement-arm-card .journey-role {
  font-size: 12px;
}
.engagement-visit-count {
  font-size: 12px;
  color: var(--muted);
}
.engagement-arm-card .engagement-inspect {
  font-size: 12px;
  margin: 0;
}
@media (max-width: 760px) {
  .engagement-arm-cards {
    gap: 12px;
  }
  .engagement-arm-card {
    width: 100%;
    flex-wrap: wrap;
  }
  .engagement-arm-card .engagement-inspect {
    margin-left: auto;
  }
}
.title-line {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.title-line h1 {
  margin: 0;
}
.title-line .badge {
  font-size: 12px;
  font-weight: 500;
}
.experiment-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  margin: 0 0 16px;
  min-width: 0;
}
.experiment-navigation .detail-tabs {
  margin: 0;
  border: 0;
  flex-shrink: 0;
}
.experiment-navigation .analysis-tabs {
  margin: 0 0 6px;
}
.report-context:has(> .entity-link) {
  margin: -4px 0 12px;
}
.report-freshness {
  justify-content: flex-end;
  margin: 4px 0 12px;
}
.report-freshness .small {
  margin-right: auto;
}
.outcome-heading > div {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.outcome-heading h2 {
  margin: 0;
  font-size: 15px;
}
.result-identity {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.result-identity .arm-dot {
  margin: 0;
  width: 8px;
  height: 8px;
}
.primary-outcome .result-identity strong {
  font-size: 14px;
  letter-spacing: 0;
}
.result-identity small {
  color: var(--muted);
  font-size: 12px;
}
.review-method {
  margin: 4px 0 0;
}
.primary-outcome {
  margin-bottom: 22px;
}
.review-capture-tools {
  float: right;
  margin-top: -44px;
}
.capture-pages {
  padding: 0;
  margin: 0 0 8px;
}
.capture-pages .btn {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}
.capture-page-label {
  display: none;
}
.capture-card .arm-key {
  font-size: 12px;
}
.capture-card header {
  align-items: center;
}
.capture-card footer {
  font-size: 12px;
  padding: 6px 12px;
}
.capture-card footer summary {
  cursor: pointer;
  color: var(--muted);
}
.capture-card footer span {
  display: block;
  padding: 8px 0 2px;
}
.saved-review-banner summary {
  cursor: pointer;
  color: #405479;
  font-weight: 500;
}
.saved-review-banner details > span {
  margin-top: 8px;
}
.saved-review-banner .btn {
  border: 0;
  background: transparent;
  min-height: 30px;
}
.review-funnel-summary {
  margin: 24px 0;
}
.mini-funnel-scroll {
  overflow: auto;
  max-width: 100%;
  padding: 0 0 4px;
}
.mini-funnel {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.mini-funnel > li {
  flex: 1;
  min-width: 190px;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 12px;
  background: #fff;
}
.mini-stage-title {
  display: flex;
  align-items: center;
  gap: 8px;
}
.mini-stage-title > span {
  width: 24px;
  height: 24px;
  color: #667085;
  display: flex;
}
.mini-stage-title svg {
  width: 24px;
  height: 24px;
}
.mini-stage-title strong {
  font-size: 13px;
}
.mini-stage-path {
  font-size: 12px;
  color: var(--muted);
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 200px;
  margin: 4px 0 12px;
}
.mini-stage-arm {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 8px;
  font-size: 12px;
  margin: 8px 0;
}
.mini-stage-arm small {
  grid-column: 1/-1;
  color: var(--muted);
  font-size: 12px;
}
.mini-stage-arrow {
  position: absolute;
  left: calc(100% + 6px);
  top: 50%;
  transform: translateY(-50%);
  color: #98a2b3;
}
.changes-workspace .test-variations {
  border: 0;
  padding: 0;
}
.changes-workspace .change-brief {
  background: #fafbfc;
  border: 1px solid var(--line);
}
.settings-grid {
  gap: 0;
  grid-template-columns: 1fr;
  max-width: 1050px;
}
.settings-grid > .panel {
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 12px 24px;
  padding: 24px 0;
  margin: 0;
}
.settings-grid > .panel > .panel-head {
  grid-row: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 12px;
}
.settings-grid .setting-value {
  margin: 0;
}
.settings-grid .btn.ghost {
  justify-self: start;
}
.settings-grid .allocation-line {
  max-width: 500px;
}
@media (max-width: 1100px) {
  .experiment-navigation {
    display: block;
  }
  .experiment-navigation .analysis-tabs {
    margin: 0 0 10px;
    overflow: auto;
  }
  .experiment-navigation .detail-tabs {
    margin-bottom: 6px;
  }
  .mini-funnel > li {
    min-width: 200px;
  }
}
@media (max-width: 760px) {
  .sidebar {
    border-bottom: 1px solid var(--line);
  }
  .mobile-menu {
    color: #475467;
    background: #fff;
    border-color: #d8dee8;
  }
  .workspace {
    padding: 18px 16px 40px;
  }
  .topline {
    display: block;
    margin-bottom: 12px;
  }
  .topline .actions {
    max-width: none;
    margin-top: 12px;
    justify-content: flex-start;
  }
  .title-line {
    gap: 8px;
  }
  .title-line h1 {
    font-size: 22px;
  }
  .experiment-navigation .analysis-tabs {
    margin-bottom: 8px;
  }
  .experiment-navigation .analysis-tabs .btn {
    min-height: 40px;
  }
  .report-context {
    margin-bottom: 12px;
  }
  .outcome-heading {
    align-items: flex-start;
  }
  .outcome-heading > div {
    display: block;
  }
  .outcome-state {
    max-width: 45%;
    white-space: normal;
  }
  .review-capture-tools {
    float: none;
    margin: 0 0 10px;
  }
  .section-heading {
    margin-bottom: 10px;
  }
  .capture-pair {
    grid-template-columns: 1fr;
  }
  .capture-open {
    height: 240px;
  }
  .capture-pages {
    flex-wrap: nowrap;
    overflow: auto;
  }
  .saved-review-banner {
    align-items: flex-start;
    gap: 8px;
  }
  .saved-review-banner summary {
    line-height: 1.6;
  }
  .saved-review-banner .btn {
    white-space: normal;
    min-width: 100px;
  }
  .review-decision-strip {
    padding: 16px;
    gap: 16px;
  }
  .settings-grid > .panel {
    grid-template-columns: 1fr;
    padding: 20px 0;
  }
  .settings-grid > .panel > .panel-head {
    grid-row: auto;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
  }
}
.qa-indicator {
  padding-bottom: 7px;
  margin-bottom: 12px;
}
.topline .workspace-breadcrumb {
  font-weight: 400;
}
.topline .workspace-breadcrumb .entity-link {
  color: var(--muted);
}
.saved-review-banner {
  padding: 4px 10px;
  margin-bottom: 10px;
}
.outcome-heading {
  margin: 12px 0 8px;
}
.review-method > summary {
  padding: 6px 0;
}
.evidence-section .section-heading {
  margin-bottom: 10px;
}
@media (max-width: 760px) {
  .saved-review-banner {
    padding: 8px;
  }
}
.learning-list-item {
  grid-template-columns: 230px minmax(0, 1fr) minmax(180px, 0.6fr);
  gap: 24px;
  padding: 24px 0;
}
.learning-capture-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.learning-capture-pair .learning-thumb {
  width: 100%;
  height: 128px;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f7f8fa;
  overflow: hidden;
}
.learning-capture-pair .learning-thumb > span:first-child {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: #f2f4f7;
  padding: 4px 6px;
  font-size: 12px;
  z-index: 1;
  color: #475467;
}
.learning-capture-pair img {
  width: 100%;
  height: 100%;
  padding-top: 28px;
  object-fit: cover;
  object-position: top;
}
.learning-no-capture {
  display: block;
  margin: 50px 8px 0;
  color: var(--muted);
  font-size: 12px;
}
.learning-next {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.learning-list-item .learning-list-decision p {
  font-size: 13px;
}
.directory-next {
  margin: 4px 0 0;
  max-width: 260px;
  font-size: 12px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (max-width: 1100px) {
  .learning-list-item {
    grid-template-columns: 180px minmax(0, 1fr);
  }
  .learning-list-decision {
    grid-column: 2;
  }
}
@media (max-width: 760px) {
  .learning-list-item {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .learning-list-decision {
    grid-column: 1;
  }
  .learning-capture-pair {
    max-width: 360px;
  }
}
.result-scope-bar {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
}
.result-scope-bar .report-controls {
  flex: 1;
  margin: 0;
  justify-content: flex-start;
}
.result-scope-bar .scope {
  margin-left: auto;
}
.report-options {
  position: relative;
}
.report-options > div {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 290px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 8px 24px #18223014;
  z-index: 25;
}
@media (max-width: 1000px) {
  .result-scope-bar {
    flex-wrap: wrap;
  }
  .result-scope-bar .scope {
    margin-left: 0;
  }
  .report-options > div {
    right: auto;
    left: 0;
    max-width: calc(100vw - 32px);
  }
}
.setting-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}
.setting-body > .btn {
  align-self: flex-start;
}
.settings-grid > .panel > .panel-head {
  margin: 0;
}
.setting-body .note {
  margin-top: 0;
}
@media (max-width: 760px) {
  .btn,
  .btn.small,
  .device-chips .btn,
  .sidebar nav :is(button, a) {
    min-height: 40px;
  }
  .editor-code-tabs button {
    min-height: 40px;
  }
}

/* Appearance exploration. URL opt-in only: the default system above is unchanged. */
.sidebar .bottom .theme-preview {
  display: block;
  width: 100%;
  text-align: left;
  border: 1px dashed #d0d0d0;
  border-radius: 5px;
  padding: 9px 10px;
  margin: 0 0 18px;
  background: transparent;
  color: #565656;
  cursor: pointer;
}
html[data-theme="paper"] {
  --ink: #111;
  --muted: #505050;
  --line: #b5b5b5;
  --surface: #fff;
  --canvas: #fff;
  --accent: #111;
  --accent-soft: #f4f4f4;
  --radius: 5px;
  background: #fff;
  color: #111;
}
html[data-theme="paper"]
  :is(
    body,
    .shell,
    .workspace,
    .sidebar,
    .panel,
    .card,
    .capture-card,
    .mini-funnel > li,
    dialog,
    .scope-dates,
    .filter-grid,
    .report-options > div
  ) {
  background: #fff;
  color: #111;
  box-shadow: none;
}
html[data-theme="paper"] .sidebar {
  border-right-color: #242424;
}
html[data-theme="paper"]
  :is(
    .nav-more,
    .sidebar .bottom,
    .experiment-navigation,
    .workspace-tabs,
    .editor-header,
    .editor-toolbar,
    .editor-code-bar,
    .editor-preview-heading,
    .editor-footer,
    .dialog-foot
  ) {
  border-color: #292929;
}
html[data-theme="paper"] :is(h1, h2, h3) {
  color: #111;
  font-weight: 700;
}
html[data-theme="paper"]
  :is(
    .muted,
    .note,
    .small.muted,
    .workspace-breadcrumb,
    .topline p,
    .section-heading p,
    .report-context,
    .section-kicker
  ) {
  color: #505050;
}
html[data-theme="paper"] .brand {
  color: #111;
}
html[data-theme="paper"] .brand-mark {
  background: #111;
  color: #fff;
  border-radius: 5px;
}
html[data-theme="paper"] .sidebar nav :is(button, a) {
  color: #111;
  border-radius: 5px;
}
html[data-theme="paper"] .sidebar nav :is(button, a):hover {
  background: #f2f2f2;
}
html[data-theme="paper"] .sidebar nav :is(button, a).active {
  color: #fff;
  background: #111;
}
html[data-theme="paper"] .sidebar nav a.active svg {
  stroke: currentColor;
}
html[data-theme="paper"]
  :is(
    .btn,
    .project-switch,
    .sidebar select,
    .sidebar .bottom .theme-preview,
    input,
    select,
    textarea
  ) {
  background: #fff;
  color: #111;
  border-color: #747474;
  border-radius: 5px;
  box-shadow: none;
}
html[data-theme="paper"] :is(.btn, .project-switch, .theme-preview):hover {
  background: #f2f2f2;
  color: #111;
  border-color: #111;
}
html[data-theme="paper"] .btn.ghost {
  border-color: transparent;
}
html[data-theme="paper"] .btn.danger {
  color: #a12620;
  border-color: #bf756f;
}
html[data-theme="paper"]
  :is(
    .btn.primary,
    .btn.selected,
    .analysis-tabs .btn.selected,
    .device-chips .btn.selected,
    .editor-comparison .btn[aria-pressed="true"]
  ) {
  background: #111;
  color: #fff;
  border-color: #111;
}
html[data-theme="paper"] .btn.primary:hover {
  background: #333;
}
html[data-theme="paper"] .experiment-navigation .detail-tabs {
  gap: 4px;
  margin-bottom: -1px;
  padding: 1px 1px 0;
}
html[data-theme="paper"] .experiment-navigation .detail-tabs .btn {
  background: #fff;
  color: #111;
  border: 1px solid transparent;
  border-radius: 7px 7px 0 0;
  padding: 7px 12px;
}
html[data-theme="paper"]
  .experiment-navigation
  .detail-tabs
  .btn[aria-current="page"] {
  border-color: #292929 #292929 #fff;
}
html[data-theme="paper"]
  :is(
    .device-chips,
    .capture-card,
    .table-wrap,
    .mini-funnel > li,
    .saved-review-banner,
    .review-decision-strip,
    .editor-canvas
  ) {
  border: 1px solid #444;
  border-radius: 5px;
  box-shadow: none;
}
html[data-theme="paper"]
  :is(
    .device-chips,
    .saved-review-banner,
    .review-decision-strip,
    .change-brief,
    .setup-summary,
    .capture-card header,
    .capture-card footer,
    .editor-header,
    .editor-toolbar,
    .editor-code-bar,
    .editor-preview-heading,
    .editor-footer,
    .dialog-foot,
    .editor-source,
    .editor-canvas,
    .editor-layout
  ) {
  background: #fff;
}
html[data-theme="paper"]
  :is(
    .saved-review-banner summary,
    .saved-review-banner span,
    .outcome-state,
    .editor-source
  ) {
  color: #111;
}
html[data-theme="paper"] th {
  background: #fff;
  color: #111;
  border-bottom: 1px solid #444;
}
html[data-theme="paper"] .table-wrap :is(td, th):not(:last-child) {
  border-right: 1px solid #c4c4c4;
}
html[data-theme="paper"] tbody tr:hover {
  background: #f6f6f6;
}
html[data-theme="paper"]
  :is(
    .primary-outcome td,
    .directory-outcomes strong,
    .journey-count,
    .mini-stage-arm > strong,
    .engagement-matrix td > strong
  ) {
  font-variant-numeric: tabular-nums;
}
html[data-theme="paper"]
  :is(.arm-key.arm-0, .variation-symbol.original, .journey-role) {
  background: #fff;
  color: #111;
  border: 1px solid #737373;
}
html[data-theme="paper"] :is(.arm-key.arm-1, .variation-symbol:not(.original)) {
  background: #111;
  color: #fff;
  border: 1px solid #111;
}
html[data-theme="paper"] .arm-dot.arm-0 {
  background: #fff;
  border: 1px solid #111;
}
html[data-theme="paper"] .arm-dot:not(.arm-0) {
  background: #111;
}
html[data-theme="paper"] :is(.journey-arm, .engagement-column) {
  --journey-color: #222 !important;
}
html[data-theme="paper"]
  :where(a, button, input, select, textarea, summary):focus-visible {
  outline-color: #111;
}
html[data-theme="paper"] ::selection {
  background: #111;
  color: #fff;
}
@media (max-width: 760px) {
  html[data-theme="paper"] .sidebar {
    border-bottom: 1px solid #292929;
  }
  html[data-theme="paper"] .experiment-navigation .detail-tabs {
    margin-bottom: 6px;
    border-bottom: 1px solid #292929;
  }
  html[data-theme="paper"]
    .experiment-navigation
    .detail-tabs
    .btn[aria-current="page"] {
    background: #111;
    color: #fff;
    border-radius: 5px;
    border-color: #111;
  }
}

.view-loading {
  position: fixed;
  z-index: 35;
  inset-block-end: max(14px, env(safe-area-inset-bottom));
  inset-inline-start: 50%;
  transform: translateX(-50%);
  width: 94px;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.origami-loader {
  display: block;
  width: 100%;
  height: auto;
}

.loading-announcement {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

#app[aria-busy="true"] + .view-loading {
  visibility: visible;
  opacity: 1;
  transition:
    opacity 0.14s ease 0.22s,
    visibility 0s linear 0.22s;
}

#app:has(.opening-view) + .view-loading {
  inset-block: 50% auto;
  transform: translate(-50%, -50%);
  width: min(200px, 48vw);
  visibility: visible;
  opacity: 1;
  transition: none;
}

.origami-loader polygon {
  stroke: #47566b;
  stroke-width: 0.9;
  stroke-linejoin: round;
}

.origami-white {
  fill: url(#origami-white);
}
.origami-light {
  fill: url(#origami-light);
}
.origami-mid {
  fill: url(#origami-mid);
}
.origami-shade {
  fill: url(#origami-shade);
}
.origami-dark {
  fill: url(#origami-dark);
}

.origami-crease {
  fill: none;
  stroke: #fff;
  stroke-opacity: 0.68;
  stroke-width: 0.85;
  stroke-linecap: round;
}

.origami-sheet-crease {
  fill: none;
  stroke: #62718a;
  stroke-width: 0.8;
}

.origami-still {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .origami-motion {
    display: none;
  }

  .origami-still {
    display: inline;
  }

  #app[aria-busy="true"] + .view-loading {
    transition:
      visibility 0s linear 0.22s,
      opacity 0s linear 0.22s;
  }

  #app:has(.opening-view) + .view-loading {
    transition: none;
  }
}
