/* VouchMorph partner sandbox: the portal's look (the owner's design, 30 Nov 2026).
   Sharp corners, black on white, one red for "now" and for paths. Every portal page
   uses these classes; a page may add its own file for what only it needs. */

.pt {
  --ink: #0B0B0B;
  --paper: #FFFFFF;
  --panel: #F4F4F4;
  --line: #DDDDDD;
  --rule: #E8E8E8;
  --muted: #5F5F5F;
  --quiet: #8A8A8A;
  --red: #D7261E;
  --display: Unbounded, "Segoe UI", system-ui, sans-serif;
  --text: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 15px/24px var(--text);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
.pt.pt-dark {
  --ink: #F2F2F2;
  --paper: #0B0B0B;
  --panel: #141414;
  --line: #2A2A2A;
  --rule: #1F1F1F;
  --muted: #A3A3A3;
  --quiet: #7A7A7A;
  --red: #FF4A3D;
}
/* Resets sit in :where() so every component class below wins over them. */
.pt *, .pt *::before, .pt *::after { box-sizing: border-box; }
:where(.pt) a { color: var(--ink); }
:where(.pt) a:hover { color: var(--muted); }
.pt :focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
:where(.pt) :where(button, input, select, textarea) { font: inherit; color: inherit; border-radius: 0; }
:where(.pt) :where(h1, h2, h3, p) { margin: 0; }
.pt-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Top bar */
.pt-top { display: flex; align-items: center; gap: 24px; padding: 24px 0 16px; border-bottom: 1px solid var(--line); }
.pt-logo { height: 18px; width: auto; display: block; }
.pt-dark .pt-logo { filter: invert(1); }
.pt-tag { font: 500 11px/14px var(--display); letter-spacing: .3em; border: 1.5px solid var(--ink); padding: 6px 10px; }
.pt-crumb { font: 500 10px/14px var(--display); letter-spacing: .3em; color: var(--muted); text-transform: uppercase; }
.pt-grow { flex: 1; }
.pt-who { color: var(--muted); font-size: 14px; text-align: right; }
.pt-who strong { color: var(--ink); font-weight: 500; }
.pt-signout { display: inline; margin: 0; }
.pt-text-btn { background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; font-size: 14px; }
.pt-back { display: inline-block; margin-top: 8px; font-size: 14px; }

/* Page */
.pt-wrap { max-width: 1280px; margin: 0 auto; padding: 0 40px 96px; }
.pt-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; margin-top: 40px; }
.pt-main { min-width: 0; }
.pt-main > * + * { margin-top: 32px; }
.pt-main-solo { margin-top: 40px; }
.pt-mt-12 { margin-top: 12px; }
.pt-mt-16 { margin-top: 16px; }
.pt-mt-24 { margin-top: 24px; }

/* Journey */
.pt-journey-label { font: 500 10px/14px var(--display); letter-spacing: .3em; color: var(--muted); text-transform: uppercase; margin-bottom: 16px; }
.pt-journey { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.pt-journey li { border-bottom: 1px solid var(--line); }
.pt-journey a { display: grid; grid-template-columns: 36px 1fr 12px; align-items: center; gap: 4px; padding: 14px 16px; text-decoration: none; }
.pt-journey a[aria-current="step"] { background: var(--ink); color: var(--paper); }
.pt-journey-n { font: 500 12px/16px var(--display); letter-spacing: .08em; }
.pt-journey-key { margin-top: 16px; color: var(--muted); font-size: 12px; line-height: 18px; }
.pt-sq { display: inline-block; width: 9px; height: 9px; background: var(--ink); flex: none; }
.pt-sq-hollow { background: transparent; border: 1.5px solid var(--ink); }
.pt-sq-red { background: var(--red); }
.pt-journey a[aria-current="step"] .pt-sq { background: var(--red); }

/* Headings and text */
.pt-eyebrow { font: 500 11px/16px var(--display); letter-spacing: .3em; color: var(--muted); text-transform: uppercase; }
.pt-h1 { font: 600 clamp(36px, 5vw, 60px)/1.05 var(--display); letter-spacing: -.03em; margin-top: 16px; }
.pt-h2 { font: 600 24px/1.2 var(--display); letter-spacing: -.02em; }
.pt-lead { color: var(--muted); font-size: 18px; line-height: 30px; max-width: 760px; margin-top: 16px; }
.pt-muted { color: var(--muted); }
.pt-note { color: var(--muted); font-size: 13px; line-height: 20px; }
.pt-label { font: 600 11px/16px var(--display); letter-spacing: .24em; text-transform: uppercase; color: var(--ink); }
.pt-label-quiet { color: var(--muted); }
.pt-mono { font-family: var(--mono); font-size: 14px; }
.pt-path { font-family: var(--mono); color: var(--red); word-break: break-all; }
.pt-big { font: 600 72px/1 var(--display); letter-spacing: -.04em; }
.pt-big small { font-size: 28px; color: var(--muted); letter-spacing: 0; }

/* Progress bars (ten steps, or any count) */
.pt-progress { display: flex; gap: 6px; }
.pt-progress span { flex: 1; height: 6px; background: var(--rule); }
.pt-progress span.pt-on { background: var(--ink); }
.pt-progress span.pt-now { background: var(--red); }

/* Panels and grids */
.pt-panel { background: var(--panel); border: 1px solid var(--line); }
.pt-section { padding: 32px; }
/* Stacked parts of a panel are ruled apart; the columns of a split are ruled by .pt-split. */
.pt-panel > * + * { border-top: 1px solid var(--line); }
.pt-split { display: grid; grid-template-columns: 1fr 1fr; }
.pt-split > * + * { border-left: 1px solid var(--line); }
.pt-numbered { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; }
.pt-num { font: 500 14px/20px var(--display); color: var(--muted); }
.pt-dark-panel { background: #0B0B0B; color: #F2F2F2; --ink: #F2F2F2; --muted: #A3A3A3; --line: #2A2A2A; --red: #FF4A3D; }

/* Rows */
.pt-rows { list-style: none; margin: 16px 0 0; padding: 0; border-top: 1px solid var(--line); }
.pt-rows > li { display: flex; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.pt-rows .pt-end { margin-left: auto; text-align: right; color: var(--muted); font-family: var(--mono); font-size: 13px; }
.pt-rows .pt-end-text { font-family: var(--text); font-size: 14px; }
.pt-method { display: inline-block; min-width: 52px; text-align: center; font: 600 10px/14px var(--display); letter-spacing: .14em; border: 1.5px solid var(--ink); padding: 3px 6px; }

/* Tables */
.pt-table { width: 100%; border-collapse: collapse; margin-top: 16px; }
.pt-table th { text-align: left; font: 600 10px/14px var(--display); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
.pt-table td { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.pt-table .pt-num-cell { text-align: right; font-family: var(--mono); }

/* Forms */
.pt-field { display: block; margin-top: 16px; }
.pt-field > span { display: block; color: var(--muted); font-size: 14px; margin-bottom: 8px; }
.pt-input, .pt-select, .pt-textarea { width: 100%; background: var(--paper); border: 1px solid #BDBDBD; padding: 12px 14px; font-size: 15px; }
.pt-input.pt-mono, .pt-textarea.pt-mono { font-family: var(--mono); font-size: 14px; }
.pt-textarea { min-height: 120px; resize: vertical; }
.pt-check-label { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; color: var(--muted); }
.pt-seg { display: inline-flex; flex-wrap: wrap; border: 1.5px solid var(--ink); }
.pt-seg > * { border: 0; background: var(--paper); padding: 12px 20px; cursor: pointer; text-decoration: none; }
.pt-seg > * + * { border-left: 1.5px solid var(--ink); }
.pt-seg > [aria-pressed="true"], .pt-seg > [aria-current="page"], .pt-seg > input:checked + span { background: var(--ink); color: var(--paper); }
.pt-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.pt-choice { position: relative; }
.pt-choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pt-choice span { display: inline-block; border: 1px solid #BDBDBD; padding: 10px 16px; background: var(--paper); }
.pt-choice input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pt-choice input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.pt-choice input:disabled + span { opacity: .5; }

/* Buttons */
.pt-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.pt-btn { display: inline-flex; align-items: center; gap: 16px; background: var(--ink); color: var(--paper); border: 1.5px solid var(--ink); padding: 14px 24px; cursor: pointer; text-decoration: none; }
.pt a.pt-btn, .pt a.pt-btn:hover { color: var(--paper); }
.pt-btn-line { display: inline-flex; align-items: center; gap: 12px; background: transparent; color: var(--ink); border: 1.5px solid var(--ink); padding: 14px 24px; cursor: pointer; text-decoration: none; }
.pt-btn-wide { width: 100%; justify-content: space-between; }
.pt-btn[disabled], .pt-btn-line[disabled] { opacity: .45; cursor: not-allowed; }

/* Checks (check connection and the like) */
.pt-checks { list-style: none; margin: 16px 0 0; padding: 0; }
.pt-checks li { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.pt-checks .pt-end { margin-left: auto; font-family: var(--mono); font-size: 13px; color: var(--muted); }

/* Code */
.pt-code { background: #000; color: #EDEDED; font: 400 13px/22px var(--mono); padding: 24px; overflow-x: auto; border: 1px solid #222; white-space: pre; margin: 0; }
.pt-chip { display: inline-flex; align-items: baseline; gap: 10px; border: 1px solid var(--line); padding: 8px 14px; }
.pt-chip small { color: var(--muted); font-size: 12px; }
.pt-proposed { border: 1.5px dashed var(--quiet); color: var(--muted); font: 600 10px/14px var(--display); letter-spacing: .2em; padding: 3px 8px; }

/* Alerts */
.pt-alert { display: flex; gap: 12px; align-items: center; border: 1.5px solid var(--ink); padding: 14px 18px; }
.pt-alert-bad { border-color: var(--red); }
.pt-alert-bad .pt-sq { background: var(--red); }

@media (max-width: 960px) {
  .pt-wrap { padding: 0 16px 64px; }
  .pt-layout { grid-template-columns: 1fr; gap: 32px; margin-top: 24px; }
  .pt-split { grid-template-columns: 1fr; }
  .pt-split > * + * { border-left: 0; border-top: 1px solid var(--line); }
  .pt-numbered { grid-template-columns: 1fr; gap: 8px; }
  .pt-section { padding: 20px; }
  .pt-top { flex-wrap: wrap; gap: 12px; }
  .pt-who { text-align: left; width: 100%; }
}
