/* AUTO-GENERATED by scripts/sync-django-styles.mjs. Edit original CSS instead. */
@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap");

/* Source: src/styles/legacy-site.css */
:root {
  --ink: #172532;
  --text: #263944;
  --muted: #637b85;
  --line: #e0e9e8;
  --paper: #f7f9f7;
  --coral: #ec7959;
  --teal: #198579;
  --panel: #fff;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font:
    15px/1.75 "DM Sans",
    system-ui,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  font-family: "Space Grotesk", system-ui, sans-serif;
  color: var(--ink);
  letter-spacing: -0.055em;
}
a {
  color: inherit;
  text-decoration: none;
}
a:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 4px;
}
.container {
  max-width: 1210px;
  width: calc(100% - 56px);
  margin: 0 auto;
}
.skip-link {
  position: absolute;
  top: -100px;
  left: 15px;
  background: #fff;
  padding: 8px 16px;
  z-index: 50;
}
.skip-link:focus {
  top: 10px;
}
.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  position: sticky;
  top: 0;
  z-index: 20;
}
.header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  gap: 36px;
}
.site-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font:
    700 23px "Space Grotesk",
    system-ui,
    sans-serif;
  letter-spacing: -0.055em;
  color: var(--ink);
  white-space: nowrap;
}
.brand-dot,
.footer-brand span {
  color: var(--coral);
}
.site-nav {
  display: flex;
  gap: 30px;
  margin-left: auto;
}
.site-nav a,
.login-link {
  font-size: 12px;
  font-weight: 700;
  color: #4c636e;
}
.site-nav a:hover,
.login-link:hover,
.text-link:hover {
  color: var(--coral);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 12px 20px;
  font:
    700 12px "DM Sans",
    sans-serif;
  min-height: 45px;
  transition:
    transform 0.18s,
    box-shadow 0.18s;
}
.button:hover {
  transform: translateY(-1px);
}
.button-dark {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 8px 20px rgba(23, 37, 50, 0.12);
}
.button-dark span {
  color: #ffab93;
  font-size: 19px;
}
.button-outline {
  border-color: #aebdc1;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.65);
}
.hero {
  background:
    radial-gradient(
      circle at 85% 40%,
      rgba(254, 226, 204, 0.5),
      transparent 43%
    ),
    linear-gradient(120deg, #eaf5f2, #eff7f4 50%, #faf5ed);
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: 65px;
  align-items: center;
  padding-top: 100px;
  padding-bottom: 107px;
}
.eyebrow {
  font:
    700 10px/1.5 ui-monospace,
    Menlo,
    Consolas,
    monospace;
  letter-spacing: 0.16em;
  color: #387f78;
}
.signal {
  display: inline-block;
  width: 19px;
  height: 2px;
  background: var(--coral);
  vertical-align: middle;
  margin-right: 11px;
}
.hero h1 {
  font-size: clamp(47px, 5.7vw, 78px);
  line-height: 1.11;
  margin: 26px 0;
  letter-spacing: -0.075em;
}
.hero h1 em {
  font-style: normal;
  color: #e47455;
}
.hero-copy > p {
  font-size: 17px;
  color: #526b75;
  max-width: 580px;
  line-height: 1.85;
}
.hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 34px 0 24px;
}
.hero-points {
  display: flex;
  gap: 17px;
  flex-wrap: wrap;
  color: #367f71;
  font-size: 11px;
  font-weight: 700;
}
.delivery-preview {
  background: #fff;
  border: 1px solid #dfebe7;
  border-radius: 16px;
  box-shadow: 0 30px 70px rgba(25, 64, 67, 0.1);
  padding: 28px;
  transform: rotate(-1deg);
}
.preview-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.preview-kicker,
.preview-live {
  font:
    700 10px ui-monospace,
    monospace;
  letter-spacing: 0.1em;
  color: #8498a0;
}
.preview-live {
  letter-spacing: 0;
  color: #438679;
}
.preview-live i {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #52b59b;
  margin-right: 6px;
}
.preview-event {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px 0;
}
.event-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: #eff6f3;
  border: 1px solid #dceae5;
  border-radius: 12px;
  color: #2a8c83;
  font-size: 24px;
}
.preview-event > div:nth-child(2) {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.preview-event small {
  font:
    700 9px ui-monospace,
    monospace;
  letter-spacing: 0.1em;
  color: #869ba3;
}
.preview-event strong {
  font:
    700 15px "Space Grotesk",
    sans-serif;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.preview-event span:not(.step-check):not(.status-pill) {
  font-size: 11px;
  color: var(--muted);
}
.step-check {
  color: #188579;
}
.preview-connector {
  border-left: 2px dashed #d2dfdb;
  height: 14px;
  margin: -5px 0 -5px 21px;
}
.preview-event.success .event-icon {
  background: #e4f7ee;
  color: #188b65;
}
.status-pill {
  background: #e8f8ef;
  color: #14865c;
  padding: 5px 9px;
  border-radius: 30px;
  font-size: 10px;
  font-weight: 700;
}
.preview-caption {
  font-size: 10px;
  color: #8b9da4;
  margin: 11px 0 0;
}
.section {
  padding: 92px 0;
}
.section-intro {
  max-width: 680px;
  margin-bottom: 42px;
}
.section-intro h2 {
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.2;
  margin: 15px 0;
}
.section-intro p {
  color: var(--muted);
  font-size: 16px;
}
.section-intro code {
  font-size: 0.75em;
  color: #e67558;
  background: #fff0e9;
  padding: 2px 7px;
  border-radius: 5px;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.feature {
  background: #fff;
  border: 1px solid var(--line);
  padding: 31px 25px;
  border-radius: 13px;
}
.feature-symbol {
  display: block;
  color: #dc7355;
  font:
    700 11px ui-monospace,
    monospace;
  letter-spacing: 0.07em;
  margin-bottom: 29px;
}
.feature h3,
.steps-grid h3 {
  font-size: 19px;
  margin-bottom: 12px;
}
.feature p,
.steps-grid p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
}
.steps-section {
  background: #fff;
  border-top: 1px solid var(--line);
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}
.steps-grid > div {
  border-top: 1px solid var(--line);
  padding-top: 19px;
}
.step-num {
  color: #d66e53;
  font:
    700 12px ui-monospace,
    monospace;
}
.steps-grid h3 {
  margin: 20px 0 8px;
}
.cta-section {
  background: var(--ink);
  color: #e7f0ef;
  padding: 64px 0;
}
.cta-inner {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: center;
}
.cta-inner h2 {
  color: #fff;
  font-size: clamp(30px, 3.5vw, 45px);
  line-height: 1.2;
  max-width: 670px;
  margin: 12px 0 0;
}
.cta-inner .eyebrow {
  color: #94c3bc;
}
.button-light {
  background: #fff;
  color: var(--ink);
  white-space: nowrap;
}
.site-footer {
  background: #101e28;
  color: #aabec7;
  padding: 55px 0 65px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 45px;
}
.footer-brand {
  font:
    700 25px "Space Grotesk",
    sans-serif;
  letter-spacing: -0.06em;
  color: #fff;
}
.footer-inner p {
  font-size: 12px;
  margin-top: 8px;
}
.footer-inner nav {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  flex-wrap: wrap;
  font-size: 12px;
}
.footer-inner a:hover {
  color: #fff;
}
.page-hero {
  padding: 82px 0 61px;
  background: linear-gradient(110deg, #e9f3ef, #f8f6f1);
  border-bottom: 1px solid var(--line);
}
.narrow {
  max-width: 870px;
}
.page-hero h1 {
  font-size: clamp(45px, 5.3vw, 66px);
  margin: 17px 0;
}
.page-hero p {
  font-size: 17px;
  color: #556f77;
  max-width: 680px;
}
.updated {
  font-size: 11px;
  color: #80949b;
}
.page-body {
  display: grid;
  grid-template-columns: 225px minmax(0, 720px);
  gap: 95px;
  align-items: start;
  padding-top: 72px;
  padding-bottom: 110px;
}
.page-aside {
  position: sticky;
  top: 115px;
}
.page-aside strong {
  font:
    700 10px ui-monospace,
    monospace;
  letter-spacing: 0.13em;
  color: #93a5ad;
}
.page-aside nav {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 22px;
}
.page-aside a {
  font-size: 12px;
  color: #647c86;
}
.page-aside a:hover {
  color: var(--coral);
}
.page-copy section {
  padding-bottom: 30px;
  margin-bottom: 33px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 105px;
}
.page-copy h2 {
  font-size: 25px;
  margin-bottom: 15px;
}
.page-copy p {
  font-size: 14px;
  color: #526a73;
  line-height: 1.9;
}
.text-link {
  color: #197f77;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 700;
}
.legal-note {
  font-size: 11px;
  color: #758b92;
}
@media (max-width: 1050px) {
  .header-inner {
    gap: 20px;
  }
  .site-nav {
    gap: 17px;
  }
  .hero-grid {
    gap: 25px;
  }
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .page-body {
    gap: 45px;
  }
}
@media (max-width: 750px) {
  .container {
    width: calc(100% - 36px);
  }
  .site-header {
    position: relative;
  }
  .header-inner {
    min-height: 75px;
    flex-wrap: wrap;
    padding: 12px 0;
  }
  .site-brand {
    font-size: 20px;
  }
  .site-nav {
    order: 3;
    width: 100%;
    justify-content: center;
    padding: 6px 0 0;
    border-top: 1px solid var(--line);
  }
  .header-actions {
    margin-left: auto;
  }
  .header-cta {
    display: none;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    padding: 62px 0 68px;
  }
  .hero h1 {
    font-size: clamp(44px, 9vw, 65px);
  }
  .delivery-preview {
    transform: none;
  }
  .section {
    padding: 64px 0;
  }
  .feature-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .steps-grid {
    gap: 18px;
  }
  .cta-inner,
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-inner nav {
    gap: 17px;
  }
  .page-body {
    grid-template-columns: 1fr;
    padding-top: 40px;
  }
  .page-aside {
    position: static;
  }
  .page-aside nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
  }
  .page-hero {
    padding: 65px 0 45px;
  }
}
@media (max-width: 400px) {
  .header-inner {
    gap: 10px;
  }
  .header-actions {
    gap: 10px;
  }
  .login-link {
    font-size: 11px;
  }
  .hero h1 {
    font-size: 42px;
  }
  .button {
    width: 100%;
  }
  .delivery-preview {
    padding: 18px;
  }
  .preview-event strong {
    font-size: 13px;
  }
}

/* Contact & production pricing */
.contact-panel {
  border: 1px solid #dce7e5;
  border-radius: 16px;
  background: white;
  padding: 28px;
  margin: 26px 0;
}
.contact-form {
  display: grid;
  gap: 19px;
  margin-top: 22px;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid #cbd9df;
  border-radius: 8px;
  background: #fff;
  color: #172532;
  font: inherit;
}
.contact-form textarea {
  resize: vertical;
  min-height: 135px;
}
.contact-form label small {
  color: #a64232;
}
.contact-form .button {
  border: 0;
  cursor: pointer;
  justify-self: start;
}
.contact-alt {
  font-size: 13px;
  color: #627780;
  margin-top: 20px;
}
.contact-honeypot {
  position: absolute;
  left: -10000px;
  height: 1px;
  overflow: hidden;
}
.contact-success {
  border-radius: 9px;
  background: #e8f5ed;
  color: #16745f;
  padding: 15px;
}
.contact-error {
  border-radius: 9px;
  background: #fff0ee;
  color: #a23e34;
  padding: 15px;
}
.pricing-grid .pricing-price {
  font:
    700 clamp(27px, 3vw, 35px)/1.2 "Space Grotesk",
    sans-serif;
  color: #172532;
  margin: 18px 0;
}
.pricing-grid .pricing-price small {
  font-size: 13px;
  font-weight: 500;
  color: #617580;
}
.featured-price {
  border-color: #cfdddd !important;
  background: #f6fbf9;
}
.pricing-footnote {
  font-size: 12px;
  color: #657781;
  margin: 21px 0;
}
.pricing-footnote a {
  color: #148575;
  text-decoration: underline;
}
@media (max-width: 680px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .contact-panel {
    padding: 19px;
  }
}

/* Product explanation: readable without account or JavaScript. */
.product-intro {
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.intro-cards,
.explainer-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.intro-cards article,
.explainer-cards article {
  padding: 27px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.intro-cards h3,
.explainer-cards h3 {
  font-size: 21px;
  line-height: 1.25;
  margin: 14px 0 11px;
}
.intro-cards p,
.explainer-cards p {
  font-size: 14px;
  color: #556e77;
  margin: 0;
}
.intro-more {
  display: flex;
  gap: 23px;
  flex-wrap: wrap;
  margin: 26px 0 0;
  font-size: 13px;
}
.explainer-hero h1 {
  font-size: clamp(40px, 5vw, 65px);
  line-height: 1.12;
}
.explainer-body {
  max-width: 1060px;
  padding-bottom: 70px;
}
.explainer-jump {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding: 25px 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 48px;
}
.explainer-jump a {
  font-size: 12px;
  font-weight: 700;
  color: #367971;
  border: 1px solid var(--line);
  background: #fff;
  padding: 7px 12px;
  border-radius: 999px;
}
.explainer-jump a:hover {
  border-color: var(--teal);
}
.explainer-section {
  padding: 0 0 56px;
  margin: 0 0 56px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 106px;
}
.explainer-section h2 {
  font-size: clamp(29px, 3.3vw, 44px);
  line-height: 1.2;
  max-width: 850px;
  margin: 15px 0 23px;
}
.explainer-section p {
  font-size: 16px;
  color: #546c76;
  max-width: 890px;
}
.explainer-section code {
  padding: 2px 5px;
  background: #e9f2ef;
  border-radius: 4px;
  overflow-wrap: anywhere;
  color: #275e58;
}
.explainer-flow {
  display: flex;
  align-items: stretch;
  gap: 12px;
  margin: 34px 0 22px;
}
.explainer-flow > div {
  min-width: 0;
  flex: 1;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.explainer-flow > div.flow-focus {
  background: #e8f5ef;
  border-color: #a9d8c7;
}
.explainer-flow small {
  font:
    700 10px ui-monospace,
    monospace;
  letter-spacing: 0.07em;
  color: #62827b;
}
.explainer-flow strong {
  font:
    700 21px "Space Grotesk",
    sans-serif;
  color: var(--ink);
  letter-spacing: -0.04em;
}
.explainer-flow span {
  font-size: 12px;
  color: #5c737c;
}
.explainer-flow > b {
  align-self: center;
  color: #df7655;
  font-size: 30px;
}
.explainer-note {
  border-left: 3px solid var(--coral);
  background: #fff4ed;
  padding: 15px 19px;
  border-radius: 0 9px 9px 0;
}
.explainer-cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 26px 0;
}
.explainer-cards article {
  background: white;
}
.explainer-list {
  counter-reset: explainer;
  margin: 27px 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
  max-width: 850px;
}
.explainer-list li {
  counter-increment: explainer;
  position: relative;
  padding: 16px 20px 16px 60px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  font-size: 14px;
  color: #526a73;
}
.explainer-list li:before {
  content: counter(explainer, decimal-leading-zero);
  position: absolute;
  left: 20px;
  top: 16px;
  font:
    700 12px ui-monospace,
    monospace;
  color: #d96c4c;
}
.explainer-list strong {
  color: #203745;
}
.explainer-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 13px;
  margin: 24px 0;
}
.explainer-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 580px;
  font-size: 13px;
}
.explainer-table th,
.explainer-table td {
  padding: 13px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.explainer-table th {
  background: #ebf3f0;
  color: #2e5d56;
}
.explainer-table tr:last-child td {
  border-bottom: 0;
}
.explainer-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.explainer-faq {
  display: grid;
  gap: 12px;
}
.explainer-faq details {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 17px 22px;
}
.explainer-faq summary {
  cursor: pointer;
  font-weight: 700;
  color: #203745;
}
.explainer-faq p {
  font-size: 14px;
  margin: 14px 0 0;
}
@media (max-width: 750px) {
  .intro-cards,
  .explainer-cards {
    grid-template-columns: 1fr;
  }
  .explainer-jump {
    margin-bottom: 35px;
  }
  .explainer-section {
    padding-bottom: 40px;
    margin-bottom: 40px;
  }
  .explainer-flow {
    flex-direction: column;
  }
  .explainer-flow > b {
    transform: rotate(90deg);
    line-height: 1;
  }
  .explainer-flow > div {
    width: 100%;
  }
}

/* Keep Django's header and typography, but prevent navigation overflow on narrow screens. */
@media (max-width: 750px) {
  .public-site .site-nav {
    flex-wrap: wrap;
    column-gap: 15px;
    row-gap: 7px;
  }
  .public-site .site-nav a {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
  }
  .public-site .header-inner {
    align-items: center;
  }
}
@media (max-width: 420px) {
  .public-site .site-nav {
    column-gap: 10px;
  }
  .public-site .site-nav a {
    font-size: 11px;
  }
}


/* Source: src/styles/legacy-contact.css */
.contact-hero {
  background: linear-gradient(120deg, #e8f3ef 0%, #f5f8f5 60%, #fbf5eb 100%);
  border-bottom: 1px solid var(--line);
  padding: 86px 0 82px;
}
.contact-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 72px;
  align-items: center;
}
.contact-hero h1 {
  max-width: 770px;
  font-size: clamp(42px, 5.6vw, 70px);
  line-height: 1.1;
  letter-spacing: -0.07em;
  margin: 18px 0 22px;
}
.contact-hero-grid > div > p {
  max-width: 650px;
  color: #506973;
  line-height: 1.8;
  font-size: 16px;
}
.contact-hero-actions {
  display: flex;
  align-items: center;
  gap: 13px;
  flex-wrap: wrap;
  margin-top: 29px;
}
.contact-hero-aside {
  background: #fff;
  border: 1px solid #d8e7e1;
  border-radius: 18px;
  padding: 32px;
  box-shadow: 0 18px 48px rgba(26, 65, 61, 0.065);
}
.contact-aside-label {
  display: block;
  color: #327d73;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin-bottom: 21px;
}
.contact-hero-aside h2 {
  font-size: 24px;
  line-height: 1.28;
  letter-spacing: -0.04em;
  margin-bottom: 16px;
}
.contact-hero-aside p,
.contact-hero-note {
  font-size: 13px;
  line-height: 1.85;
  color: #506973;
}
.contact-hero-note {
  border-top: 1px solid #e4eeea;
  margin-top: 19px;
  padding-top: 18px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.contact-hero-note > span:first-child {
  font-size: 19px;
  color: #248b7a;
}
.contact-main {
  padding-top: 83px;
  padding-bottom: 112px;
}
.contact-topline {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 29px;
}
.contact-topline h2 {
  font-size: clamp(31px, 3vw, 43px);
  margin: 12px 0 0;
}
.contact-topline p {
  max-width: 430px;
  color: #627780;
  font-size: 14px;
  margin: 0;
}
.contact-topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.contact-topic {
  background: #fff;
  border: 1px solid #dce8e4;
  border-radius: 15px;
  padding: 25px 25px 29px;
  display: flex;
  flex-direction: column;
  min-height: 240px;
}
.contact-topic-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid #c8dcd3;
  border-radius: 12px;
  background: #f1f8f4;
  color: #237a70;
  font:
    700 11px ui-monospace,
    monospace;
  margin-bottom: 22px;
}
.contact-topic h3 {
  font-size: 19px;
  letter-spacing: -0.035em;
  margin-bottom: 7px;
}
.contact-topic p {
  font-size: 13px;
  line-height: 1.8;
  color: #647b83;
  margin-bottom: 19px;
}
.contact-topic a {
  font-weight: 700;
  font-size: 12px;
  color: #287d74;
  margin-top: auto;
}
.contact-topic a:hover,
.contact-detail-card > a:hover {
  color: var(--coral);
}
.contact-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(270px, 0.7fr);
  gap: 24px;
  margin-top: 42px;
  scroll-margin-top: 120px;
  align-items: start;
}
.contact-form-column {
  min-width: 0;
}
.contact-form-column .contact-panel {
  margin: 0;
  background: #fff;
  padding: 38px 38px 36px;
  border: 1px solid #dbe8e4;
  border-radius: 17px;
  box-shadow: 0 12px 38px rgba(24, 65, 66, 0.035);
}
.contact-panel h2 {
  font-size: clamp(25px, 2.7vw, 36px);
  margin-bottom: 9px;
}
.contact-panel > p {
  color: #617780;
  line-height: 1.85;
  font-size: 14px;
}
.contact-form {
  margin-top: 26px;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  background: #fbfdfb;
  border: 1px solid #cbdcd7;
  border-radius: 9px;
  font: inherit;
  outline: none;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: #32877c;
  box-shadow: 0 0 0 3px rgba(50, 135, 124, 0.13);
}
.contact-form .button {
  min-width: 180px;
  cursor: pointer;
}
.contact-side-column {
  display: grid;
  gap: 20px;
}
.contact-detail-card {
  padding: 27px 25px;
  background: #f1f7f3;
  border: 1px solid #d8e6df;
  border-radius: 15px;
  overflow-wrap: anywhere;
}
.contact-detail-card h3 {
  font-size: 21px;
  margin: 14px 0;
}
.contact-detail-card p {
  font-size: 13px;
  color: #5c737a;
  line-height: 1.8;
}
.contact-detail-card > a:not(.contact-address) {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  border-top: 1px solid #d5e4de;
  padding: 12px 0;
  color: #256f68;
}
.contact-address {
  font-size: 13px;
  color: #176e68;
  text-decoration: underline;
  text-underline-offset: 4px;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.contact-alt {
  display: none;
}
.contact-form select {
  appearance: auto;
}
@media (max-width: 930px) {
  .contact-hero-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .contact-hero-aside {
    max-width: 650px;
  }
  .contact-workspace {
    grid-template-columns: 1fr;
  }
  .contact-side-column {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 680px) {
  .contact-hero {
    padding: 55px 0 57px;
  }
  .contact-hero h1 {
    font-size: 43px;
  }
  .contact-hero-aside {
    padding: 23px;
  }
  .contact-main {
    padding: 54px 0 75px;
  }
  .contact-topline {
    display: block;
  }
  .contact-topline p {
    margin-top: 12px;
  }
  .contact-topic-grid,
  .contact-side-column {
    grid-template-columns: 1fr;
  }
  .contact-topic {
    min-height: 0;
  }
  .contact-form-column .contact-panel {
    padding: 25px 20px;
  }
  .contact-form .button {
    width: 100%;
  }
}


/* Source: src/styles/legacy-console.css */
:root {
  --ink: #172532;
  --ink2: #273e4b;
  --muted: #6e8390;
  --line: #e2e9ec;
  --bg: #f6f8f7;
  --surface: #fff;
  --coral: #ed7657;
  --teal: #158576;
  --soft: #eef6f3;
  --shadow: 0 10px 35px rgba(30, 51, 63, 0.045);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    14px/1.6 "DM Sans",
    system-ui,
    sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
input,
button,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
}
h1,
h2,
h3 {
  font-family: "Space Grotesk", system-ui, sans-serif;
  letter-spacing: -0.045em;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
pre,
code,
.kicker,
.hero-eyebrow,
.topbar-eyebrow {
  font-family: ui-monospace, Menlo, Consolas, monospace;
}
code {
  overflow-wrap: anywhere;
}
.skip {
  position: absolute;
  top: -100px;
  left: 8px;
  background: white;
  padding: 10px;
  z-index: 50;
}
.skip:focus {
  top: 8px;
}
.auth-brand,
.console-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}
.auth-mark {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #eff3ef;
  color: var(--ink);
  font:
    bold 26px "Space Grotesk",
    sans-serif;
  letter-spacing: -3px;
  padding-right: 4px;
}
.auth-mark span {
  color: var(--coral);
}
.auth-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 30%, #f2e4d5, transparent 38%),
    linear-gradient(120deg, #eaf3f0, #f8f6f2);
}
.auth-page > .auth-brand {
  position: relative;
  margin: 34px clamp(24px, 5vw, 90px);
  z-index: 1;
}
.auth-layout {
  display: grid;
  grid-template-columns: 1fr 460px;
  gap: 70px;
  align-items: center;
  max-width: 1270px;
  margin: 0 auto;
  padding: 65px 38px 115px;
  min-height: calc(100vh - 110px);
}
.auth-intro {
  max-width: 650px;
}
.eyebrow,
.small-kicker,
.kicker,
.hero-eyebrow,
.topbar-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
  color: var(--coral);
}
.auth-intro h1 {
  font-size: clamp(51px, 5.7vw, 79px);
  line-height: 1.08;
  margin: 23px 0;
  letter-spacing: -0.075em;
}
.auth-intro em {
  font-style: normal;
  color: var(--coral);
}
.auth-intro p {
  font-size: 18px;
  color: #536b77;
  max-width: 520px;
  line-height: 1.8;
}
.auth-points {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 35px;
  font-size: 12px;
  color: #3e7d71;
  font-weight: 700;
}
.auth-card {
  background: white;
  border: 1px solid #e1ebe7;
  border-radius: 18px;
  padding: 38px;
  box-shadow: 0 25px 75px rgba(40, 70, 70, 0.1);
}
.auth-card h2 {
  font-size: 31px;
  line-height: 1.22;
  margin: 12px 0;
}
.subtext {
  color: var(--muted);
  margin-bottom: 25px;
  font-size: 13px;
}
.field,
.card-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 16px;
}
.field input,
.card-form input,
.hero-side select {
  width: 100%;
  height: 44px;
  padding: 0 13px;
  border: 1px solid #d7e1e5;
  background: white;
  color: var(--ink);
  border-radius: 8px;
  outline: none;
  transition: border 0.15s;
}
.field input:focus,
.card-form input:focus,
.hero-side select:focus {
  border-color: #238e83;
  box-shadow: 0 0 0 3px #dbf0e9;
}
.primary-action,
.action-button,
.test-button {
  border: 0;
  background: var(--ink);
  color: white;
  border-radius: 8px;
  padding: 12px 19px;
  font-size: 12px;
  font-weight: 700;
}
.primary-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 49px;
  margin-top: 20px;
}
.primary-action span {
  font-size: 22px;
  color: #ffae95;
}
.auth-switch {
  margin: 25px 0 13px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}
.auth-switch a,
.back-link {
  color: var(--teal);
  font-weight: 700;
}
.back-link {
  font-size: 11px;
  display: block;
  text-align: center;
}
.form-error,
.inline-error {
  color: #af4539;
  background: #fff0e9;
  border: 1px solid #ffd5c7;
  border-radius: 8px;
  padding: 11px 14px;
  font-size: 12px;
  margin-bottom: 14px;
}
.field-error {
  color: #b64f3c;
  font-size: 11px;
}
.console-shell {
  display: grid;
  grid-template-columns: 234px minmax(0, 1fr);
  min-height: 100vh;
}
.console-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background: #172532;
  color: #c0d0da;
  display: flex;
  flex-direction: column;
}
.console-brand {
  padding: 29px 23px;
  border-bottom: 1px solid #2a4050;
  color: #f1f7f6;
  font-size: 15px;
  letter-spacing: 0.025em;
}
.console-brand strong {
  display: flex;
  flex-direction: column;
  font-size: 13px;
  line-height: 1.1;
  letter-spacing: 0.07em;
}
.console-brand small {
  font-size: 9px;
  color: #86a0b1;
  letter-spacing: 0.21em;
  margin-top: 5px;
}
.side-label {
  padding: 29px 23px 10px;
  font:
    700 9px ui-monospace,
    monospace;
  letter-spacing: 0.15em;
  color: #8199a7;
}
.sidebar-workspace {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 12px 29px;
  padding: 11px;
  background: #263b4b;
  border: 1px solid #385263;
  border-radius: 9px;
  font-weight: 700;
  font-size: 12px;
}
.sidebar-workspace small {
  display: block;
  font-weight: 400;
  color: #9bb2c0;
}
.workspace-avatar {
  background: #efbea8;
  border-radius: 7px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: #54392e;
  font-size: 18px;
}
.console-nav {
  padding: 0 12px;
  flex: 1;
}
.console-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  font-size: 13px;
  border-radius: 8px;
}
.console-nav a:hover,
.console-nav a.current {
  background: #283e4f;
  color: white;
}
.console-nav a span {
  margin-left: 5px;
}
.console-sidebar-bottom {
  padding: 19px 22px;
  border-top: 1px solid #2a4050;
}
.account-email {
  display: block;
  font-size: 10px;
  overflow-wrap: anywhere;
  color: #9ab4c2;
}
.console-sidebar-bottom button {
  background: none;
  border: 0;
  color: #e5f4f2;
  padding: 8px 0;
  font-size: 12px;
}
.console-topbar {
  height: 76px;
  background: white;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 clamp(22px, 4vw, 64px);
  position: sticky;
  top: 0;
  z-index: 5;
}
.console-topbar > div:first-child {
  display: flex;
  flex-direction: column;
}
.topbar-eyebrow {
  font-size: 9px;
  color: var(--muted);
  margin-bottom: 4px;
}
.topbar-links {
  display: flex;
  align-items: center;
  gap: 23px;
  font-size: 12px;
  color: #56717f;
  font-weight: 700;
}
.topbar-links button {
  background: none;
  border: 0;
  color: inherit;
}
.console-main {
  max-width: 1510px;
  margin: auto;
  padding: 40px clamp(22px, 4vw, 64px) 60px;
}
.console-hero {
  background: linear-gradient(120deg, #e8f1ef 0%, #eef3ef 60%, #f9e8dc 100%);
  border: 1px solid #e0ece5;
  border-radius: 14px;
  padding: 34px 37px;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: center;
  scroll-margin-top: 95px;
}
.console-hero h1 {
  font-size: clamp(30px, 3.5vw, 48px);
  margin: 10px 0 5px;
  line-height: 1.2;
}
.console-hero h1 span {
  color: var(--coral);
}
.console-hero p {
  color: #57717c;
  margin: 0;
}
.hero-side {
  max-width: 250px;
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 14px;
}
.hero-side form {
  max-width: 240px;
}
.hero-side label {
  display: block;
  font-size: 10px;
  color: #607a84;
  margin-bottom: 5px;
}
.hero-side select {
  height: 36px;
  font-size: 11px;
}
.pill {
  background: #fff;
  border: 1px solid #e0e7e8;
  border-radius: 30px;
  padding: 6px 12px;
  font-size: 11px;
  white-space: nowrap;
}
.pill i {
  width: 6px;
  height: 6px;
  background: #36ac82;
  display: inline-block;
  border-radius: 50%;
  margin-right: 5px;
}
.secret-panel {
  margin-top: 23px;
  padding: 24px 28px;
  border-radius: 12px;
  background: #eaf5ef;
  border: 1px solid #baddc9;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}
.secret-panel h2 {
  margin: 6px 0 3px;
  font-size: 22px;
}
.secret-panel p {
  margin: 0;
  color: #59786c;
  font-size: 12px;
}
.chip {
  color: #16826c;
  font:
    700 9px ui-monospace,
    monospace;
  letter-spacing: 0.12em;
}
.secret-row {
  display: flex;
  gap: 9px;
  max-width: 100%;
  flex: 1;
  min-width: 250px;
}
.secret-row code {
  background: #18332e;
  color: #e5fff4;
  border-radius: 8px;
  padding: 12px;
  flex: 1;
  max-width: 100%;
  word-break: break-all;
  font-size: 11px;
}
.copy-btn,
.copy-code {
  background: #fff;
  border: 1px solid #bdcfc9;
  border-radius: 8px;
  padding: 9px 13px;
  color: #2b7163;
  font-size: 11px;
  font-weight: 700;
}
.dismiss-link {
  font-size: 12px;
  color: #187762;
  font-weight: 700;
}
.toast {
  margin: 17px 0;
  background: #e4f4eb;
  border: 1px solid #bcdcc8;
  border-radius: 9px;
  color: #2c7961;
  padding: 12px 17px;
  font-size: 12px;
}
.inline-error {
  margin: 17px 0;
}
.setup-section {
  margin: 45px 0 29px;
  scroll-margin-top: 95px;
}
.section-line,
.card-head,
.integration-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.section-line h2 {
  margin: 6px 0 0;
  font-size: 24px;
}
.section-line .muted {
  font-size: 11px;
}
.muted {
  color: var(--muted);
}
.setup-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
  margin-top: 21px;
}
.setup-step {
  border: 1px solid var(--line);
  background: white;
  border-radius: 11px;
  padding: 22px 22px 19px;
  box-shadow: var(--shadow);
  min-width: 0;
  transition:
    transform 0.18s,
    border-color 0.18s;
}
.setup-step:hover {
  transform: translateY(-2px);
  border-color: #87bdb7;
}
.step-index {
  font:
    700 12px ui-monospace,
    monospace;
  color: #8e9da5;
}
.step-state {
  float: right;
  color: #6d8b91;
  font-size: 10px;
}
.done-icon {
  color: #168d72;
  font-weight: 800;
}
.todo-icon {
  color: var(--coral);
  font-weight: 800;
}
.setup-step h3 {
  font-size: 19px;
  margin: 21px 0 7px;
}
.setup-step p {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 19px;
}
.step-link {
  font-size: 11px;
  font-weight: 700;
  color: var(--teal);
}
.dashboard-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.content-card,
.integration-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  scroll-margin-top: 100px;
  min-width: 0;
}
.content-card {
  padding: 24px;
}
.card-head {
  align-items: start;
  margin-bottom: 22px;
}
.card-head h2,
.integration-head h2 {
  margin: 7px 0 5px;
  font-size: 24px;
}
.card-head p,
.integration-head p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.count {
  font-size: 10px;
  color: #56717e;
  background: var(--soft);
  border: 1px solid #e0ece8;
  padding: 5px 9px;
  border-radius: 20px;
  white-space: nowrap;
}
.card-form {
  background: #f7f9f9;
  padding: 17px;
  border-radius: 9px;
  border: 1px solid #e7edef;
  margin-bottom: 18px;
}
.card-form .form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.card-form label {
  font-size: 11px;
  margin-bottom: 12px;
  color: #4c6470;
}
.card-form input {
  height: 41px;
  font-size: 12px;
}
.action-button {
  padding: 10px 15px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.action-button span {
  font-size: 17px;
  color: #fcb097;
}
.item-list {
  display: flex;
  flex-direction: column;
}
.list-item {
  padding: 13px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--line);
}
.item-icon {
  width: 34px;
  height: 34px;
  background: #f0f4f2;
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: #198477;
  flex: none;
}
.key-icon {
  background: #faf0ea;
  color: #c97852;
}
.item-main {
  flex: 1;
  min-width: 0;
}
.item-main strong {
  display: block;
  font-size: 12px;
}
.item-main span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  color: var(--muted);
  max-width: 300px;
}
.item-main small {
  display: block;
  color: #9aaeb5;
  font-size: 10px;
}
.item-main code {
  font-size: 9px;
  overflow-wrap: anywhere;
}
.state {
  font-size: 10px;
  padding: 4px 7px;
  border-radius: 16px;
  white-space: nowrap;
}
.state-active {
  background: #eaf8f1;
  color: #168a70;
}
.state-muted {
  background: #f0f2f4;
  color: #81929a;
}
.revoke-form button {
  border: 1px solid #ebd8d5;
  color: #bb6b60;
  background: #fff;
  border-radius: 6px;
  padding: 4px 7px;
  font-size: 10px;
}
.empty-state {
  padding: 30px 8px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}
.integration-card {
  padding: 27px;
  margin-top: 22px;
}
.integration-head {
  align-items: flex-start;
  margin-bottom: 20px;
}
.test-button {
  background: #e9f5f1;
  color: #197d69;
  border: 1px solid #d4e7df;
  white-space: nowrap;
}
.example-window {
  border-radius: 10px;
  background: #142634;
  color: #c3e4df;
  overflow: hidden;
}
.code-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 11px 15px;
  background: #203846;
  border-bottom: 1px solid #35505e;
  font:
    700 10px ui-monospace,
    monospace;
}
.code-topline i {
  width: 7px;
  height: 7px;
  background: #e4a885;
  border-radius: 50%;
  display: inline-block;
  margin-right: 4px;
}
.code-topline i:nth-child(2) {
  background: #e4cd95;
}
.code-topline i:nth-child(3) {
  background: #92cbad;
}
.copy-code {
  background: #284b55;
  color: #d8f5ee;
  border: 1px solid #4a6d76;
  padding: 4px 11px;
}
.example-window pre {
  margin: 0;
  padding: 24px;
  overflow-x: auto;
  max-width: 100%;
  font:
    12px/1.8 ui-monospace,
    monospace;
  white-space: pre;
}
.code-caption {
  color: var(--muted);
  font-size: 11px;
  margin: 11px 0 0;
}
.empty-code {
  padding: 40px;
  background: #f6f9f8;
  border: 1px dashed #d3e4dd;
  border-radius: 8px;
  text-align: center;
  color: var(--muted);
}
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 23px 0;
}
.stats-row > div {
  background: #fff;
  border: 1px solid var(--line);
  padding: 20px 22px;
  border-radius: 10px;
}
.stats-row span {
  display: block;
  color: var(--muted);
  font:
    700 10px ui-monospace,
    monospace;
  letter-spacing: 0.055em;
}
.stats-row strong {
  display: block;
  font:
    700 29px "Space Grotesk",
    sans-serif;
  margin-top: 8px;
}
.activity-card {
  padding: 24px;
}
.activity-row {
  display: flex;
  align-items: center;
  gap: 18px;
  border-top: 1px solid var(--line);
  padding: 14px 6px;
}
.activity-row:hover {
  background: #fafcfb;
}
.activity-status {
  text-transform: capitalize;
  font:
    700 10px ui-monospace,
    monospace;
  padding: 6px 10px;
  min-width: 88px;
  text-align: center;
  border-radius: 20px;
  background: #eef2f4;
  color: #68808f;
}
.status-delivered {
  background: #e3f5ed;
  color: #128364;
}
.status-failed {
  background: #fff0e9;
  color: #bf6245;
}
.status-delivering {
  background: #e6f3f8;
  color: #3e8198;
}
.activity-title {
  flex: 1;
  min-width: 0;
}
.activity-title strong {
  display: block;
  font-size: 12px;
}
.activity-title small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}
.activity-date {
  font-size: 11px;
  color: var(--muted);
}
.activity-arrow {
  color: var(--teal);
}
.console-footer {
  border-top: 1px solid var(--line);
  margin-top: 35px;
  padding: 23px 0;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
}
.console-footer a {
  color: var(--teal);
  font-weight: 700;
}
.event-page {
  max-width: 950px;
  margin: 0 auto;
  padding: 30px 24px 80px;
}
.event-back {
  margin: 28px 0;
  font-size: 12px;
  color: var(--teal);
}
.event-detail-card {
  padding: 34px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.event-title-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}
.event-title-row h1 {
  font-size: 35px;
}
.event-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 25px 0;
}
.event-facts div {
  background: #f7f9f9;
  border-radius: 8px;
  padding: 15px;
  min-width: 0;
}
.event-facts dt {
  font-size: 10px;
  color: var(--muted);
}
.event-facts dd {
  margin: 6px 0 0;
  font:
    11px ui-monospace,
    monospace;
  overflow-wrap: anywhere;
}
.event-detail-card h2 {
  font-size: 20px;
  margin: 28px 0 13px;
}
.event-json {
  background: #182c3b;
  color: #d8eceb;
  padding: 18px;
  border-radius: 10px;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.attempt {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 8px;
}
.attempt > div {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}
.attempt small {
  font-size: 10px;
  color: var(--muted);
}
.attempt p {
  color: #ad6547;
  font-size: 11px;
}
@media (max-width: 1120px) {
  .auth-layout {
    grid-template-columns: 1fr 420px;
    gap: 30px;
  }
  .dashboard-two-col {
    grid-template-columns: 1fr;
  }
  .console-main {
    padding: 32px 30px 55px;
  }
}
@media (max-width: 790px) {
  .auth-layout {
    grid-template-columns: 1fr;
    padding-top: 25px;
  }
  .auth-intro h1 {
    font-size: 48px;
  }
  .auth-intro p {
    font-size: 15px;
  }
  .auth-card {
    max-width: 540px;
  }
  .console-shell {
    grid-template-columns: 1fr;
  }
  .console-sidebar {
    position: static;
    height: auto;
    display: block;
    padding: 0;
  }
  .console-brand {
    padding: 14px 22px;
    border: 0;
  }
  .console-sidebar .side-label,
  .sidebar-workspace,
  .console-nav,
  .console-sidebar-bottom {
    display: none;
  }
  .console-topbar {
    height: 65px;
    top: 0;
  }
  .setup-grid {
    grid-template-columns: 1fr;
  }
  .setup-step h3 {
    margin: 12px 0 5px;
  }
  .console-hero {
    padding: 24px;
    align-items: flex-start;
  }
  .stats-row {
    grid-template-columns: 1fr 1fr;
  }
  .event-facts {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 520px) {
  .auth-page > .auth-brand {
    margin: 22px;
  }
  .auth-layout {
    padding: 18px 19px 65px;
  }
  .auth-card {
    padding: 25px;
  }
  .auth-intro h1 {
    font-size: 40px;
  }
  .console-main {
    padding: 20px 15px 50px;
  }
  .console-topbar {
    padding: 0 15px;
  }
  .console-hero {
    display: block;
  }
  .hero-side {
    align-items: flex-start;
    margin-top: 20px;
  }
  .section-line .muted {
    display: none;
  }
  .section-line h2 {
    font-size: 22px;
  }
  .integration-head {
    display: block;
  }
  .test-button {
    margin-top: 17px;
  }
  .activity-date {
    display: none;
  }
  .stats-row > div {
    padding: 15px;
  }
  .stats-row strong {
    font-size: 23px;
  }
  .secret-row {
    min-width: 0;
    flex-direction: column;
  }
  .secret-panel {
    padding: 20px;
  }
  .event-page {
    padding: 20px 12px;
  }
  .event-detail-card {
    padding: 20px;
  }
  .auth-points {
    gap: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

.project-create {
  width: 100%;
  max-width: 240px;
  font-size: 11px;
  color: #526d77;
}
.project-create summary {
  cursor: pointer;
  font-weight: 700;
  color: #267b6d;
  list-style: none;
  text-align: right;
}
.project-create summary::-webkit-details-marker {
  display: none;
}
.project-create[open] {
  background: #fff;
  border: 1px solid #d7e6df;
  border-radius: 9px;
  padding: 12px;
}
.project-create[open] summary {
  margin-bottom: 12px;
  text-align: left;
}
.project-create form {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.project-create input {
  border: 1px solid #dae6e2;
  border-radius: 7px;
  padding: 9px 10px;
  max-width: 100%;
  color: #172532;
}
.project-create button {
  border: 0;
  background: #172532;
  color: #fff;
  border-radius: 7px;
  padding: 9px 11px;
  font-size: 11px;
  font-weight: 700;
}

/* Provider-neutral inbound gateway, shown only when explicitly enabled. */
.connections-section {
  margin-top: 34px;
  scroll-margin-top: 105px;
}
.connection-intro {
  font-size: 13px;
  color: var(--muted);
  margin: 10px 0 19px;
}
.connections-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.connections-grid .content-card {
  min-width: 0;
}
.connection-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.connection-fields label {
  min-width: 0;
}
.card-form select {
  height: 42px;
  max-width: 100%;
  width: 100%;
  border: 1px solid #d7e1e5;
  border-radius: 8px;
  padding: 0 10px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
}
.connection-item {
  flex-wrap: wrap;
}
.connection-item .item-main code {
  display: block;
  overflow-wrap: anywhere;
  max-width: 100%;
  font-size: 10px;
  margin-top: 5px;
  color: #396c74;
}
.connection-item .copy-btn {
  flex: none;
}
.routing-forms {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.routing-forms .card-form {
  margin: 0;
}
.routing-forms h3,
.compact-list h3 {
  font-size: 17px;
  margin: 0 0 12px;
}
.routing-forms p {
  font-size: 11px;
  color: var(--muted);
}
.compact-list {
  margin-top: 16px;
}
@media (max-width: 1350px) {
  .routing-forms {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 900px) {
  .connections-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 520px) {
  .connection-fields {
    grid-template-columns: 1fr;
  }
}

.routing-advanced {
  font-size: 11px;
  border-top: 1px solid var(--line);
  margin: 11px 0 14px;
  padding-top: 10px;
}
.routing-advanced summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--teal);
}
.routing-advanced[open] summary {
  margin-bottom: 13px;
}
.routing-advanced p {
  color: var(--muted);
  margin: 0 0 10px;
}

/* API key lifecycle controls */
.key-policy-note {
  font-size: 11px;
  color: var(--muted);
  margin: 0 0 9px;
}
.key-management-item {
  flex-wrap: wrap;
  gap: 10px;
}
.key-row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  max-width: 100%;
}
.key-row-actions form {
  margin: 0;
}
.key-row-actions .revoke-form button,
.key-row-actions .copy-btn {
  padding: 7px 10px;
  font-size: 11px;
  white-space: nowrap;
}
.key-row-actions button.key-delete {
  background: #fff1ee;
  color: #a04437;
  border: 1px solid #f2cdc5;
}
.key-rotate-details {
  position: relative;
}
.key-rotate-details > summary {
  list-style: none;
  cursor: pointer;
  color: var(--teal);
  font-size: 11px;
  font-weight: 700;
  padding: 7px 10px;
  border: 1px solid #ccdede;
  border-radius: 7px;
}
.key-rotate-details > summary::-webkit-details-marker {
  display: none;
}
.key-rotate-details[open] {
  flex-basis: 100%;
}
.key-rotate-form {
  margin-top: 10px !important;
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  align-items: flex-end;
}
.key-rotate-form label {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.key-rotate-form select {
  min-width: 150px;
  padding: 9px;
  border: 1px solid #cedee3;
  border-radius: 7px;
  background: white;
  color: var(--ink);
}
.toast-stack {
  position: fixed;
  top: 88px;
  right: 22px;
  z-index: 100;
  display: grid;
  gap: 9px;
  max-width: min(420px, calc(100vw - 40px));
}
.toast-stack .toast {
  position: relative;
  margin: 0;
  box-shadow: 0 10px 35px #17253220;
  padding: 14px 40px 14px 15px;
}
.toast-dismiss {
  position: absolute;
  top: 7px;
  right: 8px;
  border: 0;
  background: transparent;
  font-size: 20px;
  color: #3e756d;
  cursor: pointer;
}

/* Keep workspace navigation usable on small screens rather than hiding it. */
@media (max-width: 900px) {
  .console-sidebar .console-nav {
    display: flex;
    gap: 5px;
    overflow-x: auto;
    padding: 6px 12px 13px;
    scrollbar-width: thin;
    border-top: 1px solid #2a4050;
  }
  .console-sidebar .console-nav a {
    display: inline-flex;
    align-items: center;
    flex: none;
    padding: 10px 12px;
    font-size: 12px;
    white-space: nowrap;
    border-radius: 7px;
  }
  .console-sidebar .console-nav a span {
    display: inline;
  }
  .console-sidebar {
    overflow: visible;
  }
}

/* Clear onboarding guidance above the first destination setup. */
.setup-explainer {
  max-width: 960px;
  margin: 0 0 21px;
  color: #607780;
  font-size: 13px;
  line-height: 1.8;
}
.setup-explainer strong {
  color: #223642;
}
.setup-explainer a {
  display: inline-block;
  color: #227f73;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-left: 7px;
}
.setup-explainer a:hover {
  color: #c86948;
}

/* Usable workspace navigation on phones and compact tablets. */
.console-content {
  min-width: 0;
}
.console-mobile-menu {
  display: none;
}
@media (max-width: 900px) {
  .console-shell {
    display: block;
    min-width: 0;
  }
  .console-sidebar {
    position: relative;
    top: auto;
    height: auto;
    min-height: 64px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    overflow: visible;
  }
  .console-brand {
    padding: 12px 18px;
    border-bottom: 0;
    min-width: 0;
  }
  .console-mobile-menu {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 16px 0 6px;
    min-height: 44px;
    padding: 9px 13px;
    background: #2a4353;
    color: #f5faf9;
    border: 1px solid #466273;
    border-radius: 9px;
    font-weight: 700;
    font-size: 12px;
  }
  .console-mobile-menu:focus-visible {
    outline: 3px solid var(--coral);
    outline-offset: 3px;
  }
  .console-sidebar .side-label {
    display: none;
  }
  .console-sidebar .sidebar-workspace {
    display: none;
  }
  .console-sidebar .console-nav {
    grid-column: 1 / -1;
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    overflow: visible;
    padding: 10px 13px 13px;
    border-top: 1px solid #2a4050;
  }
  .console-sidebar.nav-open .console-nav {
    display: grid;
  }
  .console-sidebar .console-nav a {
    display: flex;
    min-width: 0;
    white-space: normal;
    min-height: 46px;
    font-size: 12px;
    padding: 10px 11px;
    line-height: 1.4;
  }
  .console-sidebar.nav-open .sidebar-workspace {
    grid-column: 1 / -1;
    display: flex;
    margin: 6px 13px 12px;
    min-width: 0;
  }
  .console-sidebar.nav-open .console-sidebar-bottom {
    display: block;
    grid-column: 1 / -1;
    padding: 10px 20px 15px;
  }
  .console-topbar {
    height: auto;
    min-height: 64px;
    position: relative;
    top: auto;
    padding: 12px 18px;
    gap: 12px;
  }
  .console-topbar > div:first-child {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .topbar-links {
    gap: 10px;
    flex: none;
  }
  .console-main {
    min-width: 0;
    width: 100%;
    padding: 24px 18px 54px;
  }
  .console-hero {
    padding: 22px;
    gap: 20px;
  }
  .console-hero h1 {
    font-size: clamp(27px, 6vw, 38px);
  }
  .hero-side {
    max-width: 100%;
  }
  .setup-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stats-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .connections-grid,
  .dashboard-two-col {
    grid-template-columns: 1fr;
  }
  .content-card,
  .integration-card {
    padding: 20px;
  }
  .console-footer {
    gap: 14px;
    flex-wrap: wrap;
  }
}
@media (max-width: 580px) {
  .console-brand {
    padding: 11px 13px;
    font-size: 13px;
    gap: 8px;
  }
  .console-brand strong {
    font-size: 11px;
  }
  .console-brand small {
    font-size: 8px;
  }
  .auth-mark {
    width: 34px;
    height: 34px;
    font-size: 23px;
  }
  .console-mobile-menu {
    margin-right: 12px;
    padding: 9px 11px;
  }
  .mobile-menu-text {
    display: none;
  }
  .console-main {
    padding: 17px 12px 48px;
  }
  .console-hero {
    padding: 20px 17px;
    border-radius: 12px;
  }
  .console-hero p {
    font-size: 13px;
    line-height: 1.65;
  }
  .hero-side {
    width: 100%;
    align-items: flex-start;
  }
  .hero-side form {
    max-width: 100%;
    width: 100%;
  }
  .setup-grid {
    grid-template-columns: 1fr;
  }
  .setup-section {
    margin-top: 30px;
  }
  .section-line {
    align-items: flex-start;
  }
  .section-line h2 {
    font-size: 21px;
  }
  .card-head {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .content-card,
  .integration-card {
    padding: 17px 15px;
  }
  .integration-head {
    display: flex;
    flex-wrap: wrap;
  }
  .integration-head form,
  .integration-head .test-button {
    width: 100%;
  }
  .example-window pre {
    padding: 14px;
    font-size: 11px;
  }
  .code-topline {
    padding: 11px 12px;
  }
  .stats-row {
    gap: 9px;
  }
  .stats-row > div {
    padding: 14px 12px;
  }
  .stats-row strong {
    font-size: 22px;
    overflow-wrap: anywhere;
  }
  .stats-row span {
    font-size: 9px;
  }
  .activity-row {
    gap: 9px;
    padding: 13px 1px;
  }
  .activity-title strong {
    overflow-wrap: anywhere;
  }
  .activity-status {
    min-width: 0;
    padding: 5px 7px;
    font-size: 9px;
  }
  .list-item {
    flex-wrap: wrap;
  }
  .list-item > .copy-btn {
    margin-left: auto;
  }
  .key-row-actions {
    width: 100%;
  }
  .key-rotate-form label,
  .key-rotate-form select {
    width: 100%;
  }
  .connection-fields,
  .routing-forms {
    grid-template-columns: 1fr;
  }
  .card-form {
    padding: 14px 12px;
  }
  .toast-stack {
    top: 12px;
    left: 12px;
    right: 12px;
    max-width: none;
  }
  .auth-intro h1 {
    font-size: 36px;
  }
  .auth-card {
    padding: 22px 18px;
  }
}
@media (max-width: 360px) {
  .console-sidebar .console-nav {
    grid-template-columns: 1fr;
  }
  .topbar-links {
    font-size: 11px;
  }
  .topbar-links a {
    display: none;
  }
}

/* Destination management is explicit and stays readable on small screens. */
.destination-item {
  align-items: flex-start;
}
.destination-item .item-main {
  min-width: 0;
}
.destination-item .item-main span {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}
.destination-management {
  margin: 0 0 18px;
  padding: 12px 14px;
  background: #f8fbf9;
  border: 1px solid #d9e9e2;
  border-radius: 10px;
}
.destination-management > summary {
  font-weight: 700;
  color: #267e72;
  font-size: 12px;
}
.destination-management[open] > summary {
  margin-bottom: 13px;
}
.destination-management .destination-edit-form {
  display: grid;
  gap: 10px;
  margin: 10px 0 13px;
}
.destination-management .destination-edit-form label {
  min-width: 0;
}
.destination-management .destination-edit-form input {
  width: 100%;
  max-width: 100%;
}
.destination-management .destination-edit-form .action-button {
  min-height: 44px;
}
.destination-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin: 12px 0;
}
.destination-actions form {
  margin: 0;
  min-width: 0;
}
.destination-actions button {
  min-height: 42px;
  white-space: normal;
}
.destination-actions .key-delete {
  border-color: #edc6bc;
  background: #fff0ec;
  color: #a4463a;
}
.destination-management .key-policy-note {
  line-height: 1.65;
  margin: 10px 0 0;
}
@media (max-width: 560px) {
  .destination-management {
    padding: 12px;
  }
  .destination-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .destination-actions form,
  .destination-actions button {
    width: 100%;
  }
}


/* Source: src/styles/legacy-workspace-pages.css */
/* Shared workspace page styles. */ 
.workspace-main{max-width:1220px;margin:0 auto;width:100%;padding-bottom:80px}
.workspace-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;flex-wrap:wrap;margin-bottom:26px}
.workspace-heading h1{font-size:clamp(28px,3vw,39px);margin:6px 0 8px}
.workspace-heading p{color:var(--muted);font-size:13px;max-width:680px}
.workspace-back{color:var(--teal);font-size:12px;font-weight:700}
.workspace-card{background:#fff;border:1px solid var(--line);border-radius:15px;padding:26px;margin:0 0 22px;box-shadow:var(--shadow)}
.workspace-card h2{font-size:22px;margin:0 0 8px}.workspace-card p{font-size:13px;color:var(--muted)}
.workspace-card-head{display:flex;gap:15px;align-items:center;justify-content:space-between;margin-bottom:15px;flex-wrap:wrap}
.workspace-badge{font-size:11px;font-weight:700;color:var(--teal);background:#e8f5ef;border-radius:30px;padding:5px 12px}
.workspace-field{font-size:12px;font-weight:700;display:flex;flex-direction:column;gap:7px}
.workspace-field input,.workspace-field select{min-height:42px;width:100%;border:1px solid #cbdcde;border-radius:8px;padding:10px 12px;background:#fff;color:var(--ink);font:inherit}
.workspace-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.workspace-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-top:18px}
.workspace-button{background:var(--ink);color:white;border:0;border-radius:8px;padding:11px 15px;font-size:12px;font-weight:700;cursor:pointer}
.workspace-button:disabled{opacity:.6;cursor:wait}
.workspace-button-alt{background:#f1f5f6;color:var(--ink);border:1px solid #c9d6dc}
.workspace-button-danger{background:#fff0ed;color:#9e3d32;border:1px solid #f3c9bf}
.workspace-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch}
.workspace-table{width:100%;border-collapse:collapse;min-width:540px;font-size:12px}
.workspace-table th{text-align:left;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);font-size:10px;border-bottom:1px solid var(--line);padding:12px}
.workspace-table td{padding:14px 12px;border-bottom:1px solid var(--line);vertical-align:middle}
.workspace-table tr:last-child td{border-bottom:none}
.workspace-table form{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.workspace-table select{padding:8px;border:1px solid #ccdbdf;border-radius:8px;background:white}
.workspace-empty{border:1px dashed #cbdcd8;border-radius:11px;padding:25px;text-align:center;font-size:13px;color:var(--muted)}
.workspace-plan-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:15px}
.workspace-plan{border:1px solid var(--line);border-radius:13px;padding:20px}
.workspace-plan strong{font-size:21px}.workspace-plan h3{font-size:20px;margin:6px 0}
.workspace-note{background:#edf6f3;border-radius:9px;padding:13px 15px;color:#3c6860;font-size:12px}
.workspace-secret{display:block;padding:16px;background:#edf5f5;border-radius:9px;overflow-wrap:anywhere;font:12px/1.6 ui-monospace,monospace}
.toast-stack{position:fixed;top:88px;right:22px;z-index:100;max-width:min(420px,calc(100vw - 36px));display:grid;gap:10px}
.toast-stack .toast{position:relative;margin:0;box-shadow:0 15px 36px #17313d28;padding:14px 40px 14px 16px}
.toast-dismiss{position:absolute;right:9px;top:8px;font-size:20px;background:transparent;border:0;cursor:pointer;color:#42675d}
@media(max-width:760px){.workspace-main{padding:22px 16px 60px}.workspace-form-grid{grid-template-columns:1fr}.workspace-card{padding:20px}}

.workspace-muted{font-size:12px;color:var(--muted)}


/* Billing clarity and touch-friendly controls. */
.workspace-button{display:inline-flex;align-items:center;justify-content:center;
  min-height:44px;line-height:1.4;text-align:center}
.workspace-button:focus-visible{outline:3px solid var(--coral);outline-offset:3px}
.workspace-plan{display:flex;flex-direction:column;min-width:0;gap:6px}
.workspace-plan>form{margin-top:auto}
.workspace-plan>form .workspace-button{width:100%}
.billing-history-table td{overflow-wrap:anywhere}
.billing-history-table td code{font-size:11px;overflow-wrap:anywhere;word-break:break-word}
.billing-history-table .workspace-button{padding:10px 12px;white-space:normal}
.billing-status{display:inline-block;font-weight:700;font-size:11px;border-radius:20px;padding:5px 10px}
.billing-status-succeeded{background:#e7f6ec;color:#11744e}
.billing-status-failed{background:#ffefeb;color:#ab4238}
.billing-status-abandoned{background:#fff3db;color:#815b12}
.billing-status-pending{background:#fff3db;color:#815b12}
.billing-status-refunded{background:#e9eef2;color:#536b79}
@media(max-width:900px){
  .workspace-main{max-width:100%;padding:25px 18px 65px}
  .workspace-heading{align-items:flex-start}
  .workspace-plan-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:650px){
  .workspace-main{padding:20px 12px 56px}
  .workspace-heading{gap:10px;margin-bottom:18px}
  .workspace-heading h1{font-size:30px;line-height:1.15}
  .workspace-card{padding:19px 15px;margin-bottom:15px;border-radius:12px}
  .workspace-card h2{font-size:21px}
  .workspace-card-head{align-items:flex-start}
  .workspace-plan-grid{grid-template-columns:1fr;gap:12px}
  .workspace-plan{padding:18px 16px}
  .workspace-plan strong{font-size:24px}
  .workspace-plan p{line-height:1.7}
  .workspace-button{width:100%;min-height:46px;overflow-wrap:anywhere}
  .workspace-actions .workspace-button{width:auto;flex:1 1 140px}
  .workspace-note{font-size:12px;line-height:1.7}
  /* Present each transaction as a readable vertical card on small screens. */
  .billing-history-scroll{overflow:visible}
  .billing-history-table,.billing-history-table tbody,
  .billing-history-table tr,.billing-history-table td{display:block;width:100%;min-width:0}
  .billing-history-table thead{display:none}
  .billing-history-table tr{
    padding:12px 14px;margin-bottom:13px;border:1px solid var(--line);
    background:#fff;border-radius:11px
  }
  .billing-history-table tr:last-child{margin-bottom:0}
  .billing-history-table td{
    display:flex;justify-content:space-between;align-items:flex-start;
    gap:14px;text-align:right;padding:10px 0;border-bottom:1px solid var(--line)
  }
  .billing-history-table td::before{
    content:attr(data-label);display:block;flex:0 0 90px;text-align:left;
    color:var(--muted);font-size:11px;font-weight:700
  }
  .billing-history-table td:last-child{border-bottom:0}
  .billing-history-table td code{max-width:calc(100% - 95px);text-align:right}
  .billing-history-table td form{margin:0;min-width:0;flex:1}
  .billing-history-table td .workspace-button{font-size:11px;min-height:42px}
}
@media(max-width:350px){
  .billing-history-table td::before{flex-basis:66px}
  .billing-history-table td code{max-width:calc(100% - 72px)}
}

/* Project billing deliberately stays scoped to one project at a time. */
.billing-project-switch{display:flex;align-items:center;flex-wrap:wrap;gap:12px;
  padding:12px 16px;margin:0 0 20px;border:1px solid #dce9e4;
  border-radius:12px;background:#f4f9f6}
.billing-project-switch>span{font-size:11px;color:#516c72;font-weight:800;
  letter-spacing:.05em;text-transform:uppercase}
.billing-project-links{display:flex;flex-wrap:wrap;gap:8px}
.billing-project-links a{display:inline-flex;align-items:center;min-height:40px;
  padding:9px 13px;border-radius:8px;border:1px solid #cbded8;
  color:#256b63;background:#fff;font-size:12px;font-weight:700}
.billing-project-links a[aria-current="page"]{background:#183848;border-color:#183848;color:#fff}
.billing-project-links a:focus-visible{outline:3px solid #e2865a;outline-offset:2px}
@media(max-width:650px){.billing-project-switch{align-items:stretch;
  flex-direction:column;padding:12px}.billing-project-links{display:grid;
  grid-template-columns:repeat(auto-fit,minmax(125px,1fr))}.billing-project-links a{
    justify-content:center;text-align:center;overflow-wrap:anywhere}}


/* Source: src/styles/legacy-docs.css */
/* Scoped copy of the production Django documentation stylesheet.
   Preserve original layout and interactions without leaking docs tokens into marketing/dashboard pages. */
@scope (.docs-app) {
  :scope {
    color-scheme: light;
    --paper: #f5f7f5;
    --panel: #fff;
    --ink: #172532;
    --text: #192b3a;
    --muted: #667985;
    --border: #e2e9e8;
    --accent: #e86c48;
    --accent-soft: #fff0e7;
    --blue: #167a87;
    --code: #101d2a;
    --shadow: 0 12px 35px rgba(23, 37, 50, 0.055);
    --sidebar-width: 264px;
  }
  :scope[data-theme="dark"] {
    color-scheme: dark;
    --paper: #101b27;
    --panel: #182736;
    --ink: #eef7f7;
    --text: #ecf5f4;
    --muted: #a4b7c3;
    --border: #314554;
    --accent: #ff9169;
    --accent-soft: #402d2d;
    --blue: #7cced0;
    --code: #0b1420;
    --shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
  }
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }
  :scope {
    scroll-behavior: smooth;
    scroll-padding-top: 92px;
  }
  :scope {
    margin: 0;
    background: var(--paper);
    color: var(--text);
    font:
      15px/1.65 "DM Sans",
      system-ui,
      sans-serif;
    -webkit-font-smoothing: antialiased;
  }
  button,
  input {
    font: inherit;
  }
  button,
  a {
    -webkit-tap-highlight-color: transparent;
  }
  a {
    color: inherit;
    text-decoration: none;
  }
  a:focus-visible,
  button:focus-visible,
  input:focus-visible,
  summary:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
  }
  code,
  pre,
  kbd,
  .method,
  .nav-method,
  .version-pill,
  .strip-label,
  .eyebrow,
  .section-overline,
  .kicker,
  .nav-caption {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  }
  code {
    overflow-wrap: anywhere;
  }
  [hidden] {
    display: none !important;
  }
  .skip-link {
    position: fixed;
    z-index: 50;
    top: -100px;
    left: 12px;
    background: #fff;
    color: #172532;
    padding: 10px 18px;
    border-radius: 8px;
  }
  .skip-link:focus {
    top: 12px;
  }
  .app-shell {
    min-height: 100vh;
  }
  .sidebar {
    background: #172532;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: var(--sidebar-width);
    color: #e6f2f5;
    display: flex;
    flex-direction: column;
    z-index: 20;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
  }
  .brand {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 30px 26px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  }
  .brand-mark {
    display: grid;
    place-items: center;
    width: 43px;
    height: 43px;
    background: #f4f7f1;
    color: #162634;
    border-radius: 12px;
    font:
      700 27px "Space Grotesk",
      sans-serif;
    letter-spacing: -4px;
    padding-right: 4px;
    flex: none;
  }
  .brand-mark span {
    color: var(--accent);
  }
  .brand strong {
    display: block;
    font:
      700 17px/1.2 "Space Grotesk",
      sans-serif;
    letter-spacing: 0.09em;
  }
  .brand small {
    display: block;
    font:
      500 9px/1.7 ui-monospace,
      monospace;
    letter-spacing: 0.2em;
    color: #92a5b3;
    margin-top: 3px;
  }
  .sidebar-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 21px 27px 12px;
    font-size: 11px;
    color: #9db1bd;
    white-space: nowrap;
  }
  .live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #83d8b1;
    box-shadow: 0 0 0 4px rgba(131, 216, 177, 0.09);
  }
  .version-pill {
    margin-left: auto;
    color: #b7cec9;
    border: 1px solid #42606a;
    padding: 0 6px;
    border-radius: 4px;
    font-size: 10px;
  }
  .side-nav {
    padding: 12px 13px 26px;
    overflow: auto;
    scrollbar-width: thin;
    scrollbar-color: #3f5766 transparent;
    min-height: 0;
    flex: 1;
  }
  .nav-caption {
    padding: 12px 14px 6px;
    color: #748c9c;
    text-transform: uppercase;
    letter-spacing: 0.13em;
    font-size: 10px;
    font-weight: 700;
  }
  .space-above {
    margin-top: 21px;
  }
  .nav-link {
    display: block;
    color: #b7c9d3;
    font-size: 13px;
    padding: 8px 14px;
    border-radius: 8px;
    transition:
      background 0.15s,
      color 0.15s;
  }
  .nav-link:hover,
  .nav-endpoint:hover {
    color: #fff;
    background: #243a4d;
  }
  .nav-heading {
    font-weight: 700;
    color: #e2eef2;
  }
  .nav-endpoint {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 12px 7px 18px;
    border-radius: 7px;
    color: #9fb2bf;
    font-size: 11px;
    line-height: 1.4;
  }
  .nav-method {
    font-weight: 700;
    letter-spacing: -0.03em;
    font-size: 9px;
    min-width: 37px;
  }
  .nav-method.get {
    color: #84d3de;
  }
  .nav-method.post {
    color: #8ce1a2;
  }
  .nav-method.patch {
    color: #ffd28b;
  }
  .nav-method.delete {
    color: #ff9d8f;
  }
  .sidebar-footer {
    display: flex;
    gap: 12px;
    padding: 19px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #8eabb8;
    font-size: 11px;
    line-height: 1.55;
  }
  .sidebar-footer strong {
    color: #cfe1e6;
  }
  .footer-icon {
    display: grid;
    place-items: center;
    border: 1px solid #45616d;
    width: 28px;
    height: 28px;
    flex: none;
    border-radius: 7px;
    color: #d5f0ee;
    font-size: 17px;
  }
  .content-shell {
    margin-left: var(--sidebar-width);
    min-width: 0;
  }
  .topbar {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(24px, 4vw, 64px);
    background: var(--panel);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 10;
  }
  .breadcrumbs {
    font-size: 12px;
    color: var(--muted);
  }
  .breadcrumbs span {
    margin: 0 12px;
    color: #9dabac;
  }
  .breadcrumbs strong {
    color: var(--text);
    font-weight: 600;
  }
  .topbar-actions {
    display: flex;
    align-items: center;
    gap: 20px;
  }
  .topbar-link {
    font-weight: 700;
    font-size: 12px;
    color: var(--text);
  }
  .topbar-link span {
    color: var(--accent);
    margin-left: 4px;
  }
  .icon-btn {
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--panel);
    color: var(--text);
    width: 38px;
    height: 38px;
    cursor: pointer;
    font-size: 19px;
    display: grid;
    place-items: center;
  }
  .icon-btn:hover {
    background: var(--paper);
  }
  .mobile-menu {
    display: none;
  }
  .hero {
    min-height: 492px;
    padding: 75px clamp(24px, 4.4vw, 70px) 60px;
    background:
      radial-gradient(
        circle at 85% 50%,
        #fee7d1 0,
        rgba(254, 231, 209, 0.4) 27%,
        transparent 50%
      ),
      linear-gradient(122deg, #ebf5f2 0%, #e9f3f3 45%, #f6ede5 100%);
    display: grid;
    grid-template-columns: minmax(310px, 1.1fr) minmax(270px, 0.9fr);
    align-items: center;
    gap: 20px;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid #e2eae5;
  }
  :scope[data-theme="dark"] .hero {
    background:
      radial-gradient(circle at 85% 35%, #49372e 0, transparent 48%),
      linear-gradient(120deg, #1a3340, #1a2936 65%, #2c2933);
    border-color: var(--border);
  }
  .hero-copy {
    position: relative;
    z-index: 2;
    max-width: 670px;
  }
  .eyebrow {
    display: flex;
    align-items: center;
    gap: 11px;
    color: #517a79;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
  }
  :scope[data-theme="dark"] .eyebrow {
    color: #9ecbc5;
  }
  .eyebrow-line {
    display: inline-block;
    width: 26px;
    height: 2px;
    background: var(--accent);
  }
  .hero h1 {
    font:
      700 clamp(48px, 5.4vw, 82px)/1.05 "Space Grotesk",
      system-ui,
      sans-serif;
    letter-spacing: -0.07em;
    color: #182a36;
    margin: 23px 0;
  }
  .hero h1 em {
    font-style: normal;
    color: #e56b48;
  }
  .hero p {
    max-width: 530px;
    font-size: 16px;
    line-height: 1.75;
    color: #536b73;
  }
  .hero p strong {
    color: #233b43;
  }
  :scope[data-theme="dark"] .hero h1,
  :scope[data-theme="dark"] .hero p strong {
    color: #f1f7f6;
  }
  :scope[data-theme="dark"] .hero p {
    color: #c2d2d8;
  }
  .hero-actions {
    display: flex;
    gap: 11px;
    flex-wrap: wrap;
    margin-top: 29px;
  }
  .btn-primary,
  .btn-outline {
    padding: 12px 19px;
    border-radius: 9px;
    font-weight: 700;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 24px;
    transition:
      transform 0.18s,
      box-shadow 0.18s;
  }
  .btn-primary {
    background: #172b39;
    color: white;
    box-shadow: 0 8px 20px rgba(20, 42, 55, 0.18);
  }
  .btn-primary span {
    color: #ffac91;
    font-size: 20px;
  }
  .btn-outline {
    color: #213c44;
    border: 1px solid #a7bebc;
  }
  .btn-primary:hover,
  .btn-outline:hover {
    transform: translateY(-2px);
  }
  :scope[data-theme="dark"] .btn-outline {
    color: #e9f4f3;
    border-color: #76918d;
  }
  .hero-features {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 35px;
    color: #587479;
    font-size: 11px;
  }
  .hero-features b {
    color: #30917e;
    font-size: 13px;
    margin-right: 3px;
  }
  :scope[data-theme="dark"] .hero-features {
    color: #b4cdce;
  }
  .hero-art {
    position: relative;
    height: 340px;
    min-width: 280px;
    z-index: 1;
  }
  .art-orbit {
    position: absolute;
    width: 340px;
    height: 340px;
    border: 1px dashed rgba(30, 94, 107, 0.2);
    border-radius: 50%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
  .orbit-two {
    width: 260px;
    height: 260px;
    border-style: solid;
    border-color: rgba(30, 94, 107, 0.14);
  }
  .art-card {
    position: absolute;
    border-radius: 13px;
    padding: 16px 20px;
    box-shadow: 0 20px 60px rgba(23, 37, 50, 0.15);
    display: flex;
    flex-direction: column;
  }
  .art-event {
    background: #182e3e;
    color: #fff;
    left: 5%;
    top: 38px;
    width: 84%;
    max-width: 360px;
    transform: rotate(-4deg);
  }
  .art-kicker {
    font:
      10px ui-monospace,
      monospace;
    color: #91b2c0;
    letter-spacing: 0.07em;
  }
  .art-event-name {
    font:
      600 19px "Space Grotesk",
      sans-serif;
    margin: 18px 0 8px;
    letter-spacing: -0.03em;
  }
  .art-mini {
    font:
      11px ui-monospace,
      monospace;
    color: #8cd9cb;
  }
  .art-delivered {
    background: #fff;
    right: 0;
    bottom: 32px;
    color: #29434c;
    width: 74%;
    max-width: 300px;
    transform: rotate(3deg);
    font-weight: 700;
    gap: 5px;
  }
  .art-delivered small {
    font-size: 10px;
    color: #738c90;
    font-weight: 500;
  }
  .art-success {
    color: #269e81;
    font:
      700 11px ui-monospace,
      monospace;
    margin-bottom: 3px;
  }
  .art-connector {
    position: absolute;
    left: 45%;
    top: 180px;
    width: 5px;
    height: 83px;
    border-left: 2px dashed #e77b58;
    transform: rotate(-15deg);
  }
  .art-connector i {
    display: block;
    width: 6px;
    height: 6px;
    background: #e77b58;
    border-radius: 50%;
    margin: 7px 0;
  }
  .art-plus {
    position: absolute;
    font:
      400 28px "Space Grotesk",
      sans-serif;
    color: #e8967b;
  }
  .plus-one {
    top: 5px;
    right: 34px;
  }
  .plus-two {
    bottom: 20px;
    left: 5px;
  }
  .main-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 clamp(24px, 4.4vw, 70px);
  }
  .intro-strip {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
    background: var(--panel);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    border-radius: 13px;
    margin-top: -26px;
    position: relative;
    z-index: 3;
  }
  .intro-strip > div {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 19px 22px;
    min-width: 0;
  }
  .intro-strip > div + div {
    border-left: 1px solid var(--border);
  }
  .strip-label {
    color: var(--muted);
    font-weight: 700;
    font-size: 9px;
    letter-spacing: 0.075em;
    flex: none;
  }
  .intro-strip code {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 11px;
    flex: 1;
    min-width: 0;
  }
  .intro-strip strong {
    font-size: 12px;
    white-space: nowrap;
  }
  .mini-copy {
    cursor: pointer;
    color: var(--blue);
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 4px 9px;
    font-size: 10px;
    font-weight: 700;
  }
  .mini-copy:hover {
    border-color: var(--blue);
    background: var(--paper);
  }
  .doc-section {
    padding-top: 90px;
    scroll-margin-top: 90px;
  }
  .section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 29px;
  }
  .section-overline {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.13em;
    color: var(--accent);
  }
  .section-heading h2 {
    font:
      700 clamp(29px, 3vw, 42px)/1.12 "Space Grotesk",
      system-ui,
      sans-serif;
    letter-spacing: -0.055em;
    margin: 12px 0 12px;
  }
  .section-heading p {
    color: var(--muted);
    font-size: 14px;
    margin: 0;
    max-width: 640px;
  }
  .section-index {
    color: #a2b2b7;
    font:
      11px ui-monospace,
      monospace;
    white-space: nowrap;
  }
  .steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
  }
  .step {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    min-width: 0;
    position: relative;
    box-shadow: var(--shadow);
  }
  .step-number {
    position: absolute;
    top: 21px;
    right: 22px;
    color: #a5b3b9;
    font:
      11px ui-monospace,
      monospace;
  }
  .step-icon {
    width: 43px;
    height: 43px;
    border-radius: 10px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 25px;
    display: grid;
    place-items: center;
    margin-bottom: 25px;
  }
  .step h3,
  .info-card h3 {
    font:
      700 18px/1.3 "Space Grotesk",
      sans-serif;
    letter-spacing: -0.035em;
    margin: 0 0 12px;
  }
  .step p,
  .info-card p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.72;
    margin: 0 0 20px;
  }
  .step a {
    display: block;
    color: var(--blue);
    font:
      600 10px/1.6 ui-monospace,
      monospace;
    overflow-wrap: anywhere;
  }
  .step a span {
    font-size: 16px;
    margin-left: 3px;
  }
  .auth-grid,
  .security-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
  }
  .info-card {
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--panel);
    padding: 25px;
    box-shadow: var(--shadow);
    min-width: 0;
  }
  .info-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
  }
  .info-icon {
    background: var(--accent-soft);
    color: var(--accent);
    width: 37px;
    height: 37px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-size: 24px;
  }
  .tag {
    font:
      700 10px ui-monospace,
      monospace;
    color: var(--blue);
    background: rgba(22, 122, 135, 0.08);
    padding: 6px 9px;
    border-radius: 6px;
  }
  .info-card code {
    font-size: 11px;
    color: var(--blue);
  }
  .inline-code {
    background: var(--code);
    padding: 14px 17px;
    border-radius: 8px;
    color: #dceef0;
    font:
      11px/1.7 ui-monospace,
      monospace;
    overflow-wrap: anywhere;
  }
  .multi-line {
    margin-top: 18px;
  }
  .callout {
    display: flex;
    gap: 13px;
    align-items: start;
    padding: 18px 20px;
    background: var(--accent-soft);
    border: 1px solid rgba(233, 111, 74, 0.2);
    margin-top: 17px;
    border-radius: 9px;
  }
  .callout-icon {
    border: 1px solid var(--accent);
    border-radius: 50%;
    color: var(--accent);
    width: 21px;
    height: 21px;
    flex: none;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 13px;
  }
  .callout p {
    margin: 0;
    font-size: 12px;
    line-height: 1.7;
    color: var(--text);
  }
  .kicker {
    display: block;
    color: var(--accent);
    font:
      700 10px ui-monospace,
      monospace;
    letter-spacing: 0.11em;
    margin-bottom: 17px;
  }
  .muted-caption {
    font-size: 11px !important;
    color: var(--muted);
    line-height: 1.7;
    margin: 15px 0 0 !important;
  }
  .retry-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }
  .retry-pills span {
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 6px 9px;
    font:
      700 11px ui-monospace,
      monospace;
    color: var(--blue);
  }
  .reference-toolbar {
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
    margin: 30px 0;
  }
  .search-box {
    border: 1px solid var(--border);
    background: var(--panel);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 14px;
    flex: 1;
    max-width: 520px;
    border-radius: 10px;
  }
  .search-box > span {
    font-size: 24px;
    color: var(--blue);
  }
  .search-box input {
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    min-width: 0;
    width: 100%;
    height: 48px;
    font-size: 13px;
  }
  .search-box input:focus-visible {
    outline: none;
  }
  .search-box:focus-within {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(22, 122, 135, 0.1);
  }
  .search-box kbd {
    font-size: 10px;
    border: 1px solid var(--border);
    border-radius: 5px;
    padding: 1px 7px;
    color: var(--muted);
  }
  .endpoint-count {
    font:
      11px ui-monospace,
      monospace;
    color: var(--muted);
    white-space: nowrap;
  }
  .endpoint-group {
    margin: 30px 0 45px;
    scroll-margin-top: 95px;
  }
  .group-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 28px 0 18px;
  }
  .group-header h3 {
    font:
      700 23px "Space Grotesk",
      sans-serif;
    letter-spacing: -0.045em;
    margin: 0 0 2px;
  }
  .group-header p {
    font-size: 12px;
    color: var(--muted);
    margin: 0;
  }
  .group-rule {
    height: 1px;
    background: var(--border);
    flex: 1;
  }
  .endpoint-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 10px;
    margin: 10px 0;
    scroll-margin-top: 86px;
    overflow: hidden;
  }
  .endpoint-card[open] {
    box-shadow: var(--shadow);
    border-color: rgba(22, 122, 135, 0.25);
  }
  .endpoint-card > summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 17px 20px;
  }
  .endpoint-card > summary::-webkit-details-marker {
    display: none;
  }
  .endpoint-card > summary:hover {
    background: var(--paper);
  }
  .method {
    display: inline-grid;
    place-items: center;
    flex: none;
    width: 69px;
    padding: 6px 4px;
    border-radius: 6px;
    font:
      bold 10px/1.5 ui-monospace,
      monospace;
  }
  .method-get {
    background: #e5f5f7;
    color: #167a87;
  }
  .method-post {
    background: #e3f7eb;
    color: #16885a;
  }
  .method-patch {
    background: #fff4da;
    color: #a96a12;
  }
  .method-delete {
    background: #ffebe8;
    color: #c14b4b;
  }
  .endpoint-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    flex: 1;
    min-width: 0;
  }
  .endpoint-summary strong {
    font:
      600 12px/1.5 ui-monospace,
      monospace;
    overflow-wrap: anywhere;
  }
  .endpoint-summary small {
    font-size: 12px;
    color: var(--muted);
    min-width: 125px;
    text-align: right;
  }
  .endpoint-chevron {
    font-size: 22px;
    color: var(--muted);
    transition: transform 0.2s;
    line-height: 1;
  }
  .endpoint-card[open] .endpoint-chevron {
    transform: rotate(180deg);
  }
  .endpoint-detail {
    border-top: 1px solid var(--border);
    padding: 22px;
  }
  .endpoint-overview {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 20px;
  }
  .endpoint-overview h4 {
    font:
      700 19px "Space Grotesk",
      sans-serif;
    margin: 14px 0 8px;
  }
  .endpoint-overview p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
    max-width: 570px;
  }
  .auth-badge {
    color: var(--muted);
    font:
      10px ui-monospace,
      monospace;
    white-space: nowrap;
  }
  .endpoint-columns {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 15px;
  }
  .endpoint-columns > div {
    min-width: 0;
  }
  .code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px 8px 0 0;
    background: var(--paper);
    font:
      700 11px ui-monospace,
      monospace;
  }
  .code-header b {
    color: var(--blue);
  }
  .response-head {
    margin-top: 13px;
  }
  .json-preview,
  .snippet-preview {
    margin: 0;
    min-height: 67px;
    overflow-x: auto;
    white-space: pre;
    tab-size: 2;
  }
  .json-preview {
    padding: 17px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-top: 0;
    border-radius: 0 0 8px 8px;
    color: var(--text);
    font:
      11px/1.7 ui-monospace,
      monospace;
  }
  .no-body {
    border: 1px dashed var(--border);
    border-radius: 8px;
    padding: 22px;
    color: var(--muted);
    font-size: 12px;
  }
  .snippet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--code);
    padding: 10px 12px;
    border: 1px solid #344757;
    border-radius: 8px 8px 0 0;
    gap: 7px;
  }
  .snippet-tabs {
    display: flex;
    gap: 3px;
    flex-wrap: wrap;
  }
  .snippet-tab {
    border: none;
    color: #94aab9;
    background: transparent;
    border-radius: 5px;
    font:
      600 10px ui-monospace,
      monospace;
    padding: 6px 7px;
    cursor: pointer;
  }
  .snippet-tab.active,
  .snippet-tab:hover {
    background: #2a4052;
    color: #e9f8fa;
  }
  .copy-snippet {
    color: #9edbd6;
    border-color: #435b6c;
  }
  .snippet-preview {
    padding: 20px 16px;
    min-height: 178px;
    max-height: 470px;
    overflow: auto;
    color: #c9e2e8;
    background: var(--code);
    border-radius: 0 0 8px 8px;
    font:
      11px/1.75 ui-monospace,
      monospace;
  }
  .snippet-tip {
    font-size: 11px;
    color: var(--muted);
    line-height: 1.7;
  }
  .no-results {
    background: var(--panel);
    border: 1px dashed var(--border);
    border-radius: 10px;
    padding: 25px;
    font-size: 13px;
    color: var(--muted);
  }
  .error-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--panel);
  }
  .error-table {
    border-collapse: collapse;
    width: 100%;
    font-size: 12px;
    text-align: left;
  }
  .error-table th {
    font:
      700 10px ui-monospace,
      monospace;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    background: var(--paper);
  }
  .error-table th,
  .error-table td {
    padding: 15px 18px;
    border-bottom: 1px solid var(--border);
  }
  .error-table tr:last-child td {
    border-bottom: 0;
  }
  .status {
    font:
      700 11px ui-monospace,
      monospace;
    padding: 4px 9px;
    border-radius: 5px;
    background: var(--accent-soft);
    color: var(--accent);
  }
  .status-401,
  .status-403 {
    color: #ba753c;
    background: var(--accent-soft);
  }
  .status-404 {
    color: var(--blue);
    background: rgba(22, 122, 135, 0.1);
  }
  .page-footer {
    margin-top: 100px;
    padding: 25px 0 45px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    font-size: 11px;
    color: var(--muted);
  }
  .page-footer strong {
    font-size: 20px;
    color: var(--accent);
    margin-right: 6px;
  }
  .page-footer a {
    color: var(--blue);
    font-weight: 700;
  }
  @media (max-width: 1180px) {
    .hero {
      grid-template-columns: minmax(0, 1fr) minmax(220px, 0.7fr);
      padding-top: 55px;
    }
    .hero h1 {
      font-size: clamp(43px, 5vw, 68px);
    }
    .steps {
      grid-template-columns: 1fr;
    }
    .step {
      min-height: 185px;
    }
    .step-icon {
      margin-bottom: 13px;
    }
    .endpoint-columns {
      grid-template-columns: 1fr;
    }
  }
  @media (max-width: 920px) {
    :scope {
      --sidebar-width: 0px;
    }
    .sidebar {
      width: 265px;
      transform: translateX(-100%);
      transition: transform 0.2s ease;
    }
    :scope.nav-open .sidebar {
      transform: translateX(0);
      box-shadow: 20px 0 50px rgba(0, 0, 0, 0.22);
    }
    .mobile-menu {
      display: grid;
    }
    .topbar {
      padding: 0 24px;
      justify-content: flex-start;
      gap: 17px;
    }
    .topbar-actions {
      margin-left: auto;
    }
    .hero {
      grid-template-columns: minmax(0, 1fr) minmax(220px, 0.7fr);
    }
  }
  @media (max-width: 690px) {
    .hero {
      grid-template-columns: 1fr;
      min-height: 0;
      padding: 48px 24px 38px;
    }
    .hero h1 {
      font-size: 53px;
      margin: 19px 0;
    }
    .hero p {
      font-size: 14px;
    }
    .hero-art {
      display: none;
    }
    .hero-features {
      gap: 12px;
      margin-top: 27px;
    }
    .main-inner {
      padding: 0 18px;
    }
    .intro-strip {
      grid-template-columns: 1fr;
    }
    .intro-strip > div {
      padding: 12px 17px;
    }
    .intro-strip > div + div {
      border-left: 0;
      border-top: 1px solid var(--border);
    }
    .doc-section {
      padding-top: 65px;
    }
    .section-heading h2 {
      font-size: 32px;
    }
    .section-index {
      display: none;
    }
    .auth-grid,
    .security-grid {
      grid-template-columns: 1fr;
    }
    .endpoint-card > summary {
      padding: 13px;
      gap: 10px;
    }
    .endpoint-summary {
      display: block;
    }
    .endpoint-summary strong {
      display: block;
      font-size: 10px;
    }
    .endpoint-summary small {
      display: block;
      text-align: left;
      font-size: 11px;
      margin-top: 3px;
    }
    .endpoint-detail {
      padding: 14px;
    }
    .endpoint-overview {
      display: block;
    }
    .auth-badge {
      margin-top: 13px;
    }
    .method {
      width: 54px;
      font-size: 9px;
    }
    .endpoint-chevron {
      margin-left: auto;
    }
    .snippet-tabs {
      gap: 0;
    }
    .snippet-tab {
      padding: 6px;
    }
    .snippet-preview {
      font-size: 10px;
    }
    .topbar-link {
      display: none;
    }
    .page-footer {
      flex-wrap: wrap;
      gap: 9px;
    }
    .step {
      min-height: 0;
    }
  }
  @media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
      scroll-behavior: auto !important;
      animation-duration: 0.01ms !important;
      transition-duration: 0.01ms !important;
    }
  }

  /* Keep the quickstart focused: only the base URL appears in the service strip. */
  .intro-strip {
    grid-template-columns: minmax(0, 1fr);
  }
  .intro-strip > div:first-child {
    width: 100%;
  }

  /* Educational guides use the existing docs tokens and dark-mode palette. */
  .guide-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 23px 0;
  }
  .guide-grid .info-card {
    margin: 0;
    min-width: 0;
  }
  .guide-flow {
    display: flex;
    gap: 12px;
    align-items: stretch;
    margin: 25px 0;
  }
  .guide-flow span {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 17px;
  }
  .guide-flow strong {
    font-size: 13px;
    color: var(--ink);
  }
  .guide-flow small {
    font-size: 11px;
    color: var(--muted);
  }
  .guide-flow > b {
    align-self: center;
    color: var(--accent);
  }
  .guide-link {
    color: var(--blue);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
  }
  .guide-subheading {
    font-size: 17px;
    line-height: 1.35;
    margin: 27px 0 12px;
    color: var(--ink);
  }
  .guide-code {
    background: var(--code);
    border-radius: 10px;
    overflow-x: auto;
    padding: 18px;
    margin: 13px 0 20px;
    border: 1px solid var(--border);
    color: #d5ecf1;
    font:
      12px/1.7 ui-monospace,
      SFMono-Regular,
      Menlo,
      Consolas,
      monospace;
  }
  .guide-code code {
    white-space: pre;
    overflow-wrap: normal;
    color: inherit;
  }
  @media (max-width: 690px) {
    .guide-grid {
      grid-template-columns: 1fr;
    }
    .guide-flow {
      flex-direction: column;
    }
    .guide-flow > b {
      transform: rotate(90deg);
    }
    .guide-code {
      font-size: 11px;
      padding: 13px;
    }
  }

  .guide-framework {
    margin: 13px 0;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
  }
  .guide-framework summary {
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    color: var(--ink);
  }
  .guide-framework p {
    font-size: 12px;
    color: var(--muted);
    margin: 11px 0;
  }
  .guide-framework .guide-code {
    margin-bottom: 0;
  }

  /* Keep the close action above the mobile drawer, never behind its overlay. */
  .docs-nav-close {
    display: none;
  }
  @media (max-width: 920px) {
    .docs-nav-close {
      display: grid;
      place-items: center;
      position: absolute;
      right: 12px;
      top: 14px;
      z-index: 3;
      width: 38px;
      height: 38px;
      border: 1px solid #486072;
      border-radius: 9px;
      background: #263b4b;
      color: #fff;
      font-size: 25px;
      line-height: 1;
      cursor: pointer;
    }
    .docs-nav-close:focus-visible {
      outline: 3px solid #ff9169;
      outline-offset: 2px;
    }
    :scope.nav-open .sidebar .brand {
      padding-right: 56px;
    }
  }
  @media (prefers-reduced-motion: reduce) {
    .sidebar,
    .btn-primary,
    .btn-outline,
    .endpoint-card,
    .step {
      transition: none !important;
      animation: none !important;
    }
  }
}


/* Source: src/app/globals.css (without build-time imports) */

/* MFA recovery codes must contrast with their dark surface in either theme.
   Do not rely on the panel's inherited dark text color. */
.mfa-recovery-codes {
  background: #0f172a;
  color: #f8fafc;
}
.mfa-recovery-codes li {
  color: #f8fafc;
}

/* Bridge existing React controls to the production Django visual system. */
:root {
  color-scheme: light;
  --bg: #f6f8f7;
  --surface: #fff;
  --edge: #e0e9e8;
  --text: #172532;
  --accent: #198579;
}
body {
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}
.wrap {
  max-width: 1210px;
  margin: 0 auto;
  padding: 0 28px;
}
/* Brand identity is rendered by the original scoped Django site, docs and console rules. */
.muted {
  color: #6e8390;
}
.panel {
  background: white;
  border: 1px solid #e0e9e8;
  border-radius: 12px;
  box-shadow: 0 10px 35px rgba(30, 51, 63, 0.045);
  color: var(--ink);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  padding: 11px 17px;
  background: #172532;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid #172532;
  transition: transform 0.17s ease;
}
.btn:hover {
  background: #263f4b;
  color: white;
  transform: translateY(-1px);
}
.btn.secondary {
  background: white;
  color: #172532;
  border: 1px solid #cbd9df;
}
.btn.secondary:hover {
  border-color: #168576;
  color: #168576;
}
.btn.danger {
  background: #fff0ea;
  border: 1px solid #efc9bc;
  color: #ad5741;
}
.field {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 10px 13px;
  color: #172532;
  background: white;
  border: 1px solid #cbd9df;
  border-radius: 8px;
}
.field:focus {
  outline: 2px solid #198579;
  outline-offset: 1px;
}
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.stat {
  font:
    700 30px "Space Grotesk",
    sans-serif;
  letter-spacing: -0.045em;
}
.table {
  width: 100%;
  border-collapse: collapse;
}
.table th,
.table td {
  padding: 15px 12px;
  text-align: left;
  border-bottom: 1px solid #e2e9ec;
}
.table th {
  color: #6e8390;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.error {
  color: #a74131;
  background: #fff0e9;
  border: 1px solid #ffd5c7;
  padding: 12px;
  border-radius: 8px;
}
.success {
  color: #176c56;
  background: #e7f7ed;
  border: 1px solid #a9d9c3;
  padding: 12px;
  border-radius: 8px;
}
.console-content {
  min-width: 0;
}
.console-main {
  max-width: 1510px;
}
.console-nav .nav-symbol {
  display: inline-flex;
  width: 19px;
  flex: 0 0 19px;
  justify-content: center;
  color: #9db3bf;
  margin: 0;
}
.console-nav a span:last-child {
  margin-left: 0;
}
.console-mobile-menu {
  display: none;
}
.console-sidebar-bottom button {
  color: #e5f4f2;
  background: none;
  border: 0;
  padding: 8px 0;
}
.console-topbar .topbar-links button {
  color: #56717f;
}
.console-subhead {
  margin: 35px 0 20px;
}
.console-subhead h2 {
  margin: 5px 0;
  font-size: 26px;
}
.console-project-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 23px 0;
}
.console-project-nav a {
  color: #267b6d;
  border: 1px solid #d5e4df;
  border-radius: 8px;
  padding: 9px 13px;
  background: white;
  font-size: 12px;
  font-weight: 700;
}
.console-project-nav a:hover {
  border-color: #168576;
  background: #eaf5ef;
}
.console-hero .hero-side {
  max-width: none;
}
.console-hero .hero-side .pill {
  color: #27715f;
}
.public-site .site-header,
.public-site .site-footer {
  width: 100%;
}
.public-site .hero-grid {
  max-width: 1210px;
}
.auth-input {
  width: 100%;
  height: 44px;
  padding: 0 13px;
  border: 1px solid #d7e1e5;
  border-radius: 8px;
  background: #fff;
  color: #172532;
}
.auth-input:focus {
  outline: 2px solid #198579;
  outline-offset: 1px;
}
.auth-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
}
.auth-submit {
  margin-top: 18px;
}
@media (max-width: 790px) {
  .console-sidebar {
    position: relative;
  }
  .console-mobile-menu {
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 0 20px 12px;
    background: #263b4b;
    color: #fff;
    border: 1px solid #385263;
    border-radius: 7px;
    padding: 7px 12px;
  }
  .console-sidebar .console-nav.is-open {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding-bottom: 14px;
  }
  .console-sidebar .console-nav.is-open a {
    width: 100%;
  }
  .console-sidebar-bottom {
    display: none;
  }
}
@media (max-width: 700px) {
  .wrap {
    padding: 0 16px;
  }
  .table {
    display: block;
    overflow-x: auto;
  }
}

/* Django-auth parity for Next.js passwordless login. */
.hs-auth-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 30%, #f2e4d5, transparent 38%),
    linear-gradient(120deg, #eaf3f0, #f8f6f2);
  color: #172532;
  font:
    14px/1.6 "DM Sans",
    sans-serif;
}
.hs-auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 34px clamp(24px, 5vw, 90px);
  font:
    700 22px "Space Grotesk",
    sans-serif;
  color: #172532;
}
.hs-auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 460px;
  align-items: center;
  gap: 70px;
  max-width: 1270px;
  margin: auto;
  padding: 65px 38px 115px;
  min-height: calc(100vh - 110px);
}
.hs-auth-intro {
  max-width: 650px;
}
.hs-auth-eyebrow {
  font:
    700 10px ui-monospace,
    monospace;
  letter-spacing: 0.13em;
  color: #ed7657;
}
.hs-auth-intro h1 {
  font:
    700 clamp(51px, 5.7vw, 79px)/1.08 "Space Grotesk",
    sans-serif;
  letter-spacing: -0.075em;
  margin: 23px 0;
}
.hs-auth-intro h1 em {
  font-style: normal;
  color: #ed7657;
}
.hs-auth-intro p {
  font-size: 18px;
  line-height: 1.8;
  color: #536b77;
  max-width: 520px;
}
.hs-auth-points {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 35px;
  font-size: 12px;
  color: #3e7d71;
  font-weight: 700;
}
.hs-auth-card {
  background: #fff;
  border: 1px solid #e1ebe7;
  border-radius: 18px;
  padding: 38px;
  box-shadow: 0 25px 75px rgba(40, 70, 70, 0.1);
}
.hs-auth-card h2 {
  font:
    700 31px/1.22 "Space Grotesk",
    sans-serif;
  letter-spacing: -0.045em;
  margin: 12px 0;
}
.hs-auth-subtext {
  color: #6e8390;
  margin-bottom: 25px;
  font-size: 13px;
}
.hs-auth-form {
  display: grid;
  gap: 16px;
}
.hs-auth-form label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
}
.hs-auth-form input {
  height: 44px;
  width: 100%;
  padding: 0 13px;
  border: 1px solid #d7e1e5;
  background: #fff;
  color: #172532;
  border-radius: 8px;
  outline: none;
}
.hs-auth-form input:focus {
  border-color: #238e83;
  box-shadow: 0 0 0 3px #dbf0e9;
}
.hs-auth-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  height: 49px;
  margin-top: 4px;
  border: 0;
  border-radius: 8px;
  padding: 12px 19px;
  background: #172532;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.hs-auth-submit:disabled {
  opacity: 0.65;
}
.hs-auth-submit svg {
  color: #ffae95;
}
.hs-auth-error {
  color: #af4539;
  background: #fff0e9;
  border: 1px solid #ffd5c7;
  border-radius: 8px;
  padding: 11px 14px;
  font-size: 12px;
}
.hs-auth-fallback,
.hs-auth-return {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #158576;
  font-size: 11px;
  font-weight: 700;
}
.hs-auth-back {
  display: block;
  margin: 20px auto 0;
  background: none;
  border: 0;
  color: #158576;
  font-size: 12px;
  font-weight: 700;
}
.hs-auth-note {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #6e8390;
  font-size: 11px;
  line-height: 1.6;
  margin: 20px 0;
}
.hs-auth-return {
  justify-content: center;
}
@media (max-width: 880px) {
  .hs-auth-layout {
    grid-template-columns: 1fr;
    gap: 35px;
    max-width: 600px;
    padding: 20px 24px 70px;
    min-height: 0;
  }
  .hs-auth-intro h1 {
    font-size: 52px;
  }
  .hs-auth-intro p {
    font-size: 16px;
  }
}
@media (max-width: 560px) {
  .hs-auth-brand {
    margin: 20px 19px;
  }
  .hs-auth-layout {
    padding: 18px 16px 50px;
  }
  .hs-auth-intro h1 {
    font-size: 43px;
  }
  .hs-auth-intro p {
    font-size: 14px;
  }
  .hs-auth-card {
    padding: 25px 21px;
  }
}

/* Documentation layout carries over the Django docs' navy sidebar and airy content area. */
.docs-app {
  --docs-sidebar: 264px;
  min-height: 100vh;
  color: #172532;
  background: #f5f7f5;
}
.docs-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--docs-sidebar);
  background: #172532;
  color: #e6f2f5;
  display: flex;
  flex-direction: column;
  z-index: 20;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}
.docs-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 30px 26px 25px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}
.docs-brand-mark {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  flex: none;
  background: #f4f7f1;
  color: #162634;
  border-radius: 12px;
  font:
    700 27px "Space Grotesk",
    sans-serif;
  letter-spacing: -4px;
  padding-right: 4px;
}
.docs-brand-mark span {
  color: #e86c48;
}
.docs-brand strong {
  display: block;
  font:
    700 17px/1.2 "Space Grotesk",
    sans-serif;
  letter-spacing: 0.09em;
  color: #e6f2f5;
}
.docs-brand small {
  display: block;
  font:
    500 9px/1.7 ui-monospace,
    monospace;
  letter-spacing: 0.2em;
  color: #92a5b3;
  margin-top: 3px;
}
.docs-sidebar-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 21px 27px 12px;
  font-size: 11px;
  color: #9db1bd;
  white-space: nowrap;
}
.docs-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #83d8b1;
  box-shadow: 0 0 0 4px rgba(131, 216, 177, 0.09);
}
.docs-version {
  margin-left: auto;
  font:
    700 10px ui-monospace,
    monospace;
  border: 1px solid #42606a;
  border-radius: 4px;
  padding: 0 6px;
}
.docs-side-nav {
  padding: 12px 13px 26px;
  overflow: auto;
  flex: 1;
  min-height: 0;
}
.docs-nav-caption {
  color: #748c9c;
  padding: 16px 14px 6px;
  font:
    700 10px ui-monospace,
    monospace;
  letter-spacing: 0.13em;
}
.docs-nav-link {
  display: block;
  color: #b7c9d3;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 8px;
}
.docs-nav-link:hover {
  color: #fff;
  background: #243a4d;
}
.docs-sidebar-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 24px;
  color: #8eabb8;
  font-size: 11px;
}
.docs-content {
  min-width: 0;
  margin-left: var(--docs-sidebar);
}
.docs-topbar {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 clamp(24px, 4vw, 64px);
  background: #fff;
  border-bottom: 1px solid #e2e9e8;
  position: sticky;
  top: 0;
  z-index: 10;
}
.docs-breadcrumb {
  font-size: 12px;
  color: #667985;
}
.docs-breadcrumb span {
  padding: 0 8px;
  color: #9dabac;
}
.docs-actions {
  display: flex;
  gap: 18px;
  font-size: 12px;
  font-weight: 700;
}
.docs-page .wrap {
  max-width: 1160px;
  padding-left: clamp(24px, 4vw, 64px);
  padding-right: clamp(24px, 4vw, 64px);
}
.docs-page pre {
  color: #d7f0ed;
  background: #101d2a;
}
.docs-menu {
  display: none;
}
@media (max-width: 880px) {
  .docs-sidebar {
    display: none;
  }
  .docs-sidebar.open {
    display: flex;
    top: 72px;
    max-height: calc(100vh - 72px);
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.2);
  }
  .docs-content {
    margin-left: 0;
  }
  .docs-menu {
    display: block;
    font-size: 23px;
    color: #172532;
  }
  .docs-topbar {
    padding: 0 16px;
  }
  .docs-actions {
    gap: 9px;
  }
}

/* Browser-default heading weights are stripped by Tailwind Preflight.
   Django renders headings bold; restore that explicit original weight on every surface. */
.public-site h1,
.public-site h2,
.public-site h3,
.auth-page h1,
.auth-page h2,
.auth-page h3,
.docs-app h1,
.docs-app h2,
.docs-app h3,
.console-shell h1,
.console-shell h2,
.console-shell h3 {
  font-weight: 700;
}

/* Keep the original Django passwordless card's DOM/CSS contract.
   The generic .field control style above is for dashboard controls, not auth labels. */
.auth-page .auth-card .field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  margin: 14px 0;
  padding: 0;
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.auth-page .auth-card .field input {
  display: block;
  width: 100%;
  height: auto;
  min-height: 44px;
  padding: 12px 14px;
  border: 1px solid #aabac4;
  border-radius: 9px;
  background: #fff;
  color: #172532;
  font: inherit;
  font-weight: 400;
  box-sizing: border-box;
}
.auth-page .auth-card .field input:focus {
  outline: none;
  border-color: #238e83;
  box-shadow: 0 0 0 3px #dbf0e9;
}
.auth-page .auth-card .auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: #667985;
}
.auth-page .auth-card .auth-divider::before,
.auth-page .auth-card .auth-divider::after {
  content: "";
  height: 1px;
  background: #d8e0e5;
  flex: 1;
}
.auth-page .auth-card .oauth-button {
  display: block;
  text-align: center;
  border: 1px solid #b3c5d0;
  padding: 13px 16px;
  border-radius: 9px;
  margin-top: 12px;
  text-decoration: none;
  color: inherit;
  font-weight: 600;
}
.auth-page .auth-card .oauth-button:hover {
  border-color: #238e83;
  background: #f7fbf9;
}
.auth-page .auth-card .auth-switch-button {
  width: 100%;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.auth-page .auth-card .primary-action {
  width: 100%;
}
.auth-page .auth-card .primary-action:disabled {
  opacity: 0.65;
  cursor: wait;
}

/* The public contact form uses the exact Django page template's layout/classes. */
.public-site .contact-main .contact-panel h2 {
  font-weight: 700;
}
.public-site .contact-main .contact-form button:disabled {
  opacity: 0.65;
  cursor: wait;
}

/* Respect the original no-motion accessibility fallback across all surfaces. */
@media (prefers-reduced-motion: reduce) {
  .public-site *,
  .auth-page *,
  .console-shell *,
  .docs-app * {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Global light/dark theme. Documentation remains governed by the exact Django
   palette in legacy-docs.css. Other surfaces keep that palette's ink, coral,
   teal, background and panel hierarchy rather than getting redesigned. */
html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #edf6f7;
  --ink2: #d9e9ed;
  --text: #d0e0e5;
  --muted: #a5bbc6;
  --line: #354958;
  --edge: #354958;
  --paper: #101b27;
  --bg: #101b27;
  --surface: #182a39;
  --panel: #182a39;
  --soft: #223947;
  --coral: #ff9169;
  --teal: #6ed5c0;
  --accent: #6ed5c0;
  --shadow: 0 14px 35px rgba(0, 0, 0, 0.14);
}
html[data-theme="dark"] body {
  background: #101b27;
  color: #d0e0e5;
}
html[data-theme="dark"] input,
html[data-theme="dark"] textarea,
html[data-theme="dark"] select {
  color-scheme: dark;
}

/* Common, keyboard-accessible toggle; docs keep Django's existing icon-btn. */
:where(.public-site, .auth-page, .console-shell) .theme-toggle,
.mfa-theme-control .theme-toggle {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid #b8cbd0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.65);
  color: #203d4d;
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s;
}
:where(.public-site, .auth-page, .console-shell) .theme-toggle:hover,
.mfa-theme-control .theme-toggle:hover {
  border-color: #168576;
  background: #e9f6f1;
}
:where(.public-site, .auth-page, .console-shell) .theme-toggle:focus-visible,
.mfa-theme-control .theme-toggle:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
}
html[data-theme="dark"]
  :where(.public-site, .auth-page, .console-shell)
  .theme-toggle,
html[data-theme="dark"] .mfa-theme-control .theme-toggle {
  background: #203644;
  color: #e2eff2;
  border-color: #476274;
}
html[data-theme="dark"]
  :where(.public-site, .auth-page, .console-shell)
  .theme-toggle:hover,
html[data-theme="dark"] .mfa-theme-control .theme-toggle:hover {
  background: #2d4b59;
}

/* Django's login/register logo stays present, alongside an unobtrusive toggle. */
.auth-header {
  position: relative;
  z-index: 1;
  margin: 34px clamp(24px, 5vw, 90px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.auth-header .auth-brand {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 11px;
}
@media (max-width: 520px) {
  .auth-header {
    margin: 22px;
  }
}
.mfa-theme-control {
  position: fixed;
  top: 17px;
  right: 20px;
  z-index: 30;
}

/* Marketing, pricing, help pages, documentation links and public footer. */
html[data-theme="dark"] .public-site {
  background: #101b27;
  color: #d0e0e5;
}
html[data-theme="dark"] .public-site .site-header {
  background: rgba(22, 37, 51, 0.97);
  border-color: #354958;
}
html[data-theme="dark"] .public-site :is(.site-nav a, .login-link) {
  color: #c2d3dc;
}
html[data-theme="dark"] .public-site :is(.site-nav a, .login-link):hover {
  color: #ff9169;
}
html[data-theme="dark"] .public-site :is(.hero, .page-hero, .contact-hero) {
  background:
    radial-gradient(
      circle at 85% 40%,
      rgba(124, 80, 62, 0.21),
      transparent 45%
    ),
    linear-gradient(120deg, #152d36, #152431 65%, #242631);
  border-color: #354958;
}
html[data-theme="dark"] .public-site :is(.steps-section, .product-intro) {
  background: #132230;
  border-color: #354958;
}
html[data-theme="dark"]
  .public-site
  :is(
    .delivery-preview,
    .feature,
    .contact-panel,
    .contact-topic,
    .contact-hero-aside,
    .contact-form-column .contact-panel,
    .explainer-cards article,
    .intro-cards article,
    .explainer-flow > div,
    .explainer-list li,
    .explainer-table-wrap,
    .explainer-faq details,
    .explainer-jump a,
    .price-card,
    .pricing-card
  ) {
  background: #1a2c3a;
  border-color: #354958;
  color: #d0e0e5;
}
html[data-theme="dark"]
  .public-site
  :is(
    .featured-price,
    .contact-detail-card,
    .explainer-flow > div.flow-focus,
    .explainer-note
  ) {
  background: #203645;
  border-color: #415a62;
  color: #d0e0e5;
}
html[data-theme="dark"]
  .public-site
  :is(
    .hero-copy > p,
    .contact-hero p,
    .page-copy p,
    .contact-topic p,
    .explainer-section p,
    .footer-inner p,
    .preview-kicker,
    .preview-live
  ) {
  color: #afc6ce;
}
html[data-theme="dark"]
  .public-site
  :is(.hero-points, .auth-points, .contact-topic a) {
  color: #78d0bc;
}
html[data-theme="dark"] .public-site .button-dark {
  background: #304b5e;
  color: #f2f7f8;
  border-color: #526675;
}
html[data-theme="dark"] .public-site .button-outline,
html[data-theme="dark"] .public-site .explainer-jump a {
  background: #1e3645;
  color: #e3eef1;
  border-color: #537081;
}
html[data-theme="dark"] .public-site .contact-form :is(input, select, textarea),
html[data-theme="dark"]
  .public-site
  .contact-form
  :is(input, select, textarea):focus {
  background: #142634;
  color: #eaf5f7;
  border-color: #547080;
}
html[data-theme="dark"] .public-site .event-icon,
html[data-theme="dark"] .public-site .contact-topic-icon {
  background: #273e49;
  border-color: #466274;
  color: #85d6c3;
}
html[data-theme="dark"] .public-site .explainer-table th {
  background: #25434a;
  color: #e8f4ef;
}
html[data-theme="dark"] .public-site .explainer-section code {
  background: #273d48;
  color: #a6e2d0;
}

/* Email/passwordless sign-in, sign-up and recovery screens. */
html[data-theme="dark"] .auth-page {
  background:
    radial-gradient(
      circle at 10% 30%,
      rgba(174, 105, 73, 0.19),
      transparent 38%
    ),
    linear-gradient(120deg, #182a33, #111e2b);
}
html[data-theme="dark"] .auth-page .auth-card {
  background: #1c2d3d;
  color: #e1edf2;
  border-color: #3d5664;
  box-shadow: 0 25px 75px rgba(0, 0, 0, 0.21);
}
html[data-theme="dark"] .auth-page .auth-mark {
  background: #304455;
  color: #f0f5f7;
}
html[data-theme="dark"]
  .auth-page
  :is(.auth-intro p, .subtext, .auth-switch, .auth-divider) {
  color: #acc1ca;
}
html[data-theme="dark"]
  .auth-page
  :is(.auth-points, .auth-switch a, .back-link) {
  color: #79d2bd;
}
html[data-theme="dark"] .auth-page .auth-card .field input {
  background: #132534;
  color: #f0f8f8;
  border-color: #587080;
}
html[data-theme="dark"] .auth-page .auth-card .oauth-button {
  background: #1b303e;
  color: #e6f2f3;
  border-color: #5a7484;
}
html[data-theme="dark"] .auth-page .auth-card .oauth-button:hover {
  background: #2a4250;
}
html[data-theme="dark"] .auth-page .primary-action {
  background: #304b5e;
  color: #f3f7f8;
}
html[data-theme="dark"] .panel {
  background: #1b2e3d;
  color: #e5f1f3;
  border-color: #3d5664;
}

/* Authenticated workspace: retain the original sidebar and card geometry. */
html[data-theme="dark"] .console-shell {
  background: #101b27;
  color: #d0e0e5;
}
html[data-theme="dark"] .console-shell .console-topbar {
  background: #172938;
  border-color: #354958;
}
html[data-theme="dark"] .console-shell .topbar-links :is(a, button) {
  color: #bfd5dc;
}
html[data-theme="dark"]
  .console-shell
  :is(
    .console-hero,
    .setup-step,
    .stats-row > div,
    .event-detail-card,
    .card-form,
    .empty-code,
    .pill,
    .event-facts div,
    .secret-panel
  ) {
  background: #1e3341;
  border-color: #3b5665;
  color: #dae9ee;
}
html[data-theme="dark"]
  .console-shell
  :is(.content-card, .integration-card, .panel) {
  background: #192d3a;
  border-color: #3b5361;
  color: #dbe9ef;
}
html[data-theme="dark"]
  .console-shell
  :is(.field input, .card-form input, .hero-side select),
html[data-theme="dark"] .console-shell :is(input, textarea, select) {
  background: #122534;
  border-color: #4b6573;
  color: #ebf4f5;
}
html[data-theme="dark"]
  .console-shell
  :is(.copy-btn, .copy-code, .revoke-form button) {
  background: #294353;
  border-color: #526b7d;
  color: #bce6da;
}
html[data-theme="dark"] .console-shell .activity-row:hover {
  background: #213b4a;
}
html[data-theme="dark"] .console-shell .console-footer {
  border-color: #354958;
}
@media (prefers-reduced-motion: reduce) {
  :where(.public-site, .auth-page, .console-shell) .theme-toggle {
    transition: none;
  }
}

/* Original CTA and console button contrast should remain readable in dark mode. */
html[data-theme="dark"] .public-site .cta-section {
  background: #0c1b25;
  color: #e7f0ef;
}
html[data-theme="dark"] .public-site .button-light {
  background: #f4f8f7;
  color: #172532;
}
html[data-theme="dark"]
  .console-shell
  :is(.primary-action, .action-button, .btn) {
  background: #304b5e;
  color: #f1f8f8;
  border-color: #536b7d;
}

/* Django main workspace-pages.css is the reference for all account subpages.
   Preserve the original card scale even where Next.js uses .panel wrappers. */
.console-shell .workspace-main .panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 15px;
  box-shadow: var(--shadow);
  color: var(--ink);
}
.console-shell .workspace-main .panel h2 {
  font-family: "Space Grotesk", system-ui, sans-serif;
  letter-spacing: -0.045em;
}
.console-shell .workspace-main .grid-cards {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 15px;
}
.console-shell .workspace-main .field:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 2px;
}
html[data-theme="dark"]
  .console-shell
  .workspace-main
  :is(.workspace-card, .workspace-plan, .panel, .workspace-empty) {
  background: #192d3a;
  border-color: #3b5361;
  color: #dbe9ef;
}
html[data-theme="dark"]
  .console-shell
  .workspace-main
  :is(.workspace-heading p, .workspace-card p, .workspace-muted) {
  color: #a7bfcb;
}
html[data-theme="dark"]
  .console-shell
  .workspace-main
  :is(.workspace-note, .workspace-secret) {
  background: #213e45;
  color: #c2e6dc;
}
html[data-theme="dark"]
  .console-shell
  .workspace-main
  :is(
    .workspace-field input,
    .workspace-field select,
    .workspace-table select
  ) {
  background: #142938;
  color: #e8f2f5;
  border-color: #4d6a7b;
}
html[data-theme="dark"] .console-shell .workspace-main .workspace-badge {
  background: #21443d;
  color: #a6e6d2;
}
@media (max-width: 650px) {
  .console-shell .workspace-main .grid-cards {
    grid-template-columns: 1fr;
  }
}

/* Workspace parity additions; the canonical layout lives in legacy-workspace-pages.css. */
.console-shell .workspace-panels {
  display: grid;
  gap: 0;
  min-width: 0;
}
.console-shell .workspace-main {
  max-width: 1220px;
  margin: 0 auto;
  width: 100%;
}
.console-shell .workspace-full {
  grid-column: 1 / -1;
}
.console-shell .workspace-url {
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 420px;
}
.console-shell .workspace-actions.workspace-row-actions {
  margin-top: 0;
}
.console-shell .dashboard-panel-actions {
  padding: 12px 23px 23px;
}
.console-shell
  .dashboard-two-col
  > :is(.dashboard-destinations, .hs-project-keys) {
  min-width: 0;
}
.console-shell .dashboard-destinations .workspace-card {
  margin: 0 0 20px;
}
.console-shell .hs-project-keys {
  align-self: start;
}
.console-shell .workspace-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
}
.console-shell .workspace-filter-link {
  display: inline-flex;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.console-shell .workspace-filter-link.is-current {
  background: var(--soft);
  color: var(--teal);
  border-color: var(--teal);
}
.console-shell .workspace-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 23px;
}
.console-shell .workspace-metering-note {
  margin-top: 20px;
}
.console-shell .incoming-secret-editor {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin: 7px 0;
}
.console-shell .incoming-secret-editor input {
  min-width: 190px;
  max-width: 260px;
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.console-shell .workspace-secret {
  max-width: 100%;
  overflow-wrap: anywhere;
}
.console-shell .workspace-table td {
  overflow-wrap: anywhere;
}
.console-shell .workspace-card .workspace-button {
  text-decoration: none;
}
@media (max-width: 1050px) {
  .console-shell .dashboard-two-col {
    grid-template-columns: 1fr;
  }
  .console-shell .dashboard-destinations .workspace-card {
    margin-bottom: 18px;
  }
}
@media (max-width: 650px) {
  .console-shell .workspace-filter {
    gap: 5px;
  }
  .console-shell .workspace-filter-link {
    padding: 7px 10px;
  }
  .console-shell .workspace-pagination {
    flex-wrap: wrap;
  }
  .console-shell .workspace-actions.workspace-row-actions {
    flex-direction: column;
    align-items: stretch;
  }
}
/* Keep original Django cards readable in global dark mode without changing their geometry. */
html[data-theme="dark"]
  .console-shell
  :is(
    .workspace-card,
    .workspace-plan,
    .workspace-empty,
    .workspace-filter-link,
    .workspace-table select
  ) {
  background: #1b2d3d;
  color: #e1eff2;
  border-color: #405969;
}
html[data-theme="dark"]
  .console-shell
  :is(
    .workspace-field input,
    .workspace-field select,
    .incoming-secret-editor input
  ) {
  background: #132636;
  border-color: #527081;
  color: #e7f3f5;
}
html[data-theme="dark"]
  .console-shell
  :is(.workspace-card p, .workspace-muted, .workspace-heading p) {
  color: #aac0ca;
}
html[data-theme="dark"] .console-shell .workspace-note {
  background: #233e45;
  color: #bcebdc;
}
html[data-theme="dark"] .console-shell .workspace-badge {
  background: #24473f;
  color: #9be3cc;
}
html[data-theme="dark"] .console-shell .workspace-secret {
  background: #163440;
  color: #d2f7e9;
}
html[data-theme="dark"] .console-shell .workspace-table td,
html[data-theme="dark"] .console-shell .workspace-table th {
  border-color: #3c5564;
}
html[data-theme="dark"] .console-shell .workspace-button {
  background: #305267;
  color: #f2f8fa;
}
html[data-theme="dark"] .console-shell .workspace-button-alt {
  background: #234050;
  color: #d6ebef;
  border: 1px solid #537181;
}
html[data-theme="dark"] .console-shell .workspace-button-danger {
  background: #533337;
  color: #ffd3ca;
  border: 1px solid #8d5760;
}
html[data-theme="dark"] .console-shell .workspace-plan strong {
  color: #eef7f8;
}
html[data-theme="dark"] .console-shell .billing-status {
  background: #294655;
  color: #d3f1ee;
}

.console-shell .workspace-contract-json {
  width: 100%;
  min-height: 180px;
  padding: 12px 14px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 9px;
  font:
    12px/1.65 ui-monospace,
    monospace;
}
.console-shell .workspace-contract-note {
  margin-top: 20px;
}
html[data-theme="dark"] .console-shell .workspace-contract-json {
  background: #132636;
  color: #dff0f3;
  border-color: #527081;
}

/*
 * DARK MODE LEGIBILITY — keep Django's geometry, change colors only.
 * The original light-mode Django CSS uses many fixed navy/grey text values.
 * Those values become unreadable once cards and page sections turn navy.
 * Scope corrections to dark mode; never change the production light theme.
 */
html[data-theme="dark"]
  .public-site
  :is(
    .feature p,
    .steps-grid p,
    .intro-cards p,
    .explainer-cards article p,
    .pricing-footnote,
    .contact-alt,
    .page-hero p,
    .page-aside a
  ) {
  color: #c3d6dd;
}
html[data-theme="dark"]
  .public-site
  :is(
    .explainer-list li,
    .explainer-flow span,
    .explainer-table td,
    .explainer-faq details,
    .pricing-grid .pricing-price small
  ) {
  color: #c7dbe2;
}
html[data-theme="dark"]
  .public-site
  :is(
    .explainer-list strong,
    .explainer-faq summary,
    .explainer-flow strong,
    .pricing-grid .pricing-price
  ) {
  color: #f3f8fa;
}
html[data-theme="dark"] .public-site .explainer-flow small {
  color: #b4d0d5;
}
html[data-theme="dark"] .public-site .explainer-list li::before {
  color: #ffa37f;
}
html[data-theme="dark"]
  .public-site
  :is(
    .explainer-note strong,
    .explainer-table strong,
    .explainer-faq strong,
    .feature strong,
    .intro-cards strong,
    .explainer-cards strong
  ) {
  color: #edf7f7;
}
html[data-theme="dark"]
  .public-site
  :is(.pricing-footnote a, .text-link, .intro-more a, .contact-alt a) {
  color: #8ae6d1;
}
html[data-theme="dark"] .public-site .explainer-note {
  background: #263947;
  border-left-color: #ff9169;
  color: #d3e3e9;
}
html[data-theme="dark"] .public-site .explainer-table td {
  border-color: #3b5362;
}
html[data-theme="dark"]
  .public-site
  :is(.preview-event, .preview-event:last-child) {
  background: #243e4a;
  border-color: #486576;
  color: #e9f5f6;
}
html[data-theme="dark"] .public-site .preview-event strong {
  color: #f3f9fa;
}
html[data-theme="dark"]
  .public-site
  .preview-event
  span:not(.step-check):not(.status-pill),
html[data-theme="dark"]
  .public-site
  :is(.preview-caption, .preview-event small) {
  color: #bed2dc;
}
html[data-theme="dark"]
  .public-site
  :is(.preview-kicker, .preview-live, .section-intro p, .legal-note, .updated) {
  color: #bed2d9;
}
html[data-theme="dark"] .public-site .preview-event .event-icon {
  background: #31514f;
  color: #a7f2d7;
}
html[data-theme="dark"] .public-site .pricing-grid .pricing-price {
  color: #f5fafb;
}
html[data-theme="dark"] .public-site .pricing-grid .pricing-price small {
  color: #c5d9e1;
}
html[data-theme="dark"] .public-site .featured-price {
  background: #25404d;
  border-color: #557787 !important;
}
html[data-theme="dark"] .public-site .featured-price :is(h3, .pricing-price) {
  color: #f6fbfc;
}

/* App console: native Django console.css contains fixed light-only helper colors. */
html[data-theme="dark"]
  .console-shell
  :is(
    .console-hero p,
    .hero-side label,
    .step-state,
    .count,
    .item-main span,
    .item-main small,
    .code-caption,
    .topbar-eyebrow,
    .activity-title small,
    .empty-state,
    .section-line p,
    .workspace-heading p,
    .workspace-card p
  ) {
  color: #c2d7df;
}
html[data-theme="dark"] :is(.public-site, .console-shell, .auth-page) .muted {
  color: #bdcfd8;
}
html[data-theme="dark"]
  .console-shell
  .card-form
  :is(label, label span, small) {
  color: #d6e5eb;
}
html[data-theme="dark"] .console-shell .count {
  background: #294653;
  border-color: #527181;
  color: #e2f1f3;
}
html[data-theme="dark"] .console-shell .console-project-nav a {
  background: #223a49;
  border-color: #527080;
  color: #a3e8d4;
}
html[data-theme="dark"] .console-shell .console-project-nav a:hover {
  background: #305362;
  border-color: #77b9aa;
  color: #d5fff1;
}
html[data-theme="dark"] .console-shell .console-hero .hero-side .pill {
  color: #a5ead4;
}
html[data-theme="dark"] .console-shell .workspace-card :is(h2, h3, strong),
html[data-theme="dark"]
  .console-shell
  :is(
    .setup-step h3,
    .content-card h2,
    .integration-card h2,
    .stats-row strong,
    .event-detail-card h2,
    .event-detail-card h1,
    .item-main strong
  ) {
  color: #f0f8fa;
}
html[data-theme="dark"] .console-shell .step-link {
  color: #8de6d1;
}
html[data-theme="dark"] .console-shell .workspace-note strong {
  color: #e5fff3;
}
html[data-theme="dark"] .console-shell .event-info p {
  color: #ffbd9e;
}
html[data-theme="dark"] .console-shell .attempt p {
  color: #ffb7a0;
}
html[data-theme="dark"]
  .console-shell
  .workspace-field
  :is(input, select)::placeholder,
html[data-theme="dark"] .console-shell :is(input, textarea)::placeholder {
  color: #b1c9d4;
  opacity: 1;
}

/* Auth and help forms: field label text should never inherit a light-mode navy. */
html[data-theme="dark"]
  .auth-page
  .auth-card
  :is(.field, .field label, label, .small-kicker, .auth-divider) {
  color: #d8eaf0;
}
html[data-theme="dark"] .auth-page .auth-card .auth-divider::before,
html[data-theme="dark"] .auth-page .auth-card .auth-divider::after {
  background: #506775;
}
html[data-theme="dark"]
  .auth-page
  .auth-card
  :is(input, textarea)::placeholder {
  color: #adbfca;
  opacity: 1;
}
html[data-theme="dark"] .public-site .contact-form label {
  color: #e2f0f3;
}
html[data-theme="dark"]
  .public-site
  .contact-form
  :is(input, textarea)::placeholder {
  color: #b5c9d3;
  opacity: 1;
}

/* Console layout: keep navigation reachable at all viewport sizes. */
.console-shell {
  min-width: 0;
  min-height: 100dvh;
  align-items: stretch;
}
.console-shell .console-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100dvh;
}
.console-shell .console-main {
  width: 100%;
  max-width: 1510px;
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.console-shell .console-main > :first-child {
  min-width: 0;
}
.console-shell .console-footer {
  margin-top: auto;
  padding-top: 23px;
}
.console-shell .console-sidebar {
  min-height: 0;
  overflow: hidden;
  max-height: 100dvh;
}
.console-shell .console-nav {
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.console-shell .console-nav a {
  flex-shrink: 0;
}
.console-shell .console-brand {
  flex-shrink: 0;
}
.console-shell .console-sidebar-bottom {
  flex-shrink: 0;
}
.console-shell .console-brand .auth-mark {
  background: #f4f7f4;
  color: #172532;
  flex-shrink: 0;
}
.console-shell .console-brand .auth-mark span {
  color: #ee7857;
}
html[data-theme="dark"] .console-shell .console-brand .auth-mark {
  background: #f4f7f4;
  color: #172532;
}
@media (max-width: 790px) {
  .console-shell .console-content {
    min-height: calc(100dvh - 75px);
  }
  .console-shell .console-sidebar {
    position: relative;
    top: auto;
    z-index: 15;
    height: auto;
    max-height: none;
    overflow: visible;
    display: flex;
    flex-direction: column;
  }
  .console-shell .console-sidebar .console-mobile-menu {
    display: flex;
    margin: 0 16px 14px;
    align-self: stretch;
    width: calc(100% - 32px);
  }
  .console-shell .console-sidebar .console-nav {
    display: none;
    flex: none;
  }
  .console-shell .console-sidebar .console-nav.is-open {
    display: flex;
    flex-direction: column;
    max-height: 55dvh;
    overflow-y: auto;
    margin: 0 0 12px;
  }
  .console-shell .console-sidebar:has(.console-nav.is-open) .sidebar-workspace {
    display: flex;
    margin-bottom: 12px;
  }
  .console-shell .console-sidebar:has(.console-nav.is-open) .side-label {
    display: block;
    padding: 10px 23px;
  }
  .console-shell .console-topbar {
    padding: 0 16px;
    gap: 12px;
  }
  .console-shell .topbar-links {
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}
@media (max-width: 480px) {
  .console-shell .console-topbar {
    height: auto;
    min-height: 70px;
    padding: 12px 14px;
  }
  .console-shell .topbar-links {
    font-size: 11px;
  }
  .console-shell .console-main {
    padding: 18px 14px 28px;
  }
  .console-shell .console-footer {
    flex-wrap: wrap;
    gap: 8px;
  }
}

/* Incoming webhook onboarding: explicit sender -> receiver -> routing -> test flow. */
.console-shell .incoming-setup-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 24px;
}
.console-shell .incoming-setup-flow a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  border: 1px solid #dce7e5;
  border-radius: 12px;
  background: #fff;
  padding: 15px 13px;
  color: #172532;
  text-decoration: none;
  transition:
    border-color 0.2s,
    transform 0.2s;
}
.console-shell .incoming-setup-flow a:hover {
  border-color: #198579;
  transform: translateY(-1px);
}
.console-shell .incoming-setup-flow a:focus-visible {
  outline: 3px solid #198579;
  outline-offset: 2px;
}
.console-shell .incoming-flow-index {
  flex: 0 0 auto;
  font:
    700 12px "Space Grotesk",
    sans-serif;
  border: 1px solid #c5dfd9;
  border-radius: 8px;
  color: #167b70;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
}
.console-shell .incoming-setup-flow strong {
  font-size: 12px;
  line-height: 1.4;
  display: block;
  overflow-wrap: anywhere;
}
.console-shell .incoming-setup-flow small {
  display: block;
  font-size: 10px;
  line-height: 1.5;
  font-weight: 500;
  color: #637f89;
}
.console-shell .incoming-section-label {
  font-size: 10px !important;
  letter-spacing: 0.12em;
  line-height: 1.5;
  font-weight: 800;
  color: #168576 !important;
  margin: 0 0 7px !important;
}
.console-shell .incoming-provider-hint,
.console-shell .incoming-help {
  color: #4b6978;
  font-size: 12px;
  line-height: 1.65;
}
.console-shell .incoming-provider-hint {
  margin: 0;
  padding: 13px 15px;
  border-left: 3px solid #198579;
  background: #f2f8f6;
  border-radius: 0 8px 8px 0;
}
.console-shell .incoming-caution {
  color: #70481d;
  background: #fff9ed;
  border: 1px solid #f1deb1;
  padding: 12px 15px;
  border-radius: 9px;
  font-size: 12px;
  line-height: 1.6;
  margin-top: 16px;
}
.console-shell .incoming-caution a {
  color: #116a63;
  text-decoration: underline;
}
.console-shell .incoming-routing-controls {
  margin-top: 24px;
  border-top: 1px solid #e0e8e8;
  padding-top: 24px;
}
.console-shell .incoming-routing-controls h3 {
  font:
    700 19px "Space Grotesk",
    sans-serif;
}
.console-shell .incoming-readiness {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0;
}
.console-shell .incoming-readiness p {
  background: #f5f8f8;
  border: 1px solid #e0e9e8;
  border-radius: 9px;
  padding: 12px;
  font-size: 12px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.console-shell .incoming-readiness strong {
  display: block;
  color: #188678;
}
.console-shell .incoming-test-instructions > p {
  margin: 12px 0;
}
.console-shell .incoming-test-url {
  margin: 16px 0;
}
.console-shell .incoming-test-url label {
  font-size: 12px;
  font-weight: 700;
  display: block;
  margin: 0 0 8px;
}
.console-shell .incoming-inline-control {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.console-shell .incoming-inline-control input {
  flex: 1 1 320px;
  min-width: 0;
  min-height: 42px;
  background: #f5f8f8;
  border: 1px solid #cbdcde;
  border-radius: 8px;
  padding: 11px 12px;
  font-size: 12px;
  color: #172532;
}
.console-shell .incoming-sample {
  margin-top: 20px;
  min-width: 0;
}
.console-shell .incoming-inline-heading {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.console-shell .incoming-inline-heading h3 {
  font:
    700 17px "Space Grotesk",
    sans-serif;
}
.console-shell .incoming-sample pre {
  margin: 15px 0;
  overflow-x: auto;
  max-width: 100%;
  border-radius: 10px;
  padding: 20px 16px;
  background: #172532;
  color: #f3fafb;
  border: 1px solid #35515f;
  tab-size: 2;
  font-size: 12px;
  line-height: 1.7;
}
.console-shell .incoming-sample pre code {
  color: #f3fafb;
  white-space: pre;
}
.console-shell .incoming-security-note {
  margin-top: 17px;
  font-size: 11px !important;
  line-height: 1.7;
}
.console-shell #incoming-source,
.console-shell #incoming-destination,
.console-shell #incoming-routing,
.console-shell #incoming-test {
  scroll-margin-top: 24px;
}
html[data-theme="dark"] .console-shell .incoming-setup-flow a {
  color: #e8f3f5;
  background: #203440;
  border-color: #3b5360;
}
html[data-theme="dark"] .console-shell .incoming-setup-flow small,
html[data-theme="dark"] .console-shell .incoming-help {
  color: #a9c3cc;
}
html[data-theme="dark"] .console-shell .incoming-flow-index {
  color: #aaf1d5;
  border-color: #4b8178;
}
html[data-theme="dark"] .console-shell .incoming-provider-hint {
  color: #c5e7dc;
  background: #213f3d;
}
html[data-theme="dark"] .console-shell .incoming-readiness p {
  background: #203843;
  border-color: #3d5861;
  color: #c9dfe6;
}
html[data-theme="dark"] .console-shell .incoming-readiness strong {
  color: #9ce7ce;
}
html[data-theme="dark"] .console-shell .incoming-caution {
  background: #4a3927;
  color: #ffe1ac;
  border-color: #80613f;
}
html[data-theme="dark"] .console-shell .incoming-caution a {
  color: #b2f3e3;
}
html[data-theme="dark"] .console-shell .incoming-inline-control input {
  color: #e7f2f4;
  background: #1b313b;
  border-color: #54717d;
}
html[data-theme="dark"] .console-shell .incoming-routing-controls {
  border-color: #3f5862;
}
@media (max-width: 1100px) {
  .console-shell .incoming-setup-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 570px) {
  .console-shell .incoming-setup-flow {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .console-shell .incoming-setup-flow a {
    padding: 12px 9px;
    gap: 8px;
    align-items: flex-start;
  }
  .console-shell .incoming-flow-index {
    width: 26px;
    height: 26px;
    font-size: 10px;
  }
  .console-shell .incoming-readiness {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .console-shell .incoming-inline-control .workspace-button {
    flex: 1 1 100%;
    width: 100%;
  }
  .console-shell .incoming-sample pre {
    padding: 14px 12px;
    font-size: 11px;
  }
}

/* Keep page footers at the viewport bottom when content is short, and in
   normal document flow when the page needs to scroll. */
.public-site {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.public-site > main {
  flex: 1;
}
.public-site > :is(.site-header, .site-footer) {
  flex-shrink: 0;
}
.docs-app .content-shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.docs-app .content-shell > .topbar {
  flex-shrink: 0;
}
.docs-app .content-shell > .main-inner {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
}
.docs-app .main-inner > * {
  flex-shrink: 0;
}
.docs-app .main-inner > .page-footer {
  margin-top: auto;
}
.docs-app .main-inner > :has(+ .page-footer) {
  margin-bottom: 100px;
}
.console-shell .console-main {
  padding-bottom: 0;
}
.console-shell .console-main > :has(+ .console-footer) {
  margin-bottom: 35px;
}
.console-shell .console-main > * {
  flex-shrink: 0;
}
@media (max-width: 790px) {
  .console-shell {
    display: flex;
    flex-direction: column;
  }
  .console-shell .console-sidebar {
    flex-shrink: 0;
  }
  .console-shell .console-content {
    flex: 1;
    min-height: 0;
  }
}


/* Activity explorer: native responsive tables, restrained neutral controls, readable JSON. */
/* Delivery details use simple text and dividers instead of nested tiles. */
.console-shell .activity-explorer .activity-overview {
  box-shadow: none;
}
.console-shell .activity-explorer .activity-facts {
  gap: 0 24px;
  margin: 12px 0 20px;
}
.console-shell .activity-explorer .activity-facts > div,
html[data-theme="dark"] .console-shell .activity-explorer .activity-facts > div {
  background: transparent;
  box-shadow: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 13px 0;
}
.console-shell .activity-explorer .activity-facts dt {
  font-size: 11px;
}
.console-shell .activity-explorer .activity-facts dd {
  margin-top: 5px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.console-shell .activity-table .activity-event-link {
  display: block;
  border-radius: 3px;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
.console-shell .activity-table .activity-event-link:hover strong {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.console-shell .activity-table .activity-event-link:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}
.console-shell .activity-table td[data-label="Status"] {
  white-space: nowrap;
  overflow-wrap: normal;
}
.console-shell .activity-explorer .activity-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: max-content;
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
}
.console-shell .activity-table .activity-status {
  padding: 5px 9px;
}
@media (max-width: 900px) {
  .console-shell .activity-explorer .activity-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 650px) {
  .console-shell .activity-explorer .activity-facts {
    grid-template-columns: 1fr;
  }
}


.console-shell .activity-explorer .workspace-card {
  max-width: 100%;
  min-width: 0;
}
.console-shell .activity-filters .workspace-card-head {
  margin-bottom: 14px;
}
.console-shell .activity-filter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
}
.console-shell .activity-filter-grid .activity-search { grid-column: span 2; }
.console-shell .activity-filter-actions, .console-shell .activity-export-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.console-shell .activity-filter-actions .workspace-button,
.console-shell .activity-export-actions .workspace-button { width: auto; }
.console-shell .activity-export-actions { margin-left: auto; }
.console-shell .activity-id {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
  font-size: 10px;
}
.console-shell .activity-table { min-width: 620px; }
.console-shell .activity-table td { overflow-wrap: anywhere; }
.console-shell .activity-table td:first-child { max-width: 250px; }
.console-shell .activity-facts dd { overflow-wrap: anywhere; }
.console-shell .activity-attempt {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  margin-top: 16px;
}
.console-shell .activity-attempt-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.console-shell .activity-attempt-heading small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}
.console-shell .activity-request-line {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  overflow-wrap: anywhere;
  margin-bottom: 16px;
  font-size: 12px;
}
.console-shell .activity-request-line strong { color: var(--teal); }
.console-shell .activity-error { color: #aa4b37; }
.console-shell .activity-inspect-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.console-shell .activity-log-panel { min-width: 0; }
.console-shell .activity-log-panel h3 {
  font-size: 12px;
  font-weight: 700;
  margin: 12px 0 8px;
}
.console-shell .activity-log-panel pre {
  max-height: 330px;
  overflow: auto;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  word-break: break-word;
}
.console-shell .activity-inbound {
  border-left: 3px solid var(--teal);
  padding: 12px 16px;
  margin: 18px 0;
  background: var(--surface);
}
html[data-theme="dark"] .console-shell .activity-attempt {
  background: #1c303b;
  border-color: #3f5862;
}
html[data-theme="dark"] .console-shell .activity-inbound {
  background: #1c303b;
}
@media (max-width: 900px) {
  .console-shell .activity-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
  .console-shell .activity-filter-grid, .console-shell .activity-inspect-grid {
    grid-template-columns: 1fr;
  }
  .console-shell .activity-filter-grid .activity-search { grid-column: auto; }
  .console-shell .activity-filter-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .console-shell .activity-filter-actions .workspace-button { width: 100%; }
  .console-shell .activity-export-actions .workspace-button {
    flex: 1 1 100px;
    justify-content: center;
  }
  .console-shell .activity-table, .console-shell .activity-table tbody,
  .console-shell .activity-table tr, .console-shell .activity-table td {
    display: block;
    width: 100%;
    min-width: 0;
  }
  .console-shell .activity-table thead { display: none; }
  .console-shell .activity-table tr {
    padding: 12px;
    margin: 0 0 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
  }
  .console-shell .activity-table td {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    text-align: right;
    padding: 10px 0;
  }
  .console-shell .activity-table td:first-child {
    max-width: none;
    display: block;
    text-align: left;
  }
  .console-shell .activity-table td:not(:first-child)::before {
    content: attr(data-label);
    font-weight: 700;
    color: var(--muted);
    margin-right: auto;
    text-align: left;
  }
  .console-shell .activity-table td code { overflow-wrap: anywhere; }
  .console-shell .activity-attempt { padding: 13px; }
}


/* Real-device mobile overflow and navigation guard.
   Vinext can omit the Next.js implicit viewport meta on Cloudflare; RootLayout
   includes an explicit viewport as well. Do not hide wide code blocks: scroll
   those inside their panels instead of expanding the document. */
.console-shell,
.console-shell .console-content,
.console-shell .console-main,
.console-shell .workspace-main {
  box-sizing: border-box;
  min-width: 0;
  width: 100%;
  max-width: 100%;
}
.console-shell .workspace-main :is(
  .workspace-card, .workspace-heading, .workspace-plan, .workspace-form-grid,
  .incoming-setup-flow, .incoming-readiness, .incoming-sample,
  .incoming-routing-controls, .incoming-test-instructions
) {
  min-width: 0;
  max-width: 100%;
}
.console-shell :is(input, select, textarea) {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
}
.console-shell :is(pre, code) {
  max-width: 100%;
}
.console-shell pre {
  overflow-x: auto;
}
@media (max-width: 900px) {
  .console-shell {
    display: flex;
    flex-direction: column;
  }
  .console-shell .console-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    height: auto;
  }
  .console-shell .console-sidebar .console-brand {
    min-width: 0;
    max-width: 100%;
  }
  .console-shell .console-sidebar .console-mobile-menu {
    display: inline-flex;
    justify-self: end;
    align-self: center;
    width: auto;
    min-width: 44px;
    min-height: 44px;
    margin: 0 12px 0 6px;
    white-space: nowrap;
  }
  .console-shell .console-sidebar .console-nav {
    display: none;
    grid-column: 1 / -1;
    min-width: 0;
    max-width: 100%;
    overflow: visible;
  }
  .console-shell .console-sidebar .console-nav.is-open {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }
  .console-shell .console-sidebar .console-nav.is-open a {
    display: flex;
    min-width: 0;
    width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .console-shell .console-content {
    flex: 1 1 auto;
  }
  .console-shell .console-main {
    margin: 0 auto;
  }
}
@media (max-width: 480px) {
  .console-shell .incoming-setup-flow,
  .console-shell .workspace-form-grid,
  .console-shell .incoming-readiness {
    grid-template-columns: minmax(0, 1fr);
  }
  .console-shell .incoming-setup-flow a {
    width: 100%;
    min-width: 0;
  }
  .console-shell .console-sidebar .console-nav.is-open {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .console-shell .workspace-main {
    padding-left: 0;
    padding-right: 0;
  }
  .console-shell .workspace-card {
    box-sizing: border-box;
    overflow-wrap: anywhere;
  }
  .console-shell .workspace-main .workspace-field {
    min-width: 0;
  }
}


/* Management-token inventory: an accessible table on wide panels and
   readable credential cards when the *workspace content* gets narrow.
   Container queries also cover desktop windows with a persistent sidebar. */
.console-shell .management-token-manager,
.console-shell .management-token-history,
.console-shell .management-token-create-card,
.console-shell .management-token-secret-card {
  min-width: 0;
  max-width: 100%;
}
.console-shell .management-token-create-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
  gap: 16px;
}
.console-shell .management-token-field {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 8px;
}
.console-shell .management-token-field-label {
  display: block;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}
.console-shell .management-token-input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}
.console-shell .management-token-input:focus-visible,
.console-shell .management-token-scroll:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 2px;
}
.console-shell .management-token-create-actions {
  grid-column: 1 / -1;
  margin-top: 2px;
}
.console-shell .management-token-secret-card .workspace-secret {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.console-shell .management-token-history {
  container: management-history / inline-size;
}
.console-shell .management-token-history .workspace-card-head {
  min-width: 0;
  flex-wrap: wrap;
  gap: 10px;
}
.console-shell .management-token-scroll {
  max-width: 100%;
  min-width: 0;
  overscroll-behavior-x: contain;
}
.console-shell .management-token-table {
  width: 100%;
  min-width: 970px;
  table-layout: auto;
}
.console-shell .management-token-table :is(th, td) {
  vertical-align: middle;
  padding: 12px 9px;
}
.console-shell .management-token-table :is(th, td):not(:first-child) {
  white-space: nowrap;
}
.console-shell .management-token-table .management-token-name {
  min-width: 130px;
  max-width: 210px;
  overflow-wrap: break-word;
}
.console-shell .management-token-table .management-token-identifier {
  min-width: 180px;
}
.console-shell .management-token-identifier code {
  font-size: 11px;
  white-space: nowrap;
  overflow-wrap: normal;
}
.console-shell .management-token-table .management-token-status,
.console-shell .management-token-table .management-token-revoke {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
  width: auto;
  max-width: none;
  flex-shrink: 0;
}
.console-shell .management-token-table .management-token-status {
  min-height: 28px;
  padding: 5px 11px;
  border-radius: 999px;
  background: #e8f6f0;
  color: #17654d;
  font-size: 11px;
  font-weight: 700;
  text-transform: capitalize;
}
.console-shell .management-token-table .management-token-status-revoked {
  background: #f8e9e5;
  color: #873e32;
}
.console-shell .management-token-table .management-token-status-expired {
  background: #edf1f4;
  color: #516471;
}
.console-shell .management-token-table .management-token-revoke {
  min-width: 82px;
  min-height: 40px;
  padding: 8px 12px;
}
html[data-theme="dark"] .console-shell .management-token-input {
  background: #142938;
  border-color: #4d6a7b;
  color: #e8f2f5;
}
html[data-theme="dark"] .console-shell .management-token-field-label {
  color: #dbe9ef;
}
html[data-theme="dark"] .console-shell .management-token-status-active {
  background: #234e43;
  color: #b6f3db;
}
html[data-theme="dark"] .console-shell .management-token-status-revoked {
  background: #532f31;
  color: #ffd0cc;
}
html[data-theme="dark"] .console-shell .management-token-status-expired {
  background: #344552;
  color: #d5e3e9;
}

@container management-history (max-width: 960px) {
  .console-shell .management-token-scroll {
    overflow-x: hidden;
  }
  .console-shell .management-token-table,
  .console-shell .management-token-table tbody {
    display: block;
    width: 100%;
    min-width: 0;
  }
  .console-shell .management-token-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .console-shell .management-token-table tbody {
    display: grid;
    gap: 12px;
  }
  .console-shell .management-token-table tbody tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 20px;
    min-width: 0;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
  }
  .console-shell .management-token-table td,
  .console-shell .management-token-table td:not(:first-child) {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    min-width: 0;
    width: 100%;
    border: 0;
    padding: 0;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .console-shell .management-token-table td::before {
    content: attr(data-label);
    display: block;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 10px;
    font-weight: 700;
  }
  .console-shell .management-token-table td:first-child {
    grid-column: 1 / -1;
    max-width: none;
  }
  .console-shell .management-token-table .management-token-identifier {
    min-width: 0;
  }
  .console-shell .management-token-table .management-token-identifier code {
    white-space: normal;
    overflow-wrap: anywhere;
    max-width: 100%;
  }
}
@container management-history (max-width: 530px) {
  .console-shell .management-token-table tbody tr {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
  }
}
@media (max-width: 650px) {
  .console-shell .management-token-create-form {
    grid-template-columns: minmax(0, 1fr);
  }
  .console-shell .management-token-create-actions,
  .console-shell .management-token-create-actions .workspace-button {
    width: 100%;
  }
  .console-shell .management-token-history .workspace-card-head {
    align-items: flex-start;
  }
  .console-shell .management-token-history .workspace-card-head h2 {
    overflow-wrap: normal;
  }
}


/* Billing plans are compact rows, not large nested cards. */
.console-shell .billing-plan-options {
  display: block;
  border-top: 1px solid var(--line);
}
.console-shell .billing-plan-options .billing-plan-row,
html[data-theme="dark"] .console-shell .billing-plan-options .billing-plan-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px 28px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  padding: 18px 0;
  min-width: 0;
}
.console-shell .billing-plan-options .billing-plan-copy { min-width: 0; }
.console-shell .billing-plan-options .billing-plan-copy h3 {
  font-size: 17px;
  line-height: 1.3;
  margin: 4px 0 7px;
}
.console-shell .billing-plan-options .billing-plan-copy p {
  margin: 5px 0;
  overflow-wrap: anywhere;
}
.console-shell .billing-plan-options .billing-plan-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  min-width: 0;
}
.console-shell .billing-plan-options .billing-plan-controls strong {
  font-size: 17px;
  white-space: nowrap;
}
.console-shell .billing-plan-options .billing-plan-controls .workspace-button {
  white-space: nowrap;
  width: auto;
}
.console-shell .billing-refund-table :is(td, th) { overflow-wrap: anywhere; }
.console-shell .billing-refund-table .billing-status { white-space: nowrap; }
@media (max-width: 700px) {
  .console-shell .billing-plan-options .billing-plan-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding: 15px 0;
  }
  .console-shell .billing-plan-options .billing-plan-controls {
    justify-content: space-between;
  }
  .console-shell .billing-plan-options .billing-plan-controls strong {
    font-size: 16px;
  }
  .console-shell .billing-history-table,
  .console-shell .billing-history-table tbody,
  .console-shell .billing-history-table tr {
    display: block;
    min-width: 0;
    width: 100%;
  }
  .console-shell .billing-history-table thead { display: none; }
  .console-shell .billing-history-table tr {
    border-bottom: 1px solid var(--line);
    padding: 12px 0;
  }
  .console-shell .billing-history-table td {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    text-align: right;
    gap: 12px;
    padding: 7px 0;
    border: 0;
  }
  .console-shell .billing-history-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-weight: 600;
    text-align: left;
    flex-shrink: 0;
  }
  .console-shell .billing-history-table td code {
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}


/* Destinations: plain rows, compact actions and no nested card chrome. */
.console-shell .destination-list-section,
html[data-theme="dark"] .console-shell .destination-list-section {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}
.console-shell .destination-list-section .workspace-card-head {
  border-bottom: 1px solid var(--line);
  padding-bottom: 15px;
}
.console-shell .destination-table {
  min-width: 0;
  table-layout: fixed;
}
.console-shell .destination-table th:nth-child(1) { width: 23%; }
.console-shell .destination-table th:nth-child(2) { width: 32%; }
.console-shell .destination-table th:nth-child(3) { width: 11%; }
.console-shell .destination-table th:nth-child(4) { width: 34%; }
.console-shell .destination-table td,
.console-shell .destination-table th {
  padding: 15px 10px;
  overflow-wrap: anywhere;
}
.console-shell .destination-table td:first-child,
.console-shell .destination-table th:first-child {
  padding-left: 0;
}
.console-shell .destination-table td:last-child,
.console-shell .destination-table th:last-child {
  padding-right: 0;
}
.console-shell .destination-table td code {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.console-shell .destination-table .destination-status-badge {
  display: inline-flex;
  min-width: max-content;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
}
.console-shell .workspace-actions.destination-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 15px;
  margin: 0;
}
.console-shell .destination-actions .destination-action {
  display: inline-flex;
  width: auto;
  min-height: 28px;
  flex: 0 0 auto;
  align-items: center;
  padding: 2px 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  color: var(--teal);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.console-shell .destination-actions .destination-action:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.console-shell .destination-actions .destination-action:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}
.console-shell .destination-actions .destination-action:disabled {
  opacity: 0.5;
  cursor: wait;
}
.console-shell .destination-actions .destination-action-danger {
  color: #bd4a3f;
}
html[data-theme="dark"] .console-shell .destination-actions .destination-action {
  color: #8edbc6;
}
html[data-theme="dark"] .console-shell .destination-actions .destination-action-danger {
  color: #ffa69d;
}
@media (max-width: 1100px) {
  .console-shell .destination-table,
  .console-shell .destination-table tbody,
  .console-shell .destination-table tr {
    display: block;
    width: 100%;
    min-width: 0;
  }
  .console-shell .destination-table thead { display: none; }
  .console-shell .destination-table tr {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }
  .console-shell .destination-table tr:last-child { border-bottom: 0; }
  .console-shell .destination-table td {
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    border: 0;
    padding: 5px 0;
    text-align: left;
  }
  .console-shell .destination-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
  }
}
@media (max-width: 480px) {
  .console-shell .destination-table td {
    display: block;
    padding: 8px 0;
  }
  .console-shell .destination-table td::before {
    display: block;
    margin-bottom: 5px;
  }
  .console-shell .destination-actions {
    gap: 8px 15px;
  }
}

