/* The client portal, on top of the website's site.css and report.css (copied by `npm run brand`): the same tokens,
   type, buttons, fields, grade ring and findings. Daylight pages, one 1160 px column, cards on white.
   Rules: BRAND.md §3. No inline styles anywhere (the CSP forbids them), so every state is a class here. */

.p-wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.p-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* A table that scrolls sideways keeps its screen-reader labels inside it: positioned outside the scroller, the last
   column's label widened the whole page on a phone (Фактури, E2E-2026-11-05.md). */
.scroll-x { position: relative; }

/* Header: the brand, then who is signed in */
.p-head { background: var(--paper); border-bottom: 1px solid var(--line); }
.p-head .p-wrap { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.p-head .brand svg { width: 30px; height: 30px; }
.p-who { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 18px; font-size: .9375rem; }
.p-who a { color: var(--ink); text-decoration: none; font-weight: 500; }
.p-who a:hover { color: var(--green); text-decoration: underline; }
.p-signout, .p-inline { display: inline; margin: 0; }
.p-link { background: none; border: 0; padding: 0; font: inherit; color: var(--green); cursor: pointer; text-decoration: underline; text-underline-offset: .18em; text-decoration-thickness: 1px; }
.p-link:hover { color: var(--green-hover); text-decoration-thickness: 2px; }
.p-who .p-link { color: var(--ink-2); text-decoration: none; font-weight: 500; }
.p-who .p-link:hover { color: var(--green); text-decoration: underline; }

/* The site's band: its address and its sections */
.p-site { background: var(--mist); border-bottom: 1px solid var(--line); }
.p-domain { font: 650 clamp(1.25rem, 3vw, 1.5rem)/1.2 var(--display); letter-spacing: -.015em; padding-top: 18px; overflow-wrap: anywhere; }
.p-tabs { display: flex; flex-wrap: wrap; gap: 0 22px; margin-top: 10px; }
.p-tabs::-webkit-scrollbar { display: none; }
.p-tabs a { flex: none; padding: 10px 0 12px; color: var(--ink-2); font-weight: 500; font-size: .9688rem; text-decoration: none; border-bottom: 3px solid transparent; }
.p-tabs a:hover { color: var(--ink); }
.p-tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--green); }

/* The demo band: evergreen, like the website's dark bands, so nobody takes the demo for a real account */
.p-demo { background: var(--green-deep); color: var(--mist); }
.p-demo .p-wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding-block: 12px; }
.p-demo p { max-width: 46rem; font-size: .9688rem; }
.p-demo-links { display: flex; align-items: center; gap: 18px; flex: none; }
.p-demo .btn { background: #fff; border-color: #fff; color: var(--green-deep); }
.p-demo .btn:hover { background: var(--leaf-tint); border-color: var(--leaf-tint); color: var(--green-deep); }
.p-demo a:not(.btn) { color: #fff; font-weight: 500; }
.p-demo-note { margin: 16px 0; padding: 12px 16px; border-radius: 10px; background: var(--mist); color: var(--ink); max-width: 44rem; }
.p-form--demo .p-demo-note { margin: 0; }
.p-form--demo fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 16px; opacity: .55; }

/* „Статистика“: sub-views, the filter row, tiles, charts (src/views/stats.js, charts.js) */
.p-subnav { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 20px; border-bottom: 1px solid var(--line); }
.p-subnav a { padding: 8px 0 10px; color: var(--ink-2); font-weight: 500; text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.p-subnav a:hover { color: var(--ink); }
.p-subnav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--green); }
.p-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 18px 0 8px; }
.p-seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.p-seg a { padding: 6px 12px; font-size: .9063rem; color: var(--ink); text-decoration: none; border-left: 1px solid var(--line); }
.p-seg a:first-child { border-left: 0; }
.p-seg a:hover { background: var(--mist); }
.p-seg a[aria-current="true"] { background: var(--green); color: #fff; font-weight: 600; }
.p-until { margin-left: auto; }
.p-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.p-tile { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); display: grid; gap: 4px; align-content: start; }
.p-tile-label { font-size: .875rem; color: var(--ink-2); }
.p-tile-value { font: 600 1.875rem/1.1 var(--display); letter-spacing: -.02em; }
.p-tile-delta { font-size: .875rem; }
.p-delta { font-weight: 600; white-space: nowrap; }
.p-delta--good { color: var(--green); }
.p-delta--bad { color: var(--red); }
.p-delta--flat { color: var(--ink-2); font-weight: 500; }
.p-sentences { display: grid; gap: 4px; margin: 20px 0 6px; max-width: 46rem; }
.p-stats-note { margin-top: 24px; max-width: 46rem; }
.p-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
.p-path { overflow-wrap: anywhere; }
.p-stats-table td { vertical-align: middle; }
.p-share { appearance: none; width: 96px; height: 8px; border: 0; border-radius: 999px; background: var(--mist); vertical-align: middle; margin-right: 6px; }
.p-share::-webkit-progress-bar { background: var(--mist); border-radius: 999px; }
.p-share::-webkit-progress-value { background: var(--green); border-radius: 999px; }
.p-share::-moz-progress-bar { background: var(--green); border-radius: 999px; }
.p-card-stats { gap: 4px; }
.p-card-stats b { font-size: 1.0625rem; margin-right: 2px; }

.p-chart { position: relative; margin: 26px 0 0; max-width: 54rem; }
.p-chart:focus-visible { outline-offset: 6px; }
.p-chart-title { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 8px; }
.p-chart-title b { font: 600 1.0625rem/1.3 var(--display); }
.p-legend { display: inline-flex; align-items: center; gap: 6px; font-size: .875rem; color: var(--ink-2); }
.p-legend .p-key + * { margin-right: 10px; }
.p-key { display: inline-block; width: 16px; height: 2px; border-radius: 2px; vertical-align: middle; margin-right: 6px; }
.p-key--now { background: var(--green); height: 3px; }
.p-key--before { background: #9aa6a0; }
.p-key--marker { width: 8px; height: 8px; border-radius: 50%; background: var(--green-deep); }
.p-line-svg { display: block; width: 100%; height: auto; overflow: visible; touch-action: pan-y; }
.p-c-grid { stroke: var(--line); stroke-width: 1; }
.p-c-tick { fill: var(--ink-2); font: 400 12px var(--text); font-variant-numeric: tabular-nums; }
.p-c-area { fill: var(--green); fill-opacity: .1; }
.p-c-line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.p-c-line--now { stroke: var(--green); }
.p-c-line--before { stroke: #9aa6a0; }
.p-c-marker line { stroke: var(--green-deep); stroke-width: 1.5; }
.p-c-marker circle { fill: var(--green-deep); stroke: #fff; stroke-width: 2; }
.p-c-cross { stroke: var(--ink-2); stroke-width: 1; }
.p-chart-note { display: flex; align-items: center; margin-top: 6px; }
.p-chart-table { margin-top: 8px; }
.p-chart-table summary { cursor: pointer; color: var(--green); font-size: .9063rem; font-weight: 500; }
.p-chart-table table { margin-top: 8px; max-width: 32rem; }
.p-tip { position: absolute; top: 34px; z-index: 5; min-width: 180px; padding: 10px 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 28px -14px rgba(10,58,45,.35); font-size: .875rem; pointer-events: none; }
.p-tip-head { color: var(--ink-2); margin-bottom: 4px; }
.p-tip-row { display: flex; align-items: center; gap: 6px; }
.p-tip-row b { font: 600 1rem var(--display); }
.p-tip-row span:last-child { color: var(--ink-2); }

/* Page */
.p-main { padding-block: clamp(28px, 4vw, 44px) 64px; min-height: 60vh; }
.p-main h1 { font-size: clamp(1.75rem, 3.6vw, 2.375rem); letter-spacing: -.02em; }
.p-main h1 + .lead, .p-main h1 + .muted { margin-top: 10px; }
.p-main .lead { font-size: 1.0625rem; max-width: 44rem; }
.p-narrow .p-wrap { max-width: calc(36rem + 2 * var(--gutter)); }
.p-narrow h1 { margin-bottom: 4px; }
.p-narrow .p-form { margin-top: 24px; }
.p-intro { display: grid; gap: 8px; margin-bottom: 24px; }
.p-section { margin-top: 36px; }
.p-section > h2 { font-size: clamp(1.25rem, 2.6vw, 1.5rem); margin-bottom: 12px; }
.p-section > .muted { margin: -4px 0 14px; max-width: 44rem; }
.p-back { margin-bottom: 14px; font-size: .9375rem; }
.p-back a::before { content: "← "; }
.p-empty { margin-top: 12px; padding: 16px 18px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--ink-2); }
.p-notice { margin: 16px 0; padding: 12px 16px; border-radius: 10px; background: var(--leaf-tint); color: var(--ink); }
.p-error { color: var(--red); font-size: .9375rem; }
.p-dev { margin-top: 18px; padding: 12px 14px; border: 1px dashed var(--amber); border-radius: 10px; background: var(--amber-tint); font-size: .875rem; overflow-wrap: anywhere; }
.p-right { text-align: right; }
.p-nowrap { white-space: nowrap; }
.p-bad { color: var(--red); }
.dot--none { background: #b9c4be; }
.grade-ring .arc--none { stroke: var(--line); }

/* The overview's cards */
.p-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-flow: row dense; gap: 16px; }
.p-card { display: grid; gap: 8px; align-content: start; padding: 18px 20px 20px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.p-card--wide { grid-column: span 2; }
.p-card--full { grid-column: 1 / -1; }
.p-card h2 { font: 600 1rem/1.3 var(--display); letter-spacing: 0; margin-bottom: 2px; }
.p-card h2 a { color: var(--ink); text-decoration: none; }
.p-card h2 a::after { content: " →"; color: var(--green); }
.p-card h2 a:hover { color: var(--green); }
.p-h-note { font: 400 .875rem var(--text); }
.p-card p { overflow-wrap: anywhere; }
.p-state { display: flex; align-items: baseline; gap: 10px; }
.p-state .dot { transform: translateY(-1px); }
.p-state b { font-weight: 600; }
.p-state--big { font-size: 1.125rem; margin-top: 18px; }

/* Grade: the report's ring beside its label */
.p-grade { display: flex; align-items: center; gap: 14px; }
.p-grade strong { display: block; font: 600 1.0625rem/1.3 var(--display); }
.p-grade span { display: block; }
.p-grade--big { margin-top: 22px; padding: 18px 20px; background: var(--mist); border-radius: var(--radius); }
.p-grade--big .grade-ring, .p-grade--big .grade-ring svg { width: 84px; height: 84px; }
.p-grade--big .grade-ring b { font-size: 2rem; }
.p-grade--big strong { font-size: 1.25rem; }
.p-grade-chip { display: inline-grid; place-items: center; width: 1.75em; height: 1.75em; border-radius: 50%; font: 650 .875rem/1 var(--display); color: #fff; background: var(--leaf); }
.p-grade-chip--amber { background: #b97d0c; }
.p-grade-chip--red { background: var(--red); }

/* Hours for changes */
.p-hours { display: grid; gap: 6px; margin-bottom: 6px; }
.p-hours progress { appearance: none; width: 100%; max-width: 28rem; height: 8px; border: 0; border-radius: 999px; background: var(--mist); overflow: hidden; }
.p-hours progress::-webkit-progress-bar { background: var(--mist); border-radius: 999px; }
.p-hours progress::-webkit-progress-value { background: var(--green); border-radius: 999px; }
.p-hours progress::-moz-progress-bar { background: var(--green); border-radius: 999px; }
.p-card .p-hours progress { background: #e4ebe6; }

/* Lists */
.p-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.p-list .muted { margin-right: 4px; }
.p-list--fixed li, .p-list--rows li { display: grid; grid-template-columns: 9px minmax(0, 1fr); gap: 12px; align-items: baseline; }
.p-list--fixed .dot, .p-list--rows .dot { transform: translateY(-1px); }
.p-list--rows { gap: 0; border-top: 1px solid var(--line); }
.p-list--rows li { padding: 12px 2px; border-bottom: 1px solid var(--line); }
.p-list--rows li > div { display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.p-list--rows li > div > .p-tag { justify-self: start; margin-top: 2px; }
.p-list--links { gap: 0; border-top: 1px solid var(--line); margin-top: 16px; }
.p-list--links a { display: block; padding: 14px 2px; border-bottom: 1px solid var(--line); text-decoration: none; }
.p-list--links a:hover b { text-decoration: underline; }
.p-list--links .muted { display: block; font-size: .9375rem; }
.p-tickets b, .p-accounts b { font-weight: 600; }

/* Tags */
.p-tag { display: inline-block; font-size: .75rem; font-weight: 600; line-height: 1; padding: 4px 8px; border-radius: 999px; background: var(--mist); color: var(--ink-2); vertical-align: 1px; }
.p-tag--hours { background: var(--leaf-tint); color: var(--green); }
.p-tag--ok { background: var(--leaf-tint); color: var(--green); }
.p-tag--amber { background: var(--amber-tint); color: var(--amber); }
.p-tag--red { background: #fbe5e2; color: var(--red); }
.p-task { display: block; margin-top: 4px; font-weight: 600; }
.p-detail { margin-top: 4px; font-size: .9375rem; display: grid; gap: 6px; }

/* Tables */
.p-table { width: 100%; border-collapse: collapse; font-size: .9688rem; }
.p-table th, .p-table td { text-align: left; vertical-align: top; padding: 11px 12px; border-bottom: 1px solid var(--line); }
.p-table th { font: 600 .875rem/1.3 var(--text); color: var(--ink-2); border-bottom: 2px solid var(--ink); }
.p-table th.p-right, .p-table td.p-right { text-align: right; }
.p-table td:first-child, .p-table th:first-child { padding-left: 2px; }

/* Uptime: one bar a day */
.p-chart { margin: 14px 0 0; max-width: 46rem; }
.p-bars { display: block; width: 100%; height: 48px; }
.p-bar--ok { fill: var(--leaf); }
.p-bar--amber { fill: #d99a1e; }
.p-bar--red { fill: var(--red); }
.p-bar--none { fill: #dfe6e1; }
.p-chart-axis { display: flex; justify-content: space-between; margin-top: 6px; font-size: .8125rem; color: var(--ink-2); }

/* Months on "Свършена работа" */
.p-months { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.p-months a { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: .9063rem; text-decoration: none; color: var(--ink); }
.p-months a:hover { border-color: var(--green); color: var(--green); }
.p-months a[aria-current="page"] { background: var(--green); border-color: var(--green); color: #fff; }

/* Findings from report.css, a little tighter in a list */
.p-main .finding { margin-top: 12px; }
.p-main .r-areas .finding { margin: 0 16px 14px; }
.finding .we-do { display: block; }
.finding .we-do b { white-space: normal; }

/* Forms: the site's fields on a white page */
.p-form.form { border: 1px solid var(--line); max-width: 44rem; }
.p-form .btn { justify-self: start; }
.field select { width: 100%; font: 400 1rem/1.4 var(--text); color: var(--ink); background: var(--paper); border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.field select:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px var(--leaf-tint); }
.p-check { display: flex; gap: 10px; align-items: flex-start; font-size: .9688rem; }
.p-check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--green); flex: none; }

/* Requests: the conversation */
.p-ticket-title { overflow-wrap: anywhere; }
.p-thread { list-style: none; margin: 22px 0; padding: 0; display: grid; gap: 12px; max-width: 44rem; }
.p-msg { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.p-msg--team { background: var(--mist); border-color: transparent; }
.p-msg-head { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; margin-bottom: 6px; }
.p-msg-body { display: grid; gap: 8px; overflow-wrap: anywhere; }

/* The monthly report */
.p-report { max-width: 50rem; }
.p-report-head { display: grid; gap: 6px; }
.p-report-head .p-print { justify-self: start; margin-top: 8px; }
.p-report .report-rows { padding: 0; border-top: 1px solid var(--line); }
.p-report .report-rows li { grid-template-columns: 9px 11em minmax(0, 1fr); }

/* Footer */
.p-foot { border-top: 1px solid var(--line); padding-block: 20px 32px; font-size: .8438rem; color: var(--ink-2); }
.p-foot p + p { margin-top: 4px; }

/* The team's side */
.p-admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.p-grid-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; align-items: end; }
.p-grid-form .p-span, .p-grid-form .p-check, .p-grid-form .btn { grid-column: 1 / -1; }
.p-card .p-form.form { border: 0; padding: 0; }
.p-row-form { display: flex; gap: 12px; align-items: end; margin-top: 10px; }
.p-row-form .field { flex: 1; }
.p-admin .p-table input, .p-admin .p-table select { font: inherit; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; width: 100%; background: var(--paper); }

@media (max-width: 960px) {
  .p-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p-two { grid-template-columns: minmax(0, 1fr); }
  .p-until { margin-left: 0; }
  .p-admin-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .p-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
}
@media (max-width: 640px) {
  .p-cards { grid-template-columns: minmax(0, 1fr); }
  .p-card--wide { grid-column: auto; }
  .p-head .brand small { display: block; }
  .p-who { font-size: .875rem; gap: 4px 12px; justify-content: flex-end; }
  .p-grid-form { grid-template-columns: minmax(0, 1fr); }
  .p-report .report-rows li { grid-template-columns: 9px minmax(0, 1fr); }
  .p-report .report-rows li > span:last-child { grid-column: 2; }
}
@media print {
  .p-head, .p-site, .p-foot, .p-back, .p-print, .p-form, .skip { display: none !important; }
  .p-main { padding: 0; }
  .p-section { break-inside: avoid; }
  a { color: var(--ink); text-decoration: none; }
}

/* ---------- the deal room and onboarding (src/views/deal.js, onboarding.js, build.js) ---------- */
[hidden] { display: none !important; }
.p-h3 { font: 600 1rem/1.3 var(--display); margin: 18px 0 8px; }
.p-hero { margin: 8px 0 24px; padding: 20px 22px; background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--green); border-radius: var(--radius); display: grid; gap: 8px; max-width: 54rem; }
.p-hero h2 { font: 600 clamp(1.125rem, 2.4vw, 1.375rem)/1.3 var(--display); }
.p-turn { display: inline-block; font-size: .8125rem; font-weight: 600; line-height: 1; padding: 5px 10px; border-radius: 999px; background: var(--mist); color: var(--ink-2); vertical-align: 1px; }
.p-turn--you { background: var(--amber-tint); color: var(--amber); }
.p-turn--us { background: var(--mist); color: var(--green-deep); }
.p-turn--done { background: var(--leaf-tint); color: var(--green); }
.p-note { display: block; padding: 6px 10px; border-radius: 8px; background: var(--amber-tint); color: var(--ink); }

.p-steps { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.p-step { display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: .9375rem; }
.p-step span { display: inline-grid; place-items: center; width: 1.6em; height: 1.6em; border-radius: 50%; border: 1px solid var(--line); font: 600 .8125rem/1 var(--display); }
.p-step--done span { background: var(--leaf); border-color: var(--leaf); color: #fff; }
.p-step--now { color: var(--ink); font-weight: 600; }
.p-step--now span { border-color: var(--green); color: var(--green); }

.p-offer-switch { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 24px; margin: 18px 0; }
.p-seg-radio { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.p-seg-radio legend { font-size: .875rem; color: var(--ink-2); margin-bottom: 6px; padding: 0; }
.p-seg-radio label { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); cursor: pointer; }
.p-seg-radio label:has(input:checked) { border-color: var(--green); background: var(--leaf-tint); }
.p-offer-lines { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); max-width: 54rem; }
.p-offer-line { padding: 14px 2px; border-bottom: 1px solid var(--line); display: grid; gap: 8px; }
.p-offer-row { display: flex; justify-content: space-between; gap: 18px; }
.p-offer-price { flex: none; font: 600 1.0625rem/1.3 var(--display); white-space: nowrap; }
.p-offer-scope summary, .p-ask summary { cursor: pointer; color: var(--green); font-size: .9375rem; font-weight: 500; }
.p-offer-scope ul { margin-top: 6px; padding-left: 2px; }
.p-offer-discount { color: var(--green); font-weight: 600; }
.p-offer-thread { padding-left: 12px; border-left: 2px solid var(--line); }
.p-ask { margin-top: 6px; }
.p-ask .p-form { margin-top: 10px; }
.p-offer-sums { max-width: 54rem; }
.p-offer-sum { display: grid; gap: 6px; padding: 18px 20px; background: var(--mist); border-radius: var(--radius); }
.p-offer-total { display: flex; justify-content: space-between; gap: 18px; font-size: 1.0625rem; }
.p-offer-total b { font: 650 1.25rem/1.2 var(--display); }
.p-schedule li { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border-bottom: 1px dashed var(--line); }
.p-offer-answer { max-width: 54rem; }

.p-fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px 18px; margin: 0; display: grid; gap: 14px; }
.p-fieldset legend { font: 600 1rem/1.3 var(--display); padding: 0 6px; }
.p-order-form { max-width: 46rem; display: grid; gap: 18px; }
.p-consents { display: grid; gap: 8px; }
.p-missing { padding: 12px 16px; border-radius: 10px; background: var(--amber-tint); }
/* A form's button may carry a long label (the legal pre-order one): it wraps at phone width, as the site's .form .btn. */
.p-form .btn { white-space: normal; line-height: 1.25; padding-block: 10px; text-align: center; max-width: 100%; }
.p-sign-ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 16px; }
.p-sign-steps { margin-bottom: 16px; display: grid; gap: 8px; }
.p-list--steps { list-style: decimal; padding-left: 1.4em; gap: 8px; }
.p-email-text { white-space: pre-wrap; font: .9375rem/1.5 var(--text); padding: 12px 14px; background: var(--mist); border-radius: 10px; margin: 0; }
.p-copy-row { display: flex; flex-wrap: wrap; gap: 10px; }
.p-kv th { width: 40%; font-weight: 500; color: var(--ink-2); }
.p-dl { display: grid; grid-template-columns: minmax(8rem, max-content) 1fr; gap: 4px 14px; font-size: .9375rem; }
.p-dl dt { color: var(--ink-2); }
.p-dl dd { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; }

.p-checks { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.p-check-step { display: grid; grid-template-columns: 9px minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 12px 2px; border-bottom: 1px solid var(--line); }
.p-check-step > div { display: grid; gap: 4px; justify-items: start; }
.p-check-step--done b { color: var(--ink-2); }
.p-check-step[aria-current="step"] b { color: var(--ink); }

.p-progress { appearance: none; width: 100%; max-width: 28rem; height: 8px; border: 0; border-radius: 999px; background: var(--mist); overflow: hidden; }
.p-progress::-webkit-progress-bar { background: var(--mist); border-radius: 999px; }
.p-progress::-webkit-progress-value { background: var(--green); border-radius: 999px; transition: width 2.4s ease-out; }
.p-progress::-moz-progress-bar { background: var(--green); border-radius: 999px; }
.p-before-after { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.p-day1 { display: flex; align-items: center; gap: 14px; }
.p-day1-from { display: grid; justify-items: center; gap: 4px; }
.p-day1-arrow { color: var(--ink-2); font-size: 1.25rem; }
.p-day1 .grade-ring, .p-day1 .grade-ring svg { width: 64px; height: 64px; }
/* The ring climbs slowly to today's grade (brand: slow motion only). */
.p-ring-climb circle { animation: p-climb 2.4s ease-out both; }
.p-ring-climb circle:nth-child(2) { animation-delay: .5s; }
.p-ring-climb circle:nth-child(3) { animation-delay: 1s; }
.p-ring-climb circle:nth-child(4) { animation-delay: 1.5s; }
@keyframes p-climb { from { stroke-opacity: .15; } to { stroke-opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .p-ring-climb circle { animation: none; }
  .p-progress::-webkit-progress-value { transition: none; }
}

.p-bank { max-width: 46rem; }
.p-copy-value { font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.p-access-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 4px; }
.p-sealed { margin-top: 20px; max-width: 40rem; }
.p-form-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.p-brief, .p-content { max-width: 46rem; }

@media (max-width: 700px) {
  .p-offer-row, .p-offer-total { flex-direction: column; gap: 4px; }
  .p-dl { grid-template-columns: 1fr; }
}
@media print {
  .p-head, .p-site, .p-foot, .p-back, .p-print { display: none; }
}
.p-shot { display: block; max-width: 100%; height: auto; margin-top: 8px; border: 1px solid var(--line); border-radius: 10px; }
.p-stage { display: inline-block; margin-left: 10px; padding: 4px 10px; border-radius: 999px; background: var(--leaf-tint); color: var(--green-deep); font: 600 .8125rem/1 var(--text); letter-spacing: 0; vertical-align: 3px; }
