/**
 * portal.css: the {site}/portal CHROME, written on top of the shared design
 * system (assets/css/tos.css = the hub kernel, hub.tagra.it/assets/css/tos.css, the
 * same file hub.tagra.it loads). Since 25 Aug 2026 this
 * file no longer copies tokens or primitives: buttons, forms, cards, badges,
 * alerts, selects (Tos.select), modals/sheets (Tos.modal), dialogs
 * (Tos.dialog), toasts (Tos.toast), dropdowns ([data-dropdown]), tooltips,
 * segmented controls, stat tiles, empty panels, kv rows all come from tos.css.
 * What lives here is ONLY what the portal has and the app does not:
 *
 *   1. the two chromes (desktop sidebar / mobile bottom tab bar) + header
 *   2. the auth screens (login / register / verify / set-password)
 *   3. the job + booking cards, the route glyph, the floating action bar
 *   4. the detail layout (content + sticky rail) and the month stepper
 *   5. the partner-form bridge (the site's main_partner section rendered
 *      inside the portal shell reads the site theme's --color-* variables,
 *      mapped here onto tos tokens)
 *   6. the shuttle scanner stage
 *
 * THEMING rides tos.css section 36: <html data-theme="light|dark|auto"> is
 * stamped server-side from the pt_theme cookie (no flash), tos.css flips the
 * tokens; portal.js adds html.tos-dark for the auto case.
 *
 * TWO LAYOUTS, NOT ONE SCALED LAYOUT: < 1024px phone/tablet (bottom tab bar,
 * 44px+ taps, 16px inputs via tos.css's coarse-pointer net); >= 1024px desktop
 * (fixed 248px sidebar, the app's control heights).
 */

/* ── 0. Body: undo the app shell's fixed-header offset ───────────────────── */
:root { --pt-tabbar-h: 62px; --pt-header-h: 56px; --pt-sidebar-w: 248px; }
body.pt-body {
    padding-top: 0;
    background: var(--bg-page);
    min-height: 100vh;
    min-height: 100dvh;
    -webkit-tap-highlight-color: transparent;
}
.pt-root a { text-decoration: none; }
.pt-root a:focus-visible, .pt-root button:focus-visible, .pt-root input:focus-visible,
.pt-root select:focus-visible, .pt-root textarea:focus-visible { outline: none; box-shadow: var(--ring); }
.pt-root p { margin: 0; }

/* ── 1. Shell ─────────────────────────────────────────────────────────────── */
.pt-app { min-height: 100vh; min-height: 100dvh; }
.pt-frame { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }

.pt-header {
    position: sticky; top: 0; z-index: 25;
    min-height: var(--pt-header-h);
    display: flex; align-items: center; gap: 10px;
    padding: 0 12px 0 14px;
    background: var(--surface);
    background: color-mix(in srgb, var(--surface) 90%, transparent);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--border);
}
@supports not (backdrop-filter: blur(2px)) { .pt-header { background: var(--surface); } }
.pt-header-id { min-width: 0; flex: 1; display: flex; align-items: center; gap: 10px; }
.pt-header-text { min-width: 0; }
.pt-header-brand { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-header-sub { font-size: 12px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-header-actions { display: flex; align-items: center; gap: 2px; flex: none; }

/* header icon button (theme, back, account) */
.pt-iconbtn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; flex: none;
    border: none; background: transparent; border-radius: var(--radius-sm);
    color: var(--text-2); cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}
.pt-iconbtn:hover { background: var(--bg-hover); color: var(--text); }
.pt-iconbtn svg { width: 20px; height: 20px; }
html[data-theme="dark"] .pt-theme-ico-dark, html.tos-dark .pt-theme-ico-dark { display: none; }
html:not([data-theme="dark"]):not(.tos-dark) .pt-theme-ico-light { display: none; }

/* the site's identity mark: the logo, or an initials chip when there is none */
.pt-brand { display: inline-flex; align-items: center; min-width: 0; }
.pt-brand-logo { display: block; height: 30px; width: auto; max-width: 150px; object-fit: contain; }
.pt-brand-logo--lg { height: 44px; max-width: 220px; }
/* Dark theme: most site logos are dark ink on transparent, so they sit on a
   light plate; a logo marked light-on-dark (header_style dark) skips it. */
html[data-theme="dark"] .pt-brand-logo:not(.pt-brand-logo--light), html.tos-dark .pt-brand-logo:not(.pt-brand-logo--light) {
    background: #ffffff; padding: 4px 8px; border-radius: 8px; box-sizing: content-box;
}
.pt-mark {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; flex: none; border-radius: 10px;
    background: var(--text); color: var(--surface);
    font-size: 13px; font-weight: 700; letter-spacing: 0.02em;
}
.pt-mark--lg { width: 52px; height: 52px; border-radius: 14px; font-size: 19px; }
.pt-avatar {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; flex: none; border-radius: 50%;
    background: var(--neutral-100); color: var(--text);
    font-size: 12.5px; font-weight: 700; letter-spacing: 0.02em;
}
.pt-avatar--lg { width: 48px; height: 48px; font-size: 16px; }

.pt-main { flex: 1; width: 100%; padding: 16px 16px calc(var(--pt-tabbar-h) + 24px + env(safe-area-inset-bottom)); }
.pt-container { width: 100%; max-width: 640px; margin: 0 auto; }

/* ── 2. Bottom tab bar (mobile only) ─────────────────────────────────────── */
.pt-tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    display: flex;
    height: calc(var(--pt-tabbar-h) + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--surface);
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-top: 1px solid var(--border);
}
@supports not (backdrop-filter: blur(2px)) { .pt-tabbar { background: var(--surface); } }
.pt-tab {
    flex: 1 1 0; min-width: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    min-height: var(--pt-tabbar-h); padding: 6px 2px;
    color: var(--text-3); font-size: 11px; font-weight: 600; letter-spacing: -0.01em;
    transition: color 0.15s ease;
}
.pt-tab > span:last-child { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-tab svg { width: 22px; height: 22px; stroke-width: 1.7; }
.pt-tab.is-active { color: var(--text); }
.pt-tab.is-active svg { stroke-width: 2.1; }
.pt-tab-ico { position: relative; display: inline-flex; }
.pt-tab-dot {
    position: absolute; top: -3px; right: -8px;
    min-width: 17px; height: 17px; padding: 0 5px; border-radius: 999px;
    background: var(--black); color: var(--surface);
    font-size: 10px; font-weight: 700; line-height: 17px; text-align: center;
}

/* ── 3. Desktop sidebar (>= 1024px) ──────────────────────────────────────── */
.pt-sidebar { display: none; }
@media (min-width: 1024px) {
    .pt-tabbar { display: none; }
    /* the app's layout (owner, 8 Sep 2026): ONE fixed full-width header on top, the sidebar below it, no vertical separator */
    .pt-sidebar {
        position: fixed; top: 64px; left: 0; bottom: 0; z-index: 40;
        display: flex; flex-direction: column;
        width: var(--pt-sidebar-w); padding: 14px 14px 14px;
        background: var(--surface); border-right: 0;
    }
    .pt-sidebar-brand { display: none; }
    .pt-sidebar-brand-name { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .pt-sidebar-brand-sub { font-size: 11.5px; color: var(--text-3); }
    .pt-nav { display: flex; flex-direction: column; gap: 2px; }
    .pt-nav-item {
        display: flex; align-items: center; gap: 11px;
        padding: 9px 10px; border-radius: var(--radius-sm);
        font-size: 14px; font-weight: 500; color: var(--text-2);
        transition: background 0.15s ease, color 0.15s ease;
    }
    .pt-nav-item svg { width: 19px; height: 19px; flex: none; stroke-width: 1.7; }
    .pt-nav-item:hover { background: var(--bg-hover); color: var(--text); }
    .pt-nav-item.is-active { background: var(--bg-active); color: var(--text); font-weight: 600; }
    .pt-nav-item.is-active svg { stroke-width: 2.1; }
    .pt-nav-item .badge { margin-left: auto; }
    .pt-sidebar-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border); }
    .pt-sidebar-user { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: var(--radius-sm); min-width: 0; }
    .pt-sidebar-user-name { font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .pt-sidebar-user-role { font-size: 11.5px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

    .pt-frame { margin-left: var(--pt-sidebar-w); }
    .pt-header { position: fixed; top: 0; left: 0; right: 0; height: 64px; min-height: 64px; z-index: 45; padding: 0 28px; background: var(--surface); backdrop-filter: none; }
    .pt-header .pt-header-brand { display: none; }   /* desktop: the logo is the identity, no name next to it */
    .pt-header .pt-header-logo { display: inline-flex; }
    .pt-frame { padding-top: 64px; }
    .pt-main { padding: 28px 28px 56px; }
    .pt-container { max-width: 1040px; }
    .pt-container--narrow { max-width: 680px; }
}
@media (min-width: 1400px) { .pt-main { padding: 32px 40px 64px; } }

/* ── 4. Page idioms shared by every screen ───────────────────────────────── */
.pt-page-sub { font-size: 13.5px; color: var(--text-2); margin-top: 2px; }
.page-toolbar > .pt-page-head { min-width: 0; }
/* the segmented scope switcher: block on phones, inline on desktop */
.pt-seg { display: flex; width: 100%; margin-bottom: 16px; }
.pt-seg .seg-opt { flex: 1 1 0; min-width: 0; min-height: 40px; padding-left: 8px; padding-right: 8px; gap: 5px; }
.pt-seg .seg-opt > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 430px) { .pt-seg .seg-opt { font-size: 13px; padding-left: 6px; padding-right: 6px; gap: 4px; } .pt-seg .seg-count { min-width: 17px; padding: 0 4px; font-size: 10.5px; } .pt-seg .seg-opt:not(.is-active) .seg-count { display: none; } }
.pt-seg .seg-count { min-width: 19px; padding: 0 5px; border-radius: 999px; background: var(--bg-active); color: var(--text-2); font-size: 11px; font-weight: 700; line-height: 17px; }
.pt-seg .seg-opt.is-active .seg-count { background: var(--bg-active); color: var(--text); }
@media (min-width: 1024px) {
    .pt-seg { display: inline-flex; width: auto; margin-bottom: 20px; }
    .pt-seg .seg-opt { flex: 0 0 auto; min-height: 34px; }
}
.stat-grid.pt-stats { margin-bottom: 14px; }
.stat-tile--accent { background: var(--text); border-color: var(--text); }
.stat-tile--accent .stat-cap { color: var(--surface); opacity: 0.72; }
.stat-tile--accent .stat-metric { color: var(--surface); }
.pt-h2 { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-3); margin: 24px 0 10px; }
.pt-muted { color: var(--text-2); font-size: 13.5px; }
.pt-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-variant-numeric: tabular-nums; }
.pt-stack { display: flex; flex-direction: column; gap: 12px; }
.pt-stack > .card { margin: 0; }
.pt-card-title { font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.pt-card-title--row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card.pt-card { padding: 16px; }
@media (min-width: 1024px) { .card.pt-card { padding: 18px 20px; } }
.card-grid.pt-grid { gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); }
/* a grid item's automatic minimum is its min-content: a nowrap route name
   would otherwise push the card past a 390px viewport (QA 25 Aug 2026) */
.card-grid.pt-grid > * { min-width: 0; }
@media (max-width: 520px) { .card-grid.pt-grid { grid-template-columns: minmax(0, 1fr); } }
.pt-card--tap { display: block; color: inherit; cursor: pointer; transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.06s ease; }
.pt-card--tap:active { transform: scale(0.995); }
@media (min-width: 1024px) { .pt-card--tap:hover { border-color: var(--border-strong); box-shadow: var(--shadow-2); } .pt-card--tap:active { transform: none; } }
.pt-btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.pt-btn-row > .btn { flex: 1 1 140px; }
.pt-btn-row--tight > .btn { flex: 0 0 auto; }
@media (min-width: 1024px) { .pt-btn-row > .btn { flex: 0 0 auto; } }
/* phones: the primary controls of a form reach 48px for a thumb */
@media (max-width: 767px) {
    .pt-root .btn:not(.btn-sm):not(.act-btn) { min-height: 48px; }
    .pt-root .form-control, .pt-root .form-select, .pt-root .tos-sel-trigger { min-height: 48px; padding-top: 12px; padding-bottom: 12px; }
}
.pt-kv .kv-row { padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px; align-items: baseline; }
.pt-kv .kv-row:first-child { padding-top: 0; }
.pt-kv .kv-row:last-child { border-bottom: 0; padding-bottom: 0; }
.pt-kv .kv-val { min-width: 0; word-break: break-word; }
.pt-kv .kv-row--total { padding-top: 14px; }
.pt-kv .kv-row--total .kv-key { color: var(--text); font-weight: 700; }
.pt-kv .kv-row--total .kv-val { font-size: 17px; font-weight: 700; }
.pt-note { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text-2); padding: 12px 14px; font-size: 13.5px; line-height: 1.55; white-space: pre-wrap; }
.pt-note + .pt-note { margin-top: 10px; }
.pt-alert-row { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; }
.pt-alert-row svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.pt-link { color: var(--text); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.pt-link:hover { color: var(--text-2); }
.pt-code { display: inline-block; background: var(--bg-soft); border: 1px solid var(--border); padding: 3px 9px; border-radius: 6px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; letter-spacing: 0.04em; max-width: 100%; overflow-wrap: anywhere; }
.pt-copy-row { display: flex; gap: 8px; align-items: center; min-width: 0; }
.pt-copy-row .pt-code { flex: 1; min-width: 0; }
.pt-back { display: none; align-items: center; gap: 6px; margin-bottom: 14px; font-size: 13.5px; font-weight: 600; color: var(--text-2); transition: color 0.15s ease; }
.pt-back:hover { color: var(--text); }
.pt-back svg { width: 16px; height: 16px; }
.pt-desktop-only { display: none; }
@media (min-width: 1024px) { .pt-back { display: inline-flex; } .pt-desktop-only { display: block; } .pt-mobile-only { display: none !important; } }
/* modal body forms: the tos form grid inside a sheet */
.pt-root .tos-modal-body .form-grid { gap: 14px; }
.pt-root .tos-modal-footer .btn { flex: 1 1 auto; }
@media (min-width: 768px) { .pt-root .tos-modal-footer .btn { flex: 0 0 auto; } }
/* the embed frame in the booking drawer */
.pt-embed { width: 100%; border: 0; display: block; min-height: 70vh; background: var(--surface); opacity: 0; transition: opacity 0.2s ease; }
.pt-embed.is-ready { opacity: 1; }
.pt-embed-wrap { position: relative; }
.pt-embed-skel { position: absolute; inset: 0; padding: 20px; display: flex; flex-direction: column; gap: 12px; background: var(--surface); }
.pt-embed-skel[hidden] { display: none; }
.tos-modal-lg.pt-modal-wide .tos-modal-card { max-width: 860px; }
.pt-modal-wide .tos-modal-body { padding: 0; }
@media (max-width: 767px) { .pt-embed { min-height: 72dvh; } }
.pt-radio-list { display: flex; flex-direction: column; gap: 6px; }
.pt-radio {
    display: flex; align-items: center; gap: 12px; padding: 12px 14px; min-height: 48px;
    border: 1px solid var(--border-strong); border-radius: var(--radius-sm); cursor: pointer;
    font-size: 14.5px; color: var(--text); transition: border-color 0.15s ease, background 0.15s ease;
}
.pt-radio input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--black); }
.pt-radio:has(input:checked) { border-color: var(--text); background: var(--bg-soft); }
.pt-check { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; cursor: pointer; font-size: 14px; }
.pt-check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--black); cursor: pointer; }
.pt-check-text { min-width: 0; }
.pt-check-text a { text-decoration: underline; text-underline-offset: 2px; }
.pt-file { position: relative; }
.pt-file input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.pt-file-face { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 12px 14px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--bg-soft); color: var(--text-2); font-size: 14px; transition: border-color 0.15s ease, background 0.15s ease; }
.pt-file:hover .pt-file-face, .pt-file input:focus-visible + .pt-file-face { border-color: var(--text-3); background: var(--bg-hover); }
.pt-file-face svg { width: 20px; height: 20px; flex: none; color: var(--text-3); }
.pt-file-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-file.has-file .pt-file-face { border-color: var(--text); color: var(--text); background: var(--surface); }
/* intl-tel-input on a tos control */
.pt-root .iti .form-control { padding-left: 90px; }
.pt-root .iti--separate-dial-code .iti__selected-flag { background: var(--bg-soft); border-right: 1px solid var(--border); border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.pt-root .iti__country-list { z-index: 1210; }

/* ── 5. Auth screens (redesigned 26 Aug 2026) ────────────────────────────
   One frame for login / register / role forms / partner application / forgot /
   set-password: on desktop a dark brand panel on the left (the site's logo,
   one headline, three reassurance lines) and the content column on the right;
   on phones a compact top bar with the logo, then the content. The panel is
   the site's identity in the portal's monochrome look: no site theme colours
   beyond a faint glow of the theme hex behind the logo. */
.pt-auth2 { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.pt-auth2-side { display: none; }
.pt-auth2-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.pt-auth2-top {
    display: flex; align-items: center; gap: 10px; min-height: var(--pt-header-h); padding: 0 12px 0 14px;
    background: var(--surface); border-bottom: 1px solid var(--border);
}
.pt-auth2-top .pt-brand-logo { height: 26px; max-width: 140px; }
.pt-auth2-top .pt-mark { width: 30px; height: 30px; font-size: 12px; }
.pt-auth2-top-id { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.pt-auth2-top-name { font-size: 14.5px; font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-auth2-top .act-btn { flex: none; }
.pt-auth2-body { flex: 1; width: 100%; max-width: 520px; margin: 0 auto; padding: 22px 16px calc(24px + env(safe-area-inset-bottom)); }
.pt-auth2--wide .pt-auth2-body { max-width: 900px; }
.pt-auth2--xwide .pt-auth2-body { max-width: 1200px; }
.pt-auth2-foot { text-align: center; font-size: 12.5px; color: var(--text-3); padding: 0 16px calc(22px + env(safe-area-inset-bottom)); }
.pt-auth2-foot a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.pt-auth2-head { margin: 4px 0 18px; }
.pt-auth2-head .pt-auth2-h1 { margin: 0 0 4px; }
.pt-auth2-head .pt-auth2-lead { margin: 0; }
.pt-auth2-login { display: inline-flex; align-items: center; gap: 10px; margin-right: 6px; }
.pt-auth2-login .btn { min-height: 38px; height: 38px; padding: 0 14px; border-radius: var(--radius-sm); border-color: var(--border-strong); } /* same box as the theme .act-btn beside it */
@media (max-width: 767px) { .pt-auth2-login .btn { min-height: 44px; height: 44px; } }
@media (max-width: 1023px) { .pt-auth2-login { margin-right: 4px; } .pt-auth2-top-id .pt-brand + .pt-auth2-top-name { display: none; } }
@media (min-width: 1024px) { .pt-auth2-head { margin: 0 0 24px; } .pt-auth2-top { gap: 12px; } }
.pt-auth2-h1 { font-size: 26px; font-weight: 700; letter-spacing: -0.025em; line-height: 1.15; margin: 4px 0 6px; }
.pt-auth2-lead { font-size: 14.5px; color: var(--text-2); line-height: 1.55; margin: 0; max-width: 560px; }
.pt-auth2-lead + .card, .pt-auth2-lead + form { margin-top: 20px; }
.pt-auth2-h1--center, .pt-auth2-lead--center { text-align: center; }
.pt-auth2-lead--center { margin-left: auto; margin-right: auto; }
@media (min-width: 1024px) {
    .pt-auth2 { flex-direction: row; }
    .pt-auth2-side { display: block; width: 30%; max-width: 400px; min-width: 300px; flex: none; color: #fff; background: #111318; }
    .pt-auth2-side-in {
        display: flex; flex-direction: column; justify-content: space-between;
        position: sticky; top: 0; height: 100vh; height: 100dvh; padding: 36px 34px; overflow: hidden;
    }
    .pt-auth2-side-in::before {
        content: ''; position: absolute; inset: auto -20% -30% auto; width: 70%; aspect-ratio: 1; border-radius: 50%;
        background: radial-gradient(closest-side, var(--pt-glow, #ffffff) 0%, transparent 70%); opacity: 0.18; pointer-events: none;
    }
    .pt-auth2-side-in > * { position: relative; }
    .pt-auth2-side .pt-brand-logo { height: 40px; max-width: 220px; }
    .pt-auth2-side .pt-brand-logo:not(.pt-brand-logo--light) { background: #fff; padding: 8px 12px; border-radius: 10px; box-sizing: content-box; }
    .pt-auth2-side .pt-mark { background: #fff; color: #111318; }
    .pt-auth2-side-name { margin-top: 14px; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.6; }
    .pt-auth2-side-h { font-size: 30px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.12; margin: 26px 0 14px; max-width: 360px; color: inherit; }
    .pt-auth2-side-x { margin: 0; font-size: 14.5px; line-height: 1.55; opacity: 0.7; max-width: 340px; }
    .pt-auth2-lines { list-style: none; margin: 36px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
    .pt-auth2-lines li { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; line-height: 1.45; opacity: 0.9; }
    .pt-auth2-lines svg { width: 18px; height: 18px; flex: none; margin-top: 1px; opacity: 0.85; }
    .pt-auth2-side-foot { font-size: 13px; }
    .pt-auth2-site-btn {
        display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px 0 12px; border-radius: 10px;
        border: 1px solid rgba(255, 255, 255, 0.18); color: #fff; font-weight: 600; text-decoration: none; opacity: 0.85;
        transition: background 0.15s ease, opacity 0.15s ease, border-color 0.15s ease;
    }
    .pt-auth2-site-btn:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.35); opacity: 1; color: #fff; }
    .pt-auth2-site-btn svg { width: 16px; height: 16px; }
    .pt-auth2-main { background: var(--bg-page); }
    .pt-auth2-top { background: transparent; border-bottom: 0; min-height: 0; padding: 24px 40px 0; justify-content: flex-end; }
    .pt-auth2-top-id { display: none; }
    .pt-auth2-body { padding: 24px 40px 40px; margin: 0 auto; }
    .pt-auth2--center .pt-auth2-body { display: flex; flex-direction: column; justify-content: center; }
    .pt-auth2-h1 { font-size: 30px; }
    .pt-auth2-foot { padding-bottom: 28px; }
}
html[data-theme="dark"] .pt-auth2-side, html.tos-dark .pt-auth2-side { background: var(--bg-soft); color: var(--text); border-right: 1px solid var(--border); }
html[data-theme="dark"] .pt-auth2-side .pt-mark, html.tos-dark .pt-auth2-side .pt-mark { background: var(--text); color: var(--surface); }
html[data-theme="dark"] .pt-auth2-side .pt-brand-logo:not(.pt-brand-logo--light), html.tos-dark .pt-auth2-side .pt-brand-logo:not(.pt-brand-logo--light) { background: #fff; }
html[data-theme="dark"] .pt-auth2-side-in::before, html.tos-dark .pt-auth2-side-in::before { opacity: 0.12; }
html[data-theme="dark"] .pt-auth2-site-btn, html.tos-dark .pt-auth2-site-btn { color: var(--text); border-color: var(--border-strong); }
html[data-theme="dark"] .pt-auth2-site-btn:hover, html.tos-dark .pt-auth2-site-btn:hover { background: var(--bg-hover); color: var(--text); }

/* the compact cards of login / forgot / set-password */
.pt-auth-card { padding: 22px; box-shadow: var(--shadow-1); }
.pt-auth-card + .pt-auth-card { margin-top: 14px; }
.pt-auth-card--alt { display: flex; align-items: center; gap: 14px; }
.pt-auth-card--alt .pt-rolerow-ico { flex: none; }
.pt-auth-alt-txt { flex: 1; min-width: 0; }
.pt-auth-alt-title { display: block; font-size: 14.5px; font-weight: 700; margin-bottom: 2px; }
.pt-auth-alt-txt .pt-muted { display: block; }
.pt-auth-links { text-align: center; margin-top: 14px; font-size: 13.5px; }
.pt-auth-links a { color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; }
.pt-auth .alert, .pt-auth2 .alert { margin-bottom: 14px; }
.pt-auth2 .form-grid { gap: 14px; }
@media (min-width: 1024px) { .pt-auth-card { padding: 28px; box-shadow: var(--shadow-2); } }
.pt-success { text-align: center; padding: 8px 0 4px; }
.pt-success-ico { display: inline-flex; width: 60px; height: 60px; align-items: center; justify-content: center; border-radius: 50%; background: var(--success-bg); color: var(--success); margin-bottom: 14px; }
.pt-success-ico svg { width: 28px; height: 28px; }
.pt-success-t { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 6px; }
.pt-success-x { font-size: 14px; color: var(--text-2); line-height: 1.6; max-width: 420px; margin: 0 auto 18px; }

/* "Chi sei?": grouped role rows */
.pt-rolegroup + .pt-rolegroup { margin-top: 22px; }
.pt-rolegroup-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0 0 10px 2px; }
.pt-rolegroup-h > span { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-3); white-space: nowrap; }
.pt-rolegroup-h > small { font-size: 12.5px; color: var(--text-3); }
.pt-rolelist { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 720px) { .pt-rolelist { grid-template-columns: 1fr 1fr; } }
.pt-rolerow {
    display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; min-height: 76px; padding: 14px 12px 14px 14px;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); color: var(--text);
    box-shadow: var(--shadow-1); transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.pt-rolerow:hover { border-color: var(--text); box-shadow: var(--shadow-2); }
.pt-rolerow:hover .pt-rolerow-chev { transform: translateX(3px); color: var(--text); }
.pt-rolerow:active { transform: scale(0.995); }
.pt-rolerow-ico { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 12px; background: var(--bg-soft); color: var(--text); flex: none; }
.pt-rolerow-ico svg { width: 21px; height: 21px; }
.pt-rolerow-txt { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.pt-rolerow-t { font-weight: 700; font-size: 15px; letter-spacing: -0.01em; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-rolerow-d { font-size: 13px; color: var(--text-2); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pt-rolerow-meta { margin-top: 7px; display: flex; flex-wrap: nowrap; gap: 6px; overflow: hidden; }
.pt-rolerow-chev { color: var(--text-3); transition: transform 0.15s ease, color 0.15s ease; }
.pt-rolerow-chev svg { width: 18px; height: 18px; }
.pt-pill { display: inline-flex; align-items: center; font-size: 11.5px; font-weight: 600; padding: 3px 8px; border-radius: 6px; background: var(--bg-soft); color: var(--text-2); border: 1px solid var(--border); white-space: nowrap; flex: none; }
.pt-pill--ok { background: var(--success-bg); color: var(--success); border-color: transparent; }
.pt-pill--doc { background: var(--text); color: var(--surface); border-color: var(--text); }
.pt-auth2-signin { margin-top: 22px; }
.pt-driver-note { display: flex; align-items: flex-start; gap: 10px; margin-top: 16px; font-size: 12.5px; color: var(--text-3); line-height: 1.5; }
.pt-driver-note svg { width: 16px; height: 16px; flex: none; margin-top: 1px; }

/* the role forms + the partner application: rail + stepped cards */
.pt-reg { display: flex; flex-direction: column; gap: 14px; }

.pt-reg-rail { display: flex; flex-direction: column; gap: 12px; }
.pt-reg-role { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); color: var(--text); min-width: 0; }
.pt-reg-role:hover { border-color: var(--border-strong); }
.pt-reg-role .pt-rolerow-ico { width: 40px; height: 40px; }
.pt-reg-role-txt { flex: 1; min-width: 0; }
.pt-reg-role-k { display: block; font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; }
.pt-reg-role-t { display: block; flex: 1; min-width: 0; font-size: 15px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-reg-role-chg { flex: none; font-size: 12.5px; font-weight: 600; color: var(--text-2); text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.pt-reg-steps { display: none; list-style: none; margin: 0; padding: 0; }
.pt-reg-perks { display: none; }
.pt-reg-main { min-width: 0; }
.pt-step { padding: 18px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-1); }
.pt-step + .pt-step { margin-top: 12px; }
.pt-step-h { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.pt-step-h > div { flex: 1; min-width: 0; }
.pt-step-h .pt-req-legend { flex: none; white-space: nowrap; padding-top: 6px; }
.pt-reg-autosave { display: block; }
.pt-step-n { display: inline-flex; width: 28px; height: 28px; align-items: center; justify-content: center; border-radius: 8px; background: var(--text); color: var(--surface); font-size: 12px; font-weight: 700; flex: none; letter-spacing: 0.02em; }
.pt-step-title { font-size: 15.5px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; }
.pt-step-sub { font-size: 13px; color: var(--text-2); margin-top: 2px; line-height: 1.45; }
.pt-step .form-grid { gap: 14px; }
.pt-step-end { margin-top: 16px; }
.pt-step-end .btn { width: 100%; }
.pt-step-prog { display: none; margin: 0 0 14px; }
.pt-step-prog-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.pt-step-prog-n { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-3); }
.pt-step-prog-t { font-size: 13px; font-weight: 600; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-step-prog-bar { height: 4px; border-radius: 999px; background: var(--border); overflow: hidden; }
.pt-step-prog-bar i { display: block; height: 100%; background: var(--text); border-radius: 999px; transition: width 0.25s ease; }
.pt-step-nav { display: none; }
@media (max-width: 1023px) {
    .pt-stepped .pt-step { display: none; }
    .pt-stepped .pt-step.is-current { display: block; }
    .pt-stepped .pt-step-prog { display: block; }
    .pt-stepped .pt-step-nav { display: flex; gap: 10px; margin-top: 16px; }
    .pt-stepped .pt-step-nav .btn { flex: 1; }
    .pt-stepped .pt-step-end { display: none; margin-top: 12px; }
    .pt-stepped .pt-step-end.is-last { display: block; }
}
@media (min-width: 1024px) {
    .pt-reg { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; align-items: start; }
    .pt-auth2--xwide .pt-reg { grid-template-columns: 270px minmax(0, 1fr); }
    .pt-reg-rail { position: sticky; top: 24px; }
    .pt-reg-steps { display: flex; flex-direction: column; gap: 2px; padding: 6px 0; }
    .pt-reg-steps li { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: var(--radius-sm); font-size: 13.5px; color: var(--text-2); cursor: pointer; transition: background 0.15s ease, color 0.15s ease; }
    .pt-reg-steps li:hover { background: var(--bg-hover); color: var(--text); }
    .pt-reg-steps li.is-current { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: var(--shadow-1); border: 1px solid var(--border); }
    .pt-reg-steps .n { display: inline-flex; width: 24px; height: 24px; align-items: center; justify-content: center; border-radius: 50%; border: 1.5px solid var(--border-strong); font-size: 11.5px; font-weight: 700; color: var(--text-3); flex: none; }
    .pt-reg-steps li.is-current .n { background: var(--text); border-color: var(--text); color: var(--surface); }
    .pt-reg-steps li.is-done .n { border-color: var(--text); color: var(--text); }
    .pt-reg-perks { display: block; padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
    .pt-reg-perks .pt-h2 { margin: 0 0 10px; }
    .pt-reg-perks ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
    .pt-reg-perks li { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--text-2); line-height: 1.45; }
    .pt-reg-perks svg { width: 16px; height: 16px; flex: none; margin-top: 1px; color: var(--text); }
    .pt-step { padding: 24px 26px; }
    .pt-step + .pt-step { margin-top: 16px; }
    .pt-step-h { margin-bottom: 20px; }
    .pt-step-end .btn { width: auto; min-width: 240px; }
}
/* a 12-column field grid for the wide forms (the partner application) */
.pt-fgrid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; }
.pt-fgrid > .form-field { grid-column: span 12; min-width: 0; }
@media (min-width: 640px) {
    .pt-fgrid > .c2, .pt-fgrid > .c3, .pt-fgrid > .c4 { grid-column: span 6; }
    .pt-fgrid > .c6 { grid-column: span 6; }
    .pt-fgrid > .c8 { grid-column: span 12; }
}
@media (min-width: 1024px) {
    .pt-fgrid > .c2 { grid-column: span 2; } .pt-fgrid > .c3 { grid-column: span 3; } .pt-fgrid > .c4 { grid-column: span 4; }
    .pt-fgrid > .c6 { grid-column: span 6; } .pt-fgrid > .c8 { grid-column: span 8; } .pt-fgrid > .c12 { grid-column: span 12; }
}
.pt-fsec { grid-column: span 12 !important; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-3); margin-top: 6px; }
.pt-fsec:first-child { margin-top: 0; }
/* password strength */
.pt-pwmeter { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.pt-pwmeter-bars { display: flex; gap: 4px; flex: 1; }
.pt-pwmeter-bars i { flex: 1; height: 4px; border-radius: 999px; background: var(--border); transition: background 0.2s ease; }
.pt-pwmeter[data-score="1"] i:nth-child(-n+1) { background: var(--danger); }
.pt-pwmeter[data-score="2"] i:nth-child(-n+2) { background: var(--warning); }
.pt-pwmeter[data-score="3"] i:nth-child(-n+3) { background: var(--success); }
.pt-pwmeter[data-score="4"] i { background: var(--success); }
.pt-pwmeter-t { font-size: 12px; color: var(--text-3); min-width: 48px; text-align: right; }
/* the inline hint under a label */
.form-label .pt-imark { display: inline-flex; width: 15px; height: 15px; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid var(--border-strong); color: var(--text-3); font-size: 10px; font-style: normal; font-weight: 700; margin-left: 4px; vertical-align: 1px; cursor: help; }
/* the partner application's unit cards, tags, checkgrid, suggestions, files */
.pt-unit { border: 1px solid var(--border-strong); border-radius: var(--radius-lg); background: var(--bg-soft); padding: 14px; }
.pt-unit + .pt-unit { margin-top: 12px; }
.pt-unit.is-invalid { border-color: var(--danger); }
.pt-unit-h { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.pt-unit-name { font-size: 13.5px; font-weight: 700; }
.pt-unit-sum { flex: 1; min-width: 0; font-size: 13px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-unit-err { grid-column: span 12; font-size: 13px; color: var(--danger); font-weight: 500; }
.pt-unit-add { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; }
.pt-unit-add svg { width: 16px; height: 16px; }
.pt-checkgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; }
.pt-checkgrid--3 { grid-template-columns: 1fr 1fr; }
@media (min-width: 640px) { .pt-checkgrid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .pt-checkgrid { grid-template-columns: repeat(4, 1fr); } .pt-checkgrid--3 { grid-template-columns: repeat(3, 1fr); } }
.pt-checkgrid .pt-check { padding: 6px 0; font-size: 13.5px; align-items: center; }
.pt-checkgrid .pt-check input { width: 18px; height: 18px; margin: 0; }
.pt-check-hide { display: none !important; }
.pt-check-more { margin-top: 6px; background: none; border: 0; padding: 0; font: inherit; font-size: 13px; color: var(--text-2); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.pt-tags { position: relative; }
.pt-tags-box { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-height: 44px; padding: 6px 8px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); cursor: text; }
.pt-tags-box:focus-within { box-shadow: var(--ring); border-color: var(--text); }
.pt-tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 6px 3px 10px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--border); font-size: 13px; max-width: 100%; }
.pt-tag-x { display: inline-flex; width: 18px; height: 18px; align-items: center; justify-content: center; border-radius: 50%; border: 0; background: transparent; color: var(--text-3); font-size: 15px; line-height: 1; cursor: pointer; }
.pt-tag-x:hover { background: var(--bg-active); color: var(--text); }
.pt-tags-input { flex: 1; min-width: 120px; border: 0; background: transparent; font: inherit; font-size: 14px; color: var(--text); padding: 6px 4px; outline: none; }
.pt-suggest { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 30; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow-2); max-height: 260px; overflow: auto; padding: 4px; }
.pt-suggest-item { display: block; width: 100%; text-align: left; padding: 9px 10px; border: 0; background: transparent; font: inherit; font-size: 14px; color: var(--text); border-radius: 6px; cursor: pointer; }
.pt-suggest-item:hover { background: var(--bg-hover); }
.form-field { position: relative; }
.pt-field-note { margin: 6px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--text-2); }
.pt-field-note[hidden] { display: none; }
.pt-file.is-invalid .pt-file-face { border-color: var(--danger); }
.pt-file-clear { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); z-index: 2; display: none; width: 30px; height: 30px; align-items: center; justify-content: center; border-radius: 50%; border: 0; background: var(--bg-active); color: var(--text-2); cursor: pointer; }
.pt-file.has-file .pt-file-clear { display: inline-flex; }
.pt-file-clear svg { width: 14px; height: 14px; }
.pt-autosave { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-3); }
.pt-autosave svg { width: 14px; height: 14px; }
.pt-autosave.is-saved { color: var(--success); }
.pt-draftbar { display: none; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--info-bg); color: var(--info); font-size: 13.5px; line-height: 1.5; margin-bottom: 14px; }
.pt-draftbar.is-on { display: flex; }
.pt-draftbar svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.pt-draftbar p { flex: 1; }
.pt-draftbar button { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; white-space: nowrap; }
.pt-consents { display: flex; flex-direction: column; gap: 2px; }
.pt-consents .pt-check { font-size: 13.5px; line-height: 1.5; }
.pt-consents .pt-check.is-invalid input { outline: 2px solid var(--danger); outline-offset: 1px; border-radius: 3px; }
.pt-channels { display: flex; flex-wrap: wrap; gap: 8px; }
.pt-req-legend { font-size: 12.5px; color: var(--text-3); }

/* ── 6. Job card + route glyph ───────────────────────────────────────────── */
.pt-job { display: flex; gap: 14px; align-items: stretch; }
.pt-job-when { flex: none; width: 54px; text-align: center; padding-top: 1px; }
.pt-job-time { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--text); }
.pt-job-day { font-size: 11px; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.04em; margin-top: 2px; }
.pt-job-body { flex: 1; min-width: 0; }
.pt-job-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.pt-job-top .badge { flex: none; }
.pt-route { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pt-route-node { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.4; color: var(--text); min-width: 0; }
.pt-route-node > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-route-pin { position: relative; flex: none; width: 9px; height: 9px; margin-top: 6px; border-radius: 50%; border: 2px solid var(--text-3); background: var(--surface); }
.pt-route-node--to .pt-route-pin { border-color: var(--text); background: var(--text); }
.pt-route-node--from .pt-route-pin::after { content: ''; position: absolute; left: 50%; top: 100%; width: 2px; height: 16px; margin-left: -1px; background: var(--border-strong); }
.pt-route--single .pt-route-node--from .pt-route-pin::after { display: none; }
.pt-route--single .pt-route-node--from .pt-route-pin { border-color: var(--text); background: var(--text); }
.pt-route--single .pt-route-node > span:last-child { white-space: normal; }
.pt-route-sub { display: block; font-size: 13px; font-weight: 400; color: var(--text-2); margin-top: 2px; }
.pt-route--lg .pt-route-node { font-size: 15.5px; font-weight: 600; }
.pt-route--lg .pt-route-node > span:last-child { white-space: normal; }
.pt-route--lg .pt-route-node--from .pt-route-pin::after { height: 30px; }
.pt-route-adr { display: block; font-size: 13.5px; font-weight: 400; color: var(--text-2); margin-top: 2px; }
.pt-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: 12.5px; color: var(--text-2); }
.pt-meta-item { display: inline-flex; align-items: center; gap: 5px; min-width: 0; }
.pt-meta-item svg { width: 14px; height: 14px; flex: none; color: var(--text-3); }
.pt-big-time { font-size: 30px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }

/* customer booking card */
.pt-cb { display: flex; gap: 14px; align-items: flex-start; }
.pt-cb-when { flex: none; width: 60px; text-align: center; padding-top: 2px; }
.pt-cb-time { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.pt-cb-date { font-size: 11.5px; color: var(--text-2); line-height: 1.3; margin-top: 2px; }
.pt-cb-body { flex: 1; min-width: 0; }
.pt-cb-route { font-size: 14.5px; font-weight: 600; line-height: 1.4; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; }
.pt-cb-arrow { color: var(--text-3); font-weight: 400; }
.pt-cb-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; align-items: center; }
.pt-cb-meta .badge { font-weight: 500; }
.pt-cb-meta .badge.pt-strong { font-weight: 700; color: var(--text); }
.pt-cb-meta .badge svg { width: 6px; height: 6px; }
.pt-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; display: inline-block; }

/* ── 7. Detail layout: content + sticky rail, floating action bar ────────── */
.pt-cols { display: grid; grid-template-columns: 1fr; gap: 12px; }
.pt-cols-rail { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 1024px) {
    .pt-cols { grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
    .pt-cols-rail { position: sticky; top: 88px; }
}
.pt-actionbar {
    position: fixed; left: 0; right: 0;
    bottom: calc(var(--pt-tabbar-h) + env(safe-area-inset-bottom));
    z-index: 28; padding: 12px 16px;
    background: var(--surface);
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-top: 1px solid var(--border);
}
@supports not (backdrop-filter: blur(2px)) { .pt-actionbar { background: var(--surface); } }
.pt-actionbar-inner { max-width: 640px; margin: 0 auto; }
.pt-has-actionbar .pt-main { padding-bottom: calc(var(--pt-tabbar-h) + 96px + env(safe-area-inset-bottom)); }
@media (min-width: 1024px) {
    .pt-actionbar { position: static; padding: 0; border: 0; background: none; backdrop-filter: none; }
    .pt-actionbar-inner { max-width: none; }
    .pt-actionbar .pt-btn-row > .btn { flex: 1 1 100%; }
    .pt-has-actionbar .pt-main { padding-bottom: 56px; }
}
/* month stepper */
.pt-stepper { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.pt-stepper-label { flex: 1; text-align: center; font-size: 15px; font-weight: 700; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.pt-stepper .act-btn.is-disabled { opacity: 0.35; pointer-events: none; }
@media (min-width: 1024px) { .pt-stepper { justify-content: flex-start; } .pt-stepper-label { flex: 0 0 auto; min-width: 150px; } }
.pt-ledger { padding: 0; overflow: hidden; }
.pt-ledger-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 14px 16px; border-top: 1px solid var(--border); }
.pt-ledger-row:first-child { border-top: 0; }
.pt-ledger-main { min-width: 0; }
.pt-ledger-title { font-size: 14px; font-weight: 600; }
.pt-ledger-amt { flex: none; font-weight: 700; font-variant-numeric: tabular-nums; }
.pt-listrow { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--border); }
.pt-listrow:first-child { border-top: 0; }
.pt-listrow.is-done { background: var(--success-bg); }
.pt-listrow-main { flex: 1 1 auto; min-width: 0; }
.pt-listrow-title { font-weight: 650; color: var(--text); }
.pt-listrow-sub { font-size: 12.5px; color: var(--text-2); margin-top: 2px; }
.pt-listrow-side { display: flex; align-items: center; gap: 8px; flex: none; }
.pt-inline { display: flex; gap: 8px; align-items: center; }
.pt-inline .form-control { flex: 1 1 auto; min-width: 0; }
.pt-driver-head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pt-driver-head > div { min-width: 0; flex: 1; }
.pt-driver-name { font-weight: 700; }
.pt-driver-sub { font-size: 13px; color: var(--text-2); display: flex; flex-wrap: wrap; gap: 2px 10px; }
.pt-driver-sub span { min-width: 0; overflow-wrap: anywhere; }
.pt-cond { display: flex; flex-direction: column; gap: 10px; }
.pt-cond-row { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.5; }
.pt-cond-ico { flex: none; display: inline-flex; width: 28px; height: 28px; align-items: center; justify-content: center; border-radius: 8px; background: var(--bg-soft); color: var(--text); }
.pt-cond-ico svg { width: 15px; height: 15px; }
.pt-identity { display: flex; align-items: center; gap: 14px; min-width: 0; }
.pt-identity-name { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.pt-identity-role { margin-top: 4px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }

/* ── 8. (retired 26 Aug 2026: the partner application is native to the portal, see section 5) ── */

/* ── 9. Shuttle scanner stage (full-bleed dark by design) ────────────────── */
.pt-scan-stage { position: relative; border-radius: var(--radius); overflow: hidden; background: #000; aspect-ratio: 3 / 4; max-height: 58vh; }
.pt-scan-stage video { width: 100%; height: 100%; object-fit: cover; display: block; }
.pt-scan-frame { position: absolute; inset: 18% 12%; border: 3px solid rgba(255,255,255,0.82); border-radius: 14px; box-shadow: 0 0 0 100vmax rgba(0,0,0,0.28); pointer-events: none; }
.pt-scan-card { margin-top: 12px; border-radius: var(--radius); padding: 16px; border: 1px solid var(--border); background: var(--surface); }
.pt-scan-card.is-ok   { border-color: var(--success); background: var(--success-bg); }
.pt-scan-card.is-warn { border-color: var(--warning); background: var(--warning-bg); }
.pt-scan-card.is-bad  { border-color: var(--danger);  background: var(--danger-bg); }
.pt-scan-res { font-size: 13px; font-weight: 750; text-transform: uppercase; letter-spacing: 0.6px; }
.pt-scan-name { font-size: 21px; font-weight: 750; margin-top: 4px; color: var(--text); }
.pt-scan-meta { font-size: 13.5px; color: var(--text-2); margin-top: 3px; }

@media (prefers-reduced-motion: reduce) { .pt-root * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; } }
@media print {
    .pt-sidebar, .pt-tabbar, .pt-header, .pt-actionbar, .btn, .pt-iconbtn { display: none !important; }
    .pt-frame, .pt-main, .pt-container { margin: 0 !important; padding: 0 !important; max-width: none !important; }
    .pt-listrow { break-inside: avoid; }
    @page { size: A4; margin: 12mm; }
}

/* shuttle list container (the departures + manifest rows) */
.pt-list { padding: 0; overflow: hidden; }

/* ── 10. Round 3 (26 Aug 2026): stars, documents, chips, hub cards, tab strip ── */
.pt-stars { display: inline-flex; gap: 1px; color: var(--text-3); vertical-align: middle; }
.pt-star svg { width: 14px; height: 14px; display: block; }
.pt-star.is-on { color: #f59e0b; }
.pt-star.is-on svg { fill: currentColor; }
.pt-stars--lg .pt-star svg { width: 22px; height: 22px; }
.pt-rating-avg { display: flex; align-items: center; gap: 12px; }
.pt-rating-num { font-size: 30px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.pt-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pt-menu-form { margin: 0; }
.pt-menu-form .tos-menu-item { width: 100%; text-align: left; background: none; border: 0; font: inherit; cursor: pointer; }
.pt-hub { display: flex; flex-direction: column; gap: 10px; }
.pt-hub-card { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 14.5px; }
.pt-hub-card > svg:last-child { width: 18px; height: 18px; margin-left: auto; color: var(--text-3); }
.pt-hub-ico { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: var(--radius-sm); background: var(--bg-soft); color: var(--text); flex: none; }
.pt-hub-ico svg { width: 18px; height: 18px; }
.pt-mtabs { padding: 0; margin-bottom: 16px; }
.pt-mtabs .tos-mtab { color: var(--text-2); }
.pt-mtabs .tos-mtab.is-active { color: var(--text); }
@media (min-width: 1024px) { .pt-mtabs { margin-bottom: 20px; } }
.pt-ledger .pt-listrow-sub { margin-top: 3px; }
.pt-root .pl-row .pt-btn-row--tight { gap: 6px; }
.pt-root .tos-sec { margin-top: 20px; }
.pt-avatar > svg { width: 18px; height: 18px; }
.pt-root .tos-modal-body .form-grid .form-field { min-width: 0; }

/* the eye in the password fields: portal_icon() emits an unsized svg */
.pt-root .input-affix-btn svg { width: 18px; height: 18px; }

/* ═══ email confirmation code (4 Sep 2026) ═══════════════════════════════════ */
.pt-vcode-head { text-align: center; margin-bottom: 18px; }
.pt-vcode-head .pt-success-ico { margin: 0 auto 12px; }
.pt-vcode-t { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.pt-vcode-x { margin: 6px 0 0; font-size: 14px; color: var(--text-2); line-height: 1.5; word-break: break-word; }
.pt-vcode-form .form-field { margin-bottom: 14px; }
.pt-vcode-input { text-align: center; font-size: 26px; font-weight: 700; letter-spacing: 0.22em; font-family: ui-monospace, Menlo, Consolas, monospace; min-height: 56px; }
.pt-vcode-input::placeholder { letter-spacing: 0.22em; font-weight: 500; color: var(--text-3); }
.pt-vcode-resend { display: flex; align-items: center; justify-content: center; gap: 4px; flex-wrap: wrap; margin-top: 14px; font-size: 13px; }
.pt-vcode-resend .btn-link { padding: 0 2px; min-height: 0; font-size: 13px; font-weight: 600; text-decoration: underline; }
.pt-vcode-resend .btn-link { background: none; border: 0; box-shadow: none; color: var(--text); cursor: pointer; }
.pt-vcode-resend .btn-link:disabled { color: var(--text-3); text-decoration: none; cursor: default; }
/* a link-style action inside a field hint ("Uguale alla partita IVA" of the registration, chat #592) */
.form-hint .btn-link { display: inline; padding: 0; min-height: 0; font-size: inherit; font-weight: 600; text-decoration: underline; background: none; border: 0; box-shadow: none; color: var(--text); cursor: pointer; }

/* ── 11. Marketplace (8 Sep 2026, pass 2): the listing card, the board, the sheets ── */
.pmk-card { display: flex; flex-direction: column; gap: 14px; }
.pmk-card--compact { gap: 12px; }
.pmk-card .pt-route-node > span:last-child { white-space: normal; overflow: visible; text-overflow: clip; }
.pmk-card .pt-route-node { font-size: 15px; font-weight: 600; }
.pmk-card .pt-route-node--from .pt-route-pin::after { height: calc(100% + 14px); }
.pmk-card .pt-route-node--from { padding-bottom: 2px; }
.pmk-card--compact .pt-route-node { font-size: 14.5px; }
.pmk-card .pt-route-adr { font-size: 13px; }
.pmk-legs { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pmk-legline { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-3); }
/* the hero money block */
.pmk-hero { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.pmk-hero-main { min-width: 0; }
.pmk-hero-cap { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-2); }
.pmk-hero-amt { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; margin-top: 2px; font-variant-numeric: tabular-nums; color: var(--text); white-space: nowrap; }
.pmk-hero-amt.pmk-hero-amt--txt { font-size: 18px; font-weight: 600; white-space: normal; } /* a state sentence, never money-sized; wins over the >=1024px 30px rule */
.pmk-hero-sub { font-size: 13px; color: var(--text-2); margin-top: 3px; }
.pmk-hero-side { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; align-content: flex-start; gap: 6px; flex: 0 1 auto; max-width: 50%; padding-top: 2px; }
.pmk-hero-side .badge { white-space: nowrap; }
/* grid cards stretch to one height (owner, 8 Sep 2026: "I don't like them being different tall") */
.pmk-pill { display: inline-flex; align-items: center; padding: 5px 10px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--border); font-size: 12px; font-weight: 600; color: var(--text); white-space: nowrap; line-height: 1.3; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.pmk-new { background: var(--text); color: var(--surface); }
/* the amber changed line */
.pmk-changed { display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--warning-bg); color: var(--warning); font-size: 13px; font-weight: 500; line-height: 1.45; }
.pmk-changed svg, .pmk-line svg, .pmk-mine-line svg, .pmk-state svg, .pmk-chip svg, .pmk-cd svg, .pmk-what-list svg, .pmk-sheet-route svg, .pmk-sheet-when svg { width: 16px; height: 16px; flex: none; }
.pmk-changed svg { margin-top: 1px; }
/* my state strip */
.pmk-mine { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--bg-soft); border: 1px solid var(--border); }
.pmk-mine--ok { background: var(--success-bg); border-color: transparent; }
.pmk-mine--ok .pmk-mine-line { color: var(--success-strong); }
.pmk-mine-line { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.pmk-mine .pt-btn-row { align-items: center; }
.pmk-mine .pt-note { margin: 0; }
/* facts row */
.pmk-meta { margin-top: 0; font-size: 13px; gap: 8px 14px; }
/* the map box: a fixed 16:9 frame, soft ground, never a layout jump */
.pmk-mapwrap { display: flex; flex-direction: column; gap: 8px; }
.pmk-map { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-soft); border: 1px solid var(--border); }
.pmk-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.pmk-map__open { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--text-2); text-decoration: none; align-self: flex-start; }
.pmk-map__open:hover { color: var(--text); text-decoration: underline; }
.pmk-map__open svg { width: 14px; height: 14px; }
.pmk-public__head { padding: 0 2px; }
.pmk-map img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.pmk-notes { margin: 0; }
/* the how-it-works + payment sentences */
.pmk-lines { display: flex; flex-direction: column; gap: 8px; }
.pmk-line { display: flex; align-items: flex-start; gap: 8px; font-size: 13.5px; line-height: 1.5; color: var(--text-2); }
.pmk-line svg { margin-top: 2px; color: var(--text-3); }
.pmk-line--ok { color: var(--success-strong); font-weight: 600; }
.pmk-line--ok svg { color: var(--success-strong); }
.pmk-line--muted { color: var(--text-3); }
/* the countdown chip */
.pmk-cd-row { display: flex; }
.pmk-cd { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--border); font-size: 12.5px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.pmk-cd b { color: var(--text); font-weight: 700; }
.pmk-cd.is-soon { background: var(--warning-bg); border-color: transparent; color: var(--warning); }
.pmk-cd.is-soon b, .pmk-cd.is-soon svg { color: var(--warning); }
.pmk-cd.is-urgent { background: var(--danger-bg); border-color: transparent; color: var(--danger); }
.pmk-cd.is-urgent b, .pmk-cd.is-urgent svg { color: var(--danger); }
.pmk-cd.is-over { color: var(--text-3); }
.pmk-cd.is-over b { color: var(--text-3); font-weight: 600; }
/* the publisher block */
.pmk-pub { display: flex; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid var(--border); min-width: 0; }
.pmk-pub .pt-brand-logo { height: 26px; max-width: 110px; }
.pmk-pub .pt-mark { width: 36px; height: 36px; font-size: 13px; }
.pmk-pub-txt { min-width: 0; }
.pmk-pub-name { font-size: 13.5px; font-weight: 600; line-height: 1.35; }
.pmk-pub-co { font-weight: 400; color: var(--text-2); }
.pmk-pub-sub { font-size: 12px; color: var(--text-3); margin-top: 2px; }
/* the action card */
.pmk-actions-money { font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.pmk-state { display: flex; align-items: center; gap: 8px; font-weight: 600; margin-bottom: 12px; }
.pmk-state--ok { color: var(--success); }
.card.pmk-actions p.pmk-hint { margin: 12px 0 0; }
.pmk-actions .pt-btn-row + .pt-btn-row { margin-top: 10px; }
.pmk-row-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: -6px 0 8px; }
.pmk-chip { display: inline-flex; align-items: center; gap: 4px; vertical-align: middle; }
/* the sheets */
.pmk-sheet-sum { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.pmk-sheet-route, .pmk-sheet-when { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; line-height: 1.45; }
.pmk-sheet-route { font-weight: 600; }
.pmk-sheet-route svg, .pmk-sheet-when svg { margin-top: 2px; color: var(--text-3); }
.pmk-sheet-when { color: var(--text-2); }
.pmk-sheet-money { display: flex; align-items: baseline; gap: 8px; margin-top: 6px; }
.pmk-sheet-money b { font-size: 20px; font-weight: 700; }
.pmk-sheet-cap { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-2); }
.pmk-terms { margin-top: 14px; }
.pmk-terms-det summary { cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--text); padding: 6px 0; list-style: none; display: flex; align-items: center; gap: 6px; }
.pmk-terms-det summary::-webkit-details-marker { display: none; }
.pmk-terms-det summary::before { content: ''; width: 7px; height: 7px; border-right: 2px solid var(--text-2); border-bottom: 2px solid var(--text-2); transform: rotate(-45deg); transition: transform 0.15s ease; margin-right: 2px; }
.pmk-terms-det[open] summary::before { transform: rotate(45deg); }
.pmk-terms-text { max-height: 180px; overflow: auto; margin: 6px 0 4px; font-size: 13px; }
.pmk-cur { font-weight: 600; font-size: 13px; pointer-events: none; }
.pmk-amt { font-size: 20px; font-weight: 700; }
/* the board */
.pmk-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) { .pmk-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pmk-stat-money { font-size: 20px; white-space: nowrap; }
@media (max-width: 430px) { .pmk-stat-money { font-size: 18px; } .pmk-stats .stat-tile { padding: 12px 14px; } .pmk-stats .stat-metric { font-size: 22px; } }
.pmk-empty .empty-panel-text { margin: 4px auto 0; text-align: center; } /* .pt-root p { margin: 0 } would kill the auto centring */
.pt-tab-dot--plain { min-width: 9px; width: 9px; height: 9px; padding: 0; top: -1px; right: -4px; }
/* the job page: the declared collection */
.pmk-collected { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); }
.pmk-collected-sub { font-size: 12.5px; color: var(--text-3); margin-top: 4px; padding-left: 24px; }
.pmk-collected-sub.is-ok { color: var(--success-strong); }
/* the public face */
.pmk-public { max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.pmk-login-title { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 4px; }
.pmk-login .pmk-hint { margin: 0 0 14px; }
.pmk-login-links { margin-top: 12px; }
.pmk-login-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.pmk-login-opt { display: flex; flex-direction: column; min-width: 0; }
.card.pmk-actions .pmk-login-opt p.pmk-hint { flex: 1; margin: 0 0 12px; } /* beats .card.pmk-actions p.pmk-hint { margin: 12px 0 0 } */
@media (max-width: 640px) { .pmk-login-grid { grid-template-columns: 1fr; gap: 14px; } .pmk-login-opt + .pmk-login-opt { padding-top: 14px; border-top: 1px solid var(--border); } }
.pmk-what-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.pmk-what-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; line-height: 1.5; color: var(--text-2); }
.pmk-what-list svg { margin-top: 2px; color: var(--text-3); }
@media (min-width: 1024px) {
    .pmk-cols { grid-template-columns: minmax(0, 1fr) 340px; }
    .pmk-hero-amt { font-size: 30px; }
}

/* ── 12. The public /m/CODE face (8 Sep 2026, owner: the quote page's idiom, no side bar) ── */
.pmk-pub-body { background: var(--bg-page); }
.pmk-pub-wrap { max-width: 680px; margin: 0 auto; padding: 18px 16px calc(28px + env(safe-area-inset-bottom)); }
.pmk-pub-wrap .pmk-public { max-width: none; } /* the head and the card share the wrap's width exactly */
.pmk-pub-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 18px; min-height: 40px; }
.pmk-pub-brand { display: inline-flex; align-items: center; min-width: 0; text-decoration: none; color: inherit; }
.pmk-pub-brand .pt-brand-logo { height: var(--logo-h, 30px); width: auto; max-width: min(220px, 52vw); object-fit: contain; display: block; }
@media (max-width: 768px) { .pmk-pub-brand .pt-brand-logo { height: var(--logo-h-mobile, var(--logo-h, 30px)); } }
.pmk-pub-ctl { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.pmk-dd { position: relative; }
.pmk-dd-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 9px 0 10px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; -webkit-appearance: none; }
.pmk-dd-btn:hover, .pmk-dd.is-open .pmk-dd-btn { border-color: var(--text); }
.pmk-dd-btn img { width: 20px; height: 14px; border-radius: 2px; object-fit: cover; display: block; }
.pmk-dd-btn svg { width: 14px; height: 14px; color: var(--text-2); transition: transform .15s; }
.pmk-dd.is-open .pmk-dd-btn svg { transform: rotate(180deg); }
.pmk-dd-menu { display: none; position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 200px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 10px 30px rgba(16,24,40,.12); padding: 6px; }
.pmk-dd.is-open .pmk-dd-menu { display: block; }
.pmk-dd-menu--cur { width: 260px; }
.pmk-dd-search { display: block; width: 100%; box-sizing: border-box; min-height: 38px; margin: 0 0 6px; padding: 0 12px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); color: var(--text); font: inherit; font-size: 16px; -webkit-appearance: none; }
.pmk-dd-search:focus { outline: none; border-color: var(--text); }
.pmk-dd-list { max-height: min(320px, 55vh); overflow: auto; overscroll-behavior: contain; }
.pmk-dd-item { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 10px; border-radius: 8px; text-decoration: none; color: var(--text); font-size: 14px; font-weight: 500; }
.pmk-dd-item img { width: 20px; height: 14px; border-radius: 2px; object-fit: cover; }
.pmk-dd-item b { width: 42px; flex-shrink: 0; font-weight: 700; letter-spacing: .2px; }
.pmk-dd-item:hover { background: var(--bg-soft); }
.pmk-dd-item.is-on { background: var(--text); color: var(--surface); }
.pmk-dd-item[hidden] { display: none; }
.pmk-curnote { margin: 0; font-size: 12.5px; color: var(--text-3); line-height: 1.5; }
.pmk-pub-foot { text-align: center; font-size: 12.5px; color: var(--text-3); padding: 22px 0 0; }
.pmk-pub-foot a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.pmk-gone .empty-panel { padding: 40px 20px; }
.pmk-gone .empty-panel-text { margin: 0 auto; }
.pmk-env-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pmk-env-row .btn { flex: 1 1 auto; }
.pmk-env-form { margin: 0; }
/* my own state as the rail card of the full listing page (8 Sep 2026) */
.pmk-mine-card .pmk-mine-line { font-size: 15px; }
.pmk-mine-card--ok .pmk-mine-line { color: var(--success-strong); }
.pmk-mine-card--muted .pmk-mine-line { color: var(--text-2); }
.pmk-mine-facts { display: flex; flex-direction: column; gap: 8px; margin: 12px 0 14px; font-size: 13.5px; line-height: 1.45; color: var(--text-2); }
.pmk-mine-fact { display: flex; align-items: flex-start; gap: 8px; }
.pmk-mine-fact svg { width: 16px; height: 16px; flex: none; margin-top: 1px; color: var(--text-3); }
.pmk-mine-card .pt-note { margin: 0 0 12px; }
/* the card as head / body / foot (8 Sep 2026): on the board every card's body starts at the same height and the foot sits on the bottom edge */
.pmk-card__body { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.pmk-card--compact .pmk-card__body { gap: 12px; flex: 1; }
.pmk-card--compact .pmk-card__head { min-height: 72px; }
.pmk-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.pmk-mine-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: var(--bg-soft); border: 1px solid var(--border); color: var(--text-2); }
.pmk-mine-chip svg { width: 14px; height: 14px; flex: none; }
.pmk-mine-chip--ok { background: var(--success-bg); border-color: transparent; color: var(--success-strong); }
.pmk-mine-chip--info { background: var(--info-bg, var(--bg-soft)); }
/* the compact card's foot is a real footer row: a rule on top, plain text left (deadline) and right (my state), never pills that wrap */
.pmk-card--compact .pmk-card__foot { gap: 10px; flex-wrap: nowrap; border-top: 1px solid var(--border); padding-top: 10px; }
.pmk-card--compact .pmk-cd, .pmk-card--compact .pmk-mine-chip { font-size: 12.5px; padding: 0; background: none; border: 0; border-radius: 0; min-width: 0; }
.pmk-card--compact .pmk-mine-chip { margin-left: auto; white-space: nowrap; }
.pmk-card--compact .pmk-cd { white-space: nowrap; }
/* the header account tile, the app's idiom (8 Sep 2026): black avatar + name + chevron; the name from 768px up */
.pt-user-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 4px 6px 4px 4px; margin-left: 4px; border: 0; border-radius: 999px; background: transparent; color: var(--text); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; max-width: 240px; }
.pt-user-toggle:hover { background: var(--bg-hover); }
.pt-user-avatar { width: 32px; height: 32px; font-size: 12px; background: var(--text); color: var(--surface); }
.pt-user-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.pt-user-name { display: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-user-chev { display: none; width: 14px; height: 14px; color: var(--text-3); flex: none; }
@media (min-width: 768px) { .pt-user-name, .pt-user-chev { display: block; } .pt-user-toggle { padding-right: 10px; } }
.pt-header-logo { display: none; align-items: center; }
/* the same logo size as the site's own header (site_settings.logo_size / logo_size_mobile, the header.php rule), capped to the 64px bar */
.pt-header-logo .pt-brand-logo { height: var(--logo-h, 30px); max-height: 48px; width: auto; max-width: 220px; }
@media (max-width: 768px) { .pt-header-logo .pt-brand-logo { height: var(--logo-h-mobile, var(--logo-h, 30px)); } }
/* the account menu (8 Sep 2026): who you are on top, the actions, the theme, sign out */
.pt-acc-menu { width: 280px; padding: 6px; }
.pt-acc-head { display: flex; align-items: center; gap: 12px; padding: 10px 10px 12px; }
.pt-acc-avatar { width: 40px; height: 40px; font-size: 14px; background: var(--text); color: var(--surface); }
.pt-acc-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.pt-acc-who { min-width: 0; }
.pt-acc-name { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-acc-role { font-size: 12px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.pt-acc-mail { font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.pt-acc-sep { height: 1px; background: var(--border); margin: 4px 2px; }
.pt-acc-menu .tos-menu-item { min-height: 40px; font-size: 14px; }
.pt-acc-theme { padding: 8px 10px 10px; }
.pt-acc-theme-lbl { font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-3); margin-bottom: 8px; }
.pt-acc-seg .seg-opt { min-height: 36px; padding: 0 6px; font-size: 12.5px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.pt-acc-seg .seg-opt svg { width: 15px; height: 15px; flex: none; }

/* A read-only group of cards (a colleague login on /portal/profile, 22 Sep 2026): no fieldset chrome. */
.pt-fieldset { border: 0; margin: 0; padding: 0; min-width: 0; display: contents; }
.pt-fieldset[disabled] .form-control, .pt-fieldset[disabled] .form-select, .pt-fieldset[disabled] .tos-sel-trigger { background: var(--bg-soft); color: var(--text-2); cursor: not-allowed; opacity: 1; -webkit-text-fill-color: var(--text-2); }   /* the tos read-only look; iOS would fade a disabled field to near-invisible */
/* An info row that carries its own action button (22 Sep 2026: colleagues' ask, NCC offer, partner nudges). */
.pt-alert-row--action { align-items: center; flex-wrap: wrap; column-gap: 10px; }
.pt-alert-row--action > span { flex: 1; min-width: 220px; }
.pt-alert-row--action form { margin: 0; }
@media (max-width: 560px) { .pt-alert-row--action { align-items: flex-start; } .pt-alert-row--action > .btn, .pt-alert-row--action > form { margin-left: 28px; } }   /* the icon sits on the first line, like the plain info rows */
.pt-fieldset[disabled] .req-mark { display: none; }   /* nothing is "required" in a read-only group */

/* VAT number with its country in front (chat #593): flag + "IT" button, then the number */
.pt-vatrow { display: flex; gap: 8px; align-items: stretch; }
.pt-vatrow > .tos-sel, .pt-vatrow > select { flex: 0 0 118px; min-width: 0; }
.pt-vatrow > .tos-sel .tos-sel-trigger { height: 100%; }
.pt-vatrow > input { flex: 1 1 auto; min-width: 0; }

/* Year filter + year headers of Tutti i servizi / Fatture / Note di credito (8 Nov 2026, chat #910) */
.pt-years { max-width: 100%; overflow-x: auto; scrollbar-width: none; margin: 0 0 14px; }
.pt-years::-webkit-scrollbar { display: none; }
.pt-years .seg-opt { text-decoration: none; white-space: nowrap; }
.pt-years-n { font-size: 11px; color: var(--text-2); font-weight: 500; margin-left: 2px; }
.pt-ledger-year { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 4px 2px 8px; font-weight: 700; font-size: 15px; }
.pt-ledger-year .pt-muted { font-weight: 500; font-size: 13px; }

/* Colleghe e accessi (chat #910, portal/team.php, lib/PortalTeam.php) */
.pt-team-head { display: flex; gap: 12px; align-items: center; }
.pt-team-who { min-width: 0; flex: 1; }
.pt-team-name { font-weight: 600; font-size: 15px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 2px; }
.pt-team-facts { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 14px 0 10px; font-size: 13.5px; }
.pt-team-fact { display: inline-flex; gap: 6px; align-items: center; color: var(--text); }
.pt-team-fact svg { width: 15px; height: 15px; color: var(--text-2); flex: none; }
.pt-team-perms { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.pt-team-perms .badge { display: inline-flex; gap: 4px; align-items: center; }
.pt-team-off { background: transparent; border: 1px dashed var(--border-strong); color: var(--text-2); text-decoration: line-through; }
.pt-team-acts .btn svg { width: 15px; height: 15px; }
.pt-team-join { margin-top: 12px; }
.pt-team-visits { display: flex; flex-direction: column; }
.pt-team-visit { padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.pt-team-visit:last-child { border-bottom: 0; }
.pt-radio--2l { align-items: flex-start; }
.pt-radio--2l input { margin-top: 2px; }
.pt-access-ips { margin-top: 10px; }
.pt-access-row { display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 8px; align-items: center; margin-bottom: 8px; }
@media (max-width: 480px) { .pt-access-row { grid-template-columns: 1fr auto; } .pt-access-row [data-label] { grid-column: 1; } .pt-access-row button { grid-row: 1; grid-column: 2; } }
.pt-team-who .pt-muted { overflow-wrap: anywhere; }
@media (max-width: 767px) { .pt-team-head .pt-avatar { align-self: flex-start; } }

/* Messaggi ai passeggeri, Gestisci prenotazione (chat #915, portal/messages.php, portal/bookings.php, lib/PortalPaxMessages.php) */
.pt-msg-head { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 14px; }
.pt-msg-head .pt-msg-ico { flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--bg-soft); display: grid; place-items: center; }
.pt-msg-head .pt-msg-ico svg { width: 18px; height: 18px; }
.pt-msg-head h2 { font-size: 15px; font-weight: 700; margin: 0 0 2px; }
.pt-msg-grid { display: grid; grid-template-columns: 1fr; gap: 14px 22px; }
@media (min-width: 900px) { .pt-msg-grid { grid-template-columns: 1fr 1fr; } }
.pt-msg-label { font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--text-2); margin: 0 0 6px; }
.pt-msg-row { display: flex; flex-wrap: wrap; gap: 6px; }
.pt-msg-row .pt-radio, .pt-msg-row .pt-chip-check { flex: 1 1 auto; }
.pt-chip-check { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; font-size: 14px; }
.pt-chip-check input { width: 18px; height: 18px; margin: 0; accent-color: var(--black); flex: none; }
.pt-chip-check svg { width: 18px; height: 18px; flex: none; color: var(--text-2); }
.pt-chip-check:has(input:checked) { border-color: var(--text); background: var(--bg-soft); }
.pt-chip-check:has(input:disabled) { opacity: .55; cursor: default; }
.pt-msg-preview { white-space: pre-wrap; font-size: 13px; line-height: 1.5; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; color: var(--text); max-height: 260px; overflow: auto; }
.pt-msg-preview em { color: var(--text-2); font-style: normal; }
.pt-msg-note { margin-top: 12px; }
.pt-msg-count { float: right; font-size: 12px; color: var(--text-2); font-weight: 500; }
.pt-msg-save { position: sticky; bottom: 12px; z-index: 5; display: flex; justify-content: flex-end; }
.pt-msg-log { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.pt-msg-log th { text-align: left; font-size: 12px; font-weight: 600; color: var(--text-2); padding: 6px 8px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.pt-msg-log td { padding: 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
.pt-msg-log tr:last-child td { border-bottom: 0; }
@media (max-width: 700px) { .pt-msg-log thead { display: none; } .pt-msg-log tr { display: block; padding: 8px 0; border-bottom: 1px solid var(--border); } .pt-msg-log td { display: inline-block; border: 0; padding: 2px 8px 2px 0; } }
.pt-mng-chip { cursor: pointer; display: inline-flex; gap: 4px; align-items: center; }
.pt-mng-chip svg { width: 13px; height: 13px; }
.pt-mng-tabs { margin-bottom: 14px; }
.pt-mng-pane[hidden] { display: none; }
.pt-mng-sum { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13.5px; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.pt-mng-sum strong { font-weight: 600; }
.pt-mng-hist { display: flex; flex-direction: column; margin-top: 8px; }
.pt-mng-hist > div { padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.pt-mng-hist > div:last-child { border-bottom: 0; }
/* Percorso della macchina (chat #915, Blocco D, portal/_route_modal.php) */
.pt-prt-chip.is-live .pt-dot { animation: ptPrtPulse 1.6s ease-in-out infinite; }
@keyframes ptPrtPulse { 50% { opacity: .35; } }
.pt-ledger-side { flex: 0 0 auto; align-self: center; }
.pt-prt-legs { margin-bottom: 12px; }
.pt-prt-sum { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 13.5px; margin-bottom: 12px; }
.pt-prt-sum strong { font-weight: 600; }
.pt-prt-sum .badge { white-space: normal; text-align: left; }
.pt-prt-map { position: relative; height: 440px; border-radius: var(--radius, 10px); overflow: hidden; border: 1px solid var(--border); background: var(--surface-2, #f3f4f6); }
.pt-prt-map .leaflet-tile-pane { filter: grayscale(1) contrast(1.02) brightness(1.04); }
.pt-prt-empty { position: absolute; inset: 0; z-index: 500; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px; text-align: center; font-size: 14px; color: var(--text-2); background: var(--surface-2, #f3f4f6); }
.pt-prt-empty[hidden] { display: none; }
.pt-prt-empty svg { width: 28px; height: 28px; opacity: .6; }
.pt-prt-pin span { display: block; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.35); box-sizing: border-box; }
.pt-prt-rule { margin: 10px 0 0; font-size: 12.5px; }
@media (max-width: 700px) { .pt-prt-map { height: 58vh; } .pt-ledger-row:has(.pt-ledger-side) { flex-wrap: wrap; } }

/* ── Statistiche (chat #915, Blocco E, portal/stats.php): one-series SVG charts, the diesel line, the simulator ── */
.pt-st-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.pt-st-head h2 { margin: 0 0 2px; }
.pt-st-ctl { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pt-st-year { width: auto; min-width: 96px; }
.pt-st-total { font-size: 14px; color: var(--text-2); margin-bottom: 6px; }
.pt-st-total strong { color: var(--text); }
.pt-chart { width: 100%; min-height: 230px; position: relative; }
.pt-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.pt-bar { fill: var(--gg-magenta, #B0005C); opacity: .82; }
.pt-bar.is-current { opacity: 1; }
.pt-hit { fill: transparent; }
.pt-hit.is-click { cursor: pointer; }
.pt-ax-grid { stroke: var(--border); stroke-width: 1; }
.pt-ax-base { stroke: var(--border-strong); stroke-width: 1; }
.pt-ax-lbl { font-size: 11px; fill: var(--text-3); font-variant-numeric: tabular-nums; }
.pt-ax-lbl--ref { fill: var(--text-2); font-weight: 600; }
.pt-ax-ref { stroke: var(--text-3); stroke-width: 1.5; stroke-dasharray: 5 4; }
.pt-ax-cross { stroke: var(--text-3); stroke-width: 1; }
.pt-line { fill: none; stroke: var(--gg-magenta, #B0005C); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.pt-dot { fill: var(--gg-magenta, #B0005C); stroke: var(--surface); stroke-width: 2; }
.pt-tip { position: fixed; z-index: 60; pointer-events: none; background: var(--text, #13110F); color: #fff; font-size: 12px; line-height: 1.45; padding: 6px 9px; border-radius: 8px; box-shadow: var(--shadow-2); white-space: nowrap; }
.pt-st-table { margin-top: 10px; }
.pt-st-table summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--text-2); }
.pt-st-table .table-wrap { margin-top: 8px; }
.pt-st-table td.num, .pt-st-table th.num, .pt-st-pax .num { text-align: right; font-variant-numeric: tabular-nums; }
.pt-st-table tr.is-base td { font-weight: 700; }
.pt-st-note { font-size: 12px; margin-top: 8px; }
.pt-st-bar { height: 4px; background: var(--bg-soft, #f3f4f6); border-radius: 2px; margin-top: 5px; max-width: 220px; overflow: hidden; }
.pt-st-bar span { display: block; height: 100%; background: var(--gg-magenta, #B0005C); opacity: .7; border-radius: 2px; }
.pt-sim { border-top: 1px solid var(--border); margin-top: 16px; padding-top: 14px; }
.pt-sim h3 { font-size: 15px; margin: 0 0 4px; }
.pt-sim-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-top: 10px; }
.pt-sim-input { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; flex: 1; min-width: 240px; }
.pt-sim-input .pt-msg-label { width: 100%; margin: 0; }
.pt-sim-input input[type=range] { flex: 1; min-width: 160px; accent-color: var(--gg-magenta, #B0005C); }
.pt-sim-price { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.pt-sim-price .form-input { width: 92px; text-align: right; }
/* base tariff over the years (chat #1224): series a = magenta (car), b = blue (van), legend above, direct label at the last point */
.pt-tar { border-top: 1px solid var(--border); margin-top: 16px; padding-top: 14px; }
.pt-tar h3 { font-size: 15px; margin: 0 0 4px; }
.pt-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 10px 0 4px; font-size: 13px; color: var(--text-2); }
.pt-legend span { display: inline-flex; align-items: center; gap: 6px; }
.pt-legend i { width: 14px; height: 3px; border-radius: 2px; background: var(--gg-magenta, #B0005C); display: inline-block; }
.pt-legend i.is-b { background: var(--pt-series-b, #1F6FB2); }
.pt-line--b { stroke: var(--pt-series-b, #1F6FB2); }
.pt-dot--b { fill: var(--pt-series-b, #1F6FB2); }
/* chat #1224: diesel + tariffs on one chart, three colours (diesel amber, car magenta, van blue) */
.pt-line--a { stroke: var(--gg-magenta, #B0005C); }
.pt-line--c { stroke: var(--pt-series-c, #C26A00); stroke-width: 1.75; }
.pt-line--step { stroke-width: 2.5; }
.pt-dot--c { fill: var(--pt-series-c, #C26A00); }
.pt-legend i.is-a { background: var(--gg-magenta, #B0005C); }
.pt-legend i.is-c { background: var(--pt-series-c, #C26A00); }
#ptFuel .pt-ax-lbl--ref, #ptFuel .pt-ax-lbl--val { paint-order: stroke; stroke: var(--surface); stroke-width: 3px; stroke-linejoin: round; }
.pt-ax-lbl--val { fill: var(--text-2); font-weight: 600; font-size: 12px; }
:root { --pt-series-b: #1F6FB2; --pt-series-c: #C26A00; }
html[data-theme="dark"], html.tos-dark { --pt-series-b: #6AA8E0; --pt-series-c: #F0A23A; }
/* Semaforo della partenza, BETA (chat #918, portal/_departure_modal.php, lib/DepartureLight.php): 4 colours, each 5 minutes */
.pt-dpl-chip { cursor: pointer; display: inline-flex; gap: 5px; align-items: center; background: var(--surface-2, #f3f4f6); color: var(--text, #111827); border: 1px solid var(--border); }
.pt-dpl-dot, .pt-dpl-lamp { display: inline-block; border-radius: 50%; background: #9ca3af; flex: 0 0 auto; }
.pt-dpl-dot { width: 9px; height: 9px; }
.pt-dpl-chip[data-light="bright"] .pt-dpl-dot, .pt-dpl-hero[data-light="bright"] .pt-dpl-lamp { background: #00e676; box-shadow: 0 0 0 3px rgba(0, 230, 118, .28), 0 0 10px rgba(0, 230, 118, .75); }
.pt-dpl-chip[data-light="green"] .pt-dpl-dot, .pt-dpl-hero[data-light="green"] .pt-dpl-lamp { background: #15803d; }
.pt-dpl-chip[data-light="yellow"] .pt-dpl-dot, .pt-dpl-hero[data-light="yellow"] .pt-dpl-lamp { background: #eab308; }
.pt-dpl-chip[data-light="red"] .pt-dpl-dot, .pt-dpl-hero[data-light="red"] .pt-dpl-lamp { background: #dc2626; }
.pt-dpl-chip[data-light="red"] { border-color: #fca5a5; background: #fef2f2; color: #991b1b; }
.pt-dpl-chip[data-light="yellow"] { border-color: #fde68a; background: #fefce8; color: #854d0e; }
.pt-dpl-chip[data-light="red"] .pt-dpl-dot { animation: ptPrtPulse 1.2s ease-in-out infinite; }
.pt-dpl-chip .pt-dpl-beta { font-size: 10px; text-transform: uppercase; letter-spacing: .04em; opacity: .65; }
.pt-dpl-betatag { vertical-align: middle; }
.pt-dpl-betanote { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; padding: 10px 12px; margin-bottom: 14px; border-radius: var(--radius, 10px); background: #fffbeb; border: 1px solid #fde68a; color: #854d0e; }
.pt-dpl-betanote svg { width: 16px; height: 16px; flex: 0 0 auto; margin-top: 1px; }
.pt-dpl-hero { display: flex; gap: 14px; align-items: center; padding: 14px 16px; margin-bottom: 12px; border-radius: var(--radius, 10px); border: 1px solid var(--border); background: var(--surface-2, #f9fafb); }
.pt-dpl-lamp { width: 34px; height: 34px; }
.pt-dpl-hero-text { font-size: 18px; font-weight: 700; }
.pt-dpl-hero-gap { font-size: 13.5px; color: var(--text-muted, #6b7280); margin-top: 2px; }
.pt-dpl-hero[data-light="red"] { background: #fef2f2; border-color: #fca5a5; }
.pt-dpl-hero[data-light="yellow"] { background: #fefce8; border-color: #fde68a; }
.pt-dpl-hero[data-light="bright"], .pt-dpl-hero[data-light="green"] { background: #f0fdf4; border-color: #bbf7d0; }
.pt-dpl-row { padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.pt-dpl-row:last-of-type { border-bottom: 0; }
.pt-dpl-row-label { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted, #6b7280); margin-bottom: 3px; }
.pt-dpl-row-main strong { font-weight: 600; }
.pt-dpl-row-sub { font-size: 13px; margin-top: 3px; }
.pt-dpl-dep[data-dep="late"], .pt-dpl-dep[data-dep="cancelled"] { color: #b91c1c; font-weight: 600; }
.pt-dpl-dep[data-dep="early"] { color: #b45309; font-weight: 600; }
.pt-dpl-dep[data-dep="on_time"] { color: #15803d; font-weight: 600; }
.pt-dpl-note { font-size: 13.5px; padding: 10px 12px; margin-top: 8px; border-radius: var(--radius, 10px); background: var(--surface-2, #f3f4f6); }
.pt-dpl-legend { font-size: 12.5px; margin-top: 14px; }
.pt-ledger-side .pt-dpl-chip, .pt-cb-meta .pt-dpl-chip { margin-left: 6px; }

/* Ospiti esterni (chat #1224): trips the company pays (invoiced) vs external guests (pay the driver, never invoiced) */
.pt-cb.pt-is-billed, .pt-ledger-row.pt-is-billed { box-shadow: inset 4px 0 0 var(--success); }
.pt-cb.pt-is-guest, .pt-ledger-row.pt-is-guest { box-shadow: inset 4px 0 0 var(--warning); background: var(--warning-bg); }
.pt-guest-legend { display: flex; align-items: center; gap: 6px; margin: 0 0 12px; }
.pt-guest-dot { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.pt-guest-dot.is-billed { background: var(--success); }
.pt-guest-dot.is-guest { background: var(--warning); margin-right: 4px; }
/* chat #1224: personal trips of the employees (staff discount, the traveller pays on board, never invoiced to the company) */
.pt-cb.pt-is-personal { box-shadow: inset 4px 0 0 var(--info); background: var(--info-bg); }
.pt-guest-dot.is-personal { background: var(--info); margin-right: 4px; }
/* chat #1224: the supervisor's team page, what each colleague may book and for how long */
.pt-team-group { flex-basis: 100%; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted, #6b7280); margin-top: 6px; }
.pt-team-group:first-child { margin-top: 0; }
.pt-check.pt-check-sub { margin-left: 26px; }
