/* Singular browser checkpoints measured at 1502 × 777. Keep this workspace scoped. */
.desk-main:has(> #view-post-impact.active) {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}
#view-post-impact.active {
  min-height: calc(100vh - 64px);
}
.pi-app {
  --pi-blue: #bf7059;
  --pi-dark: #3a3631;
  --pi-line: #ebe6de;
  --pi-muted: #6f6a62;
  --pi-pale: #faf8f4;
  color: #3a3631;
  background: #faf8f4;
  font-family: Figtree, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  min-height: calc(100vh - 64px);
  font-weight: 400;
}
.pi-app * {
  box-sizing: border-box;
}
.pi-app button,
.pi-app input,
.pi-app select {
  font: inherit;
}
.pi-app button {
  cursor: pointer;
}
.pi-app button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
.pi-app button:focus-visible,
.pi-app a:focus-visible,
.pi-app input:focus-visible,
.pi-app select:focus-visible {
  outline: 2px solid #6f6a62;
  outline-offset: 3px;
}
.pi-app h2,
.pi-app h3,
.pi-app h4,
.pi-app p {
  margin: 0;
}
.pi-app h2 {
  font-size: 25px;
  font-weight: 600;
  line-height: 1.3;
}
.pi-app h3 {
  font-size: 17px;
  font-weight: 500;
}
.pi-app h4 {
  font-size: 14px;
  font-weight: 500;
}
.pi-app a {
  color: #bf7059;
  text-decoration: none;
}
.pi-app a:hover {
  text-decoration: underline;
}
.pi-app code {
  font-family: ui-monospace, monospace;
  font-size: 12px;
}
.pi-muted {
  color: #6f6a62;
  font-size: 13px;
}
.pi-top {
  height: 50px;
  background: var(--pi-blue);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white;
  padding: 0 22px;
  gap: 20px;
}
.pi-product {
  font-size: 23px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}
.pi-product-mark {
  font-size: 32px;
  font-weight: 400;
  line-height: 1;
}
.pi-product-by {
  font-size: 11px;
  font-weight: 400;
  opacity: 0.8;
  margin: 4px 0 0 5px;
}
.pi-top-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}
.pi-top-actions .pi-button {
  border: 0;
  color: #fff;
  background: transparent;
  padding: 4px 0;
  font-weight: 400;
}
.pi-company {
  padding-left: 22px;
  margin-left: 6px;
  border-left: 1px solid #ffffff44;
  white-space: nowrap;
}
.pi-body {
  display: flex;
  min-height: calc(100vh - 114px);
}
.pi-rail {
  width: 60px;
  flex: 0 0 60px;
  background: var(--pi-dark);
  padding-top: 28px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.pi-rail button {
  height: 52px;
  width: 100%;
  background: transparent;
  border: 0;
  color: #ebe6de;
  font-size: 22px;
}
.pi-rail button:hover,
.pi-rail button.active {
  background: #6f6a62;
}
.pi-rail-bottom {
  margin-top: auto;
  color: #ebe6de;
  padding: 22px;
  text-align: center;
  font-size: 20px;
}
.pi-content {
  width: calc(100% - 60px);
  min-width: 0;
  padding: 8px 40px 0;
  overflow-x: auto;
}
.pi-guide {
  border: 1px solid var(--pi-line);
  display: flex;
  min-height: calc(100vh - 123px);
  background: #fff;
}
.pi-guide-nav {
  width: 338px;
  flex: 0 0 338px;
  border-right: 1px solid var(--pi-line);
  padding-bottom: 25px;
  background: #fff;
}
.pi-guide-nav > button {
  display: flex;
  gap: 10px;
  text-align: left;
  align-items: center;
  min-height: 47px;
  width: 100%;
  padding: 12px 16px;
  border: 0;
  background: #fff;
  color: #6f6a62;
  font-weight: 400;
}
.pi-guide-nav > button:first-child {
  min-height: 60px;
}
.pi-guide-nav > button.active {
  background: #faf8f4;
}
.pi-guide-nav > button:hover {
  background: #faf8f4;
}
.pi-step-number {
  border: 1px solid #6f6a62;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 22px;
  font-size: 13px;
}
.pi-completed {
  margin-left: auto;
  border-radius: 100%;
  color: white;
  background: #d6cabe;
  width: 17px;
  height: 17px;
  text-align: center;
  font-size: 11px;
}
.pi-guide-nav h4 {
  padding: 22px 18px 8px;
  color: #6f6a62;
  font-size: 12px;
}
.pi-guide-nav > button.pi-button {
  font-size: 13px;
  min-height: 35px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.pi-guide-nav > button.pi-your-reports {
  color: #3a3631;
  margin-top: 15px;
  border-top: 1px solid #ebe6de;
}
.pi-guide-main {
  flex: 1;
  min-width: 0;
}
.pi-wizard {
  min-height: 715px;
  padding: 40px min(8vw, 102px) 55px;
  position: relative;
  display: flex;
  flex-direction: column;
}
.pi-plan-steps {
  display: flex;
  list-style: none;
  margin: 0 0 56px;
  padding: 0 55px;
  justify-content: center;
  align-items: flex-start;
}
.pi-plan-steps li {
  width: 20%;
  position: relative;
}
.pi-plan-steps li:not(:last-child):after {
  content: "";
  position: absolute;
  top: 13px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: #ebe6de;
}
.pi-plan-steps button {
  border: 0;
  background: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: #6f6a62;
  line-height: 1.4;
  text-align: center;
  padding: 0 3px;
  width: 100%;
  position: relative;
  z-index: 1;
  font-size: 14px;
}
.pi-plan-steps button span {
  background: #d6cabe;
  color: white;
  border-radius: 50%;
  width: 25px;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pi-plan-steps li.active button span,
.pi-plan-steps li.complete button span {
  background: var(--pi-blue);
}
.pi-wizard > h2 {
  text-align: center;
  margin: 0 0 42px;
}
.pi-platform-question {
  text-align: center;
  margin-top: 16px !important;
}
.pi-help-dot {
  font-size: 10px;
  border: 1px solid #6f6a62;
  color: #6f6a62;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-left: 8px;
}
.pi-platforms {
  display: grid;
  grid-template-columns: 180px 180px;
  gap: 20px 30px;
  justify-content: center;
  margin-top: 25px;
}
.pi-platform-card {
  height: 80px;
  border: 1px solid #ebe6de;
  border-radius: 8px;
  display: flex;
  align-items: center;
  padding: 15px;
  gap: 9px;
  color: #6f6a62;
  box-shadow: inset 0 0 0 1px #faf8f4;
  cursor: pointer;
}
.pi-platform-card.selected {
  border-color: #bf7059;
  background: #faf8f4;
}
.pi-platform-card.disabled {
  background: #faf8f4;
  color: #d6cabe;
  cursor: not-allowed;
}
.pi-platform-card input,
.pi-question input,
.pi-checkbox input {
  accent-color: #bf7059;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.pi-platform-card input {
  width: 14px;
  height: 14px;
  margin: 0;
}
.pi-platform-icon {
  font-size: 22px;
  margin-left: auto;
  width: 32px;
  height: 32px;
  border-radius: 3px;
  background: #ebe6de;
  text-align: center;
  line-height: 32px;
}
.selected .pi-platform-icon {
  background: #bf7059;
  color: #3a3631;
}
.pi-platform-hint {
  text-align: center;
  font-size: 11px;
  color: #6f6a62;
  margin-top: 14px !important;
}
.pi-wizard-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 22px;
  margin-top: auto;
  padding-top: 42px;
}
.pi-button {
  padding: 8px 15px;
  min-height: 36px;
  border: 1px solid #d6cabe;
  background: white;
  border-radius: 1px;
  color: #3a3631;
  font-weight: 400;
  line-height: 1.25;
  white-space: nowrap;
}
.pi-button:hover {
  border-color: #bf7059;
  background: #faf8f4;
}
.pi-button.pi-primary {
  background: var(--pi-blue);
  border-color: var(--pi-blue);
  color: white;
  min-width: 126px;
}
.pi-button.pi-primary:hover {
  background: #bf7059;
}
.pi-wizard-actions > .pi-button:first-child {
  border-color: transparent;
}
.pi-questions {
  border: 1px solid var(--pi-line);
  margin: 0 0 10px;
  min-height: 150px;
}
.pi-question {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 43px;
  padding: 10px;
  cursor: pointer;
  font-size: 14px;
}
.pi-question > span:not(.pi-na) {
  flex: 1;
}
.pi-na {
  display: none;
  color: #6f6a62;
}
.pi-question input {
  margin: 0;
}
.pi-questions > h4 {
  background: #faf8f4;
  padding: 15px 10px;
  color: #3a3631;
}
.pi-scroll-questions {
  max-height: 350px;
  overflow-y: auto;
}
.pi-mediation {
  background: #faf8f4;
}
.pi-mediation select {
  width: 150px;
  border: 1px solid #ebe6de;
  background: white;
  padding: 7px;
}
.pi-plan-summary {
  padding: 45px 9%;
}
.pi-plan-summary h2 {
  margin-bottom: 30px;
}
.pi-summary-table {
  border: 1px solid var(--pi-line);
  max-height: 510px;
  overflow: auto;
}
.pi-summary-table h4 {
  padding: 12px;
  background: #faf8f4;
}
.pi-summary-table > div {
  display: flex;
  gap: 25px;
  justify-content: space-between;
  padding: 10px 14px;
  border-top: 1px solid #faf8f4;
}
.pi-summary-table strong {
  font-weight: 400;
  min-width: 65px;
}
.pi-page-head {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.pi-instructions {
  padding: 42px 7%;
  max-width: 1200px;
}
.pi-instructions > p {
  margin-bottom: 18px;
  line-height: 1.65;
}
.pi-instructions > h3 {
  margin: 25px 0 13px;
}
.pi-instructions ol,
.pi-instructions ul {
  padding-left: 24px;
  margin: 20px 0 26px;
  line-height: 1.8;
}
.pi-instructions li {
  padding-left: 3px;
  margin-bottom: 7px;
}
.pi-notice {
  padding: 12px 15px;
  border: 1px solid #ebe6de;
  border-left: 3px solid #bf7059;
  background: #faf8f4;
  color: #6f6a62;
  font-size: 13px;
  margin-bottom: 22px;
  line-height: 1.55;
}
.pi-notice.pi-error {
  background: #fff1f0;
  border-color: #e9b5b0;
  border-left-color: #d55d5d;
  color: #9b3838;
}
.pi-notice .pi-button {
  margin: 0 0 0 15px;
  min-height: 28px;
  padding: 4px 9px;
}
.pi-guide-footer {
  border-top: 1px solid #ebe6de;
  margin-top: 48px;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
}
.pi-code {
  background: #faf8f4;
  border: 1px solid #ebe6de;
  color: #3a3631;
  font:
    12px/1.7 ui-monospace,
    monospace;
  padding: 20px;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 18px 0 24px;
}
.pi-status-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid #ebe6de;
  margin: 25px 0;
}
.pi-status-grid > div {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 23px;
  border-right: 1px solid #ebe6de;
}
.pi-status-grid strong {
  font-size: 20px;
  font-weight: 500;
}
.pi-status-grid span {
  font-size: 12px;
  color: #6f6a62;
}
.pi-definition-list {
  border: 1px solid #ebe6de;
  margin-bottom: 30px;
}
.pi-definition-list > div {
  padding: 17px;
  display: flex;
  gap: 20px;
  border-bottom: 1px solid #ebe6de;
}
.pi-definition-list code {
  min-width: 110px;
  color: #bf7059;
}
.pi-flow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 30px 0;
}
.pi-flow span {
  padding: 15px;
  background: #faf8f4;
  border: 1px solid #ebe6de;
  border-radius: 4px;
  flex: 1;
  text-align: center;
}
.pi-flow b {
  color: #6f6a62;
}
.pi-status-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 3px;
  font-size: 11px;
  white-space: nowrap;
  line-height: 1.3;
}
.pi-status-ok {
  background: #e7f5ee;
  color: #2c7e59;
}
.pi-status-pending {
  background: #faf8f4;
  color: #6f6a62;
}
.pi-instructions > .pi-status-badge {
  margin-bottom: 20px;
}
.pi-connectors {
  border: 1px solid #ebe6de;
  margin: 26px 0;
}
.pi-connector {
  display: flex;
  align-items: center;
  gap: 17px;
  border-bottom: 1px solid #ebe6de;
  padding: 23px;
}
.pi-connector:last-child {
  border-bottom: 0;
}
.pi-connector-icon {
  height: 42px;
  width: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ebe6de;
  color: #bf7059;
  font-size: 28px;
  border-radius: 6px;
}
.pi-connector > div {
  flex: 1;
}
.pi-connector h3 {
  margin-bottom: 5px;
}
.pi-connector p {
  font-size: 12px;
  color: #6f6a62;
}
.pi-inline-actions {
  display: flex;
  gap: 12px;
  margin: 22px 0;
}
.pi-table-wrap {
  overflow: auto;
  border: 1px solid #ebe6de;
  background: white;
}
.pi-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
  line-height: 1.5;
}
.pi-table th {
  font-size: 11px;
  font-weight: 500;
  color: #6f6a62;
  padding: 14px 16px;
  background: #faf8f4;
  border-bottom: 1px solid #ebe6de;
  white-space: nowrap;
}
.pi-table td {
  padding: 16px;
  border-bottom: 1px solid #ebe6de;
  vertical-align: top;
}
.pi-table tr:last-child td {
  border-bottom: 0;
}
.pi-table td strong {
  font-weight: 500;
}
.pi-table td small {
  display: block;
  margin-top: 4px;
  color: #6f6a62;
}
.pi-table td a {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.pi-row-actions {
  display: flex;
  gap: 5px;
}
.pi-row-actions .pi-button {
  font-size: 11px;
  min-height: 28px;
  padding: 5px 8px;
}
.pi-table td.pi-empty {
  text-align: center;
  padding: 55px 30px;
  color: #6f6a62;
  font-size: 13px;
}
.pi-app-config,
.pi-workspace,
.pi-reports {
  padding: 30px 0 45px;
}
.pi-backbar {
  padding: 0 18px;
  background: #faf8f4;
  border-bottom: 1px solid #bf7059;
  margin: -30px -40px 30px;
  text-align: center;
  min-height: 36px;
}
.pi-backbar .pi-button {
  background: none;
  border: 0;
  min-height: 35px;
  font-size: 14px;
}
.pi-app-tools {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  justify-content: space-between;
  margin: 0 0 35px;
}
.pi-app-tools .pi-field {
  width: 45%;
  margin: 0;
}
.pi-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  color: #6f6a62;
  margin-bottom: 18px;
  min-width: 0;
}
.pi-field input,
.pi-field select {
  width: 100%;
  border: 1px solid #d6cabe;
  color: #6f6a62;
  background: #fff;
  min-height: 37px;
  border-radius: 1px;
  padding: 8px 11px;
  outline-offset: 2px;
}
.pi-field input::placeholder {
  color: #d6cabe;
  font-style: italic;
}
.pi-app-card {
  border: 1px solid #ebe6de;
  background: white;
  border-radius: 4px;
  margin-bottom: 22px;
  overflow: hidden;
}
.pi-app-card > header {
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 12px 22px;
  min-height: 89px;
}
.pi-app-card h3 {
  flex: 1;
  font-size: 16px;
  font-weight: 400;
}
.pi-app-icon {
  width: 64px;
  height: 64px;
  border-radius: 4px;
  background: #f3e0d2;
  color: #b27955;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 36px;
}
.pi-app-url {
  display: flex;
  align-items: center;
  gap: 25px;
  padding: 20px;
  background: #faf8f4;
  border-top: 1px solid #ebe6de;
  border-bottom: 1px solid #ebe6de;
  overflow-wrap: anywhere;
}
.pi-app-url > .pi-status-badge {
  margin-left: auto;
}
.pi-app-details {
  display: flex;
  gap: 30px;
  padding: 28px 22px;
}
.pi-app-details > div {
  display: flex;
  gap: 10px;
  flex-direction: column;
  padding-right: 30px;
  border-right: 1px solid #ebe6de;
  font-size: 12px;
  min-width: 100px;
}
.pi-app-details > div > span {
  color: #6f6a62;
}
.pi-app-details strong {
  font-weight: 400;
}
.pi-empty-card {
  border: 1px solid #ebe6de;
  padding: 70px 30px;
  background: white;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}
.pi-empty-icon {
  font-size: 40px;
  color: #d6cabe;
}
.pi-empty-card p {
  color: #6f6a62;
}
.pi-workspace > .pi-muted {
  margin-bottom: 25px;
}
.pi-reports .pi-page-head {
  margin-bottom: 18px;
}
.pi-report-description {
  color: #6f6a62;
  margin-bottom: 25px !important;
}
.pi-report-filters {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: wrap;
  background: #fff;
  border: 1px solid #ebe6de;
  padding: 20px;
  margin-bottom: 20px;
}
.pi-report-filters .pi-field {
  flex: 1;
  min-width: 125px;
  margin: 0;
}
.pi-report-filters .pi-field:has([name="search"]) {
  min-width: 180px;
}
.pi-report-filters > .pi-button {
  margin-bottom: 0;
}
.pi-metrics {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: white;
  border: 1px solid #ebe6de;
  border-radius: 4px;
  margin: 22px 0;
}
.pi-metric {
  background: white;
  border: 0;
  border-right: 1px solid #ebe6de;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 16px;
  min-width: 0;
  border-bottom: 3px solid transparent;
}
.pi-metric:last-child {
  border-right: 0;
}
.pi-metric.active {
  background: #faf8f4;
  border-bottom-color: #bf7059;
}
.pi-metric > span {
  font-size: 12px;
  color: #6f6a62;
}
.pi-metric strong {
  font-size: 24px;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.pi-metric small {
  font-size: 10px;
  color: #6f6a62;
}
.pi-chart-card {
  background: white;
  border: 1px solid #ebe6de;
  border-radius: 4px;
  padding: 23px;
  margin-bottom: 30px;
}
.pi-chart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.pi-chart-head > span {
  color: #6f6a62;
  font-size: 12px;
}
.pi-chart {
  width: 100%;
  display: block;
  max-height: 240px;
  margin-top: 20px;
}
.pi-chart-grid line {
  stroke: #faf8f4;
  stroke-width: 1;
}
.pi-chart text {
  font-family: Figtree, Arial, sans-serif;
  font-size: 10px;
  fill: #6f6a62;
}
.pi-chart-empty {
  padding: 75px 20px;
  text-align: center;
  color: #6f6a62;
}
.pi-report-table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.pi-report-table-head h3 > span {
  font-size: 11px;
  color: #6f6a62;
  border: 1px solid #ebe6de;
  background: #faf8f4;
  padding: 3px 7px;
  border-radius: 4px;
  margin-left: 7px;
}
.pi-posts-table td:first-child {
  min-width: 230px;
  max-width: 360px;
}
.pi-posts-table td:first-child > a {
  display: block;
  margin-top: 5px;
}
.pi-report-foot {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}
.pi-settings-form {
  max-width: 500px;
}
.pi-modal-shade {
  position: fixed;
  inset: 0;
  background: #18283d66;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px;
  backdrop-filter: blur(2px);
}
.pi-modal {
  background: white;
  width: 560px;
  max-width: 100%;
  max-height: 90vh;
  border-radius: 5px;
  box-shadow: 0 15px 60px #18284044;
  display: flex;
  flex-direction: column;
}
.pi-modal > header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  border-bottom: 1px solid #ebe6de;
}
.pi-modal h2 {
  font-size: 20px;
}
.pi-modal > header .pi-button {
  padding: 2px 8px;
  font-size: 24px;
  border: 0;
}
.pi-modal > form {
  overflow: auto;
}
.pi-modal-body {
  padding: 25px;
}
.pi-modal > form > footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 18px 25px;
  border-top: 1px solid #ebe6de;
  background: #faf8f4;
}
.pi-modal > .pi-notice {
  margin: 12px 25px 0;
}
.pi-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #6f6a62;
}
.pi-starting {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
  color: #6f6a62;
}
.pi-loading .pi-top {
  opacity: 0.85;
}
.pi-validation {
  margin: 30px 0;
}
.pi-validation > div {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid #ebe6de;
}
.pi-validation p {
  margin-top: 5px;
  color: #6f6a62;
}
.pi-validation-icon {
  color: #6f6a62;
  border: 1px solid #d6cabe;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  text-align: center;
  line-height: 28px;
}
.pi-validation-icon.ok {
  color: #4c9f80;
  border-color: #6cbca0;
  background: #eff9f4;
}
@media (max-width: 1250px) {
  .pi-content {
    padding-left: 22px;
    padding-right: 22px;
  }
  .pi-guide-nav {
    width: 270px;
    flex-basis: 270px;
  }
  .pi-wizard {
    padding: 40px 35px;
  }
  .pi-plan-steps {
    padding: 0;
  }
  .pi-backbar {
    margin-left: -22px;
    margin-right: -22px;
  }
  .pi-metrics {
    grid-template-columns: repeat(4, 1fr);
  }
  .pi-metric {
    border-bottom: 1px solid #ebe6de;
  }
  .pi-metric.active {
    box-shadow: inset 0 -3px #bf7059;
  }
  .pi-instructions {
    padding: 35px 6%;
  }
  .pi-top-actions {
    gap: 14px;
  }
  .pi-product-by {
    display: none;
  }
}
@media (max-width: 900px) {
  .pi-top {
    padding: 0 15px;
  }
  .pi-top-actions {
    gap: 10px;
  }
  .pi-company {
    display: none;
  }
  .pi-guide-nav {
    width: 225px;
    flex-basis: 225px;
  }
  .pi-guide-nav > button {
    font-size: 12px;
    padding-left: 12px;
  }
  .pi-wizard {
    padding: 30px 24px;
    min-height: 680px;
  }
  .pi-plan-steps {
    margin-bottom: 40px;
  }
  .pi-plan-steps button {
    font-size: 11px;
  }
  .pi-platforms {
    grid-template-columns: 145px 145px;
    gap: 15px;
  }
  .pi-platform-card {
    padding: 11px;
    font-size: 12px;
  }
  .pi-platform-icon {
    width: 25px;
    font-size: 17px;
  }
  .pi-wizard > h2 {
    font-size: 22px;
  }
  .pi-status-grid {
    grid-template-columns: 1fr;
  }
  .pi-status-grid > div {
    border-bottom: 1px solid #ebe6de;
  }
  .pi-question {
    font-size: 12px;
  }
  .pi-app-details {
    flex-wrap: wrap;
  }
  .pi-flow {
    gap: 8px;
  }
  .pi-flow span {
    font-size: 11px;
    padding: 12px 8px;
  }
  .pi-app-url {
    gap: 12px;
    flex-wrap: wrap;
  }
  .pi-app-url > .pi-status-badge {
    margin-left: 0;
  }
}
@media (max-width: 650px) {
  .pi-top {
    height: auto;
    min-height: 74px;
    flex-wrap: wrap;
    gap: 3px;
    padding: 10px 14px;
  }
  .pi-product {
    font-size: 20px;
  }
  .pi-top-actions {
    width: 100%;
    justify-content: space-between;
  }
  .pi-top-actions .pi-button {
    font-size: 11px;
    min-height: 25px;
  }
  .pi-rail {
    width: 40px;
    flex-basis: 40px;
    padding-top: 10px;
  }
  .pi-rail button {
    height: 45px;
    font-size: 19px;
  }
  .pi-rail-bottom {
    padding: 15px 8px;
  }
  .pi-content {
    width: calc(100% - 40px);
    padding: 8px;
  }
  .pi-guide {
    display: block;
  }
  .pi-guide-nav {
    width: 100%;
    border-right: 0;
    border-bottom: 1px solid var(--pi-line);
    display: flex;
    overflow: auto;
    padding: 0;
    max-height: 62px;
  }
  .pi-guide-nav > button {
    flex: 0 0 auto;
    min-height: 60px;
    width: auto;
    font-size: 11px;
    max-width: 180px;
  }
  .pi-guide-nav h4,
  .pi-guide-nav > .pi-button,
  .pi-guide-nav > .pi-your-reports {
    display: none;
  }
  .pi-guide-nav > button:first-child {
    min-height: 60px;
  }
  .pi-wizard {
    padding: 28px 14px;
    min-height: 610px;
  }
  .pi-plan-steps {
    margin-bottom: 35px;
  }
  .pi-plan-steps button {
    font-size: 9px;
    padding: 0 1px;
    gap: 8px;
  }
  .pi-plan-steps button span {
    width: 22px;
    height: 22px;
    font-size: 11px;
  }
  .pi-plan-steps li:not(:last-child):after {
    top: 11px;
  }
  .pi-platforms {
    grid-template-columns: 130px 130px;
    gap: 12px;
  }
  .pi-wizard > h2 {
    font-size: 20px;
    margin-bottom: 30px;
  }
  .pi-platform-question {
    font-size: 12px;
  }
  .pi-platform-card {
    height: 70px;
    gap: 7px;
  }
  .pi-platform-icon {
    width: 23px;
    height: 25px;
    line-height: 25px;
  }
  .pi-wizard-actions {
    gap: 8px;
  }
  .pi-wizard-actions .pi-button {
    font-size: 12px;
    padding: 8px 12px;
  }
  .pi-button.pi-primary {
    min-width: 90px;
  }
  .pi-instructions {
    padding: 26px 18px;
  }
  .pi-page-head {
    align-items: flex-start;
    gap: 8px;
  }
  .pi-app h2 {
    font-size: 21px;
  }
  .pi-app h3 {
    font-size: 15px;
  }
  .pi-page-head .pi-button {
    font-size: 11px;
    padding: 8px 10px;
    min-width: 0;
  }
  .pi-questions {
    max-height: 290px;
    overflow: auto;
  }
  .pi-mediation {
    display: block;
  }
  .pi-mediation select {
    width: 100%;
    margin-top: 10px;
  }
  .pi-plan-summary {
    padding: 25px 18px;
  }
  .pi-backbar {
    margin-left: -8px;
    margin-right: -8px;
  }
  .pi-app-config,
  .pi-workspace,
  .pi-reports {
    padding: 25px 5px;
  }
  .pi-app-tools .pi-field {
    width: 65%;
  }
  .pi-app-tools .pi-button {
    font-size: 11px;
    padding: 8px;
  }
  .pi-app-card > header {
    padding: 12px;
  }
  .pi-app-icon {
    width: 45px;
    height: 45px;
  }
  .pi-app-url {
    font-size: 11px;
    padding: 14px;
  }
  .pi-app-details {
    gap: 20px;
    padding: 18px;
  }
  .pi-connector {
    padding: 16px 12px;
    gap: 10px;
    flex-wrap: wrap;
  }
  .pi-connector-icon {
    width: 33px;
    height: 33px;
    font-size: 22px;
  }
  .pi-connector > .pi-status-badge {
    margin-left: 43px;
  }
  .pi-flow {
    flex-wrap: wrap;
  }
  .pi-flow span {
    width: 100%;
    flex: auto;
  }
  .pi-flow b {
    margin: auto;
    transform: rotate(90deg);
  }
  .pi-definition-list > div {
    display: block;
  }
  .pi-definition-list code {
    display: block;
    margin-bottom: 5px;
  }
  .pi-definition-list span {
    font-size: 12px;
  }
  .pi-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .pi-metric {
    padding: 17px 14px;
  }
  .pi-metric strong {
    font-size: 23px;
  }
  .pi-report-filters {
    padding: 14px;
    gap: 10px;
  }
  .pi-report-filters .pi-field {
    min-width: 100px;
  }
  .pi-chart-card {
    padding: 15px;
  }
  .pi-chart-head {
    gap: 12px;
    align-items: flex-start;
  }
  .pi-chart-head > span {
    font-size: 10px;
  }
  .pi-report-table-head {
    gap: 10px;
  }
  .pi-report-table-head .pi-button {
    font-size: 11px;
    min-width: 0;
    padding: 8px;
  }
  .pi-report-foot {
    gap: 8px;
  }
  .pi-report-foot .pi-button {
    font-size: 11px;
    padding: 8px;
  }
  .pi-modal-shade {
    padding: 15px;
  }
  .pi-modal {
    max-height: 93vh;
  }
  .pi-modal-body {
    padding: 20px;
  }
  .pi-modal > header {
    padding: 16px 20px;
  }
}
.pi-report-builder {
  padding: 30px 0 45px;
  position: relative;
}
.pi-get-started {
  border: 2px solid #70c8b7;
  border-radius: 7px;
  background: #fff;
  padding: 10px 27px 20px;
  margin-bottom: 20px;
  min-height: 190px;
}
.pi-get-started h3 {
  font-size: 19px;
  margin-bottom: 7px;
}
.pi-get-started p {
  line-height: 1.5;
  margin-bottom: 10px;
}
.pi-get-started > div {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
}
.pi-get-started > div > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 22px;
  height: 22px;
  border-radius: 50%;
  background: #68c7b4;
  color: white;
  font-size: 12px;
  margin-right: 5px;
}
.pi-get-started .pi-button {
  min-width: 49px;
  min-height: 30px;
  padding: 5px 10px;
}
.pi-builder-toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  padding-bottom: 0;
  margin: 0 0 0;
}
.pi-builder-toolbar > span {
  flex: 1;
}
.pi-builder-toolbar > .pi-button:first-child {
  border-color: #ebe6de;
  color: #bf7059;
  font-size: 13px;
}
.pi-builder-toolbar > .pi-button[data-pi-action="export"] {
  background: #58a497;
  color: white;
  border-color: #58a497;
  min-width: 132px;
}
.pi-builder-toolbar .pi-filter-toggle {
  background: #faf8f4;
  border-color: #bf7059;
  color: #6f6a62;
}
.pi-builder-filters {
  display: flex;
  gap: 30px;
  align-items: center;
  background: white;
  border-top: 1px solid #ebe6de;
  border-bottom: 1px solid #ebe6de;
  margin: 0 -40px;
  padding: 27px 40px 24px;
}
.pi-builder-filters[hidden] {
  display: none;
}
.pi-builder-filters > label {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}
.pi-builder-filters > label > span {
  font-size: 13px;
  color: #6f6a62;
  border: 1px solid #ebe6de;
  padding: 9px 10px;
  min-width: 95px;
}
.pi-builder-filters select {
  min-height: 37px;
  padding: 8px 10px;
  background: white;
  border: 1px solid #ebe6de;
  color: #6f6a62;
  min-width: 0;
  width: 100%;
}
.pi-builder-filters > .pi-field {
  margin: 0;
  flex: 0.7;
}
.pi-builder-filters > .pi-field > span {
  display: none;
}
.pi-builder-controls {
  background: #faf8f4;
  padding: 18px 0 0;
}
.pi-builder-search {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}
.pi-builder-search > input {
  border: 1px solid #ebe6de;
  background: white;
  height: 37px;
  width: 260px;
  border-radius: 3px;
  padding: 8px 12px;
  color: #6f6a62;
}
.pi-builder-search > .pi-button {
  border: 0;
  background: transparent;
  color: #6f6a62;
}
.pi-builder-panel {
  background: white;
  border: 1px solid #ebe6de;
  border-radius: 17px;
  padding: 25px;
  margin-bottom: 16px;
}
.pi-builder-panel > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 24px;
}
.pi-builder-panel > header > .pi-button {
  border: 0;
  background: none;
  color: #6f6a62;
}
.pi-builder-panel h3 {
  font-size: 17px;
  font-weight: 500;
}
.pi-time-breakdown {
  display: flex;
  gap: 25px;
  align-items: center;
  min-height: 86px;
}
.pi-time-breakdown > div {
  display: flex;
  background: #faf8f4;
  border-radius: 40px;
}
.pi-time-breakdown button {
  width: 85px;
  border: 1px solid transparent;
  background: none;
  border-radius: 40px;
  height: 36px;
  font-size: 14px;
}
.pi-time-breakdown button.selected {
  background: #faf8f4;
  border-color: #d6cabe;
  box-shadow: 0 1px 3px #b3c6da44;
}
.pi-time-breakdown button:last-child {
  width: 110px;
}
.pi-builder-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}
.pi-field-toggle {
  border: 1px solid #d6cabe;
  background: #fff;
  border-radius: 4px;
  min-height: 36px;
  padding: 7px 10px;
  text-align: left;
  font-size: 14px;
  color: #6f6a62;
}
.pi-field-toggle.selected {
  background: #faf8f4;
  border-color: #d6cabe;
  color: #3a3631;
}
.pi-field-toggle > span {
  display: block;
  font-size: 9px;
  color: #6f6a62;
}
.pi-field-toggle:disabled {
  opacity: 0.42;
}
.pi-builder-unavailable {
  margin: 24px -25px -25px;
  padding: 22px 25px;
  border-top: 1px solid #ebe6de;
  background: #faf8f4;
  border-radius: 0 0 17px 17px;
}
.pi-builder-unavailable h4 {
  margin-bottom: 6px;
}
.pi-builder-unavailable p {
  font-size: 12px;
  color: #6f6a62;
  display: inline;
  margin-right: 20px;
}
.pi-builder-note {
  color: #6f6a62;
  font-size: 12px;
  margin-top: 20px !important;
}
.pi-builder-ready {
  padding: 40px 20px;
  text-align: center;
  color: #6f6a62;
}
.pi-built-result > header > span {
  color: #6f6a62;
  font-size: 12px;
}
.pi-built-result .pi-empty h3 {
  margin-bottom: 10px;
}
.pi-date-popover {
  position: absolute;
  top: 285px;
  left: 0;
  z-index: 20;
  background: white;
  border: 1px solid #ebe6de;
  border-radius: 4px;
  box-shadow: 0 7px 30px #253c5a26;
  display: flex;
  min-width: 500px;
}
.pi-date-presets {
  width: 160px;
  padding: 10px 0;
  border-right: 1px solid #ebe6de;
}
.pi-date-presets .pi-button {
  display: block;
  background: white;
  border: 0;
  text-align: left;
  width: 100%;
  min-height: 30px;
  font-size: 12px;
  padding: 7px 16px;
}
.pi-date-presets .pi-button:hover {
  background: #faf8f4;
}
.pi-date-custom {
  padding: 22px;
  flex: 1;
}
.pi-date-custom footer {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}
.pi-date-custom .pi-button {
  font-size: 12px;
  min-width: 70px;
}
.pi-app-editor form > header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px 22px;
  min-height: 89px;
}
.pi-app-name {
  border: 0;
  flex: 1;
  min-width: 0;
  font-size: 16px !important;
  padding: 12px;
  outline-offset: 0;
}
.pi-app-edit-body {
  padding: 12px 22px 20px;
}
.pi-app-edit-body > p {
  color: #6f6a62;
  font-size: 12px;
  margin-bottom: 10px;
}
.pi-os-options {
  display: flex;
  gap: 24px;
  margin-bottom: 22px;
}
.pi-os-options label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #6f6a62;
}
.pi-os-options input,
.pi-app-method input {
  accent-color: #bf7059;
}
.pi-app-method {
  display: flex;
  gap: 15px;
  align-items: center;
  color: #6f6a62;
  font-size: 12px;
  margin-bottom: 25px;
}
.pi-app-method label {
  display: flex;
  gap: 4px;
  align-items: center;
  color: #6f6a62;
}
.pi-app-id-fields {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.pi-app-id-fields > .pi-field {
  flex: 1;
}
.pi-site-id {
  display: flex;
  gap: 15px;
  flex-direction: column;
  padding: 10px 14px;
  border-left: 1px solid #ebe6de;
  min-width: 120px;
  color: #6f6a62;
  font-size: 12px;
}
.pi-site-id strong {
  font-weight: 400;
  color: #6f6a62;
}
.pi-receipt {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  color: #6f6a62;
  font-size: 12px;
}
.pi-receipt small {
  color: #6f6a62;
}
.pi-app-edit-body > footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
}
.pi-app-id-fields > .pi-field:has([name="bundle_id"]) {
  display: none;
}
.pi-app-editor:has([name="app_method"][value="bundle"]:checked)
  .pi-app-id-fields
  > .pi-field:has([name="store_url"]) {
  display: none;
}
.pi-app-editor:has([name="app_method"][value="bundle"]:checked)
  .pi-app-id-fields
  > .pi-field:has([name="bundle_id"]) {
  display: flex;
}
@media (max-width: 1250px) {
  .pi-builder-filters {
    margin-left: -22px;
    margin-right: -22px;
    padding-left: 22px;
    padding-right: 22px;
  }
  .pi-builder-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .pi-builder-filters {
    gap: 15px;
  }
  .pi-builder-filters > label > span {
    min-width: 65px;
  }
}
@media (max-width: 900px) {
  .pi-builder-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .pi-builder-filters {
    flex-wrap: wrap;
  }
  .pi-builder-filters > .pi-field {
    flex: 1;
    min-width: 150px;
  }
  .pi-time-breakdown {
    gap: 15px;
  }
  .pi-time-breakdown h3 {
    font-size: 14px;
  }
  .pi-time-breakdown button {
    width: 60px;
    font-size: 12px;
  }
  .pi-time-breakdown button:last-child {
    width: 85px;
  }
  .pi-get-started {
    padding: 15px;
  }
  .pi-get-started > div {
    font-size: 12px;
  }
  .pi-builder-panel {
    padding: 20px;
  }
  .pi-builder-unavailable {
    margin-left: -20px;
    margin-right: -20px;
    margin-bottom: -20px;
    padding: 20px;
  }
}
@media (max-width: 650px) {
  .pi-report-builder {
    padding: 25px 5px;
  }
  .pi-builder-toolbar {
    flex-wrap: wrap;
  }
  .pi-builder-toolbar > .pi-button {
    font-size: 11px;
    min-width: 80px !important;
  }
  .pi-builder-toolbar > .pi-button:first-child {
    font-size: 11px;
  }
  .pi-builder-toolbar > span {
    display: none;
  }
  .pi-get-started > div {
    flex-wrap: wrap;
    margin: 7px 0;
  }
  .pi-get-started {
    font-size: 12px;
    min-height: 190px;
  }
  .pi-builder-filters {
    margin-left: -8px;
    margin-right: -8px;
    padding: 18px 13px;
    gap: 15px;
  }
  .pi-builder-filters > label {
    min-width: 100%;
    flex: 1;
  }
  .pi-builder-filters > .pi-field {
    min-width: 100%;
  }
  .pi-builder-search {
    gap: 10px;
  }
  .pi-builder-search input {
    width: 170px;
    min-width: 0;
    font-size: 11px;
  }
  .pi-builder-search > .pi-button {
    font-size: 10px;
    padding: 5px;
  }
  .pi-time-breakdown {
    display: block;
    padding: 18px 15px;
  }
  .pi-time-breakdown h3 {
    margin-bottom: 12px;
  }
  .pi-time-breakdown > div {
    width: 100%;
  }
  .pi-time-breakdown button {
    flex: 1;
  }
  .pi-builder-panel {
    padding: 18px 15px;
    border-radius: 10px;
  }
  .pi-builder-panel > header {
    margin-bottom: 16px;
  }
  .pi-builder-panel h3 {
    font-size: 15px;
  }
  .pi-builder-panel > header > .pi-button {
    font-size: 10px;
    padding: 5px;
  }
  .pi-builder-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pi-field-toggle {
    font-size: 11px;
    min-height: 35px;
    padding: 6px 8px;
  }
  .pi-builder-unavailable {
    margin-left: -15px;
    margin-right: -15px;
    margin-bottom: -18px;
    padding: 18px 15px;
    border-radius: 0 0 10px 10px;
  }
  .pi-builder-unavailable p {
    display: block;
    margin: 8px 0;
  }
  .pi-date-popover {
    min-width: 0;
    width: 100%;
    top: 325px;
  }
  .pi-date-presets {
    width: 120px;
    flex-shrink: 0;
  }
  .pi-date-presets .pi-button {
    font-size: 10px;
    padding: 7px 10px;
  }
  .pi-date-custom {
    padding: 15px 10px;
  }
  .pi-date-custom .pi-field {
    font-size: 10px;
  }
  .pi-date-custom input {
    font-size: 11px;
    padding: 6px;
  }
  .pi-date-custom footer {
    gap: 4px;
  }
  .pi-date-custom .pi-button {
    min-width: 0;
    padding: 7px;
    font-size: 10px;
  }
  .pi-app-editor form > header {
    padding: 12px;
  }
  .pi-app-edit-body {
    padding: 15px 12px;
  }
  .pi-app-method {
    gap: 7px;
    font-size: 10px;
    flex-wrap: wrap;
  }
  .pi-os-options {
    gap: 15px;
  }
  .pi-site-id {
    min-width: 90px;
    padding: 10px;
    font-size: 10px;
  }
  .pi-app-id-fields {
    gap: 10px;
  }
  .pi-receipt {
    flex-wrap: wrap;
  }
}
.pi-guide-nav > button[data-pi-step] {
  min-height: 60px;
  border-bottom: 1px solid #ebe6de;
}
.pi-guide-nav.pi-guide-collapsed > :not(:first-child) {
  display: none;
}
.pi-onboarding-progress {
  height: 30px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: #6f6a62;
  background: white;
}
.pi-onboarding-progress > i {
  display: block;
  width: 330px;
  height: 9px;
  background: #ebe6de;
  border-radius: 20px;
  overflow: hidden;
}
.pi-onboarding-progress > i > b {
  display: block;
  height: 9px;
  background: #ad2d31;
  border-radius: 20px;
}
.pi-date-popover {
  min-width: 760px;
  max-width: 100%;
  left: 0;
}
.pi-date-custom {
  min-width: 0;
}
.pi-calendar-nav {
  display: flex;
  justify-content: space-between;
}
.pi-calendar-nav .pi-button {
  border: 0;
  min-height: 25px;
  font-size: 20px;
  padding: 0 8px;
  min-width: 0;
}
.pi-calendars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  margin-bottom: 15px;
}
.pi-calendar h4 {
  text-align: center;
  margin: 0 0 16px;
  font-size: 13px;
}
.pi-calendar-week,
.pi-calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  gap: 3px;
}
.pi-calendar-week span {
  font-size: 10px;
  color: #6f6a62;
  padding-bottom: 7px;
}
.pi-calendar-days button {
  width: 27px;
  height: 27px;
  border: 0;
  background: white;
  color: #6f6a62;
  border-radius: 2px;
  font-size: 11px;
  padding: 0;
}
.pi-calendar-days button.selected {
  background: #bf7059;
  color: white;
}
.pi-calendar-days button.in-range {
  background: #faf8f4;
  color: #bf7059;
}
.pi-calendar-days button:hover {
  box-shadow: inset 0 0 0 1px #bf7059;
}
.pi-date-entry {
  display: flex;
  gap: 15px;
}
.pi-date-entry > .pi-field {
  flex: 1;
  min-width: 0;
  font-size: 11px;
}
.pi-date-entry input {
  font-size: 12px;
}
.pi-date-custom footer {
  border-top: 1px solid #ebe6de;
  padding-top: 12px;
}
@media (max-width: 900px) {
  .pi-date-popover {
    min-width: 0;
    width: 100%;
  }
  .pi-date-presets {
    width: 125px;
    flex-shrink: 0;
  }
  .pi-calendars {
    gap: 10px;
  }
  .pi-calendar-days button {
    width: 23px;
    height: 25px;
  }
  .pi-calendar-week,
  .pi-calendar-days {
    gap: 1px;
  }
  .pi-date-custom {
    padding: 14px;
  }
  .pi-onboarding-progress > i {
    width: 200px;
  }
}
@media (max-width: 650px) {
  .pi-date-popover {
    width: calc(100% - 10px);
    max-width: none;
    left: 5px;
    display: block;
  }
  .pi-date-presets {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    border-bottom: 1px solid #ebe6de;
    border-right: 0;
    padding: 8px;
  }
  .pi-date-presets .pi-button {
    width: auto;
    font-size: 10px;
    padding: 5px 8px;
    min-height: 24px;
  }
  .pi-date-custom {
    padding: 10px;
  }
  .pi-calendars {
    gap: 7px;
  }
  .pi-calendar h4 {
    font-size: 10px;
    margin-bottom: 10px;
  }
  .pi-calendar-days button {
    width: 100%;
    height: 23px;
    font-size: 9px;
  }
  .pi-calendar-week span {
    font-size: 8px;
  }
  .pi-date-entry {
    gap: 8px;
  }
  .pi-date-entry input {
    font-size: 10px;
    padding: 5px;
  }
  .pi-date-custom .pi-button {
    font-size: 11px;
  }
  .pi-calendar-nav .pi-button {
    font-size: 19px;
  }
  .pi-onboarding-progress {
    font-size: 10px;
    gap: 8px;
  }
  .pi-onboarding-progress > i {
    width: 80px;
  }
}
.pi-collection-page > .pi-field {
  max-width: 500px;
}
.pi-collection-steps > h3 {
  margin: 30px 0 12px;
}
.pi-collection-steps > p {
  line-height: 1.6;
  margin-bottom: 18px;
}
.pi-collection-steps > .pi-muted {
  margin-top: 12px;
}
.pi-token-box {
  border: 1px solid #92c3b5;
  background: #f0faf6;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 22px 0;
}
.pi-token-box .pi-field {
  flex: 1;
  margin: 0;
}
.pi-token-box input {
  font:
    12px ui-monospace,
    monospace;
}
.pi-sdk-downloads {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 22px 0;
}
.pi-sdk-downloads a {
  color: #6f6a62;
}
.pi-collection-config {
  line-height: 2;
}
.pi-collection-steps details {
  border: 1px solid #ebe6de;
  padding: 15px;
  background: white;
  margin: 22px 0;
}
.pi-collection-steps summary {
  cursor: pointer;
  color: #6f6a62;
}
.pi-measurement-panel .pi-inline-actions {
  margin: 0;
}
.pi-measurement-metrics {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  border: 1px solid #ebe6de;
  background: #ebe6de;
}
.pi-measurement-metrics > div {
  background: white;
  display: flex;
  gap: 12px;
  flex-direction: column;
  padding: 20px;
}
.pi-measurement-metrics span {
  font-size: 12px;
  color: #6f6a62;
}
.pi-measurement-metrics strong {
  font-size: 24px;
  font-weight: 500;
}
.pi-cohort-heading {
  margin: 30px 0 8px !important;
}
.pi-measurement-panel > .pi-muted {
  margin-bottom: 20px;
}
.pi-cohort-cell {
  display: block;
  padding: 8px;
  min-width: 70px;
  color: #d6cabe;
}
.pi-cohort-cell.measured {
  background: #faf8f4;
  color: #6f6a62;
  border-radius: 3px;
}
.pi-measurement-panel .pi-table td {
  padding: 9px 16px;
}
.pi-measurement-panel .pi-table td:first-child,
.pi-measurement-panel .pi-table td:nth-child(2) {
  padding-top: 17px;
}
@media (max-width: 900px) {
  .pi-measurement-metrics {
    grid-template-columns: repeat(3, 1fr);
  }
  .pi-measurement-panel > header {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .pi-measurement-panel .pi-inline-actions {
    gap: 8px;
  }
  .pi-measurement-panel .pi-inline-actions > .pi-button {
    font-size: 11px;
    padding: 7px 10px;
  }
}
@media (max-width: 650px) {
  .pi-measurement-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .pi-measurement-metrics > div {
    padding: 16px 12px;
  }
  .pi-measurement-metrics strong {
    font-size: 21px;
  }
  .pi-token-box {
    display: block;
  }
  .pi-token-box .pi-button {
    margin-top: 12px;
  }
  .pi-sdk-downloads a {
    font-size: 11px;
  }
}
.pi-wizard {
  min-height: 719px;
}
.pi-plan-steps {
  max-width: 645px;
  width: 100%;
  padding: 0;
  margin: 0 auto 62px;
}
.pi-wizard > h2 {
  font-size: 24px;
  margin-bottom: 37px;
}
@media (max-width: 900px) {
  .pi-wizard {
    min-height: 680px;
  }
  .pi-plan-steps {
    margin-bottom: 40px;
  }
  .pi-wizard > h2 {
    font-size: 22px;
  }
}
@media (max-width: 650px) {
  .pi-wizard {
    min-height: 610px;
  }
  .pi-plan-steps {
    margin-bottom: 35px;
  }
  .pi-wizard > h2 {
    font-size: 20px;
    margin-bottom: 30px;
  }
}
.pi-platform-icon svg {
  width: 22px;
  height: 22px;
  vertical-align: middle;
}
.pi-site-os {
  display: flex;
  gap: 8px;
  align-items: center;
  min-width: 80px;
}
.pi-site-os svg {
  width: 24px;
  height: 24px;
}
.pi-site-url {
  flex: 1;
  min-width: 0;
}
.pi-app-site + .pi-app-site {
  border-top: 1px solid #ebe6de;
}
.pi-app-site .pi-row-actions {
  margin-left: 6px;
}
.pi-app-site .pi-app-url > .pi-status-badge {
  margin-left: 0;
}
.pi-guide-nav .pi-step-number {
  font-weight: 400;
}
@media (max-width: 900px) {
  .pi-app-site .pi-app-url {
    gap: 12px;
    flex-wrap: wrap;
  }
  .pi-site-url {
    min-width: 70%;
  }
  .pi-app-site .pi-row-actions {
    margin-left: auto;
  }
}
@media (max-width: 650px) {
  .pi-platform-icon svg {
    width: 19px;
    height: 19px;
  }
  .pi-app-card > header > .pi-button {
    font-size: 10px;
    padding: 6px;
    min-height: 30px;
  }
  .pi-app-site .pi-app-url {
    padding: 12px;
  }
  .pi-site-url {
    min-width: 65%;
    font-size: 10px;
  }
}
.pi-summary-guide {
  margin-top: 10px;
}
.pi-plan-summary {
  padding: 84px 10% 35px;
}
.pi-plan-summary > h2 {
  text-align: center;
  font-size: 24px;
  margin-bottom: 28px;
}
.pi-summary-table {
  height: 466px;
  max-height: 466px;
}
.pi-summary-table h4 {
  padding: 14px 10px;
  min-height: 48px;
}
.pi-summary-table > div {
  padding: 10px 20px 10px 30px;
  min-height: 42px;
  align-items: center;
}
.pi-summary-table strong {
  min-width: 25px;
  text-align: right;
}
.pi-answer-yes {
  font-size: 21px;
  color: #3a3631;
  line-height: 1;
}
.pi-answer-unset {
  font-size: 20px;
  color: #d6cabe;
  line-height: 1;
}
.pi-summary-platform-icons {
  display: flex;
  gap: 10px;
  align-items: center;
}
.pi-summary-platform-icons svg {
  width: 22px;
  height: 22px;
  color: #6f6a62;
}
.pi-plan-summary > .pi-wizard-actions {
  padding-top: 20px;
  gap: 22px;
}
.pi-plan-summary > .pi-wizard-actions > .pi-primary {
  min-width: 177px;
}
@media (max-width: 900px) {
  .pi-plan-summary {
    padding: 55px 6% 30px;
  }
  .pi-plan-summary > h2 {
    font-size: 22px;
  }
  .pi-summary-table > div {
    padding-left: 18px;
    font-size: 12px;
    gap: 15px;
  }
}
@media (max-width: 650px) {
  .pi-plan-summary {
    padding: 32px 16px;
  }
  .pi-plan-summary > h2 {
    font-size: 20px;
  }
  .pi-summary-table {
    height: 430px;
    max-height: 430px;
  }
  .pi-summary-table > div {
    font-size: 11px;
    padding-left: 15px;
    padding-right: 12px;
  }
  .pi-plan-summary > .pi-wizard-actions > .pi-primary {
    min-width: 150px;
  }
}
/* Row Posts branding is an intentional change to the reference palette. */
.pi-app {
  --pi-blue: var(--accent, #e0583a);
  --pi-dark: var(--surface-2, #fdfcfa);
  --pi-line: var(--line-2, #e2dcd2);
  --pi-muted: var(--muted, #6f6a62);
  --pi-pale: var(--accent-soft, #fdeae3);
  background: var(--bg, #faf8f4);
  color: var(--ink, #1d1b18);
}
.pi-top {
  background: var(--surface-2, #fdfcfa);
  color: var(--ink, #1d1b18);
  border-bottom: 1px solid var(--line, #ebe6de);
}
.pi-product-mark {
  width: 32px;
  height: 32px;
  object-fit: contain;
}
.pi-product-by {
  color: var(--muted, #6f6a62);
}
.pi-top-actions .pi-button {
  color: var(--muted, #6f6a62);
}
.pi-top-actions .pi-button:hover {
  color: var(--ink, #1d1b18);
  background: none;
}
.pi-company {
  border-left-color: var(--line-2, #e2dcd2);
  color: var(--ink-2, #3a3631);
}
.pi-rail {
  background: var(--surface-2, #fdfcfa);
  border-right: 1px solid var(--line, #ebe6de);
}
.pi-rail button {
  color: var(--muted, #6f6a62);
}
.pi-rail button:hover,
.pi-rail button.active {
  background: var(--accent-soft, #fdeae3);
  color: var(--accent, #e0583a);
}
.pi-rail-bottom {
  color: var(--faint, #9a948a);
}
.pi-guide-nav > button.active,
.pi-platform-card.selected,
.pi-field-toggle.selected,
.pi-time-breakdown button.selected,
.pi-calendar-days button.in-range,
.pi-metric.active,
.pi-cohort-cell.measured {
  background: var(--accent-soft, #fdeae3);
  border-color: #e9b8a8;
  color: var(--ink, #1d1b18);
}
.pi-platform-card.selected .pi-platform-icon {
  background: #efc9b8;
  color: #8a503d;
}
.pi-platform-card input,
.pi-question input,
.pi-checkbox input,
.pi-os-options input,
.pi-app-method input {
  accent-color: var(--accent, #e0583a);
}
.pi-plan-steps li.active button span,
.pi-plan-steps li.complete button span {
  background: var(--accent, #e0583a);
}
.pi-plan-steps button {
  color: var(--muted, #6f6a62);
}
.pi-guide-nav > button:hover {
  background: #f9f2eb;
}
.pi-guide-nav > button {
  color: var(--ink-2, #3a3631);
}
.pi-step-number {
  border-color: var(--faint, #9a948a);
}
.pi-guide-nav h4,
.pi-field,
.pi-muted,
.pi-platform-card,
.pi-app-details > div > span,
.pi-question {
  color: var(--muted, #6f6a62);
}
.pi-button {
  border-radius: 4px;
  border-color: var(--line-2, #e2dcd2);
  color: var(--ink-2, #3a3631);
}
.pi-button:hover {
  border-color: #c9ae98;
  background: #fdf7f1;
}
.pi-button.pi-primary {
  background: var(--ink, #1d1b18);
  border-color: var(--ink, #1d1b18);
  color: white;
}
.pi-button.pi-primary:hover {
  background: var(--ink-2, #3a3631);
}
.pi-app a {
  color: #b45b40;
}
.pi-backbar {
  background: #f4ece1;
  border-bottom-color: #dbc6b2;
}
.pi-notice {
  background: #fcf8f1;
  border-color: #e7d9c7;
  border-left-color: #c59668;
  color: #78634f;
}
.pi-notice.pi-error {
  background: #fff1f0;
  border-color: #e9b5b0;
  border-left-color: #d55d5d;
  color: #9b3838;
}
.pi-questions > h4,
.pi-summary-table h4,
.pi-table th,
.pi-mediation,
.pi-code,
.pi-builder-unavailable {
  background: #f9f6f1;
}
.pi-code {
  color: #625344;
  border-color: var(--line-2, #e2dcd2);
}
.pi-flow span,
.pi-app-url {
  background: #fbf7f1;
  border-color: var(--line, #ebe6de);
}
.pi-flow span {
  color: var(--ink-2, #3a3631);
}
.pi-app-url {
  color: var(--ink-2, #3a3631);
}
.pi-app-icon {
  background: #f5e4d6;
  color: #a96b4d;
}
.pi-app-details,
.pi-table,
.pi-field input,
.pi-field select {
  color: var(--ink-2, #3a3631);
}
.pi-settings-form > .pi-button.pi-primary {
  background: var(--ink, #1d1b18);
}
.pi-builder-toolbar > .pi-button:first-child {
  color: var(--muted, #6f6a62);
  border-color: var(--line-2, #e2dcd2);
}
.pi-builder-toolbar .pi-filter-toggle {
  background: var(--accent-soft, #fdeae3);
  border-color: #dcae9c;
  color: #a45c40;
}
.pi-builder-controls {
  background: var(--bg, #faf8f4);
}
.pi-get-started {
  border-color: #abc7aa;
}
.pi-get-started > div > span {
  background: #6b9269;
}
.pi-builder-toolbar > .pi-button[data-pi-action="export"] {
  background: #6f886c;
  border-color: #6f886c;
}
.pi-metric.active {
  border-bottom-color: var(--accent, #e0583a);
  box-shadow: inset 0 -3px var(--accent, #e0583a);
}
.pi-calendar-days button.selected {
  background: var(--accent, #e0583a);
}
.pi-calendar-days button.in-range {
  color: #a75b40;
}
.pi-field-toggle.selected {
  color: var(--ink, #1d1b18);
}
.pi-cohort-cell.measured {
  color: #ad5d42;
}
.pi-token-box {
  background: #f1f6ec;
  border-color: #b7cba9;
}
.pi-token-box .pi-field {
  color: #6d805f;
}
.pi-product-mark {
  font-size: 0;
}
.pi-platform-icon svg,
.pi-site-os svg,
.pi-summary-platform-icons svg {
  fill: currentColor;
  stroke: none;
}
.pi-app button:focus-visible,
.pi-app a:focus-visible,
.pi-app input:focus-visible,
.pi-app select:focus-visible {
  outline-color: var(--accent, #e0583a);
}
.pi-measurement-trend {
  border: 1px solid var(--line, #ebe6de);
  padding: 20px;
  margin-top: 25px;
  border-radius: 8px;
}
.pi-measurement-trend .pi-chart-head .pi-button {
  font-size: 11px;
  min-height: 30px;
  min-width: 0;
  padding: 6px 10px;
}
.pi-measurement-trend svg {
  stroke: none;
  fill: none;
}
.pi-measurement-trend rect {
  stroke: none;
}
.pi-measurement-trend text {
  fill: #9a948a;
}
@media (max-width: 650px) {
  .pi-measurement-trend {
    padding: 14px;
  }
  .pi-measurement-trend .pi-chart-head {
    display: block;
  }
  .pi-measurement-trend .pi-row-actions {
    margin-top: 15px;
    gap: 5px;
    flex-wrap: wrap;
  }
  .pi-measurement-trend .pi-chart-head .pi-button {
    font-size: 9px;
    padding: 6px 7px;
  }
}
.pi-measurement-method {
  margin: 18px 0;
  color: var(--muted, #6f6a62);
  font-size: 12px;
}
.pi-measurement-method summary {
  cursor: pointer;
  color: var(--ink-2, #3a3631);
}
.pi-measurement-method > div {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 20px;
  border-bottom: 1px solid var(--line, #ebe6de);
  padding: 14px 0;
}
.pi-measurement-method > div > strong {
  font-weight: 500;
}
.pi-measurement-metrics strong {
  font-size: 22px;
  overflow-wrap: anywhere;
}
.pi-top {
  position: sticky;
  top: 0;
  z-index: 45;
}
.pi-rail {
  position: sticky;
  top: 50px;
  height: calc(100vh - 50px);
  align-self: flex-start;
}
.pi-chart {
  stroke: none;
}
.pi-date-popover {
  z-index: 30;
}
@media (max-width: 650px) {
  .pi-rail {
    top: 74px;
    height: calc(100vh - 74px);
  }
}
.pi-post-impact-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin: 28px 0 10px;
}
.pi-post-impact-head > .pi-cohort-heading {
  margin: 0 !important;
}
.pi-post-impact-head .pi-button {
  font-size: 11px;
  min-height: 31px;
  padding: 7px 10px;
}
.pi-post-impact-explainer {
  font-size: 12px;
  line-height: 1.6;
  margin-bottom: 18px !important;
}
.pi-app-posts-table td:first-child {
  min-width: 220px;
  max-width: 350px;
}
.pi-app-posts-table td:first-child > strong {
  display: block;
  max-height: 65px;
  overflow: auto;
}
.pi-app-posts-table td:first-child > a {
  display: block;
  margin-top: 5px;
}
.pi-unattributed-row {
  background: #faf8f4;
}
.pi-unattributed-row td {
  border-top: 1px solid var(--line-2, #e2dcd2);
}
.pi-report-presets {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}
.pi-report-presets .pi-button {
  font-size: 12px;
  min-height: 34px;
}
.pi-metric-group-label {
  color: var(--muted, #6f6a62);
  margin-bottom: 12px !important;
  font-weight: 400 !important;
  font-size: 12px !important;
}
.pi-built-result .pi-table td {
  white-space: nowrap;
}
.pi-built-result .pi-table td:first-child {
  max-width: 340px;
  white-space: normal;
}
@media (max-width: 650px) {
  .pi-report-presets {
    gap: 7px;
  }
  .pi-report-presets .pi-button {
    font-size: 11px;
    padding: 8px 10px;
  }
}
.pi-user-insights {
  margin-top: 28px;
}
.pi-user-insights .pi-post-impact-head > input {
  font: inherit;
  font-size: 12px;
  border: 1px solid var(--line-2, #e2dcd2);
  border-radius: 4px;
  padding: 8px 10px;
  background: white;
  max-width: 230px;
}
.pi-user-table td:first-child {
  max-width: 270px;
  overflow-wrap: anywhere;
}
.pi-user-table td:nth-child(3),
.pi-user-table td:nth-child(4) {
  min-width: 135px;
}
.pi-user-table td > code {
  font-size: 11px;
}
@media (max-width: 650px) {
  .pi-user-insights .pi-post-impact-head {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .pi-user-insights .pi-post-impact-head > input {
    max-width: none;
    width: 100%;
  }
}
.pi-definitions-table {
  margin: 25px 0 18px;
}
.pi-received-event-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin: 35px 0 18px;
}
.pi-received-event-head .pi-button {
  font-size: 11px;
  min-height: 32px;
  padding: 7px 10px;
}
.pi-observed-events {
  font-size: 12px;
  margin: 20px 0;
  color: var(--muted, #6f6a62);
}
.pi-observed-events summary {
  cursor: pointer;
}
.pi-observed-events > div {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 15px 0;
}
.pi-observed-events span {
  border: 1px solid var(--line, #ebe6de);
  border-radius: 4px;
  padding: 5px 8px;
  background: var(--surface-2, #fdfcfa);
}
.pi-modal-body > .pi-checkbox {
  margin: 18px 0;
}
.pi-modal-body > .pi-checkbox + .pi-muted {
  margin-top: 20px;
}
@media (max-width: 650px) {
  .pi-received-event-head {
    flex-wrap: wrap;
  }
  .pi-received-event-head .pi-button {
    font-size: 10px;
  }
}
.pi-partial-day {
  display: inline-block;
  font-size: 10px;
  color: var(--muted, #6f6a62);
  margin-top: 5px;
}

/* Post Impact uses the same cards, filters and type hierarchy as Insights.
   The detailed reference-derived reporting/onboarding remains available. */
.pi-app {
  font-family: var(--sans, Figtree, sans-serif);
}
.pi-rail {
  width: 132px;
  flex-basis: 132px;
  padding: 18px 8px;
  gap: 5px;
}
.pi-rail button {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px;
  border-radius: 12px;
  text-align: left;
  height: auto;
  min-height: 44px;
  font-size: 18px;
}
.pi-rail button > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}
.pi-section-icon {
  display: block;
  width: 20px;
  height: 20px;
  flex: none;
}
.pi-rail button.active .pi-icon-accent {
  stroke: var(--accent, #e0583a);
}
.pi-rail button > small {
  font-size: 12px;
  font-weight: 600;
}
.pi-content {
  width: calc(100% - 132px);
  padding: 12px 32px 36px;
}
.pi-simple-page {
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px 0 40px;
}
.pi-simple-page .view-head {
  margin-bottom: 26px;
}
.pi-simple-page h1 {
  font-size: 32px;
  letter-spacing: -0.04em;
  line-height: 1.15;
  margin: 0;
}
.pi-simple-page .view-head p {
  max-width: 650px;
  margin-top: 7px;
  color: var(--muted);
}
.pi-simple-page h2 {
  font-size: 23px;
  letter-spacing: -0.025em;
  font-weight: 650;
}
.pi-simple-page .pi-button {
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  min-height: 36px;
  padding: 8px 15px;
}
.pi-simple-page .pi-primary {
  background: var(--ink);
  border-color: var(--ink);
  color: white;
}
.pi-simple-page .pi-primary:hover {
  background: var(--ink-2);
  border-color: var(--ink-2);
}
.pi-simple-page .pi-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.pi-simple-page .pi-field input,
.pi-simple-page .pi-field select {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  border-radius: 12px;
  background: var(--surface);
}
.pi-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.pi-overview-filters {
  position: static;
}
.pi-overview-filters .filters {
  margin: 0;
}
.pi-overview-filters .ins-select {
  max-width: 250px;
}
.pi-setup-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 8px 0 20px;
  background: linear-gradient(120deg, var(--surface) 40%, var(--accent-soft));
}
.pi-setup-banner p {
  margin-top: 8px;
  color: var(--muted);
  max-width: 560px;
}
.pi-setup-banner > .pi-button {
  flex-shrink: 0;
}
.pi-connection-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
  font-size: 12px;
  color: var(--muted);
}
.pi-connection-strip > .pi-button {
  margin-left: auto;
}
.pi-overview .ins-kpi-value {
  font-size: clamp(24px, 2.5vw, 32px);
  overflow-wrap: anywhere;
}
.pi-overview-detail {
  margin-top: 16px;
}
.pi-overview-detail .pi-measurement-trend {
  margin-top: 0;
  border: 0;
  padding-top: 0;
}
.pi-overview-detail .pi-post-impact-head:first-child {
  margin-top: 0;
}
.pi-overview-more {
  margin-top: 24px;
}
.pi-overview-more > summary {
  cursor: pointer;
  color: var(--ink-2);
  font-weight: 600;
  padding: 14px 0;
}
.pi-overview-foot {
  margin: 26px 0 16px;
}
.pi-connect-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 24px;
}
.pi-connect-steps > button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 16px;
  text-align: left;
  color: var(--muted);
  font-weight: 600;
}
.pi-connect-steps > button > span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  flex-shrink: 0;
  font-size: 12px;
}
.pi-connect-steps > button[aria-current="step"] {
  color: var(--ink);
  background: var(--surface);
  border-color: var(--ink);
}
.pi-connect-steps > button[aria-current="step"] > span {
  color: white;
  background: var(--ink);
  border-color: var(--ink);
}
.pi-connect-context {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.pi-connect-context .pi-field {
  flex: 1;
  max-width: 430px;
}
.pi-connect-context > .pi-button {
  margin-left: auto;
}
.pi-connect > .pi-notice {
  margin-bottom: 20px;
}
.pi-connect-card {
  max-width: 900px;
  padding: 26px;
}
.pi-connect-card > p {
  color: var(--muted);
  margin-top: 10px;
  max-width: 700px;
}
.pi-connect-card > .pi-field {
  max-width: 520px;
  margin-top: 24px;
}
.pi-connect-card > details,
.pi-connect-token details {
  margin-top: 22px;
}
.pi-simple-page summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}
.pi-simple-page details p,
.pi-simple-page details ul {
  margin: 12px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.pi-connect-token {
  margin: 26px 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg);
}
.pi-connect-token > p {
  margin: 7px 0 16px;
  color: var(--muted);
  font-size: 13px;
}
.pi-connect-token .pi-field {
  margin: 14px 0;
}
.pi-connect-card > footer,
.pi-simple-app-editor footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  margin-top: 26px;
  padding-top: 20px;
}
.pi-connect-card > .pi-inline-actions {
  margin-top: 22px;
}
.pi-handoff-text {
  display: block;
  width: 100%;
  height: 285px;
  resize: vertical;
  margin-top: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
  color: var(--ink-2);
  font:
    12px/1.6 ui-monospace,
    monospace;
}
.pi-app textarea:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
.pi-manual-setup > .pi-code {
  max-height: 350px;
  overflow: auto;
}
.pi-receipt-list {
  margin: 26px 0;
}
.pi-receipt-list h3 {
  margin-bottom: 10px;
}
.pi-receipt-list > div {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
.pi-receipt-list > div > span {
  font-size: 12px;
  color: var(--muted);
}
.pi-receipt-list > p {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
}
.pi-connect-extras {
  margin-top: 36px;
}
.pi-connect-extras > h3 {
  margin-bottom: 14px;
}
.pi-help-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.pi-help-grid p {
  margin-top: 9px;
  font-size: 13px;
  color: var(--muted);
}
.pi-help-grid .pi-button {
  margin-top: 18px;
}
.pi-help-grid .pi-step-number {
  display: inline-grid;
  margin-bottom: 15px;
}
.pi-help-faq {
  max-width: 850px;
  margin: 30px 0;
}
.pi-help-faq > details {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.pi-connect-empty {
  text-align: center;
  max-width: 780px;
  margin: 36px auto;
  padding: 48px 25px;
}
.pi-connect-empty > img {
  width: 65px;
  height: 65px;
  object-fit: contain;
  margin-bottom: 18px;
}
.pi-connect-empty > p {
  max-width: 460px;
  margin: 14px auto;
  color: var(--muted);
}
.pi-connect-empty > .pi-button {
  margin: 12px 0;
}
.pi-simple-app-editor {
  max-width: 780px;
  margin: 25px 0;
}
.pi-simple-app-editor h2 {
  font-size: 23px;
}
.pi-simple-app-editor p {
  margin: 10px 0 22px;
  color: var(--muted);
}
.pi-simple-app-editor .pi-field {
  margin: 18px 0;
}
.pi-simple-app-editor fieldset {
  margin: 22px 0;
  border: 0;
  padding: 0;
}
.pi-simple-app-editor legend {
  font-size: 13px;
  margin-bottom: 10px;
}
.pi-platform-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.pi-platform-choices > label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
}
.pi-platform-choices > label:has(:checked) {
  background: var(--accent-soft);
  border-color: var(--accent);
}
.pi-platform-choices svg {
  width: 18px;
  height: 18px;
}
@media (max-width: 1000px) {
  .pi-content {
    padding: 12px 18px 28px;
  }
  .pi-overview .ins-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pi-help-grid {
    grid-template-columns: 1fr;
  }
  .pi-setup-banner {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }
}
@media (max-width: 650px) {
  .pi-rail {
    width: 42px;
    flex-basis: 42px;
    padding: 10px 3px;
  }
  .pi-rail button {
    justify-content: center;
    padding: 9px 4px;
  }
  .pi-rail button > small {
    display: none;
  }
  .pi-content {
    width: calc(100% - 42px);
    padding: 12px;
  }
  .pi-simple-page {
    padding-top: 14px;
  }
  .pi-simple-page .view-head {
    flex-wrap: wrap;
    gap: 16px;
  }
  .pi-simple-page h1 {
    font-size: 27px;
  }
  .pi-top-actions {
    gap: 10px;
  }
  .pi-company {
    display: none;
  }
  .pi-connect-steps {
    gap: 5px;
  }
  .pi-connect-steps > button {
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
    padding: 10px;
    font-size: 11px;
  }
  .pi-connect-card {
    padding: 18px;
  }
  .pi-connect-card h2 {
    font-size: 21px;
  }
  .pi-connect-token {
    padding: 15px;
  }
  .pi-connect-context .pi-field {
    max-width: none;
    width: 100%;
    flex-basis: 100%;
  }
  .pi-connect-context > .pi-button {
    margin-left: 0;
  }
  .pi-simple-page .pi-field input,
  .pi-simple-page .pi-field select {
    font-size: 16px;
  }
  .pi-overview-filters .ins-select {
    max-width: 210px;
  }
  .pi-overview .ins-kpi {
    padding: 15px 12px;
  }
  .pi-overview .ins-kpi-value {
    font-size: 25px;
  }
  .pi-overview-detail {
    padding: 18px 12px;
  }
  .pi-overview .pi-chart-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .pi-overview .pi-row-actions {
    flex-wrap: wrap;
  }
  .pi-overview .pi-table-wrap {
    max-width: 100%;
  }
}
/* Keep the familiar single Row Posts sidebar; local sections become tabs. */
.pi-modern .pi-top {
  display: none;
}
.pi-modern .pi-body {
  display: block;
}
.pi-modern .pi-rail {
  position: static;
  display: flex;
  flex-direction: row;
  width: min(1120px, 100% - 64px);
  height: auto;
  margin: 0 auto;
  padding: 22px 0 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  overflow-x: auto;
  gap: 18px;
}
.pi-modern .pi-rail button {
  width: auto;
  flex-shrink: 0;
  min-height: 43px;
  padding: 8px 0 13px;
  gap: 6px;
  border-radius: 0;
  border-bottom: 2px solid transparent;
  font-size: 15px;
}
.pi-modern .pi-rail button > small {
  font-size: 13px;
  white-space: nowrap;
}
.pi-modern .pi-rail button:hover {
  color: var(--ink);
  background: transparent;
}
.pi-modern .pi-rail button.active {
  color: var(--ink);
  background: transparent;
  border-bottom-color: var(--ink);
}
.pi-modern .pi-rail-bottom {
  display: none;
}
.pi-modern .pi-content {
  width: min(1120px, 100% - 64px);
  padding: 0 0 40px;
  margin: 0 auto;
  overflow: visible;
}
.pi-modern .pi-simple-page {
  padding-top: 32px;
}
.pi-range-segment .filter.active {
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
}
.pi-modern .pi-table-wrap {
  max-width: 100%;
}
@media (max-width: 650px) {
  .pi-modern .pi-rail {
    width: calc(100% - 32px);
    padding-top: 10px;
    gap: 17px;
  }
  .pi-modern .pi-rail button {
    justify-content: flex-start;
  }
  .pi-modern .pi-rail button > small {
    display: inline;
  }
  .pi-modern .pi-rail button > span {
    display: none;
  }
  .pi-modern .pi-content {
    width: calc(100% - 32px);
  }
  .pi-modern .pi-simple-page {
    padding-top: 25px;
  }
  .pi-overview-filters .pi-button {
    font-size: 12px;
    padding: 7px 12px;
  }
}
.pi-analytics-skeleton {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.pi-analytics-skeleton > i {
  height: 110px;
  border-radius: var(--radius, 18px);
  background: var(--surface);
  border: 1px solid var(--line);
}
@media (max-width: 650px) {
  .pi-analytics-skeleton {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* App identities stay editable and use cached, normalized images. */
.pi-app-avatar {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  overflow: hidden;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: var(--accent-soft, #fdeae3);
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 650;
  line-height: 1;
  vertical-align: middle;
}
.pi-app-avatar > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--surface, white);
}
.pi-app-avatar > img[hidden] {
  display: none;
}
.pi-app-avatar-small {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-size: 10px;
}
.pi-app-avatar-large {
  width: 90px;
  height: 90px;
  border-radius: 22px;
  font-size: 28px;
}
.pi-app-card > header > .pi-app-avatar {
  margin-right: 3px;
}
.pi-connect-context > .pi-app-avatar {
  width: 52px;
  height: 52px;
  border-radius: 15px;
  align-self: flex-end;
}
.pi-icon-editor {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg);
  margin: 24px 0;
}
.pi-icon-editor > div {
  min-width: 0;
  flex: 1;
}
.pi-simple-app-editor .pi-icon-editor h3 {
  margin: 0;
}
.pi-simple-app-editor .pi-icon-editor p {
  margin: 7px 0 14px;
  font-size: 13px;
  line-height: 1.5;
}
.pi-icon-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.pi-icon-actions .pi-button {
  border-radius: 999px;
  font-size: 12px;
  min-height: 34px;
  padding: 7px 12px;
}
.pi-icon-upload {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
}
.pi-icon-upload input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.pi-icon-upload:focus-within {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
.pi-icon-upload:has(input:disabled) {
  opacity: 0.5;
  cursor: not-allowed;
}
.pi-icon-status {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 12px;
  overflow-wrap: anywhere;
}
@media (max-width: 650px) {
  .pi-icon-editor {
    gap: 14px;
    padding: 16px;
    flex-wrap: wrap;
  }
  .pi-icon-editor .pi-app-avatar-large {
    width: 64px;
    height: 64px;
    border-radius: 16px;
  }
  .pi-icon-editor > div {
    flex-basis: 190px;
  }
  .pi-connect-context > .pi-app-avatar {
    align-self: center;
  }
}
