.pg-host {
  color: var(--ink, #292c25);
  margin-block: 0;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.6;
}
.pg-section-heading {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}
.pg-eyebrow {
  margin: 0 0 14px;
  color: var(--coral-dark, #a64d36);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.5;
}
.pg-section-heading h2 {
  max-width: 840px;
  margin: 0;
  font-size: clamp(32px, 3.5vw, 44px);
  font-weight: 580;
  letter-spacing: -0.045em;
  line-height: 1.15;
}
.pg-intro {
  max-width: 680px;
  margin: 0;
  color: var(--muted, #686d60);
  font-size: 18px;
  line-height: 1.6;
}
.pg-window {
  border: 1px solid var(--line, #dedfd4);
  border-radius: 20px;
  background: var(--surface, #fffdf8);
  box-shadow: 0 20px 64px -42px #49443142;
  overflow: hidden;
}
.pg-window-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 60px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--line, #dedfd4);
  background: #f0eee6;
  color: var(--muted, #686d60);
  font-size: 14px;
  line-height: 1.5;
}
.pg-window-dots {
  display: flex;
  gap: 6px;
}
.pg-window-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbc8bc;
}
.pg-window-dots i:first-child {
  background: var(--coral, #d97456);
}
.pg-example-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  color: var(--ink, #292c25);
}
.pg-example-label::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--coral, #d97456);
}
.pg-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(290px, 1fr);
}
.pg-editor {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.pg-editor-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 28px 16px;
}
.pg-editor-heading > div {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono, monospace);
  font-size: 14px;
  line-height: 1.6;
}
.pg-editor-heading svg {
  color: var(--muted, #686d60);
  width: 20px;
  height: 20px;
}
.pg-path {
  color: var(--muted, #686d60);
  font-size: 14px;
  line-height: 1.5;
}
.pg-tabs {
  display: flex;
  gap: 24px;
  padding-inline: 28px;
  border-bottom: 1px solid var(--line, #dedfd4);
}
.pg-tabs button {
  min-height: 48px;
  padding: 12px 0;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--muted, #686d60);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.5;
  transition:
    color 160ms ease,
    border-color 160ms ease;
}
.pg-tabs button:hover,
.pg-tabs button[aria-selected="true"] {
  color: var(--ink, #292c25);
}
.pg-tabs button[aria-selected="true"] {
  border-bottom-color: var(--coral, #d97456);
  font-weight: 550;
}
.pg-tab-panel {
  flex: 1;
  min-height: 312px;
  padding: 24px 0;
}
.pg-version-choice {
  display: flex;
  gap: 8px;
  padding-inline: 28px;
  margin-bottom: 22px;
}
.pg-version-choice button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--line, #dedfd4);
  border-radius: 12px;
  background: transparent;
  color: var(--ink, #292c25);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
  transition:
    background 160ms ease,
    color 160ms ease,
    border-color 160ms ease;
}
.pg-version-choice button:hover {
  background: #f0eee6;
  border-color: #a4a79a;
}
.pg-version-choice button[aria-pressed="true"] {
  background: var(--ink, #292c25);
  border-color: var(--ink, #292c25);
  color: #fffdf8;
}
.pg-version-choice svg {
  width: 16px;
  height: 16px;
}
.pg-code {
  padding-block: 8px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  font-size: 14px;
  line-height: 1.6;
}
.pg-code-line {
  display: flex;
  padding: 4px 28px 4px 16px;
  min-width: max-content;
}
.pg-line-number {
  width: 30px;
  flex: 0 0 30px;
  margin-right: 24px;
  text-align: right;
  color: var(--muted, #686d60);
  font-family: var(--mono, monospace);
  user-select: none;
}
.pg-code code {
  position: relative;
  white-space: pre;
  font-family: var(--mono, monospace);
}
.pg-keyword {
  color: #755477;
}
.pg-code-removed {
  background: #f8e8df;
}
.pg-code-added {
  background: #e9efe1;
}
.pg-diff-marker {
  position: absolute;
  left: -16px;
  color: var(--coral-dark, #a64d36);
  font-weight: 700;
}
.pg-code-added .pg-diff-marker {
  color: #436335;
}
.pg-code-hint {
  display: flex;
  align-items: start;
  gap: 10px;
  padding-inline: 28px;
  margin: 16px 0 20px;
  color: var(--coral-dark, #a64d36);
  font-size: 14px;
  line-height: 1.5;
}
.pg-code-hint svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 1px;
}
.pg-hint-patch {
  color: #456136;
}
.pg-fixture {
  margin-inline: 28px;
  border-top: 1px solid var(--line, #dedfd4);
}
.pg-fixture summary {
  min-height: 44px;
  padding: 12px 0;
  color: var(--ink, #292c25);
  cursor: pointer;
  font-size: 14px;
  font-weight: 550;
  line-height: 1.5;
}
.pg-fixture summary::marker {
  color: var(--coral-dark, #a64d36);
}
.pg-fixture-body {
  padding: 4px 0 4px;
}
.pg-fixture-body p {
  margin: 0 0 16px;
  color: var(--muted, #686d60);
  font-size: 14px;
  line-height: 1.5;
}
.pg-fixture dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
}
.pg-fixture dt {
  margin-bottom: 4px;
  color: var(--muted, #686d60);
  font-size: 14px;
  line-height: 1.5;
}
.pg-fixture dd {
  margin: 0;
  color: var(--ink, #292c25);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 550;
  font-variant-numeric: tabular-nums;
}
.pg-results {
  min-width: 0;
  padding: 24px 28px;
  border-left: 1px solid var(--line, #dedfd4);
  background: #f3f2ea;
}
.pg-results h3 {
  margin: 0 0 20px;
  font-size: 18px;
  font-weight: 580;
  line-height: 1.4;
  letter-spacing: -0.02em;
}
.pg-run-card {
  padding: 18px 20px;
  border: 1px solid var(--line, #dedfd4);
  border-radius: 16px;
  background: var(--surface, #fffdf8);
  transition:
    background 200ms ease,
    border-color 200ms ease;
}
.pg-run-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 550;
}
.pg-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 550;
}
.pg-status svg {
  width: 16px;
  height: 16px;
  stroke-width: 2;
}
.pg-status-fail,
.pg-value-fail {
  color: var(--coral-dark, #a64d36);
}
.pg-status-pass,
.pg-value-pass {
  color: #456136;
}
.pg-status-neutral {
  color: var(--muted, #686d60);
}
.pg-run-values {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 16px 0;
}
.pg-run-values span {
  color: var(--muted, #686d60);
  font-size: 14px;
  line-height: 1.5;
}
.pg-run-values strong {
  font-size: 40px;
  font-weight: 580;
  line-height: 1.1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.pg-run-id {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  color: var(--muted, #686d60);
  font-size: 14px;
  line-height: 1.5;
}
.pg-run-id code {
  font-family: var(--mono, monospace);
  font-size: inherit;
}
.pg-lineage-link {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0;
  color: var(--muted, #686d60);
  font-size: 14px;
  line-height: 1.5;
}
.pg-lineage-link svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}
.pg-is-empty {
  background: transparent;
  border-style: dashed;
}
.pg-is-running {
  border-color: #b6bbae;
}
.pg-is-passed {
  background: #eff3e8;
  border-color: #adbf9b;
}
.pg-is-failed {
  background: #fcf0e8;
  border-color: #d7ae9d;
}
.pg-pending-copy {
  margin: 16px 0 0;
  color: var(--muted, #686d60);
  font-size: 16px;
  line-height: 1.6;
}
.pg-result-summary {
  margin: 16px 0 8px;
  color: var(--ink, #292c25);
  font-size: 16px;
  line-height: 1.6;
}
.pg-summary-pass {
  color: #456136;
}
.pg-compare-button {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 0;
  border: 0;
  background: transparent;
  color: var(--coral-dark, #a64d36);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 550;
}
.pg-compare-button svg {
  width: 18px;
  height: 18px;
  transition: transform 160ms ease;
}
.pg-compare-button:not(:disabled):hover svg {
  transform: translateX(3px);
}
.pg-compare-button:disabled {
  color: var(--muted, #686d60);
  cursor: not-allowed;
}
.pg-action-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 20px 28px;
  border-top: 1px solid var(--line, #dedfd4);
}
.pg-run-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid var(--ink, #292c25);
  border-radius: 12px;
  background: var(--ink, #292c25);
  color: var(--surface, #fffdf8);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 550;
  transition:
    background 160ms ease,
    transform 160ms ease;
}
.pg-run-button:hover:not(:disabled) {
  background: #41463a;
  transform: translateY(-1px);
}
.pg-run-button:active:not(:disabled) {
  transform: translateY(0);
}
.pg-run-button:disabled {
  background: #52584a;
  border-color: #52584a;
  cursor: wait;
}
.pg-run-button svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  stroke: none;
}
.pg-reset-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line, #dedfd4);
  border-radius: 12px;
  background: transparent;
  color: var(--ink, #292c25);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
  transition: background 160ms ease;
}
.pg-reset-button:hover:not(:disabled) {
  background: #f0eee6;
}
.pg-reset-button svg {
  width: 18px;
  height: 18px;
}
.pg-boundary {
  margin: 16px 0 0;
  color: var(--muted, #686d60);
  font-size: 14px;
  line-height: 1.5;
}
.pg-evidence-panel,
.pg-comparison-panel {
  padding-inline: 28px;
}
.pg-evidence-panel h4,
.pg-comparison-panel h4 {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 580;
  line-height: 1.4;
}
.pg-evidence-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  font-family: var(--mono, monospace);
  font-size: 14px;
  line-height: 1.6;
}
.pg-evidence-label svg {
  width: 18px;
  height: 18px;
}
.pg-evidence-label .pg-status {
  margin-left: auto;
  font-family: Inter, sans-serif;
}
.pg-assertion,
.pg-error-evidence pre {
  margin: 0;
  overflow-x: auto;
  scrollbar-width: thin;
  font-family: var(--mono, monospace);
  font-size: 14px;
  line-height: 1.6;
}
.pg-assertion {
  padding: 18px 20px;
  border-radius: 12px;
  background: #f0f1e8;
}
.pg-evidence-note {
  margin: 12px 0 24px;
  color: var(--muted, #686d60);
  font-size: 14px;
  line-height: 1.5;
}
.pg-error-evidence {
  padding-left: 18px;
  border-left: 2px solid var(--coral, #d97456);
  color: var(--coral-dark, #a64d36);
}
.pg-error-evidence h4 {
  margin-bottom: 12px;
  color: var(--ink, #292c25);
}
.pg-comparison-verdict {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  margin: 24px 0;
  border: 1px solid var(--line, #dedfd4);
  border-radius: 16px;
  background: #f3f2ea;
}
.pg-comparison-verdict svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}
.pg-comparison-verdict strong {
  font-size: 20px;
  font-weight: 580;
  line-height: 1.4;
  letter-spacing: -0.025em;
}
.pg-verdict-pass {
  background: #eff3e8;
  color: #456136;
  border-color: #adbf9b;
}
.pg-verdict-fail {
  background: #fcf0e8;
  color: var(--coral-dark, #a64d36);
  border-color: #d7ae9d;
}
.pg-comparison-facts {
  margin: 0;
}
.pg-comparison-facts > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line, #dedfd4);
}
.pg-comparison-facts dt {
  color: var(--muted, #686d60);
  font-size: 14px;
  line-height: 1.5;
}
.pg-comparison-facts dd {
  margin: 0;
  color: var(--ink, #292c25);
  font-size: 14px;
  line-height: 1.5;
  text-align: right;
}
.pg-comparison-facts dd code {
  font-family: var(--mono, monospace);
  font-size: inherit;
  overflow-wrap: anywhere;
}
.pg-comparison-conclusion {
  margin: 20px 0 0;
  color: var(--ink, #292c25);
  font-size: 16px;
  line-height: 1.6;
}
.pg-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 1.5px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: pg-spin 800ms linear infinite;
}
.pg-host button {
  cursor: pointer;
}
.pg-host button:disabled {
  cursor: not-allowed;
}
.pg-host button:focus-visible,
.pg-fixture summary:focus-visible,
.pg-tab-panel:focus-visible {
  outline: 2px solid var(--coral-dark, #a64d36);
  outline-offset: 4px;
}
.pg-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
@keyframes pg-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (max-width: 1000px) {
  .pg-workspace {
    grid-template-columns: minmax(0, 1.25fr) minmax(275px, 1fr);
  }
  .pg-results {
    padding-inline: 20px;
  }
  .pg-run-card {
    padding-inline: 16px;
  }
}
@media (max-width: 760px) {
  .pg-section-heading {
    gap: 14px;
    margin-bottom: 28px;
  }
  .pg-intro {
    font-size: 16px;
  }
  .pg-workspace {
    grid-template-columns: 1fr;
  }
  .pg-tab-panel {
    min-height: 300px;
  }
  .pg-results {
    border-left: 0;
    border-top: 1px solid var(--line, #dedfd4);
    padding: 24px 28px;
  }
  .pg-action-bar {
    background: var(--surface, #fffdf8);
  }
}
@media (max-width: 480px) {
  .pg-window {
    border-radius: 16px;
  }
  .pg-window-bar {
    padding-inline: 20px;
    gap: 10px;
  }
  .pg-window-dots {
    display: none;
  }
  .pg-example-label {
    gap: 6px;
  }
  .pg-editor-heading {
    padding: 20px 20px 12px;
  }
  .pg-path {
    display: none;
  }
  .pg-tabs {
    gap: 24px;
    padding-inline: 20px;
  }
  .pg-version-choice {
    padding-inline: 20px;
    gap: 8px;
  }
  .pg-version-choice button {
    padding-inline: 12px;
    gap: 8px;
  }
  .pg-code-line {
    padding-inline: 8px 20px;
  }
  .pg-line-number {
    width: 24px;
    flex-basis: 24px;
    margin-right: 22px;
  }
  .pg-code-hint {
    padding-inline: 20px;
  }
  .pg-fixture {
    margin-inline: 20px;
  }
  .pg-fixture dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
  .pg-results {
    padding-inline: 20px;
  }
  .pg-action-bar {
    padding-inline: 20px;
    gap: 10px;
  }
  .pg-run-button {
    flex: 1 1 100%;
  }
  .pg-reset-button {
    width: 100%;
  }
  .pg-evidence-panel,
  .pg-comparison-panel {
    padding-inline: 20px;
  }
  .pg-comparison-verdict {
    padding: 16px;
  }
  .pg-comparison-facts > div {
    flex-direction: column;
    gap: 6px;
  }
  .pg-comparison-facts dd {
    text-align: left;
  }
  .pg-assertion {
    padding-inline: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pg-host *,
  .pg-host *::before,
  .pg-host *::after {
    animation: none !important;
    transition: none !important;
  }
  .pg-run-button:hover:not(:disabled),
  .pg-compare-button:not(:disabled):hover svg {
    transform: none;
  }
}
