/* Product proof (#how). Prefix pp-. The window itself is .pui-window (product-ui.css), always dark. */
.pp { position: relative; background: var(--bg-alt); padding: calc(var(--section-pad) * .75) 0 calc(var(--section-pad) * .8); overflow-x: clip; }
.pp [hidden] { display: none !important; }
.pp .lights { z-index: 0; }
.pp .pp-in { position: relative; z-index: 1; }
.pp-light-key { --x: 60%; --y: 46%; --w: 1100px; --h: 520px; }
.pp-light-navy { --x: 80%; --y: 62%; --w: 1300px; --h: 900px; --o: 2; }

.pp-head { align-items: end; }
.pp-head h2 { font-size: clamp(32px, 4.4vw, 52px); }
.pp-head h2 .hd-light { display: block; }
.pp-head__side { padding-bottom: 6px; }
.pp-head__side .lead { max-width: 58ch; margin: 0; }

.pp-desk { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px; margin-top: 56px; align-items: start; }

/* step rail */
.pp-rail { list-style: none; margin: 48px 0 0; padding: 0; display: grid; gap: 8px; }
.pp-step { width: 100%; display: flex; gap: 12px; text-align: left; align-items: flex-start; padding: 12px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-card); border-radius: 12px; color: var(--heading); font: 600 14px/1.3 var(--font-body); cursor: pointer; transition: border-color .15s; }
.pp-step:hover { border-color: var(--border-strong); }
.pp-step:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.pp-step small { display: block; margin-top: 4px; font-weight: 400; font-size: 13px; line-height: 1.4; color: var(--muted); }
.pp-step__n { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--input-border); color: var(--muted); font-size: 12px; font-weight: 600; }
.pp-step__n .icon { width: 14px; height: 14px; stroke-width: 3; }
.pp-step.is-done .pp-step__n { border-color: var(--ok); color: var(--ok); }
.pp-step.is-next { border-color: var(--amber); animation: pp-ring 1.9s ease-out infinite; }
.pp-step.is-next .pp-step__n { border-color: var(--amber-text); color: var(--heading); }
.pp-step__short { display: none; }

.pp-ring { animation: pp-ring 1.9s ease-out infinite; }
.pp .pui-tab.pp-ring { border-radius: 4px; }
@keyframes pp-ring { 0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, .8); } 70%, 100% { box-shadow: 0 0 0 10px rgba(245, 158, 11, 0); } }

/* desk + stage */
.pp-wrap { position: relative; padding: 96px 0 56px; min-width: 0; }
.pp-stage { position: relative; width: 100%; height: 660px; }
.pp-window { position: absolute; left: 0; top: 0; width: 1000px; height: 660px; transform-origin: 0 0; grid-template-columns: 180px minmax(0, 1fr); box-shadow: var(--shadow-float), 0 0 0 1px rgba(140, 170, 220, .35), 0 0 70px rgba(65, 108, 179, .35); border-color: rgba(140, 170, 220, .4); }
.pp-window .pui-main { position: relative; min-height: 0; }
.pp-content { grid-auto-rows: max-content; grid-template-columns: minmax(0, 1fr); overflow: hidden; flex: 1; padding: 14px; gap: 10px; }

/* coach line + walkthrough controls */
.pp-bar { position: absolute; top: 0; left: 0; right: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; }
.pp-coach { margin: 0; display: inline-flex; align-items: center; gap: 0; min-width: 0; max-width: 100%; border: 1px solid var(--border-strong); background: var(--surface); border-radius: 10px; box-shadow: var(--shadow-card); font-size: 14px; line-height: 1.4; color: var(--heading); overflow: hidden; }
.pp-coach__n { flex: none; padding: 8px 12px; font-weight: 700; font-size: 13px; color: var(--link); background: var(--pill-bg); border-right: 1px solid var(--border-strong); white-space: nowrap; }
.pp-coach__t { padding: 8px 14px; font-weight: 500; }
.pp-head__note { margin: 14px 0 0; font-size: 15px; color: var(--muted); max-width: 58ch; }
/* try-it callout, attached to the first target */
.pp-try { position: relative; display: block; height: 36px; margin-top: 6px; }
.pp-try[hidden] { display: none; }
.pp-try__pill { position: absolute; left: 0; top: 0; padding: 4px 12px; border-radius: 999px; background: var(--amber); color: var(--on-accent); font: 700 12px/18px var(--font-body); white-space: nowrap; box-shadow: 0 6px 16px -6px rgba(245, 158, 11, .6); }
.pp-try__pill::after { content: ""; position: absolute; left: 22px; top: 100%; width: 1.5px; height: 12px; background: var(--amber); }
.pp-try__cur { position: absolute; left: 26px; top: 30px; z-index: 3; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .5)); }
.pp-try__rip { position: absolute; left: 24px; top: 46px; width: 18px; height: 18px; margin: -9px 0 0 -2px; border-radius: 50%; border: 2px solid var(--amber); opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  .pp-try:not(.is-go) .pp-try__cur { left: 118px; top: 2px; opacity: .0; }
  .pp-try.is-go .pp-try__cur { animation: pp-glide 1.5s cubic-bezier(.3, 0, .2, 1) .3s backwards; }
  .pp-try.is-go .pp-try__rip { animation: pp-tap .8s ease-out 1.9s 1 backwards; }
}
@keyframes pp-glide { from { left: 118px; top: 2px; } to { left: 26px; top: 30px; } }
@keyframes pp-tap { 0% { opacity: .9; transform: scale(.4); } 100% { opacity: 0; transform: scale(2.2); } }
.pp-ctl { display: flex; align-items: center; gap: 10px; flex: none; }
.pp-play { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px 0 12px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--heading); font: 600 14px/1 var(--font-body); cursor: pointer; box-shadow: var(--shadow-card); }
.pp-play .icon { width: 16px; height: 16px; }
.pp-play:hover, .pp-restart:hover { background: var(--pill-bg); }
.pp-restart { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--heading); font: 600 14px/1 var(--font-body); cursor: pointer; box-shadow: var(--shadow-card); }
.pp-play:focus-visible, .pp-restart:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* loose chips (the mess) */
.pp-chips { position: absolute; inset: 48px 0 0 0; z-index: 4; pointer-events: none; }
.pp-chips__t { display: none; }
.pp-chip { position: absolute; left: var(--x); top: var(--y); transform: rotate(var(--r)); display: inline-flex; align-items: center; gap: 8px; max-width: calc(100% - 12px); padding: 6px 10px 6px 9px; background: var(--surface); border: 1px solid var(--border-strong); border-left: 3px solid var(--doc-c); border-radius: 8px; color: var(--text); font: 500 13px/1.2 var(--font-body); white-space: nowrap; box-shadow: 0 8px 18px -6px rgba(8, 14, 30, .35); will-change: transform; --doc-c: var(--doc-pdf); }
.pp-chip--pdf { --doc-c: var(--doc-pdf); } .pp-chip--xlsx { --doc-c: var(--doc-xlsx); }
.pp-chip--docx { --doc-c: var(--doc-docx); } .pp-chip--mail { --doc-c: var(--doc-mail); }
.pp-chip.is-gone { visibility: hidden; }
.pp-chip .doc-ico { --doc-c: var(--doc-c); }

/* sample doc icons inside the window and chips, and file names with icon */
.pp-file { display: inline-flex; align-items: center; gap: 8px; vertical-align: middle; }
.pp .doc-ico--sm { width: 16px; height: 19px; flex: none; }
.pp .doc-ico--pdf { --doc-c: var(--doc-pdf); } .pp .doc-ico--xlsx { --doc-c: var(--doc-xlsx); }
.pp .doc-ico--docx { --doc-c: var(--doc-docx); } .pp .doc-ico--mail { --doc-c: var(--doc-mail); }

/* deal header */
.pp-deal { padding: 12px 14px; display: grid; gap: 8px; }
.pp-deal__top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pp-deal__name { font: 600 20px/1.1 var(--font-body); margin: 0; }
.pp-deal__facts { color: var(--pui-muted); font-size: 12px; }
.pp-deal__chips { display: flex; gap: 6px; flex-wrap: wrap; }
.pp-deal__chips .pui-chip { font-size: 11px; padding: 0 8px; }
.pp-tracker .pui-tracker__step { flex-direction: column; align-items: center; gap: 4px; padding: 0 3px; text-align: center; white-space: normal; overflow: visible; text-overflow: clip; font-size: 11px; line-height: 1.2; }
.pp-tracker { align-items: flex-start; overflow: visible; }
.pp-deal.is-compact { padding: 8px 14px; }
.pp-deal.is-compact .pp-deal__chips, .pp-deal.is-compact .pp-tracker { display: none; }
.pp-deal.is-compact .pp-deal__name { font-size: 16px; }
.pp-tabs { margin-top: -2px; }
.pp .pui-tab { padding: 8px 12px; cursor: pointer; }
.pp .pui-btn { cursor: pointer; }
.pp .pui-btn[disabled] { cursor: not-allowed; }

/* views */
.pp-view { min-width: 0; }
.pp-view:focus { outline: none; }
.pp-view:focus-visible { outline: 2px solid var(--tredit-blue-bright); outline-offset: 2px; }

/* 1a pipeline */
.pp-board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; align-items: start; }
.pp-lane { background: var(--pui-chrome); border: 1px solid var(--pui-border); border-radius: 12px; min-height: 330px; padding: 10px; display: grid; gap: 8px; align-content: start; }
.pp-lane__h { display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: 13px; color: var(--pui-heading); padding: 0 2px 2px; }
.pp-lane__n { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: rgba(163, 178, 207, .12); color: var(--pui-muted); font-size: 12px; text-align: center; }
.pp-lane__b { display: grid; gap: 8px; align-content: start; }
.pp-card { display: grid; gap: 3px; padding: 10px 12px; background: var(--pui-panel); border: 1px solid var(--pui-border); border-radius: 8px; font-size: 12px; color: var(--pui-muted); }
.pp-card strong { font-weight: 600; font-size: 13px; line-height: 1.3; color: var(--pui-heading); }
.pp-card__btn { justify-self: start; margin-top: 8px; }

/* 1b convert */
.pp-conv { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px 22px; align-items: start; }
.pp-conv__sub { grid-column: 1 / -1; }
.pp-hint { font-size: 12px; }
.pp-copied { display: grid; gap: 4px; }
.pp-dl { margin: 6px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 12.5px; }
.pp-dl dt { color: var(--pui-muted); } .pp-dl dd { margin: 0; color: var(--pui-heading); font-weight: 500; }
.pp-conv__foot { grid-column: 1 / -1; display: flex; gap: 10px; }

/* overview, data room, participants */
.pp-over { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pp-stat__l { color: var(--pui-muted); font-size: 12px; }
.pp-stat__v { font: 600 24px/1.3 var(--font-body); color: var(--pui-heading); }
.pp-split { display: grid; gap: 10px; align-items: start; }
.pp-split--dr { grid-template-columns: 200px minmax(0, 1fr); }
.pp-split--inv { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.pp-split--act { grid-template-columns: minmax(0, 1fr) 220px; }
.pp-tree { padding: 8px; }
.pp-tree .pui-folder { min-height: 32px; padding: 4px 8px; font-size: 13px; }
.pp-drop { display: grid; justify-items: center; gap: 8px; padding: 36px 14px; text-align: center; margin: 12px; border: 1px dashed var(--pui-border); border-radius: 8px; }
.pp-drop__i { width: 22px; height: 22px; color: var(--pui-muted); }
.pp-tablewrap { overflow-x: auto; }
.pp-tablewrap .pui-table td { padding: 7px 12px; }
.pp-inv { display: grid; gap: 10px; }
.pp-inv__who { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.pp-acc .pui-row { padding: 5px 0; justify-content: space-between; }
.pp-acc__n { display: inline-flex; align-items: center; gap: 6px; color: var(--pui-heading); font-weight: 500; }
.pp-acc .pui-toggle { cursor: pointer; }
.pp-inv__foot { display: flex; align-items: center; gap: 10px; }
.pp-inv__more { font-size: 12px; margin: 0; }
.pp-seen { display: grid; gap: 4px; align-content: start; font-size: 12px; }
.pp-seen__f { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.pp-seen__f .pui-muted { margin-left: auto; }
.pp-seen__d { display: flex; align-items: center; gap: 8px; padding-left: 26px; color: var(--pui-text); }

/* 4a term sheets */
.pp-ts { display: grid; gap: 12px; }
.pp-banner { margin: 0; padding: 8px 12px; border: 1px solid rgba(245, 158, 11, .45); border-radius: 8px; color: #FBBF24; font-size: 13px; font-weight: 500; }
.pp-tslist td { padding: 9px 12px; }
.pp-tslist tr:not([hidden]) { animation: pp-row .4s cubic-bezier(.2, 0, 0, 1); }
@keyframes pp-row { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.pp-ts__foot { display: flex; gap: 10px; flex-wrap: wrap; }

/* 4b comparison */
.pp-cmp__head { align-items: flex-start; gap: 12px; }
.pp-cmp__title { display: grid; gap: 2px; min-width: 0; }
.pp-cmp__sub { font-weight: 400; font-size: 12px; }
.pp-cmp__tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.pp-flagsw { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 500; color: var(--pui-text); }
.pp-flagsw .pui-toggle { cursor: pointer; }
.pp-menu-wrap { position: relative; }
.pp-menu { position: absolute; right: 0; top: calc(100% + 4px); z-index: 8; display: grid; min-width: 190px; padding: 4px; background: var(--pui-panel-head); border: 1px solid var(--pui-border); border-radius: 8px; box-shadow: 0 10px 24px rgba(5, 10, 25, .55); }
.pp-menu__i { display: flex; align-items: center; gap: 10px; min-height: 32px; padding: 0 10px; background: transparent; border: 0; border-radius: 4px; color: var(--pui-heading); font: 500 13px/1 var(--font-body); text-align: left; cursor: pointer; }
.pp-menu__i:hover { background: rgba(255, 255, 255, .06); }
.pp-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 8px 14px; font-size: 12px; color: var(--pui-muted); border-bottom: 1px solid var(--pui-border); }
.pp-lg { display: inline-flex; align-items: center; gap: 6px; }
.pp-lg::before { content: ""; width: 12px; height: 12px; border-radius: 3px; flex: none; }
.pp-lg--missing::before { border: 1px dashed var(--pui-muted); }
.pp-lg--differs::before { background: rgba(120, 176, 248, .22); border: 1px solid rgba(120, 176, 248, .5); }
.pp-lg--below::before { background: rgba(245, 158, 11, .2); border: 1px solid rgba(245, 158, 11, .6); }
.pp-legend.is-off .pp-lg { opacity: .45; }
.pp-legend__n { margin-left: auto; color: var(--pui-text); }
.pp-cmpwrap { overflow-x: auto; }
.pp-cmpwrap:focus-visible { outline: 2px solid var(--tredit-blue-bright); outline-offset: -2px; }
.pp-cmp { table-layout: fixed; }
.pp-cmp th, .pp-cmp td { padding: 5px 14px; height: 29px; vertical-align: middle; }
.pp-cmp thead th { height: 34px; white-space: normal; }
.pp-cmp thead th:first-child, .pp-cmp tbody th[scope="row"] { width: 19%; }
.pp-cmp tbody th[scope="row"] { text-align: left; font-weight: 500; font-size: 13px; color: var(--pui-heading); text-transform: none; letter-spacing: 0; border-bottom: 1px solid rgba(38, 52, 79, .6); background: var(--pui-panel); }
.pp-cmp .pp-ver { font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--pui-muted); margin-left: 4px; }
.pp-cmp .pp-sub th { padding: 6px 14px 3px; height: 24px; background: var(--pui-panel); color: var(--pui-muted); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; border-bottom: 1px solid var(--pui-border); }
.pp-cmp tbody tr:not(.pp-sub):hover > *, .pp-cmp tbody tr:not(.pp-sub):focus > * { background: var(--pui-panel-head); }
.pp-cmp tbody tr:focus { outline: 2px solid var(--tredit-blue-bright); outline-offset: -2px; }
.pp-cmp td { color: var(--pui-heading); }
.pp-cmp td .pp-val { margin-right: 8px; }
.pp-flag { display: inline-block; padding: 0 8px; border-radius: 999px; font-size: 11px; font-weight: 600; line-height: 18px; vertical-align: 1px; }
.pp-flag--missing { color: var(--pui-muted); background: rgba(163, 178, 207, .1); border: 1px solid rgba(163, 178, 207, .3); }
.pp-flag--below { color: #FBBF24; background: transparent; border: 1px solid rgba(245, 158, 11, .6); }
.pp-cmp td[data-flag="missing"] { outline: 1px dashed rgba(163, 178, 207, .5); outline-offset: -3px; }
.pp-cmp td[data-flag="missing"] .pp-val { color: var(--pui-muted); }
.pp-cmp td[data-flag="below"] { background: rgba(245, 158, 11, .1); }
.pp-cmp.is-flags-off .pp-flag { display: none; }
.pp-cmp.is-flags-off td[data-flag] { outline: 0; background: transparent; }
.pp-cmp.is-flags-off td[data-flag="missing"] .pp-val { color: var(--pui-heading); }
.pp-cmp.is-flags-off tbody tr:hover > td[data-flag], .pp-cmp.is-flags-off tbody tr:focus > td[data-flag] { background: var(--pui-panel-head); }

/* activity */
.pp-log { padding: 4px 14px; max-height: 318px; overflow-y: auto; }
.pp-log .pui-row { align-items: flex-start; font-size: 12.5px; padding: 6px 0; line-height: 1.35; }
.pp-log .icon, .pp-wait .icon { flex: none; margin-top: 2px; }
.pp-log__i--you { color: var(--violet-soft); }
.pp-log__i--lender { color: var(--emerald); }
.pp-log__r.is-new { animation: pp-new .9s ease-out; }
@keyframes pp-new { from { background: rgba(124, 58, 237, .28); transform: translateY(-6px); opacity: 0; } to { background: transparent; transform: none; opacity: 1; } }
.pp-wait .pui-row { align-items: flex-start; font-size: 13px; }
.pp-log .pp-file { vertical-align: top; }

/* toasts */
.pp-toasts { position: absolute; right: 64px; top: 6px; z-index: 6; display: grid; gap: 8px; justify-items: end; pointer-events: none; }
.pp-toast { animation: pp-toast .3s cubic-bezier(.2, 0, 0, 1); }
@keyframes pp-toast { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }

/* end card */
.pp-end { position: absolute; z-index: 7; left: 0; right: 0; margin: 0 auto; bottom: -34px; width: min(780px, calc(100% - 32px)); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 12px 8px 20px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 14px; box-shadow: var(--shadow-float); animation: pp-end-in .4s cubic-bezier(.2, 0, 0, 1); }
.pp-end__t { font: 600 16px/1.3 var(--font-display); color: var(--heading); margin: 0; letter-spacing: -.01em; }
.pp-end__btns { display: flex; gap: 10px; }
.pp-end .btn { height: 40px; white-space: nowrap; }
@keyframes pp-end-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

@media (max-width: 1100px) {
  .pp-bar { flex-wrap: wrap; }
  .pp-desk { grid-template-columns: 220px minmax(0, 1fr); gap: 20px; }
  .pp-end { flex-wrap: wrap; }
}

/* ---------- mobile (under 820px) ---------- */
@media (max-width: 819px) {
  .pp-light-key { --x: 50%; --w: 660px; --h: 312px; }
  .pp-light-navy { --x: 50%; --w: 540px; --h: 420px; }
  .pp-desk { grid-template-columns: minmax(0, 1fr); margin-top: 32px; gap: 16px; }
  /* rail: a five-step progress row, all steps visible (styled in the phone block at the end of this file) */
  .pp-step__full, .pp-step small { display: none; }
  .pp-wrap { padding: 0; }
  .pp-bar { position: static; flex-direction: column; align-items: stretch; gap: 10px; margin: 0 0 16px; }
  .pp-ctl { justify-content: space-between; }
  .pp-coach { display: flex; flex-direction: column; align-items: stretch; }
  .pp-coach__n { border-right: 0; border-bottom: 1px solid var(--border-strong); }
  .pp-play, .pp-restart { min-height: 44px; }
  /* loose files: one swipeable strip instead of eight stacked rows, so the app sits right under the instruction */
  .pp-chips { position: static; display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; margin: 0 calc(var(--gutter) * -1) 14px; padding: 2px var(--gutter) 4px; overflow-x: auto; scrollbar-width: none; pointer-events: auto; transition: none;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent); }
  .pp-chips::-webkit-scrollbar { display: none; }
  .pp-chips.is-collapsed { display: none !important; }
  .pp-chips__t { display: block; flex: none; font-size: 13px; font-weight: 600; color: var(--muted); }
  .pp-chip { position: static; flex: none; transform: none; font-size: 12px; box-shadow: none; max-width: none; white-space: nowrap; }
  .pp-stage { height: auto !important; }
  .pp-window { position: relative; width: 100%; height: auto; min-height: 520px; transform: none !important; grid-template-columns: minmax(0, 1fr); }
  .pp-window .pui-sidebar { display: none; }
  .pp-content { overflow: visible; }
  .pp-end { position: relative; bottom: auto; margin-top: 12px; width: 100%; flex-direction: column; align-items: stretch; padding: 14px; }
  .pp-end__btns { flex-wrap: wrap; } .pp-end__btns .btn { flex: 1 1 100%; }
  .pp-split--dr, .pp-split--inv, .pp-split--act, .pp-over, .pp-conv { grid-template-columns: minmax(0, 1fr); }
  .pp-board { grid-template-columns: minmax(0, 1fr); }
  .pp-lane[data-pp-lane="prospect"], .pp-lane[data-pp-lane="converted"] { display: none; }
  .pp-lane { min-height: 0; }
  .pp-toasts { left: 10px; right: 10px; top: 4px; justify-items: stretch; }
  .pp-toast { width: 100%; }
  .pp .pui-btn, .pp .pui-tab, .pp .pui-btn--sm { min-height: 44px; }
  .pp .pui-toggle { position: relative; }
  .pp .pui-toggle::before { content: ""; position: absolute; inset: -12px -6px; }
  .pp-menu__i { min-height: 44px; }
  .pp-cmp__head { flex-direction: column; }
  .pp-cmp__tools { justify-content: flex-start; }
  .pp-cmp { table-layout: fixed; width: 600px; }
  .pp-cmp thead th:first-child, .pp-cmp tbody th[scope="row"] { width: 120px; position: sticky; left: 0; z-index: 2; background: var(--pui-panel); }
  .pp-cmp thead th:nth-child(n+2), .pp-cmp td { width: 150px; }
  .pp-cmp .pp-sub th { position: sticky; left: 0; }
  .pp-cmp td .pp-flag { display: block; margin: 3px 0 0; width: max-content; }
  .pp-legend__n { margin-left: 0; flex: 0 0 100%; }
  .pp-tslist th:nth-child(3), .pp-tslist td:nth-child(3) { display: none; }
  .pp-tablewrap .pui-table th:nth-child(3), .pp-tablewrap .pui-table td:nth-child(3) { display: none; }
  .pp-tablewrap .pui-table th, .pp-tablewrap .pui-table td { padding: 8px 6px; font-size: 12px; }
  .pp-tracker { align-items: center; }
  .pp-tracker .pui-tracker__step:not(.is-current) { flex: 0 0 auto; font-size: 0; padding-right: 4px; }
  .pp-tracker .pui-tracker__step { flex-direction: row; text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  .pp-ring, .pp-step.is-next { animation: none; }
  .pp-ring { box-shadow: 0 0 0 3px var(--amber); }
  .pp-step.is-next { box-shadow: 0 0 0 2px var(--amber); }
  .pp-toast, .pp-log__r.is-new, .pp-tslist tr, .pp-end { animation: none; }
  .pp .pui-toggle, .pp .pui-toggle::after { transition: none; }
}

.pp-best { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; background: rgba(31, 169, 104, .18); color: var(--pui-heading); border: 1px solid rgba(31, 169, 104, .5); vertical-align: 1px; }

/* ---------- v3: larger walkthrough type (nothing under 13px), nominal px inside the 1000px window ---------- */
.pp .pui-window { font-size: 14.5px; }
.pp .pui-workspace { font-size: 13px; } .pp .pui-workspace strong { font-size: 13.5px; }
.pp .pui-nav-group { font-size: 13px; }
.pp .pui-nav-item { font-size: 14px; }
.pp .pui-breadcrumb { font-size: 14px; }
.pp .pui-avatar { font-size: 13px; }
.pp .pui-panel__head { font-size: 14.5px; }
.pp .pui-tab { font-size: 14.5px; }
.pp .pui-table { font-size: 14.5px; }
.pp .pui-table th { font-size: 13px; }
.pp .pui-badge, .pp .pui-chip { font-size: 13px; }
.pp .pui-btn { font-size: 14.5px; height: 36px; }
.pp .pui-btn--sm { font-size: 13.5px; height: 32px; }
.pp .pui-label { font-size: 13.5px; }
.pp .pui-input { font-size: 14.5px; }
.pp .pui-tracker__step { font-size: 13px; }
.pp .pui-folder__count { font-size: 13px; }
.pp .pui-toast { font-size: 14px; }
.pp-deal__name { font-size: 22px; }
.pp-deal__facts { font-size: 13.5px; }
.pp-deal__chips .pui-chip { font-size: 13px; }
.pp-tracker .pui-tracker__step { font-size: 13px; }
.pp-deal.is-compact .pp-deal__name { font-size: 17px; }
.pp-lane__h { font-size: 14.5px; }
.pp-lane__n { font-size: 13px; }
.pp-card { font-size: 13.5px; }
.pp-card strong { font-size: 14.5px; }
.pp-hint { font-size: 13px; }
.pp-dl { font-size: 14px; }
.pp-stat__l { font-size: 13.5px; }
.pp-stat__v { font-size: 26px; }
.pp-tree .pui-folder { font-size: 14.5px; }
.pp-inv__more { font-size: 13.5px; }
.pp-seen { font-size: 13.5px; }
.pp-banner { font-size: 14px; }
.pp-cmp__sub { font-size: 13px; }
.pp-flagsw { font-size: 13.5px; }
.pp-menu__i { font-size: 14px; }
.pp-legend { font-size: 13px; }
.pp-cmp tbody th[scope="row"] { font-size: 14px; }
.pp-cmp .pp-sub th { font-size: 12.5px; }
.pp-cmp th, .pp-cmp td { padding: 5px 12px; height: 31px; }
.pp-flag { font-size: 12.5px; }
.pp-best { font-size: 12.5px; }
.pp-log .pui-row { font-size: 14px; }
.pp-wait .pui-row { font-size: 14px; }
@media (min-width: 820px) {
  .pp-split--act { grid-template-columns: minmax(0, 1fr) 250px; }
  .pp-split--dr { grid-template-columns: 180px minmax(0, 1fr); }
  .pp-tablewrap .pui-table td, .pp-tablewrap .pui-table th { padding-left: 9px; padding-right: 9px; }
  }
.pp-log { max-height: 360px; }
.pp-lane { min-height: 350px; }
.pp-chip { font-size: 14px; }
.pp-coach { font-size: 15px; } .pp-coach__n { font-size: 14px; }
.pp-step small { font-size: 14px; }
.pp-try__pill { font-size: 13px; }
@media (max-width: 819px) {
  .pp-cmp { width: 620px; }
  .pp-cmp thead th:nth-child(n+2), .pp-cmp td { width: 160px; }
  .pp-chip { font-size: 13.5px; }
  .pp-tablewrap .pui-table th, .pp-tablewrap .pui-table td { font-size: 14px; }
  .pp .pui-window { font-size: 15px; }
  .pp-tracker .pui-tracker__step { font-size: 13px; }
}

/* ---------- v3: active tab hint, solid amber beam ---------- */
.pp .pui-tabs.pp-tabs { padding: 12px 8px 0; margin-top: -4px; }
.pp .pui-tab.pp-ring, .pp .pui-tab.pp-ring:hover { background: var(--amber); color: #0A0F1E; font-weight: 700; border-radius: 8px 8px 0 0; border-bottom-color: #FFD27A; animation: pp-beam 1.5s ease-in-out infinite; position: relative; z-index: 2; }
@keyframes pp-beam {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, .8), 0 0 12px 2px rgba(245, 158, 11, .55); }
  50% { box-shadow: 0 0 0 9px rgba(245, 158, 11, 0), 0 0 26px 7px rgba(245, 158, 11, .85); }
}

/* ---------- v3: "click here" arrow ---------- */
.pp-arrow { position: absolute; transition: none; will-change: left, top; z-index: 9; width: 32px; height: 40px; margin-left: -16px; pointer-events: none; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .55)) drop-shadow(0 0 8px rgba(245, 158, 11, .6)); }
.pp-arrow[hidden] { display: none !important; }
.pp-arrow svg { display: block; }
.pp-arrow.is-above svg { transform: rotate(180deg); }
@media (prefers-reduced-motion: no-preference) {
  .pp-arrow.is-below svg { animation: pp-bob-up .8s ease-in-out infinite alternate; }
  .pp-arrow.is-above svg { animation: pp-bob-down .8s ease-in-out infinite alternate; }
}
@keyframes pp-bob-up { from { transform: translateY(0); } to { transform: translateY(8px); } }
@keyframes pp-bob-down { from { transform: rotate(180deg) translateY(0); } to { transform: rotate(180deg) translateY(8px); } }
@media (prefers-reduced-motion: reduce) {
  .pp .pui-tab.pp-ring { animation: none; box-shadow: 0 0 0 3px rgba(245, 158, 11, .5), 0 0 16px 3px rgba(245, 158, 11, .6); }
}


.pp-try.is-off { visibility: hidden; }

/* room under the pipeline button for the arrow */
.pp-card__btn { margin-bottom: 30px; }
.pp-card:not([data-pp-card]) .pp-card__btn { margin-bottom: 0; }
@media (max-width: 819px) { .pp-card__btn { margin-bottom: 26px; } }

/* ---------- phones: readable walkthrough (stepper + coach card). Desktop never shows .pp-coach__step ---------- */
.pp-coach__step { display: none; }
@media (max-width: 819px) {
  /* stepper: five equal columns, numbered circles on a line, short name under each */
  .pp-rail { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; overflow: visible; }
  .pp-rail li { position: relative; display: flex; }
  .pp-rail li + li::before { content: ""; position: absolute; top: 21px; left: -50%; right: 50%; height: 2px; background: var(--border-strong); }
  .pp-rail li:has(.pp-step.is-done) + li::before { background: var(--ok); }
  .pp-step { position: relative; z-index: 1; flex-direction: column; align-items: center; gap: 6px; min-height: 44px; padding: 6px 2px 4px; background: transparent; border: 0; border-radius: 10px; box-shadow: none; text-align: center; white-space: normal; color: var(--muted); font: 600 12.5px/1.2 var(--font-body); animation: none; }
  .pp-step:hover { border-color: transparent; }
  .pp-step__n { width: 30px; height: 30px; background: var(--bg-alt); border-width: 2px; font-size: 13px; }
  .pp-step__t { display: block; }
  .pp-step__short { display: block; }
  .pp-step.is-done { color: var(--heading); }
  .pp-step.is-done .pp-step__n { background: var(--bg-alt); }
  .pp-step.is-next { color: var(--heading); border: 0; box-shadow: none; animation: none; }
  .pp-step.is-next .pp-step__n { background: var(--amber); border-color: var(--amber); color: #0A0F1E; animation: pp-ring 1.9s ease-out infinite; }

  /* coach card: step count, full step title and line, then the instruction */
  .pp-bar { margin-top: 6px; }
  .pp-coach { display: flex; flex-direction: column; align-items: stretch; }
  .pp-coach__n { padding: 14px 16px 0; background: transparent; border: 0; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
  .pp-coach__step { display: grid; gap: 4px; padding: 6px 16px 14px; }
  .pp-coach__step b { font: 600 18px/1.3 var(--font-display); color: var(--heading); }
  .pp-coach__step span { font-size: 14px; font-weight: 400; line-height: 1.45; color: var(--muted); }
  .pp-coach__t { display: flex; align-items: flex-start; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--border-strong); background: rgba(245, 158, 11, .1); box-shadow: inset 3px 0 0 var(--amber); font-size: 15px; font-weight: 600; line-height: 1.45; }
  .pp-coach__t::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 2px; background: var(--amber-text);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v15M5 12l7 7 7-7'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v15M5 12l7 7 7-7'/%3E%3C/svg%3E") center / contain no-repeat; }
}
@media (max-width: 819px) and (prefers-reduced-motion: reduce) {
  .pp-step.is-next { box-shadow: none; }
  .pp-step.is-next .pp-step__n { animation: none; box-shadow: 0 0 0 3px rgba(245, 158, 11, .45); }
}
