/* Agent portal (portal.html) — named classes for what used to be inline styles (29/10/2026).
   Same pattern as exco.css (ex-*), finance.css (fn-*) and pay-office.css (po-*): written `html body .pt-…`;
   spacing and alignment carry !important (they replace inline styles, so they must beat component
   padding/margins); colour and display do not, so script that sets style.display / colours still wins.
   Tokens only. Loaded just before /css/theme.css, which stays last.
   Meaning of colour on this page: red = something is wrong or taken off your pay (rejected, expired,
   deductions, delete); amber = waiting on you / needs action (Finance query, missing document);
   green = done (approved, paid, valid); teal = the main action and information. Amounts are neutral. */

/* ── Text ─────────────────────────────────────────────────────────────── */
html body .pt-label { display: block; font-size: 12px; font-weight: 600; color: var(--text-mid, var(--text)); margin-bottom: 4px !important; }
html body .pt-mb5 { margin-bottom: 5px !important; }
html body .pt-hint { font-weight: 400; font-size: 11px; color: var(--text-muted); }
html body .pt-hint-plain { font-weight: 400; color: var(--text-muted); }
html body .pt-note { font-size: 12px; color: var(--text-muted); }
html body .pt-note-xs { font-size: 11px; color: var(--text-muted); }
html body .pt-note-2xs { font-size: 11px; color: var(--text-muted); }
html body .pt-sub-xs { font-size: 11px; color: var(--text-muted); margin: 2px 0 0 !important; }
html body .pt-block-muted { display: block; color: var(--text-muted); }
html body .pt-muted { color: var(--text-muted); }
html body .pt-mid12 { font-size: 12px; color: var(--text-mid, var(--text)); }
html body .pt-faq { font-size: 12px; line-height: 1.8; color: var(--text-mid, var(--text)); }
html body .pt-inline-lbl { font-size: 13px; font-weight: 600; color: var(--text); }
html body .pt-kicker-xs { font-size: 11px; font-weight: 600; text-transform: uppercase; color: var(--text-muted); letter-spacing: .04em; }
html body .pt-step-kicker { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin: 0 0 16px !important; }
html body .pt-card-h { font-size: 13px; font-weight: 700; margin: 0 0 10px !important; }
html body .pt-card-title { font-size: 15px; font-weight: 700; margin-bottom: 4px !important; }
html body .pt-h3 { margin: 0 0 2px !important; font-size: 15px; font-weight: 600; }
html body .pt-guide-title { font-weight: 700; font-size: 12px; margin-bottom: 2px !important; }
html body .pt-warn-text { color: var(--warning); }
html body .pt-warn-xs { font-size: 11px; color: var(--warning); }
html body .pt-ok-xs { font-size: 11px; color: var(--success); }
html body .pt-flag-info { font-size: 11px; color: var(--success); margin-top: 5px !important; }
html body .pt-err-text { color: var(--danger); }
html body .pt-editing { font-weight: 600; color: var(--accent); }
html body .pt-link-strong { font-weight: 700; text-decoration: underline; }
html body .pt-nodeco { text-decoration: none; }
html body .pt-upper { text-transform: uppercase; }
html body .pt-mono { font-family: var(--vq-mono, monospace) !important; }
html body .pt-ref { font-family: var(--vq-mono, monospace) !important; font-size: 11px; font-weight: 700; }
html body .pt-fw500 { font-weight: 500; } html body .pt-fw600 { font-weight: 600; } html body .pt-fw700 { font-weight: 700; }
html body .pt-fs13 { font-size: 13px; } html body .pt-fs14 { font-size: 14px; } html body .pt-fs15 { font-size: 15px; }
html body .pt-fs18 { font-size: 18px; } html body .pt-fs20 { font-size: 20px; } html body .pt-fs22 { font-size: 22px; }
html body .pt-fs36 { font-size: 36px; } html body .pt-fs48 { font-size: 48px; }
/* Empty and error states */
html body .pt-empty { padding: 20px !important; text-align: center !important; color: var(--text-muted); font-size: 13px; }
html body .pt-empty-plain { padding: 20px !important; text-align: center !important; color: var(--text-muted); }
html body .pt-empty-h { margin: 0 !important; font-size: 14px; color: var(--text-muted); }
html body .pt-empty-notif { padding: 24px 16px !important; text-align: center !important; color: var(--text-muted); font-size: 13px; }
html body .pt-err { color: var(--danger); font-size: 12px; font-weight: 600; padding: 8px 12px !important; background: var(--danger-soft); border-radius: 6px; }
/* Text-only buttons (Skip, Clear all) */
html body .pt-linkbtn { background: none; border: none; font-size: 13px; color: var(--text-muted); cursor: pointer; padding: 0 !important; text-decoration: underline; }
html body .pt-summary { font-size: 12px; cursor: pointer; color: var(--text-muted); }

/* ── Buttons: one look; the main action of an area is .pt-btn-primary ─── */
html body .pt-btn { display: inline-flex; align-items: center !important; justify-content: center !important; gap: 6px;
  padding: 9px 14px !important; border-radius: 8px; border: 1px solid var(--border); background: var(--surface2); color: var(--text);
  font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; text-align: center; text-decoration: none; }
html body .pt-btn:hover { border-color: var(--accent); }
html body .pt-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
html body .pt-btn-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 700; }
html body .pt-btn-primary:hover { filter: brightness(1.06); }
html body .pt-btn-primary:disabled { opacity: .45; cursor: not-allowed; filter: none; }
/* A row's own Submit when the panel has a "Submit All": accent outline, not a second filled button */
html body .pt-btn-accent-outline { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 45%, transparent); color: var(--text); font-weight: 700; }
html body .pt-btn-danger { background: var(--danger-soft); border-color: color-mix(in srgb, var(--danger) 45%, transparent); color: color-mix(in srgb, var(--danger) 80%, var(--text)); }
html body .pt-btn-sm { padding: 5px 12px !important; font-size: 12px; border-radius: 6px; }
html body .pt-btn-lg { padding: 12px !important; font-size: 14px; }
html body .pt-btn-wide { padding: 11px 28px !important; font-size: 14px; }
/* Size adjustments for the page's own .btn-red / .btn-ghost buttons */
html body .pt-btn-md { padding: 9px 20px !important; font-size: 13px; font-weight: 600; border-radius: 8px; }
html body .pt-btn-xs { padding: 7px 14px !important; font-size: 12px; border-radius: 8px; }
html body .pt-btn-xs2 { padding: 6px 14px !important; font-size: 12px; }
html body .pt-iflex { display: inline-flex; align-items: center !important; gap: 6px; cursor: pointer; }
html body .pt-self-start { align-self: flex-start !important; }
/* Instruction yes/no: the chosen look (border, fill, text) is set by _paintInstrButtons */
html body .pt-choice { flex: 1; padding: 9px !important; border: 1px solid var(--border); border-radius: 8px; background: var(--surface2); color: var(--text-muted); font-weight: 600; font-size: .82rem; cursor: pointer; }

/* ── Fields ───────────────────────────────────────────────────────────── */
html body .pt-input { width: 100%; box-sizing: border-box; padding: 10px 12px !important; border: 1.5px solid var(--border); border-radius: 8px; font-size: 14px; background: var(--surface); color: var(--text); }
html body .pt-input-date { width: 100%; max-width: 320px; padding: 8px 10px !important; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; }
html body .pt-select { padding: 7px 12px !important; border: 1.5px solid var(--border); border-radius: 8px; font-size: 13px; background: var(--surface); color: var(--text); cursor: pointer; }
html body .pt-dropdown { position: absolute; z-index: 9999; left: 0; right: 0; top: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; color: var(--text);
  list-style: none; margin: 2px 0 0 !important; padding: 4px 0 !important; max-height: 200px; overflow-y: auto; box-shadow: 0 8px 24px rgba(0,0,0,.45); font-size: 13px; }

/* ── Chips and pills (the word carries the meaning; colour only for a state) ── */
html body .pt-pill { display: inline-block; padding: 2px 8px !important; border-radius: 20px; font-size: 11px; font-weight: 600; background: var(--surface2); color: var(--text-mid, var(--text)); border: 1px solid var(--border); white-space: nowrap; }
html body .pt-pill-ok   { background: var(--success-soft); color: var(--success); border-color: color-mix(in srgb, var(--success) 35%, transparent); }
html body .pt-pill-warn { background: var(--warning-soft); color: var(--warning); border-color: color-mix(in srgb, var(--warning) 35%, transparent); }
html body .pt-pill-bad  { background: var(--danger-soft);  color: var(--danger);  border-color: color-mix(in srgb, var(--danger) 35%, transparent); }
html body .pt-pill-info { background: var(--accent-soft);  color: var(--text);    border-color: color-mix(in srgb, var(--accent) 35%, transparent); }
html body .pt-pill-lg { padding: 4px 12px !important; font-weight: 700; }
html body .pt-chip { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 6px !important; border-radius: 10px; background: var(--surface2); color: var(--text-mid, var(--text)); border: 1px solid var(--border); white-space: nowrap; }
html body .pt-chip-rate { font-size: 11px; padding: 1px 5px !important; border-radius: 6px; margin-left: 4px !important; background: var(--surface2); color: var(--text-mid, var(--text)); border: 1px solid var(--border); font-family: var(--vq-mono, monospace) !important; }
html body .pt-ref-chip { display: inline-block; margin-left: 8px !important; padding: 1px 8px !important; border-radius: 4px; font-size: 11px; font-weight: 600; background: var(--surface2); color: var(--text); border: 1px solid var(--border); font-family: var(--vq-mono, monospace) !important; }
html body .pt-section-tag { font-size: 11px; font-weight: 700; padding: 3px 10px !important; border-radius: 20px; background: var(--surface2); color: var(--text-mid, var(--text)); border: 1px solid var(--border); white-space: nowrap; }
/* Map legend: the dots are the map markers' own colours */
html body .pt-legend { display: flex; flex-wrap: wrap; gap: 8px; font-size: 11px; }
html body .pt-legend-item { display: flex; align-items: center !important; gap: 4px; }
html body .pt-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
html body .pt-dot-exec { background: var(--success, #22c55e); } html body .pt-dot-cap { background: var(--info, #3b82f6); }
html body .pt-dot-pend { background: var(--warning, #f59e0b); } html body .pt-dot-query { background: var(--danger, #ef4444); }

/* ── Header (always dark, whatever the theme) ─────────────────────────── */
html body .pt-hdr-logo { height: 38px; width: auto; max-width: 100px; object-fit: contain; border-radius: 6px; margin-right: 6px !important; background: rgba(255,255,255,.12); padding: 3px !important; }
html body .pt-hdr-link { padding: 7px 13px !important; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3); border-radius: 8px; color: var(--on-fill, #fff); font-size: 12px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background .15s; }
html body .pt-hdr-bell { position: relative; background: rgba(255,255,255,.12); border: none; border-radius: 8px; width: 36px; height: 36px; cursor: pointer; display: flex; align-items: center !important; justify-content: center !important; color: rgba(255,255,255,.85); font-size: 16px; transition: background .15s; }
html body .pt-hdr-badge { position: absolute; top: 4px; right: 4px; background: var(--danger); color: var(--on-accent); font-size: 10px; font-weight: 700; border-radius: 10px; padding: 0 4px !important; min-width: 14px; height: 14px; line-height: 14px; text-align: center; }
html body .pt-news-badge { background: var(--danger); color: var(--on-accent); font-size: 10px; font-weight: 800; border-radius: 999px; padding: 1px 6px !important; margin-left: 3px !important; }
/* Sticky commission preview (JS shows it with display:flex) */
html body .pt-sticky { position: fixed; top: 0; left: 0; right: 0; z-index: 1100; background: var(--accent); color: var(--on-accent); padding: 8px 20px !important;
  align-items: center !important; justify-content: space-between !important; font-size: 13px; box-shadow: 0 2px 8px rgba(0,0,0,.18); }
html body .pt-sticky-lbl { opacity: .85; font-size: 11px; font-weight: 600; }
html body .pt-sticky-val { font-size: 18px; font-weight: 700; font-family: var(--vq-mono, monospace) !important; font-variant-numeric: tabular-nums; }
html body .pt-sticky-x { background: none; border: none; color: inherit; opacity: .8; font-size: 16px; cursor: pointer; padding: 0 4px !important; }

/* ── Notifications panel ──────────────────────────────────────────────── */
html body .pt-notif { position: fixed; top: 60px; right: 12px; width: 320px; max-width: calc(100vw - 24px); max-height: 480px; background: var(--surface); border-radius: 12px; box-shadow: 0 8px 32px rgba(0,0,0,.18); z-index: 2000; overflow: hidden; border: 1px solid var(--border); }
html body .pt-notif-head { padding: 12px 16px !important; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between !important; align-items: center !important; }
html body .pt-notif-clear { background: none; border: none; font-size: 11px; color: var(--text-muted); cursor: pointer; padding: 2px 6px !important; border-radius: 4px; text-decoration: underline; }
html body .pt-notif-list { max-height: 420px; overflow-y: auto; }

/* ── Pending submissions (saved on this phone) ────────────────────────── */
html body .pt-review { margin: 12px 16px 0 !important; background: var(--surface); border: 1.5px solid var(--border); border-radius: 14px; overflow: hidden; }
html body .pt-review-head { display: flex; justify-content: space-between !important; align-items: center !important; gap: 10px; flex-wrap: wrap; padding: 12px 18px !important; background: var(--surface2); border-bottom: 1px solid var(--border); }
html body .pt-review-title { font-weight: 700; font-size: 13px; color: var(--text); }
html body .pt-review-list { padding: 12px 16px !important; display: flex; flex-direction: column; gap: 8px; }
html body .pt-review-row { background: var(--surface2); border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px !important; display: flex; align-items: flex-start !important; gap: 14px; flex-wrap: wrap; }
html body .pt-review-row.is-editing { border-color: var(--accent); }
html body .pt-review-name { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 4px !important; }
html body .pt-review-meta { font-size: 11px; color: var(--text-muted); display: flex; flex-wrap: wrap; gap: 8px; }
html body .pt-review-actions { display: flex; gap: 6px; flex-shrink: 0; margin-top: 2px !important; flex-wrap: wrap; }
/* Drafts can't be sent yet: amber, it needs the agent to act */
html body .pt-elig { background: var(--warning-soft); border: 1px solid color-mix(in srgb, var(--warning) 40%, transparent); border-radius: 8px; padding: 11px 16px !important; margin: 10px 16px 4px !important;
  color: var(--text); font-size: 13px; display: flex; align-items: center !important; gap: 10px; flex-wrap: wrap; }
html body .pt-elig > svg { color: var(--warning); }

/* ── Dialogs ──────────────────────────────────────────────────────────── */
html body .pt-modal { position: fixed; inset: 0; z-index: 8000; background: rgba(0,0,0,.65); align-items: center !important; justify-content: center !important; }
html body .pt-modal-box { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 28px 32px !important; width: 480px; max-width: 94vw; max-height: 90vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
html body .pt-modal-title { margin: 0 !important; font-size: 17px; color: var(--text); }
html body .pt-modal-q { margin: 0 0 20px !important; font-size: 14px; font-weight: 600; color: var(--text); }
html body .pt-csm-details { background: var(--surface2); border: 1px solid var(--border); border-radius: 10px; padding: 16px !important; margin-bottom: 20px !important; font-size: 13px; line-height: 1.7; color: var(--text-mid, var(--text)); }
html body .pt-csm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
html body .pt-csm-lbl { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); margin-bottom: 1px !important; }
html body .pt-csm-val { color: var(--text); font-weight: 600; }
/* First sign-in: set password, complete profile (built by script) */
html body .pt-dlg { background: var(--surface); color: var(--text); border-radius: 16px; padding: 36px 32px !important; max-width: 420px; width: 90%; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
html body .pt-dlg-wide { border-radius: 18px; max-width: 480px; width: 100%; }
html body .pt-dlg-icon { width: 56px; height: 56px; background: var(--accent-soft); border-radius: 14px; display: flex; align-items: center !important; justify-content: center !important; margin: 0 auto 14px !important; font-size: 26px; }
html body .pt-dlg-title { margin: 0 0 6px !important; font-size: 19px; font-weight: 700; color: var(--text); }
html body .pt-dlg-sub { margin: 0 !important; font-size: 13px; color: var(--text-muted); line-height: 1.5; }
html body .pt-dlg-note { font-size: 11.5px; color: var(--text-muted); margin: 8px 0 0 !important; line-height: 1.5; }
html body .pt-psp-bar { flex: 1; height: 4px; border-radius: 2px; background: var(--border); }
html body .pt-psp-bar.is-on { background: var(--accent); }
/* File viewer (on its own dark overlay) */
html body .pt-fv-img { max-width: 92vw; max-height: 80vh; object-fit: contain; display: block; }
html body .pt-fv-frame { width: 85vw; height: 80vh; border: none; border-radius: 8px; background: var(--surface); }
html body .pt-fv-none { color: var(--on-fill, #fff); padding: 32px !important; text-align: center !important; }

/* ── Capture ──────────────────────────────────────────────────────────── */
html body .pt-hist-row { display: flex; align-items: center !important; justify-content: space-between !important; padding: 8px 12px !important; background: var(--surface2); border: 1px solid var(--border); border-radius: 8px; margin-top: 6px !important; font-size: 12px; }
html body .pt-preview-note { margin: 4px 0 0 !important; grid-column: 1/-1; font-size: 12px; }
html body .pt-preview-box { grid-column: 1/-1; font-size: 11px; color: var(--text-muted); margin-top: 4px !important; padding: 6px 10px !important; background: var(--surface2); border-radius: 6px; border: 1px solid var(--border); }
html body .pt-preview-cap { grid-column: 1/-1; font-size: 11px; color: var(--warning); background: var(--warning-soft); border-radius: 4px; padding: 4px 8px !important; margin-top: 8px !important; }
html body .pt-travel-preview { margin-top: 8px !important; padding: 10px 14px !important; background: var(--warning-soft); border: 1px solid color-mix(in srgb, var(--warning) 35%, transparent); border-radius: 8px; font-size: 13px; color: var(--text); line-height: 1.6; }

/* ── Finance query: amber — the agent must fix or delete the entry ────── */
html body .pt-q-head { background: var(--warning-soft); border: 1px solid color-mix(in srgb, var(--warning) 40%, transparent); border-bottom: 0; border-radius: 12px 12px 0 0; padding: 12px 18px !important; display: flex; align-items: center !important; gap: 10px; flex-wrap: wrap; }
html body .pt-q-head > svg { color: var(--warning); flex-shrink: 0; }
html body .pt-q-title { font-size: 14px; font-weight: 700; color: var(--text); }
html body .pt-q-sub { font-size: 12px; color: var(--text-mid, var(--text)); margin-left: 4px !important; }
html body .pt-q-list { background: var(--surface); border: 1px solid color-mix(in srgb, var(--warning) 40%, transparent); border-top: none; border-radius: 0 0 12px 12px; padding: 0 !important; }
html body .pt-q-item { border-bottom: 1px solid var(--border); padding: 16px 18px !important; }
html body .pt-q-item:last-child { border-bottom: 0; }
html body .pt-q-ref { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 4px !important; }
html body .pt-q-meta { font-size: 12px; color: var(--text-muted); margin-bottom: 8px !important; }
html body .pt-q-comment { background: var(--surface2); border: 1px solid var(--border); border-left: 3px solid var(--warning); border-radius: 8px; padding: 10px 14px !important; font-size: 13px; color: var(--text); margin-bottom: 12px !important; }
html body .pt-q-comment-lbl { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin-bottom: 4px !important; }
html body .pt-q-edit { font-size: 12px; color: var(--accent); cursor: pointer; font-weight: 600; }
html body .pt-q-label { font-size: 11px; color: var(--text-muted); }
html body .pt-q-actions { display: flex; flex-direction: column; gap: 8px; min-width: 140px; align-self: flex-start !important; }

/* ── Commissions ──────────────────────────────────────────────────────── */
/* Salaried commission tier: information, not a warning */
html body .pt-tier { background: var(--surface2); border: 1px solid var(--border); border-radius: 10px; padding: 16px !important; margin-bottom: 14px !important; }
html body .pt-tier-kicker { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); margin-bottom: 10px !important; }
html body .pt-tier-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; margin-bottom: 12px !important; }
html body .pt-tier-box { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px !important; }
html body .pt-tier-lbl { font-size: 11px; color: var(--text-muted); font-weight: 600; }
html body .pt-tier-val { font-size: 15px; font-weight: 700; color: var(--text); margin-top: 2px !important; font-family: var(--vq-mono, monospace) !important; font-variant-numeric: tabular-nums; }
html body .pt-tier-track { background: var(--border); border-radius: 6px; height: 10px; overflow: hidden; margin-bottom: 6px !important; }
html body .pt-tier-bar { height: 100%; border-radius: 6px; background: var(--accent); transition: width .4s; }
html body .pt-tier-bar.is-cleared { background: var(--success); }
html body .pt-earn-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)); gap: 10px; margin-bottom: 14px !important; }
html body .stat-tile .stat-n.pt-stat-money { font-size: 16px; white-space: nowrap; }
/* Active batches: information (teal), the amount neutral */
html body .pt-batch { background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); border-radius: 8px; padding: 12px 14px !important; min-width: 160px; }
html body .pt-batch-ref { font-size: 11px; font-weight: 600; color: var(--text-mid, var(--text)); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px !important; }
html body .pt-batch-amt { font-size: 16px; font-weight: 700; color: var(--text); font-family: var(--vq-mono, monospace) !important; font-variant-numeric: tabular-nums; }
html body .pt-batch-sub { font-size: 11px; color: var(--text-muted); margin-top: 3px !important; }
/* Statement table: "Your Commission" is a figure — right-aligned, neutral */
html body .stmt-table .td-amt { color: var(--text); text-align: right !important; }
html body .stmt-table th.pt-r, html body .stmt-table td.pt-r { text-align: right !important; }
html body .pt-tf-lbl { text-align: right !important; font-weight: 600; padding: 6px 14px !important; font-size: 11px; color: var(--text-muted); }
html body .pt-tf-acct { padding: 6px 14px !important; font-size: 11px; color: var(--text-mid, var(--text)); }
html body .pt-tf-total-lbl { text-align: right !important; font-weight: 600; padding: 10px 14px !important; font-size: 12px; }
html body .pt-tf-total { font-weight: 700; color: var(--text); padding: 10px 14px !important; text-align: right !important; }
html body .pt-amt-xs { font-size: 11px; font-weight: 700; color: var(--text); font-family: var(--vq-mono, monospace) !important; }

/* ── Activity ─────────────────────────────────────────────────────────── */
html body .pt-act-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 24px !important; }
html body .pt-act-card { background: var(--surface); border: 1.5px solid var(--border); border-radius: 12px; padding: 14px 16px !important; container-type: inline-size; }
html body .pt-act-lbl { font-size: 11px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px !important; }
html body .pt-act-val { font-size: 22px; font-weight: 800; color: var(--text); font-family: var(--vq-mono, monospace) !important; font-variant-numeric: tabular-nums; }
html body .pt-act-val.is-money { font-size: clamp(13px, 10cqi, 16px); white-space: nowrap; }
html body .pt-act-val.is-bad { color: var(--danger); }
/* Work-order / invoice-line progress steps */
html body .pt-steps { display: flex; align-items: center !important; gap: 0; flex-wrap: nowrap; margin-top: 6px !important; }
html body .pt-step-dot { display: inline-flex; align-items: center !important; justify-content: center !important; width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  background: var(--surface2); border: 1px solid var(--border); color: var(--text-muted); font-size: 10px; font-weight: 700; }
html body .pt-step-dot.is-done { background: var(--success); border-color: var(--success); color: var(--on-accent); }
html body .pt-step-dot.is-active { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
html body .pt-step-dot.is-cancelled { background: var(--danger); border-color: var(--danger); color: var(--on-accent); }
html body .pt-step-lbl { font-size: 10px; color: var(--text-muted); white-space: nowrap; margin: 0 4px !important; }
html body .pt-step-lbl.is-on { color: var(--text); }
html body .pt-step-line { flex: 1; height: 2px; background: var(--border); min-width: 8px; max-width: 20px; }
html body .pt-step-line.is-done { background: var(--success); }

/* ── Cards and layout pieces ──────────────────────────────────────────── */
html body .pt-card-head { padding: 14px 18px !important; border-bottom: 1px solid var(--border); display: flex; align-items: center !important; justify-content: space-between !important; }
html body .pt-card-body { padding: 14px 18px !important; }
html body .pt-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin-bottom: 10px !important; }
html body .pt-adv-amt { font-size: 15px; font-weight: 700; font-family: var(--vq-mono, monospace) !important; font-variant-numeric: tabular-nums; }
html body .pt-toolbar { display: flex; align-items: center !important; justify-content: space-between !important; flex-wrap: wrap; gap: 10px; margin-bottom: 14px !important; }
html body .pt-notice { padding: 24px !important; text-align: center !important; color: var(--text-mid, var(--text)); background: var(--surface2); border: 1px solid var(--border); border-radius: 10px; margin: 8px 0 !important; }
html body .pt-notice-warn { background: var(--warning-soft); border-color: color-mix(in srgb, var(--warning) 40%, transparent); color: var(--text); }
html body .pt-sub-line { font-size: 13px; margin-top: 6px !important; display: block; }
html body .pt-exp-card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px !important; margin-bottom: 10px !important; }
html body .pt-exp-amt { font-size: 16px; font-weight: 800; color: var(--text); white-space: nowrap; }
html body .pt-thumb { display: inline-flex; align-items: center !important; gap: 8px; padding: 6px 12px !important; margin-top: 6px !important; background: var(--surface2); border: 1px solid var(--border); border-radius: 8px; cursor: pointer; font-size: 12px; font-weight: 600; color: var(--text-mid, var(--text)); }
html body .pt-upload { background: var(--surface2); border: 1px solid var(--border); border-radius: 10px; padding: 18px !important; margin-top: 12px !important; }
html body .pt-upload-title { font-size: 14px; font-weight: 600; margin-bottom: 12px !important; }
html body .pt-progress { height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; }
html body .pt-progress-bar { height: 100%; background: var(--accent); border-radius: 4px; transition: width .15s; }
html body .pt-meter { height: 4px; border-radius: 2px; background: var(--border); overflow: hidden; }
html body .pt-meter-bar { height: 100%; border-radius: 2px; transition: width .3s, background .3s; }
/* Document status icons */
html body .doc-icon.pt-tone-ok   { background: var(--success-soft); color: var(--success); }
html body .doc-icon.pt-tone-warn { background: var(--warning-soft); color: var(--warning); }
html body .doc-icon.pt-tone-bad  { background: var(--danger-soft);  color: var(--danger); }
html body .doc-icon.pt-tone-none { background: var(--surface2);     color: var(--text-muted); }

/* ── Cost centre ──────────────────────────────────────────────────────── */
html body .pt-cc-pill { margin-left: auto !important; padding: 10px 20px !important; border-radius: 12px; font-weight: 700; font-size: 15px; background: var(--surface2); color: var(--text-mid, var(--text)); border: 1px solid var(--border); }
html body .pt-cc-pill.is-bad { background: var(--danger-soft); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, transparent); }
html body .pt-cc-pill.is-ok { background: var(--surface2); color: var(--text); }
html body .pt-tbl { width: 100%; border-collapse: collapse; font-size: 12px; }
html body .pt-tbl0 { width: 100%; border-collapse: collapse; }
html body .pt-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
html body .pt-cc-head { background: var(--surface2); color: var(--text-muted); text-transform: uppercase; font-size: 11px; letter-spacing: .04em; }
html body .pt-cc-head > th { border-bottom: 1px solid var(--border); }
html body .pt-cc-total { background: var(--surface2); color: var(--text); font-weight: 700; }
html body .pt-cc-total > td { border-top: 1.5px solid var(--border); }
html body .pt-tbl.pt-striped > tbody > tr:nth-child(even) { background: var(--surface2); }
html body .pt-row-soft { background: var(--accent-soft); }
html body .pt-row-strong { background: var(--surface2); font-weight: 700; }
html body .pt-cell { padding: 8px 10px !important; } html body .pt-cell6 { padding: 6px 10px !important; } html body .pt-cell8 { padding: 8px !important; }
html body .pt-th-xs { padding: 4px 8px !important; font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; }
html body .pt-w36 { width: 36px; }
/* P&L summary rows */
html body .pt-pl-row > td { padding: 10px !important; font-size: 13px; border-bottom: 1px solid var(--border); }
html body .pt-pl-row > td:first-child { font-weight: 600; color: var(--text-muted); width: 36px; }
html body .pt-pl-row > td:last-child { text-align: right !important; font-family: var(--vq-mono, monospace) !important; font-variant-numeric: tabular-nums; white-space: nowrap; }
html body .pt-pl-row.is-final { background: var(--surface2); }
html body .pt-pl-row.is-final > td { padding: 12px 10px !important; border-top: 2px solid var(--border); border-bottom: 0; font-weight: 700; }
html body .pt-pl-row.is-final > td:last-child { font-size: 16px; }
html body .pt-pl-row .is-bad, html body .pt-pl-row > td.is-bad { color: var(--danger); }

/* ── ID card and profile ──────────────────────────────────────────────── */
html body .pt-idcard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start !important; }
html body .pt-photo-wrap { width: 120px; height: 140px; border-radius: 8px; overflow: hidden; background: var(--surface2); border: 2px solid var(--border); margin: 0 auto 16px !important; display: flex; align-items: center !important; justify-content: center !important; }
html body .pt-fill-img { width: 100%; height: 100%; object-fit: cover; }
html body .pt-avatar-img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
html body .pt-video { width: 100%; border-radius: 8px; background: #000; max-height: 220px; }
html body .pt-r10 { border-radius: 10px; }
html body .pt-idcard-canvas { width: 100%; border-radius: 4px; box-shadow: 0 4px 20px rgba(0,0,0,.15); display: block; }
html body .pt-profile { max-width: 560px; margin: 0 auto !important; display: flex; flex-direction: column; gap: 20px; }
html body .pt-prof-avatar { width: 96px; height: 96px; border-radius: 50%; overflow: hidden; background: var(--surface2); border: 3px solid var(--border); flex-shrink: 0; display: flex; align-items: center !important; justify-content: center !important; font-size: 36px; }
html body .pt-maxw200 { max-width: 200px; }

/* ── Help ─────────────────────────────────────────────────────────────── */
html body .pt-help-intro { background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); padding: 14px !important; margin-bottom: 16px !important; }
html body .pt-help-intro-h { font-size: 15px; margin: 0 0 8px !important; color: var(--text); }
html body .pt-help-gate { background: var(--warning-soft); border: 1px solid color-mix(in srgb, var(--warning) 35%, transparent); }
html body .pt-gate-foot { font-size: 11px; color: var(--text-mid, var(--text)); margin: 10px 0 0 !important; }
html body .pt-bb { border-bottom: 1px solid var(--border); }
html body .pt-journey { font-size: 12px; text-align: center !important; line-height: 2; }
html body .pt-journey-step { display: inline-block; padding: 6px 10px !important; background: var(--surface2); border: 1px solid var(--border); border-radius: 4px; margin: 0 2px !important; font-weight: 600; }
html body .pt-journey-step.pt-journey-end { background: var(--success-soft); border-color: color-mix(in srgb, var(--success) 35%, transparent); }
html body .pt-guide { padding: 10px !important; background: var(--surface2); border-left: 4px solid var(--border); border-radius: 4px; }
html body .pt-guide-accent { border-left-color: var(--accent); }
html body .pt-guide-warn { border-left-color: var(--warning); }
html body .pt-guide-ok { border-left-color: var(--success); }
html body .pt-train-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-bottom: 12px !important; }
html body .pt-train-card { border: 1px solid var(--border); border-radius: 8px; padding: 12px !important; text-align: center !important; }
html body .pt-train-icon { font-size: 22px; margin-bottom: 6px !important; }

/* ── Map ──────────────────────────────────────────────────────────────── */
html body .pt-map { width: 100%; height: 500px; border-radius: 12px; overflow: hidden; border: 1.5px solid var(--border); background: var(--surface2); display: flex; align-items: center !important; justify-content: center !important; }
html body .pt-map-pop { font-size: 12px; min-width: 200px; line-height: 1.6; }

html body .pt-toasts { position: fixed; bottom: 16px; right: 16px; z-index: 3000; display: flex; flex-direction: column; gap: 8px; max-width: min(420px, calc(100vw - 32px)); }

/* ── Layout ───────────────────────────────────────────────────────────── */
html body .pt-flex { display: flex; } html body .pt-col { display: flex; flex-direction: column; } html body .pt-grid { display: grid; }
html body .pt-iblock { display: inline-block; }
html body .pt-wrap { flex-wrap: wrap; } html body .pt-grow { flex: 1; } html body .pt-noshrink { flex-shrink: 0; }
html body .pt-ic { align-items: center !important; } html body .pt-is { align-items: flex-start !important; }
html body .pt-between { justify-content: space-between !important; }
html body .pt-gap6 { gap: 6px; } html body .pt-gap8 { gap: 8px; } html body .pt-gap10 { gap: 10px; } html body .pt-gap12 { gap: 12px; }
html body .pt-gap14 { gap: 14px; } html body .pt-gap20 { gap: 20px; }
html body .pt-cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
html body .pt-span-all { grid-column: 1 / -1; }
html body .pt-rel { position: relative; }
html body .pt-minw0 { min-width: 0; } html body .pt-minw220 { min-width: 220px; } html body .pt-w100 { width: 100%; }

/* Spacing (same strength as the inline styles they replace) */
html body .pt-m0010 { margin: 0 0 10px !important; }
html body .pt-mt2 { margin-top: 2px !important; } html body .pt-mt3 { margin-top: 3px !important; }
html body .pt-mt10only { margin: 10px 0 0 !important; }
html body .pt-mb18 { margin-bottom: 18px !important; } html body .pt-mb28 { margin-bottom: 28px !important; }
html body .pt-ml4 { margin-left: 4px !important; } html body .pt-ml8 { margin-left: 8px !important; } html body .pt-mlauto { margin-left: auto !important; }
html body .pt-p16 { padding: 16px !important; } html body .pt-p20 { padding: 20px !important; } html body .pt-p24 { padding: 24px !important; }
html body .pt-p32 { padding: 32px !important; } html body .pt-p40 { padding: 40px !important; }
html body .pt-px0 { padding-left: 0 !important; padding-right: 0 !important; } html body .pt-py6 { padding-top: 6px !important; padding-bottom: 6px !important; }

/* ── Phones ───────────────────────────────────────────────────────────── */
@media (max-width: 520px) {
  html body :is(.pt-cols-2, .pt-csm-grid) { grid-template-columns: 1fr; }
  html body .pt-modal-box, html body .pt-dlg { padding: 22px 18px !important; }
  html body .pt-cc-pill { margin-left: 0 !important; width: 100%; }
  html body .pt-q-actions { flex-direction: row; flex-wrap: wrap; min-width: 0; width: 100%; }
  html body .pt-review-actions { width: 100%; }
  html body .pt-map { height: 420px; }
}

/* Earlier Claims legend: the same tones as the status pills */
html body .exp-legend-dot-draft, html body .exp-legend-dot-batched { background: var(--text-muted); }
html body .exp-legend-dot-submitted { background: var(--accent); }
html body .exp-legend-dot-approved, html body .exp-legend-dot-paid { background: var(--success); }
html body .exp-legend-dot-rejected { background: var(--danger); }

/* Combinations whose order in this file would otherwise lose */
html body .pt-tbl.pt-fs13 { font-size: 13px; }
html body .pt-dlg-title.pt-fs20 { font-size: 20px; }
html body .pt-cols-2.pt-gap8 { gap: 8px; }

/* ── My Commissions on the design system (Phase 5, screen 4) — ds- tokens only ── */
.pt-ds { display: flex; flex-direction: column; gap: var(--ds-space-4); background: transparent; }
.pt-ds .ds-card-head { flex-wrap: wrap; gap: var(--ds-space-2); }
.pt-ds-head { display: flex; justify-content: space-between; align-items: center; }
.pt-ds-filter { align-items: flex-end; margin-bottom: var(--ds-space-3); }
.pt-ds-filter .ds-field { margin: 0; min-width: 0; }
.pt-ds-hint { flex: 1 1 260px; margin: 0; }
.pt-ds-tilebtn { all: unset; display: block; cursor: pointer; border-radius: var(--ds-radius); }
.pt-ds-tilebtn:focus-visible { outline: 3px solid var(--ds-focus); outline-offset: 2px; }
.pt-ds-tilebtn:hover .ds-kpi { border-color: var(--ds-accent); }
.pt-ds-tier { display: flex; flex-direction: column; gap: var(--ds-space-3); margin-bottom: var(--ds-space-4); }
.pt-ds-batches { margin-top: var(--ds-space-4); }
.pt-ds-batchlist { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--ds-space-2); grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.pt-ds-batchlist li { display: flex; flex-direction: column; gap: 2px; padding: var(--ds-space-3); border: 1px solid var(--ds-divider); border-radius: var(--ds-radius-sm); background: var(--ds-surface-2); }
.pt-ds-amt { font-weight: var(--ds-weight-semibold); }
.pt-ds .ds-table td small { display: block; }
.pt-ds-note { display: block; color: var(--ds-warning); }
.pt-ds-total { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--ds-space-2); padding: var(--ds-space-3) 0 0; font-size: var(--ds-text-sm); }
.pt-ds th { font-family: var(--ds-font); }

/* ── Capture Outcome on the design system (Phase 5, screen 5) — look only; ids, steps and rules unchanged ── */
html body .pt-cap-steps { background: transparent; margin: 0 0 var(--ds-space-4); }
html body .pt-cap-now { margin: 0 0 var(--ds-space-2); font-size: var(--ds-text-sm); font-weight: var(--ds-weight-semibold); color: var(--ds-text); }
html body .pt-cap-steps ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--ds-space-1); }
html body .pt-cap-steps button { all: unset; box-sizing: border-box; display: flex; flex-direction: column; gap: 6px; width: 100%; min-height: 44px; cursor: pointer;
  font-size: var(--ds-text-xs); color: var(--ds-text-muted); }
html body .pt-cap-steps button::before { content: ""; display: block; height: 6px; border-radius: var(--ds-radius-pill); background: var(--ds-divider); }
html body .pt-cap-steps button[data-state="done"] { color: var(--ds-success); }
html body .pt-cap-steps button[data-state="done"]::before { background: var(--ds-success); }
html body .pt-cap-steps button[aria-current="step"] { color: var(--ds-text); font-weight: var(--ds-weight-semibold); }
html body .pt-cap-steps button[aria-current="step"]::before { background: var(--ds-accent); }
html body .pt-cap-steps button:disabled { cursor: default; }
html body .pt-cap-steps button:focus-visible { outline: 3px solid var(--ds-focus); outline-offset: 2px; border-radius: var(--ds-radius-sm); }

html body .pt-cap .step-card { background: var(--ds-surface); border: 1px solid var(--ds-divider); border-radius: var(--ds-radius); box-shadow: var(--ds-shadow-sm);
  padding: var(--ds-space-5); margin-bottom: var(--ds-space-3); color: var(--ds-text); }
html body .pt-cap .step-card.done { border-color: var(--ds-success); }
html body .pt-cap .step-num { background: var(--ds-accent); color: var(--ds-on-accent); font-family: var(--ds-font-num); }
html body .pt-cap .step-card.done .step-num { background: var(--ds-success); color: var(--ds-on-success); }
html body .pt-cap .step-title { font-size: var(--ds-text-md); color: var(--ds-text); }
html body .pt-cap .step-hdr p { color: var(--ds-text-muted); font-size: var(--ds-text-sm); }
/* A step that isn't open yet is one short line ("Choose the bank first") instead of a greyed-out form */
html body .pt-cap .step-card.locked { opacity: 1; padding-block: var(--ds-space-3); box-shadow: none; background: var(--ds-surface-2); }
html body .pt-cap .step-card.locked > :not(.step-hdr) { display: none !important; }
html body .pt-cap .step-card.locked .step-hdr { margin-bottom: 0; align-items: center; }
html body .pt-cap .step-card.locked .step-hdr p { display: none; }
html body .pt-cap .step-card.locked .step-num { background: var(--ds-divider); color: var(--ds-text-muted); }
html body .pt-cap .step-card.locked .step-title { color: var(--ds-text-2); }
html body .pt-cap .step-card { position: relative; }
html body .pt-cap .step-card.locked[data-wait]::after { content: attr(data-wait); position: absolute; right: var(--ds-space-5); top: 50%; transform: translateY(-50%); max-width: 40%; font-size: var(--ds-text-xs); color: var(--ds-text-muted); text-align: right; }

/* Choices: 44px tap targets; the chosen one uses the main colour with its own text colour */
html body .pt-cap .pill, html body .pt-cap .outcome-btn { min-height: 44px; border: 1px solid var(--ds-border); background: var(--ds-surface); color: var(--ds-text); border-radius: var(--ds-radius-sm); }
html body .pt-cap .pill:hover, html body .pt-cap .outcome-btn:hover { border-color: var(--ds-accent); color: var(--ds-text); }
html body .pt-cap .pill.sel, html body .pt-cap .outcome-btn.sel { background: var(--ds-primary); border-color: var(--ds-primary); color: var(--ds-on-primary); }
html body .pt-cap .outcome-btn.sel .ob-hint { color: var(--ds-on-primary); opacity: .85; }
html body .pt-cap .pill:focus-visible, html body .pt-cap .outcome-btn:focus-visible { outline: 3px solid var(--ds-focus); outline-offset: 2px; }

/* Fields */
html body .pt-cap .fg label { color: var(--ds-text-2); font-size: var(--ds-text-sm); }
html body .pt-cap .fg input:not([type="checkbox"]):not([type="hidden"]), html body .pt-cap .fg select, html body .pt-cap .fg textarea,
html body .pt-cap .search-row input, html body .pt-cap .collected-row input {
  min-height: var(--ds-control-h); border: 1px solid var(--ds-border); border-radius: var(--ds-radius-sm); background: var(--ds-surface); color: var(--ds-text); font-family: var(--ds-font); }
html body .pt-cap .fg input:focus-visible, html body .pt-cap .fg select:focus-visible, html body .pt-cap .fg textarea:focus-visible,
html body .pt-cap .search-row input:focus-visible, html body .pt-cap .collected-row input:focus-visible { outline: 3px solid var(--ds-focus); outline-offset: 1px; box-shadow: none; }
html body .pt-cap .pt-cap-date { flex: 1; min-width: 0; }
html body .pt-cap .ds-date-wrap { display: flex; gap: var(--ds-space-2); align-items: center; }
html body .pt-cap .btn-submit { background: var(--ds-primary); color: var(--ds-on-primary); min-height: 48px; border-radius: var(--ds-radius-sm); box-shadow: none; }
html body .pt-cap .btn-submit:disabled { background: var(--ds-divider); color: var(--ds-text-muted); }
html body .pt-cap .cap-save-later { color: var(--ds-accent-text); min-height: 44px; }
@media (max-width: 640px) {
  html body .pt-cap-steps button { font-size: 11px; }
  html body .pt-cap .step-card { padding: var(--ds-space-4); }
  html body .pt-cap .step-card.locked[data-wait]::after { position: static; transform: none; display: block; max-width: none; text-align: left; margin: 4px 0 0 42px; }
}

/* ── My Activity on the design system (Phase 5, screen 8) ── */
.pt-act-month { flex-wrap: nowrap; }
.pt-act-month .ds-select { width: auto; min-width: 0; }
.pt-act-sum { margin: var(--ds-space-4) 0 0; padding: var(--ds-space-3) var(--ds-space-4); border: 1px solid var(--ds-divider); border-radius: var(--ds-radius-sm); background: var(--ds-surface-2); display: grid; gap: var(--ds-space-1); max-width: 460px; }
.pt-act-sum > div { display: flex; justify-content: space-between; gap: var(--ds-space-3); font-size: var(--ds-text-sm); }
.pt-act-sum dt { color: var(--ds-text-2); }
.pt-act-sum dd { margin: 0; }
.pt-act-sum-total { border-top: 1px solid var(--ds-divider); padding-top: var(--ds-space-2); margin-top: var(--ds-space-1); font-weight: var(--ds-weight-semibold); }
.pt-act-sum-total dt { color: var(--ds-text); }
.pt-act-minus { color: var(--ds-danger); }
#act-none { margin: 0; padding: 0 var(--ds-space-2); } #act-none:empty { display: none; }

/* ── My Documents on the design system (Phase 5, screen 9) ── */
.pt-doc-checks, .pt-doc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.pt-doc-check, .pt-doc-row { display: grid; gap: var(--ds-space-2) var(--ds-space-3); align-items: center; padding: var(--ds-space-3) 0; border-bottom: 1px solid var(--ds-divider); }
.pt-doc-check:last-child, .pt-doc-row:last-child { border-bottom: 0; }
.pt-doc-check { grid-template-columns: 180px auto 1fr auto; }
.pt-doc-row { grid-template-columns: 1fr auto auto; }
.pt-doc-check-name, .pt-doc-name { font-weight: var(--ds-weight-semibold); color: var(--ds-text); }
.pt-doc-name small, .pt-doc-row small { display: block; font-weight: var(--ds-weight-regular); }
.pt-doc-check-text { margin: 0; }
.pt-doc-acts { justify-content: flex-end; }
.pt-doc-upload { margin-top: var(--ds-space-4); padding: var(--ds-space-4); border: 1px solid var(--ds-accent); border-radius: var(--ds-radius-sm); background: var(--ds-surface-2); display: flex; flex-direction: column; gap: var(--ds-space-3); }
.pt-doc-upload.hidden { display: none; }
.pt-doc-upload-title { margin: 0; font-size: var(--ds-text-md); font-weight: var(--ds-weight-semibold); color: var(--ds-text); }
.pt-doc-upload .ds-field { margin: 0; }
@media (max-width: 640px) {
  .pt-doc-check { grid-template-columns: 1fr auto; }
  .pt-doc-check-text, .pt-doc-check-act { grid-column: 1 / -1; }
  .pt-doc-row { grid-template-columns: 1fr auto; }
  .pt-doc-acts { grid-column: 1 / -1; justify-content: flex-start; }
}

/* ── Advances on the design system (Phase 5, screen 10) ── */
.pt-adv-what { margin: 0 0 var(--ds-space-3); }
.pt-adv-sum { margin-top: 0; }
.pt-adv-progress { margin-top: var(--ds-space-4); max-width: 460px; }
.pt-adv-plan { margin-top: var(--ds-space-4); }
.pt-adv-plan > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; color: var(--ds-accent-text); font-weight: var(--ds-weight-semibold); font-size: var(--ds-text-sm); }
.pt-adv-plan > summary:focus-visible { outline: 3px solid var(--ds-focus); outline-offset: 2px; }
.pt-adv, .pt-adv .ds-card { min-width: 0; max-width: 100%; }
.pt-adv-progress { max-width: min(460px, 100%); }
.pt-adv-progress .ds-progress-text { flex-wrap: wrap; gap: var(--ds-space-2); }
.pt-ds th { font-family: var(--ds-font) !important; }

/* ── My Profile on the design system (Phase 5, screen 14) — look only ── */
html body .pt-prof-ds { background: transparent; }
html body .pt-prof-ds .step-card { background: var(--ds-surface); border: 1px solid var(--ds-divider); border-radius: var(--ds-radius); box-shadow: var(--ds-shadow-sm); color: var(--ds-text); }
html body .pt-prof-ds .ds-card-title { margin: 0 0 var(--ds-space-1); }
html body .pt-prof-ds .pt-note { color: var(--ds-text-muted); font-size: var(--ds-text-sm); }
html body .pt-prof-ds .pt-label { color: var(--ds-text-2); font-size: var(--ds-text-sm); font-weight: var(--ds-weight-semibold); }
html body .pt-prof-ds .form-control { min-height: var(--ds-control-h); border: 1px solid var(--ds-border); border-radius: var(--ds-radius-sm); background: var(--ds-surface); color: var(--ds-text); font-family: var(--ds-font); }
html body .pt-prof-ds textarea.form-control { min-height: 72px; }
html body .pt-prof-ds .form-control:focus-visible { outline: 3px solid var(--ds-focus); outline-offset: 1px; box-shadow: none; }
html body .pt-prof-ds .ds-btn { min-height: 44px; }
html body .pt-prof-ds .ds-date-wrap { display: flex; gap: var(--ds-space-2); align-items: center; }
html body .pt-prof-ds .form-control { width: 100%; padding: 8px 12px; box-sizing: border-box; font-size: var(--ds-text-md); }
html body .pt-prof-ds .pw-wrap .form-control { padding-right: 44px; }
html body .pt-prof-ds .pt-maxw200, html body .pt-prof-ds .ds-date-wrap { max-width: 260px; }
