@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/instrument-sans.ttf") format("truetype");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
:root {
  --yellow: #ffd600;
  --ink: #0b0b0b;
  --paper: #fff;
  --line: #e9ebef;
  --muted: #656c7b;
  --sidebar-width: 256px;
  --sidebar-paper: #faf9f6;
  /* Shared application layout: every route uses this frame and spacing scale. */
  --page-width: 1400px;
  --page-gutter: 32px;
  --page-top: 48px;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --grid-gap: var(--space-3);
  --card-padding: var(--space-3);
  --card-radius: 12px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    "Instrument Sans",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 14px;
  line-height: 1.5;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
button,
input {
  font: inherit;
}
button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 1px solid #d9dce1;
  border-radius: 10px;
  padding: 11px 14px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
  line-height: 1.4;
  transition:
    background 0.15s,
    border-color 0.15s;
}
button:hover,
.button:hover {
  background: #fafafa;
  border-color: #b9bdc5;
}
.button {
  background: var(--yellow);
  border-color: var(--yellow);
}
.button:hover {
  background: #f1ca00;
  border-color: #f1ca00;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
input {
  border: 1px solid #c9cdd4;
  border-radius: 8px;
  background: #fff;
  padding: 10px 12px;
  max-width: 100%;
  color: var(--ink);
}
input:focus-visible,
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid #b18c00;
  outline-offset: 4px;
}
input[type="range"] {
  accent-color: var(--ink);
  width: 100%;
  padding: 16px 0;
}
label {
  display: block;
  font-size: 14px;
  font-weight: 600;
}
label input {
  display: block;
  margin: 8px 0 13px;
  width: 100%;
}
.svg-definitions {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  min-height: 100vh;
}
aside {
  background: var(--sidebar-paper);
  border-right: 1px solid var(--line);
  position: sticky;
  top: 0;
  height: 100dvh;
  min-height: 492px;
  display: flex;
  flex-direction: column;
  padding: 24px 20px 0;
}
.brand {
  display: block;
  margin: 0 12px;
  width: 176px;
}
.brand img {
  display: block;
  width: 176px;
  max-width: 100%;
  height: auto;
}
nav {
  display: grid;
  gap: 6px;
  margin-top: 36px;
}
nav a {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 56px;
  padding: 15px 20px;
  font-size: 16px;
  border-radius: 11px;
  text-decoration: none;
  color: #111621;
  font-weight: 500;
  white-space: nowrap;
}
nav a[aria-current="page"] {
  background: #fff8d7;
  color: #0b0b0b;
}
nav a[aria-current="page"] .nav-icon {
  color: #8b7100;
}
nav a:hover {
  background: #fffbee;
}
.nav-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.account-menu {
  position: relative;
  margin: auto -20px 0;
  border-top: 1px solid var(--line);
  padding: 10px 20px max(10px, env(safe-area-inset-bottom));
}
.account-menu summary {
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  list-style: none;
  border-radius: 8px;
  min-height: 48px;
  padding: 6px 12px;
}
.account-menu summary::-webkit-details-marker {
  display: none;
}
.account-avatar {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f0f0f2;
  color: #111621;
  font-size: 16px;
  font-weight: 500;
}
.account-name {
  font-size: 16px;
  font-weight: 500;
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-chevron {
  width: 15px;
  height: 15px;
  margin-left: auto;
  flex-shrink: 0;
  transition: transform 0.15s;
}
.account-menu[open] .account-chevron {
  transform: rotate(180deg);
}
.account-popover {
  position: absolute;
  z-index: 5;
  left: 13px;
  right: 13px;
  bottom: calc(100% + 8px);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 8px 25px #1111110c;
  border-radius: 12px;
  padding: 10px;
}
.identity {
  display: block;
  font-size: 12px;
  color: var(--muted);
  overflow-wrap: anywhere;
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 5px;
}
.account-popover a,
.account-popover .quiet {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 8px;
  border: 0;
  border-radius: 6px;
  background: none;
  text-decoration: none;
  font-size: 14px;
  text-align: left;
  font-weight: 500;
}
.account-popover a:hover,
.account-popover .quiet:hover {
  background: #f7f7f7;
}
main {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-content: start;
  padding: var(--page-top) var(--page-gutter) var(--space-5);
  min-width: 0;
  width: 100%;
  max-width: var(--page-width);
  margin: 0 auto;
}
main > * {
  grid-column: 1 / -1;
  min-width: 0;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 1.3px;
  font-weight: 600;
  color: var(--muted);
}
.metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--grid-gap);
  margin-bottom: var(--space-5);
}
.metric {
  position: relative;
  min-height: 148px;
  padding: var(--card-padding);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.metric-available {
  background: #fffdf3;
  border-color: #f5df8b;
}
.metric-label {
  display: block;
  position: relative;
  z-index: 1;
  font-size: 16px;
  font-weight: 500;
  color: #555d6b;
  letter-spacing: -0.5px;
}
.metric strong {
  display: block;
  font-size: 57px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -3px;
  margin-top: 14px;
  font-variant-numeric: tabular-nums;
}
.metric-art {
  position: absolute;
  width: 68px;
  height: 68px;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}
.activation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--grid-gap);
}
.feature-card {
  position: relative;
  isolation: isolate;
  min-height: 303px;
  padding: var(--card-padding);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}
.feature-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 264px;
  max-width: 291px;
  width: 65%;
}
.feature-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff5c3;
  padding: 6px 11px;
  border-radius: 11px;
  font-size: 13px;
  line-height: 19px;
  font-weight: 700;
}
.feature-card h2 {
  margin: 20px 0 15px;
  font-size: 26px;
  line-height: 1.08;
  letter-spacing: -1.1px;
  font-weight: 700;
  white-space: nowrap;
}
.feature-card p {
  font-size: 15px;
  line-height: 1.4;
  color: var(--muted);
  letter-spacing: -0.15px;
  margin: 0 0 13px;
  white-space: nowrap;
}
.feature-button {
  margin-top: auto;
  min-height: 46px;
  padding: 14px 24px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 650;
  gap: 20px;
  white-space: nowrap;
}
.button-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.feature-illustration {
  position: absolute;
  right: 12px;
  top: 29px;
  width: 34%;
  max-width: 220px;
  height: calc(100% - 45px);
  object-fit: contain;
  pointer-events: none;
}
.feature-illustration.mascot-art {
  width: 42%;
  max-width: 300px;
  right: 4px;
}
.intro {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: var(--space-4);
}
h1 {
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.7px;
  font-weight: 650;
  margin: 0 0 8px;
}
h2 {
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: -0.4px;
  margin: 0 0 12px;
}
.intro p {
  color: var(--muted);
  margin: 0;
}

.card {
  padding: var(--card-padding);
  margin-bottom: var(--space-3);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.card p {
  margin: 12px 0;
  font-size: 14px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.section-heading span,
.muted {
  color: var(--muted);
  font-size: 12px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
th {
  text-align: left;
  font-weight: 600;
  color: var(--muted);
}
td,
th {
  padding: 14px 8px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
td small {
  display: block;
  color: var(--muted);
}
td button {
  padding: 5px 7px;
  font-size: 11px;
  margin: 2px;
}
.table-wrap {
  overflow-x: auto;
}
.badge {
  font-size: 11px;
  padding: 4px 8px;
  background: #f0eee9;
  border-radius: 6px;
  display: inline-block;
}
.copy-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin: 15px 0;
}
.copy-row input,
.copy-row code {
  flex: 1;
  min-width: 139px;
}
.copy-row code {
  padding: 14px;
  background: #f8f6f1;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow-wrap: anywhere;
  font-size: 12px;
}
.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--grid-gap);
}
.two-col .card {
  margin-bottom: var(--space-3);
}
ol {
  padding-left: 16px;
  font-size: 14px;
}
li {
  margin: 12px 0;
}
.tag {
  font-size: 10px;
  letter-spacing: 1.1px;
  background: #fff4b0;
  padding: 6px 9px;
  display: inline-block;
  border-radius: 4px;
  margin-bottom: 15px;
}
.notice,
#message {
  background: #fff8d6;
  border: 1px solid #e8d884;
  border-radius: 8px;
  padding: 15px;
  font-size: 13px;
}
#message[data-error="true"] {
  background: #fff0ed;
  border-color: #ecb4a9;
}
.quote {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  margin: 15px 0;
}
.quote strong {
  display: block;
  font-size: 33px;
  letter-spacing: -1px;
}
.quote label {
  width: 123px;
}
.quote label input {
  font-size: 20px;
}
.quote .muted {
  display: block;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
}
pre {
  font-size: 12px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #f8f6f1;
  border-radius: 8px;
  padding: 16px;
}
.key-row {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.key-row small {
  display: block;
  color: var(--muted);
}

footer {
  font-size: 11px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  margin-top: 33px;
  padding-top: 16px;
}
.signed-out {
  max-width: 492px;
  margin: 15vh auto;
  padding: 25px;
}
.signed-out img {
  margin-bottom: 33px;
}
[hidden] {
  display: none !important;
}
#message {
  position: fixed;
  z-index: 10;
  top: 16px;
  right: 21px;
  max-width: min(361px, calc(100vw - 33px));
  box-shadow: 0 4px 20px #11111108;
}
/* Keep the action cards balanced on wide displays rather than stretching
   the gap between compact copy and right-aligned illustrations. */
@media (min-width: 1001px) {
  .feature-card {
    min-height: 342px;
  }
  .feature-content {
    min-height: 288px;
  }
  .feature-illustration {
    width: 42%;
    max-width: 280px;
    right: 8px;
  }
  .feature-illustration.mascot-art {
    width: 56%;
    max-width: 390px;
    right: -16px;
  }
}
@media (max-width: 1250px) {
  :root {
    --sidebar-width: 220px;
  }
  aside {
    padding-left: 15px;
    padding-right: 15px;
  }
  .brand {
    margin-left: 9px;
    width: 164px;
  }
  nav a {
    padding-left: 15px;
    gap: 13px;
  }
  .account-menu {
    margin-left: -15px;
    margin-right: -15px;
    padding-left: 20px;
    padding-right: 20px;
  }
  :root {
    --page-gutter: 24px;
  }
  .metric {
    padding: 20px 18px;
  }
  .metric-label {
    font-size: 14px;
  }
  .metric strong {
    font-size: 49px;
  }
  .metric-art {
    width: 51px;
    height: 51px;
    right: 14px;
  }
  .feature-card {
    padding: 23px 20px;
  }
  .feature-card h2 {
    font-size: 22px;
    letter-spacing: -0.9px;
  }
  .feature-card p {
    font-size: 13px;
  }
  .feature-button {
    font-size: 13px;
    padding: 13px 18px;
    gap: 13px;
    min-height: 43px;
  }
  .feature-illustration {
    right: 4px;
    width: 39%;
  }
  .desktop-break {
    display: none;
  }
  .feature-card p {
    white-space: normal;
  }
  .feature-content {
    width: 67%;
    min-height: 288px;
  }
  .feature-card {
    min-height: 342px;
  }
}
@media (max-width: 1000px) {
  :root {
    --sidebar-width: 200px;
  }
  .brand {
    width: 152px;
  }
  .brand img {
    width: 152px;
  }
  nav a {
    font-size: 15px;
    padding-left: 14px;
    gap: 14px;
  }
  .account-menu {
    padding-left: 18px;
    padding-right: 18px;
  }
  :root {
    --page-top: 32px;
  }
  .metric {
    padding: 18px 15px;
    min-height: 127px;
  }
  .metric-label {
    font-size: 15px;
    letter-spacing: -0.3px;
  }
  .metric strong {
    font-size: 43px;
    margin-top: 15px;
  }
  .metric-art {
    width: 35px;
    height: 35px;
    top: auto;
    bottom: 20px;
    right: 15px;
    transform: none;
  }
  .activation-grid {
    grid-template-columns: 1fr;
    gap: var(--grid-gap);
  }
  .feature-card {
    min-height: 271px;
  }
  .feature-content {
    min-height: 223px;
    max-width: 291px;
  }
  .feature-card h2 {
    font-size: 25px;
  }
  .feature-card p {
    font-size: 14px;
  }
  .feature-illustration {
    width: 36%;
    right: 16px;
    top: 16px;
  }
  .two-col,
  .form-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 680px) {
  .shell {
    display: block;
  }
  aside {
    position: relative;
    height: auto;
    min-height: 0;
    padding: 22px 16px 14px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .brand {
    width: 152px;
    margin: 0;
  }
  .brand img {
    width: 152px;
  }
  nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    margin-top: 24px;
  }
  nav a {
    flex-direction: column;
    gap: 7px;
    padding: 11px 3px;
    font-size: 12px;
    min-height: 67px;
    border-radius: 9px;
  }
  .nav-icon {
    width: 21px;
    height: 21px;
  }
  .account-menu {
    position: absolute;
    right: 18px;
    top: 26px;
    bottom: auto;
    margin: 0;
    padding: 0;
    border: 0;
    width: auto;
  }
  .account-menu summary {
    gap: 8px;
    min-height: 36px;
    padding: 0;
  }
  .account-avatar {
    width: 34px;
    height: 34px;
    font-size: 16px;
  }
  .account-name {
    font-size: 14px;
    max-width: 67px;
  }
  .account-chevron {
    width: 14px;
    height: 14px;
    margin: 0;
  }
  .account-popover {
    top: 48px;
    bottom: auto;
    right: 0;
    left: auto;
    width: 230px;
  }
  :root {
    --page-gutter: 18px;
    --page-top: 24px;
    --grid-gap: 16px;
    --card-padding: 20px;
  }
  h1 {
    font-size: 25px;
  }
  .metrics {
    gap: var(--grid-gap);
    margin-bottom: var(--space-4);
  }
  .metric {
    min-height: 126px;
    padding: 18px 13px;
    border-radius: 10px;
  }
  .metric-label {
    font-size: 13px;
    min-height: 38px;
    line-height: 1.35;
    letter-spacing: -0.1px;
  }
  .metric strong {
    font-size: 41px;
    letter-spacing: -1.7px;
    margin-top: 6px;
  }
  .metric-art {
    display: none;
  }
  .feature-card {
    min-height: 360px;
    padding: 25px 23px;
    border-radius: 11px;
  }
  .feature-content {
    width: 100%;
    min-height: 308px;
    max-width: none;
  }
  .feature-tag {
    font-size: 14px;
    line-height: 20px;
    padding: 5px 10px;
    border-radius: 9px;
  }
  .feature-card h2 {
    font-size: 28px;
    line-height: 1.1;
    letter-spacing: -0.85px;
    margin: 23px 0 16px;
    white-space: normal;
  }
  .feature-card p {
    font-size: 16px;
    line-height: 1.5;
    max-width: 205px;
    margin-bottom: 20px;
  }
  .feature-button {
    font-size: 16px;
    min-height: 52px;
    padding: 13px 20px;
    gap: 18px;
  }
  .feature-illustration {
    width: 112px;
    height: 154px;
    right: 7px;
    top: auto;
    bottom: 46px;
  }
  .feature-illustration.mascot-art {
    width: 145px;
    max-width: 40%;
    right: 0;
  }
  .intro {
    align-items: flex-start;
    flex-direction: column;
  }
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 0;
  }
  .quote {
    gap: 16px;
  }
  .quote strong {
    font-size: 32px;
  }
  .copy-row code {
    min-width: 130px;
  }
}
@media (max-width: 360px) {
  .account-name {
    display: none;
  }
  .feature-card h2 {
    font-size: 25px;
  }
  .feature-card p {
    max-width: 170px;
    font-size: 15px;
  }
  .feature-illustration {
    width: 92px;
    right: 4px;
    bottom: 62px;
  }
  .feature-button {
    padding-left: 16px;
    padding-right: 16px;
    font-size: 15px;
    gap: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* Integration-type tabs and client-specific expandable setup guides. */
.integration-tabs {
  display: flex;
  gap: 28px;
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--space-3);
}
.integration-tabs [role="tab"] {
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  background: none;
  padding: 12px 2px;
  color: var(--muted);
  font-size: 14px;
}
.integration-tabs [aria-selected="true"] {
  color: var(--ink);
  border-bottom-color: var(--yellow);
}
.integrations-heading {
  margin-bottom: var(--space-3);
}
.integrations-heading h2,
.integration-api-page .intro h2 {
  font-size: 20px;
  margin: 0 0 8px;
  letter-spacing: -0.7px;
}
.integrations-heading p {
  color: var(--muted);
  font-size: 15px;
  margin: 0;
}
.client-list {
  display: grid;
  gap: var(--space-2);
}
.client-card {
  background: white;
  border: 1px solid #e3e5ea;
  border-radius: 12px;
  overflow: hidden;
}
.client-card summary {
  display: flex;
  align-items: center;
  gap: 16px;
  list-style: none;
  cursor: pointer;
  padding: var(--space-3);
}
.client-card summary::-webkit-details-marker {
  display: none;
}
.client-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: #f4f4f5;
}
.client-claude {
  background: #fbf0ec;
  color: #cc785c;
}
.client-gemini {
  background: #edf3ff;
  color: #3772d8;
}
.client-perplexity {
  background: #eaf5f4;
  color: #20808d;
}
.client-requirements {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 24px;
  padding-left: 60px;
  max-width: 900px;
}
.client-openai {
  background: #f0f2f5;
}
.client-logo {
  display: block;
  width: 23px;
  height: 23px;
  object-fit: contain;
  fill: currentColor;
  flex-shrink: 0;
}
.client-heading {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.client-heading strong {
  font-size: 17px;
  font-weight: 600;
}
.client-heading > span {
  font-size: 13px;
  color: var(--muted);
}
.client-chevron {
  width: 18px;
  height: 18px;
  margin-left: auto;
  flex-shrink: 0;
  color: var(--muted);
}
.client-card[open] .client-chevron {
  transform: rotate(180deg);
}
.client-body {
  border-top: 1px solid var(--line);
  padding: var(--card-padding);
}
.client-steps {
  list-style: none;
  counter-reset: setup;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 22px;
  max-width: 900px;
}
.client-steps > li {
  position: relative;
  padding-left: 60px;
  margin: 0;
  counter-increment: setup;
  font-size: 14px;
  line-height: 1.55;
  color: #34383f;
}
.client-steps > li strong {
  font-weight: 600;
  color: var(--ink);
}
.step-action {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.step-action .secondary-button {
  padding: 8px 12px;
  font-size: 13px;
}
.client-steps > li::before {
  content: counter(setup);
  position: absolute;
  left: 10px;
  top: 0;
  width: 25px;
  height: 25px;
  border: 1px solid #dfe1e6;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  color: var(--muted);
}
.setup-field {
  margin-top: 10px;
}
.setup-field > span {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 6px;
}
.setup-value {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  background: #fafafa;
  border: 1px solid #e2e4e9;
  border-radius: 8px;
  padding: 8px 10px 8px 14px;
}
.setup-value code {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  overflow-wrap: anywhere;
  white-space: normal;
}
.setup-value button {
  flex-shrink: 0;
  padding: 7px 10px;
  font-size: 12px;
  border: 0;
  background: white;
}
.setup-value .button-icon {
  width: 15px;
  height: 15px;
}
.client-prompt-action {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
}
.client-prompt-step > p {
  margin: 0;
  font: inherit;
  color: inherit;
}
.client-prompt-action button {
  background: var(--yellow);
  border-color: var(--yellow);
  padding: 11px 16px;
  gap: 10px;
  font-size: 13px;
  flex-shrink: 0;
}
.client-prompt-action .client-logo {
  width: 18px;
  height: 18px;
}
.client-prompt-action p,
.client-note {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}
.client-note {
  max-width: 840px;
  margin: 16px 0 0 60px;
}
.secondary-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid #dfe1e6;
  border-radius: 8px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
}
.secondary-button .client-logo {
  width: 18px;
  height: 18px;
}
.secondary-button:hover {
  background: #fafafa;
}
.integration-details {
  margin-top: 24px;
  font-size: 12px;
  color: var(--muted);
}
.integration-details summary {
  cursor: pointer;
  width: fit-content;
  font-weight: 500;
}
.integration-details p {
  line-height: 1.65;
  max-width: 760px;
}
@media (max-width: 680px) {
  .integration-tabs {
    margin-bottom: 24px;
  }
  .integration-tabs [role="tab"] {
    min-height: 44px;
  }
  .integrations-heading p {
    font-size: 14px;
  }
  .client-card summary {
    padding: 17px 15px;
    gap: 12px;
  }
  .client-icon {
    width: 38px;
    height: 38px;
    border-radius: 9px;
  }
  .client-heading strong {
    font-size: 16px;
  }
  .client-heading > span {
    font-size: 12px;
    line-height: 1.5;
  }
  .client-body {
    padding: 20px 16px;
  }
  .client-steps > li {
    padding-left: 34px;
    font-size: 13px;
  }
  .client-steps > li::before {
    left: 0;
  }
  .client-note {
    margin-left: 34px;
  }
  .setup-value {
    align-items: center;
    flex-direction: row;
    padding: 10px;
    gap: 8px;
  }
  .setup-value code {
    font-size: 11px;
  }
  .setup-value button {
    min-height: 44px;
  }
  .client-prompt-action {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .client-prompt-action button,
  .secondary-button {
    min-height: 44px;
  }
}

.setup-value.configuration {
  position: relative;
  display: block;
  padding: 18px;
}
.configuration pre {
  margin: 0;
  padding: 0 48px 0 0;
  background: none;
  overflow-x: auto;
  border: 0;
}
.configuration pre code {
  display: block;
  white-space: pre;
  overflow-wrap: normal;
  font-size: 13px;
  line-height: 1.6;
}
.configuration > button {
  position: absolute;
  top: 10px;
  right: 10px;
}
@media (max-width: 680px) {
  .setup-value.configuration {
    padding: 14px;
  }
  .configuration pre code {
    font-size: 11px;
  }
}

@media (max-width: 680px) {
  .client-requirements {
    padding-left: 34px;
  }
}

/* Activity and Billing reuse the shared page frame, cards and spacing scale. */
.activity-table {
  font-size: 14px;
  min-width: 640px;
  table-layout: fixed;
}
.activity-table th:first-child { width: 24%; }
.activity-table th:nth-child(2) { width: 26%; }
.activity-table th:nth-child(3) { width: 17%; }
.activity-table th:nth-child(4) { width: 13%; }
.activity-table th:nth-child(5) { width: 12%; }
.activity-table th:last-child { width: 8%; }
.activity-table th {
  font-size: 12px;
  padding: 15px 24px;
  background: #faf9f6;
  white-space: nowrap;
}
.activity-table td {
  padding: 18px 24px;
  vertical-align: middle;
}
.activity-source-group { display: flex; align-items: center; gap: 12px; }
.activity-source-icon {
  width: 34px;
  height: 34px;
  padding: 8px;
  border: 1px solid #e9e7df;
  border-radius: 9px;
  background: #faf9f6;
  color: #777b82;
  flex-shrink: 0;
}
.activity-table td small,
.activity-table time {
  display: block;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
  margin-top: 5px;
}
.activity-source {
  font-weight: 600;
}
.activity-charge {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.status-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
  background: #f1f2f4;
  color: #4d5561;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
}
.status-badge[data-state="partial"] {
  background: #fff4cc;
  color: #775b00;
}
.status-badge[data-state="failed"],
.status-badge[data-state="unavailable"] {
  background: #fceeea;
  color: #994633;
}
.empty-state {
  text-align: center;
  padding: 48px 24px;
}
.empty-icon {
  width: 36px;
  height: 36px;
  color: #858b95;
  margin-bottom: 16px;
}
.empty-state h3 {
  font-size: 18px;
  margin: 0 0 8px;
}
.empty-state p {
  color: var(--muted);
  max-width: 400px;
  margin: 0 auto 24px;
}
.table-wrap:focus-visible {
  outline: 3px solid #b18c00;
  outline-offset: 4px;
}
/* Compact activity table. Details are available on hover, focus or tap. */
.status-detail {
  display: inline-block;
  position: relative;
}
.status-detail > button {
  cursor: help;
  border: 0;
}
.status-tooltip {
  display: none;
  position: absolute;
  z-index: 4;
  top: calc(100% + 8px);
  left: 0;
  width: 260px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #22252b;
  color: white;
  box-shadow: 0 4px 18px #0002;
  font-size: 12px;
  line-height: 1.6;
  font-weight: 400;
}
.status-detail:focus-within .status-tooltip { display: block; }
@media (hover: hover) {
  .status-detail:hover .status-tooltip { display: block; }
}
@media (min-width: 1280px) {
  #activity-table-wrap { overflow: visible; }
}
.activity-pagination {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px 24px;
  font-size: 12px;
  color: var(--muted);
}
.activity-pagination label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 400;
}
.activity-pagination select {
  font: inherit;
  color: var(--ink);
  background: white;
  border: 1px solid #d9dce1;
  border-radius: 8px;
  padding: 8px;
  min-height: 36px;
}
.activity-pagination select:focus-visible {
  outline: 3px solid #b18c00;
  outline-offset: 4px;
}
.pagination-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}
.pagination-actions button {
  padding: 6px 10px;
  min-height: 36px;
}
#activity-load-error { font-size: 13px; color: #994633; }
@media (max-width: 1000px) {
  .status-tooltip {
    position: static;
    width: 220px;
    margin-top: 8px;
  }
}
@media (max-width: 680px) {
  .activity-pagination { flex-wrap: wrap; gap: 16px; }
  .pagination-actions { width: 100%; justify-content: flex-end; }
  .activity-pagination select,
  .pagination-actions button { min-height: 44px; }
}

/* A history row reads its existing retained response; it never starts a job. */
.activity-card { overflow: hidden; padding: 0; }
.activity-expandable { cursor: pointer; }
.activity-expandable:hover { background: #fdfcf8; }
.activity-expandable[data-expanded="true"] { background: #fffcf2; box-shadow: inset 3px 0 #efd36b; }
.activity-expandable[data-expanded="true"] > td { border-bottom-color: transparent; }
.activity-table .response-toggle-cell { text-align: right; padding-right: 20px; padding-left: 8px; }
.response-toggle {
  padding: 5px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  min-width: 30px;
  min-height: 30px;
}
.response-toggle:hover { border-color: #e9e7df; background: white; }
.response-toggle svg { width: 15px; height: 15px; color: var(--muted); }
.response-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.activity-table .activity-response-row > td { padding: 0 24px 20px; background: #fffcf2; }
.activity-response {
  min-width: 0;
  border: 1px solid #eae7da;
  border-radius: 9px;
  background: #fff;
  padding: 16px;
}
.response-toolbar { display: flex; align-items: center; gap: 10px; }
.response-toolbar > strong { flex: 1; font-size: 13px; font-weight: 600; }
.response-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid #eae7da;
  border-radius: 7px;
  background: #faf9f6;
  color: #7a7567;
  font: 12px ui-monospace, monospace;
  flex-shrink: 0;
}
.response-toolbar button { padding: 6px 10px; font-size: 12px; min-height: 32px; }
.activity-response .response-note { margin: 8px 0 0 38px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.response-note:empty { display: none; }
.activity-response[data-state="unavailable"] { background: #ffffffb3; border-style: dashed; }
.activity-response[data-state="unavailable"] .response-icon { color: #858b95; background: #f5f5f5; border-color: #ececec; }
.activity-response pre {
  margin: 14px 0 0;
  padding: 16px;
  background: #fafafa;
  border: 1px solid var(--line);
  border-radius: 6px;
  max-height: 420px;
  overflow: auto;
  max-width: 100%;
  font-size: 12px;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.activity-response pre:focus-visible { outline: 3px solid #b18c00; outline-offset: 3px; }
@media (max-width: 680px) {
  .response-toggle, .response-toolbar button { min-height: 44px; }
  .activity-pagination { padding: 16px 20px; }
}


/* Minimal balance page and native, focus-contained billing dialogs. */
.billing-overview { padding: 0; }
.billing-balance-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
}
.balance-label { color: var(--muted); font-size: 14px; font-weight: 500; }
.billing-balance-value { display: flex; align-items: baseline; gap: 10px; margin-top: 8px; }
.billing-balance-value strong { font-size: 40px; line-height: 1.15; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.billing-balance-value span { font-size: 16px; }
.billing-balance-row p { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.billing-balance-row > .button { min-width: 110px; }
.billing-setting-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 28px; border-top: 1px solid var(--line); }
.billing-setting-row > div { display: flex; align-items: center; gap: 12px; }
.billing-setting-row strong { font-size: 14px; font-weight: 500; }
.billing-setting-row button { font-size: 13px; padding: 8px 14px; }
.billing-faq { margin-top: 32px; }
.billing-faq h2 { margin: 0 0 16px; font-size: 17px; font-weight: 600; }
.billing-faq-items { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.billing-faq details { padding: 0 24px; background: #fff; }
.billing-faq details + details { border-top: 1px solid var(--line); }
.billing-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 60px; padding: 18px 0; list-style: none; cursor: pointer; font-size: 14px; font-weight: 500; }
.billing-faq summary::-webkit-details-marker { display: none; }
.billing-faq summary::after { content: ""; width: 8px; height: 8px; flex-shrink: 0; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); margin: -4px 3px 0; color: var(--muted); }
.billing-faq details[open] summary::after { transform: rotate(225deg); margin-top: 4px; }
.billing-faq summary:focus-visible { outline-offset: -3px; border-radius: 4px; }
.billing-faq p { max-width: 780px; margin: 0 0 20px; font-size: 14px; line-height: 1.7; color: var(--muted); }
/* Billing dialogs follow the reference: 20px insets, neutral controls and a
   single vertical rhythm. Stripe keeps ownership of every card-detail field. */
.billing-dialog {
  width: min(640px, calc(100vw - 32px));
  max-height: calc(100dvh - 40px);
  overflow: auto;
  border: 1px solid #dedede;
  border-radius: 16px;
  padding: 20px;
  color: #1a1a1a;
  font-family: Arial, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  background: #fff;
  box-shadow: 0 12px 28px #0002, 0 2px 6px #0001;
}
.billing-dialog::backdrop { background: #0006; }
.billing-success-icon { display: none; }
.billing-dialog.billing-dialog-success { width: min(440px, calc(100vw - 32px)); padding: 32px; text-align: center; }
.billing-dialog-success .dialog-heading { flex-direction: column; gap: 20px; }
.billing-dialog-success .dialog-heading h2 { font-size: 24px; font-weight: 600; }
.billing-dialog-success .dialog-close { display: none; }
.billing-dialog-success .billing-success-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #eaf7ef; color: #168447; }
.billing-success-icon svg { width: 32px; height: 32px; }
.billing-success p { margin: 16px 0 24px; color: #6b6b6b; line-height: 1.6; }
.billing-success > button { min-width: 110px; background: #1a1a1a; color: #fff; border-color: #1a1a1a; }
body:has(.billing-dialog[open]) { overflow: hidden; }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.dialog-heading h2 { font-size: 20px; line-height: 1.4; font-weight: 500; letter-spacing: 0; margin: 0; }
.dialog-close { width: 24px; height: 28px; flex-shrink: 0; padding: 0; border: 0; border-radius: 4px; background: transparent; font-size: 29px; line-height: 1; font-weight: 300; color: #1a1a1a; }
.dialog-description { font-size: 17px; font-weight: 400; color: #6b6b6b; margin: 20px 0; line-height: 1.5; }
.topup-presets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.topup-presets button { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 8px; padding: 16px 14px; min-height: 92px; border: 1px solid #e8e8e8; border-radius: 16px; background: #fff; font-size: 18px; font-weight: 500; text-align: left; }
.topup-presets button:disabled { opacity: 1; cursor: default; }
.topup-presets strong { font-size: 17px; font-weight: 600; white-space: nowrap; }
.topup-presets span { font-size: 14px; font-weight: 400; color: #6b6b6b; }
.topup-presets [aria-pressed="true"] { background: #fff; border: 2px solid #000; padding: 15px 13px; box-shadow: none; }
.topup-custom { margin: 20px 0; }
.topup-custom > label[for="quantity-number"] { display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 16px; font-weight: 400; }
.topup-custom input[type="number"] { width: 130px; margin: 0; font-size: 18px; }
.topup-custom input[type="range"], .topup-custom .range-labels { display: none; }
.topup-order-summary { margin-top: 16px; border: 1px solid #e8e8e8; border-radius: 16px; padding: 20px; }
.topup-order-summary > div { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 17px; }
.topup-order-summary > div + div { margin-top: 16px; }
.topup-order-summary > .summary-total { border-top: 1px solid #e8e8e8; padding-top: 16px; margin-top: 16px; }
.topup-order-summary strong { font-size: 18px; line-height: 1.4; font-weight: 600; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.discount-label { display: inline-flex; align-items: center; gap: 6px; }
.discount-info { position: relative; display: inline-block; }
.discount-info .discount-info-trigger { display: inline-flex; align-items: center; justify-content: center; min-height: 24px; width: 24px; padding: 0; border: 0; background: transparent; box-shadow: none; font-size: 17px; font-weight: 400; cursor: pointer; color: #6b6b6b; line-height: 1; border-radius: 50%; }
.discount-info .discount-info-trigger:focus-visible { outline: 2px solid #000; outline-offset: 3px; }
.discount-tooltip { display: none; position: absolute; z-index: 2; bottom: calc(100% + 10px); left: -80px; width: 240px; max-width: 65vw; padding: 10px 12px; border-radius: 8px; background: #111; color: #fff; font-size: 14px; line-height: 1.45; box-shadow: 0 3px 10px #0002; }
.discount-info[data-open="true"] .discount-tooltip, .discount-info:focus-within .discount-tooltip { display: block; }
@media (hover: hover) { .discount-info:hover .discount-tooltip { display: block; } }
.dialog-payment-note, .billing-terms { font-size: 16px; line-height: 1.5; color: #6b6b6b; margin: 16px 0 0; }
.dialog-payment-note:empty { display: none; }
.dialog-actions { display: flex; justify-content: flex-end; align-items: center; gap: 10px; border: 0; padding: 0; margin-top: 20px; }
.billing-dialog .dialog-actions button { min-height: 36px; border: 0; border-radius: 12px; padding: 6px 12px; background: #f3f3f3; color: #1a1a1a; font-size: 17px; font-weight: 400; gap: 6px; }
.billing-dialog .dialog-actions .button { background: #1a1a1a; color: #fff; }
.billing-dialog .dialog-actions .button:hover { background: #333; }
.billing-dialog .dialog-actions button:disabled { background: #f8f8f8; color: #929292; opacity: 1; }
.billing-dialog input { border-color: #dedede; border-radius: 10px; font-weight: 400; }
.billing-dialog :is(button,input,summary):focus-visible { outline: 2px solid #1456b8; outline-offset: 3px; }
.billing-dialog .billing-consent { align-items: flex-start; font-size: 15px; font-weight: 400; color: #6b6b6b; gap: 10px; margin: 20px 0 0; }
.billing-dialog .billing-consent input { display: block; flex: 0 0 20px; width: 20px; height: 20px; min-height: 20px; margin: 1px 0 0; padding: 0; accent-color: #287fe3; }
.payment-picker { position: relative; margin-top: 16px; }
.payment-picker > summary, #billing-payment-card { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 1px solid #ccc; border-radius: 12px; padding: 10px 14px; min-height: 50px; font-size: 18px; cursor: pointer; }
.payment-picker > summary::-webkit-details-marker { display: none; }
.picker-chevron { width: 9px; height: 9px; border-bottom: 1.5px solid #777; border-right: 1.5px solid #777; transform: rotate(45deg); margin: -4px 8px 0 0; }
.payment-picker[open] .picker-chevron { transform: rotate(225deg); margin-top: 4px; }
.payment-picker-options { position: relative; z-index: 3; margin-top: 6px; padding: 12px 20px; border: 1px solid #dedede; border-radius: 18px; box-shadow: 0 8px 24px #0002, 0 1px 4px #0001; background: #fff; max-height: 240px; overflow: auto; }
.billing-dialog .payment-picker-options button { border: 0; background: transparent; padding: 0; border-radius: 4px; width: 100%; justify-content: flex-start; text-align: left; color: #1a1a1a; font-size: 17px; font-weight: 400; }
.billing-dialog .payment-picker-options button:hover { background: #fafafa; }
.billing-dialog .payment-picker-option { padding: 0 0 12px; margin-bottom: 12px; border-bottom: 1px solid #e8e8e8; }
.card-option-info { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.card-option-info small { display: block; width: 100%; margin-left: 40px; color: #6b6b6b; font-size: 15px; }
.card-label { display: flex; align-items: center; gap: 10px; }
.card-brand { display: inline-flex; position: relative; align-items: center; justify-content: center; width: 30px; height: 29px; flex-shrink: 0; border-radius: 5px; background: #1d2038; color: #fff; font-size: 7px; font-weight: 600; }
.card-brand-mastercard::before, .card-brand-mastercard::after { content: ""; position: absolute; width: 14px; height: 14px; border-radius: 50%; top: 7px; }
.card-brand-mastercard::before { left: 5px; background: #eb001b; }
.card-brand-mastercard::after { right: 5px; background: #f79e1b; opacity: .94; }
.card-default { color: #1456b8; border: 1px solid #cbdcff; border-radius: 20px; padding: 0 7px; font-size: 13px; }
.card-selected { color: #1456b8; font-size: 22px; margin-left: auto; }
#billing-payment-card { margin-top: 16px; cursor: default; }
#billing-payment-view #stripe-payment-element { margin-top: 20px; }
#billing-setup-view .dialog-actions { margin-top: 40px; }
.auto-topup-dialog { max-width: 640px; }
.auto-topup-dialog form > label { margin-top: 20px; font-size: 17px; font-weight: 400; }
.auto-topup-dialog label input { margin-bottom: 0; }
.auto-topup-note { font-size: 14px; color: #6b6b6b; line-height: 1.5; margin: 24px 0 0; }
#auto-topup-quote { font-size: 16px; margin: 16px 0; }
.auto-topup-dialog .dialog-actions { margin-top: 36px; }
.dialog-error, [data-dialog-message] { font-size: 14px; color: #994633; line-height: 1.5; margin: 16px 0 0; }
[data-dialog-message][data-error="false"] { color: #526041; }
@media (max-width: 680px) {
  .billing-balance-row { padding: 22px 20px; gap: 16px; }
  .billing-balance-value { flex-wrap: wrap; gap: 4px 8px; }
  .billing-balance-value strong { font-size: 34px; }
  .billing-balance-value span { font-size: 14px; }
  .billing-balance-row > .button { min-width: 88px; padding: 11px 16px; }
  .billing-setting-row { padding: 18px 20px; }
  .billing-dialog { padding: 20px; max-height: calc(100dvh - 24px); }
  .topup-presets { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .topup-presets button { min-height: 96px; }
  .dialog-actions { flex-wrap: wrap; }
  .topup-order-summary { padding: 16px; }
  .topup-order-summary > div { font-size: 16px; }
  .payment-picker-options { padding: 12px; }
}

/* Activity controls share the application's form sizing and table frame. */
.activity-filters { display: flex; align-items: end; flex-wrap: wrap; gap: 16px; padding: 20px 24px; border-bottom: 1px solid var(--border, #eceef1); }
.activity-filters label { display: grid; gap: 6px; color: var(--muted); font-size: 12px; margin: 0; }
.activity-filters select { min-width: 150px; height: 40px; padding: 0 32px 0 12px; border: 1px solid #e3e5e9; border-radius: 8px; background: white; color: #17191d; font: inherit; font-size: 13px; }
#activity-clear { height: 40px; margin-left: auto; background: transparent; font-size: 13px; }
.activity-table { min-width: 800px; }
.activity-table th button { border: 0; padding: 0; border-radius: 3px; background: transparent; color: inherit; font: inherit; display: inline-flex; gap: 10px; align-items: center; }
.activity-table th button span { color: #969ba4; }
.activity-table th[aria-sort] button { color: #17191d; }
.activity-table time { margin: 0; font-size: 13px; }
.activity-source-icon { color: #26292d; padding: 7px; }
@media (max-width: 640px) {
  .activity-filters { padding: 16px; gap: 12px; }
  .activity-filters label { flex: 1 1 120px; }
  .activity-filters select { min-width: 0; width: 100%; }
  #activity-clear { margin-left: 0; }
}
#activity-table-wrap { position: relative; }

/* One inset, vertically centered arrow for all native dropdowns. */
select,
.activity-filters select,
.activity-pagination select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("/assets/select-chevron.svg");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px 16px;
  padding-right: 40px;
  cursor: pointer;
}
select:focus-visible { outline: 3px solid #b18c00; outline-offset: 3px; }
.activity-pagination select { min-width: 72px; }
@media (forced-colors: active) {
  select, .activity-filters select, .activity-pagination select { appearance: auto; background-image: none; }
}
.profile-heading { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; }
.profile-heading h2 { margin: 0; }
.profile-heading p { margin: 4px 0 0; }
.profile-avatar { display: grid; place-items: center; width: 48px; height: 48px; flex-shrink: 0; border-radius: 50%; background: #fff8d7; color: #746000; font-size: 20px; font-weight: 600; }
.profile-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 800px; }
.profile-fields label { display: grid; gap: 8px; margin: 0; font-size: 13px; font-weight: 500; }
.profile-fields input { width: 100%; height: 44px; }
.profile-fields input[readonly] { background: #faf9f6; color: var(--muted); border-color: var(--line); }
.profile-card .profile-hint { margin: 12px 0 0; font-size: 12px; }
.profile-actions { display: flex; margin-top: 24px; }
.profile-details { color: var(--muted); margin-top: 24px; font-size: 13px; }
.profile-details summary { cursor: pointer; width: fit-content; }
.profile-details > div { max-width: 800px; padding-top: 8px; }
.billing-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.billing-consent { display: flex; align-items: flex-start; gap: 10px; margin-top: 20px; color: var(--muted); font-size: 13px; }
.billing-consent input { flex: 0 0 16px; width: 16px; height: 16px; min-height: 16px; padding: 0; margin: 3px 0 0; accent-color: #947400; }
.payment-method-row { display: flex; gap: 12px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.payment-method-row > div { margin-right: auto; }
.payment-method-row p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.purchase-history { margin-top: 24px; }
.purchase-history summary { cursor: pointer; }
#billing-modal-status { margin: 20px 0 0; padding: 12px; background: #fff9df; border-radius: 8px; }
#billing-modal-status[data-error="true"] { background: #fff1ec; color: #9c3524; }
#stripe-payment-element, #stripe-setup-element { min-height: 180px; }
@media (max-width: 680px) {
  .profile-fields { grid-template-columns: 1fr; gap: 20px; }
  .profile-heading { align-items: flex-start; }
  .payment-method-row { flex-wrap: wrap; }
  .payment-method-row > div { flex-basis: 100%; }
}
