/* =====================================================================
   Partner programme (/partners) and partner portal (/partner).

   Built on the tokens in styles.css rather than beside them — same
   navy, same red, same type scale, same radii. Two rules of thumb kept
   throughout: the public page is marketing and may be generous with
   space; the portal is a working tool and may not, because a partner
   opens it to answer a question and every extra scroll is friction on
   the thing they came for.
   ===================================================================== */

/* ============ shared ============ */

/* The browser's own `[hidden] { display: none }` lives in the UA stylesheet
   and loses to ANY author rule that sets `display` on the same element.
   Both .pp-app and .pp-modal set `display: grid`, so both were painted
   while still carrying the hidden attribute -- which put the modal's
   full-viewport backdrop over the sign-in page, greyed the whole thing out
   and swallowed the click on "Sign in". closeModal() could not rescue it
   either, because it only toggles `hidden`.

   Stated once, here, rather than patched into each rule: every element in
   this file is hidden by toggling `hidden` from JavaScript, so the
   attribute has to win. */
[hidden] { display: none !important; }

.btn-link {
  background: none; border: 0; padding: 0; cursor: pointer;
  font-family: var(--sans); font-size: var(--fs-xs); font-weight: 700;
  color: var(--brand); text-decoration: underline; text-underline-offset: 3px;
}
.btn-link:hover { color: var(--red); }
.req { color: var(--red); font-weight: 700; }

textarea {
  width: 100%; font-family: var(--sans); font-size: var(--fs-sm); color: var(--text);
  padding: 11px 13px; border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--paper); transition: border-color .15s; resize: vertical;
}
textarea:focus { border-color: var(--brand); outline: none; }

/* ============================================================
   PUBLIC PAGE — /partners
   ============================================================ */
/* The hero, the sections and the rhythm between them are all inherited
   from styles.css and NOT overridden here. That is deliberate and it is
   the second attempt: this page had its own tighter padding and its own
   two-column hero for a while, and the result was a partner page that
   did not look like the rest of the site. A page that is spaced
   differently from its neighbours reads as a page from somewhere else,
   which is the last thing a programme page should say. The only hero
   rule left is the lede measure, matching the other pages' heroes. */
.ptr-hero .hero-lede { max-width: 56ch; }

/* the single partner card. Deliberately one wide card rather than a
   three-up grid with two empty slots: a grid with one thing in it reads
   as a page that failed to load. */
.ptr-card {
  display: grid; grid-template-columns: 220px 1fr; gap: 0;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper); box-shadow: var(--shadow); overflow: hidden;
  max-width: 960px; margin: 0 auto;
}
@media (max-width: 780px) { .ptr-card { grid-template-columns: 1fr; } }

.ptr-card-badge {
  background: linear-gradient(160deg, var(--brand) 0%, var(--brand-deep) 100%);
  color: #fff; padding: 34px 26px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px; text-align: center;
}
.ptr-platinum .ptr-card-badge {
  background: linear-gradient(160deg, #2a2d5f 0%, #14163a 60%, #0d0f28 100%);
  position: relative;
}
.ptr-platinum .ptr-card-badge::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 38%, rgba(255,255,255,.14) 50%, transparent 62%);
  pointer-events: none;
}
.ptr-tier-mark { font-size: 40px; line-height: 1; opacity: .92; }
.ptr-tier-name {
  font-size: var(--fs-3xs); font-weight: 800; letter-spacing: var(--tr-caps);
  text-transform: uppercase;
}
.ptr-card-body { padding: 30px 32px; }
.ptr-card-body h3 {
  font-family: var(--serif); font-size: var(--fs-d3); line-height: 1.1;
  color: var(--ink); margin: 0 0 6px;
}
.ptr-card-role {
  font-family: var(--mono); font-size: var(--fs-2xs); color: var(--brand);
  margin: 0 0 16px; letter-spacing: .01em;
}
.ptr-card-lede { color: var(--muted); font-size: var(--fs-md); line-height: 1.6; margin: 0 0 18px; }
.ptr-card-caps { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 8px; }
.ptr-card-caps li { font-size: var(--fs-xs); color: var(--text); }
.ptr-card-caps strong { color: var(--ink); display: inline-block; min-width: 96px; }
.ptr-card-cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.ptr-card-since { font-size: var(--fs-3xs); color: var(--faint); font-family: var(--mono); }

.ptr-note { text-align: center; color: var(--muted); font-size: var(--fs-sm); margin-top: 28px; }

/* the four ways to partner */
.ptr-cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 820px) { .ptr-cats { grid-template-columns: 1fr; } }
.ptr-cat {
  display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 26px 22px; box-shadow: var(--shadow-sm);
}
.ptr-cat-build { border-color: #6b4fd8; }
.ptr-cat-sell { border-color: var(--red); }
.ptr-cat-service { border-color: var(--brand); }
.ptr-cat-integrate { border-color: #0f8a6a; }
.ptr-cat-head { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.ptr-cat-mark {
  display: grid; place-items: center; width: 44px; height: 44px; flex: none;
  border-radius: 12px; font-size: 20px; background: var(--brand-soft); color: var(--brand);
}
.ptr-cat-build .ptr-cat-mark { background: rgba(107, 79, 216, .1); color: #6b4fd8; }
.ptr-cat-sell .ptr-cat-mark { background: rgba(224, 38, 58, .09); color: var(--red-deep); }
.ptr-cat-integrate .ptr-cat-mark { background: rgba(15, 138, 106, .1); color: #0f8a6a; }
.ptr-cat-head h3 { font-size: var(--fs-lg); color: var(--ink); margin: 0; }
.ptr-cat-tag { font-size: var(--fs-2xs); color: var(--brand); font-weight: 600; margin: 2px 0 0; }
.ptr-cat-who {
  font-size: var(--fs-xs); color: var(--ink); font-weight: 600; line-height: 1.6; margin: 0 0 10px;
}
.ptr-cat-body { font-size: var(--fs-xs); color: var(--muted); line-height: 1.65; margin: 0 0 16px; }
.ptr-cat-gets { margin: 0 0 16px; }
.ptr-cat-gets li { font-size: var(--fs-2xs); }
.ptr-cat-cert {
  font-size: var(--fs-3xs); color: var(--muted); margin: 0 0 16px;
  padding-top: 12px; border-top: 1px solid var(--line);
}
.ptr-cat-cert span {
  font-weight: 800; letter-spacing: var(--tr-caps); text-transform: uppercase;
  color: var(--faint); font-size: var(--fs-6xs); margin-right: 6px;
}
.ptr-cat-cta {
  margin-top: auto; font-size: var(--fs-xs); font-weight: 700; color: var(--brand);
  text-decoration: none;
}
.ptr-cat-cta:hover { color: var(--red); }

/* benefits */
.ptr-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .ptr-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .ptr-grid { grid-template-columns: 1fr; } }
.ptr-benefit {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow-sm);
}
.ptr-benefit-mark {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 11px;
  background: var(--brand-soft); color: var(--brand); font-size: 19px; margin-bottom: 12px;
}
.ptr-benefit h3 { font-size: var(--fs-md); color: var(--ink); margin: 0 0 7px; }
.ptr-benefit p { font-size: var(--fs-xs); color: var(--muted); line-height: 1.6; margin: 0; }

/* The economics calculator used to live here. It moved into the portal
   with the rates it computes on — see public/partners.js for why — and
   its styles went with it. */

/* tiers */
.ptr-tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 980px) { .ptr-tiers { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .ptr-tiers { grid-template-columns: 1fr; } }
.ptr-tier {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
}
.ptr-tier.is-top { border-color: var(--brand); box-shadow: var(--shadow); }
.ptr-tier header { border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 12px; }
.ptr-tier h3 { font-size: var(--fs-lg); color: var(--ink); margin: 0; }
.ptr-tier-step {
  font-family: var(--mono); font-size: var(--fs-6xs); color: var(--faint);
  text-transform: uppercase; letter-spacing: .08em; margin: 0 0 4px;
}
.ptr-tier-req { font-size: var(--fs-3xs); color: var(--faint); margin: 0 0 12px; line-height: 1.5; }
.ptr-tier .checks li { font-size: var(--fs-2xs); }

/* steps */
.ptr-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: s; }
@media (max-width: 900px) { .ptr-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .ptr-steps { grid-template-columns: 1fr; } }
.ptr-steps li { position: relative; padding-top: 6px; }
.ptr-step-n {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--brand); color: #fff; font-weight: 800; font-size: var(--fs-sm); margin-bottom: 12px;
}
.ptr-steps h3 { font-size: var(--fs-md); color: var(--ink); margin: 0 0 6px; }
.ptr-steps p { font-size: var(--fs-xs); color: var(--muted); line-height: 1.6; margin: 0; }
.ptr-signin-note { margin-top: 18px; font-size: var(--fs-xs); color: rgba(255,255,255,.75); }
.ptr-signin-note a { color: #fff; text-decoration: underline; }

/* ============================================================
   THE PORTAL — /partner
   ============================================================ */
.pp-body { background: var(--paper-alt); }
.pp-navright { display: flex; align-items: center; gap: 14px; }
.pp-who { text-align: end; line-height: 1.25; }
.pp-who-name { display: block; font-size: var(--fs-2xs); font-weight: 700; color: var(--ink); }
.pp-who-firm { display: block; font-size: var(--fs-4xs); color: var(--muted); }
@media (max-width: 720px) { .pp-who { display: none; } }

.pp-loading { text-align: center; padding: 190px 20px; color: var(--muted); font-size: var(--fs-sm); }
.pp-loading-inline { color: var(--faint); font-size: var(--fs-xs); padding: 20px 0; }

/* ---- the gate ---- */
/* The site nav is position:fixed -- .hero clears it with 124px of top
   padding and every full-height panel here has to do the same, or the
   first line of the page sits underneath it. */
.pp-gate { padding: 118px 24px 80px; }
.pp-gate-inner {
  max-width: 1060px; margin: 0 auto; display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 46px; align-items: start;
}
@media (max-width: 900px) { .pp-gate-inner { grid-template-columns: 1fr; gap: 28px; } }
.pp-gate-side h1 {
  font-family: var(--serif); font-size: var(--fs-d3); line-height: 1.08; color: var(--ink); margin: 0 0 18px;
}
.pp-gate-checks { margin-bottom: 22px; }
.pp-gate-foot { font-size: var(--fs-xs); color: var(--muted); }

.pp-panel {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow);
}
.pp-panel-wide { max-width: none; }
.pp-panel h2 { font-size: var(--fs-d5); color: var(--ink); margin: 0 0 6px; }
.pp-panel-lede { font-size: var(--fs-xs); color: var(--muted); line-height: 1.6; margin: 0 0 18px; }
.pp-panel-alt { font-size: var(--fs-xs); color: var(--muted); margin: 16px 0 0; }
.pp-panel fieldset { border: 0; padding: 0; margin: 0 0 22px; }
.pp-panel legend {
  font-size: var(--fs-3xs); font-weight: 800; letter-spacing: var(--tr-caps);
  text-transform: uppercase; color: var(--brand); padding: 0; margin-bottom: 4px;
}
.role-choice h3 {
  font-family: var(--sans); font-size: var(--fs-3xs); font-weight: 800;
  letter-spacing: var(--tr-caps); text-transform: uppercase; color: var(--brand);
  margin: 0 0 4px;
}
.role-choice + .role-choice { margin-top: 28px; }
.ptr-dialog { border: 0; padding: 0; background: transparent; max-width: min(560px, calc(100vw - 32px)); width: 100%; }
.ptr-dialog::backdrop { background: rgba(15, 19, 31, .58); }
.ptr-dialog-card { position: relative; padding: 32px; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 24px 70px rgba(15, 19, 31, .22); }
.ptr-dialog-card h2 { margin: 0 0 8px; }
.ptr-dialog-close { position: absolute; top: 12px; right: 14px; border: 0; background: transparent; font-size: 28px; color: var(--muted); cursor: pointer; }
.ptr-dialog-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 22px 0 8px; }
.ptr-dialog-fields label, .ptr-directory-filters label { display: grid; gap: 6px; font-size: var(--fs-4xs); font-weight: 800; letter-spacing: var(--tr-caps); text-transform: uppercase; color: var(--muted); }
.ptr-dialog-fields input, .ptr-directory-filters input, .ptr-directory-filters select { width: 100%; padding: 11px 12px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font: inherit; letter-spacing: 0; text-transform: none; }
.ptr-directory-hero { padding-bottom: 28px; }
.ptr-directory-hero h1 { max-width: 760px; }
.ptr-directory-filters { display: grid; grid-template-columns: repeat(4, 1fr) auto; align-items: end; gap: 14px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.ptr-directory-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; padding-top: 28px; }
.ptr-directory-card { padding: 24px; border: 1px solid var(--line); background: var(--paper); }
.ptr-directory-card h2 { margin: 0 0 8px; font-size: var(--fs-xl); }
.ptr-directory-card dl { display: grid; gap: 8px; margin: 18px 0; }
.ptr-directory-card dt { color: var(--muted); font-size: var(--fs-4xs); font-weight: 800; letter-spacing: var(--tr-caps); text-transform: uppercase; }
.ptr-directory-card dd { margin: 2px 0 0; color: var(--ink); }
.ptr-directory-contact { display: grid; gap: 4px; margin: 18px 0; }
.ptr-directory-contact dt { color: var(--muted); font-size: var(--fs-4xs); font-weight: 800; letter-spacing: var(--tr-caps); text-transform: uppercase; }
.ptr-directory-contact a { color: var(--brand); overflow-wrap: anywhere; }
.ptr-directory-empty { padding: 28px 0; color: var(--muted); }
@media (max-width: 820px) { .ptr-directory-filters { grid-template-columns: 1fr 1fr; } .ptr-directory-filters button { grid-column: 1 / -1; } }
@media (max-width: 620px) { .ptr-dialog-fields, .ptr-directory-grid { grid-template-columns: 1fr; } .ptr-dialog-card { padding: 24px; } }
.pp-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 620px) { .pp-row { grid-template-columns: 1fr; } }
.pp-row .field-inline, .pp-form .field-inline { margin-top: 14px; }

.pp-code {
  font-family: var(--mono); font-size: var(--fs-d5); letter-spacing: .22em; text-align: center;
}

.pp-strength { font-size: var(--fs-4xs); margin: 6px 0 0; min-height: 1.1em; font-weight: 600; }
.pp-strength.is-weak { color: var(--red-deep); }
.pp-strength.is-ok { color: var(--muted); }
.pp-strength.is-strong { color: var(--brand); }

.pp-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.pp-chip {
  font-family: var(--sans); font-size: var(--fs-3xs); font-weight: 600;
  padding: 7px 13px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--line-strong); background: var(--paper); color: var(--muted);
  transition: border-color .15s, background .15s, color .15s;
}
.pp-chip:hover { border-color: var(--brand); }
.pp-chip.is-on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-deep); }

.check-row { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-xs); color: var(--text); }
.check-row input { margin-top: 3px; accent-color: var(--brand); }

/* ---- how you want to partner: Build / Sell / Service / Integrate ----
   Cards rather than chips, because unlike a region or a sector this is
   a choice with consequences -- it decides what the firm is certified
   for -- and a one-word chip does not carry enough to choose on. */
.pp-field-note { font-size: var(--fs-4xs); color: var(--faint); line-height: 1.55; margin: 4px 0 10px; }
.pp-cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 620px) { .pp-cats { grid-template-columns: 1fr; } }
.pp-cat {
  display: grid; grid-template-columns: 34px 1fr; grid-template-rows: auto auto;
  column-gap: 11px; row-gap: 2px; text-align: start; cursor: pointer;
  padding: 13px 14px; border-radius: var(--radius-sm); font-family: var(--sans);
  border: 1.5px solid var(--line-strong); background: var(--paper);
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.pp-cat:hover { border-color: var(--brand); }
.pp-cat.is-on { border-color: var(--brand); background: var(--brand-soft); box-shadow: var(--shadow-sm); }
.pp-cat-mark {
  grid-row: 1 / span 2; align-self: center; display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 10px; font-size: 16px;
  background: var(--brand-soft); color: var(--brand);
}
.pp-cat.is-on .pp-cat-mark { background: var(--brand); color: #fff; }
.pp-cat-name { font-size: var(--fs-xs); font-weight: 800; color: var(--ink); }
.pp-cat-tag { font-size: var(--fs-4xs); color: var(--muted); line-height: 1.45; }

.pp-firm-cats { display: flex; flex-wrap: wrap; gap: 5px; margin: 9px 0 0; }
.pp-firm-cat {
  font-size: var(--fs-6xs); font-weight: 800; letter-spacing: var(--tr-caps);
  text-transform: uppercase; padding: 3px 7px; border-radius: 5px;
  background: var(--brand-soft); color: var(--brand-deep);
}

/* ============================================================
   THE ENVELOPE — the signing ceremony at /partner

   Its own visual language on purpose. Everything else in this file is
   TRANXACT's product surface; this is a document being executed, and it
   should feel like one: a fixed dark chrome, a sheet of paper in the
   middle, and one yellow thing at a time telling you where to act. The
   yellow is not the brand palette and is not meant to be — it is the
   colour of "your turn", and it earns its loudness by never appearing
   anywhere else on the site.
   ============================================================ */
body.dsx-open { overflow: hidden; }
.dsx {
  position: fixed; inset: 0; z-index: 60;
  display: grid; grid-template-rows: auto minmax(0, 1fr);
  background: #eceef4;
}

/* ---- the chrome ---- */
.dsx-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 13px 22px; background: var(--brand-deep); color: #fff;
  box-shadow: 0 2px 14px rgba(13, 15, 40, .28);
}
.dsx-bar-doc { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dsx-bar-title { font-size: var(--fs-sm); font-weight: 800; letter-spacing: .01em; }
.dsx-bar-sub {
  font-family: var(--mono); font-size: var(--fs-6xs); color: rgba(255, 255, 255, .62);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.dsx-bar-act { display: flex; align-items: center; gap: 16px; flex: none; }
.dsx-count {
  font-size: var(--fs-4xs); font-weight: 700; letter-spacing: .02em;
  color: rgba(255, 255, 255, .8); white-space: nowrap;
}
.dsx-bar-act .btn-link { color: #fff; }
.dsx-bar-act .btn-link:hover { color: #ffd34d; }
@media (max-width: 640px) {
  .dsx-count { display: none; }
  .dsx-bar-sub { max-width: 46vw; }
}

/* ---- the consent step ---- */
.dsx-consent {
  grid-row: 2; overflow-y: auto; padding: 40px 20px;
  display: flex; align-items: flex-start; justify-content: center;
}
.dsx-consent-box {
  max-width: 620px; width: 100%; background: var(--paper); border-radius: var(--radius);
  border: 1px solid var(--line); box-shadow: var(--shadow); padding: 34px 36px;
}
.dsx-consent-eyebrow {
  font-size: var(--fs-4xs); font-weight: 800; letter-spacing: var(--tr-caps);
  text-transform: uppercase; color: var(--brand); margin: 0 0 10px;
}
.dsx-consent-box h2 {
  font-family: var(--serif); font-size: var(--fs-d3); line-height: 1.1;
  color: var(--ink); margin: 0 0 12px;
}
.dsx-consent-lede { font-size: var(--fs-sm); color: var(--muted); line-height: 1.62; margin: 0 0 22px; }
.dsx-consent-check {
  display: flex; gap: 11px; align-items: flex-start; padding: 15px 16px;
  border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--paper-alt); font-size: var(--fs-xs); color: var(--text);
  line-height: 1.55; cursor: pointer;
}
.dsx-consent-check:hover { border-color: var(--brand); }
.dsx-consent-check input { margin-top: 2px; accent-color: var(--brand); flex: none; }
.dsx-consent-cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 22px; }

/* ---- the stage ---- */
.dsx-stage { grid-row: 2; position: relative; display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.dsx-scroll { overflow-y: auto; padding: 34px 20px 40px; scroll-behavior: smooth; }
.dsx-scroll:focus { outline: none; }

/* the sheet */
.dsx-doc {
  max-width: 860px; margin: 0 auto; background: #fff;
  border: 1px solid #d7dae6; box-shadow: 0 10px 40px rgba(20, 22, 58, .13);
  padding: 54px 62px 60px;
}
@media (max-width: 700px) { .dsx-doc { padding: 32px 22px 40px; } }

.dsx-letterhead { border-bottom: 2px solid var(--brand-deep); padding-bottom: 22px; margin-bottom: 26px; }
.dsx-lh-eyebrow {
  font-size: var(--fs-4xs); font-weight: 800; letter-spacing: var(--tr-caps);
  text-transform: uppercase; color: var(--brand); margin: 0 0 8px;
}
.dsx-lh-title {
  font-family: var(--serif); font-size: var(--fs-d3); line-height: 1.08;
  color: var(--ink); margin: 0;
}
.dsx-lh-sub { font-size: var(--fs-xs); color: var(--muted); margin: 6px 0 20px; }
.dsx-lh-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 26px; margin: 0; }
@media (max-width: 560px) { .dsx-lh-meta { grid-template-columns: 1fr; } }
.dsx-lh-meta > div { display: flex; gap: 10px; align-items: baseline; }
.dsx-lh-meta dt {
  font-size: var(--fs-6xs); font-weight: 800; letter-spacing: var(--tr-caps);
  text-transform: uppercase; color: var(--faint); min-width: 82px;
}
.dsx-lh-meta dd { margin: 0; font-family: var(--mono); font-size: var(--fs-3xs); color: var(--ink); }

.dsx-recital {
  font-size: var(--fs-xs); color: var(--text); line-height: 1.75; margin: 0 0 30px;
  padding-bottom: 22px; border-bottom: 1px solid var(--line);
}

/* a clause, with the margin its initial tab sits in */
.dsx-clause {
  display: grid; grid-template-columns: minmax(0, 1fr) 104px; gap: 20px;
  align-items: start; margin-bottom: 24px;
}
@media (max-width: 640px) { .dsx-clause { grid-template-columns: 1fr; gap: 10px; } }
.dsx-clause-body h2 {
  font-size: var(--fs-sm); color: var(--ink); margin: 0 0 7px; letter-spacing: -.005em;
}
.dsx-clause-n { color: var(--brand); font-family: var(--mono); font-size: var(--fs-2xs); margin-right: 4px; }
.dsx-clause-body p { font-size: var(--fs-2xs); color: var(--text); line-height: 1.78; margin: 0; }
.dsx-margin { min-height: 1px; }

.dsx-closing {
  font-size: var(--fs-2xs); color: var(--muted); line-height: 1.75;
  margin: 34px 0 26px; padding-top: 22px; border-top: 1px solid var(--line);
}

/* ---- the signature block ---- */
.dsx-siggrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px; }
@media (max-width: 700px) { .dsx-siggrid { grid-template-columns: 1fr; gap: 26px; } }
.dsx-sigcell-label {
  font-size: var(--fs-6xs); font-weight: 800; letter-spacing: var(--tr-caps);
  text-transform: uppercase; color: var(--faint); margin: 0 0 10px;
}
.dsx-sigslot {
  min-height: 74px; display: flex; align-items: center;
  border-bottom: 1.5px solid var(--ink); padding: 4px 2px 8px; margin-bottom: 12px;
}
.dsx-sigslot.is-countersigned { border-bottom-style: dashed; border-bottom-color: var(--line-strong); }
.dsx-countersign {
  font-family: var(--serif); font-size: var(--fs-lg); color: var(--faint); letter-spacing: .04em;
}
.dsx-sigfields { margin: 0; display: grid; gap: 5px; }
.dsx-sigfields > div { display: flex; gap: 10px; align-items: baseline; }
.dsx-sigfields dt {
  font-size: var(--fs-6xs); font-weight: 800; letter-spacing: var(--tr-caps);
  text-transform: uppercase; color: var(--faint); min-width: 62px; flex: none;
}
.dsx-sigfields dd { margin: 0; font-size: var(--fs-3xs); color: var(--ink); }

/* ---- the tabs ---- */
.dsx-tab {
  position: relative; display: inline-flex; align-items: center; cursor: pointer;
  font-family: var(--sans); font-size: var(--fs-4xs); font-weight: 800;
  letter-spacing: var(--tr-caps); text-transform: uppercase;
  color: #3a2f00; background: #ffd34d; border: 1px solid #e0b422;
  border-radius: 3px; padding: 9px 15px 9px 13px;
  box-shadow: 0 1px 4px rgba(60, 48, 0, .22);
  transition: background .14s, transform .14s, box-shadow .14s;
}
.dsx-tab:hover { background: #ffde78; transform: translateY(-1px); box-shadow: 0 3px 9px rgba(60, 48, 0, .26); }
.dsx-tab:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
/* the little pointer on the left edge, the thing that makes it a tab */
.dsx-tab-arrow {
  position: absolute; left: -8px; top: 50%; width: 0; height: 0;
  transform: translateY(-50%);
  border-block: 8px solid transparent; border-right: 8px solid #ffd34d;
}
.dsx-tab-signature { padding: 13px 22px 13px 20px; font-size: var(--fs-3xs); }
.dsx-tab.is-locked { background: var(--line); border-color: var(--line-strong); color: var(--faint); cursor: default; box-shadow: none; }
.dsx-tab.is-locked .dsx-tab-arrow { border-right-color: var(--line); }
.dsx-tab.is-pulsing { animation: dsxPulse .5s ease-in-out 2; }
@keyframes dsxPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.07); box-shadow: 0 5px 16px rgba(60, 48, 0, .35); }
}
@media (prefers-reduced-motion: reduce) {
  .dsx-tab.is-pulsing { animation: none; }
  .dsx-scroll { scroll-behavior: auto; }
}

/* what a filled tab turns into */
.dsx-marked { display: flex; flex-direction: column; gap: 2px; }
.dsx-mark { color: var(--ink); line-height: 1.05; }
.dsx-mark-sig { font-size: 40px; }
.dsx-mark-initial { font-size: 27px; }
.dsx-mark-rule {
  font-family: var(--mono); font-size: var(--fs-6xs); color: var(--faint);
  letter-spacing: .02em;
}

/* ---- the jump tab, floating over the sheet ---- */
.dsx-jump {
  position: absolute; left: 22px; top: 50%; transform: translateY(-50%); z-index: 3;
  display: inline-flex; align-items: center; cursor: pointer;
  font-family: var(--sans); font-size: var(--fs-3xs); font-weight: 800;
  letter-spacing: var(--tr-caps); text-transform: uppercase;
  color: #3a2f00; background: #ffd34d; border: 1px solid #e0b422;
  border-radius: 4px; padding: 12px 18px;
  box-shadow: 0 4px 16px rgba(60, 48, 0, .3);
}
.dsx-jump::after {
  content: ''; position: absolute; right: -9px; top: 50%; transform: translateY(-50%);
  width: 0; height: 0; border-block: 9px solid transparent; border-left: 9px solid #ffd34d;
}
.dsx-jump:hover { background: #ffde78; }
@media (max-width: 1120px) {
  .dsx-jump { left: 14px; top: auto; bottom: 96px; transform: none; }
  .dsx-jump::after { display: none; }
}

/* ---- the action bar ---- */
.dsx-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 14px 24px; background: var(--paper); border-top: 1px solid var(--line-strong);
  box-shadow: 0 -3px 18px rgba(20, 22, 58, .08);
}
.dsx-foot-note { font-size: var(--fs-4xs); color: var(--muted); margin: 0; }
.dsx-foot .btn:disabled { opacity: .45; cursor: not-allowed; }
@media (max-width: 560px) { .dsx-foot-note { display: none; } }

/* ---- adopt your signature ---- */
.dsx-adopt { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; }
.dsx-adopt-back { position: absolute; inset: 0; background: rgba(13, 15, 40, .58); }
.dsx-adopt-box {
  position: relative; width: min(620px, 100%); max-height: 92vh; overflow-y: auto;
  background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow-lg, var(--shadow));
  padding: 30px 32px;
}
.dsx-adopt-box h2 { font-size: var(--fs-d5); color: var(--ink); margin: 0 0 6px; }
.dsx-adopt-lede { font-size: var(--fs-xs); color: var(--muted); line-height: 1.6; margin: 0 0 18px; }
.dsx-adopt-label {
  font-size: var(--fs-4xs); font-weight: 800; letter-spacing: var(--tr-caps);
  text-transform: uppercase; color: var(--brand); margin: 20px 0 9px;
}
.dsx-styles { display: grid; gap: 9px; }
.dsx-style {
  display: grid; grid-template-columns: minmax(0, 1fr) 92px; align-items: center; gap: 14px;
  cursor: pointer; text-align: start; padding: 12px 16px; background: var(--paper);
  border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); position: relative;
  transition: border-color .15s, background .15s;
}
.dsx-style:hover { border-color: var(--brand); }
.dsx-style.is-on { border-color: var(--brand); background: var(--brand-soft); }
.dsx-style-name { font-size: 32px; color: var(--ink); line-height: 1.15; overflow: hidden; text-overflow: ellipsis; }
.dsx-style-ini {
  font-size: 25px; color: var(--ink); line-height: 1.15; text-align: center;
  border-left: 1px dashed var(--line-strong); padding-left: 14px;
}
.dsx-style-tag {
  position: absolute; top: 7px; right: 11px;
  font-family: var(--mono); font-size: var(--fs-6xs); color: var(--faint);
}
.dsx-adopt-legal { font-size: var(--fs-4xs); color: var(--faint); line-height: 1.6; margin: 16px 0 4px; }

/* ---- the certificate ---- */
.dsx-cert { text-align: center; padding: 26px 10px 14px; }
.dsx-cert-stamp {
  display: inline-block; font-size: var(--fs-4xs); font-weight: 800;
  letter-spacing: var(--tr-caps); text-transform: uppercase;
  color: #0d6b34; background: #e3f6e9; border: 1px solid #b7e5c8;
  border-radius: 999px; padding: 6px 15px; margin: 0 0 18px;
}
.dsx-cert h1 {
  font-family: var(--serif); font-size: var(--fs-d3); line-height: 1.1;
  color: var(--ink); margin: 0 0 12px;
}
.dsx-cert-lede {
  font-size: var(--fs-xs); color: var(--muted); line-height: 1.65;
  max-width: 56ch; margin: 0 auto 26px;
}
.dsx-cert-meta {
  display: grid; gap: 7px; max-width: 460px; margin: 0 auto 28px; text-align: start;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 18px 20px; background: var(--paper-alt);
}
.dsx-cert-meta > div { display: flex; gap: 12px; align-items: baseline; }
.dsx-cert-meta dt {
  font-size: var(--fs-6xs); font-weight: 800; letter-spacing: var(--tr-caps);
  text-transform: uppercase; color: var(--faint); min-width: 92px; flex: none;
}
.dsx-cert-meta dd { margin: 0; font-family: var(--mono); font-size: var(--fs-3xs); color: var(--ink); }

/* ---- a seat that cannot sign ---- */
.dsx-waiting {
  border-bottom: 1px solid var(--line); padding-bottom: 26px; margin-bottom: 30px;
}
.dsx-waiting h1 {
  font-family: var(--serif); font-size: var(--fs-d4); line-height: 1.12;
  color: var(--ink); margin: 0 0 12px;
}
.dsx-waiting p { font-size: var(--fs-xs); color: var(--muted); line-height: 1.7; margin: 0 0 10px; }
.dsx-waiting-ref { font-family: var(--mono); font-size: var(--fs-4xs); color: var(--faint); }
.dsx-doc.is-readonly .dsx-clause-body p { color: var(--muted); }

/* ---- the app shell ---- */
.pp-app {
  display: grid; grid-template-columns: 250px minmax(0, 1fr);
  max-width: var(--maxw); margin: 0 auto; padding: 100px 24px 40px; gap: 24px; align-items: start;
}
@media (max-width: 860px) { .pp-app { grid-template-columns: 1fr; } }

.pp-side { position: sticky; top: 84px; }
@media (max-width: 860px) { .pp-side { position: static; } }
.pp-firm {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; margin-bottom: 12px; box-shadow: var(--shadow-sm);
}
.pp-firm-tier {
  font-size: var(--fs-4xs); font-weight: 800; letter-spacing: var(--tr-caps);
  text-transform: uppercase; margin: 0 0 4px; color: var(--brand);
}
.pp-tier-platinum { color: #2a2d5f; }
.pp-tier-gold { color: #a97400; }
.pp-firm-name { font-size: var(--fs-sm); font-weight: 800; color: var(--ink); margin: 0; line-height: 1.25; }
.pp-firm-ref { font-family: var(--mono); font-size: var(--fs-4xs); color: var(--faint); margin: 4px 0 0; }
.pp-firm-pending {
  font-size: var(--fs-4xs); font-weight: 700; color: var(--red-deep);
  background: var(--red-soft); border-radius: 6px; padding: 4px 8px; margin: 8px 0 0; display: inline-block;
}

.pp-nav {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 8px; box-shadow: var(--shadow-sm);
}
.pp-nav-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: var(--radius-sm);
  font-size: var(--fs-xs); font-weight: 600; color: var(--text); text-decoration: none;
  transition: background .14s, color .14s;
}
.pp-nav-item:hover { background: var(--paper-alt); }
.pp-nav-item.is-here { background: var(--brand-soft); color: var(--brand-deep); font-weight: 800; }
.pp-nav-item.is-locked { color: var(--faint); }
.pp-nav-icon { width: 18px; text-align: center; opacity: .75; }
.pp-nav-lock { margin-inline-start: auto; color: var(--faint); }

.pp-side-foot {
  margin-top: 12px; padding: 14px 16px; border-radius: var(--radius);
  background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.pp-side-foot.is-queued { border-color: var(--red); background: var(--red-soft); }
.pp-int-title {
  font-size: var(--fs-4xs); font-weight: 800; text-transform: uppercase;
  letter-spacing: var(--tr-caps); color: var(--brand); margin: 0 0 5px;
}
.pp-int-msg { font-size: var(--fs-4xs); color: var(--muted); line-height: 1.55; margin: 0; }
.pp-int-key {
  font-family: var(--mono); font-size: 9px; color: var(--faint); margin: 8px 0 0;
  word-break: break-all; line-height: 1.4;
}

/* ---- content ---- */
.pp-main { min-width: 0; }
.pp-main:focus { outline: none; }
.pp-sec-head { margin-bottom: 20px; }
.pp-sec-head h1 {
  font-family: var(--serif); font-size: var(--fs-d3); line-height: 1.1; color: var(--ink); margin: 0;
}
.pp-sec-lede { font-size: var(--fs-xs); color: var(--muted); line-height: 1.65; max-width: 78ch; margin: 8px 0 0; }
.pp-muted { font-size: var(--fs-xs); color: var(--muted); line-height: 1.65; }

.pp-block {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow-sm); margin-top: 18px;
}
.pp-block h2 { font-size: var(--fs-md); color: var(--ink); margin: 0 0 10px; }
.pp-block > .btn { margin-top: 12px; }

.pp-banner {
  border-radius: var(--radius-sm); padding: 14px 16px; margin: 16px 0;
  background: var(--brand-soft); border: 1px solid var(--brand-soft-2);
  font-size: var(--fs-xs); color: var(--text); line-height: 1.6;
}
.pp-banner.is-warn { background: var(--red-soft); border-color: #f6c8ce; }
.pp-banner.is-action { background: #fff8e6; border-color: #f0dca8; }

.pp-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 18px 0; }
@media (max-width: 900px) { .pp-stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .pp-stats { grid-template-columns: 1fr; } }
.pp-stat {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; box-shadow: var(--shadow-sm);
}
.pp-stat.is-accent { border-color: var(--brand); background: linear-gradient(180deg, var(--paper) 0%, var(--brand-soft) 260%); }
.pp-stat-v {
  font-family: var(--mono); font-size: var(--fs-d5); font-weight: 500; color: var(--ink);
  margin: 0; font-variant-numeric: tabular-nums; line-height: 1.1;
}
.pp-stat.is-accent .pp-stat-v { color: var(--brand-deep); }
.pp-stat-l { font-size: var(--fs-3xs); color: var(--muted); margin: 6px 0 0; }
.pp-stat-n { font-size: var(--fs-4xs); color: var(--faint); margin: 3px 0 0; }
.pp-business > h2, .pp-learn > h2 { font-size: var(--fs-lg); color: var(--ink); margin: 0 0 4px; }
.pp-business .pp-stats { margin-top: 12px; grid-template-columns: repeat(5, 1fr); }
.pp-learn { margin-top: 18px; }
.pp-learn .pp-stats { margin-top: 12px; grid-template-columns: repeat(5, 1fr); }
.pp-learn-tile { display: block; color: var(--ink); text-decoration: none; }
.pp-learn-tile[href] { transition: border-color .15s, transform .15s; }
.pp-learn-tile[href]:hover { border-color: var(--brand); transform: translateY(-2px); }
.pp-learn-tile .pp-stat-v { color: var(--brand); }
@media (max-width: 1100px) { .pp-business .pp-stats { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 1100px) { .pp-learn .pp-stats { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .pp-business .pp-stats, .pp-learn .pp-stats { grid-template-columns: 1fr; } }

/* tables */
.pp-tablewrap { overflow-x: auto; margin-top: 14px; }
.pp-table { width: 100%; border-collapse: collapse; font-size: var(--fs-xs); }
.pp-table th {
  text-align: start; font-size: var(--fs-4xs); font-weight: 800; text-transform: uppercase;
  letter-spacing: var(--tr-caps); color: var(--faint); padding: 8px 12px 8px 0;
  border-bottom: 1.5px solid var(--line-strong); white-space: nowrap;
}
.pp-table td {
  padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line);
  color: var(--text); vertical-align: top; line-height: 1.5;
}
.pp-table th.num, .pp-table td.num { text-align: end; font-variant-numeric: tabular-nums; }
.pp-table td.num { font-family: var(--mono); }
.pp-table th.act, .pp-table td.act { text-align: end; white-space: nowrap; }
.pp-table code { font-family: var(--mono); font-size: var(--fs-3xs); color: var(--brand-deep); }
.pp-sub { font-size: var(--fs-4xs); color: var(--faint); }
.pp-empty {
  font-size: var(--fs-xs); color: var(--faint); padding: 22px; text-align: center;
  background: var(--paper-alt); border-radius: var(--radius-sm); margin-top: 14px;
}

.pp-pill {
  display: inline-block; font-size: var(--fs-4xs); font-weight: 800; text-transform: uppercase;
  letter-spacing: .04em; padding: 3px 8px; border-radius: 999px;
}
.pp-pill.is-ok { background: #e6f4ea; color: #17683a; }
.pp-pill.is-wait { background: #fff4e0; color: #8a5a00; }
.pp-pill.is-no { background: var(--red-soft); color: var(--red-deep); }
.pp-pill.is-muted { background: var(--paper-alt-2); color: var(--muted); }

.pp-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.pp-inline-select { width: auto; min-width: 130px; padding: 5px 8px; font-size: var(--fs-3xs); }

/* progress + checklist */
.pp-progress { height: 7px; border-radius: 999px; background: var(--paper-alt-2); overflow: hidden; margin: 4px 0; }
.pp-progress-fill {
  height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--brand) 0%, var(--brand-bright) 100%);
  transition: width .4s ease;
}
.pp-progress-label { font-size: var(--fs-4xs); color: var(--faint); margin: 0 0 12px; }
.pp-checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.pp-check { display: flex; gap: 11px; align-items: flex-start; font-size: var(--fs-xs); }
.pp-check-mark {
  width: 20px; height: 20px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: var(--paper-alt-2); color: var(--faint); font-size: 11px; font-weight: 800;
}
.pp-check.is-done .pp-check-mark { background: var(--brand); color: #fff; }
.pp-check-body strong { display: block; color: var(--ink); font-size: var(--fs-xs); }
.pp-check-body span { display: block; color: var(--muted); font-size: var(--fs-4xs); margin-top: 1px; }
.pp-check.is-done .pp-check-body strong { color: var(--muted); }

/* bar chart */
.pp-bars {
  display: flex; align-items: flex-end; gap: 6px; height: 130px;
  padding: 10px 0; border-bottom: 1px solid var(--line-strong); overflow-x: auto;
}
.pp-bar { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; min-width: 26px; height: 100%; }
.pp-bar-fill { width: 100%; background: var(--brand); border-radius: 3px 3px 0 0; min-height: 2px; }
.pp-bar-l { font-size: 9px; color: var(--faint); margin-top: 4px; }

/* tracks */
.pp-tracks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 18px; }
@media (max-width: 780px) { .pp-tracks { grid-template-columns: 1fr; } }
.pp-track {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
}
.pp-track.is-passed { border-color: var(--brand); }
.pp-track h3 { font-size: var(--fs-sm); color: var(--ink); margin: 0 0 5px; }
.pp-track-meta { font-size: var(--fs-4xs); color: var(--muted); margin: 0 0 12px; }
.pp-track-mods { margin: 0 0 12px; padding-inline-start: 18px; }
.pp-track-mods li { font-size: var(--fs-3xs); color: var(--muted); line-height: 1.6; }
.pp-track-exam { font-size: var(--fs-4xs); color: var(--faint); margin: 0 0 14px; }
.pp-track-foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.pp-track-foot .pp-progress { width: 100%; }

/* tools + assets */
.pp-toolgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 12px; }
@media (max-width: 680px) { .pp-toolgrid { grid-template-columns: 1fr; } }
.pp-tool {
  display: block; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  text-decoration: none; background: var(--paper-alt); transition: border-color .15s, transform .15s;
}
.pp-tool:hover { border-color: var(--brand); transform: translateY(-2px); }
.pp-tool h3 { font-size: var(--fs-xs); color: var(--ink); margin: 0 0 4px; }
.pp-tool p { font-size: var(--fs-4xs); color: var(--muted); margin: 0; line-height: 1.55; }

.pp-card { border-bottom: 1px solid var(--line); padding: 12px 0; }
.pp-card summary { cursor: pointer; font-size: var(--fs-xs); color: var(--ink); font-weight: 600; }
.pp-card summary::marker { color: var(--brand); }
.pp-card p, .pp-card li { font-size: var(--fs-3xs); color: var(--muted); line-height: 1.65; }
.pp-card ul { padding-inline-start: 18px; margin: 8px 0; }
.pp-card-strength { color: var(--faint) !important; }
.pp-card-q, .pp-card-a { margin: 8px 0 0; }
.pp-card-a strong { color: var(--brand-deep); }

.pp-assets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }
@media (max-width: 900px) { .pp-assets { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pp-assets { grid-template-columns: 1fr; } }
.pp-asset {
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; background: var(--paper-alt);
}
.pp-asset-kind {
  font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em;
  color: var(--brand); background: var(--brand-soft); padding: 2px 7px; border-radius: 999px;
}
.pp-asset h3 { font-size: var(--fs-2xs); color: var(--ink); margin: 8px 0 4px; }
.pp-asset p { font-size: var(--fs-4xs); color: var(--muted); line-height: 1.55; margin: 0 0 6px; }

.pp-copy {
  font-family: var(--mono); font-size: var(--fs-4xs); color: var(--brand-deep);
  background: var(--brand-soft); border: 0; border-radius: 6px; padding: 5px 9px;
  cursor: pointer; word-break: break-all; text-align: start;
}
.pp-copy:hover { background: var(--brand-soft-2); }

/* tier card + gaps */
.pp-tiercard { border: 1px solid var(--line, #e2e5ea); }
.pp-tiercard.pp-tier-platinum { border-color: #2a2d5f; }
.pp-tiercard.pp-tier-gold { border-color: #a97400; }
.pp-tiercard h2 { font-family: var(--serif); font-size: var(--fs-d4); margin: 0 0 4px; }
.pp-gaps { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 9px; }
.pp-gap { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-xs); color: var(--text); }
.pp-gap-mark {
  width: 19px; height: 19px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: var(--paper-alt-2); color: var(--faint); font-size: 11px; font-weight: 800;
}
.pp-gap.is-met .pp-gap-mark { background: var(--brand); color: #fff; }

.pp-practice { border: 1px solid var(--line, #e2e5ea); }
.pp-assumptions { margin: 14px 0 0; padding-inline-start: 18px; }
.pp-assumptions li { font-size: var(--fs-4xs); color: var(--faint); line-height: 1.65; }
.pp-calcform .pp-row { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 780px) { .pp-calcform .pp-row { grid-template-columns: repeat(2, 1fr); } }

.pp-key {
  font-family: var(--mono); font-size: var(--fs-3xs); color: var(--brand-deep);
  background: var(--brand-soft); border-radius: var(--radius-sm); padding: 12px 14px;
  word-break: break-all; line-height: 1.6; margin: 10px 0 0;
}

/* ---- modal ---- */
.pp-modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; }
.pp-modal-back { position: absolute; inset: 0; background: rgba(20,22,58,.45); backdrop-filter: blur(2px); }
.pp-modal-box {
  position: relative; background: var(--paper); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 28px; max-width: 620px; width: 100%;
  max-height: 88vh; overflow-y: auto;
}
.pp-modal-box h2 { font-size: var(--fs-lg); color: var(--ink); margin: 0 0 14px; padding-inline-end: 30px; }
.pp-modal-x {
  position: absolute; top: 14px; inset-inline-end: 16px; background: none; border: 0;
  font-size: 26px; line-height: 1; color: var(--faint); cursor: pointer;
}
.pp-modal-x:hover { color: var(--ink); }

/* enrolment */
.pp-enrol > p { font-size: var(--fs-xs); color: var(--muted); line-height: 1.6; }
.pp-qr { display: grid; place-items: center; margin: 18px 0 12px; }
.pp-qr svg { border: 1px solid var(--line); border-radius: var(--radius-sm); max-width: 100%; height: auto; }
.pp-enrol-key { text-align: center; font-size: var(--fs-3xs); color: var(--muted); }
.pp-enrol-key code {
  font-family: var(--mono); font-size: var(--fs-xs); color: var(--ink);
  background: var(--paper-alt); padding: 4px 9px; border-radius: 6px; letter-spacing: .08em;
}
.pp-codes {
  list-style: none; padding: 18px; margin: 14px 0; display: grid;
  grid-template-columns: repeat(2, 1fr); gap: 8px;
  background: var(--paper-alt); border-radius: var(--radius-sm); border: 1px dashed var(--line-strong);
}
.pp-codes li {
  font-family: var(--mono); font-size: var(--fs-sm); color: var(--ink);
  letter-spacing: .06em; text-align: center;
}

/* toast */
.pp-toast {
  position: fixed; inset-block-end: 24px; inset-inline-start: 50%; transform: translateX(-50%);
  background: var(--ink); color: #fff; padding: 13px 22px; border-radius: 999px;
  font-size: var(--fs-xs); font-weight: 600; box-shadow: var(--shadow-lg); z-index: 300;
  max-width: min(92vw, 620px); text-align: center; line-height: 1.5;
}
.pp-toast.is-ok { background: #17683a; }
.pp-toast.is-err { background: var(--red-deep); }
.pp-toast.is-warn { background: #8a5a00; }
