/* ============================================================
   Producer portal design system (25 Oct 2026)
   ------------------------------------------------------------
   Loaded after portal.css on every producer page. Everything is
   scoped to body.has-visiting (set by the shell on producer pages)
   or to .pp-* classes, so staff and admin pages are untouched.

   Principles: calm, confident, figures first. One accent (action
   green, darkened to pass WCAG AA), navy for structure, one chip
   style, one card style, 44px+ touch targets, 12px text floor.
   ============================================================ */

:root {
  /* Surfaces */
  --pp-canvas:       #F6F4EE;   /* page */
  --pp-surface:      #FFFFFF;   /* cards */
  --pp-surface-2:    #FAF9F5;   /* inset rows */
  --pp-line:         #E3E0D7;   /* card edges, dividers */
  --pp-line-strong:  #8C897F;   /* form controls: 3.4:1 on white (WCAG 1.4.11) */

  /* Text */
  --pp-ink:          #15162A;   /* headings, figures */
  --pp-ink-2:        #3D3F58;   /* body */
  --pp-ink-3:        #5C5E74;   /* secondary: 6.0:1 on white */

  /* Brand */
  --pp-navy:         #363857;
  --pp-navy-deep:    #23253D;

  /* Action (the one accent): white text 5.0:1 */
  --pp-action:       #15803D;
  --pp-action-hover: #116932;
  --pp-action-text:  #166534;   /* green used as text: 7.1:1 on white */

  /* Status (fg on bg all >= 6:1) */
  --pp-good-fg: #166534;  --pp-good-bg: #E8F5EC;  --pp-good-line: #B9DFC6;
  --pp-warn-fg: #7C4A03;  --pp-warn-bg: #FDF2DF;  --pp-warn-line: #EBCB93;
  --pp-bad-fg:  #991B1B;  --pp-bad-bg:  #FDECEC;  --pp-bad-line:  #F0B8B8;
  --pp-wait-fg: #363857;  --pp-wait-bg: #EEEFF6;  --pp-wait-line: #C9CBDD;

  --pp-radius:    12px;
  --pp-radius-sm: 8px;
  --pp-shadow:    0 1px 2px rgba(21,22,42,.05), 0 1px 1px rgba(21,22,42,.03);
  --pp-shadow-lg: 0 10px 30px rgba(21,22,42,.12);
  --pp-focus:     0 0 0 3px #FFFFFF, 0 0 0 5px #363857;
}

/* ---------- Base on producer pages ---------- */
body.has-visiting { background: var(--pp-canvas); color: var(--pp-ink-2); }
body.has-visiting :focus-visible { outline: none !important; box-shadow: var(--pp-focus) !important; border-radius: 6px; }
body.has-visiting .portal-rail :focus-visible { box-shadow: 0 0 0 3px #FFFFFF !important; }

/* Primary action green, darkened for contrast. */
body.has-visiting .btn-go,
body.has-visiting .btn-primary.is-go { background: var(--pp-action); border-color: var(--pp-action); color: #fff; }
body.has-visiting .btn-go:hover { background: var(--pp-action-hover); border-color: var(--pp-action-hover); }
body.has-visiting .btn { min-height: 44px; border-radius: var(--pp-radius-sm); font-weight: 700; }
body.has-visiting .btn-tight { min-height: 40px; }

/* Form controls: visible edges, comfortable targets, one radius. */
body.has-visiting input[type="text"], body.has-visiting input[type="email"], body.has-visiting input[type="tel"],
body.has-visiting input[type="number"], body.has-visiting input[type="url"], body.has-visiting input[type="search"],
body.has-visiting input[type="date"], body.has-visiting input[type="password"],
body.has-visiting select, body.has-visiting textarea {
  border: 1px solid var(--pp-line-strong); border-radius: var(--pp-radius-sm); min-height: 44px; background: #fff;
}
body.has-visiting textarea { min-height: 88px; }

/* Cards breathe on desktop, not on phones (was 48px everywhere). */
@media (max-width: 720px) {
  body.has-visiting .card { padding: var(--sp-4) !important; }
}

/* Secondary text never below 12px or below AA. */
body.has-visiting .hint, body.has-visiting .muted { color: var(--pp-ink-3); }

/* Wide tables scroll instead of being clipped. */
.pp-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---------- Shell chrome for producers ---------- */
/* Top bar: the show is the title; no ticking clock. */
body.has-visiting .portal-topbar { min-width: 0; }
body.has-visiting .portal-topbar .topbar-clock { display: none; }
.pp-switch { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1 1 auto; background: none; border: 0;
  padding: 6px 10px; margin: 0 4px; border-radius: var(--pp-radius-sm); cursor: pointer; text-align: left; font: inherit; color: var(--pp-ink); }
.pp-switch:hover { background: rgba(54,56,87,.06); }
.pp-switch-text { display: flex; flex-direction: column; min-width: 0; }
.pp-switch-name { font-weight: 900; font-size: 1rem; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp-switch-sub { font-size: .8125rem; color: var(--pp-ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp-switch-caret { flex: 0 0 auto; width: 18px; height: 18px; color: var(--pp-ink-3); }
.pp-switch-menu { position: fixed; z-index: 1200; min-width: 280px; max-width: calc(100vw - 24px); background: #fff;
  border: 1px solid var(--pp-line); border-radius: var(--pp-radius); box-shadow: var(--pp-shadow-lg); padding: 6px; }
.pp-switch-menu[hidden] { display: none; }
.pp-switch-label { font-size: .75rem; font-weight: 700; color: var(--pp-ink-3); padding: 8px 10px 4px; }
.pp-switch-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px; min-height: 44px;
  border-radius: var(--pp-radius-sm); color: var(--pp-ink); text-decoration: none; font-weight: 700; }
.pp-switch-item:hover, .pp-switch-item:focus-visible { background: var(--pp-surface-2); }
.pp-switch-item small { font-weight: 400; color: var(--pp-ink-3); }
.pp-switch-item.is-current { background: var(--pp-wait-bg); }
.pp-switch-all { border-top: 1px solid var(--pp-line); margin-top: 6px; padding-top: 6px; }
.pp-help-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--pp-line-strong); background: #fff; color: var(--pp-navy); font-weight: 700; text-decoration: none; white-space: nowrap; }
.pp-help-btn:hover { border-color: var(--pp-navy); }
@media (max-width: 480px) { .pp-help-btn .pp-help-label { display: none; } .pp-help-btn { padding: 0 11px; } }

/* Hide the old back pill: the switcher is the way between shows. */
body.has-visiting .topbar-back { display: none; }

/* Mobile bottom bar in the browser too, not only the installed app. */
/* (The app-mode rules live in portal.css under display-mode: standalone;
   these are the same rules for producers in a normal browser tab.) */
@media (max-width: 880px) {
  body.has-visiting .portal-tabbar { display: flex !important; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: #fff; border-top: 1px solid var(--pp-line); box-shadow: 0 -2px 14px rgba(21,22,42,.07);
    padding: 0 env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px); }
  body.has-visiting .tabbar-item { position: relative; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center;
    justify-content: center; gap: 4px; min-height: 56px; padding: 8px 2px; background: none; border: 0; cursor: pointer; text-decoration: none; color: var(--pp-ink-3); }
  body.has-visiting .tabbar-item.is-active { color: var(--pp-action-text); }
  body.has-visiting .tabbar-item.is-active .tabbar-label { font-weight: 900; }
  body.has-visiting .tabbar-item.is-active .tabbar-icon::before { content: ''; position: absolute; left: 50%; top: 50%; width: 46px; height: 28px;
    transform: translate(-50%, -50%); border-radius: 999px; background: var(--pp-good-bg); z-index: -1; }
  body.has-visiting .tabbar-icon { position: relative; z-index: 0; }
  body.has-visiting .tabbar-icon, body.has-visiting .tabbar-icon svg { width: 23px; height: 23px; display: block; }
  body.has-visiting .tabbar-badge { position: absolute; top: -4px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 4px; box-sizing: border-box;
    border-radius: 999px; background: var(--pp-bad-fg); color: #fff; font-size: .6875rem; font-weight: 900; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px #fff; }
  body.has-visiting .tabbar-label { font-size: .75rem; font-weight: 700; line-height: 1; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  body.has-visiting { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
  /* The More tab opens the menu, so the top-left burger is not needed. */
  body.has-visiting .topbar-burger { display: none; }
}

/* ---------- Page layout ---------- */
.pp-page { max-width: 1180px; margin: 0 auto; padding: 8px 0 48px; }
.pp-head { margin: 4px 0 20px; }
.pp-eyebrow { font-size: .8125rem; font-weight: 700; color: var(--pp-action-text); margin: 0 0 6px; }
.pp-eyebrow.is-warn { color: var(--pp-warn-fg); } .pp-eyebrow.is-muted { color: var(--pp-ink-3); }
.pp-title { font-family: var(--font-display, Lato, sans-serif); font-weight: 900; color: var(--pp-ink);
  font-size: clamp(1.625rem, 1.2rem + 1.6vw, 2.25rem); line-height: 1.12; margin: 0; letter-spacing: -.01em; }
.pp-sub { margin: 8px 0 0; color: var(--pp-ink-3); font-size: .9375rem; }
.pp-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
/* Side column only where the main column keeps at least ~620px; between
   760 and 1199 the side cards sit below the main ones, two across. */
@media (min-width: 760px) and (max-width: 1199px) { .pp-grid > aside.pp-stack { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1200px) { .pp-grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; } }
.pp-stack { display: grid; gap: 16px; min-width: 0; }

/* ---------- Card ---------- */
.pp-card { background: var(--pp-surface); border: 1px solid var(--pp-line); border-radius: var(--pp-radius);
  box-shadow: var(--pp-shadow); padding: 20px; min-width: 0; }
@media (max-width: 480px) { .pp-card { padding: 16px; } }
.pp-card-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0 0 12px; }
.pp-card-t { font-size: 1.0625rem; font-weight: 900; color: var(--pp-ink); margin: 0; }
.pp-card-link { display: inline-flex; align-items: center; min-height: 44px; margin: -12px -8px -12px 0; padding: 0 8px;
  font-size: .875rem; font-weight: 700; color: var(--pp-navy); text-decoration: none; white-space: nowrap; border-radius: var(--pp-radius-sm); }
.pp-card-link:hover { text-decoration: underline; }

/* ---------- Status chip (the only one) ---------- */
.pp-chip { display: inline-flex; align-items: center; gap: 6px; font-size: .8125rem; font-weight: 700; line-height: 1;
  padding: 6px 10px; border-radius: 999px; border: 1px solid transparent; white-space: nowrap; }
.pp-chip::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: 0 0 auto; }
.pp-chip.is-good { color: var(--pp-good-fg); background: var(--pp-good-bg); border-color: var(--pp-good-line); }
.pp-chip.is-warn { color: var(--pp-warn-fg); background: var(--pp-warn-bg); border-color: var(--pp-warn-line); }
.pp-chip.is-bad  { color: var(--pp-bad-fg);  background: var(--pp-bad-bg);  border-color: var(--pp-bad-line); }
.pp-chip.is-wait { color: var(--pp-wait-fg); background: var(--pp-wait-bg); border-color: var(--pp-wait-line); }
.pp-chip.is-muted { color: var(--pp-ink-3); background: var(--pp-surface-2); border-color: var(--pp-line); }

/* ---------- Buttons ---------- */
.pp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px;
  border-radius: var(--pp-radius-sm); font: inherit; font-weight: 700; font-size: .9375rem; text-decoration: none; cursor: pointer;
  border: 1px solid var(--pp-action); background: var(--pp-action); color: #fff; white-space: nowrap; }
.pp-btn:hover { background: var(--pp-action-hover); border-color: var(--pp-action-hover); }
.pp-btn.is-quiet { background: #fff; color: var(--pp-navy); border-color: var(--pp-line-strong); }
.pp-btn.is-quiet:hover { border-color: var(--pp-navy); background: var(--pp-surface-2); }
.pp-btn[disabled] { opacity: .55; cursor: default; }
.pp-btn.is-block { width: 100%; }

/* ---------- Next up ---------- */
.pp-next { border-left: 4px solid var(--pp-action); }
.pp-next.is-overdue { border-left-color: var(--pp-bad-fg); }
.pp-next.is-clear { border-left-color: var(--pp-good-fg); }
.pp-next-k { font-size: .8125rem; font-weight: 700; color: var(--pp-ink-3); margin: 0 0 6px; }
.pp-next-t { font-size: 1.375rem; font-weight: 900; color: var(--pp-ink); margin: 0 0 6px; line-height: 1.2; }
.pp-next-why { margin: 0 0 14px; color: var(--pp-ink-2); }
.pp-next-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

/* ---------- Readiness milestones ---------- */
.pp-ready-card { container-type: inline-size; }
.pp-ready { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; list-style: none; margin: 0; padding: 0; }
@container (min-width: 600px) { .pp-ready { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.pp-ready li { border: 1px solid var(--pp-line); border-radius: var(--pp-radius-sm); padding: 10px 12px; background: var(--pp-surface-2); min-width: 0; }
.pp-ready li.is-done { background: var(--pp-good-bg); border-color: var(--pp-good-line); }
.pp-ready li.is-late { background: var(--pp-bad-bg); border-color: var(--pp-bad-line); }
.pp-ready-k { display: flex; align-items: center; gap: 6px; font-size: .8125rem; font-weight: 700; color: var(--pp-ink); }
.pp-ready-k svg { width: 16px; height: 16px; flex: 0 0 auto; }
.pp-ready li.is-done .pp-ready-k { color: var(--pp-good-fg); }
.pp-ready li.is-late .pp-ready-k { color: var(--pp-bad-fg); }
.pp-ready-v { font-size: .8125rem; color: var(--pp-ink-3); margin-top: 2px; }
.pp-ready-sum { font-size: .875rem; color: var(--pp-ink-3); font-weight: 700; }
@container (max-width: 459px) { .pp-ready { grid-template-columns: 1fr 1fr; } .pp-ready li:last-child:nth-child(odd) { grid-column: 1 / -1; } }

/* ---------- Task rows ---------- */
.pp-tasks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pp-task { border: 1px solid var(--pp-line); border-radius: var(--pp-radius-sm); background: #fff; scroll-margin-top: 84px; }
.pp-task-main { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; }
.pp-task-t { font-weight: 700; color: var(--pp-ink); margin: 0; }
.pp-task-m { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin-top: 4px; font-size: .8125rem; color: var(--pp-ink-3); }
.pp-task-note { margin: 6px 0 0; font-size: .875rem; color: var(--pp-ink-2); }
.pp-task.is-overdue { border-color: var(--pp-bad-line); }
.pp-task-act { display: flex; gap: 8px; }
@media (max-width: 560px) {
  .pp-task-main { grid-template-columns: 1fr; }
  .pp-task-act .pp-btn { width: 100%; }
}
.pp-edit { border-top: 1px solid var(--pp-line); padding: 12px 14px 14px; background: var(--pp-surface-2); border-radius: 0 0 var(--pp-radius-sm) var(--pp-radius-sm); }
.pp-edit label { display: block; font-weight: 700; color: var(--pp-ink); margin: 0 0 6px; font-size: .9375rem; }
.pp-edit textarea, .pp-edit input { width: 100%; box-sizing: border-box; padding: 10px 12px; font: inherit; border: 1px solid var(--pp-line-strong); border-radius: var(--pp-radius-sm); background: #fff; }
.pp-edit-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.pp-edit-msg { font-size: .875rem; color: var(--pp-ink-3); }
.pp-edit-msg.is-bad { color: var(--pp-bad-fg); }
.pp-group-t { font-size: .875rem; font-weight: 900; color: var(--pp-ink-3); margin: 18px 0 8px; }
.pp-group-t:first-child { margin-top: 0; }
.pp-empty { padding: 14px; border: 1px dashed var(--pp-line-strong); border-radius: var(--pp-radius-sm); color: var(--pp-ink-3); }

/* ---------- Key/value lists (run, contacts) ---------- */
.pp-kv { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.pp-kv li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; padding: 10px 0; border-top: 1px solid var(--pp-line); }
.pp-kv li:first-child { border-top: 0; padding-top: 0; }
.pp-kv-k { font-weight: 700; color: var(--pp-ink); }
.pp-kv-s { display: block; font-size: .8125rem; color: var(--pp-ink-3); font-weight: 400; margin-top: 2px; }
.pp-kv-v { text-align: right; font-size: .875rem; color: var(--pp-ink-2); white-space: nowrap; }
.pp-kv li.is-past { opacity: .6; }
.pp-contact { display: grid; gap: 2px; padding: 10px 0; border-top: 1px solid var(--pp-line); }
.pp-contact:first-child { border-top: 0; padding-top: 0; }
.pp-contact-role { font-size: .8125rem; color: var(--pp-ink-3); }
.pp-contact-name { font-weight: 700; color: var(--pp-ink); }
.pp-contact-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.pp-contact-links a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--pp-line-strong);
  color: var(--pp-navy); font-weight: 700; font-size: .875rem; text-decoration: none; }
.pp-contact-links a:hover { border-color: var(--pp-navy); }

/* ---------- Ticket summary ---------- */
.pp-figs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0 0 12px; }
.pp-fig { background: var(--pp-surface-2); border: 1px solid var(--pp-line); border-radius: var(--pp-radius-sm); padding: 10px 12px; }
.pp-fig-k { font-size: .8125rem; color: var(--pp-ink-3); font-weight: 700; }
.pp-fig-v { font-size: 1.5rem; font-weight: 900; color: var(--pp-ink); line-height: 1.15; margin-top: 2px; }
.pp-code { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid var(--pp-line); }
.pp-code code { font-weight: 900; letter-spacing: .04em; font-size: 1rem; color: var(--pp-ink); }
.pp-code button { min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--pp-line-strong); background: #fff; color: var(--pp-navy); font-weight: 700; cursor: pointer; }

/* ---------- Links list ---------- */
.pp-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.pp-links a { display: flex; justify-content: space-between; align-items: center; min-height: 44px; padding: 0 10px; margin: 0 -10px;
  border-radius: var(--pp-radius-sm); color: var(--pp-navy); font-weight: 700; text-decoration: none; }
.pp-links a:hover { background: var(--pp-surface-2); }
.pp-links a::after { content: '\203A'; font-size: 1.25rem; color: var(--pp-ink-3); }

/* ---------- Notices ---------- */
.pp-notice { border-radius: var(--pp-radius-sm); padding: 12px 14px; border: 1px solid var(--pp-wait-line); background: var(--pp-wait-bg); color: var(--pp-ink-2); }
.pp-notice.is-warn { border-color: var(--pp-warn-line); background: var(--pp-warn-bg); }
.pp-notice strong { color: var(--pp-ink); }

/* ---------- Loading ---------- */
.pp-skel { background: linear-gradient(90deg, #EEECE5 0%, #F6F4EE 50%, #EEECE5 100%); background-size: 200% 100%;
  border-radius: var(--pp-radius-sm); animation: pp-skel 1.2s ease-in-out infinite; }
@keyframes pp-skel { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) { .pp-skel { animation: none; } }

/* Print: the dashboard prints as a clean summary. */
@media print {
  .pp-btn, .pp-switch-caret, .pp-help-btn { display: none !important; }
  .pp-card { box-shadow: none; break-inside: avoid; }
}

/* Rail: the first group has no heading. */
body.has-visiting .portal-rail-section:empty { display: none; }

/* Home and To do sit in a wider container than the forms. */
.container.pp-container { max-width: 1240px; }
.pp-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pp-task.is-linked, .pp-next.is-linked { box-shadow: 0 0 0 3px var(--pp-wait-line); }
/* The older reference folds sit quietly below the dashboard. */
.pp-below { max-width: 1180px; margin: 8px auto 0; }

/* Home: the To do list and the Help button replace the old help bar. */
body.has-visiting.pp-home-page [data-portal-checklist] { display: none !important; }

/* Show guide (reference page) */
.g-ref-todo { margin: 0 0 12px; }
.g-ref-todo a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: var(--pp-radius-sm);
  background: var(--pp-wait-bg); border: 1px solid var(--pp-wait-line); color: var(--pp-navy); font-weight: 700; text-decoration: none; }
body.has-visiting .g-toc a { min-height: 40px; display: inline-flex; align-items: center; }

/* ---------- Pass 3: forms and hubs ---------- */
/* The undefined text colour used across older pages, now defined (was 4 different greys). */
body.has-visiting { --hst-ink-soft: #5C5E74; }
/* Price steppers: real touch targets. */
body.has-visiting .step-btn { width: 40px; height: 40px; font-size: 1.125rem; }
/* Page headings on forms and hubs: one scale with Home. */
body.has-visiting .page-title { font-size: clamp(1.625rem, 1.2rem + 1.6vw, 2.25rem); line-height: 1.12; font-weight: 900; color: var(--pp-ink); letter-spacing: -.01em; }
body.has-visiting .page-lede { color: var(--pp-ink-3); max-width: 62ch; }
/* Forms: one card look, labels above, comfortable on phones. */
body.has-visiting .card { border: 1px solid var(--pp-line); border-radius: var(--pp-radius); box-shadow: var(--pp-shadow); }
body.has-visiting .field > label, body.has-visiting .form-row > label { font-weight: 700; color: var(--pp-ink); }
body.has-visiting .notice { border-radius: var(--pp-radius-sm); }
/* Upload drop zones: a clear target. */
body.has-visiting .upload-zone, body.has-visiting .file-drop, body.has-visiting .dropzone {
  border: 2px dashed var(--pp-line-strong); border-radius: var(--pp-radius); background: var(--pp-surface-2); }
body.has-visiting .upload-zone:hover, body.has-visiting .file-drop:hover, body.has-visiting .dropzone:hover { border-color: var(--pp-navy); }
/* Wide tables (fee table) scroll on phones instead of being cut off. */
body.has-visiting .fee-table-wrap, body.has-visiting .assistant { overflow-x: auto; }
/* Green used as text is the darker, readable green. */
body.has-visiting .eyebrow, body.has-visiting a.btn-ghost { color: var(--pp-action-text); }

/* ---------- My shows (account home, no shell) ---------- */
body.pp-account { background: var(--pp-canvas); color: var(--pp-ink-2); --hst-ink-soft: #5C5E74; }
body.pp-account :focus-visible { outline: none !important; box-shadow: var(--pp-focus) !important; border-radius: 6px; }
body.pp-account .btn-go, body.pp-account #auth-view .btn-go { background: var(--pp-action) !important; border-color: var(--pp-action) !important; color: #fff !important; border-radius: var(--pp-radius-sm) !important; min-height: 44px; }
body.pp-account .btn-go:hover { background: var(--pp-action-hover) !important; }
body.pp-account .ms-eyebrow, body.pp-account .ms-team-mail, body.pp-account .pc-cta { color: var(--pp-action-text) !important; }
body.pp-account .ms-section-label { color: var(--pp-ink-3); font-size: .8125rem; letter-spacing: .02em; }
body.pp-account .ms-card, body.pp-account .ms-team, body.pp-account .ms-promo-card, body.pp-account a.ms-show, body.pp-account .ms-profile {
  border-radius: var(--pp-radius) !important; border-color: var(--pp-line) !important; }
body.pp-account a.ms-show:hover { border-color: var(--pp-navy) !important; }
body.pp-account input[type="text"], body.pp-account input[type="email"], body.pp-account input[type="tel"], body.pp-account input[type="password"] {
  border: 1px solid var(--pp-line-strong) !important; border-radius: var(--pp-radius-sm) !important; min-height: 44px; }
body.pp-account .ms-show-go { color: var(--pp-ink-3) !important; }
body.pp-account a.ms-again { color: var(--pp-navy); min-height: 44px; display: flex; align-items: center; justify-content: flex-end; }
/* Two actions on one task wrap on phones. */
.pp-task-act, .pp-next-row { flex-wrap: wrap; }

/* ---------- Box office: guided steps (pass 4) ---------- */
.bo-steps { display: flex; gap: 8px; list-style: none; margin: 0 0 12px; padding: 0; scroll-margin-top: 80px; }
.bo-steps li { flex: 1 1 0; display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: var(--pp-radius-sm);
  border: 1px solid var(--pp-line); background: #fff; font-weight: 700; font-size: .875rem; color: var(--pp-ink-3); min-width: 0; }
.bo-steps li span { flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--pp-surface-2);
  border: 1px solid var(--pp-line-strong); font-size: .8125rem; }
.bo-steps li.is-current { border-color: var(--pp-navy); color: var(--pp-ink); }
.bo-steps li.is-current span { background: var(--pp-navy); color: #fff; border-color: var(--pp-navy); }
.bo-steps li.is-done { color: var(--pp-good-fg); }
.bo-steps li.is-done span { background: var(--pp-good-bg); border-color: var(--pp-good-line); }
@media (max-width: 560px) { .bo-steps li { font-size: .8125rem; padding: 8px; } }
.bo-step { border: 0; padding: 0; margin: 0; min-width: 0; }
.bo-step[hidden] { display: none; }
.bo-step-t { font-size: 1.25rem; font-weight: 900; color: var(--pp-ink); margin: 0 0 12px; padding: 0; }
.bo-price { border-bottom: 1px solid var(--pp-line); padding: 0 0 12px; margin: 0 0 12px; }
.bo-net { margin: -4px 0 0; font-size: .9375rem; color: var(--pp-ink-2); min-height: 1.4em; }
.bo-net strong { color: var(--pp-good-fg); }
.bo-qual { margin-top: 10px; }
.bo-qual[hidden] { display: none; }
.bo-more { margin: 12px 0 0; border: 1px solid var(--pp-line); border-radius: var(--pp-radius-sm); background: var(--pp-surface-2); }
.bo-more > summary { cursor: pointer; padding: 12px 14px; font-weight: 700; color: var(--pp-navy); min-height: 44px; box-sizing: border-box; }
.bo-more > ul { margin: 0 14px 14px; }
.bo-more .assistant { margin: 0 14px 14px; background: none; border: 0; padding: 0; box-shadow: none; }
.bo-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--pp-line); flex-wrap: wrap; }
.bo-nav .btn { min-width: 140px; }
@media (max-width: 480px) { .bo-nav { flex-direction: column-reverse; align-items: stretch; } .bo-nav .btn { width: 100%; } .bo-nav > span { display: none; } }
.bo-sub { font-weight: 900; color: var(--pp-ink); margin: 18px 0 8px; }
.bo-review { margin-top: 16px; padding: 14px; border: 1px solid var(--pp-line); border-radius: var(--pp-radius-sm); background: var(--pp-surface-2); }
.bo-review .bo-sub { margin-top: 0; }

/* ---------- Pass 4 (25 Oct 2026): page heads, uploads, Support ---------- */
/* Hub and Support heads: a plain heading on the page, not a dark block. */
body.has-visiting .programme-hero { background: none; color: var(--pp-ink-2); padding: 0; margin: 0 0 20px; overflow: visible; }
body.has-visiting .programme-hero::before { display: none; }
body.has-visiting .programme-hero .eyebrow { font-size: .8125rem; letter-spacing: .04em; text-transform: none; color: var(--pp-action-text); margin: 0 0 4px; }
body.has-visiting .programme-hero h1 { color: var(--pp-ink); font-size: clamp(1.625rem, 1.2rem + 1.6vw, 2.25rem); line-height: 1.12; letter-spacing: -.01em; margin: 0 0 6px; }
body.has-visiting .programme-hero p { color: var(--pp-ink-3); font-size: 1.0625rem; max-width: 62ch; }
body.has-visiting .programme-hero .hero-meta { color: var(--pp-ink-3); text-transform: none; letter-spacing: 0; font-size: .9375rem; margin-top: 10px; }
body.has-visiting .programme-hero .hero-meta strong { color: var(--pp-ink); }

/* "Before you start" on upload pages: a light checklist, not a navy-ruled box. */
body.has-visiting .needs-list { background: var(--pp-surface); border: 1px solid var(--pp-line); border-left: 1px solid var(--pp-line); border-radius: var(--pp-radius-sm); padding: 14px 16px; }
body.has-visiting .needs-eyebrow { font-size: .9375rem; text-transform: none; letter-spacing: 0; font-weight: 900; color: var(--pp-ink); }
body.has-visiting .needs-list li { font-size: 1rem; color: var(--pp-ink-2); }
body.has-visiting .needs-list a { color: var(--pp-navy); border-bottom: 0; text-decoration: underline; font-weight: 700; }

/* Drop zones: sentence case, a visible "choose" cue, a focus ring for keyboards. */
body.has-visiting .file-drop { padding: 28px 16px; }
body.has-visiting .file-drop .file-title { text-transform: none; letter-spacing: 0; font-size: 1.0625rem; font-weight: 900; color: var(--pp-navy); }
body.has-visiting .file-drop .file-title::before { content: ''; display: block; width: 28px; height: 28px; margin: 0 auto 8px;
  background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 16V4M7 9l5-5 5 5M4 20h16'/%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='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 16V4M7 9l5-5 5 5M4 20h16'/%3E%3C/svg%3E") center/contain no-repeat; }
body.has-visiting .file-drop.has-file .file-title::before { display: none; }
body.has-visiting .file-drop .file-sub { letter-spacing: 0; color: var(--pp-ink-3); font-size: .875rem; }
body.has-visiting .file-drop:focus-within { border-color: var(--pp-navy); box-shadow: var(--pp-focus); }
body.has-visiting .file-drop.has-file { border-style: solid; border-color: var(--pp-good-line); background: var(--pp-good-bg); }
body.has-visiting .file-drop.has-file .file-title { color: var(--pp-good-fg); }
body.has-visiting .file-remove { text-transform: none; letter-spacing: 0; font-size: .9375rem; color: var(--pp-navy); text-decoration: underline; min-height: 44px; }

/* Support list: same buttons, filters and rows as the rest of the portal. */
body.has-visiting .tkt-btn { text-transform: none; letter-spacing: 0; font-weight: 700; font-size: 1rem; min-height: 44px; padding: 8px 18px;
  border-radius: var(--pp-radius-sm); background: var(--pp-action); border-color: var(--pp-action); }
body.has-visiting .tkt-btn:hover { background: var(--pp-action-hover); border-color: var(--pp-action-hover); }
body.has-visiting .tkt-btn.ghost { background: #fff; color: var(--pp-navy); border: 1px solid var(--pp-line-strong); }
body.has-visiting .tkt-btn.ghost:hover { background: var(--pp-surface-2); }
body.has-visiting .tkt-qbar { gap: 12px; }
body.has-visiting .tkt-fl { border: 1px solid var(--pp-line-strong); border-radius: var(--pp-radius-sm); background: #fff; }
body.has-visiting .tkt-fb { text-transform: none; letter-spacing: 0; font-weight: 700; font-size: .9375rem; min-height: 44px; padding: 0 16px; color: var(--pp-ink-2); }
body.has-visiting .tkt-fb.active { background: var(--pp-navy); color: #fff; }
body.has-visiting .tkt-row { border: 1px solid var(--pp-line); border-left-width: 4px; border-radius: var(--pp-radius-sm); padding: 14px 16px; }
body.has-visiting .tkt-row .t1 { color: var(--pp-ink); font-weight: 900; }
body.has-visiting .tkt-empty { background: var(--pp-surface); border: 1px solid var(--pp-line); border-radius: var(--pp-radius-sm); color: var(--pp-ink-3); padding: 24px 16px; }
body.has-visiting .tkt-link-btn { text-transform: none; letter-spacing: 0; color: var(--pp-navy); text-decoration: underline; font-size: 1rem; }
@media (max-width: 560px) {
  body.has-visiting .tkt-qbar { flex-direction: column; align-items: stretch; }
  body.has-visiting .tkt-fl { display: flex; } body.has-visiting .tkt-fb { flex: 1 1 0; }
  body.has-visiting .tkt-ctrls { display: flex; flex-direction: row-reverse; justify-content: space-between; }
  body.has-visiting .tkt-ctrls [data-tkt-new] { flex: 1 1 auto; }
}

/* ---------- Help hub (pass 4) ---------- */
body.has-visiting .hub-toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
body.has-visiting .hub-toc a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--pp-line-strong);
  border-radius: 999px; background: #fff; color: var(--pp-navy); font-weight: 700; font-size: .9375rem; text-decoration: none; }
body.has-visiting .hub-toc a:hover { background: var(--pp-surface-2); }
body.has-visiting .hub-fold { border: 1px solid var(--pp-line); border-radius: var(--pp-radius); background: #fff; margin: 0 0 12px; box-shadow: var(--pp-shadow); scroll-margin-top: 80px; }
body.has-visiting .hub-fold > summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  min-height: 56px; padding: 10px 18px; font-weight: 900; font-size: 1.0625rem; color: var(--pp-ink); }
body.has-visiting .hub-fold > summary::-webkit-details-marker { display: none; }
body.has-visiting .hub-fold > summary::after { content: '+'; font-size: 1.5rem; font-weight: 400; color: var(--pp-ink-3); flex: 0 0 auto; }
body.has-visiting .hub-fold[open] > summary::after { content: "\2212"; }
body.has-visiting .hub-fold-body { padding: 0 18px 18px; }
body.has-visiting .hub-fold-body > .card { border: 0; box-shadow: none; padding: 0; margin: 0; background: none; }
body.has-visiting .hub-howto { margin: 0; padding-left: 1.2rem; display: grid; gap: 8px; }

/* ---------- Hubs (pass 4): one section and card look across all hubs ---------- */
body.has-visiting .block-header, body.has-visiting .block-header.is-green { background: none; color: var(--pp-ink); padding: 0; margin: 28px 0 12px;
  font-size: 1.25rem; font-weight: 900; letter-spacing: -.005em; }
body.has-visiting .block-header::after, body.has-visiting .block-header.is-green::after { display: none; }
body.has-visiting .qa-card, body.has-visiting .schedule-card, body.has-visiting .rights-cat {
  background: #fff; border: 1px solid var(--pp-line); border-left: 1px solid var(--pp-line); border-radius: var(--pp-radius); box-shadow: var(--pp-shadow); }
body.has-visiting .qa-card h3 { color: var(--pp-ink); font-size: 1.0625rem; }
body.has-visiting .qa-card p { font-size: 1rem; }
body.has-visiting .qa-card a { text-transform: none; letter-spacing: 0; font-size: .9375rem; border-bottom: 0; text-decoration: underline; color: var(--pp-navy); min-height: 32px; display: inline-flex; align-items: center; }
body.has-visiting .schedule-eyebrow { text-transform: none; letter-spacing: 0; color: var(--pp-action-text); font-size: .875rem; }
body.has-visiting .rights-sub-h { color: var(--pp-ink); }
body.has-visiting details.faq > summary { min-height: 48px; display: flex; align-items: center; }
/* Price calculator: the big number box no longer pushes past the card on phones. */
body.has-visiting .assistant-grid > * { min-width: 0; }
body.has-visiting .calc-input { box-sizing: border-box; min-width: 0; }
body.has-visiting .assistant-input { border-radius: var(--pp-radius-sm); }
body.has-visiting .assistant-input label { letter-spacing: 0; font-size: .875rem; }
/* QA (pass 4): two small targets brought up to size. */
body.has-visiting .rail-foot-signout { min-height: 40px; }
summary.pp-group-t { cursor: pointer; min-height: 44px; display: flex; align-items: center; }
body.has-visiting .pw-body > a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
body.has-visiting .team-card-cta { display: inline-flex; align-items: center; min-height: 44px; }
body.has-visiting .bt-remove, body.has-visiting .btn-tiny, body.has-visiting .haz-card-remove { min-height: 40px; min-width: 40px; }
/* Worked example on Help: the detail column gives way on small phones. */
@media (max-width: 400px) {
  body.has-visiting .worked-table { font-size: .9375rem; }
  body.has-visiting .worked-table td { padding: 8px 6px; }
  body.has-visiting .worked-table td:nth-child(2) { display: none; }
}
