/* Pit wall — the site shell: the one nav (shared/_site_nav) and the
   components the non-selling site pages are built from (My Designs, explore,
   challenges, the shared-track header, settings, sign in / up / reset).
   Wave 3b of docs/prds/PLAN-ui-audit-2026-09.md.

   SCOPED ON PURPOSE, like pit_wall.css: every rule starts at `.pws` (a Pit
   wall page or the nav) or at `body.pws-body`, so a page that has not been
   brought across — billing, labs, the analysis v2 page — keeps its own look
   under the new nav. /billing is brought across in the `.pws-bill-*` block
   below (review build). Tokens come from pit_wall_base.css. Page-scoped and
   linked by layouts/_pit_wall_head.html.erb; never loaded by the editor,
   drive or admin. */

/* ── the page ───────────────────────────────────────────────────────── */
body.pws-body { background: #0b0b0c; color: #f4f4f2 }
/* Muted text, lifted for the site. The token's #7d7d86 is 4.2:1 on a raised
   surface and 3.7:1 on a control — under WCAG AA's 4.5:1 — and the site sets
   muted text on both (settings choices, the empty plate, placeholders).
   #8c8c95 is ≥ 4.5:1 on base, surface, raised and control. Scoped to the
   site (`body .pws` outranks pit_wall_base's `.pws`, whichever sheet loads
   last) so analysis v3's `.pw` keeps its own values untouched. */
body .pws { --pw-ink3: #8c8c95 }
.pws {
  color-scheme: dark;
  color: var(--pw-ink);
  font-family: var(--pw-text);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}
.pws *, .pws *::before, .pws *::after { box-sizing: border-box }
.pws a, .pws button:not(:disabled), .pws [role="button"], .pws summary, .pws label[for], .pws select,
.pws input[type="submit"]:not(:disabled), .pws input[type="checkbox"], .pws input[type="radio"] { cursor: pointer }
.pws button:disabled, .pws input:disabled { cursor: default }
.pws :focus-visible { outline: 2px solid var(--pw-focus); outline-offset: 2px }

.pws-page { max-width: var(--pw-max); margin: 0 auto; padding: 28px var(--pw-gutter) 64px }
.pws-page.is-narrow { max-width: 760px }
.pws-page.is-mid { max-width: 1080px }
.pws-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; flex-wrap: wrap }
.pws-head > div { min-width: 0 }
.pws-h1 { font-family: var(--pw-display); font-weight: 600; font-size: 40px; line-height: 1; margin: 0; color: var(--pw-ink); letter-spacing: .005em }
.pws-h2 { font-family: var(--pw-display); font-weight: 600; font-size: 26px; line-height: 1.05; margin: 0; color: var(--pw-ink) }
.pws-h3 { font-family: var(--pw-display); font-weight: 600; font-size: 20px; line-height: 1.1; margin: 0; color: var(--pw-ink) }
.pws-lede { color: var(--pw-ink2); margin: 8px 0 0; max-width: 720px }
.pws-eyebrow { font-size: 13px; color: var(--pw-ink3); margin: 40px 0 12px; display: flex; align-items: center; justify-content: space-between; gap: 16px }
.pws-eyebrow h2 { font: inherit; color: inherit; margin: 0 }
.pws-muted { color: var(--pw-ink3) } .pws-ink2 { color: var(--pw-ink2) }
.pws-mono { font-family: var(--pw-mono); font-variant-numeric: tabular-nums }
.pws-disp { font-family: var(--pw-display); font-weight: 600 }
.pws-safe { color: var(--pw-safe) } .pws-mod { color: var(--pw-mod) } .pws-risk { color: var(--pw-risk) } .pws-ot { color: var(--pw-ot) }
.pws-link { color: var(--pw-ink); text-decoration: underline; text-decoration-color: var(--pw-ink4); text-underline-offset: 3px }
.pws-link:hover { text-decoration-color: var(--pw-ink) }
.pws-sr { position: absolute; left: 0; top: 0; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap }

/* ── buttons ────────────────────────────────────────────────────────── */
.pws-btn { min-height: 40px; padding: 0 16px; border-radius: var(--pw-r-btn); display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 500 14px var(--pw-text); color: var(--pw-ink); background: var(--pw-control); border: 0; white-space: nowrap; text-decoration: none;
  transition: background var(--pw-t-fast) var(--pw-ease), color var(--pw-t-fast) var(--pw-ease) }
.pws-btn:hover { background: #303036 }
.pws-btn.is-primary { background: var(--pw-primary); color: var(--pw-on-primary); font-weight: 600 }
.pws-btn.is-primary:hover { background: var(--pw-primary-hover) }
.pws-btn.is-ghost { background: transparent; box-shadow: inset 0 0 0 1px var(--pw-hair); color: var(--pw-ink2) }
.pws-btn.is-ghost:hover { background: var(--pw-raised); color: var(--pw-ink) }
.pws-btn.is-quiet { background: transparent; color: var(--pw-ink2); padding: 0 8px }
.pws-btn.is-quiet:hover { color: var(--pw-ink); background: transparent }
/* Destructive: a rose-tinted fill with a pale rose label and a rose edge —
   reads as "careful" without the raw --pw-risk text, which is only AA (6.4:1)
   on raised. Label ≥ 7:1 at rest and hover (primary_contrast_test). */
.pws-btn.is-danger { background: rgba(244, 63, 94, .16); color: #fecdd3; box-shadow: inset 0 0 0 1px rgba(251, 113, 133, .45) }
.pws-btn.is-danger:hover { background: rgba(244, 63, 94, .28); color: #ffe4e6; box-shadow: inset 0 0 0 1px rgba(251, 113, 133, .7) }
.pws-btn.is-big { min-height: 48px; padding: 0 22px; font-size: 15px }
.pws-btn.is-block { width: 100% }
.pws-btn svg { width: 16px; height: 16px; flex-shrink: 0 }
.pws form.button_to { display: inline }

/* ── surfaces ───────────────────────────────────────────────────────── */
.pws-card { background: var(--pw-surface); border-radius: var(--pw-r-surface); padding: 20px 22px }
.pws-card + .pws-card { margin-top: 12px }
.pws-card.is-danger { box-shadow: inset 0 0 0 1px var(--pw-risk-bg) }
.pws-raised { background: var(--pw-raised); border-radius: var(--pw-r-raised) }
.pws-hair { border-top: 1px solid var(--pw-hair) }
.pws-pill { display: inline-flex; align-items: center; gap: 6px; border-radius: var(--pw-r-pill); padding: 4px 10px; font-size: 12px; background: var(--pw-raised); color: var(--pw-ink2); white-space: nowrap }
.pws-pill.is-safe { background: var(--pw-safe-bg); color: var(--pw-safe) }
.pws-pill.is-mod { background: var(--pw-mod-bg); color: var(--pw-mod) }
.pws-pill.is-risk { background: var(--pw-risk-bg); color: var(--pw-risk) }
.pws-pill.is-ot { background: var(--pw-ot-bg); color: var(--pw-ot) }
.pws-note { background: var(--pw-raised); border-radius: var(--pw-r-raised); padding: 12px 16px; font-size: 14px; color: var(--pw-ink2) }
.pws-note.is-risk { background: var(--pw-risk-bg); color: #fecdd3 }
.pws-note.is-safe { background: var(--pw-safe-bg); color: #bbf7d0 }
.pws-bar { height: 3px; background: var(--pw-control); border-radius: 2px; overflow: hidden }
.pws-bar i { display: block; height: 100%; background: var(--pw-ink2) }

/* ── segmented filters (explore, dashboard) ─────────────────────────── */
.pws-filters { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 20px }
.pws-segs { display: inline-flex; flex-wrap: wrap; gap: 2px; background: var(--pw-surface); border-radius: var(--pw-r-pill); padding: 3px }
.pws-segs a { display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px; border-radius: var(--pw-r-pill); font-size: 13px; color: var(--pw-ink3); text-decoration: none }
.pws-segs a:hover { color: var(--pw-ink) }
.pws-segs a[aria-current] { background: var(--pw-raised); color: var(--pw-ink) }

/* ── form fields ────────────────────────────────────────────────────── */
.pws-field { display: block }
.pws-label { display: block; font-size: 13px; color: var(--pw-ink2); margin-bottom: 6px }
.pws-input, .pws-select { width: 100%; min-height: 44px; border-radius: var(--pw-r-btn); background: var(--pw-control); border: 0; padding: 0 14px;
  font: 400 15px var(--pw-text); color: var(--pw-ink); box-shadow: inset 0 0 0 1px transparent; appearance: none }
.pws-input::placeholder { color: var(--pw-ink3) }
.pws-input:focus, .pws-select:focus { outline: 2px solid var(--pw-focus); outline-offset: 1px }
.pws-select { padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a5a5ab' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center }
.pws-hint { font-size: 12px; color: var(--pw-ink3); margin-top: 6px }
.pws input[type="checkbox"], .pws input[type="radio"] { accent-color: var(--pw-ink); width: 18px; height: 18px; margin: 2px 0 0; flex-shrink: 0 }
.pws-check { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; padding: 4px 0 }
.pws-choice { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: var(--pw-r-raised); background: var(--pw-raised);
  box-shadow: inset 0 0 0 1px transparent }
.pws-choice:has(input:checked) { box-shadow: inset 0 0 0 1.5px var(--pw-ink) }
.pws-errors { background: var(--pw-risk-bg); color: #fecdd3; border-radius: var(--pw-r-raised); padding: 12px 16px; font-size: 14px; margin-bottom: 16px }
.pws-errors p { margin: 0 } .pws-errors p + p { margin-top: 4px }
.pws-stack > * + * { margin-top: 16px }

/* ── the plate thumbnail + track cards ──────────────────────────────── */
.pws-plate { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--pw-r-raised); background: var(--pw-raised); overflow: hidden }
.pws-plate canvas { position: absolute; inset: 0; width: 100%; height: 100% }
.pws-plate .pws-plate-empty { position: absolute; inset: 0; display: grid; place-items: center; font-size: 12px; color: var(--pw-ink3) }
.pws-tracks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px }
.pws-track { position: relative; display: flex; flex-direction: column; gap: 12px; background: var(--pw-surface); border-radius: var(--pw-r-surface); padding: 12px 12px 14px;
  transition: background var(--pw-t-fast) var(--pw-ease) }
.pws-track:hover { background: #17171a }
.pws-track-link { position: absolute; inset: 0; border-radius: var(--pw-r-surface); z-index: 0 }
.pws-track-body { position: relative; z-index: 1; pointer-events: none; display: flex; flex-direction: column; gap: 10px; padding: 0 4px }
.pws-track-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px }
.pws-track-name { font-family: var(--pw-display); font-weight: 600; font-size: 22px; line-height: 1.05; margin: 0; color: var(--pw-ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0 }
.pws-track-meta { font-size: 13px; color: var(--pw-ink3); display: flex; flex-wrap: wrap; gap: 4px 12px }
.pws-track-meta .pws-mono { color: var(--pw-ink2) }
.pws-figs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding-top: 10px; border-top: 1px solid var(--pw-hair) }
.pws-fig .pws-v { font-family: var(--pw-display); font-weight: 600; font-size: 26px; line-height: 1 }
.pws-fig .pws-l { font-size: 12px; color: var(--pw-ink3); margin-top: 3px }
.pws-fig .pws-v.pws-mono { font-family: var(--pw-mono); font-weight: 500; font-size: 16px; line-height: 1.6 }
.pws-track-actions { position: relative; z-index: 2; display: flex; align-items: center; gap: 8px; padding: 0 4px }
.pws-track-actions .pws-btn { min-height: 36px; font-size: 13px }
.pws-track-actions .pws-grow { flex: 1 }
.pws-icon-btn { width: 44px; height: 44px; min-height: 44px; padding: 0 }

/* ── rows (challenge lists, template strips) ────────────────────────── */
.pws-row { display: flex; align-items: center; gap: 14px; min-height: 52px; padding: 10px 0; border-top: 1px solid var(--pw-hair); color: var(--pw-ink); text-decoration: none }
.pws-row.is-first { border-top: 0 }
a.pws-row:hover .pws-row-title { text-decoration: underline; text-decoration-color: var(--pw-ink4); text-underline-offset: 3px }
.pws-row-main { flex: 1; min-width: 0 }
.pws-row-title, .pws-row-sub { display: block }
.pws-row-title { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.pws-row-sub { font-size: 13px; color: var(--pw-ink3); overflow: hidden; text-overflow: ellipsis }
.pws-chev { color: var(--pw-ink4) }
.pws-starts { display: flex; flex-wrap: wrap; gap: 8px }
.pws-starts a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: var(--pw-r-pill); background: var(--pw-surface);
  color: var(--pw-ink2); font-size: 14px; text-decoration: none }
.pws-starts a:hover { background: var(--pw-raised); color: var(--pw-ink) }
.pws-empty { text-align: center; padding: 48px 20px; color: var(--pw-ink2) }
.pws-empty .pws-h2 { margin-bottom: 8px }
.pws-empty p { max-width: 460px; margin: 0 auto 20px }

/* ── pagination ─────────────────────────────────────────────────────── */
.pws-pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--pw-hair); font-size: 13px; color: var(--pw-ink3) }

/* ── auth card (onboarding layout) ──────────────────────────────────── */
.pws-auth { width: 100%; max-width: 420px; margin: 0 auto; padding: 48px 20px }
.pws-auth-logo { display: flex; justify-content: center; margin-bottom: 28px }
.pws-auth .pws-card { padding: 28px 26px }
.pws-auth .pws-h1 { font-size: 34px; margin-bottom: 20px; text-align: center }
.pws-auth-foot { margin-top: 18px; text-align: center; font-size: 14px; color: var(--pw-ink2) }
.pws-auth-foot a, .pws-auth .pws-inline-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--pw-ink); text-decoration: underline; text-decoration-color: var(--pw-ink4); text-underline-offset: 3px }
.pws-auth .pws-flash { margin-bottom: 16px }

/* ── long-form reading (guides, blog, terms, privacy) ───────────────── */
/* `.pws-prose` styles bare HTML — the markdown SeoPage#body_html renders and
   the hand-written legal pages — so nothing inside needs a class. Unlayered,
   so it outranks the Tailwind utilities Redcarpet stamps on links
   (`text-brand-800 font-medium`, @layer utilities). Body text is #d6d6da:
   13:1 on the base, a notch under the headings so they lead. */
.pws-prose { max-width: 68ch; font-size: 17px; line-height: 1.7; color: #d6d6da; overflow-wrap: break-word }
.pws-prose.is-compact { font-size: 16px }
.pws-prose > :first-child { margin-top: 0 }
.pws-prose > :last-child { margin-bottom: 0 }
.pws-prose p, .pws-prose ul, .pws-prose ol, .pws-prose blockquote, .pws-prose pre, .pws-prose table, .pws-prose figure { margin: 0 0 1.15em }
.pws-prose h2, .pws-prose h3, .pws-prose h4 { color: var(--pw-ink); margin: 1.9em 0 .5em; scroll-margin-top: calc(var(--pw-nav) + 16px) }
.pws-prose h2 { font: 600 30px/1.1 var(--pw-display); letter-spacing: .005em }
.pws-prose h3 { font: 600 23px/1.15 var(--pw-display) }
.pws-prose h4 { font: 600 17px/1.4 var(--pw-text) }
.pws-prose h2 + *, .pws-prose h3 + *, .pws-prose h4 + * { margin-top: 0 }
.pws-prose section + section { margin-top: 2.2em }
.pws-prose section > h2:first-child { margin-top: 0 }
.pws-prose strong, .pws-prose b { color: var(--pw-ink); font-weight: 600 }
.pws-prose a { color: var(--pw-ink); font-weight: 500; text-decoration: underline; text-decoration-color: var(--pw-ink3); text-decoration-thickness: 1px; text-underline-offset: 3px }
.pws-prose a:hover { text-decoration-color: var(--pw-ink); text-decoration-thickness: 2px }
.pws-prose ul, .pws-prose ol { padding-left: 1.4em }
.pws-prose ul { list-style: disc } .pws-prose ol { list-style: decimal }
.pws-prose li { margin: .35em 0; padding-left: .2em }
.pws-prose li::marker { color: var(--pw-ink3) }
.pws-prose li > ul, .pws-prose li > ol { margin: .35em 0 0 }
.pws-prose blockquote { margin-left: 0; padding: 2px 0 2px 18px; border-left: 3px solid var(--pw-control); color: var(--pw-ink2) }
.pws-prose blockquote p:last-child { margin-bottom: 0 }
.pws-prose code { font-family: var(--pw-mono); font-size: .86em; background: var(--pw-raised); color: var(--pw-ink); border-radius: 6px; padding: .12em .38em }
.pws-prose pre { font-family: var(--pw-mono); font-size: 14px; line-height: 1.6; background: var(--pw-surface); border-radius: var(--pw-r-raised); padding: 16px 18px;
  overflow-x: auto; box-shadow: inset 0 0 0 1px var(--pw-hair); overflow-wrap: normal }
.pws-prose pre code { background: none; padding: 0; font-size: inherit; border-radius: 0 }
/* A wide table scrolls inside itself, never the page (390 px phones). */
.pws-prose table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; font-size: 15px; line-height: 1.5; font-variant-numeric: tabular-nums }
.pws-prose th, .pws-prose td { padding: 10px 14px 10px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--pw-hair); min-width: 7em }
.pws-prose th { color: var(--pw-ink); font-weight: 600; font-size: 13px; border-bottom-color: rgba(255,255,255,.14) }
.pws-prose td { color: #d6d6da }
.pws-prose img, .pws-prose video { display: block; max-width: 100%; height: auto; border-radius: var(--pw-r-raised) }
.pws-prose figcaption { font-size: 13px; color: var(--pw-ink3); margin-top: 8px }
.pws-prose hr { border: 0; border-top: 1px solid var(--pw-hair); margin: 2.4em 0 }

/* The article frame around it: kicker, breadcrumbs, the reading column. */
.pws-kicker { font: 500 13px/1.4 var(--pw-text); color: var(--pw-ink3); margin: 0 0 10px }
.pws-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; font-size: 13px; color: var(--pw-ink3); margin: 0 0 16px }
.pws-crumbs a { display: inline-flex; align-items: center; min-height: 44px; color: var(--pw-ink2); text-decoration: none }
.pws-crumbs a:hover { color: var(--pw-ink); text-decoration: underline; text-underline-offset: 3px }
.pws-crumbs [aria-current] { color: var(--pw-ink3); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.pws-article-h1 { font-family: var(--pw-display); font-weight: 600; font-size: 48px; line-height: 1.02; margin: 0 0 28px; color: var(--pw-ink); letter-spacing: .005em; max-width: 22ch }
.pws-legal-meta { font-size: 13px; color: var(--pw-ink3); margin: 8px 0 28px }
/* Page top on the marketing layout, whose <main> has no nav clearance. */
.pws-page.is-under-nav { padding-top: calc(var(--pw-nav) + 40px) }

/* Index of articles (guides, blog). */
.pws-entries { display: grid; gap: 10px }
.pws-entry { display: block; background: var(--pw-surface); border-radius: var(--pw-r-surface); padding: 20px 22px; color: var(--pw-ink); text-decoration: none;
  transition: background var(--pw-t-fast) var(--pw-ease) }
.pws-entry:hover { background: var(--pw-raised) }
.pws-entry-title { font: 600 24px/1.1 var(--pw-display); margin: 0; color: var(--pw-ink) }
.pws-entry-sub { margin: 8px 0 0; color: var(--pw-ink2); font-size: 15px; line-height: 1.55 }
.pws-entry-more { display: inline-block; margin-top: 12px; font-size: 14px; font-weight: 500; color: var(--pw-ink) }
.pws-entry:hover .pws-entry-more { text-decoration: underline; text-underline-offset: 3px }
.pws-entry.is-small { padding: 16px 18px }
.pws-entry.is-small .pws-entry-title { font-size: 20px }
.pws-entry.is-small .pws-entry-sub { font-size: 14px; margin-top: 6px }
.pws-related { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px }

/* The closing ask on an article or index. */
.pws-cta { text-align: center; padding: 36px 28px }
.pws-cta .pws-h2 { margin-bottom: 10px }
.pws-cta p { color: var(--pw-ink2); margin: 0 auto 22px; max-width: 520px }

/* The sticky "put it into practice" bar (shared/_scroll_cta). Its visibility
   classes (translate-y-full / opacity-0 / hidden) are Tailwind's and the
   scroll-cta controller toggles them, so nothing here sets `display` on a
   toggled element. */
.pws-scta { position: relative; background: var(--pw-raised); border-radius: var(--pw-r-surface); padding: 20px 22px;
  box-shadow: 0 0 0 1px var(--pw-hair), 0 18px 48px rgba(0,0,0,.55) }
.pws-scta-close { position: absolute; top: 6px; right: 6px; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border: 0; background: none; color: var(--pw-ink3); border-radius: 10px }
.pws-scta-close:hover { color: var(--pw-ink); background: var(--pw-control) }
.pws-scta-close svg { width: 20px; height: 20px }
.pws-scta .pws-h3 { margin: 0 40px 6px 0 }
.pws-scta-sub { color: var(--pw-ink2); font-size: 14px; margin: 0 0 14px }
.pws-scta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px }
.pws-scta-form { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--pw-hair) }
.pws-scta-form form { display: flex; flex-wrap: wrap; gap: 8px }
.pws-scta-form .pws-input { flex: 1 1 200px; width: auto }
.pws-scta-ok { color: var(--pw-safe); font-weight: 500; text-align: center; padding: 6px 0; margin: 0 }
.pws-scta-err { color: var(--pw-risk); font-size: 12px; margin: 6px 0 0 }

/* ── changelog ──────────────────────────────────────────────────────── */
.pws-log { display: grid; gap: 40px }
.pws-log-entry { position: relative; padding-left: 28px; border-left: 1px solid var(--pw-hair) }
.pws-log-dot { position: absolute; left: -6px; top: 5px; width: 11px; height: 11px; border-radius: 50%; background: var(--pw-control); box-shadow: 0 0 0 3px var(--pw-base) }
.pws-log-dot.is-latest { background: var(--pw-safe) }
.pws-log-date { font: 500 12px/1.4 var(--pw-mono); color: var(--pw-ink3); text-transform: uppercase; letter-spacing: .06em }
.pws-log-date.is-latest { color: var(--pw-safe) }
.pws-log-title { font: 600 26px/1.1 var(--pw-display); color: var(--pw-ink); margin: 6px 0 12px }
.pws-log-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 15px; line-height: 1.55; color: #d6d6da }
.pws-log-items li { display: flex; align-items: flex-start; gap: 12px }
.pws-tag { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; min-width: 76px; padding: 2px 6px; margin-top: 1px; border-radius: 5px;
  font: 600 11px/1.5 var(--pw-mono); text-transform: uppercase; letter-spacing: .05em; background: var(--pw-raised); color: var(--pw-ink2) }
.pws-tag.is-safe { background: var(--pw-safe-bg); color: var(--pw-safe) }
.pws-tag.is-ot { background: var(--pw-ot-bg); color: var(--pw-ot) }
.pws-tag.is-mod { background: var(--pw-mod-bg); color: var(--pw-mod) }

/* ── the one site nav (shared/_site_nav) ────────────────────────────── */
.pwn { position: fixed; top: 0; left: 0; right: 0; z-index: 50; background: rgba(11,11,12,.9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--pw-hair); font-family: var(--pw-text); font-size: 14px; color: var(--pw-ink2) }
.pwn-bar { max-width: var(--pw-max); margin: 0 auto; height: var(--pw-nav); padding: 0 var(--pw-gutter); display: flex; align-items: center; gap: 28px }
/* The wordmark (BrandHelper#brand_wordmark): its mark is the R. */
.pwn-logo { display: inline-flex; align-items: center; font-size: 21px; color: var(--pw-ink); text-decoration: none; white-space: nowrap; min-height: 44px }
.pwn-links { display: flex; align-items: center; gap: 4px; margin-left: auto }
.pwn-link { display: inline-flex; align-items: center; min-height: 40px; padding: 0 10px; border-radius: 8px; color: var(--pw-ink2); text-decoration: none; white-space: nowrap;
  background: none; border: 0; font: inherit }
.pwn-link:hover { color: var(--pw-ink) }
.pwn-link[aria-current] { color: var(--pw-ink) }
.pwn-end { display: flex; align-items: center; gap: 8px }
.pwn-cta { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: var(--pw-r-btn); background: var(--pw-primary); color: var(--pw-on-primary);
  font-weight: 600; font-size: 14px; text-decoration: none; white-space: nowrap }
.pwn-cta:hover { background: var(--pw-primary-hover) }
.pwn-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--pw-raised); color: var(--pw-ink2); display: inline-flex; align-items: center; justify-content: center;
  font: 600 13px var(--pw-text); border: 0 }
.pwn-avatar:hover, .pwn-avatar[aria-expanded="true"] { background: var(--pw-control); color: var(--pw-ink) }
.pwn-account { position: relative }
.pwn-menu { position: absolute; right: 0; top: calc(100% + 10px); width: 240px; background: var(--pw-surface); border-radius: var(--pw-r-raised);
  box-shadow: 0 0 0 1px var(--pw-hair), 0 16px 40px rgba(0,0,0,.45); padding: 6px }
.pwn-menu-who { padding: 8px 10px 10px; font-size: 12px; color: var(--pw-ink3); border-bottom: 1px solid var(--pw-hair); margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.pwn-item { display: flex; align-items: center; width: 100%; min-height: 40px; padding: 0 10px; border-radius: 8px; color: var(--pw-ink2); text-decoration: none; background: none;
  border: 0; font: 400 14px var(--pw-text); text-align: left }
.pwn-item:hover { background: var(--pw-raised); color: var(--pw-ink) }
.pwn-menu form, .pwn-sheet form { margin: 0 }
.pwn-burger { display: none; width: 44px; height: 44px; margin-right: -10px; border: 0; background: none; color: var(--pw-ink); border-radius: 10px; align-items: center; justify-content: center }
.pwn-burger svg { width: 22px; height: 22px }
.pwn-sheet { border-top: 1px solid var(--pw-hair); background: var(--pw-base); padding: 8px var(--pw-gutter-phone) 16px; max-height: calc(100vh - var(--pw-nav)); overflow-y: auto }
.pwn-sheet .pwn-item { min-height: 48px; font-size: 16px; color: var(--pw-ink) }
.pwn-sheet .pwn-item[aria-current] { background: var(--pw-raised) }
.pwn-sheet .pwn-sep { height: 1px; background: var(--pw-hair); margin: 8px 0 }
.pwn-sheet .pwn-menu-who { border: 0; padding: 8px 10px 4px; margin: 0 }
.pwn [hidden] { display: none !important }

@media (max-width: 900px) {
  .pwn-links { display: none }
  .pwn-bar { gap: 12px; padding: 0 var(--pw-gutter-phone) }
  .pwn-end { margin-left: auto }
  .pwn-account, .pwn-end .pwn-link { display: none }
  .pwn-burger { display: inline-flex }
  .pwn-cta { min-height: 44px }
}
@media (min-width: 901px) { .pwn-sheet { display: none !important } }

/* ── /billing (billings/show + partials) ────────────────────────────────
   The ONE Lifetime offer, dressed as landing_v2's pricing card so the home
   page and the page its button lands on read as one offer: eyebrow, a big
   display price, green-dot ticks, one bone primary. Visual only — every
   form, hidden field, data-promo hook and #lifetime anchor is unchanged. */
.pws .pws-bill { max-width: 1240px; margin: 0 auto; padding: 28px var(--pw-gutter) 64px }
.pws .pws-bill-eyebrow { font-size: 14px; color: var(--pw-ink3); margin: 0 }
.pws .pws-bill-h1 { font-family: var(--pw-display); font-weight: 600; font-size: 52px; line-height: .96; letter-spacing: -.005em; color: var(--pw-ink); margin: 0; text-wrap: balance }
.pws .pws-bill-h2 { font-family: var(--pw-display); font-weight: 600; font-size: 40px; line-height: 1; color: var(--pw-ink); margin: 8px 0 0; text-wrap: balance }
.pws .pws-bill-h3 { font-family: var(--pw-display); font-weight: 600; font-size: 22px; line-height: 1.05; color: var(--pw-ink); margin: 0 }
.pws .pws-bill-copy { color: var(--pw-ink2); margin: 12px 0 0; max-width: 34em }
.pws .pws-bill-copy strong { color: var(--pw-ink); font-weight: 500 }
.pws .pws-bill-small { font-size: 13px; color: var(--pw-ink3); margin: 0 }
.pws .pws-bill-section { margin-top: 72px }

/* the hero: offer card | their circuit + the free/Lifetime table */
.pws .pws-bill-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 14px; align-items: stretch }
.pws .pws-bill-offer { background: var(--pw-surface); border-radius: var(--pw-r-surface); box-shadow: inset 0 0 0 1px rgba(244,244,242,.18);
  padding: 28px 30px 30px; display: flex; flex-direction: column; gap: 18px; min-width: 0 }
.pws .pws-bill-amount { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap }
.pws .pws-bill-amount b { font-family: var(--pw-display); font-weight: 600; font-size: 84px; line-height: .82; color: var(--pw-ink) }
.pws .pws-bill-amount .pws-bill-was { font-family: var(--pw-display); font-size: 32px; color: var(--pw-ink3) }
.pws .pws-bill-amount .pws-bill-per { color: var(--pw-ink2) }
.pws .pws-bill-notes { display: flex; flex-direction: column; align-items: flex-start; gap: 8px }
.pws .pws-bill-note { display: inline-flex; align-items: center; gap: 8px; border-radius: var(--pw-r-raised); padding: 8px 12px; font-size: 13px; line-height: 1.4;
  background: var(--pw-raised); color: var(--pw-ink2); margin: 0 }
.pws .pws-bill-note.is-mod { background: var(--pw-mod-bg); color: var(--pw-mod) }
.pws .pws-bill-note.is-safe { background: var(--pw-safe-bg); color: var(--pw-safe) }
.pws .pws-bill-note .pws-mono { font-weight: 600 }
.pws .pws-bill-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none }
.pws .pws-bill-cta { display: flex; flex-direction: column; gap: 8px }
.pws .pws-bill-cta form.button_to { display: block }
.pws .pws-bill-cta .pws-btn { width: 100% }
.pws .pws-btn.pws-bill-big { min-height: 56px; padding: 0 26px; font-size: 17px; border-radius: 12px }
.pws .pws-bill-ticks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px }
.pws .pws-bill-ticks.is-one { grid-template-columns: 1fr }
.pws .pws-bill-ticks li { display: flex; gap: 10px; align-items: baseline; font-size: 15px; color: var(--pw-ink) }
.pws .pws-bill-ticks li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--pw-safe); transform: translateY(-2px) }

/* their circuit, lapped live, and what free already gives */
.pws .pws-bill-visual { background: var(--pw-surface); border-radius: var(--pw-r-surface); overflow: hidden; display: flex; flex-direction: column; min-width: 0 }
.pws .pws-bill-visual-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 18px 0 }
.pws .pws-bill-visual-head b { display: block; font-family: var(--pw-display); font-weight: 600; font-size: 22px; color: var(--pw-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0 }
.pws .pws-bill-visual-head span { font-size: 13px; color: var(--pw-ink3) }
.pws .pws-bill-sim { position: relative; height: 240px; margin: 4px 8px 0 }
.pws .pws-bill-sim canvas { position: absolute; inset: 0; width: 100%; height: 100% }
.pws .pws-bill-board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--pw-hair); border-top: 1px solid var(--pw-hair) }
.pws .pws-bill-board > div { background: var(--pw-raised); padding: 12px 14px }
.pws .pws-bill-board .pws-l { font-size: 12px; color: var(--pw-ink3) }
.pws .pws-bill-board .pws-v { font-family: var(--pw-display); font-weight: 600; font-size: 28px; line-height: 1; color: var(--pw-ink); margin-top: 4px; white-space: nowrap }
.pws .pws-bill-board .pws-v small { font-family: var(--pw-text); font-weight: 400; font-size: 12px; color: var(--pw-ink3) }
.pws .pws-bill-classes { display: flex; flex-wrap: wrap; gap: 4px 18px; padding: 10px 18px; border-top: 1px solid var(--pw-hair); font-size: 13px; color: var(--pw-ink3) }
.pws .pws-bill-classes .pws-mono { color: var(--pw-ink) }
.pws .pws-bill-table { padding: 8px 18px 14px; border-top: 1px solid var(--pw-hair); margin-top: auto }
.pws .pws-bill-row { display: grid; grid-template-columns: minmax(0, 1fr) 84px 108px; gap: 8px; align-items: baseline; padding: 8px 0; border-top: 1px solid var(--pw-hair); font-size: 14px }
.pws .pws-bill-row.is-head { border-top: 0; font-size: 12px; color: var(--pw-ink3); padding-bottom: 4px }
.pws .pws-bill-row > :nth-child(2), .pws .pws-bill-row > :nth-child(3) { text-align: right; white-space: nowrap }
.pws .pws-bill-row .pws-bill-label { color: var(--pw-ink2) }
.pws .pws-bill-row .pws-bill-free { color: var(--pw-ink3) }
.pws .pws-bill-row .pws-bill-life { color: var(--pw-ink); font-weight: 500 }
.pws .pws-bill-row.is-shared .pws-bill-free, .pws .pws-bill-row.is-shared .pws-bill-life { color: var(--pw-ink3); font-weight: 400 }
.pws .pws-bill-row .pws-bill-life .pws-bill-dot { display: inline-block; background: var(--pw-safe); margin-right: 7px; transform: translateY(-2px) }
.pws .pws-bill-row.is-head .pws-bill-life { color: var(--pw-ink); font-weight: 500 }

/* feature blocks: the flythrough and the telemetry trace */
.pws .pws-bill-feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 40px; align-items: center }
.pws .pws-bill-feature.is-media-first { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) }
@media (min-width: 1061px) { .pws .pws-bill-feature.is-media-first > .pws-bill-media { order: -1 } }
.pws .pws-bill-media { background: var(--pw-surface); border-radius: var(--pw-r-surface); overflow: hidden; min-width: 0 }
.pws .pws-bill-fly-wait { position: relative; aspect-ratio: 16 / 9; background: var(--pw-raised); display: grid; place-items: center; color: var(--pw-ink3); font-size: 14px; cursor: pointer }
.pws .pws-bill-fly-wait span { display: inline-flex; align-items: center; gap: 10px }
.pws .pws-bill-fly-wait svg { width: 40px; height: 40px; padding: 12px; border-radius: 50%; background: var(--pw-control); color: var(--pw-ink) }
.pws .pws-bill-fly { padding: 12px }
.pws .pws-bill-trace { position: relative; height: 240px; margin: 16px 16px 0 }
.pws .pws-bill-trace canvas { position: absolute; inset: 0; width: 100%; height: 100% }
.pws .pws-bill-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; padding: 10px 16px 14px; font-size: 12px; color: var(--pw-ink3) }
.pws .pws-bill-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px }
.pws .pws-bill-legend .pws-bill-src { margin-left: auto }
.pws .pws-bill-feature .pws-bill-ticks { margin-top: 18px }
.pws .pws-bill-feature .pws-bill-cta { margin-top: 24px; align-items: flex-start }
.pws .pws-bill-feature .pws-bill-cta .pws-btn { width: auto }

/* what Lifetime unlocks — the closing ask */
.pws .pws-bill-unlocks { background: var(--pw-surface); border-radius: var(--pw-r-surface); padding: 36px 36px 32px }
.pws .pws-bill-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 28px }
.pws .pws-bill-groups .pws-bill-small { margin: 4px 0 14px }
.pws .pws-bill-close { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--pw-hair) }
.pws .pws-bill-close form.button_to { display: block }

/* subscriptions: demoted, and only the configured ones */
.pws .pws-bill-subs { margin-top: 48px }
.pws .pws-bill-subs .pws-bill-small { margin-top: 4px }
.pws .pws-bill-subgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px }
.pws .pws-bill-sub { border-radius: var(--pw-r-raised); box-shadow: inset 0 0 0 1px var(--pw-hair); padding: 16px 18px; display: flex; flex-direction: column; gap: 4px }
.pws .pws-bill-sub .pws-bill-label { font-size: 14px; color: var(--pw-ink2) }
.pws .pws-bill-sub .pws-bill-price { font-family: var(--pw-display); font-weight: 600; font-size: 30px; line-height: 1.05; color: var(--pw-ink) }
.pws .pws-bill-sub .pws-bill-small { flex: 1; margin: 2px 0 12px }
.pws .pws-bill-sub form.button_to { display: block }
.pws .pws-bill-sub .pws-btn { width: 100%; min-height: 44px }
.pws .pws-bill-back { display: inline-flex; align-items: center; min-height: 44px; margin-top: 40px; color: var(--pw-ink2); text-decoration: none; font-size: 14px }
.pws .pws-bill-back:hover { color: var(--pw-ink) }

/* the owner / subscriber account view */
.pws .pws-bill-account { max-width: 880px }
.pws .pws-bill-acct { background: var(--pw-surface); border-radius: var(--pw-r-surface); padding: 24px 26px; margin-top: 20px }
.pws .pws-bill-acct-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap }
.pws .pws-bill-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 22px 0 0 }
.pws .pws-bill-facts dt { font-size: 12px; color: var(--pw-ink3) }
.pws .pws-bill-facts dd { margin: 4px 0 0; color: var(--pw-ink); font-size: 15px }
.pws .pws-bill-facts dd.is-mod { color: var(--pw-mod) }
.pws .pws-bill-part { border-top: 1px solid var(--pw-hair); margin-top: 20px; padding-top: 18px }
.pws .pws-bill-part > .pws-bill-small { margin-bottom: 12px }
.pws .pws-bill-part > p:not(.pws-bill-small) { color: var(--pw-ink2); margin: 0 }
.pws .pws-bill-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px }
.pws .pws-bill-actions form.button_to { display: inline-block }

@media (max-width: 1060px) {
  .pws .pws-bill-hero, .pws .pws-bill-feature, .pws .pws-bill-feature.is-media-first { grid-template-columns: 1fr }
  .pws .pws-bill-feature { gap: 24px }
  .pws .pws-bill-groups { grid-template-columns: 1fr 1fr }
}
@media (max-width: 760px) {
  .pws .pws-bill { padding: 18px var(--pw-gutter-phone) 48px }
  .pws .pws-bill-offer { padding: 22px 20px 24px; gap: 16px }
  .pws .pws-bill-h1 { font-size: 40px }
  .pws .pws-bill-h2 { font-size: 32px }
  .pws .pws-bill-amount b { font-size: 68px }
  .pws .pws-bill-ticks { grid-template-columns: 1fr }
  .pws .pws-bill-sim { height: 200px }
  .pws .pws-bill-board { grid-template-columns: 1fr 1fr }
  .pws .pws-bill-board .pws-v { font-size: 24px }
  .pws .pws-bill-visual-head { padding: 14px 16px 0 }
  .pws .pws-bill-table { padding: 6px 16px 12px }
  .pws .pws-bill-row { grid-template-columns: minmax(0, 1fr) 64px 100px; font-size: 13px }
  .pws .pws-bill-section { margin-top: 52px }
  .pws .pws-bill-feature .pws-bill-cta .pws-btn { width: 100% }
  .pws .pws-bill-feature .pws-bill-cta { align-items: stretch }
  .pws .pws-bill-trace { height: 200px; margin: 12px 12px 0 }
  .pws .pws-bill-legend .pws-bill-src { margin-left: 0 }
  .pws .pws-bill-unlocks { padding: 24px 20px }
  .pws .pws-bill-groups { grid-template-columns: 1fr; gap: 22px }
  .pws .pws-bill-close { flex-direction: column; align-items: stretch }
  .pws .pws-bill-close .pws-btn { width: 100%; white-space: normal }
  .pws .pws-bill-subgrid { grid-template-columns: 1fr }
  .pws .pws-bill-facts { grid-template-columns: 1fr 1fr }
  .pws .pws-bill-acct { padding: 20px 18px }
}

/* ── phone ──────────────────────────────────────────────────────────── */
@media (max-width: 1060px) { .pws-tracks { grid-template-columns: repeat(2, minmax(0, 1fr)) } }
@media (max-width: 760px) {
  .pws-page { padding: 18px var(--pw-gutter-phone) 48px }
  .pws-h1 { font-size: 34px }
  .pws-tracks { grid-template-columns: 1fr }
  .pws-btn { min-height: 44px }
  .pws-segs a { min-height: 44px }
  .pws-head { align-items: flex-start }
  .pws-head .pws-btn.is-primary { width: 100% }
  .pws-hide-phone { display: none !important }
  div.pws-filters > form { margin-left: 0 !important; max-width: none !important; width: 100% }
  form.pws-filters { display: grid; grid-template-columns: 1fr 1fr; gap: 8px }
  form.pws-filters > .pws-input, form.pws-filters > .pws-btn { grid-column: 1 / -1; width: 100% }
  form.pws-filters > .pws-select { width: 100% !important }
  .pws-page.is-under-nav { padding-top: calc(var(--pw-nav) + 20px) }
  .pws-article-h1 { font-size: 36px; margin-bottom: 22px }
  .pws-prose { font-size: 16px; line-height: 1.65 }
  .pws-prose h2 { font-size: 26px }
  .pws-prose h3 { font-size: 21px }
  .pws-prose pre { margin-left: calc(-1 * var(--pw-gutter-phone)); margin-right: calc(-1 * var(--pw-gutter-phone)); border-radius: 0; box-shadow: none }
  .pws-entry { padding: 18px }
  .pws-cta { padding: 28px 18px }
  .pws-cta .pws-btn { width: 100% }
  .pws-scta { padding: 16px }
  .pws-scta-actions .pws-btn.is-primary { flex: 1 1 100% }
  .pws-log-items li { flex-direction: column; gap: 4px }
}

/* ── Analysis rebrand (tracks/*) ── */
/* The analysis pages (v1 show, v2 show_v2, the three compare pages) and the
   tracks/* partials they share with analysis v3, in Pit wall. A SKIN, not a
   rewrite — the admin_garage.css / [data-theme] technique: Tailwind v4
   utilities read `var(--color-*)`, so re-pointing the slate ladder, the
   surfaces and the fonts on the page root retints every descendant,
   `/opacity` variants and gradients included, with no markup change. Every
   Stimulus target, data- hook, id and form is exactly what it was.

   `.pws.pws-an` sits on each page's root (`.pws` brings the tokens).
   show_v3's root is `.pw.pws-an`: v3's own components read --pw-* and are
   untouched; the old partials below its debrief pick up the greys and fonts
   here. Rules that would fight v3's "one primary" (pit_wall.css
   `.pw .btn-primary`) are `:not(.pw)`; v3's side is in pit_wall.css's
   matching section.

   - greys: navy slate → the Pit wall neutral ladder (base / surface /
     raised / control / ink). slate-400 is #bdbdc2 so a muted label inside
     a button is ≥ 7:1 even on a control fill (8.2:1); slate-500 is the
     site's AA muted #8c8c95.
   - data hues stay: emerald = safe, amber-400 (#fbbf24) = moderate, red =
     risk, blue/sky = overtaking. amber is NOT the brand here.
   - ONE accent: every SOLID coloured fill on a control (the old emerald
     .btn-primary, the red "Drive now", amber / emerald CTAs, the paywall
     overlay's JS-built buttons) becomes the signal-orange primary with a
     #0b0b0c label (7.5:1, hover #ff9447 9.0:1). primary_contrast_test.rb.
   Unlayered, like the rest of this file, so a fill beats a template's
   `text-white` utility. Selector lists are written out in full (no
   `:is(a, b)`): the scope test splits on commas. */
.pws-an {
  --color-slate-50: #f4f4f2;  --color-slate-100: #ececea;  --color-slate-200: #e2e2e0;  --color-slate-300: #d6d6da;
  --color-slate-400: #bdbdc2; --color-slate-500: #8c8c95;  --color-slate-600: #5d5d65;  --color-slate-700: #34343a;
  --color-slate-800: #232327; --color-slate-900: #131315;  --color-slate-950: #0b0b0c;
  --color-surface-primary: #0b0b0c;  --color-surface-card: #131315;  --color-surface-elevated: #252529;
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Inter Tight", system-ui, sans-serif;
  --font-sans: "Inter Tight", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  font-family: var(--font-body);
  color: var(--color-slate-300);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
.pws-an a,
.pws-an button:not(:disabled),
.pws-an [role="button"],
.pws-an summary,
.pws-an label[for],
.pws-an select,
.pws-an input[type="submit"]:not(:disabled) { cursor: pointer }
.pws-an button:disabled, .pws-an input:disabled { cursor: default }
.pws-an :focus-visible { outline: 2px solid var(--pw-focus, rgba(255,122,26,.7)); outline-offset: 2px }

/* Display type is Barlow Condensed 600 (no 700 cut is loaded), a size up
   so the condensed face reads at the weight Instrument Sans did. */
.pws-an .font-display { font-weight: 600; letter-spacing: .005em }
.pws-an h1.font-display.text-2xl, .pws-an h2.font-display.text-2xl { font-size: 2.1rem; line-height: 1 }
.pws-an h2.font-display.text-lg, .pws-an h3.font-display.text-lg, .pws-an h4.font-display.text-lg { font-size: 1.35rem; line-height: 1.15 }
.pws-an h2.font-display.text-sm, .pws-an h3.font-display.text-sm, .pws-an h3.font-display.text-base, .pws-an h4.font-display.text-sm { font-size: 1.15rem; line-height: 1.2 }
.pws-an h2.font-display.text-xl, .pws-an h3.font-display.text-xl { font-size: 1.6rem; line-height: 1.1 }
.pws-an h1.font-display.text-3xl, .pws-an h2.font-display.text-3xl { font-size: 2.6rem; line-height: 1 }

/* Flat Pit wall surfaces: a card is one fill and a hairline, not a tinted
   gradient with a coloured outline. Severity tints on rows (rounded-lg)
   keep their colour; they carry meaning. */
.pws-an .rounded-xl[class*="bg-gradient-to"], .pws-an .rounded-2xl[class*="bg-gradient-to"] { background-image: none; background-color: var(--pw-surface) }
.pws-an .rounded-xl.border, .pws-an .rounded-2xl.border { border-color: rgba(255,255,255,.07) }
.pws-an [class*="shadow-red-"], .pws-an [class*="shadow-emerald-"], .pws-an [class*="shadow-amber-"] { box-shadow: none }
/* The paywall overlay's scrim (application.css, navy) is the base grey. */
.pws-an .simulation-paywall-overlay:not(.pw-proof-overlay) { background: rgba(11,11,12,.86) }

/* Bare text links are ink, not a second accent colour. */
.pws-an a.text-emerald-400:not([class*="bg-"]):not([class*="border"]),
.pws-an a.text-emerald-300:not([class*="bg-"]):not([class*="border"]),
.pws-an a.text-red-400:not([class*="bg-"]):not([class*="border"]),
.pws-an a.text-red-300:not([class*="bg-"]):not([class*="border"]),
.pws-an a.text-amber-300:not([class*="bg-"]):not([class*="border"]),
.pws-an a.text-amber-400:not([class*="bg-"]):not([class*="border"]),
.pws-an a.text-sky-400:not([class*="bg-"]):not([class*="border"]) {
  color: var(--pw-ink); text-decoration: underline; text-decoration-color: var(--pw-ink4); text-underline-offset: 3px }
.pws-an a.text-emerald-400:not([class*="bg-"]):not([class*="border"]):hover,
.pws-an a.text-emerald-300:not([class*="bg-"]):not([class*="border"]):hover,
.pws-an a.text-red-400:not([class*="bg-"]):not([class*="border"]):hover,
.pws-an a.text-red-300:not([class*="bg-"]):not([class*="border"]):hover,
.pws-an a.text-amber-300:not([class*="bg-"]):not([class*="border"]):hover,
.pws-an a.text-amber-400:not([class*="bg-"]):not([class*="border"]):hover,
.pws-an a.text-sky-400:not([class*="bg-"]):not([class*="border"]):hover { text-decoration-color: var(--pw-ink) }

/* THE primary: every solid coloured fill a reader can press. */
.pws-an:not(.pw) .btn-primary,
.pws-an:not(.pw) a.bg-red-500,
.pws-an:not(.pw) a.bg-amber-500,
.pws-an:not(.pw) a.bg-emerald-500,
.pws-an:not(.pw) a.bg-emerald-600,
.pws-an:not(.pw) a.bg-orange-500,
.pws-an:not(.pw) button.bg-red-500,
.pws-an:not(.pw) button.bg-amber-500,
.pws-an:not(.pw) button.bg-emerald-500,
.pws-an:not(.pw) button.bg-emerald-600,
.pws-an:not(.pw) button.bg-orange-500,
.pws-an:not(.pw) input[type="submit"].bg-red-500,
.pws-an:not(.pw) input[type="submit"].bg-amber-500,
.pws-an:not(.pw) input[type="submit"].bg-emerald-500,
.pws-an:not(.pw) input[type="submit"].bg-emerald-600,
.pws-an:not(.pw) input[type="submit"].bg-orange-500,
.pws-an:not(.pw) label.bg-red-500,
.pws-an:not(.pw) label.bg-amber-500,
.pws-an:not(.pw) label.bg-emerald-500,
.pws-an:not(.pw) label.bg-emerald-600,
.pws-an:not(.pw) label.bg-orange-500 {
  background-color: var(--pw-primary); background-image: none; color: var(--pw-on-primary); border-color: transparent; box-shadow: none; font-weight: 600 }
.pws-an:not(.pw) .btn-primary:not(:disabled):hover,
.pws-an:not(.pw) a.bg-red-500:not(:disabled):hover,
.pws-an:not(.pw) a.bg-amber-500:not(:disabled):hover,
.pws-an:not(.pw) a.bg-emerald-500:not(:disabled):hover,
.pws-an:not(.pw) a.bg-emerald-600:not(:disabled):hover,
.pws-an:not(.pw) a.bg-orange-500:not(:disabled):hover,
.pws-an:not(.pw) button.bg-red-500:not(:disabled):hover,
.pws-an:not(.pw) button.bg-amber-500:not(:disabled):hover,
.pws-an:not(.pw) button.bg-emerald-500:not(:disabled):hover,
.pws-an:not(.pw) button.bg-emerald-600:not(:disabled):hover,
.pws-an:not(.pw) button.bg-orange-500:not(:disabled):hover,
.pws-an:not(.pw) input[type="submit"].bg-red-500:not(:disabled):hover,
.pws-an:not(.pw) input[type="submit"].bg-amber-500:not(:disabled):hover,
.pws-an:not(.pw) input[type="submit"].bg-emerald-500:not(:disabled):hover,
.pws-an:not(.pw) input[type="submit"].bg-emerald-600:not(:disabled):hover,
.pws-an:not(.pw) input[type="submit"].bg-orange-500:not(:disabled):hover,
.pws-an:not(.pw) label.bg-red-500:not(:disabled):hover,
.pws-an:not(.pw) label.bg-amber-500:not(:disabled):hover,
.pws-an:not(.pw) label.bg-emerald-500:not(:disabled):hover,
.pws-an:not(.pw) label.bg-emerald-600:not(:disabled):hover,
.pws-an:not(.pw) label.bg-orange-500:not(:disabled):hover {
  background-color: var(--pw-primary-hover); color: var(--pw-on-primary); box-shadow: none }
.pws-an:not(.pw) .btn-primary svg,
.pws-an:not(.pw) .btn-primary span,
.pws-an:not(.pw) a.bg-red-500 svg,
.pws-an:not(.pw) a.bg-red-500 span,
.pws-an:not(.pw) a.bg-amber-500 svg,
.pws-an:not(.pw) a.bg-amber-500 span,
.pws-an:not(.pw) a.bg-emerald-500 svg,
.pws-an:not(.pw) a.bg-emerald-500 span,
.pws-an:not(.pw) a.bg-emerald-600 svg,
.pws-an:not(.pw) a.bg-emerald-600 span,
.pws-an:not(.pw) a.bg-orange-500 svg,
.pws-an:not(.pw) a.bg-orange-500 span,
.pws-an:not(.pw) button.bg-red-500 svg,
.pws-an:not(.pw) button.bg-red-500 span,
.pws-an:not(.pw) button.bg-amber-500 svg,
.pws-an:not(.pw) button.bg-amber-500 span,
.pws-an:not(.pw) button.bg-emerald-500 svg,
.pws-an:not(.pw) button.bg-emerald-500 span,
.pws-an:not(.pw) button.bg-emerald-600 svg,
.pws-an:not(.pw) button.bg-emerald-600 span,
.pws-an:not(.pw) button.bg-orange-500 svg,
.pws-an:not(.pw) button.bg-orange-500 span,
.pws-an:not(.pw) input[type="submit"].bg-red-500 svg,
.pws-an:not(.pw) input[type="submit"].bg-red-500 span,
.pws-an:not(.pw) input[type="submit"].bg-amber-500 svg,
.pws-an:not(.pw) input[type="submit"].bg-amber-500 span,
.pws-an:not(.pw) input[type="submit"].bg-emerald-500 svg,
.pws-an:not(.pw) input[type="submit"].bg-emerald-500 span,
.pws-an:not(.pw) input[type="submit"].bg-emerald-600 svg,
.pws-an:not(.pw) input[type="submit"].bg-emerald-600 span,
.pws-an:not(.pw) input[type="submit"].bg-orange-500 svg,
.pws-an:not(.pw) input[type="submit"].bg-orange-500 span,
.pws-an:not(.pw) label.bg-red-500 svg,
.pws-an:not(.pw) label.bg-red-500 span,
.pws-an:not(.pw) label.bg-amber-500 svg,
.pws-an:not(.pw) label.bg-amber-500 span,
.pws-an:not(.pw) label.bg-emerald-500 svg,
.pws-an:not(.pw) label.bg-emerald-500 span,
.pws-an:not(.pw) label.bg-emerald-600 svg,
.pws-an:not(.pw) label.bg-emerald-600 span,
.pws-an:not(.pw) label.bg-orange-500 svg,
.pws-an:not(.pw) label.bg-orange-500 span { color: inherit }

/* Secondary: a control fill with an ink label, no outline. */
.pws-an:not(.pw) .btn-secondary { background-color: var(--pw-control); border-color: transparent; color: var(--pw-ink); box-shadow: none }
.pws-an:not(.pw) .btn-secondary:hover { background-color: #303036; border-color: transparent }
.pws-an .btn-ghost:hover { background-color: rgba(255,255,255,.06) }

/* The header's exits (Drive, Present, Share, Export, ⋯) are ghosts beside
   the one primary (Edit), as v3's are. */
.pws-an:not(.pw) [data-track-header-actions] > a:not(.btn-primary),
.pws-an:not(.pw) [data-track-header-actions] > button:not(.btn-primary),
.pws-an:not(.pw) [data-track-header-actions] > div > .btn-secondary,
.pws-an:not(.pw) [data-track-header-actions] > div > div > .btn-secondary {
  background-color: transparent; border: 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); color: var(--color-slate-200) }
.pws-an:not(.pw) [data-track-header-actions] > a:not(.btn-primary):hover,
.pws-an:not(.pw) [data-track-header-actions] > button:not(.btn-primary):hover,
.pws-an:not(.pw) [data-track-header-actions] > div > .btn-secondary:hover,
.pws-an:not(.pw) [data-track-header-actions] > div > div > .btn-secondary:hover { background-color: var(--pw-raised); color: var(--pw-ink) }

/* A label inside a button is never dimmer than slate-400 (≥ 7:1). The
   templates' own hover colours still apply (these stand down on :hover). */
.pws-an button:not(:hover).text-slate-500,
.pws-an button:not(:hover) .text-slate-500,
.pws-an button:not(:hover).text-slate-600,
.pws-an button:not(:hover) .text-slate-600,
.pws-an [role="button"]:not(:hover).text-slate-500,
.pws-an [role="button"]:not(:hover) .text-slate-500,
.pws-an [role="button"]:not(:hover).text-slate-600,
.pws-an [role="button"]:not(:hover) .text-slate-600 { color: var(--color-slate-400) }

/* The flythrough transport (flythroughs/_transport, `.pws-ft`): selected
   camera / speed is a raised block with an ink label (the JS toggles the
   emerald classes; they are re-read here), the lap bar is bone. Works on
   any page that links this sheet — the analysis pages, /billing, /s/. */
.pws-ft [data-camera-mode].bg-emerald-500\/20, .pws-ft [data-speed].bg-emerald-500\/20 { background-color: #252529; color: #f4f4f2 }
.pws-ft [data-camera-mode]:not(.bg-emerald-500\/20), .pws-ft [data-speed]:not(.bg-emerald-500\/20) { color: #bdbdc2 }
.pws-ft [data-camera-mode]:hover, .pws-ft [data-speed]:hover { color: #f4f4f2 }
.pws-ft [data-track-flythrough-target="progressFill"] { background-color: #f4f4f2 }
.pws-ft [data-track-flythrough-target="progressBar"] { background-color: #252529 }
.pws-ft [data-track-flythrough-target="playBtn"]:hover { color: #bdbdc2 }

/* Phone: every button a thumb can reach is ≥ 44 px. */
@media (max-width: 760px) {
  .pws-an:not(.pw) button:not([class~="h-6"]), .pws-an:not(.pw) .btn-primary, .pws-an:not(.pw) .btn-secondary, .pws-an:not(.pw) input[type="submit"], .pws-an:not(.pw) [role="button"] { min-height: 44px }
  .pws-an:not(.pw) nav a[href^="#"] { min-height: 44px; display: inline-flex; align-items: center }
  .pws-ft button { min-height: 44px; min-width: 44px }
}

/* ── The launch (WhatsNew): /new, the nav's "New", the what's-new modal ──
   Everything below renders only while SiteSetting "launch_whats_new"
   reaches the reader; off, none of these classes is in any page. */
.pws .pwn-new { position: relative; gap: 7px }
.pws .pwn-new-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--pw-primary); box-shadow: 0 0 0 3px rgba(255,122,26,.18); flex-shrink: 0 }

.pws .pws-wn-kicker { font: 500 12px/1.3 var(--pw-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--pw-primary); margin: 0 0 12px }
.pws .pws-wn-hero { padding: 24px 0 8px; max-width: 880px }
.pws .pws-wn-hero .pws-h1 { font-size: 64px; line-height: .98 }
.pws .pws-wn-hero .pws-lede { font-size: 18px; margin-top: 16px }
.pws .pws-wn-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px }
.pws .pws-wn-jump a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: var(--pw-r-pill); box-shadow: inset 0 0 0 1px var(--pw-hair);
  color: var(--pw-ink2); text-decoration: none; font-size: 14px }
.pws .pws-wn-jump a:hover { color: var(--pw-ink); background: var(--pw-raised) }
.pws .pws-wn-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 48px; align-items: center; margin-top: 72px; scroll-margin-top: calc(var(--pw-nav) + 20px) }
.pws .pws-wn-section.is-flip { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) }
.pws .pws-wn-section.is-flip > .pws-wn-media { order: -1 }
.pws .pws-wn-section h2 { font: 600 44px/1 var(--pw-display); color: var(--pw-ink); margin: 0; letter-spacing: .005em }
.pws .pws-wn-section p { color: var(--pw-ink2); margin: 14px 0 0; font-size: 16px; max-width: 560px }
.pws .pws-wn-num { font: 500 12px/1.3 var(--pw-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--pw-ink3); margin: 0 0 10px; display: flex; align-items: center; gap: 10px }
.pws .pws-wn-soon { display: inline-flex; align-items: center; min-height: 22px; padding: 0 8px; border-radius: 6px; background: var(--pw-mod-bg); color: var(--pw-mod); letter-spacing: .04em }
.pws .pws-wn-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 24px }
.pws .pws-wn-cta .pws-wn-alt { display: inline-flex; align-items: center; min-height: 44px; color: var(--pw-ink2); font-size: 14px; text-decoration: underline; text-decoration-color: var(--pw-ink4); text-underline-offset: 3px; overflow-wrap: anywhere }
.pws .pws-wn-cta .pws-wn-alt:hover { color: var(--pw-ink) }
.pws .pws-wn-note { font-size: 13px; color: var(--pw-ink3) }
.pws .pws-wn-media { position: relative; background: var(--pw-surface); border-radius: var(--pw-r-surface); overflow: hidden; aspect-ratio: 16 / 9; min-width: 0 }
.pws .pws-wn-media img, .pws .pws-wn-media video { display: block; width: 100%; height: 100%; object-fit: cover }
.pws .pws-wn-media.is-empty { display: grid; place-items: center; color: var(--pw-ink3); font-size: 14px }
.pws .pws-wn-drive { margin-top: 88px; padding: 28px; border-radius: var(--pw-r-surface); background: var(--pw-surface); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; align-items: center }
.pws .pws-wn-drive h2 { font: 600 32px/1.02 var(--pw-display); margin: 0; color: var(--pw-ink) }
.pws .pws-wn-drive ul { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; color: var(--pw-ink2); font-size: 15px }
.pws .pws-wn-drive li { display: flex; gap: 10px }
.pws .pws-wn-drive li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--pw-primary); margin-top: 9px; flex-shrink: 0 }
.pws .pws-wn-drive .pws-wn-media { aspect-ratio: 16 / 10 }
.pws .pws-wn-teaser { margin-top: 28px; color: var(--pw-ink3); font-size: 14px }
.pws .pws-wn-teaser a { color: var(--pw-ink2); text-decoration: underline; text-decoration-color: var(--pw-ink4); text-underline-offset: 3px; display: inline-flex; align-items: center; min-height: 44px }
.pws .pws-wn-close { margin-top: 80px; padding: 40px; border-radius: var(--pw-r-surface); box-shadow: inset 0 0 0 1px var(--pw-hair); text-align: center }
.pws .pws-wn-close h2 { font: 600 40px/1 var(--pw-display); margin: 0; color: var(--pw-ink) }
.pws .pws-wn-close p { color: var(--pw-ink2); margin: 12px auto 22px; max-width: 520px }
.pws .pws-wn-preview { margin: 0 0 16px; padding: 10px 14px; border-radius: 10px; background: var(--pw-mod-bg); color: var(--pw-mod); font-size: 13px }

/* the what's-new modal (My designs; the editor keeps its own chrome) */
.pws.pws-whats-new { padding: 16px }
.pws .pws-wn-modal-still { display: block; width: calc(100% + 52px); max-width: none; margin: -28px -26px 18px; aspect-ratio: 16 / 9; object-fit: cover; background: var(--pw-raised) }
.pws .pws-wn-bullets { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 10px }
.pws .pws-wn-bullets li { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 10px; font-size: 14px; color: var(--pw-ink2) }
.pws .pws-wn-bullets b { color: var(--pw-ink); font-weight: 600 }

@media (max-width: 900px) {
  .pws .pws-wn-section, .pws .pws-wn-section.is-flip, .pws .pws-wn-drive { grid-template-columns: 1fr; gap: 20px }
  .pws .pws-wn-section.is-flip > .pws-wn-media { order: 0 }
}
@media (max-width: 760px) {
  .pws .pws-wn-hero .pws-h1 { font-size: 44px }
  .pws .pws-wn-section { margin-top: 52px }
  .pws .pws-wn-section h2 { font-size: 34px }
  .pws .pws-wn-cta .pws-btn { width: 100% }
  .pws .pws-wn-jump a { min-height: 44px }
  .pws .pws-wn-drive { padding: 20px 18px; margin-top: 60px }
  .pws .pws-wn-close { padding: 28px 18px }
  .pws .pws-wn-modal-still { width: calc(100% + 36px); margin: -24px -18px 16px }
  .pws .pws-wn-bullets li { grid-template-columns: 1fr; gap: 2px }
}
@media (pointer: coarse) { .pws .pws-wn-jump a, .pws .pwn-new { min-height: 44px } }
/* ── end the launch ── */

/* ── Landers & share pages rebrand ──────────────────────────────────────
   The shared track page body (/s/), the benchmark, API docs and the phone
   draw pages (/draw, /city-draw, a City Draw result). Their templates, and
   the tracks/_* partials /s/ renders (score gauges, the vehicle select, the
   flythrough transport), are Tailwind-built, so `.pws-lx` is a SKIN over
   Tailwind's tokens — the admin_garage.css trick: v4 utilities read
   `var(--color-slate-900)` / `var(--font-display)`, so re-pointing the
   properties on the wrapper retints every descendant, `/opacity` variants
   too. The slate ladder becomes the Pit wall neutrals, the fonts the Pit
   wall families; emerald/amber/red/blue stay data colours (emerald onto
   --pw-safe). The components below it are what a skin can't say.
   The landers (/sim-racing, /tiktok) carry the same skin inline
   (pages/_lander_styles) because /tiktok loads no Pit wall sheet; the embed
   carries its own inline block (layouts/embed) for the same reason.

   NEVER set `display` here on an element a controller toggles with the
   `hidden` utility (the draw pages' done/undo/actions, the mode picker):
   these rules are unlayered and would beat `hidden`. Those elements keep
   their Tailwind display classes and take colour-only rules. */
.pws.pws-lx {
  --color-slate-50: #f4f4f2; --color-slate-100: #f4f4f2; --color-slate-200: #e4e4e2; --color-slate-300: #d6d6da; --color-slate-400: #a5a5ab;
  --color-slate-500: #8c8c95; --color-slate-600: #6e6e77; --color-slate-700: #303036; --color-slate-800: #1b1b1e; --color-slate-900: #131315; --color-slate-950: #0b0b0c;
  --color-emerald-300: #6ee7b7; --color-emerald-400: #34d399; --color-emerald-500: #34d399;
  --color-surface-primary: #0b0b0c; --color-surface-card: #131315; --color-surface-elevated: #1b1b1e;
  --font-display: var(--pw-display); --font-body: var(--pw-text); --font-sans: var(--pw-text); --font-mono: var(--pw-mono);
}
/* Barlow ships 500/600 only. */
.pws-lx .font-display { font-weight: 600; letter-spacing: .005em }
/* The legacy card (`bg-slate-900/80 border border-white/[0.06]`) reads as a
   Pit wall surface: solid, no outline. */
.pws-lx .bg-slate-900\/80 { background-color: var(--pw-surface) }
.pws-lx .bg-slate-900\/80.border { border-color: transparent }
.pws-lx .text-white { color: var(--pw-ink) }
/* The one orange fill, colour only (safe on hidden-toggled elements): a
   dark AAA label, 7.5:1 at rest and 9.0:1 on the lighter hover. A legacy
   .btn-primary inside the skin is the same thing. */
.pws-lx .pws-lx-fill, .pws-lx .btn-primary { background: var(--pw-primary); color: var(--pw-on-primary); box-shadow: none }
.pws-lx .pws-lx-fill:not(:disabled):hover, .pws-lx .btn-primary:not(:disabled):hover { background: var(--pw-primary-hover); color: var(--pw-on-primary); box-shadow: none }
.pws-lx .btn-secondary { background: transparent; border-color: rgba(255,255,255,.14); color: var(--pw-ink) }
.pws-lx .btn-secondary:hover { background: var(--pw-raised) }

/* Section titles and small labels on /s/ and the benchmark. */
.pws-lx-title { font: 600 22px/1.1 var(--pw-display); color: var(--pw-ink) }
.pws-lx-sub { font-size: 13px; color: var(--pw-ink3); margin-top: 4px }
.pws-lx-label { display: block; font-size: 12px; color: var(--pw-ink3); margin-bottom: 6px }
.pws-lx-rule { display: flex; align-items: center; gap: 16px; margin: 8px 0 16px }
.pws-lx-rule h2 { font: 600 26px/1 var(--pw-display); color: var(--pw-ink); margin: 0; flex-shrink: 0 }
.pws-lx-rule::after { content: ""; order: 1; flex: 1; height: 1px; background: var(--pw-hair) }
.pws-lx-rule > :not(h2) { order: 2 }
.pws-lx-stat { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--pw-ink3) }
.pws-lx-stat b { font: 500 14px var(--pw-mono); color: var(--pw-ink) }
.pws-lx-grade { font: 600 34px/1 var(--pw-display); color: var(--pw-ink) }
.pws-lx-copy { display: flex; gap: 8px }
.pws-lx-copy .pws-input { flex: 1; min-width: 0; font: 400 13px var(--pw-mono); color: var(--pw-ink2) }
.pws-lx-share { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 14px; border-radius: var(--pw-r-btn); border: 0;
  background: var(--pw-raised); color: var(--pw-ink); font: 500 14px var(--pw-text); text-decoration: none; text-align: left; width: 100% }
.pws-lx-share:hover { background: var(--pw-control) }
.pws-lx-share svg { width: 16px; height: 16px; flex: none; color: var(--pw-ink2) }
.pws-lx-grow { flex: 1; min-width: 0 }
.pws-lx-bench { display: flex; align-items: center; gap: 14px; min-height: 52px; padding: 10px 0; border-top: 1px solid var(--pw-hair); color: var(--pw-ink); text-decoration: none }
.pws-lx-bench:first-child { border-top: 0 }
.pws-lx-bench .pws-lx-grow { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500 }
.pws-lx-bench:hover .pws-lx-grow { text-decoration: underline; text-decoration-color: var(--pw-ink4); text-underline-offset: 3px }
.pws-lx-table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums }
.pws-lx-table th { text-align: left; font-weight: 500; font-size: 12px; color: var(--pw-ink3); padding: 8px 16px 8px 0; border-bottom: 1px solid rgba(255,255,255,.14) }
.pws-lx-table td { padding: 11px 16px 11px 0; border-bottom: 1px solid var(--pw-hair); color: var(--pw-ink) }
.pws-lx-table td:first-child { color: var(--pw-ink2) }
.pws-lx-table tr:last-child td { border-bottom: 0 }
.pws-lx-table th:last-child, .pws-lx-table td:last-child { text-align: right; padding-right: 0 }

/* API docs: a reading column with a sticky index. Code panels scroll inside
   themselves, never the page. */
.pws-lx-docs pre { font-family: var(--pw-mono); font-size: 13px; line-height: 1.6; overflow-x: auto; margin: 0 }
.pws-lx-docs .pws-lx-code { background: var(--pw-surface); border-radius: var(--pw-r-raised); overflow: hidden; border: 0 }
.pws-lx-docs .pws-lx-code > div:first-child { border-color: var(--pw-hair) }
.pws-lx-docs .pws-lx-index a { display: flex; align-items: center; min-height: 32px }
.pws-lx-docs table { display: block; max-width: 100%; overflow-x: auto }
.pws-lx-verb { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 6px; background: var(--pw-safe-bg); color: var(--pw-safe); font: 600 12px var(--pw-mono) }

/* The phone draw pages: full-screen tools whose chrome is the top bar, the
   mode cards, the floating pills and the bottom sheet. Canvas and map are
   untouched. */
.pws-lx-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 6px 8px; background: var(--pw-base); border-bottom: 1px solid var(--pw-hair) }
.pws-lx-back { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 10px; color: var(--pw-ink2) }
.pws-lx-back:hover { color: var(--pw-ink); background: var(--pw-raised) }
.pws-lx-back svg { width: 20px; height: 20px }
.pws-lx-bar-title { font: 600 20px/1 var(--pw-display); color: var(--pw-ink) }
.pws-lx-kicker { font: 600 13px/1 var(--pw-display); letter-spacing: .08em; text-transform: uppercase; color: var(--pw-ink3) }
.pws-lx-choice { width: 100%; padding: 16px; border: 0; border-radius: var(--pw-r-surface); background: var(--pw-surface); color: var(--pw-ink); text-align: left;
  transition: background var(--pw-t-fast) var(--pw-ease) }
.pws-lx-choice:hover { background: var(--pw-raised) }
.pws-lx-glyph { width: 44px; height: 44px; border-radius: 10px; background: var(--pw-raised); color: var(--pw-ink); flex-shrink: 0 }
.pws-lx-float { background: rgba(19,19,21,.94); box-shadow: 0 0 0 1px var(--pw-hair); color: var(--pw-ink2) }
.pws-lx-float:hover { color: var(--pw-ink) }
/* The Move / Draw toggle: the controllers swap bg-blue-500 / bg-emerald-500
   / bg-rose-500 + text-white onto the active half. Inside the skin the active
   half is the bone block, whatever colour the controller named. */
.pws-lx-seg button { min-height: 40px; min-width: 88px }
.pws-lx-seg .bg-blue-500, .pws-lx-seg .bg-emerald-500, .pws-lx-seg .bg-rose-500 { background: var(--pw-ink); color: var(--pw-base) }
.pws-lx-sheet { padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); background: var(--pw-surface); border-top: 1px solid var(--pw-hair) }
.pws-lx-cityhero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to top, #0b0b0c 0%, rgba(11,11,12,.4) 45%, transparent 100%) }

@media (max-width: 760px) {
  .pws-lx-rule h2 { font-size: 22px }
  .pws-lx-copy { flex-direction: column }
  .pws-lx-table { font-size: 13px }
}

/* ── Site-wide pieces rebrand ── */
/* The pieces every layout shares: the sign-up gates (shared/_auth_gate_modal,
   _draw_auth_gate_modal), the Lifetime modal (shared/_upgrade_modal), the
   outage notice, the power-user feedback card, the email opt-in, the flash,
   the shared closing CTA, the marketing footer, the slot card
   (shared/_ad_spot), the dashboard's map-mode modal and /users/edit.

   Each piece's own root carries `.pws`, so it needs no Pit wall page around
   it — the gates and the Lifetime modal render inside the editor, whose
   designer layout links these sheets only when one of them asks
   (PitWallSiteHelper#pit_wall_sheets_for_partial).

   The modal roots keep their Tailwind `hidden fixed inset-0 z-50 flex …`
   classes: the Stimulus controllers toggle `hidden`, so nothing here sets
   `display` on a root. Primary fills are the signal with the dark label
   (AAA, primary_contrast_test.rb); every target is ≥ 44 px. */

/* the modal shell */
.pws.pws-modal { background: rgba(5,5,6,.76); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); padding: 16px }
.pws .pws-modal-card { position: relative; width: 100%; max-width: 440px; max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain;
  background: var(--pw-surface); border-radius: var(--pw-r-surface); box-shadow: inset 0 0 0 1px var(--pw-hair), 0 24px 64px rgba(0,0,0,.55);
  padding: 28px 26px 18px; text-align: left }
.pws .pws-modal-close { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: var(--pw-r-btn); background: transparent; color: var(--pw-ink3); padding: 0 }
.pws .pws-modal-close:hover { color: var(--pw-ink); background: var(--pw-raised) }
.pws .pws-modal-close svg { width: 20px; height: 20px }
.pws .pws-modal-mark { display: block; height: 30px; width: auto; color: var(--pw-ink); margin: 0 0 16px }
.pws .pws-modal-kicker { font: 500 12px/1.3 var(--pw-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--pw-primary); margin: 0 0 8px }
.pws .pws-modal-title { font: 600 30px/1.02 var(--pw-display); color: var(--pw-ink); margin: 0 0 8px; padding-right: 32px; letter-spacing: .005em }
.pws .pws-modal-text { font-size: 14px; color: var(--pw-ink2); margin: 0 0 20px }
.pws .pws-modal-fine { font-size: 12px; color: var(--pw-ink3); margin: 8px 0 0; text-align: center }
.pws .pws-modal-legal { font-size: 12px; color: var(--pw-ink3); margin: 0; line-height: 1.5 }
.pws .pws-modal-alt { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0 4px; margin-top: 10px; font-size: 14px; color: var(--pw-ink2) }
.pws .pws-modal-card .pws-stack > * + * { margin-top: 14px }
.pws .pws-modal-dismiss { display: flex; width: 100%; min-height: 44px; align-items: center; justify-content: center; margin-top: 4px;
  border: 0; background: transparent; color: var(--pw-ink3); font: 400 13px var(--pw-text) }
.pws .pws-modal-dismiss:hover { color: var(--pw-ink) }
.pws .pws-textbtn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; border: 0; background: transparent;
  font: 500 14px var(--pw-text); color: var(--pw-ink); text-decoration: underline; text-decoration-color: var(--pw-ink4); text-underline-offset: 3px }
.pws .pws-textbtn:hover { text-decoration-color: var(--pw-ink) }
.pws .pws-modal-legal a { color: var(--pw-ink2); text-decoration: underline; text-decoration-color: var(--pw-ink4); text-underline-offset: 3px }
.pws .pws-modal-legal a:hover { color: var(--pw-ink) }
.pws form.button_to.pws-block-form { display: block }

/* the Lifetime offer inside the modal */
.pws .pws-offer-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 0 }
.pws .pws-offer-price .is-now { font: 600 52px/1 var(--pw-display); color: var(--pw-ink); letter-spacing: -.005em }
.pws .pws-offer-price .is-was { font: 500 24px/1 var(--pw-display); color: var(--pw-ink3); text-decoration: line-through }
.pws .pws-offer-price .is-unit { font-size: 14px; color: var(--pw-ink2) }
.pws .pws-offer-clock { font-size: 13px; color: var(--pw-mod); margin: 8px 0 0 }
.pws .pws-offer-clock .pws-mono { font-weight: 600 }
.pws .pws-ticks { list-style: none; margin: 20px 0 22px; padding: 0; display: grid; gap: 10px }
.pws .pws-ticks li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--pw-ink2) }
.pws .pws-ticks svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; color: var(--pw-safe) }

/* the notice modals (outage, map mode) */
.pws .pws-modal-icon { width: 44px; height: 44px; border-radius: var(--pw-r-raised); display: flex; align-items: center; justify-content: center; margin: 0 0 16px; background: var(--pw-raised); color: var(--pw-ink) }
.pws .pws-modal-icon.is-mod { background: var(--pw-mod-bg); color: var(--pw-mod) }
.pws .pws-modal-icon.is-ot { background: var(--pw-ot-bg); color: var(--pw-ot) }
.pws .pws-modal-icon svg { width: 22px; height: 22px }
.pws.pws-notice { padding: 16px }
.pws .pws-modal-backdrop { position: absolute; inset: 0; background: rgba(5,5,6,.76); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px) }
.pws .pws-choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 20px }
.pws .pws-choice-grid a { display: flex; align-items: center; justify-content: center; min-height: 44px; border-radius: var(--pw-r-btn); background: var(--pw-raised);
  color: var(--pw-ink2); font-size: 14px; text-decoration: none }
.pws .pws-choice-grid a:hover { background: var(--pw-control); color: var(--pw-ink) }
.pws .pws-modal-actions { display: flex; gap: 8px; flex-wrap: wrap }
.pws .pws-modal-actions > .is-primary { flex: 1 1 auto }

/* the email opt-in (sign-up page and both gates) */
.pws .pws-consent label { font-size: 14px; color: var(--pw-ink2); line-height: 1.45 }
.pws .pws-consent.is-compact label { font-size: 13px }

/* the power-user feedback card */
.pws.pws-fb { position: fixed; right: 24px; bottom: 24px; z-index: 40; width: min(384px, calc(100vw - 32px)) }
.pws .pws-fb-card { position: relative; background: var(--pw-surface); border-radius: var(--pw-r-surface); box-shadow: inset 0 0 0 1px var(--pw-hair), 0 18px 48px rgba(0,0,0,.5); padding: 20px 20px 16px }
.pws .pws-fb-card .pws-modal-close { top: 4px; right: 4px }
.pws .pws-fb-title { font: 600 20px/1.1 var(--pw-display); color: var(--pw-ink); margin: 0 0 6px; padding-right: 36px }
.pws .pws-fb-card textarea.pws-input { min-height: 72px; padding: 10px 14px; line-height: 1.45; resize: vertical; display: block }
.pws .pws-fb-cats { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px }
.pws .pws-fb-cats button { min-height: 36px; padding: 0 12px; border-radius: var(--pw-r-pill); border: 1px solid; font: 500 12px var(--pw-text); background: transparent }
.pws .pws-fb-stars { display: flex; align-items: center; margin: 0 0 12px }
.pws .pws-fb-stars button { width: 40px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 0; background: transparent; padding: 0 }
.pws .pws-fb-stars svg { width: 20px; height: 20px }
.pws .pws-fb-foot { display: flex; justify-content: flex-end; margin-top: 12px }
/* The controller swaps these Tailwind state classes on the pills and stars;
   in the card they read as the system's colours. */
.pws .pws-fb-cats button.text-slate-400 { color: var(--pw-ink2); border-color: var(--pw-hair) }
.pws .pws-fb-cats button.text-slate-400:hover { color: var(--pw-ink); border-color: var(--pw-ink4) }
.pws .pws-fb-cats button.text-violet-300 { color: var(--pw-ink); border-color: var(--pw-ink); background: var(--pw-raised) }
.pws .pws-fb-stars button.text-slate-600 { color: var(--pw-ink4) }
.pws .pws-fb-stars button.text-slate-600:hover, .pws .pws-fb-stars button.text-amber-400 { color: var(--pw-mod) }

/* the flash (application + marketing layouts) */
.pws.pws-flash-bar { max-width: var(--pw-max); margin: 16px auto 0; padding: 0 var(--pw-gutter) }
.pws .pws-flash-note { display: flex; align-items: center; gap: 10px }
.pws .pws-flash-note svg { width: 16px; height: 16px; flex-shrink: 0 }

/* the shared closing CTA (legacy marketing pages) */
.pws.pws-closing { padding: 72px var(--pw-gutter) }
.pws.pws-closing .pws-card { max-width: 760px; margin: 0 auto }
.pws.pws-closing .pws-h2 { font-size: 36px }

/* the slot card (shared/_ad_spot). No class says what it is — see the
   partial. The creative's tone picks the button fill; every one carries the
   dark label at ≥ 7:1 (primary_contrast_test.rb). */
.pws.pws-spot { margin-top: 24px; background: var(--pw-surface); border-radius: var(--pw-r-surface); box-shadow: inset 0 0 0 1px var(--pw-hair); padding: 16px 18px }
.pws .pws-spot-row { display: flex; align-items: flex-start; gap: 16px }
.pws .pws-spot-img { width: 80px; height: 80px; border-radius: var(--pw-r-raised); object-fit: cover; flex-shrink: 0 }
.pws .pws-spot-body { min-width: 0; flex: 1 }
.pws .pws-spot-disc { font: 500 11px/1.3 var(--pw-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--pw-ink3); margin: 0 0 4px }
.pws .pws-spot-title { font: 600 20px/1.1 var(--pw-display); color: var(--pw-ink); margin: 0 }
.pws .pws-spot-text { font-size: 14px; color: var(--pw-ink2); margin: 4px 0 0 }
.pws .pws-spot-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 12px }
.pws .pws-spot-go { --tone: var(--pw-primary); --tone-hover: var(--pw-primary-hover); background: var(--tone); color: var(--pw-on-primary); font-weight: 600 }
.pws .pws-spot-go:hover { background: var(--tone-hover) }
.pws.pws-spot[data-tone="emerald"] .pws-spot-go { --tone: #34d399; --tone-hover: #6ee7b7 }
.pws.pws-spot[data-tone="sky"] .pws-spot-go { --tone: #60a5fa; --tone-hover: #93c5fd }
.pws.pws-spot[data-tone="violet"] .pws-spot-go { --tone: #a78bfa; --tone-hover: #c4b5fd }
.pws.pws-spot[data-tone="slate"] .pws-spot-go { --tone: #f4f4f2; --tone-hover: #ffffff }
.pws .pws-spot-more { display: inline-flex; align-items: center; min-height: 44px; font-size: 12px; color: var(--pw-ink3); text-decoration: none }
.pws .pws-spot-more:hover { color: var(--pw-ink) }
/* The editor's rail slot is ~300 px: the card sits closer and the picture
   waits for a wider column. */
.pws.pws-spot[data-spot="editor_sidebar"] { margin-top: 8px; padding: 14px }
.pws.pws-spot[data-spot="editor_sidebar"] .pws-spot-img { display: none }

/* the marketing footer (shared/_footer) */
.pws.pws-foot { margin-top: 80px; border-top: 1px solid var(--pw-hair); background: var(--pw-base) }
.pws .pws-foot-in { max-width: var(--pw-max); margin: 0 auto; padding: 48px var(--pw-gutter) 28px }
.pws .pws-foot-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 32px }
.pws .pws-foot-brand .pwn-logo { font-size: 22px }
.pws .pws-foot-brand p { color: var(--pw-ink2); font-size: 14px; margin: 8px 0 0; max-width: 320px }
.pws .pws-foot-h { font: 500 12px/1.3 var(--pw-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--pw-ink3); margin: 0 0 8px }
.pws .pws-foot-list { list-style: none; margin: 0; padding: 0 }
.pws .pws-foot-list a { display: inline-flex; align-items: center; min-height: 36px; color: var(--pw-ink2); font-size: 14px; text-decoration: none }
.pws .pws-foot-list a:hover { color: var(--pw-ink) }
.pws .pws-foot-text { color: var(--pw-ink2); font-size: 14px; margin: 8px 0 0; overflow-wrap: anywhere }
.pws .pws-foot-base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; margin-top: 36px; padding-top: 18px;
  border-top: 1px solid var(--pw-hair); color: var(--pw-ink3); font-size: 13px }
.pws .pws-foot-legal { display: flex; gap: 16px }
.pws .pws-foot-legal a { display: inline-flex; align-items: center; min-height: 44px; color: var(--pw-ink3); text-decoration: none }
.pws .pws-foot-legal a:hover { color: var(--pw-ink) }

/* /users/edit (onboarding layout) */
.pws-auth .pws-account-links { display: grid; gap: 8px; margin-top: 20px }

@media (max-width: 760px) {
  .pws.pws-modal { padding: 12px }
  .pws .pws-modal-card { max-height: calc(100dvh - 24px); padding: 24px 18px 14px }
  .pws .pws-modal-title { font-size: 27px }
  .pws .pws-offer-price .is-now { font-size: 46px }
  .pws.pws-fb { right: 16px; bottom: 16px }
  .pws .pws-fb-cats button { min-height: 44px }
  .pws .pws-spot-img { display: none }
  .pws .pws-spot-go { width: 100% }
  .pws.pws-flash-bar { padding: 0 var(--pw-gutter-phone) }
  .pws.pws-closing { padding: 48px var(--pw-gutter-phone) }
  .pws.pws-closing .pws-h2 { font-size: 30px }
  .pws .pws-foot-in { padding: 36px var(--pw-gutter-phone) 20px }
  .pws .pws-foot-grid { grid-template-columns: 1fr 1fr; gap: 24px 16px }
  .pws .pws-foot-brand { grid-column: 1 / -1 }
  .pws .pws-foot-list a { min-height: 44px }
}
/* ── end Site-wide pieces rebrand ── */
