/* ==========================================================================
   PostalSure — Lattis Gallery-Sheet Design System (postalsure-blueprint.css)
   Palette: Periwinkle Architectural Mat (#EEF2FF) · Crisp Gallery Sheet (#FFFFFF)
   Ink (#0F172A) · Royal Cobalt (#2563EB) · Muted (#64748B) · Hairline (#E6E9F2)
   ========================================================================== */

:root {
  --psr-mat-bg: #EEF2FF;
  --psr-mat-tile-1: #E3E9FF;
  --psr-mat-tile-2: #D6E0FF;
  --psr-mat-cobalt: #2563EB;
  --psr-sheet: #FFFFFF;
  --psr-surface-soft: #F6F7FB;
  --psr-card-soft: #F3F5FA;
  --psr-card-ivory: #F5F4F0;
  --psr-card-orb: #F1F3F9;
  --psr-card-policy: #F4F6FB;

  --psr-ink: #0F172A;
  --psr-ink-2: #1E293B;
  --psr-muted: #64748B;
  --psr-muted-light: #94A3B8;

  --psr-primary: #2563EB;
  --psr-primary-hover: #1D4ED8;
  --psr-primary-soft: #EFF6FF;
  --psr-primary-border: #BFDBFE;
  --psr-cyan: #0284C7;
  --psr-emerald: #059669;
  --psr-emerald-bg: #ECFDF5;
  --psr-emerald-border: #A7F3D0;
  --psr-amber: #D97706;
  --psr-amber-bg: #FFFBEB;
  --psr-amber-border: #FDE68A;
  --psr-danger: #DC2626;
  --psr-danger-bg: #FEF2F2;
  --psr-danger-border: #FECACA;

  --psr-line: #E6E9F2;
  --psr-line-strong: #CBD5E1;
  --psr-nav-border: #E5E8F0;

  --psr-font-sans: 'Inter', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --psr-font-display: 'Inter', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --psr-font-mono: 'JetBrains Mono', 'Source Code Pro', ui-monospace, SFMono-Regular, Menlo, monospace;

  --psr-sheet-max: 1320px;
  --psr-rail-max: 1180px;
  --psr-radius-sheet: 28px;
  --psr-radius-xl: 24px;
  --psr-radius-lg: 20px;
  --psr-radius-md: 14px;
  --psr-radius-sm: 10px;
  --psr-radius-pill: 999px;

  --psr-shadow-nav: 0 6px 24px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.03);
  --psr-shadow-sheet: 0 24px 70px rgba(15, 23, 42, 0.07), 0 2px 8px rgba(15, 23, 42, 0.03);
  --psr-shadow-float: 0 12px 32px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(15, 23, 42, 0.04);
  --psr-shadow-console: 0 10px 30px rgba(15, 23, 42, 0.05);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html.psr-html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body.psr-body {
  margin: 0;
  padding: 22px 18px 36px;
  min-height: 100vh;
  font-family: var(--psr-font-sans);
  color: var(--psr-ink);
  line-height: 1.55;
  background-color: var(--psr-mat-bg);
  /* Lattis outer architectural pixel-block mat */
  background-image:
    linear-gradient(90deg, rgba(214, 224, 255, 0.55) 0, rgba(214, 224, 255, 0.55) 96px, transparent 96px, transparent calc(100% - 96px), rgba(214, 224, 255, 0.55) calc(100% - 96px)),
    repeating-linear-gradient(180deg, rgba(37, 99, 235, 0.06) 0px, rgba(37, 99, 235, 0.06) 140px, rgba(255, 255, 255, 0.45) 140px, rgba(255, 255, 255, 0.45) 280px);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

/* Skip Link */
.psr-skip-link {
  position: fixed;
  top: -100px;
  left: 24px;
  z-index: 999;
  padding: 10px 18px;
  background: var(--psr-ink);
  color: #FFFFFF;
  border-radius: var(--psr-radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  transition: top 0.2s ease;
}

.psr-skip-link:focus {
  top: 18px;
}

/* ==========================================================================
   Lattis Central Gallery Sheet & Continuous Architectural Rails
   ========================================================================== */
.psr-page-sheet {
  position: relative;
  max-width: var(--psr-sheet-max);
  margin: 0 auto;
  background: var(--psr-sheet);
  border: 1px solid var(--psr-line);
  border-radius: var(--psr-radius-sheet);
  box-shadow: var(--psr-shadow-sheet);
  overflow: clip;
}

.psr-sheet-rails {
  position: absolute;
  inset: 0;
  width: calc(100% - 96px);
  max-width: var(--psr-rail-max);
  margin: 0 auto;
  border-left: 1px solid var(--psr-line);
  border-right: 1px solid var(--psr-line);
  pointer-events: none;
  z-index: 0;
}

.psr-shell {
  position: relative;
  z-index: 1;
  width: calc(100% - 96px);
  max-width: var(--psr-rail-max);
  margin: 0 auto;
  padding-left: 36px;
  padding-right: 36px;
}

.psr-main {
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   Floating Compact Centered Pill Navbar (Lattis Capsule)
   ========================================================================== */
.psr-topbar {
  position: sticky;
  top: 16px;
  z-index: 60;
  padding: 20px 24px 0;
  pointer-events: none;
}

.psr-nav-capsule {
  pointer-events: auto;
  max-width: 780px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--psr-nav-border);
  border-radius: var(--psr-radius-pill);
  padding: 7px 10px 7px 16px;
  box-shadow: var(--psr-shadow-nav);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  position: relative;
}

.psr-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
}

.psr-brand-grid {
  width: 20px;
  height: 20px;
  display: inline-grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
  padding: 2px;
}

.psr-brand-grid span {
  display: block;
  border-radius: 2.5px;
  background: var(--psr-ink);
}

.psr-brand-grid span:nth-child(4) {
  background: var(--psr-primary);
}

.psr-brand-text {
  font-family: var(--psr-font-display);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--psr-ink);
}

.psr-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.psr-nav-link {
  padding: 6px 12px;
  border-radius: var(--psr-radius-pill);
  font-size: 0.84rem;
  font-weight: 500;
  color: #475569;
  transition: color 0.16s ease, background-color 0.16s ease;
}

.psr-nav-link:hover {
  color: var(--psr-ink);
  background: var(--psr-card-soft);
}

.psr-nav-cta-mobile {
  display: none;
}

.psr-topbar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.psr-pill-signin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 14px;
  border-radius: var(--psr-radius-pill);
  border: 1px solid var(--psr-nav-border);
  background: #FFFFFF;
  color: var(--psr-ink);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: border-color 0.16s ease, background-color 0.16s ease;
}

.psr-pill-signin:hover {
  background: #F8FAFC;
  border-color: var(--psr-line-strong);
}

.psr-pill-verify {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 15px;
  border-radius: var(--psr-radius-pill);
  border: 1px solid var(--psr-ink);
  background: var(--psr-ink);
  color: #FFFFFF;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: background-color 0.16s ease, transform 0.16s ease;
}

.psr-pill-verify:hover {
  background: #1E293B;
  transform: translateY(-1px);
}

.psr-portal-nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.psr-portal-tls-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: var(--psr-radius-pill);
  background: var(--psr-emerald-bg);
  border: 1px solid var(--psr-emerald-border);
  color: var(--psr-emerald);
  font-family: var(--psr-font-mono);
  font-size: 0.72rem;
  font-weight: 600;
}

.psr-portal-tls-note::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--psr-emerald);
}

.psr-nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--psr-radius-pill);
  border: 1px solid var(--psr-nav-border);
  background: #FFFFFF;
  color: var(--psr-ink);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
}

.psr-nav-toggle-bars {
  width: 14px;
  height: 10px;
  position: relative;
  display: inline-block;
}

.psr-nav-toggle-bars::before,
.psr-nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1.6px;
  background: var(--psr-ink);
  border-radius: 2px;
  transition: transform 0.2s ease, top 0.2s ease;
}

.psr-nav-toggle-bars::before {
  top: 2px;
}

.psr-nav-toggle-bars::after {
  top: 7px;
}

/* ==========================================================================
   Buttons & Shared Primitives
   ========================================================================== */
.psr-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.psr-primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--psr-radius-pill);
  border: 1px solid var(--psr-ink);
  background: var(--psr-ink);
  color: #FFFFFF;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  cursor: pointer;
  transition: background-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.psr-primary-btn:hover:not(:disabled) {
  background: #1E293B;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.14);
}

.psr-primary-btn:disabled {
  opacity: 0.52;
  cursor: not-allowed;
}

.psr-primary-btn svg {
  width: 16px;
  height: 16px;
}

.psr-ghost-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--psr-radius-pill);
  border: 1px solid var(--psr-nav-border);
  background: #FFFFFF;
  color: var(--psr-ink);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

.psr-ghost-action:hover {
  background: #F8FAFC;
  border-color: var(--psr-line-strong);
  transform: translateY(-1px);
}

.psr-kicker {
  display: inline-block;
  font-family: var(--psr-font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--psr-primary);
}

.psr-mono-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--psr-radius-pill);
  background: var(--psr-primary-soft);
  border: 1px solid var(--psr-primary-border);
  color: var(--psr-primary);
  font-family: var(--psr-font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* ==========================================================================
   Hero — Centered Lattis Display + 3-Card Visual Art Triptych
   ========================================================================== */
.psr-hero-section {
  padding: 64px 0 68px;
}

.psr-hero-header {
  max-width: 960px;
  margin: 0 auto 48px;
  text-align: center;
}

.psr-hero-h1 {
  margin: 0 0 20px;
  font-family: var(--psr-font-display);
  font-size: clamp(2.75rem, 4.5vw, 4.15rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.06;
  color: var(--psr-ink);
}

.psr-hero-h1-blue {
  display: block;
  color: var(--psr-primary);
}

.psr-hero-subcopy {
  max-width: 540px;
  margin: 0 auto 28px;
  font-size: 1.02rem;
  line-height: 1.58;
  color: var(--psr-muted);
  letter-spacing: -0.01em;
}

/* 3-Card Artistic Triptych */
.psr-triptych {
  display: grid;
  grid-template-columns: 1fr 1.08fr 1fr;
  gap: 20px;
  align-items: end;
}

.psr-trip-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.psr-trip-card:hover {
  transform: translateY(-3px);
}

/* Card 1: Left Pixel-Mosaic Parcel & Residential Grid Portrait */
.psr-trip-left {
  background: var(--psr-card-ivory);
  border-radius: 20px;
  height: 416px;
  border: 1px solid rgba(15, 23, 42, 0.05);
}

.psr-mosaic-svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.psr-eval-float {
  position: absolute;
  left: 16px;
  bottom: 16px;
  background: #FFFFFF;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 14px;
  padding: 13px 16px;
  box-shadow: var(--psr-shadow-float);
  min-width: 196px;
}

.psr-eval-label {
  display: block;
  font-family: var(--psr-font-mono);
  font-size: 0.67rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--psr-muted-light);
  margin-bottom: 5px;
}

.psr-eval-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.psr-eval-score {
  font-family: var(--psr-font-display);
  font-size: 1.9rem;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--psr-ink);
}

.psr-eval-delta {
  font-family: var(--psr-font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--psr-emerald);
  white-space: nowrap;
}

/* Card 2: Center Elevated Stippled Cobalt-Cyan Radial Sphere */
.psr-trip-center {
  background: linear-gradient(180deg, #ECEFF7 0%, #F4F6FB 100%);
  border-radius: 22px;
  height: 472px;
  border: 1px solid rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 38px 24px 24px;
}

.psr-sphere-wrap {
  width: 100%;
  max-width: 306px;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.psr-sphere-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 18px 34px rgba(37, 99, 235, 0.20));
}

.psr-listen-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  border-radius: var(--psr-radius-pill);
  background: #FFFFFF;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.07);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--psr-ink);
  white-space: nowrap;
}

.psr-eq-bars {
  display: inline-flex;
  align-items: center;
  gap: 2.2px;
  height: 14px;
}

.psr-eq-bars i {
  display: block;
  width: 2.2px;
  border-radius: 2px;
  background: var(--psr-primary);
  animation: psrEqPulse 1.3s ease-in-out infinite;
}

.psr-eq-bars i:nth-child(1) { height: 5px; animation-delay: 0.0s; background: #93C5FD; }
.psr-eq-bars i:nth-child(2) { height: 10px; animation-delay: 0.15s; }
.psr-eq-bars i:nth-child(3) { height: 14px; animation-delay: 0.3s; }
.psr-eq-bars i:nth-child(4) { height: 8px; animation-delay: 0.45s; background: var(--psr-cyan); }
.psr-eq-bars i:nth-child(5) { height: 13px; animation-delay: 0.2s; }
.psr-eq-bars i:nth-child(6) { height: 7px; animation-delay: 0.35s; }
.psr-eq-bars i:nth-child(7) { height: 4px; animation-delay: 0.5s; background: #93C5FD; }

@keyframes psrEqPulse {
  0%, 100% { transform: scaleY(0.55); }
  50% { transform: scaleY(1.08); }
}

.psr-listen-ms {
  font-family: var(--psr-font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--psr-muted-light);
}

/* Card 3: Right Stepped Pixel-Gradient + Interactive Verification Policy Card */
.psr-trip-right {
  background: var(--psr-card-policy);
  border-radius: 20px;
  height: 416px;
  border: 1px solid rgba(15, 23, 42, 0.05);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 22px;
}

.psr-right-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.psr-policy-card {
  position: relative;
  z-index: 2;
  width: 100%;
  background: #FFFFFF;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.07);
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.10);
  padding: 18px;
}

.psr-policy-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.psr-policy-title {
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--psr-ink);
}

.psr-policy-env {
  font-family: var(--psr-font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--psr-primary);
}

.psr-policy-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.psr-policy-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 11px;
  border-radius: 10px;
  background: #F6F8FC;
  border: 1px solid transparent;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.psr-policy-item:hover {
  background: #EEF3FC;
  border-color: #DCE6F7;
}

.psr-policy-left {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.psr-policy-check {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  width: 16px;
  height: 16px;
  border-radius: 4.5px;
  border: 1.5px solid #CBD5E1;
  background: #FFFFFF;
  display: grid;
  place-content: center;
  flex-shrink: 0;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.psr-policy-check:checked {
  background: var(--psr-primary);
  border-color: var(--psr-primary);
}

.psr-policy-check:checked::after {
  content: "";
  width: 8px;
  height: 5px;
  border-left: 1.8px solid #FFFFFF;
  border-bottom: 1.8px solid #FFFFFF;
  transform: rotate(-45deg) translate(0.5px, -0.5px);
}

.psr-policy-name {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--psr-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.psr-policy-meta {
  font-family: var(--psr-font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--psr-muted);
  flex-shrink: 0;
}

/* ==========================================================================
   Section 1: Full-Bleed 6-Cell Bordered Counterparty Table
   ========================================================================== */
.psr-counterparty-band {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--psr-line);
  border-bottom: 1px solid var(--psr-line);
  background: #FFFFFF;
}

.psr-counterparty-grid {
  width: calc(100% - 96px);
  max-width: var(--psr-rail-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.35fr repeat(5, 1fr);
}

.psr-cp-cell {
  padding: 28px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--psr-line);
  text-align: center;
}

.psr-cp-cell:last-child {
  border-right: none;
}

.psr-cp-cell-lead {
  justify-content: flex-start;
  text-align: left;
  padding-left: 28px;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--psr-muted);
}

.psr-cp-mark {
  font-family: var(--psr-font-display);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #475569;
  transition: color 0.16s ease;
}

.psr-cp-mark--caps {
  font-family: var(--psr-font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  font-weight: 600;
}

.psr-cp-mark--soft {
  font-weight: 500;
  letter-spacing: -0.01em;
}

.psr-cp-cell:hover .psr-cp-mark {
  color: var(--psr-ink);
}

/* ==========================================================================
   Section 2: Lattis Two-Tone Manifesto Statement
   ========================================================================== */
.psr-manifesto-band {
  position: relative;
  z-index: 1;
  border-bottom: 1px solid var(--psr-line);
  padding: 76px 0;
}

.psr-manifesto-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 44px;
  align-items: start;
}

.psr-manifesto-label {
  padding-top: 8px;
  font-family: var(--psr-font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--psr-primary);
}

.psr-manifesto-copy {
  margin: 0;
  font-family: var(--psr-font-display);
  font-size: clamp(1.65rem, 2.8vw, 2.35rem);
  font-weight: 500;
  line-height: 1.24;
  letter-spacing: -0.032em;
  color: var(--psr-ink);
}

.psr-manifesto-muted {
  color: var(--psr-muted-light);
  font-weight: 400;
}

/* ==========================================================================
   Section 3: Lattis Full-Width Interactive Multi-Pane Record Console
   ========================================================================== */
.psr-console-band {
  position: relative;
  z-index: 1;
  border-bottom: 1px solid var(--psr-line);
  padding: 84px 0 72px;
}

.psr-split-head {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: end;
  margin-bottom: 42px;
}

.psr-title-lg {
  margin: 0;
  font-family: var(--psr-font-display);
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.036em;
  color: var(--psr-ink);
}

.psr-accent-line {
  color: var(--psr-primary);
}

.psr-section-desc {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.6;
  color: var(--psr-muted);
}

/* Rounded #F6F7FB Console Shell */
.psr-console-shell {
  background: var(--psr-surface-soft);
  border: 1px solid var(--psr-line);
  border-radius: 24px;
  padding: 24px;
  display: grid;
  grid-template-columns: 2.15fr 1fr;
  gap: 20px;
  align-items: stretch;
}

.psr-console-app {
  background: #FFFFFF;
  border: 1px solid var(--psr-line);
  border-radius: 18px;
  box-shadow: var(--psr-shadow-console);
  display: grid;
  grid-template-columns: 188px 1fr;
  overflow: hidden;
}

/* Left White Sidebar */
.psr-console-sidebar {
  border-right: 1px solid var(--psr-line);
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #FFFFFF;
}

.psr-console-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 6px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--psr-ink);
}

.psr-console-env-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 8px;
  background: #F8FAFC;
  border: 1px solid var(--psr-line);
  font-size: 0.72rem;
  font-weight: 500;
  color: #334155;
}

.psr-console-env-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--psr-primary);
}

.psr-console-nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.psr-console-tab {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 8px 10px;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: #64748B;
  font-size: 0.8rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.psr-console-tab:hover {
  background: #F8FAFC;
  color: var(--psr-ink);
}

.psr-console-tab[aria-selected="true"] {
  background: #EEF2FF;
  color: var(--psr-ink);
  font-weight: 600;
}

.psr-console-tab-dot {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  border: 1.5px solid currentColor;
  opacity: 0.7;
  flex-shrink: 0;
}

.psr-console-tab[aria-selected="true"] .psr-console-tab-dot {
  background: var(--psr-primary);
  border-color: var(--psr-primary);
  opacity: 1;
}

/* Center White Panel */
.psr-console-main {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.psr-console-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.psr-console-view-title {
  margin: 0;
  font-size: 0.96rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--psr-ink);
}

.psr-console-pills {
  display: flex;
  align-items: center;
  gap: 6px;
}

.psr-mini-pill {
  padding: 4px 10px;
  border-radius: var(--psr-radius-pill);
  border: 1px solid var(--psr-line);
  background: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 500;
  color: #475569;
}

.psr-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.psr-kpi-tile {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--psr-line);
  background: #FFFFFF;
}

.psr-kpi-lbl {
  display: block;
  font-size: 0.7rem;
  color: var(--psr-muted-light);
  margin-bottom: 5px;
}

.psr-kpi-val-wrap {
  display: flex;
  align-items: baseline;
  gap: 5px;
  flex-wrap: wrap;
}

.psr-kpi-val {
  font-family: var(--psr-font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--psr-ink);
}

.psr-kpi-delta {
  font-family: var(--psr-font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--psr-primary);
}

.psr-chart-box {
  border: 1px solid var(--psr-line);
  border-radius: 12px;
  padding: 14px 16px 12px;
  background: #FFFFFF;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.psr-chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.psr-chart-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--psr-ink);
}

.psr-chart-legend {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--psr-font-mono);
  font-size: 0.68rem;
  color: var(--psr-muted);
}

.psr-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.psr-legend-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.psr-trend-svg {
  width: 100%;
  height: 126px;
}

/* Right Detached Trace Replay Card */
.psr-trace-card {
  background: #FFFFFF;
  border: 1px solid var(--psr-line);
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--psr-shadow-console);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.psr-trace-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.psr-trace-title {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--psr-ink);
  letter-spacing: -0.015em;
}

.psr-trace-sub {
  display: block;
  font-family: var(--psr-font-mono);
  font-size: 0.68rem;
  color: var(--psr-muted-light);
  margin-top: 2px;
}

.psr-replay-btn {
  padding: 5px 12px;
  border-radius: var(--psr-radius-pill);
  border: 1px solid var(--psr-line);
  background: #FFFFFF;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--psr-ink);
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.psr-replay-btn:hover {
  background: var(--psr-primary-soft);
  border-color: var(--psr-primary-border);
  color: var(--psr-primary);
}

.psr-trace-steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.psr-trace-step {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid var(--psr-line);
  background: #FFFFFF;
  font-family: var(--psr-font-mono);
  font-size: 0.74rem;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.psr-trace-step.is-running {
  border-color: var(--psr-primary);
  background: var(--psr-primary-soft);
  transform: translateX(2px);
}

.psr-trace-step.is-done {
  border-color: #CBD5E1;
  background: #F8FAFC;
}

.psr-trace-step-name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--psr-ink);
  font-weight: 500;
}

.psr-trace-sq {
  width: 6px;
  height: 6px;
  border-radius: 1.5px;
  background: var(--psr-ink);
}

.psr-trace-step.is-running .psr-trace-sq {
  background: var(--psr-primary);
}

.psr-trace-time {
  color: var(--psr-muted-light);
}

.psr-trace-time--accent {
  color: var(--psr-primary);
  font-weight: 600;
}

.psr-trace-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #EEF2FF;
  border: 1px solid #DBE4FF;
}

.psr-trace-footer-text strong {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--psr-ink);
}

.psr-trace-footer-text span {
  font-family: var(--psr-font-mono);
  font-size: 0.68rem;
  color: var(--psr-primary);
}

.psr-trace-approve {
  padding: 7px 14px;
  border-radius: var(--psr-radius-pill);
  background: var(--psr-ink);
  color: #FFFFFF;
  font-size: 0.74rem;
  font-weight: 600;
  white-space: nowrap;
}

.psr-trace-approve:hover {
  background: var(--psr-primary);
}

/* 4 Capabilities Grid Directly Below Console */
.psr-capabilities-strip {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--psr-line);
  border-radius: 18px;
  overflow: hidden;
  background: #FFFFFF;
}

.psr-cap-card {
  padding: 26px 22px;
  border-right: 1px solid var(--psr-line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.psr-cap-card:last-child {
  border-right: none;
}

.psr-cap-idx {
  font-family: var(--psr-font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--psr-primary);
  letter-spacing: 0.05em;
}

.psr-cap-title {
  margin: 6px 0 8px;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--psr-ink);
}

.psr-cap-desc {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.56;
  color: var(--psr-muted);
}

.psr-cap-out {
  font-family: var(--psr-font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  color: #475569;
  padding-top: 12px;
  border-top: 1px solid var(--psr-line);
}

/* ==========================================================================
   Section 4: 4-Stage Pipeline Deep-Dive & Deterministic Disposition Schema
   ========================================================================== */
.psr-pipeline-band {
  position: relative;
  z-index: 1;
  border-bottom: 1px solid var(--psr-line);
  padding: 84px 0;
}

.psr-workbench {
  margin-top: 36px;
  background: var(--psr-surface-soft);
  border: 1px solid var(--psr-line);
  border-radius: 22px;
  padding: 20px;
}

.psr-stage-rail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}

.psr-stage-btn {
  flex: 1 1 160px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid var(--psr-line);
  background: #FFFFFF;
  color: var(--psr-muted);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.psr-stage-btn:hover {
  border-color: var(--psr-line-strong);
  color: var(--psr-ink);
}

.psr-stage-btn[aria-pressed="true"] {
  border-color: var(--psr-primary);
  background: #FFFFFF;
  color: var(--psr-ink);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.10);
}

.psr-stage-num {
  font-family: var(--psr-font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--psr-primary);
}

.psr-stage-name {
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.psr-cycle-btn {
  padding: 10px 14px;
  border-radius: var(--psr-radius-pill);
  border: 1px solid var(--psr-line);
  background: #FFFFFF;
  font-family: var(--psr-font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
}

.psr-workbench-body {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 18px;
}

.psr-schematic-pane,
.psr-inspector-pane {
  background: #FFFFFF;
  border: 1px solid var(--psr-line);
  border-radius: 16px;
  padding: 20px;
}

.psr-schematic-pane {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.psr-schematic-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.psr-schematic-caption {
  font-size: 0.78rem;
  color: var(--psr-muted);
  font-weight: 500;
}

.psr-graph-svg {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.psr-graph-link {
  fill: none;
  stroke: #CBD5E1;
  stroke-width: 2;
  stroke-dasharray: 5 4;
  transition: stroke 0.25s ease;
}

.psr-graph-link.psr-link-lit {
  stroke: var(--psr-primary);
  stroke-dasharray: none;
}

.psr-graph-node rect {
  fill: #FFFFFF;
  stroke: #CBD5E1;
  stroke-width: 1.4;
  transition: stroke 0.25s ease, fill 0.25s ease;
}

.psr-graph-node.psr-node-active rect {
  stroke: var(--psr-primary);
  stroke-width: 2.2;
  fill: #EFF6FF;
}

.psr-graph-node.psr-node-complete rect {
  stroke: var(--psr-emerald);
  fill: #F8FAFC;
}

.psr-stage-summary-bar {
  padding: 12px 14px;
  border-radius: 10px;
  background: #F8FAFC;
  border: 1px solid var(--psr-line);
  font-size: 0.84rem;
  line-height: 1.52;
  color: #334155;
}

.psr-inspector-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--psr-line);
  margin-bottom: 14px;
}

.psr-inspector-id {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--psr-ink);
}

.psr-inspector-hash {
  display: block;
  font-family: var(--psr-font-mono);
  font-size: 0.7rem;
  color: var(--psr-muted);
  margin-top: 3px;
}

.psr-status-pill {
  padding: 5px 10px;
  border-radius: var(--psr-radius-pill);
  background: var(--psr-primary-soft);
  border: 1px solid var(--psr-primary-border);
  color: var(--psr-primary);
  font-family: var(--psr-font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  white-space: nowrap;
}

.psr-status-pill.psr-pill-verified {
  background: var(--psr-emerald-bg);
  border-color: var(--psr-emerald-border);
  color: var(--psr-emerald);
}

.psr-kv-list {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.psr-kv-row {
  padding: 10px 12px;
  border-radius: 10px;
  background: #F8FAFC;
  border: 1px solid var(--psr-line);
}

.psr-kv-row dt {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--psr-muted);
  margin-bottom: 3px;
}

.psr-kv-row dd {
  margin: 0 0 4px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--psr-ink);
}

.psr-kv-code {
  display: block;
  font-family: var(--psr-font-mono);
  font-size: 0.68rem;
  color: var(--psr-primary);
}

/* 3-State Deterministic Schema Row */
.psr-schema-strip {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.psr-disp-card {
  padding: 22px;
  border-radius: 16px;
  border: 1px solid var(--psr-line);
  background: #FFFFFF;
}

.psr-disp-code {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--psr-radius-pill);
  font-family: var(--psr-font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.psr-code-ok {
  background: var(--psr-emerald-bg);
  color: var(--psr-emerald);
  border: 1px solid var(--psr-emerald-border);
}

.psr-code-warn {
  background: var(--psr-amber-bg);
  color: var(--psr-amber);
  border: 1px solid var(--psr-amber-border);
}

.psr-code-neutral {
  background: #F1F5F9;
  color: #475569;
  border: 1px solid #CBD5E1;
}

.psr-disp-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--psr-ink);
}

.psr-disp-card p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.56;
  color: var(--psr-muted);
}

/* ==========================================================================
   Section 5: Structured Lattis FAQ Accordion
   ========================================================================== */
.psr-faq-band {
  position: relative;
  z-index: 1;
  border-bottom: 1px solid var(--psr-line);
  padding: 84px 0;
}

.psr-faq-wrap {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: start;
}

.psr-faq-stack {
  border-bottom: 1px solid var(--psr-line);
}

.psr-faq-item {
  border-top: 1px solid var(--psr-line);
}

.psr-faq-summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 4px;
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--psr-ink);
  cursor: pointer;
  transition: color 0.15s ease;
}

.psr-faq-summary::-webkit-details-marker {
  display: none;
}

.psr-faq-summary:hover {
  color: var(--psr-primary);
}

.psr-faq-plus {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--psr-line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--psr-muted);
  flex-shrink: 0;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.psr-faq-item[open] .psr-faq-plus {
  transform: rotate(45deg);
  background: var(--psr-ink);
  border-color: var(--psr-ink);
  color: #FFFFFF;
}

.psr-faq-answer {
  padding: 0 32px 22px 4px;
  font-size: 0.9rem;
  line-height: 1.62;
  color: var(--psr-muted);
}

/* ==========================================================================
   Closing CTA Band & Lattis Framed Gallery Footer
   ========================================================================== */
.psr-cta-band {
  position: relative;
  z-index: 1;
  border-bottom: 1px solid var(--psr-line);
  padding: 64px 0;
}

.psr-cta-box {
  background: var(--psr-surface-soft);
  border: 1px solid var(--psr-line);
  border-radius: 22px;
  padding: 40px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.psr-cta-box h2 {
  margin: 0 0 8px;
  font-family: var(--psr-font-display);
  font-size: clamp(1.55rem, 2.6vw, 2.15rem);
  font-weight: 500;
  letter-spacing: -0.032em;
  color: var(--psr-ink);
}

.psr-cta-box p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--psr-muted);
}

.psr-footer {
  position: relative;
  z-index: 1;
  padding: 64px 0 0;
  background: #FFFFFF;
}

.psr-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}

.psr-footer-summary {
  margin: 14px 0 16px;
  max-width: 390px;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--psr-muted);
}

.psr-footer-entity {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.65;
  color: #475569;
}

.psr-footer-entity a {
  color: var(--psr-primary);
  font-weight: 500;
}

.psr-footer-heading {
  margin: 0 0 14px;
  font-family: var(--psr-font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--psr-muted-light);
}

.psr-footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.psr-footer-list a {
  font-size: 0.88rem;
  color: #475569;
  transition: color 0.15s ease;
}

.psr-footer-list a:hover {
  color: var(--psr-primary);
}

.psr-footer-bar {
  border-top: 1px solid var(--psr-line);
  padding: 22px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--psr-muted);
}

.psr-footer-mono {
  font-family: var(--psr-font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--psr-muted-light);
}

.psr-footer-wordmark {
  width: 100%;
  overflow: hidden;
  line-height: 0.78;
  padding-top: 8px;
  text-align: center;
  user-select: none;
  pointer-events: none;
}

.psr-footer-wordmark span {
  display: inline-block;
  font-family: var(--psr-font-display);
  font-size: clamp(4.8rem, 15.5vw, 13.5rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  color: #F1F4FB;
  transform: translateY(14%);
}

/* ==========================================================================
   Portal (/login) — Lattis Gallery-Sheet Workspace
   ========================================================================== */
.psr-portal-section {
  padding: 34px 0 72px;
  border-bottom: 1px solid var(--psr-line);
}

.psr-portal-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
}

.psr-strip-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: var(--psr-radius-pill);
  background: var(--psr-surface-soft);
  border: 1px solid var(--psr-line);
  font-family: var(--psr-font-mono);
  font-size: 0.71rem;
  font-weight: 600;
  color: var(--psr-ink-2);
}

.psr-strip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--psr-primary);
  display: inline-block;
  flex-shrink: 0;
}

.psr-strip-phone {
  background: var(--psr-primary-soft);
  border-color: var(--psr-primary-border);
  color: var(--psr-primary);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.psr-strip-phone:hover {
  background: var(--psr-primary);
  color: #FFFFFF;
}

.psr-portal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  gap: 36px;
  align-items: start;
}

.psr-portal-h1 {
  margin: 0 0 8px;
  font-family: var(--psr-font-display);
  font-size: clamp(1.55rem, 2.5vw, 2.05rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.14;
  color: var(--psr-ink);
}

.psr-portal-lead {
  margin: 0 0 18px;
  font-size: 0.91rem;
  line-height: 1.52;
  color: var(--psr-muted);
}

.psr-portal-aside h2 {
  margin: 10px 0 14px;
  font-family: var(--psr-font-display);
  font-size: clamp(1.65rem, 2.6vw, 2.25rem);
  font-weight: 500;
  letter-spacing: -0.034em;
  line-height: 1.12;
  color: var(--psr-ink);
}

.psr-portal-aside > p {
  margin: 0 0 22px;
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--psr-muted);
}

.psr-portal-check-list {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.psr-portal-check-list li {
  position: relative;
  padding-left: 26px;
  font-size: 0.88rem;
  font-weight: 500;
  color: #334155;
}

.psr-portal-check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: var(--psr-primary-soft);
  border: 1px solid var(--psr-primary-border);
  color: var(--psr-primary);
  font-size: 0.7rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.psr-support-box {
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--psr-surface-soft);
  border: 1px solid var(--psr-line);
  font-size: 0.84rem;
  line-height: 1.6;
  color: #475569;
}

.psr-support-box strong {
  color: var(--psr-ink);
}

.psr-support-box a {
  color: var(--psr-primary);
  font-weight: 600;
}

.psr-portal-card {
  background: #FFFFFF;
  border: 1px solid var(--psr-line);
  border-radius: 22px;
  padding: 28px;
  box-shadow: var(--psr-shadow-float);
}

.psr-stepper {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px;
  border-radius: var(--psr-radius-pill);
  background: var(--psr-surface-soft);
  border: 1px solid var(--psr-line);
  margin-bottom: 20px;
}

.psr-step-pill {
  flex: 1;
  text-align: center;
  padding: 8px 12px;
  border-radius: var(--psr-radius-pill);
  font-family: var(--psr-font-mono);
  font-size: 0.73rem;
  font-weight: 600;
  color: var(--psr-muted);
  transition: background-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.psr-step-pill.psr-step-current {
  background: #FFFFFF;
  color: var(--psr-ink);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.psr-step-pill.psr-step-done {
  color: var(--psr-emerald);
}

.psr-alert {
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 0.86rem;
  line-height: 1.55;
  margin-bottom: 18px;
}

.psr-alert-info {
  background: var(--psr-primary-soft);
  border: 1px solid var(--psr-primary-border);
  color: #1E3A8A;
}

.psr-alert-warn {
  background: var(--psr-amber-bg);
  border: 1px solid var(--psr-amber-border);
  color: #92400E;
}

.psr-alert-err {
  background: var(--psr-danger-bg);
  border: 1px solid var(--psr-danger-border);
  color: #991B1B;
}

.psr-form-group {
  margin-bottom: 18px;
}

.psr-label {
  display: block;
  margin-bottom: 7px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--psr-ink);
}

.psr-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--psr-line-strong);
  background: #FFFFFF;
  color: var(--psr-ink);
  font-size: 0.94rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.psr-input:focus {
  outline: none;
  border-color: var(--psr-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.psr-full-btn {
  width: 100%;
  padding: 13px 22px;
}

.psr-verified-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  border-radius: 12px;
  background: var(--psr-emerald-bg);
  border: 1px solid var(--psr-emerald-border);
  margin-bottom: 18px;
}

.psr-verified-meta strong {
  display: block;
  font-size: 0.88rem;
  color: #064E3B;
}

.psr-verified-meta span {
  font-family: var(--psr-font-mono);
  font-size: 0.72rem;
  color: var(--psr-emerald);
}

.psr-link-btn {
  border: none;
  background: transparent;
  color: #065F46;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

.psr-amount-panel {
  padding: 18px;
  border-radius: 14px;
  background: var(--psr-surface-soft);
  border: 1px solid var(--psr-line);
  margin-bottom: 18px;
}

.psr-amount-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
}

.psr-amount-readout {
  font-family: var(--psr-font-display);
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--psr-primary);
}

.psr-range {
  width: 100%;
  accent-color: var(--psr-primary);
  cursor: pointer;
  margin: 6px 0 14px;
}

.psr-preset-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.psr-preset-btn {
  padding: 8px 10px;
  border-radius: 9px;
  border: 1px solid var(--psr-line);
  background: #FFFFFF;
  font-family: var(--psr-font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
}

.psr-preset-btn[aria-pressed="true"] {
  background: var(--psr-ink);
  border-color: var(--psr-ink);
  color: #FFFFFF;
}

.psr-amount-note {
  margin: 10px 0 0;
  font-size: 0.75rem;
  color: var(--psr-muted);
}

.psr-esign-box {
  padding: 18px;
  border-radius: 14px;
  border: 1px solid var(--psr-line);
  background: #FFFFFF;
  margin-bottom: 16px;
}

.psr-esign-box h3 {
  margin: 0 0 6px;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--psr-ink);
}

.psr-rights-list {
  margin: 10px 0 12px;
  padding-left: 18px;
  font-size: 0.82rem;
  line-height: 1.55;
  color: #475569;
}

.psr-rights-list li + li {
  margin-top: 5px;
}

.psr-consent-details {
  border: 1px solid var(--psr-line);
  border-radius: 10px;
  background: #F8FAFC;
  padding: 10px 12px;
}

.psr-consent-details summary {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--psr-primary);
  cursor: pointer;
}

.psr-consent-doc {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--psr-line);
  max-height: 240px;
  overflow-y: auto;
  font-size: 0.78rem;
  line-height: 1.58;
  color: #475569;
}

.psr-consent-doc-head {
  margin-bottom: 10px;
}

.psr-consent-doc-head strong {
  display: block;
  color: var(--psr-ink);
}

.psr-consent-doc-head span {
  font-family: var(--psr-font-mono);
  font-size: 0.7rem;
  color: var(--psr-muted);
}

.psr-consent-doc h4 {
  margin: 12px 0 4px;
  font-size: 0.8rem;
  color: var(--psr-ink);
}

.psr-check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 0.8rem;
  line-height: 1.52;
  color: #334155;
  cursor: pointer;
}

.psr-check-row input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--psr-primary);
  flex-shrink: 0;
}

.psr-sig-preview {
  padding: 14px 16px;
  border-radius: 12px;
  background: #F8FAFC;
  border: 1px dashed var(--psr-line-strong);
  margin-bottom: 18px;
}

.psr-sig-script {
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-size: 1.25rem;
  color: var(--psr-ink);
  margin-bottom: 4px;
}

.psr-sig-meta {
  font-family: var(--psr-font-mono);
  font-size: 0.7rem;
  line-height: 1.5;
  color: var(--psr-muted);
}

/* ==========================================================================
   Legal & 404 Pages — Framed Gallery Sheet Readability
   ========================================================================== */
.psr-legal-section {
  padding: 56px 0 80px;
  border-bottom: 1px solid var(--psr-line);
}

.psr-legal-paper {
  max-width: 820px;
  margin: 0 auto;
  background: #FFFFFF;
  border: 1px solid var(--psr-line);
  border-radius: 22px;
  padding: 44px 48px;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.04);
}

.psr-legal-paper h1 {
  margin: 10px 0 10px;
  font-family: var(--psr-font-display);
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  color: var(--psr-ink);
}

.psr-legal-meta {
  font-family: var(--psr-font-mono);
  font-size: 0.75rem;
  color: var(--psr-muted);
  padding-bottom: 22px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--psr-line);
}

.psr-legal-paper h2 {
  margin: 28px 0 10px;
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--psr-ink);
}

.psr-legal-paper p,
.psr-legal-paper li {
  font-size: 0.93rem;
  line-height: 1.68;
  color: #334155;
}

.psr-legal-paper ul {
  padding-left: 20px;
}

.psr-legal-paper li + li {
  margin-top: 8px;
}

.psr-legal-paper a {
  color: var(--psr-primary);
  font-weight: 500;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1120px) {
  .psr-shell,
  .psr-sheet-rails,
  .psr-counterparty-grid {
    width: calc(100% - 40px);
  }

  .psr-shell {
    padding-left: 20px;
    padding-right: 20px;
  }

  .psr-triptych {
    grid-template-columns: 1fr;
    max-width: 540px;
    margin: 0 auto;
  }

  .psr-trip-left,
  .psr-trip-center,
  .psr-trip-right {
    height: auto;
    min-height: 360px;
  }

  .psr-counterparty-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .psr-cp-cell {
    border-bottom: 1px solid var(--psr-line);
  }

  .psr-console-shell {
    grid-template-columns: 1fr;
  }

  .psr-capabilities-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .psr-cap-card:nth-child(2) {
    border-right: none;
  }

  .psr-cap-card:nth-child(1),
  .psr-cap-card:nth-child(2) {
    border-bottom: 1px solid var(--psr-line);
  }

  .psr-workbench-body {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 959px) {
  .psr-portal-section {
    padding: 22px 0 52px;
  }

  .psr-portal-strip {
    margin-bottom: 16px;
    gap: 6px;
  }

  .psr-portal-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 860px) {
  body.psr-body {
    padding: 10px 8px 20px;
  }

  .psr-sheet-rails {
    display: none;
  }

  .psr-shell,
  .psr-counterparty-grid {
    width: 100%;
    padding-left: 20px;
    padding-right: 20px;
  }

  .psr-counterparty-grid {
    padding: 0;
    grid-template-columns: repeat(2, 1fr);
  }

  .psr-nav-toggle {
    display: inline-flex;
  }

  .psr-topbar-actions {
    display: none;
  }

  .psr-nav {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    background: #FFFFFF;
    border: 1px solid var(--psr-nav-border);
    border-radius: 20px;
    box-shadow: var(--psr-shadow-float);
  }

  .psr-nav.psr-nav-open {
    display: flex;
  }

  .psr-nav-link {
    padding: 10px 14px;
  }

  .psr-nav-cta-mobile {
    display: inline-flex;
    justify-content: center;
    margin-top: 6px;
    padding: 10px 16px;
    border-radius: var(--psr-radius-pill);
    background: var(--psr-ink);
    color: #FFFFFF;
    font-size: 0.86rem;
    font-weight: 600;
  }

  .psr-manifesto-grid,
  .psr-split-head,
  .psr-faq-wrap,
  .psr-footer-grid,
  .psr-schema-strip {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .psr-console-app {
    grid-template-columns: 1fr;
  }

  .psr-console-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--psr-line);
  }

  .psr-console-nav {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .psr-console-tab {
    width: auto;
  }

  .psr-kpi-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .psr-cta-box {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 24px;
  }

  .psr-legal-paper {
    padding: 28px 22px;
  }
}

@media (max-width: 560px) {
  .psr-capabilities-strip,
  .psr-counterparty-grid,
  .psr-preset-row {
    grid-template-columns: 1fr;
  }

  .psr-cap-card {
    border-right: none;
    border-bottom: 1px solid var(--psr-line);
  }

  .psr-cap-card:last-child {
    border-bottom: none;
  }

  body.psr-body-portal {
    padding: 8px 6px 18px;
  }

  .psr-body-portal .psr-topbar {
    top: 8px;
    padding: 12px 14px 0;
  }

  .psr-body-portal .psr-shell {
    padding-left: 14px;
    padding-right: 14px;
  }

  .psr-portal-section {
    padding: 20px 0 42px;
  }

  .psr-portal-strip {
    margin-bottom: 12px;
    gap: 5px;
  }

  .psr-strip-pill {
    padding: 4px 9px;
    font-size: 0.64rem;
    gap: 5px;
  }

  .psr-portal-card {
    padding: 16px 16px 20px;
    border-radius: 18px;
  }

  .psr-stepper {
    margin-bottom: 14px;
  }

  .psr-step-pill {
    padding: 6px 8px;
    font-size: 0.67rem;
  }

  .psr-portal-h1 {
    font-size: 1.4rem;
    line-height: 1.15;
    margin-bottom: 6px;
  }

  .psr-portal-lead {
    font-size: 0.84rem;
    line-height: 1.44;
    margin-bottom: 14px;
  }

  #psr-lookup-form .psr-form-group {
    margin-bottom: 12px;
  }

  #psr-lookup-form .psr-label {
    margin-bottom: 5px;
  }

  #psr-lookup-form .psr-input {
    padding: 10px 12px;
  }

  .psr-portal-tls-note {
    display: none;
  }
}
