.integration-example-map {
  justify-content: stretch;
}

.integration-example-map-body {
  display: grid;
  min-height: 350px;
  padding: 34px 0 24px;
  align-content: center;
  gap: 16px;
}

.integration-example-map-node {
  display: grid;
  padding: 18px 20px;
  color: #f7f9ff;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(173, 189, 204, 0.18);
  border-radius: 14px;
  gap: 5px;
}

.integration-example-map-node.is-piipe {
  background: linear-gradient(135deg, rgba(99, 91, 255, 0.24), rgba(30, 198, 168, 0.09));
  border-color: rgba(139, 133, 255, 0.4);
}

.integration-example-map-node small,
.integration-example-map-request span {
  color: #a9b7ca;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.integration-example-map-node strong {
  font-size: 17px;
}

.integration-example-map-node span {
  color: #aebbcf;
  font-size: 12px;
}

.integration-example-map-request {
  display: flex;
  min-height: 48px;
  padding: 10px 14px;
  align-items: center;
  justify-content: space-between;
  color: #dfe5ff;
  background: rgba(5, 14, 28, 0.62);
  border: 1px solid rgba(173, 189, 204, 0.14);
  border-radius: 12px;
  gap: 12px;
}

.integration-example-map-request b {
  color: #8ee7cb;
  font-size: 11px;
}

.integration-example-map > footer {
  padding-top: 16px;
  color: #aebbcf;
  border-top: 1px solid rgba(173, 189, 204, 0.16);
  font-size: 10px;
  line-height: 1.5;
}

.integration-example-map > footer i {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  background: #79e5c3;
  border-radius: 50%;
}

.integration-example-intro {
  display: flex;
  padding-bottom: 34px;
  align-items: end;
  justify-content: space-between;
  gap: 36px;
}

.integration-example-intro h2 {
  max-width: 800px;
  margin: 14px 0 0;
  color: #0a2540;
  font-size: clamp(36px, 4.8vw, 64px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.integration-example-disclaimer {
  display: flex;
  max-width: 280px;
  flex-wrap: wrap;
  justify-content: flex-end;
  color: #526176;
  font-size: 12px;
  line-height: 1.5;
  gap: 7px;
}

.integration-example-disclaimer strong,
.integration-example-disclaimer span {
  padding: 7px 10px;
  background: #fff;
  border: 1px solid rgba(10, 37, 64, 0.12);
  border-radius: 999px;
}

.integration-example-disclaimer strong {
  color: #4338ca;
}

.saas-example {
  margin-bottom: clamp(90px, 12vw, 150px);
  overflow: hidden;
  color: #14213a;
  background: #e8edf5;
  border: 1px solid rgba(10, 37, 64, 0.13);
  border-radius: 24px;
  box-shadow: 0 30px 90px rgba(41, 55, 82, 0.18);
}

.saas-example button,
.saas-example input {
  font: inherit;
}

.saas-example button {
  cursor: pointer;
}

.saas-example-topbar {
  display: flex;
  min-height: 74px;
  padding: 0 22px;
  align-items: center;
  justify-content: space-between;
  color: #f7f9fd;
  background: #10192a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  gap: 20px;
}

.saas-example-brand,
.saas-example-user,
.saas-example-topbar-actions {
  display: flex;
  align-items: center;
}

.saas-example-brand,
.saas-example-user {
  gap: 11px;
}

.saas-example-brand > span,
.saas-example-user i {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #715cff, #3f53d9);
  border-radius: 11px;
  font-style: normal;
  font-weight: 800;
}

.saas-example-user i {
  width: 34px;
  height: 34px;
  color: #30425e;
  background: #dce5f2;
  border-radius: 50%;
  font-size: 11px;
}

.saas-example-brand div,
.saas-example-user span {
  display: grid;
  gap: 2px;
}

.saas-example-brand strong,
.saas-example-user strong {
  font-size: 13px;
}

.saas-example-brand small,
.saas-example-user small {
  color: #9caac0;
  font-size: 10px;
}

.saas-example-topbar-actions {
  gap: 22px;
}

.saas-example-topbar-actions > button {
  min-height: 40px;
  padding: 0 14px;
  color: #bdc8d8;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9px;
}

.saas-example-layout {
  display: grid;
  grid-template-columns: 178px minmax(0, 1fr);
}

.saas-example-sidebar {
  display: flex;
  min-width: 0;
  padding: 22px 14px;
  flex-direction: column;
  background: #f8fafc;
  border-right: 1px solid #dbe2ec;
  gap: 6px;
}

.saas-example-sidebar a {
  display: flex;
  min-height: 42px;
  padding: 0 12px;
  align-items: center;
  color: #5b6b7f;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 650;
  text-decoration: none;
  gap: 10px;
}

.saas-example-sidebar a span {
  width: 17px;
  color: #8290a2;
  text-align: center;
}

.saas-example-sidebar a[aria-current="page"] {
  color: #362bc3;
  background: #eeecff;
}

.saas-example-content {
  min-width: 0;
  padding: clamp(20px, 3.2vw, 38px);
}

.saas-record-heading {
  display: flex;
  margin-bottom: 24px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.saas-record-heading > div > span {
  color: #748297;
  font-size: 10px;
  font-weight: 750;
}

.saas-record-heading h3 {
  margin: 5px 0 3px;
  color: #13233a;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.045em;
}

.saas-record-heading p {
  margin: 0;
  color: #64748b;
  font-size: 12px;
}

.saas-record-status {
  display: inline-flex;
  padding: 7px 10px;
  align-items: center;
  color: #08715e;
  background: #e6f7f1;
  border: 1px solid #bce9da;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 750;
  gap: 6px;
}

.saas-record-status i {
  width: 6px;
  height: 6px;
  background: #0b9c7c;
  border-radius: 50%;
}

.saas-context-grid {
  display: grid;
  margin-bottom: 22px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.saas-context-grid article {
  display: grid;
  min-width: 0;
  min-height: 112px;
  padding: 17px;
  align-content: start;
  background: #fff;
  border: 1px solid #dce3ec;
  border-radius: 12px;
  gap: 7px;
}

.saas-context-grid span,
.saas-activity-card header span {
  color: #7c899b;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.saas-context-grid strong {
  color: #182a42;
  font-size: 18px;
}

.saas-context-grid small {
  color: #738197;
  font-size: 10px;
  line-height: 1.4;
}

.saas-record-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 18px;
}

.saas-record-primary {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  align-items: start;
  gap: 18px;
}

.saas-protected-card,
.saas-activity-card {
  min-width: 0;
  padding: 22px;
  background: #fff;
  border: 1px solid #dce3ec;
  border-radius: 14px;
}

.saas-protected-card {
  background: linear-gradient(145deg, #ffffff, #fbfaff);
  border-color: #d8d3ff;
  box-shadow: 0 12px 28px rgba(78, 66, 180, 0.06);
}

.saas-protected-heading {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.saas-piipe-mark,
.piipe-example-logo {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #795cff, #3157d5);
  border-radius: 12px;
  font-size: 20px;
  font-weight: 750;
}

.saas-protected-heading small {
  color: #5147ee;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.13em;
}

.saas-protected-heading h4,
.saas-activity-card h4 {
  margin: 3px 0 0;
  color: #172840;
  font-size: 17px;
}

.saas-locked-pill {
  display: inline-flex;
  padding: 7px 9px;
  align-items: center;
  color: #584e73;
  background: #f1eff8;
  border: 1px solid #ded9eb;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 750;
  gap: 6px;
}

.saas-locked-pill i {
  width: 6px;
  height: 6px;
  background: #7f739e;
  border-radius: 50%;
}

.saas-protected-card > p {
  margin: 20px 0 18px;
  color: #536278;
  font-size: 12px;
  line-height: 1.65;
}

.saas-protected-card code,
.piipe-example-boundary code {
  color: #4437c4;
  background: #efedff;
  border-radius: 4px;
  font-size: 0.95em;
}

.saas-protected-card dl {
  display: grid;
  margin: 0 0 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid #e0e4eb;
  border-radius: 10px;
  overflow: hidden;
}

.saas-protected-card dl div {
  min-width: 0;
  padding: 12px;
  border-right: 1px solid #e0e4eb;
}

.saas-protected-card dl div:last-child {
  border-right: 0;
}

.saas-protected-card dt {
  color: #7a8798;
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.saas-protected-card dd {
  margin: 5px 0 0;
  color: #596778;
  font-size: 10px;
  font-weight: 700;
}

.saas-request-button,
.piipe-example-primary,
.piipe-example-secondary {
  display: inline-flex;
  min-height: 44px;
  padding: 0 16px;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 750;
  gap: 10px;
}

.saas-request-button,
.piipe-example-primary {
  color: #fff;
  background: linear-gradient(135deg, #635bff, #4c43e6);
  border: 1px solid #554de9;
  box-shadow: 0 8px 20px rgba(82, 71, 222, 0.2);
}

.saas-request-button:hover,
.saas-request-button:focus-visible,
.piipe-example-primary:hover,
.piipe-example-primary:focus-visible {
  background: #4338ca;
}

.saas-activity-card header {
  display: flex;
  margin-bottom: 16px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.saas-activity-card header button {
  padding: 7px 9px;
  color: #5f6f83;
  background: #f7f9fc;
  border: 1px solid #e0e5ed;
  border-radius: 8px;
  font-size: 9px;
}

.saas-activity-card ol {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  gap: 14px;
}

.saas-activity-card li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
}

.saas-activity-card li > span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: #5147ee;
  background: #eeecff;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 800;
}

.saas-activity-card li div {
  display: grid;
  gap: 3px;
}

.saas-activity-card li strong {
  color: #25364c;
  font-size: 11px;
}

.saas-activity-card li small {
  color: #758398;
  font-size: 9px;
  line-height: 1.45;
}

.piipe-example-panel {
  position: sticky;
  top: 104px;
  min-width: 0;
  min-height: 590px;
  overflow: hidden;
  color: #f6f8fd;
  background:
    radial-gradient(circle at 100% 0, rgba(99, 91, 255, 0.22), transparent 34%),
    linear-gradient(155deg, #12233b, #071321 76%);
  border: 1px solid rgba(74, 97, 130, 0.72);
  border-radius: 16px;
  box-shadow: 0 22px 50px rgba(8, 20, 38, 0.2);
}

.piipe-example-panel > header {
  display: flex;
  min-height: 76px;
  padding: 16px 18px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(173, 189, 204, 0.15);
  gap: 12px;
}

.piipe-example-panel > header > div {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
}

.piipe-example-logo {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  font-size: 18px;
}

.piipe-example-panel header small {
  color: #8ea2bc;
  font-size: 7px;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.piipe-example-panel header h1,
.piipe-example-panel header h4 {
  margin: 3px 0 0;
  color: #f7f9fd;
  font-size: 14px;
}

.piipe-example-panel > header > button {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: #b5c1d2;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(173, 189, 204, 0.16);
  border-radius: 9px;
  font-size: 22px;
}

.piipe-example-state {
  padding: 24px;
}

.piipe-example-state[hidden] {
  display: none !important;
}

.piipe-example-lock {
  display: grid;
  width: 62px;
  height: 62px;
  margin-bottom: 24px;
  place-items: center;
  background: rgba(99, 91, 255, 0.12);
  border: 1px solid rgba(132, 125, 255, 0.3);
  border-radius: 17px;
}

.piipe-example-lock span {
  position: relative;
  display: block;
  width: 22px;
  height: 18px;
  margin-top: 7px;
  border: 2px solid #b9b5ff;
  border-radius: 5px;
}

.piipe-example-lock span::before {
  position: absolute;
  left: 4px;
  bottom: 14px;
  width: 10px;
  height: 10px;
  content: "";
  border: 2px solid #b9b5ff;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
}

.piipe-example-kicker {
  display: block;
  color: #8f8aff;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.piipe-example-state h2,
.piipe-example-state h5 {
  margin: 10px 0 12px;
  color: #f7f9fd;
  font-size: clamp(19px, 2vw, 25px);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.piipe-example-state > p {
  margin: 0 0 20px;
  color: #aebbcf;
  font-size: 11px;
  line-height: 1.65;
}

.piipe-example-state > ul {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  gap: 12px;
}

.piipe-example-state > ul li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  color: #d5ddea;
  font-size: 10px;
  line-height: 1.5;
  gap: 8px;
}

.piipe-example-state > ul li span {
  color: #6fe0bc;
}

.piipe-example-context {
  display: grid;
  margin: 18px 0;
  border: 1px solid rgba(173, 189, 204, 0.16);
  border-radius: 10px;
  overflow: hidden;
}

.piipe-example-context div {
  display: flex;
  min-height: 40px;
  padding: 8px 11px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(173, 189, 204, 0.12);
  gap: 12px;
}

.piipe-example-context div:last-child {
  border-bottom: 0;
}

.piipe-example-context span {
  color: #899bb2;
  font-size: 8px;
  font-weight: 750;
}

.piipe-example-context strong,
.piipe-example-context code {
  min-width: 0;
  color: #dce4ef;
  font-size: 9px;
  text-align: right;
  overflow-wrap: anywhere;
}

.piipe-example-checks {
  display: grid;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  gap: 10px;
}

.piipe-example-checks li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: start;
  gap: 9px;
}

.piipe-example-checks li > span {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  color: #76e4c1;
  background: rgba(54, 202, 158, 0.1);
  border: 1px solid rgba(83, 220, 179, 0.2);
  border-radius: 7px;
  font-size: 9px;
}

.piipe-example-checks li div {
  display: grid;
  gap: 2px;
}

.piipe-example-checks strong {
  color: #e4eaf3;
  font-size: 10px;
}

.piipe-example-checks small {
  color: #91a1b7;
  font-size: 8px;
  line-height: 1.4;
}

.piipe-example-primary,
.piipe-example-secondary {
  width: 100%;
}

.piipe-example-secondary {
  color: #c9d3e1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(173, 189, 204, 0.2);
}

.piipe-example-approved {
  display: flex;
  margin-bottom: 22px;
  padding: 12px;
  align-items: center;
  color: #d7f5eb;
  background: rgba(37, 178, 137, 0.09);
  border: 1px solid rgba(74, 214, 172, 0.22);
  border-radius: 10px;
  gap: 10px;
}

.piipe-example-approved > span {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  background: rgba(83, 220, 179, 0.12);
  border-radius: 8px;
  font-size: 10px;
}

.piipe-example-approved div {
  display: grid;
  gap: 2px;
}

.piipe-example-approved strong {
  font-size: 9px;
}

.piipe-example-approved small {
  color: #8ebcaf;
  font-size: 8px;
}

.piipe-example-fields {
  display: grid;
  margin: 18px 0;
  gap: 8px;
}

.piipe-example-fields div {
  padding: 12px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(173, 189, 204, 0.16);
  border-radius: 9px;
}

.piipe-example-fields dt {
  color: #8799b0;
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.piipe-example-fields dd {
  margin: 4px 0 0;
  color: #f3f6fb;
  font-size: 11px;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.piipe-example-boundary {
  display: grid;
  padding: 11px;
  grid-template-columns: 24px minmax(0, 1fr);
  background: rgba(99, 91, 255, 0.08);
  border: 1px solid rgba(130, 123, 255, 0.18);
  border-radius: 9px;
  gap: 9px;
}

.piipe-example-boundary > span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: #fff;
  background: #635bff;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 800;
}

.piipe-example-boundary code {
  color: #bebaff;
  background: rgba(99, 91, 255, 0.12);
}

.piipe-example-actions {
  display: grid;
  margin-top: 14px;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.piipe-example-actions .piipe-example-secondary {
  width: auto;
}

.piipe-example-state label {
  display: grid;
  margin-top: 12px;
  color: #aebbcf;
  font-size: 9px;
  font-weight: 700;
  gap: 6px;
}

.piipe-example-state input {
  width: 100%;
  min-height: 43px;
  padding: 0 11px;
  color: #f5f7fb;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(173, 189, 204, 0.22);
  border-radius: 9px;
  outline: 0;
}

.piipe-example-state input:focus {
  border-color: #8e88ff;
  box-shadow: 0 0 0 3px rgba(99, 91, 255, 0.18);
}

.piipe-example-success {
  display: grid;
  width: 58px;
  height: 58px;
  margin-bottom: 22px;
  place-items: center;
  color: #8af0cf;
  background: rgba(50, 195, 151, 0.11);
  border: 1px solid rgba(74, 214, 172, 0.24);
  border-radius: 17px;
  font-size: 22px;
}

.piipe-example-receipt {
  margin: 18px 0;
  padding: 16px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(173, 189, 204, 0.16);
  border-radius: 11px;
}

.piipe-example-receipt > span {
  color: #8d9db2;
  font-size: 7px;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.piipe-example-receipt > code {
  display: block;
  margin: 5px 0 12px;
  color: #bcb8ff;
  font-size: 11px;
}

.piipe-example-receipt dl {
  display: grid;
  margin: 0;
  border-top: 1px solid rgba(173, 189, 204, 0.13);
}

.piipe-example-receipt dl div {
  display: flex;
  padding: 8px 0;
  justify-content: space-between;
  border-bottom: 1px solid rgba(173, 189, 204, 0.1);
  font-size: 8px;
  gap: 12px;
}

.piipe-example-receipt dt {
  color: #899bb2;
}

.piipe-example-receipt dd {
  margin: 0;
  color: #d9e1ec;
  font-weight: 700;
}

.piipe-viewer-modal {
  width: min(720px, calc(100% - 32px));
  max-width: 720px;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  overflow: visible;
  color: #f6f8fd;
  background: #071321;
  border: 1px solid rgba(132, 148, 173, 0.34);
  border-radius: 24px;
  opacity: 0;
  box-shadow: 0 36px 120px rgba(3, 10, 22, 0.58);
  transform: translateY(18px) scale(0.975);
  transition:
    opacity 190ms ease,
    transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

.piipe-viewer-modal:not([open]) {
  display: none;
}

.piipe-viewer-modal[open].is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.piipe-viewer-modal.is-closing {
  pointer-events: none;
}

.piipe-viewer-modal::backdrop {
  background: rgba(5, 12, 25, 0.72);
  backdrop-filter: blur(10px) saturate(0.82);
  opacity: 0;
  transition: opacity 220ms ease;
}

.piipe-viewer-modal.is-visible::backdrop {
  opacity: 1;
}

.piipe-viewer-modal-shell {
  position: relative;
  min-height: min(720px, calc(100dvh - 32px));
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0, rgba(99, 91, 255, 0.2), transparent 34%),
    linear-gradient(155deg, #12233b, #071321 76%);
  border-radius: inherit;
}

.piipe-viewer-modal-title {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.piipe-viewer-modal iframe {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: min(720px, calc(100dvh - 32px));
  opacity: 0;
  background: #071321;
  border: 0;
  transform: translateY(7px);
  transition:
    opacity 170ms ease,
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.piipe-viewer-modal.is-ready iframe {
  opacity: 1;
  transform: translateY(0);
}

.piipe-viewer-modal-close {
  position: absolute;
  z-index: 5;
  top: 17px;
  right: 17px;
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  color: #c7d0de;
  background: rgba(7, 19, 33, 0.66);
  border: 1px solid rgba(173, 189, 204, 0.2);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(3, 10, 22, 0.2);
  cursor: pointer;
}

.piipe-viewer-modal-close:hover,
.piipe-viewer-modal-close:focus-visible {
  color: #fff;
  background: #283b55;
  outline: 2px solid #8f8aff;
  outline-offset: 2px;
}

.piipe-viewer-modal-close span {
  font-size: 24px;
  line-height: 1;
}

.piipe-viewer-modal-loading {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  color: #dce4ef;
  gap: 14px;
}

.piipe-viewer-modal-loading strong {
  font-size: 12px;
  letter-spacing: 0.02em;
}

.piipe-viewer-modal-loading i {
  display: block;
  width: 34px;
  height: 3px;
  overflow: hidden;
  background: rgba(173, 189, 204, 0.18);
  border-radius: 999px;
}

.piipe-viewer-modal-loading i::after {
  display: block;
  width: 45%;
  height: 100%;
  content: "";
  background: #8f8aff;
  border-radius: inherit;
  animation: piipe-viewer-loading 900ms ease-in-out infinite alternate;
}

.piipe-viewer-modal.is-ready .piipe-viewer-modal-loading {
  visibility: hidden;
}

@keyframes piipe-viewer-loading {
  to { transform: translateX(122%); }
}

html:has(.piipe-viewer-document) {
  min-height: 100%;
  background: #071321;
}

.piipe-viewer-document {
  min-height: 100%;
  margin: 0;
  color: #f6f8fd;
  background: #071321;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.piipe-viewer-document *,
.piipe-viewer-document *::before,
.piipe-viewer-document *::after {
  box-sizing: border-box;
}

.piipe-viewer-document button,
.piipe-viewer-document input {
  font: inherit;
}

.piipe-viewer-document button {
  cursor: pointer;
}

.piipe-viewer-document .piipe-example-panel {
  position: static;
  width: 100%;
  min-height: 100dvh;
  color: #f6f8fd;
  background:
    radial-gradient(circle at 100% 0, rgba(99, 91, 255, 0.2), transparent 34%),
    linear-gradient(155deg, #12233b, #071321 76%);
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.piipe-viewer-document .piipe-example-panel > header {
  position: sticky;
  z-index: 2;
  top: 0;
  padding: 16px 76px 16px 24px;
  background: rgba(10, 25, 44, 0.88);
  backdrop-filter: blur(16px);
}

.piipe-viewer-document .piipe-example-state {
  width: min(100%, 620px);
  margin: 0 auto;
  padding: clamp(26px, 5vw, 44px);
}

.piipe-viewer-document .piipe-example-state > p {
  font-size: 13px;
}

.piipe-viewer-document .piipe-example-context {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.piipe-viewer-document .piipe-example-context div:nth-child(2) {
  border-bottom: 1px solid rgba(173, 189, 204, 0.12);
}

.piipe-viewer-document .piipe-example-context div:nth-child(odd) {
  border-right: 1px solid rgba(173, 189, 204, 0.12);
}

.piipe-viewer-document .piipe-example-panel > footer {
  display: flex;
  min-height: 54px;
  padding: 14px 24px;
  align-items: center;
  justify-content: space-between;
  color: #8fa0b6;
  border-top: 1px solid rgba(173, 189, 204, 0.13);
  font-size: 9px;
  gap: 16px;
}

.piipe-viewer-document .piipe-example-panel > footer span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.piipe-viewer-document .piipe-example-panel > footer i,
.piipe-viewer-session i {
  width: 6px;
  height: 6px;
  background: #6fe0bc;
  border-radius: 50%;
}

.piipe-viewer-document .piipe-example-panel > footer strong {
  color: #b9c5d6;
  font-size: 9px;
}

.piipe-viewer-session {
  display: inline-flex;
  padding: 7px 10px;
  align-items: center;
  color: #aee8d5;
  background: rgba(37, 178, 137, 0.08);
  border: 1px solid rgba(74, 214, 172, 0.18);
  border-radius: 999px;
  font-size: 8px;
  font-weight: 750;
  gap: 6px;
}

.saas-example-caption {
  margin: 0;
  padding: 14px 20px;
  color: #637187;
  background: #f7f9fc;
  border-top: 1px solid #dbe2ec;
  font-size: 10px;
  line-height: 1.55;
  text-align: center;
}

.integration-example-explanation .section-heading h2 {
  max-width: 820px;
}

.integration-example-benefits {
  display: grid;
  margin-top: 42px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(10, 37, 64, 0.13);
  border-left: 1px solid rgba(10, 37, 64, 0.13);
  border-radius: 18px;
  overflow: hidden;
}

.integration-example-benefits article {
  min-width: 0;
  min-height: 250px;
  padding: 26px;
  color: #0a2540;
  background: #fff;
  border-right: 1px solid rgba(10, 37, 64, 0.13);
  border-bottom: 1px solid rgba(10, 37, 64, 0.13);
}

.integration-example-benefits article > span {
  color: #5147ee;
  font-size: 10px;
  font-weight: 850;
}

.integration-example-benefits h3 {
  margin: 32px 0 10px;
  color: #0a2540;
  font-size: 23px;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.integration-example-benefits p {
  margin: 0;
  color: #425466;
  font-size: 14px;
  line-height: 1.65;
}

@media (max-width: 1080px) {
  .saas-context-grid,
  .integration-example-benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .integration-example-intro {
    display: grid;
    align-items: start;
  }

  .integration-example-disclaimer {
    max-width: none;
    justify-content: flex-start;
  }

  .saas-example-layout {
    grid-template-columns: 1fr;
  }

  .saas-example-sidebar {
    padding: 10px;
    flex-direction: row;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid #dbe2ec;
  }

  .saas-example-sidebar a {
    flex: 0 0 auto;
  }

  .saas-record-columns {
    grid-template-columns: 1fr;
  }

  .saas-record-primary {
    grid-template-columns: 1fr;
  }

  .piipe-example-panel {
    position: relative;
    top: auto;
    min-height: 0;
    scroll-margin-top: 90px;
  }
}

@media (max-width: 620px) {
  .integration-example-map-body {
    min-height: 300px;
  }

  .saas-example {
    width: calc(100% - 24px);
    border-radius: 18px;
  }

  .saas-example-topbar {
    min-height: 68px;
    padding: 0 14px;
  }

  .saas-example-user span,
  .saas-example-topbar-actions > button {
    display: none;
  }

  .saas-example-content {
    padding: 16px;
  }

  .saas-record-heading {
    align-items: start;
  }

  .saas-record-heading p {
    max-width: 240px;
  }

  .saas-context-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .saas-context-grid article {
    min-height: 104px;
    padding: 14px;
  }

  .saas-protected-card,
  .saas-activity-card,
  .piipe-example-state {
    padding: 18px;
  }

  .saas-protected-heading {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .saas-locked-pill {
    display: none;
  }

  .saas-protected-card dl {
    grid-template-columns: 1fr;
  }

  .saas-protected-card dl div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-right: 0;
    border-bottom: 1px solid #e0e4eb;
  }

  .saas-protected-card dl div:last-child {
    border-bottom: 0;
  }

  .saas-request-button {
    width: 100%;
  }

  .piipe-example-actions {
    grid-template-columns: 1fr;
  }

  .piipe-example-actions .piipe-example-secondary {
    width: 100%;
  }

  .piipe-viewer-modal {
    width: calc(100% - 16px);
    max-height: calc(100dvh - 16px);
    border-radius: 18px;
  }

  .piipe-viewer-modal-shell {
    min-height: calc(100dvh - 16px);
  }

  .piipe-viewer-modal iframe {
    height: calc(100dvh - 16px);
  }

  .piipe-viewer-document .piipe-example-panel > header {
    padding-left: 18px;
  }

  .piipe-viewer-document .piipe-example-state {
    padding: 24px 18px;
  }

  .piipe-viewer-document .piipe-example-context {
    grid-template-columns: 1fr;
  }

  .piipe-viewer-document .piipe-example-context div,
  .piipe-viewer-document .piipe-example-context div:nth-child(odd) {
    border-right: 0;
    border-bottom: 1px solid rgba(173, 189, 204, 0.12);
  }

  .piipe-viewer-document .piipe-example-context div:last-child {
    border-bottom: 0;
  }

  .piipe-viewer-session {
    display: none;
  }

  .integration-example-benefits {
    grid-template-columns: 1fr;
  }

  .integration-example-benefits article {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .saas-example {
    scroll-behavior: auto;
  }

  .piipe-viewer-modal iframe {
    transition: none;
  }

  .piipe-viewer-modal,
  .piipe-viewer-modal::backdrop {
    transition: none;
  }

  .piipe-viewer-modal-loading i::after {
    animation: none;
  }
}
