/* "Real dashboard" exhibits: the Xee dashboard drawn at its real size (1440 x 800) and scaled to fit the exhibit.
   Sizes, colours and spacing follow dashboard/DESIGN.md and measurements of the live app. */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Newsreader:opsz,wght@6..72,400&display=swap");

.rd-frame {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e6e6e3;
  border-radius: 14px;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 24px 60px -20px rgb(0 0 0 / 0.2);
}
.rd {
  --ink: #171717;
  --ink2: #525252;
  --muted: #737373;
  --faint: #a3a3a3;
  --line: #eeeeee;
  --btn-line: #ebebeb;
  --well: #f5f5f5;
  --surface: #fafafa;
  --blue: #2563eb;
  --green: #16a34a;
  --violet: #7c3aed;
  --orange: #ea580c;
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  width: 1440px;
  height: 800px;
  transform: scale(var(--rd-s, 0.64));
  transform-origin: 0 0;
  background: #ffffff;
  color: var(--ink);
  font: 400 14px/1.4 Inter, system-ui, sans-serif;
  letter-spacing: 0;
  text-align: left;
  user-select: none;
}
.rd *,
.rd *::before,
.rd *::after {
  box-sizing: border-box;
}
.rd svg {
  flex: none;
}
.rd .tnum {
  font-variant-numeric: tabular-nums;
}

/* ---------- Sidebar ---------- */
.rd-side {
  position: relative;
  flex: none;
  width: 240px;
  height: 100%;
  padding: 14px 10px 0;
  background: var(--surface);
  border-right: 1px solid #ececec;
  overflow: hidden;
}
.rd-appsw {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 36px;
  padding: 0 6px;
  font-size: 15px;
  font-weight: 600;
}
.rd-appsw .rd-av {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: #fde4dc;
  color: #b4472a;
  font-size: 12px;
  font-weight: 600;
}
.rd-appsw svg {
  margin-left: auto;
  color: #8a8a8a;
}
.rd-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 8px;
}
.rd-grp {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.rd-lab {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 22px;
  padding: 0 10px;
  color: #8a8a8a;
  font-size: 12.5px;
  font-weight: 500;
}
.rd-lab::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--c);
}
.rd-lab[data-s="circle"]::before { border-radius: 50%; }
.rd-lab[data-s="square"]::before { border-radius: 1.5px; }
.rd-lab[data-s="tri"]::before { width: 8px; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.rd-link {
  display: flex;
  align-items: center;
  gap: 11px;
  height: 34px;
  padding: 0 10px;
  border-radius: 9px;
  color: #262626;
  font-size: 14.5px;
  font-weight: 500;
}
.rd-link svg {
  color: #8a8a8a;
}
.rd-link[aria-current="page"] {
  background: #ecece9;
  color: var(--ink);
  font-weight: 600;
}
.rd-link[aria-current="page"] svg {
  color: var(--ink);
}
.rd-count {
  margin-left: auto;
  min-width: 20px;
  padding: 0 6px;
  border-radius: 6px;
  background: #ecece9;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 500;
  text-align: center;
  line-height: 20px;
}
.rd-count.blue {
  background: #e8f0fe;
  color: var(--blue);
}
/* the dashboard's sidebar: a line sets off Events, Profiles and Setup, and Chats is the only title */
.rd-rule {
  height: 1px;
  margin: -6px 10px 6px;
  background: #e5e5e5;
}
.rd-chats {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.rd-side-label {
  padding: 0 10px 4px;
  color: #a3a3a3;
  font-size: 12px;
  font-weight: 500;
}
.rd-link--chat {
  height: 32px;
  font-size: 14px;
}
.rd-use {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 62px;
  padding: 14px;
  background: #fff;
  border: 1px solid #e9e9e9;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.04);
}
.rd-use div + div {
  margin-top: 12px;
}
.rd-use p {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 500;
}
.rd-use p svg {
  color: #8a8a8a;
}
.rd-use p span {
  margin-left: auto;
  color: var(--ink2);
  font-weight: 400;
}
.rd-use i {
  display: block;
  height: 4px;
  border-radius: 99px;
  background: var(--well);
  overflow: hidden;
}
.rd-use i b {
  display: block;
  height: 100%;
  background: #00a442;
}
.rd-foot {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 14px;
  display: grid;
  gap: 0;
}

/* ---------- Main ---------- */
.rd-main {
  flex: 1;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  position: relative;
}
.rd-head {
  display: flex;
  flex-direction: column;
  padding: 8px 32px 0;
  border-bottom: 1px solid var(--line);
}
.rd-title {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 28px;
  font-size: 13px;
  font-weight: 600;
}
.rd-tabs {
  display: flex;
  gap: 22px;
  height: 28px;
  margin-top: 0;
}
.rd-tab {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}
.rd-tab svg {
  color: var(--tc);
}
.rd-tab[aria-current="page"] {
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--ink);
}
.rd-page {
  padding: 24px 32px;
}

.rd-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 4px 2px rgb(0 0 0 / 0.01), 0 8px 80px -4px rgb(0 0 0 / 0.03);
}
.rd-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 14px;
  border: 1px solid var(--btn-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 1px rgb(0 0 0 / 0.04);
  color: var(--ink);
  font-size: 13.5px;
  white-space: nowrap;
}
.rd-btn.dark {
  background: #000;
  border-color: #000;
  color: #fff;
}
.rd-btn.ghost {
  border-color: transparent;
  box-shadow: none;
  color: var(--ink2);
}
.rd-btn svg {
  color: currentColor;
}
.rd-ctl {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--btn-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 1px rgb(0 0 0 / 0.04);
  font-size: 13.5px;
  white-space: nowrap;
}
.rd-ctl em {
  color: var(--muted);
  font-style: normal;
}
.rd-ctl svg {
  color: #6b6b6b;
}
.rd-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.rd-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  padding: 0 9px;
  border-radius: 99px;
  background: var(--well);
  color: var(--ink2);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.rd-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.rd-pill.green { background: #e8f6ec; color: #15803d; }
.rd-pill.blue { background: #e6eefc; color: #1d4ed8; }
.rd-pill.amber { background: #fff3da; color: #b45309; }
.rd-pill.violet { background: #f1ebfe; color: #6d28d9; }
.rd-pill.red { background: #fde8e8; color: #b91c1c; }
.rd-pill.nodot::before { display: none; }
.rd-muted { color: var(--muted); }

/* Notice: a mint grid banner with its action */
.rd-notice {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px 12px 16px;
  border: 1px solid #c9ebd5;
  border-radius: 10px;
  background:
    linear-gradient(to right, rgb(34 160 90 / 0.06) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(to bottom, rgb(34 160 90 / 0.06) 1px, transparent 1px) 0 0 / 22px 22px,
    #f2fbf5;
  font-size: 14px;
}
.rd-notice b {
  font-weight: 600;
}
.rd-notice .rd-btn {
  margin-left: auto;
  border-color: #b7e0c4;
}

/* ---------- Table ---------- */
.rd-table {
  overflow: hidden;
}
.rd-tr {
  display: grid;
  align-items: center;
  height: 44px;
  padding: 0 16px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.rd-tr.head {
  border-top: 0;
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
}
.rd-tr > span {
  min-width: 0;
}
.rd-tr .r {
  text-align: right;
}

/* ---------- Views ---------- */
.rd-views {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.rd-vcard {
  overflow: hidden;
  border: 1px solid #e6e6e6;
  border-radius: 14px;
  background: #fff;
}
.rd-vtop {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 160px;
  background: #f4f4f4;
}
.rd-vtop::before {
  content: "";
  position: absolute;
  left: 32px;
  right: 32px;
  top: 50%;
  border-top: 1px dashed #d9d9d9;
}
.rd-ph {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 56px;
  height: 120px;
  padding: 11px 6px 6px;
  border-radius: 9px;
  background: #1d1d1f;
  box-shadow: 0 0 0 1.5px #2c2c2e;
}
.rd-ph i {
  display: block;
  height: 4px;
  border-radius: 2px;
  background: #f3f3f3;
}
.rd-ph i.s { width: 62%; background: #7d7d80; height: 3px; }
.rd-ph i.m { width: 82%; }
.rd-ph u {
  display: block;
  height: 26px;
  margin: 4px 0 2px;
  border-radius: 4px;
  background: linear-gradient(135deg, #2b3a2f, #1d2a22);
  text-decoration: none;
}
.rd-ph b {
  margin-top: auto;
  height: 7px;
  border-radius: 4px;
  background: #19d160;
}
/* the Views list: each card previews the screen it opens */
.rd-ph .rd-art { display: flex; align-items: flex-end; gap: 1.5px; height: 30px; margin: 3px 0 2px; padding: 3px; border-radius: 4px; background: linear-gradient(160deg, #23324a, #121a26); }
.rd-ph .rd-art span { flex: 1; height: var(--h); border-radius: 1px 1px 0 0; background: var(--c); }
.rd-ph .rd-pd { display: flex; gap: 2px; justify-content: center; margin-top: auto; margin-bottom: 3px; }
.rd-ph .rd-pd + b { margin-top: 0; }
.rd-ph .rd-pd em { display: block; width: 3px; height: 3px; border-radius: 50%; background: #8e8e93; }
.rd-ph .rd-pd em.on { background: #fff; }
.rd-ph .rd-chp { display: flex; flex: 1; flex-wrap: wrap; align-content: center; gap: 3px; }
.rd-ph .rd-chp em { display: block; width: 20px; height: 7px; border: 1px solid #8e8e93; border-radius: 99px; }
.rd-ph .rd-chp em.on { border-color: #19d160; background: #19d160; }
.rd-ph .rd-bell { display: grid; place-items: center; height: 30px; margin: 3px 0 2px; border-radius: 4px; background: linear-gradient(160deg, #23324a, #121a26); color: #fff; }
.rd-ph.dim { justify-content: flex-end; background: linear-gradient(#2b2b2e, #18181a); }
.rd-ph .rd-sheet { display: flex; flex-direction: column; gap: 4px; padding: 6px 4px 4px; border-radius: 7px; background: #2c2c2e; }
.rd-ph .rd-sheet i.m { margin: 0 auto; }
.rd-plus {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid #dcdcdc;
  border-radius: 50%;
  background: #fff;
  color: var(--ink2);
  font-size: 12px;
  font-weight: 500;
}
.rd-vbody {
  padding: 20px 20px 22px;
}
.rd-vname {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 500;
}
.rd-vname .rd-pill {
  margin-left: auto;
}
.rd-vsub {
  margin-top: 6px;
  color: var(--ink2);
}
.rd-vstat {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
}
.rd-vstat b {
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.rd-vstat span {
  color: var(--ink2);
  font-size: 13px;
  line-height: 1.25;
}
.rd-mini {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 34px;
  margin-left: auto;
}
.rd-mini i {
  display: block;
  width: 7px;
  border-radius: 1px;
  background: #4f7be8;
}
.rd-mini i:first-child { background: #cfcfcc; }

/* ---------- To decide: the deck ---------- */
.rd-deckwrap {
  position: relative;
  padding-bottom: 14px;
}
.rd-deckwrap::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 0;
  height: 30px;
  border: 1px solid #ededed;
  border-top: 0;
  border-radius: 0 0 20px 20px;
  background: var(--surface);
  z-index: 0;
}
.rd-deck {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 520px;
  min-height: 400px;
  border: 1px solid #e4e4e4;
  border-radius: 20px;
  background: #fff;
  overflow: hidden;
}
.rd-deck-l {
  display: flex;
  flex-direction: column;
  padding: 26px 32px 24px;
}
.rd-chips {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}
.rd-kind {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  border: 1px solid rgb(124 58 237 / 0.3);
  border-radius: 8px;
  background: rgb(124 58 237 / 0.08);
  color: #5b21b6;
  font-size: 13px;
  font-weight: 500;
}
.rd-h1 {
  margin: 20px 0 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink2);
}
.rd-change {
  margin-top: 14px;
}
.rd-change s {
  display: block;
  color: var(--faint);
  font-size: 15px;
}
.rd-change b {
  display: block;
  margin-top: 8px;
  padding-left: 14px;
  border-left: 3px solid var(--violet);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.rd-touch {
  margin-top: 16px;
  color: var(--muted);
}
.rd-touch b {
  color: var(--ink);
  font-weight: 500;
}
.rd-why {
  margin-top: 14px;
  max-width: 520px;
  color: var(--ink2);
  font-size: 15px;
  line-height: 24px;
}
.rd-unsure {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13.5px;
}
.rd-unsure svg {
  margin-top: 2px;
  color: #16a34a;
}
.rd-deck-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 18px;
}
.rd-deck-r {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 24px;
  background: var(--surface);
  border-left: 1px solid #f0f0f0;
}
.rd-nowtest {
  display: grid;
  justify-items: center;
  gap: 12px;
  width: 210px;
  text-align: center;
}
.rd-nowtest .t {
  font-size: 13px;
  font-weight: 600;
}
.rd-nowtest .t em {
  color: var(--muted);
  font-style: normal;
  font-weight: 400;
}
.rd-bigph {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 150px;
  height: 272px;
  padding: 18px 10px 10px;
  border-radius: 24px;
  background: #101012;
  box-shadow: 0 0 0 3px #26262a, 0 18px 40px -14px rgb(0 0 0 / 0.4);
  color: #fff;
  text-align: left;
}
.rd-bigph .pro {
  align-self: flex-start;
  padding: 1px 7px;
  border-radius: 5px;
  background: #ffd84a;
  color: #3a2a00;
  font-size: 10px;
  font-weight: 700;
}
.rd-bigph h4 {
  margin: 4px 0 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.rd-bigph ul {
  display: grid;
  gap: 4px;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
  color: #cfcfcf;
  font-size: 9px;
}
.rd-plan {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 9px;
  border: 1px solid #2d2d31;
  border-radius: 9px;
  background: #1a1a1d;
  font-size: 10px;
}
.rd-plan.on {
  border-color: #22c55e;
  box-shadow: 0 0 0 1px #22c55e inset;
}
.rd-plans {
  display: grid;
  gap: 6px;
  margin-top: auto;
}
.rd-cta {
  display: grid;
  place-items: center;
  height: 30px;
  margin-top: 8px;
  border-radius: 99px;
  background: #19d160;
  color: #052e16;
  font-size: 11px;
  font-weight: 700;
}
.rd-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
}
.rd-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d4d4d4;
}
.rd-dots i.on {
  width: 22px;
  border-radius: 99px;
  background: var(--violet);
}
.rd-keys {
  margin-top: 10px;
  color: var(--faint);
  font-size: 12px;
  text-align: center;
}

/* ---------- Running: live cards ---------- */
.rd-live {
  padding: 24px 28px 22px;
  margin-bottom: 20px;
}
.rd-live-top {
  display: flex;
  align-items: center;
}
.rd-live-top .rd-btn {
  margin-left: auto;
}
.rd-live h3 {
  margin: 14px 0 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.rd-live .sub {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}
.rd-live-body {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 56px;
  margin-top: 22px;
}
.rd-days {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.rd-days b {
  font-size: 22px;
  font-weight: 600;
}
.rd-days span {
  color: var(--muted);
}
.rd-days em {
  margin-left: auto;
  color: var(--ink2);
  font-size: 13px;
  font-style: normal;
  font-weight: 500;
}
.rd-track {
  position: relative;
  height: 28px;
  margin-top: 14px;
}
.rd-track::before {
  content: "";
  position: absolute;
  left: 0;
  right: 14px;
  top: 11px;
  height: 6px;
  border-radius: 99px;
  background: #ededed;
}
.rd-track .fill {
  position: absolute;
  left: 0;
  top: 11px;
  width: var(--w);
  height: 6px;
  border-radius: 99px;
  background: var(--violet);
}
.rd-track .now {
  position: absolute;
  left: calc(var(--w) - 8px);
  top: 6px;
  width: 16px;
  height: 16px;
  border: 3px solid var(--violet);
  border-radius: 50%;
  background: #fff;
}
.rd-track .flag {
  position: absolute;
  right: 0;
  top: 4px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1px solid #dcdcdc;
  border-radius: 50%;
  background: #fff;
  color: #777;
  font-size: 10px;
}
.rd-dates {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}
.rd-lane + .rd-lane {
  margin-top: 18px;
}
.rd-lane-top {
  display: flex;
  align-items: center;
  gap: 10px;
}
.rd-chip {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  background: #fff;
  font-size: 12px;
  font-weight: 600;
}
.rd-chip.b {
  border-color: var(--violet);
  background: var(--violet);
  color: #fff;
}
.rd-lane-top .v {
  font-size: 15px;
}
.rd-lane-top .p {
  margin-left: auto;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.rd-lane .bar {
  height: 8px;
  margin-top: 8px;
  border-radius: 99px;
  background: #f0f0f0;
  overflow: hidden;
}
.rd-lane .bar i {
  display: block;
  height: 100%;
  width: var(--w);
  border-radius: inherit;
  background: #c9c9c6;
}
.rd-lane.b .bar i {
  background: var(--violet);
}
.rd-lane .n {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12.5px;
}
.rd-verdict {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.rd-verdict b {
  font-weight: 600;
}

/* ---------- Analytics ---------- */
.rd-an {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  margin-top: 22px;
}
.rd-metrics {
  display: grid;
  align-content: start;
  gap: 0;
}
.rd-metrics h5 {
  margin: 14px 10px 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.rd-metrics h5:first-child {
  margin-top: 0;
}
.rd-metrics span {
  display: flex;
  align-items: center;
  height: 34px;
  padding: 0 10px;
  border-radius: 8px;
  color: var(--ink2);
  font-size: 14.5px;
}
.rd-metrics span.on {
  background: #e0f1f0;
  color: var(--ink);
}
.rd-chart {
  padding: 24px 26px 18px;
}
.rd-chart-top {
  display: flex;
  align-items: flex-start;
}
.rd-chart-top h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}
.rd-chart-top .big {
  margin-top: 4px;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.rd-chart-top .peak {
  margin: 4px 14px 0 auto;
  color: #2f55a4;
  font-size: 13.5px;
}
.rd-bars {
  display: flex;
  align-items: flex-end;
  gap: 5.4px;
  height: 200px;
  margin-top: 14px;
  padding-bottom: 6px;
}
.rd-bars i {
  display: block;
  flex: 1;
  min-width: 0;
  height: var(--h);
  border-radius: 3px;
  background: #4a74c4;
}
.rd-bars i.dk { background: #1e3a6e; }
.rd-axis {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12.5px;
}
.rd-daytable {
  margin-top: 20px;
}
.rd-daytable .rd-tr {
  grid-template-columns: 1.2fr repeat(7, 1fr);
  height: 48px;
}
.rd-daytable .rd-tr.head {
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
}

/* ---------- Chat ---------- */
.rd-chat {
  position: relative;
  height: 100%;
}
.rd-chat-col {
  width: 760px;
  margin: 28px auto 0;
}
.rd-bubble {
  width: fit-content;
  max-width: 80%;
  margin: 0 0 28px auto;
  padding: 10px 16px;
  border-radius: 16px;
  background: var(--well);
  font-size: 15px;
}
.rd-ans p {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 24px;
}
.rd-md {
  margin: 4px 0 18px;
  overflow: hidden;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
}
.rd-md .rd-tr {
  grid-template-columns: 1.1fr 1.2fr 1.4fr;
  height: 42px;
  font-size: 14px;
}
.rd-share {
  display: flex;
  align-items: center;
  gap: 10px;
}
.rd-share i {
  display: block;
  width: 120px;
  height: 6px;
  border-radius: 99px;
  background: #ececec;
  overflow: hidden;
}
.rd-share i b {
  display: block;
  height: 100%;
  width: var(--w);
  background: #171717;
}
.rd-react {
  display: flex;
  gap: 12px;
  color: #8a8a8a;
}
.rd-composer {
  position: absolute;
  left: 50%;
  bottom: 250px;
  width: 720px;
  margin-left: -360px;
  padding: 16px 16px 12px 20px;
  border: 1px solid #e8e8e8;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 4px 2px rgb(0 0 0 / 0.01), 0 8px 40px -4px rgb(0 0 0 / 0.07);
}
.rd-composer .ph {
  color: var(--faint);
  font-size: 15px;
}
.rd-send {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-left: auto;
  margin-top: 10px;
  border-radius: 50%;
  background: #000;
  color: #fff;
}
.rd-fine {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 226px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

/* ---------- Keywords ---------- */
.rd-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 270px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--btn-line);
  border-radius: 8px;
  color: var(--faint);
  font-size: 13.5px;
}
.rd-pop {
  display: flex;
  align-items: center;
  gap: 10px;
}
.rd-pop i {
  display: block;
  width: 110px;
  height: 6px;
  border-radius: 99px;
  background: #ececec;
  overflow: hidden;
}
.rd-pop i b {
  display: block;
  height: 100%;
  width: var(--w);
  background: #3b82f6;
}
.rd-up { color: #15803d; font-weight: 500; }
.rd-down { color: #b91c1c; font-weight: 500; }
.rd-idea-row {
  background: linear-gradient(90deg, #f2fbf5, #fff 70%);
}

/* ---------- Apple Ads ---------- */
.rd-targets {
  margin: -8px 0 18px;
  color: var(--ink2);
  font-size: 14px;
}
.rd-ads .rd-tr {
  grid-template-columns: 1.6fr repeat(7, 1fr);
}
.rd-good { color: #15803d; font-weight: 500; }
.rd-bad { color: #b91c1c; font-weight: 500; }

/* ---------- Home ---------- */
.rd-homeask {
  position: relative;
  height: 190px;
  padding-top: 16px;
  background-image: radial-gradient(#d9d9d9 1px, transparent 1.2px);
  background-size: 18px 18px;
  -webkit-mask-image: linear-gradient(180deg, #000 20%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 20%, transparent 100%);
}
.rd-homeask-in {
  position: absolute;
  inset: 0;
  display: grid;
  justify-items: center;
  align-content: start;
  padding-top: 16px;
}
.rd-askbox {
  width: 600px;
  height: 108px;
  padding: 16px 20px 12px;
  border: 1px solid #e6e6e6;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 4px 2px rgb(0 0 0 / 0.01), 0 8px 40px -4px rgb(0 0 0 / 0.08);
}
.rd-askbox .ph {
  color: var(--faint);
  font-size: 15px;
}
.rd-askbox .rd-send {
  margin-top: 26px;
}
.rd-qchips {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}
.rd-qchip {
  height: 30px;
  padding: 0 12px;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  background: #fff;
  font-size: 13.5px;
  line-height: 28px;
}
.rd-homebody {
  position: relative;
  margin-top: -8px;
  padding: 0 32px;
}
.rd-seg {
  display: flex;
  gap: 4px;
  margin: 20px 0 14px;
}
.rd-seg span {
  height: 32px;
  padding: 0 11px;
  border-radius: 8px;
  color: var(--ink2);
  font-size: 14px;
  line-height: 32px;
}
.rd-seg span.on {
  background: var(--well);
  color: var(--ink);
  font-weight: 500;
}
.rd-split {
  display: grid;
  grid-template-columns: 1fr 340px;
}
.rd-split > div {
  padding: 24px;
}
.rd-split > div + div {
  border-left: 1px solid var(--line);
}
.rd-dotted {
  text-decoration: underline dotted #9a9a9a;
  text-underline-offset: 3px;
  font-size: 13.5px;
}
.rd-fig {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 8px;
}
.rd-fig b {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.rd-fig .up {
  color: #15803d;
  font-size: 14px;
  font-weight: 500;
}
.rd-fig .g {
  color: var(--muted);
  font-size: 13.5px;
}
.rd-line {
  display: block;
  width: 100%;
  height: 150px;
  margin-top: 8px;
}
.rd-rank {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}
.rd-rank li {
  display: flex;
  align-items: center;
  height: 48px;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}
.rd-rank li i {
  width: 28px;
  color: var(--muted);
  font-style: normal;
}
.rd-rank li b {
  margin-left: auto;
  font-weight: 500;
}
.rd-rank li:last-child {
  border-bottom: 0;
}

@media (prefers-reduced-motion: reduce) {
  .rd * {
    transition: none !important;
  }
}

/* ---------- Product tour: the dashboard window, live ---------- */
.xt-panel .rd-wrap {
  position: relative;
  aspect-ratio: 1440 / 800;
}
.xt-panel .rd-frame {
  border-radius: 12px;
}
.rd [hidden] { display: none !important; }
.rd input { user-select: text; }
.rd .lv-hit { cursor: pointer; }
.rd .lv-hit:focus-visible { outline: 2px solid #a3a3a3; outline-offset: 2px; }
.rd .rd-link.lv-hit:hover:not([aria-current="page"]) { background: #f0f0ee; }
.rd .rd-btn.lv-hit:hover { background: #f5f5f5; }
.rd .rd-btn.dark.lv-hit:hover { background: #262626; }
.rd .rd-ctl.lv-hit:hover { background: #f5f5f5; }
.rd .rd-tab.lv-hit:hover { color: var(--ink); }
.rd .rd-btn.red { color: #b91c1c; }
.rd .rd-btn.lv-hit:active { transform: translateY(1px); }

/* menus */
.rd .rd-ctl[data-opts] { position: relative; }
.rd .rd-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 20;
  display: grid;
  min-width: 100%;
  padding: 5px;
  border: 1px solid #eee;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 40px -4px rgb(0 0 0 / 0.1);
}
.rd .rd-menu button {
  padding: 8px 10px;
  border: 0;
  border-radius: 7px;
  background: none;
  color: var(--ink2);
  font: inherit;
  font-size: 13.5px;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
}
.rd .rd-menu button:hover { background: var(--well); color: var(--ink); }
.rd .rd-menu button.on { color: var(--ink); font-weight: 600; }

/* analytics */
.rd .rd-m { cursor: pointer; }
.rd .rd-m:hover:not(.on) { background: #f5f5f5; color: var(--ink); }
.rd .rd-chart { position: relative; }
.rd .rd-bars i { transition: height 380ms cubic-bezier(0.2, 0.7, 0.2, 1), background-color 120ms; cursor: crosshair; }
.rd .rd-bars i:hover, .rd .rd-bars i.hot { background: #1e3a6e; }
.rd .rd-tip {
  position: absolute;
  z-index: 5;
  display: grid;
  gap: 2px;
  padding: 8px 11px;
  border: 1px solid #eee;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 12px 40px -4px rgb(0 0 0 / 0.12);
  font-size: 13px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -100%);
  transition: opacity 120ms;
}
.rd .rd-tip.on { opacity: 1; }
.rd .rd-tip b { font-size: 15px; font-weight: 600; }
.rd .rd-tip span { color: var(--muted); }

/* A/B tests */
.rd .rd-live { margin-bottom: 18px; padding: 20px 26px 16px; }
.rd .rd-live h3 { margin-top: 10px; }
.rd .rd-live-body { margin-top: 16px; }
.rd .rd-livefoot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.rd .rd-sp { flex: 1; }
.rd .rd-pill.grey { background: var(--well); color: var(--ink2); }
.rd .rd-live.done .rd-lane:not(.win) { opacity: 0.45; }
.rd .rd-live.done .rd-track .fill { background: #16a34a; }
.rd .rd-live.done .rd-track .now { border-color: #16a34a; }
.rd .rd-ledger h5 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 10px;
  font-size: 15px;
  font-weight: 600;
}
.rd .rd-ledger h5 em { color: var(--faint); font-style: normal; font-weight: 400; }
.rd .rd-ledger h5 ~ h5 { margin-top: 26px; }
.rd .rd-lrow {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 8px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
}
.rd .rd-lrow b { display: block; font-weight: 500; }
.rd .rd-lrow small { display: block; margin-top: 3px; color: var(--muted); font-size: 13px; }
.rd .rd-lrow q { display: block; margin-top: 6px; padding-left: 10px; border-left: 2px solid #e5e5e5; color: var(--ink2); font-size: 13px; quotes: none; }
.rd .rd-lrow .ok, .rd .rd-lrow .no {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
}
.rd .rd-lrow .ok { background: #e8f6ec; color: #15803d; }
.rd .rd-lrow .no { background: var(--well); color: var(--faint); }
.rd .rd-lrow.fresh { animation: rd-fresh 1.2s ease; }
@keyframes rd-fresh { from { background: #f2fbf5; } }

/* keywords */
.rd .rd-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 13.5px;
}
.rd .rd-search input::placeholder { color: var(--faint); }
.rd .rd-search:focus-within { border-color: #737373; box-shadow: 0 0 0 3px #e5e5e5; }
.rd .rd-tr.head span[data-sort] { cursor: pointer; }
.rd .rd-tr.head span[data-sort]:hover { color: var(--ink); }
.rd .rd-tr.head span[aria-sort="ascending"]::after { content: " ↑"; }
.rd .rd-tr.head span[aria-sort="descending"]::after { content: " ↓"; }
.rd .rd-tr.head span[aria-sort="ascending"], .rd .rd-tr.head span[aria-sort="descending"] { color: var(--ink); }
.rd .rd-tr.fresh { animation: rd-fresh 1.2s ease; }
.rd .rd-table:not(.head) .rd-tr:not(.head):hover { background: #fcfcfc; }
.rd .rd-empty { padding: 18px 16px; border-top: 1px solid var(--line); color: var(--muted); }

/* listing */
.rd .rd-listing { padding: 22px 26px; }
.rd .rd-listing-top { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; font-size: 15px; }
.rd .rd-listing-top b { font-weight: 600; }
.rd .rd-listing-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; }
.rd .rd-lf { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; font-size: 15px; }
.rd .rd-lf b { font-weight: 600; }
.rd .rd-suggest {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 10px 12px;
  border: 1px dashed #d4d4d4;
  border-radius: 10px;
  font-size: 14px;
}
.rd .rd-suggest .rd-btn { margin-left: auto; height: 30px; }
.rd .rd-chips2 { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.rd .rd-chips2 span { padding: 4px 10px; border: 1px solid #ececec; border-radius: 7px; background: #fafafa; font-size: 13.5px; }
.rd .rd-chips2 span.new { border-color: #b7e0c4; background: #eefaf2; color: #15803d; }
.rd .rd-kwbar { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.rd .rd-kwbar i { flex: 1; height: 5px; border-radius: 99px; background: #eef2ff; overflow: hidden; }
.rd .rd-kwbar i b { display: block; height: 100%; background: #3b6fd8; transition: width 300ms; }

/* apple ads */
.rd .rd-camps { border-top: 1px solid var(--line); }
.rd .rd-camp { display: flex; align-items: center; height: 62px; border-bottom: 1px solid var(--line); }
.rd .rd-camp b { display: block; font-weight: 500; }
.rd .rd-camp small { color: var(--muted); font-size: 13px; }
.rd .rd-camp .rd-ctl { margin-left: auto; min-width: 230px; }
.rd .rd-camp .rd-ctl svg:last-child { margin-left: auto; }
.rd .rd-camp .rd-menu { left: auto; right: 0; }
.rd .rd-tr.moved { animation: rd-fresh 1.2s ease; }

.rd .rd-pop-in { animation: rd-pop 360ms cubic-bezier(0.2, 0.7, 0.2, 1); }
@keyframes rd-pop { from { opacity: 0.3; transform: translateY(4px); } }
@media (prefers-reduced-motion: reduce) {
  .rd .rd-pop-in, .rd .rd-tr.fresh, .rd .rd-lrow.fresh, .rd .rd-tr.moved { animation: none; }
}

/* ---------- Tour frame: a browser window whose address names the open page ---------- */
.site-frame section.xt {
  --accent: #8b5cf6;
}
.xt-frame {
  --accent: #8b5cf6;
  padding: 0 0.75rem 0.75rem;
  background:
    radial-gradient(70% 55% at 50% 0%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 70%),
    rgb(255 255 255 / 0.7);
  transition: background-color 400ms ease;
}
.xt-chrome {
  position: relative;
  display: flex;
  align-items: center;
  height: 46px;
  padding: 0 4px;
}
.xt-dots {
  display: flex;
  gap: 6px;
}
.xt-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e2e2e0;
}
.xt-url {
  position: absolute;
  left: 50%;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 62%;
  height: 28px;
  padding: 0 14px;
  border: 1px solid #ececea;
  border-radius: 8px;
  background: #fff;
  color: #8a8a87;
  font: 400 12.5px/1 "Geist Mono", ui-monospace, monospace;
  white-space: nowrap;
  overflow: hidden;
  transform: translateX(-50%);
}
.xt-url svg { flex: none; color: #a3a3a3; }
.xt-url [data-url] {
  color: #262626;
  overflow: hidden;
  text-overflow: ellipsis;
}
.xt-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  color: #737373;
  font-size: 12px;
  font-weight: 500;
}
.xt-live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
  transition: background-color 300ms;
}
.xt-panel .rd-frame {
  border-color: color-mix(in srgb, var(--accent) 18%, #e6e6e3);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 30px 70px -30px color-mix(in srgb, var(--accent) 45%, rgb(0 0 0 / 0.25));
  transition: border-color 300ms, box-shadow 300ms;
}
@media (max-width: 720px) {
  .xt-url { max-width: 70%; font-size: 11px; }
  .xt-live { display: none; }
}

/* ---------- Dashboard polish ---------- */
/* the nav stops above the usage card instead of running under it */
.rd .rd-nav {
  max-height: 560px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 88%, transparent);
  mask-image: linear-gradient(#000 88%, transparent);
}
.rd .rd-use { bottom: 92px; }

/* history: a summary strip, then a ledger card */
.rd .rd-hsum {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.rd .rd-hsum div {
  display: grid;
  gap: 4px;
  padding: 16px 20px;
}
.rd .rd-hsum div + div { border-left: 1px solid var(--line); }
.rd .rd-hsum span { color: var(--muted); font-size: 13px; }
.rd .rd-hsum b { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.rd .rd-ledger-card { padding: 8px 24px 4px; }
.rd .rd-ledger-card h5 { margin-top: 16px; }
.rd .rd-ledger-card .rd-lrow:last-child { border-bottom: 0; }
.rd .rd-lrow {
  grid-template-columns: 28px 1fr auto 64px;
  align-items: start;
  gap: 12px;
}
.rd .rd-lrow > .rd-muted { text-align: right; font-size: 13px; padding-top: 1px; }
.rd .rd-res {
  align-self: start;
  padding: 3px 9px;
  border-radius: 7px;
  background: var(--well);
  color: var(--ink2);
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
}
.rd .rd-res.win { background: #e8f6ec; color: #15803d; }

/* ---------- Chat inside the Subscriptions window ---------- */
.rd .rd-newchat { position: absolute; right: 32px; top: 8px; height: 28px; font-size: 12.5px; }
.rd .rd-chatv { position: relative; height: 755px; }
.rd .rd-chat-start { display: grid; justify-items: center; padding-top: 120px; }
.rd .rd-greet {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  font: 400 36px/1.1 Newsreader, Georgia, serif;
  letter-spacing: -0.01em;
}
.rd .rd-mark { color: #2563eb; display: grid; }
.rd .rd-try { display: grid; grid-template-columns: repeat(3, 220px); gap: 14px; margin-top: 150px; }
.rd .rd-trycard {
  display: grid;
  gap: 6px;
  padding: 12px 12px 14px;
  border: 1px solid #eee;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 2px rgb(0 0 0 / 0.01), 0 8px 40px -4px rgb(0 0 0 / 0.04);
  transition: border-color 140ms, transform 140ms;
}
.rd .rd-trycard:hover { border-color: #d4d4d4; transform: translateY(-2px); }
.rd .rd-trycard i {
  display: block;
  height: 64px;
  margin-bottom: 4px;
  border-radius: 9px;
  background-size: 14px 14px;
}
.rd .rd-trycard i.g1 { background-color: #eef3ff; background-image: linear-gradient(#dfe8fb 1px, transparent 1px), linear-gradient(90deg, #dfe8fb 1px, transparent 1px); }
.rd .rd-trycard i.g2 { background-color: #f4efff; background-image: linear-gradient(#e7ddfb 1px, transparent 1px), linear-gradient(90deg, #e7ddfb 1px, transparent 1px); }
.rd .rd-trycard i.g3 { background-color: #edf9f1; background-image: linear-gradient(#d8f0e0 1px, transparent 1px), linear-gradient(90deg, #d8f0e0 1px, transparent 1px); }
.rd .rd-trycard b { font-size: 14px; font-weight: 500; }
.rd .rd-trycard small { color: var(--muted); font-size: 12.5px; }
.rd .rd-chat-log { height: 560px; margin-top: 0; padding: 28px 0 20px; overflow: hidden auto; scrollbar-width: none; }
.rd .rd-chat-log .rd-bubble { margin-bottom: 22px; }
.rd .rd-chat-log .rd-ans { margin-bottom: 26px; }
.rd .rd-read { margin-bottom: 8px; color: var(--faint); font-size: 13px; }
.rd .rd-reading { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; }
.rd .rd-reading i {
  width: 120px;
  height: 10px;
  border-radius: 99px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e2e2e2 50%, #f0f0f0 75%) 0 0 / 200% 100%;
  animation: rd-shimmer 1s linear infinite;
}
@keyframes rd-shimmer { to { background-position: -200% 0; } }
.rd .rd-composer2 {
  position: absolute;
  left: 50%;
  bottom: 56px;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  width: 760px;
  height: 104px;
  margin-left: -380px;
  padding: 16px 16px 14px 20px;
  border: 1px solid #e8e8e8;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 2px rgb(0 0 0 / 0.01), 0 12px 40px -6px rgb(0 0 0 / 0.08);
}
.rd .rd-composer2:focus-within { border-color: #d4d4d4; }
.rd .rd-composer2 input {
  align-self: flex-start;
  flex: 1;
  border: 0;
  outline: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
}
.rd .rd-composer2 input::placeholder { color: var(--faint); }
.rd .rd-composer2 .rd-send { margin: 0; border: 0; cursor: pointer; }
.rd .rd-fine2 { position: absolute; left: 0; right: 0; bottom: 28px; color: var(--muted); font-size: 12px; text-align: center; }
.rd .rd-chat-start[hidden] + .rd-chat-log { display: block; }
@media (prefers-reduced-motion: reduce) { .rd .rd-reading i { animation: none; } }
.rd .rd-minichart { margin: 4px 0 16px; padding: 14px 16px 10px; border: 1px solid #e6e6e6; border-radius: 10px; }
.rd .rd-minibars { display: flex; align-items: flex-end; gap: 6px; height: 90px; }
.rd .rd-minibars i { flex: 1; height: var(--h); border-radius: 3px 3px 0 0; background: #4a74c4; transform-origin: bottom; animation: rd-grow 500ms cubic-bezier(0.2, 0.7, 0.2, 1) both; animation-delay: var(--d); }
.rd .rd-minibars i:last-child { background: #1e3a6e; }
@keyframes rd-grow { from { transform: scaleY(0); } }
@media (prefers-reduced-motion: reduce) { .rd .rd-minibars i { animation: none; } }

/* ---------- A/B tests: list of running tests + the open test ---------- */
.rd .ab-page { padding: 20px 24px 0 24px; }
.rd .ab-wrap { display: grid; grid-template-columns: 276px 1fr; gap: 20px; height: 690px; }
.rd .ab-list { display: flex; flex-direction: column; gap: 6px; }
.rd .ab-lhead { display: flex; align-items: center; gap: 8px; padding: 2px 6px 8px; font-size: 13px; }
.rd .ab-lhead b { font-weight: 600; }
.rd .ab-lhead span { padding: 0 7px; border-radius: 6px; background: var(--well); color: var(--muted); font-size: 12px; line-height: 20px; }
.rd .ab-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3px 10px;
  padding: 12px 14px 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  transition: background-color 140ms, border-color 140ms;
}
.rd .ab-item:hover { background: #fafafa; }
.rd .ab-item.on { background: #fff; border-color: #e7e7e7; box-shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 8px 24px -12px rgb(0 0 0 / 0.12); }
.rd .ab-iname { font-size: 14px; font-weight: 500; }
.rd .ab-imeta { grid-row: 2; color: var(--muted); font-size: 12.5px; }
.rd .ab-ilift { grid-row: 1 / 3; align-self: center; color: var(--ink2); font-size: 13px; font-weight: 600; }
.rd .ab-ilift.sure { color: #15803d; }
.rd .ab-iprog { grid-column: 1 / 3; display: block; height: 3px; margin-top: 7px; border-radius: 99px; background: #eee; overflow: hidden; }
.rd .ab-iprog b { display: block; height: 100%; background: var(--violet); border-radius: inherit; }
.rd .ab-item.over .ab-iprog b { background: #16a34a; }
.rd .ab-item.over .ab-iname { color: var(--muted); }
.rd .ab-new { margin-top: auto; padding: 10px 0 14px; border-top: 1px solid var(--line); }
.rd .ab-new .rd-btn { width: 100%; justify-content: center; color: var(--muted); }

.rd .ab-detail {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px 26px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 2px rgb(0 0 0 / 0.01), 0 8px 80px -4px rgb(0 0 0 / 0.04);
}
.rd .ab-dhead { display: flex; align-items: flex-start; gap: 12px; }
.rd .ab-dhead > div { flex: 1; }
.rd .ab-where { color: var(--muted); font-size: 13px; }
.rd .ab-dhead h2 { margin: 4px 0 0; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }

.rd .ab-vs { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.rd .ab-vsdot {
  position: absolute; left: 50%; top: 50%; z-index: 2;
  display: grid; place-items: center; width: 30px; height: 30px; margin: -15px 0 0 -15px;
  border: 1px solid #e7e7e7; border-radius: 50%; background: #fff;
  color: var(--muted); font-size: 11px; font-weight: 600; text-transform: uppercase;
}
.rd .ab-ver {
  display: flex; gap: 16px; padding: 14px;
  border: 1px solid #ececec; border-radius: 14px; background: var(--surface);
}
.rd .ab-ver.b.lead {
  border-color: color-mix(in srgb, var(--violet) 35%, #fff);
  background: linear-gradient(180deg, color-mix(in srgb, var(--violet) 5%, #fff), #fff);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--violet) 8%, transparent);
}
.rd .ab-vbody { display: flex; flex-direction: column; min-width: 0; }
.rd .ab-vtop { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12.5px; }
.rd .ab-lead { margin-left: auto; padding: 2px 8px; border-radius: 99px; background: var(--violet); color: #fff; font-size: 11px; font-weight: 600; }
.rd .ab-ver.a.lead .ab-lead { background: #525252; }
.rd .ab-vval { margin-top: 10px; font-size: 14px; font-weight: 500; line-height: 1.3; }
.rd .ab-rate { margin-top: auto; padding-top: 10px; font-size: 40px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.rd .ab-ver.b .ab-rate { color: #5b21b6; }
.rd .ab-rlab { margin-top: 4px; color: var(--muted); font-size: 12.5px; }
.rd .ab-n { margin-top: 8px; color: var(--ink2); font-size: 12.5px; }
.rd .ab-lift { margin-top: 6px; align-self: flex-start; padding: 2px 8px; border-radius: 6px; font-size: 12.5px; font-weight: 600; }
.rd .ab-lift.up { background: #e8f6ec; color: #15803d; }
.rd .ab-lift.down { background: #fde8e8; color: #b91c1c; }

/* the phone each side shows, with what the test changes outlined */
.rd .ab-ph {
  flex: none; display: flex; flex-direction: column; gap: 5px;
  padding: 14px 7px 7px;
  border-radius: 16px; background: #0f0f11; box-shadow: 0 0 0 2px #26262a;
  color: #fff; font-size: 7px;
}
.rd .ab-ph .pro { align-self: flex-start; padding: 1px 4px; border-radius: 3px; background: #ffd84a; color: #3a2a00; font-size: 6px; font-weight: 700; }
.rd .ab-ph > b { font-size: 10px; line-height: 1.1; }
.rd .ab-ph > i { display: block; width: 80%; height: 3px; border-radius: 2px; background: #5b5b60; }
.rd .ab-ph > i.s { width: 60%; }
.rd .ab-ph .plans { display: grid; gap: 3px; margin-top: auto; padding: 2px; border-radius: 6px; }
.rd .ab-ph .plan { padding: 4px 5px; border: 1px solid #2d2d31; border-radius: 5px; background: #1a1a1d; }
.rd .ab-ph .plan.on { border-color: #22c55e; }
.rd .ab-ph em { padding: 2px; border-radius: 4px; color: #b5b5b8; font-style: normal; text-align: center; }
.rd .ab-ph .cta { display: grid; place-items: center; height: 15px; border-radius: 99px; background: #19d160; color: #052e16; font-size: 6.5px; font-weight: 700; }
.rd .ab-ph-art { display: flex; align-items: flex-end; gap: 3px; height: 64px; padding: 7px; border-radius: 8px; background: linear-gradient(160deg, #23324a, #121a26); }
.rd .ab-ph-art span { flex: 1; height: var(--h); border-radius: 2px 2px 0 0; background: var(--c); }
/* the welcome screen at A/B size: art fills the spare height, as on the Views page phone */
/* sized as a scaled copy of the Views page phone (222px wide): the same screen colour, and every size in the same ratio */
.rd .ab-ph.welcome { width: 144px; gap: 6px; padding: 30px 9px 18px; border-radius: 18px; background: #1d1d1f; box-shadow: 0 0 0 2px #2c2c2e; }
.rd .ab-ph.welcome::before { top: 1.4%; }
.rd .ab-ph.b:not(.welcome) { background: #120d1f; box-shadow: 0 0 0 2px #2e2350; }
.rd .ab-ph.welcome::after { content: ""; position: absolute; left: 50%; bottom: 4px; width: 36%; height: 2px; border-radius: 99px; background: #fff; opacity: 0.5; transform: translateX(-50%); }
.rd .ab-ph.welcome .ab-ph-art { flex: 1; min-height: 64px; }
.rd .ab-ph.welcome > b { margin-top: 3px; padding: 2px 3px; font-size: 11px; text-wrap: balance; }
.rd .ab-ph.welcome > b.hl { background: rgb(255 255 255 / 0.07); }
.rd .ab-ph.welcome > b.hl.b { background: rgb(167 139 250 / 0.22); }
.rd .ab-ph.welcome > p { margin: 0; padding: 0 3px; color: #c7c7cc; font-size: 7px; line-height: 1.3; text-wrap: balance; }
.rd .ab-ph.welcome .cta { height: 20px; font-size: 7.2px; }
.rd .ab-ph .fine { display: block; color: #8e8e93; font-size: 7.5px; text-align: center; }
.rd .ab-ph.welcome .cta { font-weight: 600; }
.rd .ab-dots { display: flex; gap: 6px; justify-content: center; }
.rd .ab-dots i { width: 4px; height: 4px; border-radius: 50%; background: #8e8e93; }
.rd .ab-ph .vd-clock { left: 15px; top: 6px; font-size: 6.5px; }
.rd .ab-ph .vd-batt { right: 14px; top: 8px; width: 12px; height: 6px; padding: 0; border-radius: 2px; }
.rd .ab-dots i.on { background: #fff; }
.rd .ab-ph .skip { color: #a1a1a6; font-size: 7.5px; text-align: center; }
.rd .ab-ph .hl { outline: 1.5px dashed #9ca3af; outline-offset: 2px; }
.rd .ab-ph .hl.b { outline-color: #a78bfa; }

/* chance B is better */
.rd .ab-odds { padding: 2px 2px 0; }
.rd .ab-otop { display: flex; align-items: baseline; gap: 10px; font-size: 13.5px; }
.rd .ab-otop span { color: var(--ink2); }
.rd .ab-otop b { font-size: 18px; font-weight: 600; }
.rd .ab-otop em { margin-left: auto; color: var(--muted); font-style: normal; font-size: 13px; }
.rd .ab-obar { position: relative; height: 10px; margin-top: 10px; border-radius: 99px; background: #ececec; }
.rd .ab-obar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #c4b5fd, var(--violet)); transition: width 500ms cubic-bezier(0.2, 0.7, 0.2, 1); }
.rd .ab-obar .tick { position: absolute; top: -4px; transform: translateX(-50%); color: var(--muted); font-size: 11px; line-height: 1; padding-top: 22px; }
.rd .ab-obar .tick s { position: absolute; left: 50%; top: 0; width: 2px; height: 18px; margin-left: -1px; background: #171717; border-radius: 1px; }

/* daily rate chart */
.rd .ab-chart { flex: 1; display: flex; flex-direction: column; min-height: 0; padding-top: 12px; border-top: 1px solid var(--line); }
.rd .ab-chead { display: flex; align-items: center; gap: 14px; font-size: 13px; }
.rd .ab-chead b { font-weight: 600; text-transform: none; }
.rd .ab-chead .k { display: inline-flex; align-items: center; gap: 6px; color: var(--ink2); }
.rd .ab-chead .k::before { content: ""; width: 14px; height: 3px; border-radius: 2px; background: #a3a3a3; }
.rd .ab-chead .k.b::before { background: var(--violet); }
.rd .ab-cfoot { margin-left: auto; color: var(--muted); }
.rd .ab-plot { position: relative; flex: 1; min-height: 120px; margin-top: 8px; cursor: crosshair; }
.rd .ab-plot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.rd .ab-plot .grid line { stroke: #f0f0f0; stroke-width: 1; vector-effect: non-scaling-stroke; }
.rd .ab-plot .area { fill: color-mix(in srgb, var(--violet) 8%, transparent); }
.rd .ab-plot .la, .rd .ab-plot .lb { fill: none; stroke-width: 2.2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.rd .ab-plot .la { stroke: #a3a3a3; }
.rd .ab-plot .lb { stroke: var(--violet); }
.rd .ab-plot .todo { stroke: #c4b5fd; stroke-width: 1.5; stroke-dasharray: 4 5; vector-effect: non-scaling-stroke; }
.rd .ab-plot .now { stroke: #171717; stroke-width: 1; stroke-dasharray: 2 3; vector-effect: non-scaling-stroke; }
.rd .ab-flag, .rd .ab-today { position: absolute; bottom: -2px; transform: translateX(-50%); color: var(--muted); font-size: 11.5px; white-space: nowrap; }
.rd .ab-flag { transform: translateX(-100%); }
.rd .ab-today { color: var(--ink); font-weight: 500; }
.rd .ab-ctip {
  position: absolute; top: 0; z-index: 3; display: grid; gap: 2px; padding: 7px 10px;
  border: 1px solid #eee; border-radius: 9px; background: #fff; box-shadow: 0 12px 30px -6px rgb(0 0 0 / 0.12);
  font-size: 12.5px; white-space: nowrap; pointer-events: none; opacity: 0; transform: translateX(-50%); transition: opacity 120ms;
}
.rd .ab-ctip.on { opacity: 1; }
.rd .ab-ctip span { color: var(--muted); }
.rd .ab-ctip b { font-weight: 600; }
.rd .ab-ctip b.b { color: #5b21b6; }

.rd .ab-foot { display: flex; align-items: center; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.rd .ab-done { display: inline-flex; align-items: center; gap: 8px; color: #15803d; font-weight: 500; }
.rd [data-tests=history] { padding: 0 8px; }

/* A and B phones differ only where the test differs */
.rd .ab-ph .plan { display: grid; gap: 1px; position: relative; }
.rd .ab-ph .plan.big { padding: 7px 6px; font-size: 8px; font-weight: 600; }
.rd .ab-ph .plan small { color: #9a9aa0; font-size: 6px; font-weight: 400; }
.rd .ab-ph .plan em { position: absolute; right: 4px; top: -5px; padding: 1px 4px; border-radius: 4px; background: #f59e0b; color: #2b1700; font-size: 5.5px; font-style: normal; font-weight: 800; }
.rd .ab-ph .sw { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; padding: 5px 6px; border-radius: 6px; background: #1f1f23; font-weight: 600; }
.rd .ab-ph .sw u { width: 16px; height: 9px; border-radius: 99px; background: #19d160; position: relative; }
.rd .ab-ph .sw u::after { content: ""; position: absolute; right: 1px; top: 1px; width: 7px; height: 7px; border-radius: 50%; background: #fff; }

/* ---------- ASO: keywords beside the App Store search they win ---------- */
.rd .kw-wrap { display: grid; grid-template-columns: 1fr 360px; gap: 22px; }
.rd .kw-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.rd .kw-table .rd-tr { height: 54px; }
.rd .kw-row { position: relative; cursor: pointer; transition: background-color 140ms; }
.rd .kw-row.sel { background: #f3fbf6; }
.rd .kw-row.sel::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: #16a34a; }
.rd .kw-row.sel > span:first-child { font-weight: 600; }
.rd .kw-new { margin-left: 6px; height: 19px; font-size: 11px; }
.rd .kw-diff { display: inline-flex; gap: 3px; }
.rd .kw-diff i { width: 7px; height: 7px; border-radius: 50%; background: #e5e5e5; }
.rd .kw-diff i.on { background: #737373; }
.rd .kw-rank { display: inline-flex; align-items: center; gap: 10px; }
.rd .kw-rank b { min-width: 30px; font-weight: 600; font-variant-numeric: tabular-nums; }
.rd .kw-rank svg { width: 66px; height: 20px; overflow: visible; }
.rd .kw-rank path { fill: none; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.rd .kw-rank path.up { stroke: #16a34a; }
.rd .kw-rank path.down { stroke: #dc2626; }
.rd .kw-rank em { font-style: normal; font-size: 12.5px; font-weight: 600; }
.rd .kw-rank em.up { color: #15803d; }
.rd .kw-rank em.down { color: #b91c1c; }
.rd .kw-none { color: var(--faint); font-size: 13px; }

.rd .kw-field { padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.rd .kf-top { display: flex; align-items: baseline; justify-content: space-between; font-size: 13.5px; }
.rd .kf-top b { font-weight: 600; }
.rd .kf-top span { color: var(--muted); font-size: 13px; }
.rd .kf-meter { height: 6px; margin: 10px 0 12px; border-radius: 99px; background: #ececec; overflow: hidden; }
.rd .kf-meter i { display: block; height: 100%; border-radius: inherit; background: #16a34a; transition: width 400ms cubic-bezier(0.2, 0.7, 0.2, 1); }
.rd .kf-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.rd .kf-chips span { padding: 3px 9px; border: 1px solid #e6e6e6; border-radius: 7px; background: #fff; font-size: 13px; }
.rd .kf-chips span.new { border-color: #a7dcb8; background: #ecf9f0; color: #15803d; font-weight: 500; animation: rd-pop 360ms ease; }
.rd .kf-chips span.free { border-style: dashed; background: none; color: var(--faint); }

.rd .kw-side { display: flex; flex-direction: column; gap: 14px; }
.rd .kw-store {
  padding: 16px 16px 0;
  border-radius: 18px;
  background: linear-gradient(180deg, #f4f6f8, #eef1f4);
  overflow: hidden;
  height: 452px;
}
.rd .as-cap { display: flex; flex-direction: column; gap: 2px; margin-bottom: 12px; font-size: 12.5px; }
.rd .as-cap span { color: var(--muted); }
.rd .as-cap b { font-size: 15px; font-weight: 600; }
.rd .as-phone {
  position: relative;
  margin: 0 18px;
  padding: 34px 12px 0;
  height: 420px;
  border: 7px solid #111;
  border-bottom: 0;
  border-radius: 34px 34px 0 0;
  background: #fff;
  box-shadow: 0 20px 40px -18px rgb(0 0 0 / 0.35);
}
.rd .as-island { position: absolute; left: 50%; top: 8px; width: 74px; height: 20px; margin-left: -37px; border-radius: 99px; background: #111; }
.rd .as-search { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 9px; background: #eeeef0; color: #111; font-size: 12.5px; }
.rd .as-search svg { color: #8e8e93; }
.rd .as-cancel { margin-left: auto; margin-right: -2px; color: #0a84ff; font-size: 12px; }
.rd .as-list { margin-top: 8px; }
.rd .as-row {
  display: grid;
  grid-template-columns: 16px 40px 1fr auto;
  align-items: center;
  gap: 8px;
  height: 56px;
  padding: 0 6px;
  border-bottom: 1px solid #f1f1f3;
  border-radius: 12px;
}
.rd .as-n { color: #a1a1a6; font-size: 11px; font-weight: 600; text-align: center; font-variant-numeric: tabular-nums; }
.rd .as-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--c); color: #fff; font-size: 16px; font-weight: 700; }
.rd .as-icon.you { background: #ea580c; }
.rd .as-meta { display: grid; min-width: 0; line-height: 1.2; }
.rd .as-meta b { font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rd .as-meta small { color: #8e8e93; font-size: 10.5px; }
.rd .as-meta .st { color: #c7c7cc; font-size: 9px; letter-spacing: 1px; }
.rd .as-get { padding: 4px 12px; border-radius: 99px; background: #eef1f7; color: #0a84ff; font-size: 11.5px; font-weight: 700; }
.rd .as-row.you {
  position: relative;
  border-color: transparent;
  background: #fff7ed;
  box-shadow: 0 0 0 1.5px #fdba74, 0 10px 24px -12px rgb(234 88 12 / 0.5);
}
.rd .as-row.you .as-n { color: #ea580c; }
.rd .as-row.you.lift { animation: as-lift 600ms cubic-bezier(0.2, 0.7, 0.2, 1); }
@keyframes as-lift { from { transform: translateY(14px); opacity: 0.4; } }
.rd .as-gap { padding: 8px 0; color: #a1a1a6; font-size: 11px; text-align: center; letter-spacing: 0.02em; }
.rd .as-gap::before, .rd .as-gap::after { content: "·  ·  ·"; margin: 0 8px; }
.rd .as-ghost { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 10px; border: 1.5px dashed #fdba74; border-radius: 12px; color: #6b6b70; font-size: 11.5px; line-height: 1.35; }
.rd .as-ghost b { color: #111; }

.rd .kw-idea { padding: 14px 16px; border: 1px solid #c9ebd5; border-radius: 14px; background: #f2fbf5; font-size: 13.5px; line-height: 1.45; }
.rd .kw-idea p { margin: 8px 0 12px; color: var(--ink2); }
.rd .kw-idea p b { color: var(--ink); }
.rd .ki-tag { display: inline-flex; align-items: center; gap: 6px; color: #15803d; font-size: 12.5px; font-weight: 600; }
.rd .ki-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #16a34a; }
.rd .ki-tag.done { color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .rd .as-row.you.lift, .rd .kf-chips span.new { animation: none; } }

.rd .kw-idea { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 18px; }
.rd .kw-idea .ki-top { grid-column: 1; }
.rd .kw-idea p { grid-column: 1; margin: 0; }
.rd .kw-idea .rd-btn { grid-column: 2; grid-row: 1 / 3; }
.rd .kw-store { height: 535px; }
.rd .as-phone { height: 470px; }

.rd .as-ghost .as-icon { flex: none; }

/* the climb: last month's place first, then today's */
.rd .as-move { margin-top: 3px; font-size: 12.5px; font-weight: 600; }
.rd .as-move.up { color: #15803d; }
.rd .as-move.down { color: #b91c1c; }
.rd .as-up { padding: 4px 9px; border-radius: 99px; background: #dcfce7; color: #15803d; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.rd .as-up.down { background: #fee2e2; color: #b91c1c; }
.rd .as-up.was { background: #f1f1f3; color: #8e8e93; }
.rd .as-list.then .as-row.you { background: #f7f7f8; box-shadow: 0 0 0 1px #e5e5ea; }
.rd .as-list.then .as-row.you .as-n { color: #a1a1a6; }
.rd .as-list.then { opacity: 0.75; transition: opacity 200ms; }
.rd .as-row.you.climb { animation: as-climb 800ms cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes as-climb {
  0% { transform: translateY(120px); opacity: 0.2; }
  60% { transform: translateY(-6px); opacity: 1; }
  100% { transform: none; }
}
@media (prefers-reduced-motion: reduce) { .rd .as-row.you.climb { animation: none; } }

/* real app icons: Candlenest, and Apple's blank template for the other apps */
.rd img.as-icon { display: block; width: 40px; height: 40px; border-radius: 22.5%; object-fit: cover; background: #f2f2f7; box-shadow: inset 0 0 0 0.5px rgb(0 0 0 / 0.08); }
.rd .as-ghost img.as-icon { flex: none; }
.rd img.as-icon { background: none; box-shadow: none; }
.rd img.as-icon[src*="app-template"] { filter: drop-shadow(0 0 0.6px rgb(0 0 0 / 0.35)); }
.rd img.as-icon { border-radius: 0; }
.rd .as-meta small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Apple Ads: where the money goes ---------- */
.rd .ad-kpis { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.rd .ad-kpis div { display: grid; gap: 3px; padding: 12px 18px; }
.rd .ad-kpis div + div { border-left: 1px solid var(--line); }
.rd .ad-kpis span { color: var(--muted); font-size: 12.5px; }
.rd .ad-kpis b { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; }
.rd .ad-kpis em { color: var(--muted); font-size: 12px; font-style: normal; }
.rd .ad-kpis em.up { color: #15803d; }
.rd .ad-kpis em.down { color: #b91c1c; }
.rd .ad-mid { display: grid; grid-template-columns: 1fr 330px; gap: 16px; margin-bottom: 16px; }
.rd .ad-flow { padding: 16px 18px 6px; }
.rd .ad-fhead { display: flex; align-items: center; gap: 12px; font-size: 13.5px; }
.rd .ad-fhead b { font-weight: 600; }
.rd .ad-fhead span { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; color: var(--muted); font-size: 12px; }
.rd .ad-fhead i { width: 9px; height: 9px; border-radius: 3px; }
.rd .ad-fhead i.g { background: #16a34a; }
.rd .ad-fhead i.r { margin-left: 6px; background: #dc2626; }
.rd .ad-flow svg { display: block; width: 100%; height: auto; margin-top: 4px; overflow: visible; }
.rd .ad-src { fill: #171717; }
.rd .ad-srcl { fill: var(--ink2); font: 600 12px Inter, sans-serif; }
.rd .ad-rib {
  fill: var(--c);
  opacity: 0.16;
  transition: d 700ms cubic-bezier(0.2, 0.7, 0.2, 1), opacity 160ms, fill 300ms;
  cursor: pointer;
}
.rd .ad-rib.hot { opacity: 0.32; }
.rd .ad-rib.dim { opacity: 0.07; }
.rd .ad-node { fill: var(--c); transition: y 700ms cubic-bezier(0.2, 0.7, 0.2, 1), height 700ms cubic-bezier(0.2, 0.7, 0.2, 1), fill 300ms; }
.rd .ad-lab { transition: transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1); cursor: pointer; }
.rd .ad-lab .n { fill: var(--ink); font: 600 13.5px Inter, sans-serif; }
.rd .ad-lab .m { fill: var(--muted); font: 400 12px Inter, sans-serif; }
.rd .ad-lab .chip { fill: color-mix(in srgb, var(--c) 12%, #fff); }
.rd .ad-lab .cpa { fill: var(--c); font: 600 12px Inter, sans-serif; text-anchor: middle; }

.rd .ad-side { display: flex; flex-direction: column; gap: 12px; }
.rd .ad-agent { padding: 14px 16px; border: 1px solid #c9ebd5; border-radius: 14px; background: #f2fbf5; font-size: 13.5px; line-height: 1.45; }
.rd .ad-agent p { margin: 8px 0 12px; color: var(--ink2); }
.rd .ad-agent p b { color: var(--ink); }
.rd .ad-cmp { display: grid; gap: 6px; margin-top: 10px; }
.rd .ad-cmp div { display: flex; align-items: baseline; justify-content: space-between; padding: 8px 10px; border-radius: 9px; background: #fff; }
.rd .ad-cmp span { color: var(--muted); font-size: 12.5px; }
.rd .ad-cmp b { font-size: 15px; font-weight: 600; }
.rd .ad-cmp i { color: var(--faint); font-style: normal; margin: 0 4px; }
.rd .ad-cmp em { color: #15803d; font-style: normal; }
.rd .ad-terms { flex: 1; padding: 12px 16px; }
.rd .ad-thead { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 13px; }
.rd .ad-thead b { font-weight: 600; }
.rd .ad-thead span { color: var(--muted); font-size: 12px; }
.rd .ad-term { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 13px; }
.rd .ad-term small { color: var(--faint); font-size: 11px; }
.rd .ad-term i { grid-column: 1 / 3; display: block; height: 3px; border-radius: 99px; background: #f0f0f0; overflow: hidden; }
.rd .ad-term i b { display: block; height: 100%; border-radius: inherit; }
.rd .rd-ads .rd-tr { height: 42px; }
.rd .rd-ads .rd-tr.hot { background: #fafafa; }
@media (prefers-reduced-motion: reduce) { .rd .ad-rib, .rd .ad-node, .rd .ad-lab { transition: none; } }

/* ---------- Tour: what this window shows, between the tabs and the window ---------- */
.xt-lead {
  max-width: 680px;
  margin: 0.25rem auto 1.75rem;
  text-align: center;
}
.xt-lead h2 {
  margin: 0;
  font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.125rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.12;
  color: #171717;
  text-wrap: balance;
}
.xt-lead p {
  margin: 0.625rem auto 0;
  max-width: 56ch;
  color: #6b6b6b;
  font-size: 1rem;
  line-height: 1.5;
  text-wrap: pretty;
}
.xt-lead.swap h2, .xt-lead.swap p { animation: xt-lead-in 420ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.xt-lead.swap p { animation-delay: 60ms; }
@keyframes xt-lead-in { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .xt-lead.swap h2, .xt-lead.swap p { animation: none; } }
/* one line, smaller */
.xt-lead { max-width: none; margin: 0 auto 1.5rem; }
.xt-lead h2 { font-size: clamp(1.125rem, 0.95rem + 0.7vw, 1.5rem); letter-spacing: -0.025em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xt-lead p { margin-top: 0.375rem; font-size: 0.9375rem; }
@media (max-width: 600px) { .xt-lead h2 { white-space: normal; } }
.xt-lead p { display: none; }
/* compact: a quiet one-liner, little height */
.site-frame section.xt { padding-top: 1rem; }
.xt-lead { margin: 0 auto 0.875rem; }
.xt-lead h2 { font-size: 1.0625rem; font-weight: 500; letter-spacing: -0.01em; line-height: 1.4; color: #404040; }
/* less space between the tabs and the heading */
.hero-band { padding-bottom: 0.5rem; }
.site-frame section.xt { padding-top: 0.5rem; }
/* sidebar: no usage card, no Docs / Settings; the nav runs the full height */
.rd .rd-use, .rd .rd-foot { display: none; }
.rd .rd-nav { max-height: none; -webkit-mask-image: none; mask-image: none; }

/* the line under the tabs: an "AI Agent" chip in the tab's colour, then what it does */
.xt-lead h2 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.012em;
  color: #262626;
}
.xt-agent {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  height: 26px;
  padding: 0 11px 0 9px;
  border: 1px solid color-mix(in srgb, var(--accent, #8b5cf6) 28%, transparent);
  border-radius: 99px;
  background: color-mix(in srgb, var(--accent, #8b5cf6) 10%, #fff);
  color: color-mix(in srgb, var(--accent, #8b5cf6) 78%, #000);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0;
  transition: background-color 300ms, color 300ms, border-color 300ms;
}
.xt-agent svg { flex: none; }
.xt-lead [data-lead-msg] { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 600px) { .xt-lead h2 { flex-wrap: wrap; } }
/* rd.css loads before xee-tour.css, so this needs the stronger selector to win */
body .site-frame section.xt#tour { padding-top: 0.5rem; }

/* ---------- the other sidebar pages, opened over the window ---------- */
.rd .rd-main { position: relative; }
.rd .rd-extra { position: absolute; inset: 0; z-index: 8; overflow: hidden; background: #fff; }
.rd .rd-extra .rd-title { display: flex; align-items: center; }
.rd .rd-extra .rd-homeask-in { top: 0; }

/* Home */
.rd .hx-nums { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 18px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 4px 2px rgb(0 0 0 / 0.01), 0 8px 80px -4px rgb(0 0 0 / 0.03); }
.rd .hx-nums div { display: grid; gap: 4px; padding: 16px 20px; }
.rd .hx-nums div + div { border-left: 1px solid var(--line); }
.rd .hx-nums span { color: var(--muted); font-size: 13px; }
.rd .hx-nums b { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; }
.rd .hx-nums em { color: #15803d; font-size: 13px; font-style: normal; font-weight: 500; }
.rd .hx-exh { display: flex; align-items: baseline; gap: 10px; margin: 26px 0 12px; }
.rd .hx-exh b { font-size: 16px; font-weight: 600; }
.rd .hx-exh span { color: var(--muted); font-size: 13px; }
.rd .hx-exps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.rd .hx-exp { display: grid; gap: 8px; align-content: start; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; transition: border-color 140ms, box-shadow 140ms; }
.rd .hx-exp:hover { border-color: #e2e2e2; box-shadow: 0 8px 30px -10px rgb(0 0 0 / 0.12); }
.rd .hx-exp .rd-pill { justify-self: start; }
.rd .hx-exp b { font-size: 14.5px; font-weight: 600; line-height: 1.3; }
.rd .hx-exp small { color: var(--muted); font-size: 12.5px; }
.rd .rd-qchip { cursor: pointer; }
.rd .rd-qchip:hover { border-color: #d4d4d4; }

/* To decide */
.rd .hx-deck { grid-template-columns: 1fr 180px; min-height: 380px; }
.rd .hx-deck .rd-kind { border-color: color-mix(in srgb, var(--k) 30%, transparent); background: color-mix(in srgb, var(--k) 8%, #fff); color: color-mix(in srgb, var(--k) 75%, #000); }
.rd .hx-deck-r { display: grid; place-items: center; background: var(--surface); border-left: 1px solid #f0f0f0; color: var(--muted); font-size: 13px; }

/* Paywalls */
.rd .hx-pw-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.rd .hx-pw { display: flex; overflow: hidden; border: 1px solid #e6e6e6; border-radius: 14px; background: #fff; transition: border-color 140ms, box-shadow 140ms; }
.rd .hx-pw:hover { border-color: #d9d9d9; box-shadow: 0 10px 30px -14px rgb(0 0 0 / 0.18); }
.rd .hx-pw-ph { display: grid; place-items: center; flex: none; width: 170px; background: var(--surface); border-right: 1px solid var(--line); }
.rd .hx-pw-body { flex: 1; padding: 18px 20px; }
.rd .hx-pw-top { display: flex; align-items: center; justify-content: space-between; }
.rd .hx-pw-top b { font-size: 16px; font-weight: 600; }
.rd .hx-pw-rev { display: flex; align-items: baseline; justify-content: space-between; margin-top: 12px; }
.rd .hx-pw-rev b { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; }
.rd .hx-pw-rev span { color: var(--muted); font-size: 12.5px; }
.rd .hx-pw-bar { display: flex; height: 8px; margin-top: 10px; border-radius: 99px; background: #f0f0f0; overflow: hidden; }
.rd .hx-pw-bar i { background: #171717; }
.rd .hx-pw-bar u { background: repeating-linear-gradient(45deg, #c9c9c9 0 3px, #e5e5e5 3px 6px); }
.rd .hx-pw-key { display: flex; gap: 14px; margin-top: 6px; color: var(--muted); font-size: 12px; }
.rd .hx-pw-key i, .rd .hx-pw-key u { display: inline-block; width: 8px; height: 8px; margin-right: 5px; border-radius: 2px; background: #171717; vertical-align: 0; }
.rd .hx-pw-key u { background: #c9c9c9; }
.rd .hx-pw dl { margin: 14px 0 0; }
.rd .hx-pw dl div { display: flex; justify-content: space-between; padding: 7px 0; border-top: 1px dashed #eee; font-size: 13.5px; }
.rd .hx-pw dt { color: var(--muted); }
.rd .hx-pw dd { margin: 0; font-weight: 500; }

/* Views */
.rd .hx-vcard[data-go] { transition: border-color 140ms, box-shadow 140ms; }
.rd .hx-vcard[data-go]:hover { border-color: #d9d9d9; box-shadow: 0 10px 30px -14px rgb(0 0 0 / 0.18); }

/* Idea lists */
.rd .hx-stages { display: flex; gap: 6px; margin-bottom: 16px; }
.rd .hx-stage { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 8px; color: var(--ink2); font-size: 13.5px; }
.rd .hx-stage:hover { background: #f7f7f7; }
.rd .hx-stage.on { background: var(--well); color: var(--ink); font-weight: 500; }
.rd .hx-stage em { color: var(--muted); font-style: normal; font-size: 12px; }
.rd .hx-ideas { padding: 4px 0; }
.rd .hx-idea { display: grid; grid-template-columns: 32px 1fr auto 96px 24px; align-items: center; gap: 12px; padding: 14px 20px; border-top: 1px solid var(--line); transition: background-color 140ms; }
.rd .hx-idea:first-child { border-top: 0; }
.rd .hx-idea:hover { background: #fcfcfc; }
.rd .hx-mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: color-mix(in srgb, var(--k) 10%, #fff); color: var(--k); }
.rd .hx-idea b { display: block; font-weight: 500; }
.rd .hx-idea small { color: var(--muted); font-size: 12.5px; }
.rd .hx-when { text-align: right; font-size: 12.5px; }
.rd .hx-open { color: var(--faint); }
.rd .hx-idea:hover .hx-open { color: var(--ink); }
.rd .rd-extra .rd-homeask-in { bottom: auto; height: 190px; }

/* ---------- To decide: the idea beside what it changes ---------- */
.rd .hx-deck { grid-template-columns: 1fr 470px; min-height: 560px; }
.rd .hx-deck .rd-kind { border-color: color-mix(in srgb, var(--k) 30%, transparent); background: color-mix(in srgb, var(--k) 8%, #fff); color: color-mix(in srgb, var(--k) 75%, #000); }
.rd .hx-count { margin-left: auto; color: var(--faint); font-size: 12.5px; }
.rd .hx-plan { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 20px; border-radius: 12px; background: var(--surface); }
.rd .hx-plan div { display: grid; gap: 3px; padding: 12px 14px; }
.rd .hx-plan div + div { border-left: 1px solid var(--line); }
.rd .hx-plan span { color: var(--muted); font-size: 12px; }
.rd .hx-plan b { font-size: 14px; font-weight: 600; }
.rd .hx-deck-r {
  display: grid;
  place-items: center;
  padding: 24px 20px;
  border-left: 1px solid #f0f0f0;
  background:
    radial-gradient(color-mix(in srgb, var(--k) 18%, transparent) 1px, transparent 1.2px) 0 0 / 16px 16px,
    var(--surface);
}
.rd .hx-prev { display: flex; align-items: center; gap: 10px; }
.rd .hx-side { display: grid; justify-items: center; gap: 10px; }
.rd .hx-plab { color: var(--muted); font-size: 12px; white-space: nowrap; }
.rd .hx-plab b { color: var(--ink); font-weight: 600; }
.rd .hx-side.to .hx-plab b { color: color-mix(in srgb, var(--k) 80%, #000); }
.rd .hx-arrow { color: var(--faint); margin-top: 22px; }
.rd .hx-prev .ab-ph { width: 150px; height: 300px; padding: 22px 11px 11px; gap: 8px; border-radius: 24px; font-size: 10px; }
.rd .hx-prev .ab-ph .pro { font-size: 8px; padding: 1px 6px; }
.rd .hx-prev .ab-ph > b { font-size: 15px; }
.rd .hx-prev .ab-ph > i { height: 4px; }
.rd .hx-prev .ab-ph .plan { padding: 8px; font-size: 10px; }
.rd .hx-prev .ab-ph .plan.big { padding: 11px 8px; font-size: 11.5px; }
.rd .hx-prev .ab-ph .plan small { font-size: 8.5px; }
.rd .hx-prev .ab-ph .plan em { font-size: 7.5px; top: -7px; padding: 2px 6px; }
.rd .hx-prev .ab-ph .cta { height: 24px; font-size: 9.5px; }
.rd .hx-side.to .ab-ph { box-shadow: 0 0 0 2px color-mix(in srgb, var(--k) 70%, #000), 0 20px 40px -16px color-mix(in srgb, var(--k) 60%, transparent); }

.rd .hx-store { width: 190px; padding: 12px 10px; border: 6px solid #111; border-radius: 26px; background: #fff; box-shadow: 0 18px 36px -18px rgb(0 0 0 / 0.4); }
.rd .hx-sbar { height: 26px; margin-bottom: 8px; padding: 0 9px; border-radius: 8px; background: #eeeef0; font-size: 11px; line-height: 26px; }
.rd .hx-sr { display: flex; align-items: center; gap: 7px; height: 40px; padding: 0 5px; border-radius: 9px; font-size: 11px; }
.rd .hx-sr span { width: 10px; color: #a1a1a6; font-size: 10px; font-weight: 600; }
.rd .hx-sr img { border-radius: 22.5%; }
.rd .hx-sr img[src*="app-template"] { filter: drop-shadow(0 0 0.6px rgb(0 0 0 / 0.35)); }
.rd .hx-sr b { font-weight: 600; }
.rd .hx-sr.you { background: #fff7ed; box-shadow: 0 0 0 1.5px #fdba74; }
.rd .hx-snot { margin-top: 8px; padding: 8px; border: 1.5px dashed #d4d4d4; border-radius: 9px; color: var(--muted); font-size: 10.5px; text-align: center; }
.rd .hx-side.to .hx-store { border-color: #111; box-shadow: 0 0 0 2px color-mix(in srgb, var(--k) 60%, transparent), 0 18px 36px -18px rgb(0 0 0 / 0.4); }

.rd .hx-split { display: grid; gap: 10px; width: 180px; padding: 16px; border: 1px solid #e8e8e8; border-radius: 14px; background: #fff; box-shadow: 0 12px 30px -16px rgb(0 0 0 / 0.25); }
.rd .hx-split div { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; font-size: 12px; }
.rd .hx-split i { grid-column: 1 / 3; grid-row: 2; display: block; height: 8px; border-radius: 99px; background: #f0f0f0; overflow: hidden; }
.rd .hx-split i b { display: block; height: 100%; border-radius: inherit; }
.rd .hx-split em { font-style: normal; font-weight: 600; }
.rd .hx-split small { color: var(--muted); font-size: 11px; }
.rd .hx-side.to .hx-split { border-color: color-mix(in srgb, var(--k) 45%, #e8e8e8); }
.rd .hx-prev { align-items: flex-start; }
.rd .hx-arrow { align-self: center; margin-top: 22px; }

/* ---------- a view's own page ---------- */
.rd .rd-extra { overflow-y: auto; scrollbar-width: none; }
.rd .rd-extra::-webkit-scrollbar { display: none; }
.rd .vd-crumb { color: var(--muted); font-weight: 400; cursor: pointer; }
.rd .vd-crumb:hover { color: var(--ink); }
.rd .vd-sep { margin: 0 8px; color: var(--faint); font-weight: 400; }
.rd .vd-card { display: grid; grid-template-columns: 290px minmax(0, 1.45fr) minmax(0, 1fr); gap: 22px; padding: 20px 24px; }
.rd .vd-left { position: sticky; top: 8px; align-self: start; display: grid; align-content: start; justify-items: center; gap: 10px; }
.rd .vd-left small { max-width: 250px; color: var(--muted); font-size: 12px; text-align: center; }
.rd .vd-ph {
  position: relative; display: flex; flex-direction: column; gap: 11px;
  padding: 40px 16px 28px;
  border-radius: 34px; background: #1d1d1f; box-shadow: 0 0 0 3px #2c2c2e, 0 24px 50px -20px rgb(0 0 0 / 0.45);
  color: #fff; font-size: 11px;
}
.rd .vd-x { position: absolute; right: 16px; top: 14px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #3a3a3c; font-size: 13px; }
.rd .vd-ph h4 { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; }
.rd .vd-ph p { margin: 0; color: #c7c7cc; font-size: 10.5px; line-height: 1.35; text-wrap: balance; }
.rd .vd-ph ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 5px; color: #d1d1d6; font-size: 10px; }
.rd .vd-ph li::before { content: "✓"; margin-right: 6px; color: #22c55e; font-weight: 700; }
.rd .vd-chart { position: relative; height: 120px; margin: 4px 0; padding: 12px 10px 8px; border: 2px solid #22c55e; border-radius: 8px; background: #111; }
.rd .vd-candles { display: flex; align-items: flex-end; gap: 4px; height: 100%; }
.rd .vd-candles i { flex: 1; height: var(--h); border-radius: 2px; background: var(--c); }
.rd .vd-tag { position: absolute; padding: 2px 6px; border: 1px solid #22c55e; border-radius: 99px; background: #0b0b0c; font-size: 7px; font-weight: 700; letter-spacing: 0.06em; }
.rd .vd-tag.t1 { left: 34px; top: -8px; }
.rd .vd-tag.t2 { right: 8px; top: 30px; }
.rd .vd-cta { display: grid; place-items: center; height: 30px; border-radius: 99px; background: #19d160; color: #062b12; font-size: 11px; font-weight: 700; }
.rd .vd-ph > .vd-cta { margin-top: auto; }
.rd .vd-ghost { display: grid; place-items: center; height: 30px; border: 1px solid #48484a; border-radius: 99px; font-size: 11px; font-weight: 600; }
.rd .vd-link { display: block; padding: 6px 0; text-align: center; color: #a1a1a6; font-size: 11px; }
.rd .vd-art { display: flex; flex: 1; align-items: flex-end; gap: 6px; min-height: 150px; padding: 14px; border-radius: 14px; background: linear-gradient(160deg, #23324a, #121a26); }
.rd .vd-art span { flex: 1; height: var(--h); border-radius: 3px 3px 0 0; background: var(--c); }
.rd .vd-art.sm { min-height: 28px; }
.rd .vd-bell { align-items: center; justify-content: center; }
.rd .vd-bell b { display: grid; color: #fff; line-height: 1; }
.rd .vd-phost { display: contents; }
.rd .vd-m0 { padding: 3px 6px; }
.rd .vd-x + .vd-m { margin-top: 18px; }
.rd .vd-sig { position: absolute; right: 48px; top: 14px; z-index: 1; width: 14px; height: 8px; background: linear-gradient(#fff, #fff) 0 100% / 2px 35% no-repeat, linear-gradient(#fff, #fff) 4px 100% / 2px 55% no-repeat, linear-gradient(#fff, #fff) 8px 100% / 2px 78% no-repeat, linear-gradient(#fff, #fff) 12px 100% / 2px 100% no-repeat; }
.rd .ab-ph .vd-sig { display: none; }
.rd .vd-trig { margin: 0 0 8px; color: #a1a1a6; font-size: 10px; text-align: center; }
.rd .vd-ph.has-alert .vd-m { outline-color: transparent; background: none; }
.rd .vd-ph.has-alert .vd-num { visibility: hidden; }
.rd .vd-alert { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; border-radius: inherit; background: rgb(0 0 0 / 0.72); backdrop-filter: blur(1.5px); }
.rd .vd-alert-box { width: 66%; overflow: hidden; border-radius: 12px; background: #3a3a3c; text-align: center; box-shadow: 0 0 0 1px rgb(255 255 255 / 0.06); }
.rd .vd-alert-box b { display: block; padding: 12px 11px 3px; font-size: 10.5px; font-weight: 600; line-height: 1.3; }
.rd .vd-alert-box span { display: block; padding: 0 11px 11px; color: #d1d1d6; font-size: 9px; line-height: 1.35; }
.rd .vd-alert-box div { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid #5a5a5e; }
.rd .vd-alert-box i { padding: 9px 0; color: #409cff; font-size: 10.5px; font-style: normal; cursor: pointer; }
.rd .vd-alert-box i[data-ans="yes"] { border-left: 1px solid #5a5a5e; font-weight: 600; }
.rd .vd-picks span { cursor: pointer; }
.rd .vd-picks { display: flex; flex-wrap: wrap; gap: 6px; }
.rd .vd-picks span { padding: 6px 11px; border: 1px solid #636366; border-radius: 99px; color: #d1d1d6; font-size: 11px; }
.rd .vd-fx { margin: 6px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.rd .vd-picks span.on { border-color: #19d160; background: #19d160; color: #062b12; font-weight: 600; }
.rd .vd-fine { display: block; color: #8e8e93; font-size: 8.5px; text-align: center; }
.rd .vd-ph::after { content: ""; position: absolute; left: 50%; bottom: 6px; width: 34%; height: 3px; border-radius: 99px; background: #fff; opacity: 0.5; transform: translateX(-50%); }
.rd .vd-clock { position: absolute; left: 26px; top: 10px; z-index: 1; font-size: 10px; font-weight: 600; letter-spacing: -0.01em; }
.rd .vd-batt { position: absolute; right: 24px; top: 13px; z-index: 1; width: 18px; height: 9px; padding: 1px; border: 1px solid rgb(255 255 255 / 0.5); border-radius: 3px; background: linear-gradient(#fff, #fff) 1px 1px / 70% calc(100% - 2px) no-repeat; }
.rd .vd-card .vd-right { align-self: start; padding-top: 14px; }
.rd .vd-fcol { align-self: start; }
.rd .vd-fcol .vd-funnel { padding: 14px 14px 12px; }
.rd .vd-hint { display: block; max-width: 250px; color: var(--muted); font-size: 12px; text-align: center; text-wrap: balance; }
.rd .vd-restart { cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.rd .ab-odds .ab-note { margin: 30px 2px 0; color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.rd .ab-why { margin: 0 0 14px; padding: 10px 14px; border-radius: 10px; background: #f4f1ff; color: #4a3a86; font-size: 13px; line-height: 1.45; }
.rd .vd-goal { transition: box-shadow 200ms; }
.rd .vd-goal.hi { box-shadow: 0 0 0 2px #16a34a; }
.rd .vd-rel { margin: 14px 2px 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.rd .vd-seetest { cursor: pointer; }
.rd .ab-wlink { color: var(--ink); text-decoration: underline; text-decoration-color: var(--faint); text-underline-offset: 3px; cursor: pointer; }
/* each dot is a 26 × 40 target around a 6px dot (about 15 × 24 on screen once the demo is scaled); the row keeps the height of the dot, so nothing else moves */
.rd .vd-dots { display: flex; align-items: center; justify-content: center; height: 6px; margin-top: auto; }
.rd .vd-dots i { position: relative; flex: none; width: 26px; height: 40px; margin: -17px 0; cursor: pointer; }
.rd .vd-dots i::before { content: ""; position: absolute; top: 50%; left: 50%; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: #8e8e93; }
.rd .vd-dots i:hover::before { background: #d1d1d6; }
.rd .vd-dots i.on::before { background: #fff; }
.rd .vd-dim { justify-content: flex-end; background: linear-gradient(#2b2b2e, #18181a); }
.rd .vd-sheet { display: flex; flex-direction: column; gap: 10px; padding: 18px 14px 14px; border-radius: 22px; background: #2c2c2e; text-align: center; }

.rd .vd-m { position: relative; padding: 3px 6px; border-radius: 5px; outline: 1.5px dashed color-mix(in srgb, var(--c) 70%, #fff); outline-offset: 1px; transition: background-color 140ms, outline-color 140ms; }
.rd .vd-num { position: absolute; right: -8px; top: -9px; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--c); color: #fff; font-size: 10.5px; font-weight: 700; }
.rd .vd-m.hi { background: color-mix(in srgb, var(--c) 30%, transparent); outline-style: solid; }

.rd .vd-h { display: block; margin-bottom: 10px; font-size: 15px; font-weight: 600; }
.rd .vd-list { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.rd .vd-row { position: relative; display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 12px; padding: 13px 16px 13px 18px; border-top: 1px solid var(--line); transition: background-color 140ms; }
.rd .vd-row:first-child { border-top: 0; }
.rd .vd-row::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: color-mix(in srgb, var(--c) 35%, transparent); }
.rd .vd-row.hi { background: color-mix(in srgb, var(--c) 6%, #fff); }
.rd .vd-row.hi::before { background: var(--c); }
.rd .vd-badge { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--c) 30%, #fff); background: var(--c); color: #fff; font-size: 12px; font-weight: 700; }
.rd .vd-k { color: var(--muted); font-size: 13px; }
.rd .vd-t { margin-left: 4px; padding: 1px 5px; border: 1px solid #e5e5e5; border-radius: 4px; font: 500 10px "Geist Mono", ui-monospace, monospace; letter-spacing: 0.04em; }
.rd .vd-val { margin-top: 3px; font-size: 15px; font-weight: 500; }
.rd .vd-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.rd .vd-chips span { padding: 3px 9px; border: 1px solid #e6e6e6; border-radius: 7px; background: #fafafa; font-size: 13px; }
.rd .vd-switch { display: inline-flex; align-items: center; gap: 8px; margin-top: 5px; font-size: 14px; font-weight: 500; cursor: pointer; }
.rd .vd-switch u { position: relative; width: 30px; height: 17px; border-radius: 99px; background: #d4d4d4; transition: background-color 160ms; }
.rd .vd-switch u::after { content: ""; position: absolute; left: 2px; top: 2px; width: 13px; height: 13px; border-radius: 50%; background: #fff; transition: transform 160ms; }
.rd .vd-switch.on u { background: #16a34a; }
.rd .vd-switch.on u::after { transform: translateX(13px); }
.rd .vd-start { height: 30px; font-size: 12.5px; }

.rd .vd-row2 { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 16px; }
.rd .vd-goal, .rd .vd-funnel { padding: 18px 20px; }
.rd .vd-gh { display: flex; align-items: center; justify-content: space-between; }
.rd .vd-gh b, .rd .vd-funnel > b { font-size: 15px; font-weight: 600; }
.rd .vd-goal p { margin: 10px 0 14px; color: #2f55a4; font-size: 13px; }
.rd .vd-gname { font-size: 18px; font-weight: 600; }
.rd .vd-goal code, .rd .vd-step code { color: var(--muted); font: 400 12px "Geist Mono", ui-monospace, monospace; }
.rd .vd-gbar { height: 6px; margin-top: 12px; border-radius: 99px; background: #eef2ff; overflow: hidden; }
.rd .vd-gbar i { display: block; height: 100%; background: #2563eb; border-radius: inherit; }
.rd .vd-gnum { margin-top: 6px; color: var(--muted); font-size: 13px; }
.rd .vd-gnum b { color: var(--ink); }
.rd .vd-steps { margin-top: 12px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.rd .vd-step { position: relative; display: flex; justify-content: space-between; align-items: center; padding: 7px 14px 10px; border-top: 1px solid var(--line); }
.rd .vd-step:first-child { border-top: 0; }
.rd .vd-step.cur { background: #f1f5ff; box-shadow: inset 3px 0 0 #2563eb; }
.rd .vd-step b { display: block; font-size: 13.5px; font-weight: 600; }
.rd .vd-sn { text-align: right; }
.rd .vd-sn span { display: block; color: var(--muted); font-size: 11.5px; }
.rd .vd-step i { position: absolute; left: 0; bottom: 0; height: 3px; background: #2563eb; opacity: 0.55; }
.rd .vd-note { margin: 16px 0 8px; padding: 12px 14px; border: 1px solid #c9ebd5; border-radius: 10px; background: #f2fbf5; font-size: 13px; color: var(--ink2); }
.rd .vd-note code { padding: 1px 4px; border-radius: 4px; background: #fff; font: 12px "Geist Mono", ui-monospace, monospace; color: var(--ink); }
.rd .vd-ph h4 { color: #fff; }
.rd .vd-ph p { color: #c7c7cc; }

/* winback: a light offer screen, unlike main's dark sales paywall */
.rd .wb-ph {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  width: 104px; height: 196px; padding: 12px 8px 8px;
  border-radius: 16px; background: linear-gradient(180deg, #fff7ed 0%, #ffffff 55%);
  box-shadow: 0 0 0 2px #1d1d1f; color: #1d1d1f; text-align: center; font-size: 6.5px;
  position: relative;
}
.rd .wb-x { position: absolute; right: 7px; top: 6px; color: #a1a1a6; font-size: 9px; }
.rd .wb-gift { display: grid; place-items: center; width: 26px; height: 26px; margin-top: 4px; border-radius: 50%; background: #ffedd5; font-size: 13px; }
.rd .wb-ph > b { font-size: 9.5px; line-height: 1.15; }
.rd .wb-ph > small { color: #6b6b70; font-size: 6.5px; }
.rd .wb-price { display: grid; justify-items: center; gap: 0; margin-top: 3px; padding: 5px 10px; border: 1.5px solid #fb923c; border-radius: 8px; background: #fff; }
.rd .wb-price s { color: #a1a1a6; font-size: 6.5px; }
.rd .wb-price strong { font-size: 13px; line-height: 1.1; color: #ea580c; }
.rd .wb-price span { color: #6b6b70; font-size: 6px; }
.rd .wb-timer { color: #6b6b70; font-size: 6px; }
.rd .wb-timer b { color: #1d1d1f; font-variant-numeric: tabular-nums; }
.rd .wb-cta { display: grid; place-items: center; width: 100%; height: 16px; margin-top: auto; border-radius: 99px; background: #ea580c; color: #fff; font-size: 6.5px; font-weight: 700; }
.rd .wb-no { color: #a1a1a6; font-size: 6px; }

/* ---------- every phone at iPhone Pro Max proportions: 440 × 956 points, ~55pt corners, Dynamic Island ---------- */
.rd .ab-ph, .rd .wb-ph, .rd .vd-ph, .rd .rd-ph, .rd .hx-store, .rd .rd-bigph {
  height: auto;
  aspect-ratio: 440 / 956;
  position: relative;
}
.rd .ab-ph, .rd .wb-ph { width: 98px; border-radius: 15px; padding-top: 16px; }
.rd .hx-prev .ab-ph { width: 150px; border-radius: 23px; padding-top: 26px; }
.rd .vd-ph { width: 222px; border-radius: 28px; padding-top: 48px; }
.rd .rd-ph { width: 56px; border-radius: 7px; padding-top: 12px; }
.rd .hx-store { width: 176px; border-radius: 30px; padding-top: 34px; }
.rd .rd-bigph { width: 150px; border-radius: 23px; padding-top: 26px; }
/* the Dynamic Island: a pill near the top, about a third of the screen wide */
.rd .ab-ph::before, .rd .wb-ph::before, .rd .vd-ph::before, .rd .rd-ph::before, .rd .hx-store::before, .rd .rd-bigph::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 2.4%;
  width: 29%;
  height: 3.9%;
  border-radius: 99px;
  background: #000;
  transform: translateX(-50%);
  z-index: 2;
}
.rd .wb-ph::before { background: #1d1d1f; }
.rd .hx-store::before { top: 1.6%; }
.rd .vd-ph::before { top: 1.4%; }
.rd .wb-x { top: 14px; }
.rd .vd-x { top: 30px; right: 18px; width: 18px; height: 18px; font-size: 11px; }

/* ---------- Top bar, like Dub's: logo left, menu centred, Log in + Sign up right ---------- */
.xee-logo { display: inline-flex; align-items: center; gap: 9px; color: #111; }
.xee-mark { width: 28px; height: 28px; flex: none; }
.xee-word { font: 700 24px/1 Inter, system-ui, sans-serif; letter-spacing: -0.06em; color: #111; transform: translateY(-1px); }
header nav[aria-label="Primary"] { position: relative; }
@media (min-width: 1024px) {
  header nav[aria-label="Primary"] > .primary-links {
    position: absolute;
    left: 50%;
    top: 50%;
    flex: none !important;
    width: auto !important;
    transform: translate(-50%, -50%);
    gap: 4px;
  }
}
.nav-login, .nav-signup {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 16px;
  border-radius: 10px;
  font: 500 15px/1 Inter, system-ui, sans-serif;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 150ms, border-color 150ms;
}
.nav-login { border: 1px solid #e5e5e5; background: #fff; color: #171717; box-shadow: 0 1px 2px rgb(0 0 0 / 0.04); }
.nav-login:hover { background: #f5f5f5; }
.nav-signup { background: #000; color: #fff; }
.nav-signup:hover { background: #262626; }
.nav-login:focus-visible, .nav-signup:focus-visible { outline: 2px solid #a3a3a3; outline-offset: 2px; }
@media (max-width: 640px) { .nav-login, .nav-signup { height: 34px; padding: 0 12px; font-size: 14px; } }
/* menu: Dub-like smooth chevrons and slightly larger, darker labels */
header .xee-chev { width: 14px; height: 14px; color: #525252; transition: transform 160ms ease; }
header details[open] > summary .xee-chev { transform: rotate(180deg); }
@media (min-width: 1024px) {
  header nav[aria-label="Primary"] .nav-summary,
  header nav[aria-label="Primary"] > .primary-links > a { font-size: 15px; color: #404040; }
  header nav[aria-label="Primary"] .nav-summary:hover,
  header nav[aria-label="Primary"] > .primary-links > a:hover { color: #171717; }
}
header .nav-summary .xee-chev { color: #404040 !important; opacity: 1 !important; }
/* smaller Log in / Sign up */
.nav-login, .nav-signup { height: 32px; padding: 0 12px; border-radius: 8px; font-size: 14px; }
/* menu hover / open: a soft grey pill behind the item, like Dub */
@media (min-width: 1024px) {
  header nav[aria-label="Primary"] .nav-summary,
  header nav[aria-label="Primary"] > .primary-links > a {
    padding: 7px 12px !important;
    border-radius: 10px;
    transition: background-color 150ms ease, color 150ms ease;
  }
  header nav[aria-label="Primary"] .nav-summary:hover,
  header nav[aria-label="Primary"] > .primary-links > a:hover,
  header nav[aria-label="Primary"] details[open] > .nav-summary {
    background: #f3f3f3;
    color: #171717 !important;
  }
}
/* Log in and Sign up sit closer together */
header [data-auth="logged-out"] { gap: 8px !important; }
@media (min-width: 1024px) { header nav[aria-label="Primary"] .nav-summary { min-height: 0 !important; height: 34px; } header nav[aria-label="Primary"] > .primary-links > a { height: 34px; display: inline-flex; align-items: center; } }
header .xee-chev { transform: none !important; rotate: none !important; }
header details[open] > summary .xee-chev { transform: rotate(180deg) !important; }
/* keep the logo and Sign up inside the page frame lines, not on them */
header nav[aria-label="Primary"] { padding-left: 20px !important; padding-right: 20px !important; }
/* the page frame lines line up with the logo and Sign up (the bar is 1280 wide with 20px inside) */
body .site-frame { max-width: 1240px; }

/* the xee wordmark, drawn like Dub's mark */
.xee-wordmark-svg { display: block; height: 24px; width: auto; color: #111; }
/* top bar: no rule at the top of the page, a rule once scrolled */
header.sticky { border-bottom-color: transparent !important; transition: border-color 200ms ease, background-color 200ms ease; }
header.sticky.is-scrolled { border-bottom-color: #e5e5e5 !important; }
/* top of the page: the dots and the frame lines fade in from white under the top bar */
body .site-frame { position: relative; }
body .site-frame::before {
  content: "";
  position: absolute;
  top: 0;
  left: -2px;
  right: -2px;
  height: 140px;
  z-index: 5;
  pointer-events: none;
  background: linear-gradient(180deg, #fff 0%, rgb(255 255 255 / 0) 100%);
}
body .site-frame::before { height: 320px; }
/* the hero's words and buttons sit above the fade, so it only fades the dots and lines */
body .site-frame > section:first-of-type h1,
body .site-frame > section:first-of-type h1 + p,
body .site-frame .hero-actions { position: relative; z-index: 6; }
/* the hero is its own stacking layer, so it gets its own fade: above the dots, below the words */
body .site-frame > section.isolate:first-of-type { z-index: 6; }
body .site-frame > section.isolate:first-of-type::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 320px;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, #fff 0%, rgb(255 255 255 / 0) 100%);
}
body .site-frame > section.isolate:first-of-type .hero-actions,
body .site-frame > section.isolate:first-of-type h1,
body .site-frame > section.isolate:first-of-type h1 + p { position: relative; z-index: 2; }
header nav[aria-label="Primary"] { padding-left: 40px !important; padding-right: 40px !important; }
/* wide screens: the bar stays 1280 so the logo and Sign up sit 20px inside the 1240 frame lines (the site's own rule grows it to 1440) */
header nav[aria-label="Primary"].content-frame { max-width: 1280px; }
/* hero at Dub's height: a smaller headline and less padding above and below */
body .site-frame > section.isolate:first-of-type { min-height: 0 !important; }
body .site-frame > section.isolate:first-of-type .max-w-5xl { min-height: 0 !important; padding: 56px 0 44px !important; }
body .site-frame > section.isolate:first-of-type h1 {
  font-size: clamp(2.25rem, 1.35rem + 3.1vw, 3.75rem) !important;
  line-height: 1.04 !important;
  letter-spacing: -0.035em;
}
body .site-frame > section.isolate:first-of-type h1 + p { margin-top: 18px !important; font-size: 1.125rem; }
body .site-frame > section.isolate:first-of-type .hero-actions { margin-top: 28px !important; }
body .site-frame > section.isolate:first-of-type h1 + p { max-width: 34rem; text-wrap: balance; }
/* hero type, sized like Dub's: 56px headline, 19px grey subline, 40px buttons with 16px labels */
body .site-frame > section.isolate:first-of-type h1 {
  font-size: clamp(2.25rem, 1.4rem + 2.9vw, 3.5rem) !important;
  line-height: 1.08 !important;
  font-weight: 500;
  letter-spacing: -0.03em;
}
body .site-frame > section.isolate:first-of-type h1 + p {
  margin-top: 16px !important;
  max-width: 36rem;
  color: #525252 !important;
  font-size: 1.1875rem !important;
  line-height: 1.55 !important;
  letter-spacing: -0.005em;
}
body .site-frame > section.isolate:first-of-type .hero-actions { margin-top: 26px !important; gap: 12px; }
body .site-frame > section.isolate:first-of-type .hero-btn {
  height: 40px !important;
  padding: 0 18px !important;
  border-radius: 10px !important;
  font-size: 16px !important;
  font-weight: 500 !important;
}
@media (max-width: 640px) {
  body .site-frame > section.isolate:first-of-type h1 + p { font-size: 1.0625rem !important; }
}
body .site-frame > section.isolate:first-of-type h1 + p { max-width: 42rem !important; width: 100%; text-wrap: balance; }

/* ---------- dashboard section at Dub's height ---------- */
/* a narrower window, the caption laid over its bottom edge as on Dub, and no hint line under it */
.xt-frame { max-width: 880px !important; padding-bottom: 12px !important; }
.xt-panels { position: relative; }
.xt-panel .rd-wrap {
  -webkit-mask-image: linear-gradient(180deg, #000 80%, rgb(0 0 0 / 0.15) 100%);
  mask-image: linear-gradient(180deg, #000 80%, rgb(0 0 0 / 0.15) 100%);
}
.xt-caption {
  position: absolute !important;
  left: 40px !important;
  right: 40px !important;
  bottom: 24px !important;
  margin: 0 !important;
  z-index: 10;
}
.xt-hint { display: none !important; }
body .site-frame section.xt#tour { padding-bottom: 40px !important; }
@media (max-width: 720px) {
  .xt-caption { position: static !important; margin-top: 12px !important; }
  .xt-panel .rd-wrap { -webkit-mask-image: none; mask-image: none; }
}
/* a slimmer caption bar, closer to the bottom edge */
.xt-caption { padding: 8px 8px 8px 10px !important; gap: 12px !important; bottom: 14px !important; border-radius: 12px !important; }
.xt-tile { width: 30px !important; height: 30px !important; border-radius: 8px !important; }
.xt-tile svg { width: 15px !important; height: 15px !important; }
.xt-title { font-size: 14.5px !important; line-height: 1.25 !important; }
.xt-text { margin-top: 1px !important; font-size: 13px !important; line-height: 1.35 !important; }
.xt-more { height: 30px !important; padding: 0 12px !important; border-radius: 8px !important; font-size: 13.5px !important; }
/* between sections: one solid hairline instead of two dashed ones */
body .section-rule { background: #e5e5e5 !important; height: 1px; }
body .section-spacer::before, body .section-spacer::after { background: none !important; border: 0 !important; }
/* nothing under the dashboard section: no rule, no empty band with side lines */
#tour + .section-rule, #tour + .section-rule + .section-spacer { display: none !important; }
body .site-frame section.xt#tour { border-bottom: 0 !important; }
/* keep the one line under the dashboard section; only the band below it goes */
#tour + .section-rule { display: block !important; }

/* ---------- the window's surround takes the picked tab's colour again ---------- */
body .site-frame section.xt .xt-frame {
  background:
    radial-gradient(80% 60% at 50% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 75%),
    radial-gradient(70% 50% at 50% 100%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 75%),
    color-mix(in srgb, var(--accent) 5%, #fff) !important;
  border-color: color-mix(in srgb, var(--accent) 16%, rgb(0 0 0 / 0.06)) !important;
  transition: background 400ms ease, border-color 400ms ease;
}
/* the fade no longer masks the window, so its coloured glow shows under it */
.xt-panel .rd-wrap { -webkit-mask-image: none !important; mask-image: none !important; }

/* ---------- an aurora around the window: the tab's colour drifts round the rim and fades to white ---------- */
@property --xt-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
body .site-frame section.xt .xt-frame {
  isolation: isolate;
  background: #fff !important;
}
body .site-frame section.xt .xt-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  --t1: color-mix(in srgb, var(--accent) 34%, #fff);
  --t2: color-mix(in srgb, var(--accent) 14%, #fff);
  --t3: oklch(from var(--accent) 0.9 0.07 calc(h + 55));
  --t4: oklch(from var(--accent) 0.93 0.05 calc(h - 45));
  background:
    radial-gradient(75% 70% at 50% 55%, rgb(255 255 255 / 0.9) 30%, transparent 100%),
    conic-gradient(from var(--xt-a) at 50% 50%, var(--t1), var(--t3) 22%, #fff 38%, var(--t4) 55%, var(--t2) 72%, #fff 86%, var(--t1));
  animation: xt-aura 24s linear infinite;
  transition: opacity 400ms ease;
}
@keyframes xt-aura { to { --xt-a: 360deg; } }
@media (prefers-reduced-motion: reduce) {
  body .site-frame section.xt .xt-frame::before { animation: none; --xt-a: 200deg; }
}
/* softer: a light wash of the tab's colour, mostly white */
body .site-frame section.xt .xt-frame::before {
  --t1: color-mix(in srgb, var(--accent) 13%, #fff);
  --t2: color-mix(in srgb, var(--accent) 6%, #fff);
  --t3: oklch(from var(--accent) 0.965 0.025 calc(h + 55));
  --t4: oklch(from var(--accent) 0.975 0.018 calc(h - 45));
}
/* only the middle: a soft wash centred at the top and bottom edges, white towards the sides */
body .site-frame section.xt .xt-frame::before {
  animation: none;
  background:
    radial-gradient(45% 60% at 50% 0%, color-mix(in srgb, var(--accent) 14%, #fff), transparent 100%),
    radial-gradient(45% 40% at 50% 100%, color-mix(in srgb, var(--accent) 11%, #fff), transparent 100%),
    #fff;
}
/* the top stays white; the wash sits only at the bottom middle */
body .site-frame section.xt .xt-frame::before {
  background:
    radial-gradient(45% 40% at 50% 100%, color-mix(in srgb, var(--accent) 12%, #fff), transparent 100%),
    #fff;
}

/* a slimmer title bar; the height it gives up goes to the dashboard */
body .site-frame section.xt .xt-chrome { height: 32px !important; }
body .site-frame section.xt .xt-url { height: 22px !important; font-size: 11.5px; }
.xt-panel .rd-wrap { aspect-ratio: 1440 / 824 !important; }
.xt-panel .rd { height: 824px !important; }
/* the bar's items sit in the middle of the strip between the frame's edge and the window */
body .site-frame section.xt .xt-frame { padding-top: 0 !important; }
body .site-frame section.xt .xt-chrome { height: 40px !important; }
/* the caption floats inside the window with the same 16px gap on its sides and below it */
body .site-frame section.xt .xt-caption { left: 28px !important; right: 28px !important; bottom: -20px !important; }

/* ---------- caption: a light glass pill on the window's edge, with the tour's timer along its foot ---------- */
body .site-frame section.xt .xt-caption {
  overflow: hidden;
  padding: 10px 10px 12px 12px !important;
  border: 1px solid rgb(0 0 0 / 0.08);
  border-radius: 14px !important;
  background: rgb(255 255 255 / 0.86);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 18px 40px -20px rgb(0 0 0 / 0.28);
  color: #171717;
}
body .site-frame section.xt .xt-tile { box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.25), 0 2px 6px -2px color-mix(in srgb, var(--icon) 60%, transparent); }
body .site-frame section.xt .xt-text { color: #737373; }
body .site-frame section.xt .xt-more {
  gap: 6px;
  height: 30px !important;
  padding: 0 10px !important;
  background: transparent;
  color: #171717;
  font-weight: 500;
}
body .site-frame section.xt .xt-more span { transition: transform 180ms ease; }
body .site-frame section.xt .xt-more:hover { background: #f4f4f5; }
body .site-frame section.xt .xt-more:hover span { transform: translateX(3px); }
body .site-frame section.xt .xt-more:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.xt-prog {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  opacity: 0;
  transition: opacity 300ms ease;
}
.xt-prog.on { opacity: 1; }
.xt-prog b {
  display: block;
  height: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
}
@media (prefers-reduced-motion: reduce) { .xt-prog { display: none; } }
/* the pill takes a light wash of the tab's colour so it stands apart from the white window */
body .site-frame section.xt .xt-caption {
  border-color: color-mix(in srgb, var(--accent) 22%, transparent);
  background:
    linear-gradient(100deg, color-mix(in srgb, var(--accent) 13%, #fff) 0%, color-mix(in srgb, var(--accent) 5%, #fff) 55%, #fff 100%);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 18px 40px -20px color-mix(in srgb, var(--accent) 45%, rgb(0 0 0 / 0.3));
}
body .site-frame section.xt .xt-more:hover { background: color-mix(in srgb, var(--accent) 10%, #fff); }
/* graphite pill: near-black glass, white title, grey line, the tab's colour only in the icon and the timer */
body .site-frame section.xt .xt-caption {
  border-color: rgb(255 255 255 / 0.08);
  background: linear-gradient(180deg, rgb(44 44 48 / 0.94), rgb(24 24 27 / 0.96));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.08), 0 1px 2px rgb(0 0 0 / 0.1), 0 18px 40px -18px rgb(0 0 0 / 0.5);
  color: #fafafa;
}
body .site-frame section.xt .xt-text { color: #a1a1aa; }
body .site-frame section.xt .xt-more { color: #fafafa; }
body .site-frame section.xt .xt-more:hover { background: rgb(255 255 255 / 0.08); }
.xt-prog { background: rgb(255 255 255 / 0.08); }

/* an invisible bridge from the menu item down to its open menu, so the mouse can cross the gap */
header .nav-summary { position: relative; }
header .nav-dropdown[open] > .nav-summary::after {
  content: "";
  position: absolute;
  left: -24px;
  right: -24px;
  top: 100%;
  height: 22px;
}
/* Integrations, Services and Pricing get the same 34px pill as the menu items */
@media (min-width: 1024px) {
  header nav[aria-label="Primary"] > .primary-links > a.nav-link { min-height: 0 !important; height: 34px !important; padding: 7px 12px !important; }
}

/* ---------- footer, laid out like Dub's ---------- */
footer.xf { border-top: 1px solid #e5e5e5; background: #fff; color: #171717; font-family: var(--font-sans, inherit); }
.xf-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; max-width: 1240px; margin: 0 auto; padding: 56px 40px 40px; }
.xf-brand { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.xf-logo { display: inline-flex; color: #171717; }
.xf-logo .xee-wordmark-svg { height: 30px; width: auto; }
.xf-social { display: flex; gap: 14px; }
.xf-social a { display: grid; place-items: center; width: 24px; height: 24px; color: #262626; transition: color 150ms; }
.xf-social a:hover { color: #737373; }
.xf-social svg { width: 18px; height: 18px; }
.xf-cols { display: grid; grid-template-columns: repeat(4, minmax(150px, auto)); gap: 32px; }
.xf-stack { display: grid; align-content: start; gap: 32px; }
.xf-col h2 { margin: 0 0 12px; color: #171717; font-size: 14.5px; font-weight: 500; letter-spacing: 0; }
.xf-col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.xf-col a, .xf-more summary { display: inline-flex; align-items: center; gap: 8px; padding: 4px 0; color: #525252; font-size: 14.5px; text-decoration: none; transition: color 150ms; cursor: pointer; }
.xf-col a:hover, .xf-more summary:hover { color: #171717; }
.xf-tile { display: grid; place-items: center; flex: none; width: 16px; height: 16px; border-radius: 4px; background: var(--t); color: #fff; box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.08); }
.xf-tile svg { width: 11px; height: 11px; }
.xf-ext { width: 13px; height: 13px; color: #a3a3a3; }
.xf-more summary { list-style: none; }
.xf-more summary::-webkit-details-marker { display: none; }
.xf-more summary svg { width: 14px; height: 14px; transition: transform 150ms; }
.xf-more[open] summary svg { transform: rotate(180deg); }
.xf-more ul { margin: 4px 0 0; padding-left: 10px; border-left: 1px solid #eee; }
.xf-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1240px; margin: 0 auto; padding: 0 40px 40px; }
.xf-pill { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border: 1px solid #e5e5e5; border-radius: 8px; color: #404040; font-size: 13.5px; text-decoration: none; transition: border-color 150ms; }
.xf-pill:hover { border-color: #d4d4d4; }
.xf-pill i { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; }
.xf-bottom p { margin: 0; color: #737373; font-size: 13.5px; }
.xf a:focus-visible, .xf summary:focus-visible { outline: 2px solid #171717; outline-offset: 2px; border-radius: 4px; }
@media (max-width: 1024px) { .xf-in { grid-template-columns: 1fr; } .xf-brand { flex-direction: row; align-items: center; } }
@media (max-width: 720px) { .xf-in, .xf-bottom { padding-inline: 20px; } .xf-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; } }

/* a line between every pair of sections: the top of each spacer, but not under the hero and not where a rule already is */
body .site-frame .section-spacer { border-top: 1px solid #e5e5e5; }
body .site-frame section.isolate + .section-spacer,
body .site-frame .section-rule + .section-spacer { border-top: 0; }

/* the gallery covers the frame's side lines; draw them again in the empty stretch under its progress bar, so the frame runs on to the next section */
.fg[data-mode="3d"] {
  --xa: calc(100svh - 72px - 168px - 52px - 16px);
  --xh: min(510px, calc(var(--xa) * 0.85));
  --xe: calc(max(0px, calc(var(--xa) - var(--xh))) * 0.35);
}
.fg[data-mode="3d"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 3;
  width: min(1240px, 100%);
  height: calc(12px + var(--xe));
  transform: translateX(-50%);
  border-inline: 1px solid #e5e5e5;
  box-sizing: border-box;
  pointer-events: none;
}

/* a full-width line above the sections that follow each other with no spacer between them */
body .site-frame section.wl + section.wl,
body .site-frame section.pb-0,
body .site-frame section.sdk-integration { position: relative; }
body .site-frame section.wl + section.wl::before,
body .site-frame section.pb-0::before,
body .site-frame section.sdk-integration::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 2;
  width: 100vw;
  height: 1px;
  margin-left: -50vw;
  background: #e5e5e5;
  pointer-events: none;
}

body .site-frame section.pb-0 { padding-bottom: 40px !important; }
