/* =====================================================================
 * FILE     : assets/css/pt.css
 * VERSION  : v1.3
 * DATE     : 29/10/2026
 * USED BY  : config/head.php (every page)
 * NEEDS    : Figtree + Barlow Semi Condensed (Google Fonts), Font Awesome 5 (assets/fonts)
 * ---------------------------------------------------------------------
 * CHANGE LOG
 *   v1.3 29/10/2026 (SM) Project list (RECODA staff): an ALL / agency badge
 *                   above the totals, in PAYTRACK navy for ALL and in the
 *                   agency colour once an agency is chosen.
 *   v1.2 29/10/2026 (SM) Easier to tap on a phone: the agency buttons, the
 *                   PAYTRACK logo, the show / hide password eye, the "Forgot
 *                   password?" link and the two "I agree" lines on the
 *                   sign-up form are now at least a finger high (44 px). The
 *                   project search box has its own large clear (x) button.
 *                   Pop-up boxes (Terms, Privacy, About) now always fit the
 *                   visible part of a phone screen, so their Close button is
 *                   never hidden behind the phone's address bar.
 *   v1.1 29/10/2026 (SM) Search box and agency chips on the project list did
 *                   nothing on screen: the list counted the right projects but
 *                   every card stayed visible, because the card style
 *                   (display:block) overruled the browser's "hidden" switch. One
 *                   rule now makes anything marked hidden disappear on every
 *                   PAYTRACK page.
 *   v1  28/10/2026  (SM) New PAYTRACK look - the RPMS "monday-style" theme in
 *                   PAYTRACK navy. One stylesheet for the whole site (the old
 *                   pages loaded 6-10 files). Phone first; tested at 360, 390,
 *                   768 and 1366 px wide with no sideways scrolling. Light mode
 *                   only. Nothing blinks or loops; every movement plays once
 *                   and switches off for users who ask for less motion.
 *                   Signed-in pages: #ptPage (+ #ptTop bar, #ptTabs phone bar,
 *                   #ptFoot). Public pages: #ptAuth (dark glass sign-in style).
 * ===================================================================== */

/* ---------------------------------------------------------------------
 * 1. Tokens (scoped - nothing leaks into other code)
 * ------------------------------------------------------------------- */
#ptPage, #ptTop, #ptTabs, #ptFoot, .pt-dialog {
    --brand: #2d326f; --brand-d: #22265a; --brand-2: #4a52b8; --brand-soft: #eceefa;
    --card: #fff; --ink: #323338; --muted: #676879; --line: #e6e9ef; --hover: #f5f6f8; --track: #eef0f4;
    --bg: #f3f5fb; --sel: #e5f0ff;
    --shadow: 0 4px 14px rgba(0, 0, 0, .06); --shadow-h: 0 8px 22px rgba(20, 24, 60, .12);
    --ok: #00c875; --ok-d: #00a862; --ok-t: #00a35c;
    --warn: #fdab3d; --warn-d: #e48a31;
    --bad: #e2445c; --bad-d: #c0392b;
    --info: #579bfc; --grey: #c4c4c4; --grey-2: #9aa0b4;
    --ring: 0 0 0 3px rgba(45, 50, 111, .28);
    font-family: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    color: var(--ink);
}
#ptAuth {
    --brand: #2d326f; --ink: #eef2ff; --muted: #a9b4d6; --glass: rgba(255, 255, 255, .06);
    --line: rgba(255, 255, 255, .14); --field: rgba(255, 255, 255, .07);
    --ok: #21c47b; --warn: #ffb020; --bad: #ff5a6e; --link: #9fbaff;
    font-family: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    color: var(--ink); -webkit-font-smoothing: antialiased;
    position: relative; min-height: 100vh; line-height: 1.5;
}
#ptPage *, #ptPage *::before, #ptPage *::after, #ptTop *, #ptTabs *, #ptAuth *, #ptAuth *::before, #ptAuth *::after,
.pt-dialog, .pt-dialog * { box-sizing: border-box; }
#ptPage button, #ptPage input, #ptPage select, #ptPage textarea,
#ptAuth button, #ptAuth input, #ptAuth select, #ptAuth textarea, .pt-dialog button { font: inherit; }

/* agency colours - ONE map (RPMS canonical) */
[data-ag] { --ag: #9aa0b4; }
[data-ag="URDA"] { --ag: #5559df; } [data-ag="HDA"] { --ag: #0086c0; } [data-ag="NRDA"] { --ag: #9d50dd; }
[data-ag="FEDERAL"] { --ag: #00a19a; } [data-ag="LAWAS"] { --ag: #ff642e; } [data-ag="MMMLL"] { --ag: #bb3354; }
[data-ag="NCH"] { --ag: #784bd1; } [data-ag="ALL"] { --ag: #2d326f; }

/* ---------------------------------------------------------------------
 * 2. Page frame (signed-in)
 * ------------------------------------------------------------------- */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body.pt-app {
    margin: 0; background: #f3f5fb; color: #323338; line-height: 1.5;
    font-family: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    overflow-x: hidden;
}
.pt-skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #2d326f; color: #fff;
    padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.pt-skip:focus { left: 12px; }
.pt-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* top bar: sticky on every size; phone shows logo + page title */
.pt-top { position: sticky; top: 0; z-index: 40; background: #fff; border-top: 3px solid var(--brand);
    border-bottom: 1px solid var(--line); box-shadow: 0 2px 10px rgba(20, 24, 60, .05);
    padding-top: env(safe-area-inset-top); }
.pt-top-in { max-width: 1100px; margin: 0 auto; height: 58px; padding: 0 16px; display: flex; align-items: center; gap: 12px; }
.pt-brand { display: flex; align-items: center; flex: none; min-height: 44px; text-decoration: none; border-radius: 8px; }
.pt-brand img { display: block; height: 26px; width: auto; }
.pt-top-title { flex: 1 1 auto; min-width: 0; font-family: 'Barlow Semi Condensed', sans-serif; font-weight: 800;
    font-size: 17px; letter-spacing: .4px; text-transform: uppercase; color: var(--brand); line-height: 1.1;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-left: 1px solid var(--line); padding-left: 12px; }
.pt-desk { display: none; }
.pt-user { display: none; }

/* content */
.pt-main { display: block; max-width: 1100px; margin: 0 auto; padding: 16px 16px 24px; }
.pt-head { margin: 4px 0 16px; }
.pt-head h1 { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -.3px; line-height: 1.2; color: var(--ink); }
.pt-sub { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.pt-head h1 span { color: var(--brand); }

/* footer + phone tab bar */
.pt-foot { text-align: center; color: var(--muted); font-size: 12.5px; padding: 8px 16px 16px; }
.pt-tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: grid; grid-template-columns: repeat(4, 1fr);
    background: var(--brand); padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -4px 16px rgba(20, 24, 60, .18); }
.pt-tabs a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 58px;
    color: rgba(255, 255, 255, .74); text-decoration: none; font-size: 11px; font-weight: 800; letter-spacing: .5px;
    text-transform: uppercase; position: relative; transition: color .15s, background .15s; }
.pt-tabs a i { font-size: 18px; }
.pt-tabs a:hover, .pt-tabs a:focus-visible { color: #fff; background: rgba(255, 255, 255, .08); outline: none; }
.pt-tabs a.on { color: #fff; }
.pt-tabs a.on::before { content: ""; position: absolute; top: 0; left: 28%; right: 28%; height: 3px; border-radius: 0 0 3px 3px;
    background: #fff; }
/* room under the content for the fixed tab bar */
body.pt-app { padding-bottom: calc(58px + env(safe-area-inset-bottom)); }

@media (min-width: 768px) {
    body.pt-app { padding-bottom: 0; }
    .pt-tabs { display: none; }
    .pt-top-in { height: 68px; padding: 0 24px; gap: 18px; }
    .pt-brand img { height: 34px; }
    .pt-top-title { display: none; }
    .pt-desk { display: flex; gap: 4px; margin-left: auto; }
    .pt-desk a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 10px;
        color: var(--muted); font-weight: 700; font-size: 14.5px; text-decoration: none; transition: background .15s, color .15s; }
    .pt-desk a:hover { background: var(--hover); color: var(--ink); }
    .pt-desk a.on { background: var(--brand-soft); color: var(--brand); }
    .pt-desk a.out:hover { background: #ffe8eb; color: #c3203f; }
    .pt-user { display: flex; align-items: center; gap: 10px; max-width: 260px; min-height: 44px; padding: 4px 12px 4px 4px;
        border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); background: #fff;
        transition: box-shadow .15s; }
    .pt-user:hover { box-shadow: var(--shadow-h); }
    .pt-user .av { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff;
        display: grid; place-items: center; font-size: 13px; font-weight: 800; letter-spacing: .3px; }
    .pt-user .nm { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .pt-main { padding: 28px 24px 32px; }
    .pt-head { margin: 0 0 20px; }
}
@media (max-width: 767px) {
    /* the phone bar already shows the title: keep the H1 for screen readers only */
    .pt-head h1 { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
    .pt-head { margin: 0 0 12px; }
    .pt-head:not(:has(.pt-sub)) { margin: 0; }
}
@media (max-width: 380px) {
    .pt-brand img { height: 22px; }
    .pt-top-title { font-size: 15.5px; padding-left: 10px; }
}

/* focus ring everywhere (keyboard only) */
#ptPage a:focus-visible, #ptPage button:focus-visible, #ptPage summary:focus-visible, #ptTop a:focus-visible,
.pt-dialog button:focus-visible, .pt-dialog a:focus-visible { outline: none; box-shadow: var(--ring); }

/* ---------------------------------------------------------------------
 * 3. Cards, lists, sections
 * ------------------------------------------------------------------- */
.pt-card { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
    padding: 16px 14px; color: var(--ink); }
.pt-card + .pt-card { margin-top: 14px; }
a.pt-card { text-decoration: none; transition: transform .15s, box-shadow .15s, border-color .15s; }
a.pt-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-h); border-color: #d6daea; }
.pt-card-h { margin: 0 0 4px; font-size: 19px; font-weight: 700; line-height: 1.3; }
.pt-card-sub { margin: 0 0 14px; font-size: 13px; color: var(--muted); line-height: 1.45; }
.pt-sec-h { margin: 22px 0 10px; font-size: 13px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase;
    color: var(--muted); display: flex; align-items: center; gap: 10px; }
.pt-sec-h::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.pt-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 14px; }
.pt-list > .pt-card + .pt-card { margin-top: 0; }
.pt-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.pt-muted { color: var(--muted); }
.pt-num, [data-pt-count] { font-variant-numeric: tabular-nums; }
@media (min-width: 768px) { .pt-card { padding: 20px 22px; } }

/* project card (project list) */
.pt-proj { position: relative; border-left: 4px solid var(--brand); padding-right: 40px; }
.pt-proj-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.pt-proj-no { font-weight: 800; font-size: 15px; color: var(--brand); word-break: break-word; }
.pt-proj-nm { font-size: 14px; line-height: 1.45; color: var(--ink); margin-bottom: 10px; word-break: break-word; }
.pt-proj-sum { font-size: 13px; color: var(--muted); }
.pt-proj-sum b { color: var(--ink); font-weight: 800; font-variant-numeric: tabular-nums; }
.pt-proj-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap;
    margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.pt-counts { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.pt-counts .u { color: var(--bad-d); } .pt-counts .p { color: var(--ok-t); }
.pt-go { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: #c3c6d4; font-size: 14px;
    transition: transform .15s, color .15s; }
a.pt-card:hover .pt-go { color: var(--brand); transform: translate(3px, -50%); }

/* project header (overview / status) */
.pt-phead { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.pt-phead .no { font-weight: 800; color: var(--brand); font-size: 15px; }
.pt-phead .nm { font-size: 15px; line-height: 1.45; flex: 1 1 100%; }
.pt-phead .sum { font-size: 13px; color: var(--muted); }
.pt-phead .sum b { color: var(--ink); font-variant-numeric: tabular-nums; }

/* key / value rows (profile) */
.pt-kv { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 0; }
.pt-kv div { min-width: 0; }
.pt-kv dt { font-size: 11.5px; font-weight: 800; letter-spacing: .45px; text-transform: uppercase; color: var(--muted); }
.pt-kv dd { margin: 2px 0 0; font-size: 15px; font-weight: 600; word-break: break-word; }
@media (min-width: 640px) { .pt-kv { grid-template-columns: 1fr 1fr; } }

/* ---------------------------------------------------------------------
 * 4. Tiles (overview: UNPAID / PAID)
 * ------------------------------------------------------------------- */
.pt-tiles { display: grid; grid-template-columns: 1fr; gap: 14px; margin: 14px 0; }
@media (min-width: 520px) { .pt-tiles { grid-template-columns: 1fr 1fr; } }
.pt-tile { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; min-height: 150px;
    padding: 20px 22px; border-radius: 16px; color: #fff; text-decoration: none; box-shadow: 0 6px 18px rgba(20, 24, 60, .14);
    transition: transform .15s, box-shadow .15s; }
.pt-tile:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(20, 24, 60, .22); }
.pt-tile:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(45, 50, 111, .35); }
.pt-tile.unpaid { background: linear-gradient(135deg, #e2445c 0%, #c0392b 100%); }
.pt-tile.paid { background: linear-gradient(135deg, #00c875 0%, #00a862 100%); }
.pt-tile .bg { position: absolute; right: -8px; top: -10px; font-size: 104px; opacity: .16; pointer-events: none; }
.pt-tile .num { font-family: 'Barlow Semi Condensed', sans-serif; font-weight: 800; font-size: 64px; line-height: .95;
    font-variant-numeric: tabular-nums; }
.pt-tile .lbl { font-family: 'Barlow Semi Condensed', sans-serif; font-weight: 800; font-size: 22px; letter-spacing: .8px;
    text-transform: uppercase; margin-top: 2px; }
.pt-tile .sum { font-size: 13.5px; font-weight: 600; opacity: .95; margin-top: 6px; font-variant-numeric: tabular-nums;
    word-break: break-word; }
.pt-tile .sum b { font-weight: 800; }
.pt-tile .cta { position: absolute; right: 18px; bottom: 18px; width: 34px; height: 34px; border-radius: 50%;
    background: rgba(255, 255, 255, .22); display: grid; place-items: center; font-size: 13px; transition: transform .15s; }
.pt-tile:hover .cta { transform: translateX(3px); }

/* ---------------------------------------------------------------------
 * 5. Pills, chips, agency badge, segmented tabs
 * ------------------------------------------------------------------- */
.pt-pill { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; border-radius: 999px; padding: 4px 10px;
    font-size: 11.5px; font-weight: 800; letter-spacing: .3px; line-height: 1.3; text-transform: uppercase;
    background: #f1f2f6; color: #676879; }
.pt-pill.ok { background: #e5f9f0; color: #037f4c; }
.pt-pill.bad { background: #ffe8eb; color: #c3203f; }
.pt-pill.warn { background: #fff4e0; color: #b36b00; }
.pt-pill.info { background: #e3f4fb; color: #006d9c; }
.pt-pill.act { background: #e8f0ff; color: #2a5bd7; }
.pt-pill.mute { background: #f1f2f6; color: #676879; }

.pt-ag { display: inline-block; border-radius: 6px; padding: 2px 8px; font-size: 11px; font-weight: 800; letter-spacing: .4px;
    line-height: 1.5; text-transform: uppercase; color: #fff; background: var(--ag, #9aa0b4); }

.pt-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pt-chip { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 14px; border-radius: 999px;
    border: 1.5px solid var(--line); background: #fff; color: var(--ink); font-size: 13px; font-weight: 700; cursor: pointer;
    text-decoration: none; transition: background .15s, border-color .15s, color .15s; }
.pt-chip:hover { border-color: #c9cde0; background: var(--hover); }
.pt-chip .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ag, #9aa0b4); flex: none; }
.pt-chip.on, .pt-chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.pt-chip.on .dot, .pt-chip[aria-pressed="true"] .dot { box-shadow: 0 0 0 2px #fff; }

.pt-seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--track); max-width: 100%; }
.pt-seg a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px;
    border-radius: 9px; color: var(--muted); font-weight: 800; font-size: 13px; letter-spacing: .4px; text-transform: uppercase;
    text-decoration: none; transition: background .15s, color .15s; }
.pt-seg a:hover { color: var(--ink); }
.pt-seg a.on { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(20, 24, 60, .12); }
.pt-seg a.on.unpaid { color: var(--bad-d); } .pt-seg a.on.paid { color: var(--ok-t); }
.pt-seg .n { min-width: 22px; padding: 0 6px; border-radius: 999px; background: rgba(0, 0, 0, .07); font-size: 12px;
    line-height: 20px; text-align: center; font-variant-numeric: tabular-nums; }
@media (max-width: 420px) { .pt-seg { display: flex; } .pt-seg a { flex: 1 1 0; padding: 0 8px; } }

/* ---------------------------------------------------------------------
 * 6. Buttons
 * ------------------------------------------------------------------- */
.pt-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px;
    border-radius: 10px; border: 1.5px solid transparent; background: var(--hover); color: var(--ink); font-weight: 700;
    font-size: 15px; line-height: 1.2; cursor: pointer; text-decoration: none; text-align: center;
    transition: background .15s, border-color .15s, box-shadow .15s, transform .15s; -webkit-tap-highlight-color: transparent; }
.pt-btn:hover { background: #eceef3; }
.pt-btn.pri { background: var(--brand); color: #fff; }
.pt-btn.pri:hover { background: var(--brand-d); }
.pt-btn.ghost { background: #fff; border-color: var(--brand); color: var(--brand); }
.pt-btn.ghost:hover { background: var(--brand-soft); }
.pt-btn.ok { background: var(--ok-d); color: #fff; }
.pt-btn.danger { background: #fff; border-color: #f5b5c0; color: #c3203f; }
.pt-btn.danger:hover { background: #ffe8eb; }
.pt-btn.block { display: flex; width: 100%; }
.pt-btn:disabled, .pt-btn[aria-disabled="true"] { opacity: .6; cursor: not-allowed; }
.pt-btn:focus-visible { outline: none; box-shadow: var(--ring); }
.pt-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
@media (max-width: 520px) { .pt-actions .pt-btn { flex: 1 1 100%; } }

/* ---------------------------------------------------------------------
 * 7. Form fields
 * ------------------------------------------------------------------- */
.pt-field { position: relative; margin-bottom: 14px; }
.pt-field > label, .pt-label { display: block; margin: 0 0 6px 2px; font-size: 12px; font-weight: 800; letter-spacing: .6px;
    text-transform: uppercase; color: var(--muted); }
.pt-field input, .pt-field select, .pt-field textarea {
    display: block; width: 100%; min-height: 46px; margin: 0; padding: 10px 14px; border-radius: 10px; border: 1.5px solid var(--line);
    background: #fff; color: var(--ink); font-size: 16px; line-height: 1.4; box-shadow: none;
    transition: border-color .15s, box-shadow .15s; }
.pt-field textarea { min-height: 120px; resize: vertical; }
.pt-field input::placeholder, .pt-field textarea::placeholder { color: #9aa0b4; opacity: 1; }
.pt-field input:focus, .pt-field select:focus, .pt-field textarea:focus { outline: none; border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(45, 50, 111, .14); }
.pt-field input[readonly], .pt-field input:disabled, .pt-field select:disabled, .pt-field textarea[readonly] {
    background: var(--hover); color: var(--muted); cursor: not-allowed; }
.pt-field input[aria-invalid="true"], .pt-field select[aria-invalid="true"], .pt-field textarea[aria-invalid="true"] {
    border-color: var(--bad); }
.pt-field .ic { position: absolute; left: 15px; bottom: 15px; color: #9aa0b4; pointer-events: none; font-size: 15px; }
.pt-field.has-ic input { padding-left: 42px; }
.pt-field.has-eye input { padding-right: 52px; }
.pt-eye { position: absolute; right: 2px; bottom: 1px; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 8px;
    background: none; color: #9aa0b4; cursor: pointer; display: grid; place-items: center; }
.pt-eye:hover { color: var(--ink); background: var(--hover); }
.pt-caps { display: none; margin: 6px 0 0 2px; font-size: 12.5px; font-weight: 700; color: #b36b00; }
.pt-caps.show { display: block; }
.pt-hint { display: block; margin: 6px 0 0 2px; font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.pt-err { display: block; margin: 6px 0 0 2px; font-size: 12.5px; font-weight: 700; color: #c3203f; }
.pt-check { display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 12px 0; font-size: 14px; line-height: 1.45;
    cursor: pointer; }
/* a link-style button inside a sentence (Terms / Privacy); the whole "I agree" row is 44 px tall */
.pt-linkbtn, #ptAuth .pt-linkbtn { display: inline; background: none; border: 0; margin: 0; padding: 0;
    color: var(--link, var(--brand)); font: inherit; font-weight: 700; text-align: left; cursor: pointer; }
/* a link on its own line (e.g. "Forgot password?"): a finger-sized tap area */
.pt-tap { display: inline-flex; align-items: center; min-height: 44px; }
.pt-check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--brand); }
.pt-trap { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

/* search box (project list) */
.pt-tools { display: flex; flex-direction: column; gap: 12px; margin: 0 0 16px; }
.pt-search { position: relative; width: 100%; }
.pt-search .ic { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: #9aa0b4; pointer-events: none; }
.pt-search input { display: block; width: 100%; min-height: 48px; padding: 10px 48px 10px 44px; border-radius: 999px;
    border: 1.5px solid var(--line); background: #fff; color: var(--ink); font-size: 16px; box-shadow: var(--shadow);
    transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none; }
.pt-search input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(45, 50, 111, .14); }
/* our own large clear (x) button (added by pt.js); the browser's tiny one is hidden */
.pt-search input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; display: none; }
.pt-search-x { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; padding: 0;
    border: 0; border-radius: 50%; background: none; color: #9aa0b4; font-size: 16px; cursor: pointer; display: grid;
    place-items: center; }
.pt-search-x:hover, .pt-search-x:focus-visible { color: var(--ink); background: var(--hover); outline: none; }
.pt-shown { font-size: 12.5px; color: var(--muted); font-weight: 700; }
@media (min-width: 768px) { .pt-search { max-width: 460px; } }

/* ---------------------------------------------------------------------
 * 8. Flash banners
 * ------------------------------------------------------------------- */
.pt-flash { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 16px; padding: 12px 14px; border-radius: 10px;
    border: 1px solid; font-size: 14px; font-weight: 600; line-height: 1.45; animation: ptPop .35s ease; }
.pt-flash > i { margin-top: 2px; flex: none; }
.pt-flash small { display: block; font-weight: 500; opacity: .9; margin-top: 2px; }
.pt-flash.ok { background: #e5f9f0; color: #037f4c; border-color: #a8e8cc; }
.pt-flash.bad { background: #fde8eb; color: #8a1c2c; border-color: #f5b5c0; }
.pt-flash.warn { background: #fff4e0; color: #8a5300; border-color: #ffd699; }
.pt-flash.info { background: #eef4ff; color: #1c3d6e; border-color: #b9d3ff; }

/* ---------------------------------------------------------------------
 * 9. IPC card + 5-step tracker
 * ------------------------------------------------------------------- */
.pt-ipc-h { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 12px; flex-wrap: wrap; }
.pt-ipc-no { font-family: 'Barlow Semi Condensed', sans-serif; font-weight: 800; font-size: 21px; letter-spacing: .4px;
    text-transform: uppercase; color: var(--ink); }
.pt-ipc-amt { font-weight: 800; font-size: 18px; color: var(--brand); font-variant-numeric: tabular-nums; }
.pt-ipc-meta { margin-top: 2px; font-size: 13px; color: var(--muted); }

.pt-track { list-style: none; margin: 16px 0 10px; padding: 0; display: flex; align-items: flex-start; }
.pt-track .st { position: relative; flex: 1 1 0; min-width: 0; padding: 0 2px; text-align: center; }
/* the bar from the previous dot to this dot; its colour tells whether this step was reached */
.pt-track .st::before { content: ""; position: absolute; z-index: 0; top: 16px; left: -50%; width: 100%; height: 4px;
    border-radius: 2px; background: var(--track); }
.pt-track .st:first-child::before { display: none; }
.pt-track .st.done::before { background: var(--ok); }
.pt-track .st.now::before { background: linear-gradient(90deg, var(--ok), var(--warn)); }
.pt-track .st.back::before { background: linear-gradient(90deg, var(--ok), var(--bad)); }
.pt-track .dot { position: relative; z-index: 1; display: grid; place-items: center; width: 36px; height: 36px; margin: 0 auto;
    border-radius: 50%; border: 2px solid #d5d8e0; background: #fff; color: #b3b8c8; font-size: 14px; }
.pt-track .st.done .dot { background: var(--ok); border-color: var(--ok); color: #fff; }
/* "now": orange with a still ring - no flashing */
.pt-track .st.now .dot { background: var(--warn); border-color: var(--warn); color: #fff; box-shadow: 0 0 0 5px rgba(253, 171, 61, .28); }
.pt-track .st.back .dot { background: var(--bad); border-color: var(--bad); color: #fff; box-shadow: 0 0 0 5px rgba(226, 68, 92, .22); }
.pt-track .lb { display: block; margin-top: 8px; font-size: 11.5px; font-weight: 700; line-height: 1.25; color: var(--ink);
    overflow-wrap: anywhere; hyphens: auto; }
.pt-track .st.wait .lb { color: var(--muted); font-weight: 600; }
.pt-track .dt { display: block; min-height: 1.3em; margin-top: 3px; font-size: 11px; color: var(--muted);
    font-variant-numeric: tabular-nums; }
.pt-track .st.now .dt, .pt-track .st.back .dt { font-weight: 700; }
@media (min-width: 768px) {
    .pt-track .lb { font-size: 12.5px; padding: 0 6px; }
    .pt-track .dt { font-size: 12px; }
    .pt-track .dot { width: 40px; height: 40px; font-size: 16px; }
    .pt-track .st::before { top: 18px; }
}
@media (max-width: 400px) {
    .pt-track .dot { width: 30px; height: 30px; font-size: 12px; }
    .pt-track .st::before { top: 13px; }
    .pt-track .st.now .dot, .pt-track .st.back .dot { box-shadow: 0 0 0 4px rgba(253, 171, 61, .28); }
    .pt-track .st.back .dot { box-shadow: 0 0 0 4px rgba(226, 68, 92, .22); }
    .pt-track .lb { font-size: 10.5px; }
    .pt-track .dt { font-size: 9.5px; letter-spacing: -.2px; }
}
/* the "where is it now" line under the tracker */
.pt-now { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding: 10px 12px; border-radius: 10px;
    font-size: 13.5px; font-weight: 700; line-height: 1.4; background: #fff4e0; color: #8a5300; }
.pt-now.ok { background: #e5f9f0; color: #037f4c; }
.pt-now.bad { background: #fde8eb; color: #8a1c2c; }
.pt-now i { flex: none; }

/* ---------------------------------------------------------------------
 * 10. Empty state, not found
 * ------------------------------------------------------------------- */
.pt-empty { text-align: center; padding: 36px 20px; }
.pt-empty .ic { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%;
    background: var(--brand-soft); color: var(--brand); font-size: 24px; }
.pt-empty h2, .pt-empty h3 { margin: 0 0 6px; font-size: 18px; font-weight: 800; }
.pt-empty p { margin: 0 auto; max-width: 420px; color: var(--muted); font-size: 14px; }
.pt-empty .pt-btn { margin-top: 16px; }
/* v1.1: anything the page script marks hidden really disappears (card / flex / grid styles
   would otherwise keep it on screen) */
[hidden] { display: none !important; }

.pt-404 { max-width: 460px; margin: 24px auto; text-align: center; border-top: 6px solid var(--brand); padding: 30px 22px; }
.pt-404 .code { font-family: 'Barlow Semi Condensed', sans-serif; font-weight: 800; font-size: 64px; line-height: 1;
    color: var(--brand); letter-spacing: 1px; }
.pt-404 h2 { margin: 8px 0 6px; font-size: 22px; font-weight: 800; }
.pt-404 p { margin: 0 0 18px; color: var(--muted); }

/* ---------------------------------------------------------------------
 * 11. Dialog (<dialog class="pt-dialog">)
 * ------------------------------------------------------------------- */
.pt-dialog { width: calc(100vw - 32px); max-width: 560px; max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); padding: 0; border: 0;
    border-radius: 20px; background: #fff; color: #323338; box-shadow: 0 20px 50px rgba(0, 0, 0, .25); overflow: hidden;
    line-height: 1.5; }
.pt-dialog[open] { display: flex; flex-direction: column; animation: ptPop .25s ease; }
.pt-dialog::backdrop { background: rgba(10, 14, 40, .55); }
.pt-dlg-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 10px 14px 20px;
    background: var(--brand); color: #fff; }
.pt-dlg-h h2 { margin: 0; font-family: 'Barlow Semi Condensed', sans-serif; font-weight: 800; font-size: 20px;
    letter-spacing: .5px; text-transform: uppercase; }
.pt-dlg-x { width: 44px; height: 44px; border: 0; border-radius: 10px; background: transparent; color: #fff; font-size: 18px;
    cursor: pointer; display: grid; place-items: center; flex: none; }
.pt-dlg-x:hover { background: rgba(255, 255, 255, .14); }
.pt-dlg-b { padding: 18px 20px; overflow-y: auto; font-size: 14.5px; }
.pt-dlg-b p { margin: 0 0 10px; }
.pt-dlg-f { display: flex; justify-content: flex-end; gap: 10px; padding: 12px 20px 18px; border-top: 1px solid var(--line); }
#ptAuth .pt-dialog a, .pt-dialog a { color: var(--brand); }

/* ---------------------------------------------------------------------
 * 12. Public pages (#ptAuth) - RPMS sign-in look, PAYTRACK navy
 * ------------------------------------------------------------------- */
body.pt-auth-body { margin: 0; background: #040b22; overflow-x: hidden; }
#ptAuth .pt-auth-bg { position: fixed; inset: 0; z-index: 0;
    background:
        radial-gradient(700px 520px at 85% 10%, rgba(74, 82, 184, .45), transparent 70%),
        radial-gradient(640px 480px at 10% 95%, rgba(0, 134, 192, .28), transparent 70%),
        radial-gradient(520px 380px at 50% 55%, rgba(45, 50, 111, .55), transparent 75%),
        linear-gradient(160deg, #0a1440 0%, #040b22 60%, #030817 100%); }
#ptAuth .pt-auth-bg::after { content: ""; position: absolute; inset: 0;
    background: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .05) 1px, transparent 0) 0 0 / 24px 24px; }
#ptAuth .pt-auth-wrap { position: relative; z-index: 1; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column;
    align-items: center; justify-content: center; padding: max(20px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom)); }
#ptAuth .pt-auth-logo { display: block; width: min(300px, 78vw); margin: 0 auto 18px; padding: 12px 18px; border-radius: 18px;
    background: #fff; box-shadow: 0 12px 34px rgba(0, 0, 0, .35); }
#ptAuth .pt-auth-logo img { display: block; width: 100%; height: auto; }
#ptAuth .pt-auth-card { display: block; width: 100%; max-width: 440px; padding: 26px 24px 22px; border-radius: 24px;
    background: var(--glass); border: 1px solid var(--line);
    -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .08); }
#ptAuth .pt-auth-card.wide { max-width: 560px; }
#ptAuth .pt-auth-h { margin: 0; font-size: 22px; font-weight: 800; color: #fff; line-height: 1.25; }
#ptAuth .pt-auth-sub { margin: 4px 0 18px; color: var(--muted); font-size: 14px; }
#ptAuth .pt-auth-h + .pt-flash, #ptAuth .pt-auth-h + form { margin-top: 18px; }
#ptAuth p { line-height: 1.55; }
#ptAuth a { color: var(--link); font-weight: 700; text-decoration: none; }
#ptAuth a:hover { text-decoration: underline; }
#ptAuth a:focus-visible, #ptAuth button:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(120, 150, 255, .55); border-radius: 8px; }

/* fields on glass */
#ptAuth .pt-field > label, #ptAuth .pt-label { color: var(--muted); margin-left: 4px; }
#ptAuth .pt-field input, #ptAuth .pt-field select, #ptAuth .pt-field textarea {
    min-height: 52px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--field); color: #fff; }
#ptAuth .pt-field select option { color: #323338; }
#ptAuth .pt-field input::placeholder, #ptAuth .pt-field textarea::placeholder { color: #7d88b0; }
#ptAuth .pt-field input:focus, #ptAuth .pt-field select:focus, #ptAuth .pt-field textarea:focus {
    border-color: #6d8bff; background: rgba(255, 255, 255, .1); box-shadow: 0 0 0 4px rgba(80, 110, 255, .25); }
#ptAuth .pt-field input[readonly], #ptAuth .pt-field input:disabled { background: rgba(255, 255, 255, .03); color: #c6cde6; }
#ptAuth .pt-field input:-webkit-autofill { -webkit-text-fill-color: #fff; -webkit-box-shadow: 0 0 0 40px #18224a inset; caret-color: #fff; }
#ptAuth .pt-field input[aria-invalid="true"] { border-color: var(--bad); }
#ptAuth .pt-field .ic { color: #8f9bc4; bottom: 18px; left: 17px; }
#ptAuth .pt-field.has-ic input { padding-left: 46px; }
#ptAuth .pt-eye { bottom: 4px; right: 4px; color: #8f9bc4; border-radius: 10px; }
#ptAuth .pt-eye:hover { color: #fff; background: rgba(255, 255, 255, .08); }
#ptAuth .pt-caps { color: var(--warn); margin-left: 4px; }
#ptAuth .pt-hint { color: var(--muted); }
#ptAuth .pt-err { color: #ffb3bf; }
#ptAuth .pt-check { color: #dfe5fb; }
#ptAuth .pt-check input { accent-color: #6d8bff; }

/* buttons on glass */
#ptAuth .pt-btn { min-height: 52px; border-radius: 14px; font-size: 16px; font-weight: 800; background: rgba(255, 255, 255, .08);
    color: #fff; border-color: var(--line); }
#ptAuth .pt-btn:hover { background: rgba(255, 255, 255, .14); text-decoration: none; }
#ptAuth .pt-btn.pri { background: linear-gradient(90deg, #2d326f, #4f7dff); border-color: transparent;
    box-shadow: 0 10px 24px rgba(40, 70, 220, .35); }
#ptAuth .pt-btn.pri:hover { background: linear-gradient(90deg, #353b84, #6a90ff); }
#ptAuth .pt-btn.ghost { background: transparent; border-color: rgba(159, 186, 255, .6); color: #dbe5ff; }
#ptAuth .pt-btn.ok { background: linear-gradient(90deg, #14a565, #21c47b); border-color: transparent; }

/* banners on glass */
#ptAuth .pt-flash { border-radius: 14px; }
#ptAuth .pt-flash.ok { background: rgba(33, 196, 123, .12); border-color: rgba(33, 196, 123, .45); color: #c9f5df; }
#ptAuth .pt-flash.bad { background: rgba(255, 90, 110, .12); border-color: rgba(255, 90, 110, .45); color: #ffd2d8; }
#ptAuth .pt-flash.warn { background: rgba(255, 176, 32, .12); border-color: rgba(255, 176, 32, .45); color: #ffe4b0; }
#ptAuth .pt-flash.info { background: rgba(110, 150, 255, .12); border-color: rgba(110, 150, 255, .45); color: #d8e3ff; }

/* links row, divider, footer */
#ptAuth .pt-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 16px; margin-top: 18px; font-size: 14px;
    color: var(--muted); text-align: center; }
#ptAuth .pt-links a, #ptAuth .pt-links button { display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px;
    background: none; border: 0; color: var(--link); font-weight: 700; cursor: pointer; font-size: 14px; }
#ptAuth .pt-or { display: flex; align-items: center; gap: 12px; margin: 18px 0 12px; color: #7f8ab0; font-size: 12px;
    font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
#ptAuth .pt-or::before, #ptAuth .pt-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
#ptAuth .pt-auth-foot { margin-top: 18px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
    font-size: 12.5px; color: #7f8ab0; }
#ptAuth .pt-sec { display: inline-flex; align-items: center; gap: 6px; color: #8fd8b4; }
#ptAuth .pt-shake { animation: ptShake .4s; }
/* a big round icon on result pages (email sent, link expired ...) */
#ptAuth .pt-auth-ic { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 0 14px; border-radius: 50%;
    font-size: 26px; background: rgba(110, 150, 255, .16); color: #b9ccff; }
#ptAuth .pt-auth-ic.ok { background: rgba(33, 196, 123, .16); color: #8ff0c0; }
#ptAuth .pt-auth-ic.bad { background: rgba(255, 90, 110, .16); color: #ffb3bf; }
#ptAuth .pt-auth-ic.warn { background: rgba(255, 176, 32, .16); color: #ffd58a; }
@media (min-width: 521px) { #ptAuth .pt-auth-foot { flex-direction: row; gap: 14px; } }
@media (max-width: 520px) {
    #ptAuth .pt-auth-wrap { justify-content: flex-start; padding-top: max(24px, env(safe-area-inset-top)); }
    #ptAuth .pt-auth-card { padding: 22px 18px 18px; border-radius: 20px; }
}
@media (max-height: 700px) and (min-width: 521px) { #ptAuth .pt-auth-logo { width: min(240px, 60vw); margin-bottom: 12px; } }

/* ---------------------------------------------------------------------
 * 13. Motion (plays once) + reduced motion + print
 * ------------------------------------------------------------------- */
@keyframes ptPop { from { transform: translateY(-4px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes ptShake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
/* a submitting button shows a still hourglass + "Please wait..." (no spinning loop) */
.pt-busy { opacity: .75; }
@media (prefers-reduced-motion: reduce) {
    #ptPage *, #ptTop *, #ptTabs *, #ptAuth *, .pt-dialog, .pt-dialog * { transition: none !important; animation: none !important; }
    a.pt-card:hover, .pt-tile:hover { transform: none; }
}
@media print {
    * { animation: none !important; transition: none !important; }
    .pt-top, .pt-tabs, .pt-skip, .pt-tools, .pt-actions { display: none !important; }
    body.pt-app { background: #fff; padding: 0; }
    .pt-card, .pt-tile { box-shadow: none; break-inside: avoid; }
    .pt-head h1 { position: static; width: auto; height: auto; margin: 0; clip: auto; overflow: visible; }
}

/* ---------------------------------------------------------------------
 * 14. Signed-in pages: project list totals, latest claims, claim cards,
 *     my account. Added with project_list / overview / status / profile v1.
 * ------------------------------------------------------------------- */
/* totals strip (project list): 2 x 2 on a phone (money boxes full width so the full RM fits), 4 across on a computer */
.pt-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 16px; }
.pt-kpi { min-width: 0; background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--k, var(--brand));
    border-radius: 14px; box-shadow: var(--shadow); padding: 10px 14px 12px; }
.pt-kpi .k { display: block; font-size: 11.5px; font-weight: 800; letter-spacing: .45px; text-transform: uppercase; color: var(--muted); }
.pt-kpi .v { display: block; margin-top: 2px; font-size: 26px; font-weight: 800; line-height: 1.15; color: var(--kv, var(--ink));
    font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.pt-kpi.money .v { font-size: 21px; }
.pt-kpi.bad { --k: var(--bad); --kv: var(--bad-d); }
.pt-kpi.ok { --k: var(--ok); --kv: var(--ok-t); }
@media (max-width: 559px) { .pt-kpi.money { grid-column: span 2; } }
@media (min-width: 560px) { .pt-kpis { gap: 14px; } .pt-kpi.money .v { font-size: 24px; } }
/* 4 across from 900px; the money boxes get more room so a full RM 123,456,789.00 stays on one line */
@media (min-width: 900px) { .pt-kpis { grid-template-columns: minmax(0, .8fr) minmax(0, .8fr) minmax(0, 1.4fr) minmax(0, 1.4fr); }
    .pt-kpi .v { font-size: 30px; } .pt-kpi.money .v { font-size: 21px; } }
@media (min-width: 1200px) { .pt-kpi.money .v { font-size: 24px; } }

/* what the list shows (staff): ALL / agency badge + the search words */
.pt-scope { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -4px 0 14px; }
.pt-ag.pt-ag-lg { font-size: 13px; padding: 4px 12px; border-radius: 8px; letter-spacing: .6px; }
.pt-scope-q { font-size: 13px; font-weight: 700; color: var(--muted); word-break: break-word; }

/* project card extras: company line (staff) and chip counters */
.pt-proj-co { margin: -4px 0 8px; font-size: 12.5px; font-weight: 700; color: var(--muted); word-break: break-word; }
.pt-proj-co i { margin-right: 4px; opacity: .7; }
.pt-proj .pt-pill { text-transform: none; letter-spacing: 0; font-size: 12px; font-weight: 700; }
.pt-chip-n { font-size: 11.5px; font-weight: 800; opacity: .65; font-variant-numeric: tabular-nums; }
@media (min-width: 768px) { .pt-tools { flex-direction: row; flex-wrap: wrap; align-items: center; }
    .pt-tools .pt-search { flex: 1 1 320px; } .pt-tools .pt-chips { flex: 1 1 100%; order: 3; } }

/* overview: the three newest claims */
.pt-latest { padding-top: 4px; padding-bottom: 4px; }
.pt-mini { list-style: none; margin: 0; padding: 0; }
.pt-mini li + li { border-top: 1px solid var(--line); }
.pt-mini a { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 2px; color: var(--ink);
    text-decoration: none; border-radius: 8px; transition: background .15s; }
.pt-mini a:hover { background: var(--hover); }
.pt-mini .no { flex: none; min-width: 62px; font-family: 'Barlow Semi Condensed', sans-serif; font-weight: 800; font-size: 17px;
    letter-spacing: .3px; text-transform: uppercase; }
.pt-mini .mid { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pt-mini .amt { font-weight: 800; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.pt-mini .txt { font-size: 13px; font-weight: 700; color: #b36b00; overflow-wrap: anywhere; }
.pt-mini .txt.ok { color: #037f4c; } .pt-mini .txt.bad { color: #c3203f; }
.pt-mini .go { flex: none; color: #c3c6d4; font-size: 13px; }

/* status: header card that links back, tabs, claim cards (2 across on a wide screen) */
a.pt-phead-link { text-decoration: none; }
.pt-phead-link .nm { font-size: 14px; color: var(--muted); }
.pt-seg-st { margin: 14px 0; }
.pt-ipcs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.pt-ipcs > .pt-card + .pt-card { margin-top: 0; }
@media (min-width: 1000px) { .pt-ipcs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pt-ipc { scroll-margin-top: 84px; }
.pt-ipc:target { border-color: var(--brand); box-shadow: var(--shadow), 0 0 0 3px rgba(45, 50, 111, .18); }
h2.pt-ipc-no { margin: 0; line-height: 1.2; }
.pt-ipc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-top: 6px; }
.pt-ipc-meta b { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.pt-ipc-meta .pt-pill { text-transform: none; letter-spacing: 0; font-size: 12px; }
.pt-ipc-co { margin-top: 6px; font-size: 12.5px; font-weight: 700; color: var(--muted); }
/* tracker bars grow in once, left to right (pseudo-elements need their own reduced-motion switch below) */
@keyframes ptGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.pt-track .st::before { transform-origin: left center; animation: ptGrow .7s cubic-bezier(.2, .8, .2, 1) both; }
.pt-track .st:nth-child(3)::before { animation-delay: .12s; }
.pt-track .st:nth-child(4)::before { animation-delay: .24s; }
.pt-track .st:nth-child(5)::before { animation-delay: .36s; }

/* my account */
.pt-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-items: start; }
.pt-cols > .pt-card + .pt-card { margin-top: 0; }
.pt-forms { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; min-width: 0; }
.pt-forms > .pt-card + .pt-card { margin-top: 0; }
@media (min-width: 900px) { .pt-cols { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.pt-acct-h { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.pt-acct-h .av { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
    background: var(--brand-soft); color: var(--brand); font-size: 21px; }
.pt-acct-h .pt-card-h { margin-bottom: 4px; word-break: break-word; }
.pt-acct-note { margin: 16px 0 0; padding: 10px 12px; border-radius: 10px; background: #eef4ff; color: #1c3d6e; font-size: 13px;
    line-height: 1.45; }
.pt-acct-note a { color: inherit; font-weight: 700; }
.pt-acct-ro h2 { font-size: 17px; }
.pt-in { position: relative; }                       /* icon + eye sit on the box, not on the hint under it */
.pt-forms .pt-actions { margin-top: 6px; }

@media (prefers-reduced-motion: reduce) { .pt-track .st::before { animation: none !important; } }
@media print { .pt-track .st::before { animation: none !important; } .pt-seg { display: none !important; } }
