/* ─────────────────────────────────────────────────────────────────────
   HOMEi 360 per contact type (P360, Epic HO-3514; mockup v18 approved —
   «نفّذ الـ360» 12/10/2026 — on the house design system v1).

   GENERATED from the approved mockup by
   ~/Projects/HOMEi-mockups/person-360/tools/extract_css.py: the starter
   sheet renamed ds → p3, and the screen's own bits (prefix pf), without the
   token copy (resources/css/tokens.css is global) and without the preview
   frame (.demo-*, .fx-*). Tokens only, nothing under 12px, logical properties.

   Registered as a Filament asset — a change ships nothing until
   `php artisan filament:assets` runs and public/css/app/ is committed.
   ──────────────────────────────────────────────────────────────────── */
.p3-page .fi-header-heading { font-size: 28px; font-weight: 700; line-height: 1.25; color: var(--lm-d-ink); }

.p3-page .fi-header-subheading { margin-block-start: 4px; font-size: 14px; color: var(--lm-d-muted); }

.p3 { display: flex; flex-direction: column; gap: 14px; color: var(--lm-d-ink); }

.p3 :focus-visible { outline: 2px solid var(--lm-d-info); outline-offset: 2px; }

.p3 .p3-num { font-variant-numeric: tabular-nums; }

.p3 bdi { unicode-bidi: isolate; }
/* the page's header actions (Filament): outline buttons, the main decision is the orange */
.p3-page .fi-header-actions-ctn .fi-btn {
    min-block-size: 44px;
    border-radius: 12px;
    padding-inline: 16px;
    background: var(--lm-d-surface);
    color: var(--lm-d-ink);
    box-shadow: inset 0 0 0 1px var(--lm-d-control-edge);
    font-weight: 700;
}

.p3-page .fi-header-actions-ctn .fi-btn .fi-icon { color: currentColor; }

.p3-page .fi-header-actions-ctn .fi-btn:is(.fi-color-primary, .fi-color-success) { background: var(--lm-d-accent); color: var(--lm-d-on-accent); box-shadow: 0 4px 12px var(--lm-d-accent-soft); }

.p3-page .fi-header-actions-ctn .fi-btn.fi-color-danger { color: var(--lm-d-danger); box-shadow: inset 0 0 0 1px var(--lm-d-gap-edge); }
/* ── 2. text tones (words and figures only) ── */
.p3 .is-ink { color: var(--lm-d-ink); }

.p3 .is-muted { color: var(--lm-d-muted); }

.p3 .is-ok { color: var(--lm-d-ok); }

.p3 .is-warn { color: var(--lm-d-warn); }

.p3 .is-danger { color: var(--lm-d-danger); }

.p3 .is-accent { color: var(--lm-d-accent-ink); }

.p3 .is-info { color: var(--lm-d-info); }
/* ── 3. the numbers strip (KPI row): label · big figure · one line under it ── */
.p3-strip {
    display: grid;
    grid-template-columns: repeat(var(--p3-cols, 6), minmax(0, 1fr));
    background: var(--lm-d-surface);
    border: 1px solid var(--lm-d-border);
    border-radius: 16px;
    box-shadow: 0 1px 2px var(--lm-d-shadow);
}

.p3-strip-c { padding: 12px 18px; border-inline-start: 1px solid var(--lm-d-divider); min-inline-size: 0; }

.p3-strip-c:first-child { border-inline-start: 0; }

a.p3-strip-c, button.p3-strip-c { color: inherit; text-decoration: none; background: none; border-block: 0; border-inline-end: 0; text-align: start; font: inherit; cursor: pointer; }

a.p3-strip-c:hover, button.p3-strip-c:hover { background: var(--lm-d-hover); }

.p3-k-l { font-size: 13px; color: var(--lm-d-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.p3-k-v { font-size: 26px; font-weight: 700; line-height: 1.3; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.p3-k-s { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* LAND-OFFER-1 (TSK-1017): a six-figure strip inside a 360's main column — three a row, two rows (the parcel) */
.p3-strip.is-rows .p3-strip-c:nth-child(3n + 1) { border-inline-start: 0; }

.p3-strip.is-rows .p3-strip-c:nth-child(n + 4) { border-block-start: 1px solid var(--lm-d-divider); }

.p3-k-v .p3-k-u { font-size: 13px; font-weight: 500; color: var(--lm-d-muted); }
/* LAND-OFFER-1 S8: a money figure of seven digits and more, with its unit, in a five-tile strip */
/* (above .pf-fit's 22px: the tile is ~118px wide on the three-column screen) */
.p3-strip .p3-k-v.is-tight { font-size: 18px; }
/* ── 4. the card with the blue rule (the page's main surface) ── */
.p3-card {
    background: var(--lm-d-surface);
    border: 1px solid var(--lm-d-border);
    border-block-start: 3px solid var(--lm-d-info);
    border-radius: 16px;
    box-shadow: 0 1px 2px var(--lm-d-shadow);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.p3-card--plain { border-block-start-width: 1px; border-block-start-color: var(--lm-d-border); }

.p3-card-h {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 16px;
    padding: 12px 18px;
    border-block-end: 1px solid var(--lm-d-divider);
}

.p3-card-t { font-size: 20px; font-weight: 700; margin: 0; }

.p3-card-t span { font-size: 14px; font-weight: 500; color: var(--lm-d-muted); }

.p3-card-b { padding: 14px 18px; display: flex; flex-direction: column; gap: 12px; }
/* ── 5. view pills (the page's views / tabs): navy when on ── */
.p3-pills { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

.p3-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-block-size: 40px;
    padding-inline: 16px;
    border-radius: 20px;
    border: 1px solid var(--lm-d-border);
    background: var(--lm-d-surface);
    color: var(--lm-d-ink);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    text-decoration: none;
}

.p3-pill:hover { border-color: var(--lm-d-control-edge); }

.p3-pill.is-on { background: var(--lm-d-tab-on-bg); border-color: var(--lm-d-tab-on-bg); color: var(--lm-d-tab-on-ink); }

.p3-pill-n { font-variant-numeric: tabular-nums; }

.p3-dot { inline-size: 7px; block-size: 7px; border-radius: 50%; background: var(--lm-d-info); flex: none; }

.p3-dot.is-accent { background: var(--lm-d-accent); }

.p3-dot.is-ok { background: var(--lm-d-ok); }

.p3-dot.is-danger { background: var(--lm-d-danger); }

.p3-pill.is-on .p3-dot { background: var(--lm-d-accent); }
/* ── 6. status chips with counts (filters on the list's toolbar row) ── */
.p3-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }

.p3-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-block-size: 34px;
    padding-inline: 12px;
    border: 1px solid var(--lm-d-border);
    border-radius: 10px;
    background: var(--lm-d-page);
    color: var(--lm-d-muted);
    font: inherit;
    font-size: 13.5px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
}

.p3-chip b { color: var(--lm-d-ink); font-weight: 700; font-variant-numeric: tabular-nums; }

.p3-chip:hover { background: var(--lm-d-chip-bg); }

.p3-chip.is-on { background: var(--lm-d-info-soft); border-color: var(--lm-d-info-soft); color: var(--lm-d-info); }

.p3-chip.is-on b { color: var(--lm-d-info); }
/* ── 7. toolbar: search (the panel-wide dictation mic attaches itself) + a small segmented toggle ── */
.p3-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 10px 18px; border-block-end: 1px solid var(--lm-d-divider); }

.p3-search { margin-inline-start: auto; inline-size: min(320px, 100%); block-size: 38px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid var(--lm-d-control-edge); border-radius: 10px; background: var(--lm-d-surface); color: var(--lm-d-muted); }

.p3-search .p3-ic { inline-size: 16px; block-size: 16px; flex: none; }

.p3-search input { flex: 1; min-inline-size: 0; block-size: 34px; border: 0; outline: 0; background: transparent; color: var(--lm-d-ink); font: inherit; font-size: 13.5px; }

.p3-search input::placeholder { color: var(--lm-d-muted); }

.p3-search:focus-within { border-color: var(--lm-d-accent); box-shadow: 0 0 0 3px var(--lm-d-accent-soft); }

.p3-seg { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--lm-d-border); border-radius: 10px; background: var(--lm-d-surface); }

.p3-seg button { block-size: 30px; display: inline-flex; align-items: center; gap: 6px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: var(--lm-d-muted); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }

.p3-seg button:hover { color: var(--lm-d-ink); }

.p3-seg button.is-on { background: var(--lm-d-chip-bg); color: var(--lm-d-ink); font-weight: 700; }
/* ── 8. the split: the list (start) and the item opened beside it (end) ── */
.p3-split { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; }

.p3-split.has-open { grid-template-columns: minmax(0, 1fr) 360px; }

.p3-split:not(.has-open) .p3-panel { display: none; }

.p3-list { min-inline-size: 0; }

.p3-split.has-open .p3-list { border-inline-end: 1px solid var(--lm-d-divider); }
/* a Filament table flattened into the card */
:is(.p3-list, .p3-doc-main) .fi-ta-ctn { border: 0; border-radius: 0; box-shadow: none; background: transparent; }

:is(.p3-list, .p3-doc-main) .fi-ta-header-ctn { display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; padding-inline: 18px 12px; border-block-end: 1px solid var(--lm-d-divider); }

:is(.p3-list, .p3-doc-main) .fi-ta-header-ctn > * { border: 0; }

:is(.p3-list, .p3-doc-main) .fi-ta-header { padding: 10px 0; flex: 1 1 auto; min-inline-size: 0; }

:is(.p3-list, .p3-doc-main) .fi-ta-header-toolbar { padding: 8px 0; flex: 0 0 auto; border: 0; }

:is(.p3-list, .p3-doc-main) .fi-ta-search-field { max-inline-size: 260px; }

:is(.p3-list, .p3-doc-main) .fi-ta-header-cell { background: var(--lm-d-surface); color: var(--lm-d-ink); font-size: 13.5px; font-weight: 700; padding-inline: 8px; white-space: nowrap; }

:is(.p3-list, .p3-doc-main) .fi-ta-cell { padding-inline: 8px; color: var(--lm-d-ink); }

:is(.p3-list, .p3-doc-main) .fi-ta-row:hover > td { background: var(--lm-d-hover); }

.p3-list .fi-ta-row { cursor: pointer; }

.p3-list .fi-ta-row.p3-row-open > td { background: var(--lm-d-row-hl); }

.p3-list .fi-ta-row.p3-row-open > td:first-child { box-shadow: inset -3px 0 0 var(--lm-d-accent); }

[dir='ltr'] .p3-list .fi-ta-row.p3-row-open > td:first-child { box-shadow: inset 3px 0 0 var(--lm-d-accent); }

:is(.p3-list, .p3-doc-main) .fi-ta-actions .fi-btn:is(.fi-color-success, .fi-color-primary) { background: var(--lm-d-accent); color: var(--lm-d-on-accent); }
/* a hand-built table (when the list is not a Filament table) */
.p3-table { inline-size: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }

.p3-table th { text-align: start; padding: 10px 12px; color: var(--lm-d-ink); font-weight: 700; font-size: 13.5px; border-block-end: 1px solid var(--lm-d-border); white-space: nowrap; }

.p3-table td { padding: 10px 12px; border-block-end: 1px solid var(--lm-d-divider); color: var(--lm-d-ink); vertical-align: middle; }

.p3-table tbody tr { cursor: pointer; }

.p3-table tbody tr:hover > td { background: var(--lm-d-hover); }

.p3-table tbody tr.is-open > td { background: var(--lm-d-row-hl); }

.p3-table tbody tr.is-open > td:first-child { box-shadow: inset -3px 0 0 var(--lm-d-accent); }

[dir='ltr'] .p3-table tbody tr.is-open > td:first-child { box-shadow: inset 3px 0 0 var(--lm-d-accent); }

.p3-table td.is-name { font-weight: 700; }

.p3-table tfoot td { background: var(--lm-d-info-soft); font-weight: 700; border: 0; }

.p3-dim { color: var(--lm-d-muted); font-size: 12.5px; }
/* ── 9. the panel (the opened item): head · own scroll · buttons pinned at the foot ── */
.p3-panel { position: sticky; inset-block-start: 12px; display: flex; flex-direction: column; background: var(--lm-d-surface); max-block-size: calc(100dvh - 120px); min-block-size: 420px; }

.p3-p { display: flex; flex-direction: column; min-block-size: 0; flex: 1 1 auto; }

.p3-p-h { padding: 14px 18px 12px; border-block-end: 1px solid var(--lm-d-divider); }

.p3-p-t { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 18px; font-weight: 700; }

.p3-p-x { margin-inline-start: auto; inline-size: 32px; block-size: 32px; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--lm-d-border); background: var(--lm-d-surface); color: var(--lm-d-muted); font: inherit; font-size: 13px; cursor: pointer; }

.p3-p-s { margin-block-start: 2px; font-size: 13px; color: var(--lm-d-muted); }

.p3-p-b { flex: 1 1 auto; min-block-size: 0; overflow-y: auto; overscroll-behavior: contain; padding: 14px 18px; display: flex; flex-direction: column; gap: 12px; }

.p3-p-f { padding: 12px 18px; border-block-start: 1px solid var(--lm-d-divider); display: flex; gap: 8px; }

.p3-p-f > .p3-btn { flex: 1 1 0; justify-content: center; }
/* ── 10. status tag (a dot + a word) ── */
.p3-tag { display: inline-flex; align-items: center; gap: 6px; min-block-size: 26px; padding-inline: 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }

.p3-tag::before { content: ''; inline-size: 6px; block-size: 6px; border-radius: 50%; background: currentColor; }

.p3-tag.is-info { background: var(--lm-d-info-soft); color: var(--lm-d-info); }

.p3-tag.is-ok { background: var(--lm-d-ok-soft); color: var(--lm-d-ok); }

.p3-tag.is-warn { background: var(--lm-d-warn-soft); color: var(--lm-d-warn); }

.p3-tag.is-danger { background: var(--lm-d-danger-soft); color: var(--lm-d-danger); }

.p3-tag.is-accent { background: var(--lm-d-accent-soft); color: var(--lm-d-accent-ink); }

.p3-tag.is-quiet { background: var(--lm-d-quiet-bg); color: var(--lm-d-muted); }
/* ── 11. the stages of a record ── */
.p3-steps { display: flex; justify-content: space-between; position: relative; margin: 0; padding: 4px 0 0; list-style: none; }

.p3-steps::before { content: ''; position: absolute; inset-block-start: 12px; inset-inline: 14px; border-block-start: 2px solid var(--lm-d-divider); }

.p3-steps li { position: relative; flex: 1; text-align: center; font-size: 12px; color: var(--lm-d-muted); }

.p3-steps li i { display: block; inline-size: 16px; block-size: 16px; margin: 0 auto 4px; border-radius: 50%; background: var(--lm-d-surface); border: 2px solid var(--lm-d-control-edge); }

.p3-steps li.is-done i { background: var(--lm-d-ok); border-color: var(--lm-d-ok); }

.p3-steps li.is-now { color: var(--lm-d-ink); font-weight: 700; }

.p3-steps li.is-now i { background: var(--lm-d-accent); border-color: var(--lm-d-accent); box-shadow: 0 0 0 4px var(--lm-d-accent-soft); }

.p3-steps li.is-stop { color: var(--lm-d-danger); font-weight: 700; }

.p3-steps li.is-stop i { background: var(--lm-d-danger); border-color: var(--lm-d-danger); }
/* ── 12. figures inside a panel / card ── */
.p3-money { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }

.p3-money > div { border: 1px solid var(--lm-d-border); border-radius: 10px; padding: 8px 10px; display: grid; min-inline-size: 0; }

.p3-money span { font-size: 12px; color: var(--lm-d-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.p3-money b { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }

.p3-net { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-radius: 10px; background: var(--lm-d-ok-soft); color: var(--lm-d-ok); font-size: 13.5px; font-weight: 700; }

.p3-net b { font-variant-numeric: tabular-nums; }

.p3-sec { font-size: 14px; font-weight: 700; margin-block-end: 6px; }

.p3-line { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 0; border-block-end: 1px solid var(--lm-d-divider); font-size: 13.5px; }

.p3-line:last-child { border-block-end: 0; }

.p3-line b { font-variant-numeric: tabular-nums; }

.p3-note { border-radius: 12px; padding: 10px 12px; font-size: 13px; line-height: 1.6; border: 1px solid var(--lm-d-divider); }

.p3-note.is-info { background: var(--lm-d-info-soft); color: var(--lm-d-info); }

.p3-note.is-warn { background: var(--lm-d-warn-soft); color: var(--lm-d-warn); }

.p3-note.is-danger { background: var(--lm-d-danger-soft); color: var(--lm-d-danger); }

.p3-note.is-ok { background: var(--lm-d-ok-soft); color: var(--lm-d-ok); }
/* ── 13. buttons: one orange primary per area, the rest outline ── */
.p3-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-block-size: 42px;
    padding-inline: 16px;
    border-radius: 10px;
    border: 1px solid var(--lm-d-control-edge);
    background: var(--lm-d-surface);
    color: var(--lm-d-ink);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
}

.p3-btn:hover { background: var(--lm-d-hover); }

.p3-btn.is-primary { background: var(--lm-d-accent); border-color: var(--lm-d-accent); color: var(--lm-d-on-accent); }

.p3-btn.is-primary:hover { filter: brightness(0.96); }

.p3-btn.is-danger { color: var(--lm-d-danger); border-color: var(--lm-d-gap-edge); }

.p3-btn.is-sm { min-block-size: 36px; padding-inline: 14px; font-size: 13.5px; }

.p3-btn.is-icon { inline-size: 42px; padding: 0; justify-content: center; }

.p3-btn:disabled { opacity: .6; cursor: default; }

.p3-btn-ico, .p3-ic { inline-size: 18px; block-size: 18px; flex: none; }
/* ── 14. empty state ── */
.p3-empty { flex: 1 1 auto; display: grid; place-content: center; justify-items: center; gap: 6px; padding: 32px 24px; text-align: center; color: var(--lm-d-muted); font-size: 13px; }

.p3-empty b { color: var(--lm-d-ink); font-size: 15px; }

.p3-empty-ico { inline-size: 36px; block-size: 36px; color: var(--lm-d-subtle); }
/* ── 15. a record page (Filament view/edit): ruled main card, tabs as pills ── */
.p3-doc-page .fi-page-content { gap: 16px; }

.p3-doc-page .fi-section { border-radius: 16px; box-shadow: 0 1px 2px var(--lm-d-shadow); }

.p3-doc-page .fi-section-header-heading { color: var(--lm-d-ink); font-weight: 700; }

.p3-doc-main {
    background: var(--lm-d-surface);
    border: 1px solid var(--lm-d-border);
    border-block-start: 3px solid var(--lm-d-info);
    border-radius: 16px;
    box-shadow: 0 1px 2px var(--lm-d-shadow);
}

.p3-doc-main .fi-tabs { gap: 8px; padding: 12px 16px; border-block-end: 1px solid var(--lm-d-divider); justify-content: flex-start; background: transparent; box-shadow: none; border-radius: 0; }

.p3-doc-main .fi-tabs .fi-tabs-item { min-block-size: 42px; padding-inline: 16px; border-radius: 21px; border: 1px solid var(--lm-d-border); background: var(--lm-d-surface); color: var(--lm-d-ink); font-weight: 700; }

.p3-doc-main .fi-tabs .fi-tabs-item .fi-tabs-item-label { color: inherit; }

.p3-doc-main .fi-tabs .fi-tabs-item .fi-icon { color: var(--lm-d-muted); }

.p3-doc-main .fi-tabs .fi-tabs-item.fi-active { background: var(--lm-d-tab-on-bg); border-color: var(--lm-d-tab-on-bg); color: var(--lm-d-tab-on-ink); }

.p3-doc-main .fi-tabs .fi-tabs-item.fi-active :is(.fi-tabs-item-label, .fi-icon) { color: var(--lm-d-tab-on-ink); }

.p3-doc-main .fi-sc-tabs-tab { padding: 16px; }

.p3-doc-main .fi-sc-tabs-tab .fi-section { box-shadow: none; }
/* ── 16. under 1024px: the page scrolls, the panel becomes a bottom sheet ── */
@media (max-width: 1023.98px) {

.p3-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.p3-strip-c:nth-child(3n + 1) { border-inline-start: 0; }

.p3-strip-c:nth-child(n + 4) { border-block-start: 1px solid var(--lm-d-divider); }

.p3-split, .p3-split.has-open { grid-template-columns: minmax(0, 1fr); }

.p3-split.has-open .p3-list { border-inline-end: 0; }

.p3-panel { display: none; }

.p3-split.has-open .p3-panel {
        display: flex;
        position: fixed;
        inset-inline: 0;
        inset-block: auto 0;
        z-index: 45;
        min-block-size: 0;
        max-block-size: 82dvh;
        border-radius: 18px 18px 0 0;
        box-shadow: 0 -10px 40px var(--lm-d-sheet-shadow);
    }

.p3-card-h { align-items: stretch; }

.p3-pills, .p3-doc-main .fi-tabs { flex-wrap: nowrap; overflow-x: auto; padding-block-end: 2px; scrollbar-width: none; }

.p3-page .fi-header-heading { font-size: 22px; }
}

@media (max-width: 640px) {

.p3-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.p3-strip-c:nth-child(n) { border-inline-start: 0; border-block-start: 1px solid var(--lm-d-divider); }

.p3-strip-c:nth-child(-n + 2) { border-block-start: 0; }

.p3-strip-c:nth-child(2n) { border-inline-start: 1px solid var(--lm-d-divider); }

.p3-k-v { font-size: 22px; }

.p3-search { inline-size: 100%; margin-inline-start: 0; block-size: 44px; }

.p3-money { grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* touch: every control at least 44px tall on a phone */
.p3-pill, .p3-chip, .p3-btn, .p3-seg button, .p3-p-x { min-block-size: 44px; }

.p3-p-x { inline-size: 44px; }

.p3-table thead { display: none; }

.p3-table, .p3-table tbody, .p3-table tr, .p3-table td { display: block; inline-size: 100%; }

.p3-table tbody tr { padding: 10px 12px; border-block-end: 1px solid var(--lm-d-divider); }

.p3-table td { padding: 2px 0; border: 0; }

.p3-table td[data-label]::before { content: attr(data-label) ' · '; color: var(--lm-d-muted); font-size: 12.5px; }
}

[hidden] { display: none !important; }

.pf-defs { position: absolute; inline-size: 0; block-size: 0; overflow: hidden; }

.pf-ic-lg { inline-size: 26px; block-size: 26px; color: var(--lm-d-subtle); }

.pf-stack { display: flex; flex-direction: column; gap: 14px; }

.pf-mt { margin-block-start: 8px; }
/* header: avatar + name + subtitle */
.pf-head { display: flex; align-items: center; gap: 14px; min-inline-size: 0; }

.pf-avatar { inline-size: 54px; block-size: 54px; border-radius: 50%; display: grid; place-items: center; flex: none;
    background: var(--lm-d-info-soft); color: var(--lm-d-info); font-size: 19px; font-weight: 700; }

.pf-page .fi-header-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

.pf-page .fi-header-subheading { display: flex; flex-wrap: wrap; gap: 4px 10px; }

.pf-page .fi-header-subheading i { font-style: normal; color: var(--lm-d-divider); }
/* the main card body: the story on the start side, the one timeline beside it */
.pf-body { display: grid; grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }

.pf-main { padding: 14px 18px 18px; display: flex; flex-direction: column; gap: 14px; min-inline-size: 0; }

.pf-lens { display: none; flex-direction: column; gap: 14px; }

.pf-lens.is-on { display: flex; }

.pf-aside { position: sticky; inset-block-start: 12px; border-inline-start: 1px solid var(--lm-d-divider); display: flex; flex-direction: column;
    max-block-size: calc(100dvh - 40px); min-block-size: 480px; }

.pf-aside .p3-p-h { display: flex; flex-direction: column; gap: 8px; }

.pf-aside .p3-chips { flex-wrap: wrap; }
/* section heads inside a lens */
.pf-sec-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }

.pf-sec-t { margin: 0; font-size: 16px; font-weight: 700; }

.pf-sec-t span { font-size: 13px; font-weight: 500; color: var(--lm-d-muted); }

.pf-link { display: inline-flex; align-items: center; gap: 4px; color: var(--lm-d-info); font-size: 13px; font-weight: 700; text-decoration: none; cursor: pointer; background: none; border: 0; font-family: inherit; padding: 0; }

.pf-link .pf-ic { inline-size: 14px; block-size: 14px; }

[dir='ltr'] .pf-flip { transform: scaleX(-1); }
/* boxes (secondary surfaces inside the ruled card — never ruled themselves) */
.pf-grid { display: grid; gap: 12px; grid-template-columns: repeat(var(--pf-cols, 3), minmax(0, 1fr)); }

.pf-box { border: 1px solid var(--lm-d-border); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; min-inline-size: 0; background: var(--lm-d-surface); }

.pf-box-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-block-end: 2px; }

.pf-box-t { font-size: 15px; font-weight: 700; }

.pf-box .p3-line { padding: 6px 0; font-size: 13px; }

.pf-box .p3-line > span:first-child { color: var(--lm-d-muted); white-space: nowrap; }

.pf-box .p3-line > b, .pf-box .p3-line > span:last-child { text-align: end; min-inline-size: 0; overflow-wrap: anywhere; }

.pf-box .pf-link { margin-block-start: auto; padding-block-start: 6px; }

.pf-box-f { display: flex; flex-wrap: wrap; gap: 8px; padding-block-start: 8px; margin-block-start: auto; }
/* "needed now": open work across every role */
.pf-todo { display: flex; flex-direction: column; border: 1px solid var(--lm-d-border); border-radius: 12px; overflow: hidden; }

.pf-todo-r { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 10px 14px; border-block-end: 1px solid var(--lm-d-divider); }

.pf-todo-r:last-child { border-block-end: 0; }

.pf-todo-r:hover { background: var(--lm-d-hover); }

.pf-todo-r .pf-todo-t { font-size: 14px; font-weight: 700; min-inline-size: 0; }

.pf-todo-r .pf-todo-t small { display: block; font-size: 12.5px; font-weight: 400; color: var(--lm-d-muted); }

.pf-mini { min-block-size: 22px; padding-inline: 8px; font-size: 12px; }

.pf-mini::before { inline-size: 5px; block-size: 5px; }
/* a progress bar (construction) */
.pf-bar { block-size: 8px; border-radius: 999px; background: var(--lm-d-divider); overflow: hidden; }

.pf-bar i { display: block; block-size: 100%; inline-size: var(--pf-p, 0%); background: var(--lm-d-ok); border-radius: inherit; }
/* the one timeline */
.pf-tl { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }

.pf-tl li { position: relative; padding-inline-start: 22px; padding-block-end: 14px; }

.pf-tl li::before { content: ''; position: absolute; inset-inline-start: 5px; inset-block: 14px 0; border-inline-start: 2px solid var(--lm-d-divider); }

.pf-tl li:last-child::before { display: none; }

.pf-tl li > i { position: absolute; inset-inline-start: 0; inset-block-start: 5px; inline-size: 12px; block-size: 12px; border-radius: 50%;
    background: var(--lm-d-surface); border: 2px solid var(--lm-d-dot); }

.pf-tl li.is-ok > i { border-color: var(--lm-d-ok); background: var(--lm-d-ok); }

.pf-tl li.is-danger > i { border-color: var(--lm-d-danger); background: var(--lm-d-danger); }

.pf-tl li.is-info > i { border-color: var(--lm-d-info); }

.pf-tl li.is-hidden { display: none; }

.pf-tl-m { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; color: var(--lm-d-muted); }

.pf-tl-t { font-size: 13.5px; color: var(--lm-d-ink); }

.pf-tl-t.is-danger { color: var(--lm-d-danger); font-weight: 700; }
/* lens action bar (the one orange of the lens lives here) */
.pf-act { display: flex; flex-wrap: wrap; gap: 8px; padding-block-start: 4px; }
/* the lens's own anchors (customer story: canonical CS order) */
.pf-anchors { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-block-end: 2px; }

.pf-anchors::-webkit-scrollbar { display: none; }

.pf-anchors .p3-chip { flex: none; }
/* states screen */
.pf-states { display: none; }

.pf-states.is-on { display: flex; flex-direction: column; gap: 14px; }

.pf-state-cap { font-size: 12.5px; color: var(--lm-d-muted); }
/* ≤1023.98px: timeline goes under the story, boxes stack */
@media (max-width: 1023.98px) {

.pf-body { grid-template-columns: minmax(0, 1fr); }

.pf-aside { position: static; border-inline-start: 0; border-block-start: 1px solid var(--lm-d-divider); max-block-size: none; min-block-size: 0; }

.pf-aside .p3-p-b { overflow: visible; }

.pf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {

.pf-grid { grid-template-columns: minmax(0, 1fr); }

.pf-avatar { inline-size: 44px; block-size: 44px; font-size: 16px; }

.pf-link { min-block-size: 44px; }

.pf-todo-r { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; }

.pf-todo-r > .p3-tag:first-child { grid-column: 1 / -1; justify-self: start; }

.pf-main { padding: 12px; }

.pf-page .fi-header-actions-ctn { inline-size: 100%; }

.pf-page .fi-header-actions-ctn .fi-btn { flex: 1 1 0; justify-content: center; white-space: nowrap; }

.pf-page .fi-header-actions-ctn .fi-btn.fi-color-primary { order: -1; flex-basis: 100%; }
}
/* ── v2 (05/10): story | Action Center column · edit sheet · fill-in-place · tabs ── */
.pf-body2 { display: grid; grid-template-columns: minmax(0, 1fr) 34rem; gap: 14px; align-items: start; }

.pf-story { min-inline-size: 0; }

.pf-story > .p3-card > .p3-card-h { align-items: flex-start; }

.pf-tab { display: none; flex-direction: column; gap: 14px; padding: 14px 18px 18px; }

.pf-tab.is-on { display: flex; }
/* header extras */
.pf-page .fi-header-subheading .pf-copy { margin-inline-start: 2px; }

.pf-copy { inline-size: 26px; block-size: 26px; display: inline-grid; place-items: center; border-radius: 6px; border: 1px solid var(--lm-d-border);
    background: var(--lm-d-surface); color: var(--lm-d-subtle); cursor: pointer; vertical-align: middle; padding: 0; }

.pf-copy svg { inline-size: 14px; block-size: 14px; }

.pf-copy:hover { color: var(--lm-d-ink); }
/* missing-data bar: what a human can fill, one click each */
.pf-missing { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 10px 14px; border-radius: 12px;
    background: var(--lm-d-info-soft); color: var(--lm-d-info); font-size: 13.5px; }

.pf-missing > b { font-weight: 700; margin-inline-end: 4px; }

.pf-add { display: inline-flex; align-items: center; gap: 4px; color: var(--lm-d-info); font: inherit; font-size: 13px; font-weight: 700;
    background: none; border: 0; padding: 0; cursor: pointer; white-space: nowrap; }

.pf-add::before { content: '+'; font-size: 15px; line-height: 1; }

.pf-missing .pf-add { background: var(--lm-d-surface); border: 1px solid var(--lm-d-border); border-radius: 999px; padding: 3px 10px; min-block-size: 28px; }
/* box head edit button */
.pf-edit { display: inline-flex; align-items: center; gap: 5px; min-block-size: 30px; padding-inline: 10px; border-radius: 8px;
    border: 1px solid var(--lm-d-control-edge); background: var(--lm-d-surface); color: var(--lm-d-ink); font: inherit; font-size: 12.5px;
    font-weight: 700; cursor: pointer; white-space: nowrap; }

.pf-edit svg { inline-size: 14px; block-size: 14px; color: var(--lm-d-subtle); }

.pf-edit:hover { background: var(--lm-d-hover); }

.pf-box-h .pf-box-hr { display: inline-flex; align-items: center; gap: 8px; }

.pf-src { font-size: 12px; color: var(--lm-d-muted); }
/* ═══ the Action Center column ═══ */
.pf-ac { position: sticky; inset-block-start: 12px; display: flex; flex-direction: column; background: var(--lm-d-surface);
    border: 1px solid var(--lm-d-border); border-block-start: 3px solid var(--lm-d-accent); border-radius: 16px; box-shadow: 0 1px 2px var(--lm-d-shadow);
    max-block-size: calc(100dvh - 24px); overflow: hidden; min-inline-size: 0; }

.pf-ac-h { padding: 12px 16px 10px; border-block-end: 1px solid var(--lm-d-divider); display: flex; flex-direction: column; gap: 10px; }

.pf-ac-t { display: flex; align-items: center; justify-content: space-between; gap: 8px; }

.pf-ac-t h2 { margin: 0; font-size: 20px; font-weight: 700; }

.pf-ac-t h2 span { font-size: 13px; font-weight: 500; color: var(--lm-d-muted); }

.pf-ac .p3-chips { flex-wrap: wrap; }

.pf-ac-b { overflow-y: auto; overscroll-behavior: contain; padding: 12px 16px 16px; display: flex; flex-direction: column; gap: 12px; }

.pf-attn { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12.5px; color: var(--lm-d-muted); }

.pf-sub-t { font-size: 13px; font-weight: 700; color: var(--lm-d-muted); margin: 0; }

.pf-task { border: 1px solid var(--lm-d-border); border-inline-start: 4px solid var(--lm-d-accent); border-radius: 12px; padding: 12px 14px;
    display: flex; flex-direction: column; gap: 10px; background: var(--lm-d-surface); }

.pf-task.is-late { border-inline-start-color: var(--lm-d-danger); background: var(--lm-d-surface); }

.pf-task-t { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }

.pf-task-t b { font-size: 15.5px; font-weight: 700; line-height: 1.45; }

.pf-task-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 10px; padding-block: 8px; border-block: 1px solid var(--lm-d-divider); }

.pf-task-stats > div { display: flex; flex-direction: column; min-inline-size: 0; }

.pf-task-stats span { font-size: 12px; color: var(--lm-d-muted); }

.pf-task-stats b { font-size: 13.5px; font-weight: 700; overflow-wrap: anywhere; }

.pf-task-stats b.is-danger { color: var(--lm-d-danger); }

.pf-comment { background: var(--lm-d-page); border-radius: 10px; padding: 8px 10px; font-size: 13px; }

.pf-comment small { display: block; color: var(--lm-d-muted); font-size: 12px; }

.pf-task-f { display: flex; flex-wrap: wrap; gap: 8px; }

.pf-task-f .p3-btn.is-primary { flex: 1 1 auto; justify-content: center; }

.pf-rec { border: 1px dashed var(--lm-d-control-edge); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }

.pf-rec-why { font-size: 13px; color: var(--lm-d-muted); }

.pf-rec-why b { color: var(--lm-d-ink); font-weight: 600; }

.pf-kv { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; padding-block: 7px; border-block-end: 1px solid var(--lm-d-divider); }

.pf-kv:last-child { border-block-end: 0; }

.pf-kv > span:first-child { color: var(--lm-d-muted); }

.pf-kv > b { text-align: end; }
/* AI box (violet marker; never a fact) */
.pf-ai { border: 1px solid var(--lm-d-border); border-inline-start: 3px solid var(--lm-d-ai); border-radius: 12px; padding: 12px 14px;
    background: var(--lm-d-ai-bg); color: var(--lm-d-ai-ink); display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; }

.pf-ai-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }

.pf-ai-h b { display: inline-flex; align-items: center; gap: 6px; color: var(--lm-d-ai); font-size: 14px; }

.pf-ai-h svg { inline-size: 16px; block-size: 16px; }
/* ═══ the edit sheet (Filament slide-over, restyled) ═══ */
.pf-sheet-bg { position: fixed; inset: 0; background: var(--lm-d-overlay); z-index: 60; display: none; }

.pf-sheet { position: fixed; inset-block: 0; inset-inline-end: 0; inline-size: min(460px, 100vw); background: var(--lm-d-surface); z-index: 61;
    display: none; flex-direction: column; box-shadow: 0 0 40px var(--lm-d-sheet-shadow); }

.pf-sheet.is-on { display: flex; }

.pf-sheet-h { padding: 16px 20px 12px; border-block-end: 1px solid var(--lm-d-divider); display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }

.pf-sheet-h h3 { margin: 0; font-size: 18px; font-weight: 700; }

.pf-sheet-h p { margin: 2px 0 0; font-size: 13px; color: var(--lm-d-muted); }

.pf-sheet-b { flex: 1 1 auto; overflow-y: auto; padding: 16px 20px; display: flex; flex-direction: column; gap: 14px; }

.pf-sheet-f { padding: 12px 20px; border-block-start: 1px solid var(--lm-d-divider); display: flex; gap: 8px; }

.pf-sheet-f .p3-btn { flex: 1 1 0; justify-content: center; }

.pf-field { display: flex; flex-direction: column; gap: 6px; }

.pf-field > label, .pf-field > .pf-lbl { font-size: 13.5px; font-weight: 600; }

.pf-field > label small, .pf-field > .pf-lbl small { color: var(--lm-d-muted); font-weight: 400; font-size: 12.5px; }

.pf-input { min-block-size: 42px; border: 1px solid var(--lm-d-control-edge); border-radius: 10px; padding-inline: 12px; background: var(--lm-d-surface);
    color: var(--lm-d-ink); font-size: 14px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }

.pf-input.is-empty { color: var(--lm-d-muted); }

.pf-input.is-focus { border-color: var(--lm-d-info); box-shadow: 0 0 0 3px var(--lm-d-info-soft); }

.pf-input.is-ro { background: var(--lm-d-page); color: var(--lm-d-muted); }

.pf-input.is-area { min-block-size: 72px; align-items: flex-start; padding-block: 10px; }

.pf-input svg { inline-size: 16px; block-size: 16px; color: var(--lm-d-subtle); flex: none; }

.pf-row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }

.pf-hint { font-size: 12.5px; color: var(--lm-d-muted); }

.pf-opts { display: flex; flex-wrap: wrap; gap: 6px; }

.pf-opts .p3-chip { min-block-size: 32px; }

.pf-sheet-sec { font-size: 13px; font-weight: 700; color: var(--lm-d-muted); padding-block-start: 4px; border-block-start: 1px solid var(--lm-d-divider); margin: 0; padding-block-start: 12px; }
/* data map */
.pf-map { inline-size: 100%; }

.pf-map td { font-size: 13px; vertical-align: top; }

.pf-map td:first-child { font-weight: 700; }

.pf-map-h { margin: 6px 0 0; font-size: 16px; font-weight: 700; }

.pf-money4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 1023.98px) {

.pf-body2 { grid-template-columns: minmax(0, 1fr); }

.pf-ac { position: static; max-block-size: none; order: -1; }

.pf-ac-b { overflow: visible; }

.pf-map-wrap { overflow-x: auto; }
}

@media (max-width: 640px) {

.pf-task-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.pf-row2 { grid-template-columns: minmax(0, 1fr); }

.pf-money4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.pf-tab { padding: 12px; }

.pf-page .fi-header-actions-ctn .fi-btn:not(.fi-color-primary) { flex: 1 1 30%; }

.pf-edit, .pf-add, .pf-copy { min-block-size: 44px; }

.pf-copy { inline-size: 44px; }

.pf-sheet { inline-size: 100vw; }
}
/* ── v3 (06/10): Action Center states in the house skin (texts unchanged from main) ── */
.pf-task-t b .pf-task-n { display: block; font-size: 13px; font-weight: 500; color: var(--lm-d-muted); line-height: 1.5; }

.pf-ac-static { position: static; max-block-size: none; }

.pf-ac-grid { display: grid; gap: 14px; align-items: start; grid-template-columns: repeat(auto-fill, minmax(min(100%, 30rem), 1fr)); }

.pf-ac-f { padding: 12px 16px; border-block-start: 1px solid var(--lm-d-divider); display: flex; gap: 8px; }

.pf-ac-f .p3-btn { flex: 1 1 0; justify-content: center; }

.pf-radio { display: flex; align-items: center; gap: 8px; min-block-size: 42px; padding-inline: 12px; border: 1px solid var(--lm-d-control-edge);
    border-radius: 10px; font-size: 13.5px; font-weight: 600; cursor: pointer; background: var(--lm-d-surface); }

.pf-radio i { inline-size: 16px; block-size: 16px; border-radius: 50%; border: 2px solid var(--lm-d-control-edge); flex: none; }

.pf-radio.is-on { border-color: var(--lm-d-info); background: var(--lm-d-info-soft); color: var(--lm-d-info); }

.pf-radio.is-on i { border-color: var(--lm-d-info); background: var(--lm-d-info); box-shadow: inset 0 0 0 3px var(--lm-d-surface); }

.pf-menu { border: 1px solid var(--lm-d-border); border-radius: 10px; overflow: hidden; background: var(--lm-d-surface); box-shadow: 0 1px 2px var(--lm-d-shadow); }

.pf-menu-g { padding: 6px 12px; font-size: 12px; font-weight: 700; color: var(--lm-d-muted); background: var(--lm-d-page); }

.pf-menu-i { padding: 8px 12px; font-size: 13.5px; border-block-start: 1px solid var(--lm-d-divider); cursor: pointer; }

.pf-menu-i:hover { background: var(--lm-d-hover); }

.pf-menu-i.is-on { background: var(--lm-d-info-soft); color: var(--lm-d-info); font-weight: 700; }

.pf-stack-s { display: flex; flex-direction: column; gap: 8px; }

.pf-stack-s .p3-btn { justify-content: center; }

.pf-hist { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding-block: 9px; border-block-end: 1px solid var(--lm-d-divider); font-size: 13.5px; }

.pf-hist:last-child { border-block-end: 0; }

.pf-hist .pf-src { flex: 1 1 100%; }

[data-ac-state].is-flash { box-shadow: 0 0 0 3px var(--lm-d-accent-soft), 0 1px 2px var(--lm-d-shadow); border-color: var(--lm-d-accent-line); }
/* ── v4 (06/10): the contact's FULL timeline beside the page · Action Center = a band above the tabs ── */
.pf-body2 { grid-template-columns: minmax(0, 1fr) 400px; }

.pf-story { display: flex; flex-direction: column; gap: 14px; }

.pf-ac-band { position: static; max-block-size: none; }

.pf-acb-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 14px; align-items: start; }

.pf-acb-a, .pf-acb-b { display: flex; flex-direction: column; gap: 10px; min-inline-size: 0; }

.pf-tlc { position: sticky; inset-block-start: 12px; display: flex; flex-direction: column; background: var(--lm-d-surface); border: 1px solid var(--lm-d-border);
    border-radius: 16px; box-shadow: 0 1px 2px var(--lm-d-shadow); max-block-size: calc(100dvh - 24px); overflow: hidden; min-inline-size: 0; }

.pf-tlc-h { padding: 12px 16px 10px; border-block-end: 1px solid var(--lm-d-divider); display: flex; flex-direction: column; gap: 10px; }

.pf-tlc-h .p3-search { inline-size: 100%; max-inline-size: none; }

.pf-tlc-h .p3-chips { flex-wrap: wrap; }

.pf-tlc-b { flex: 1 1 auto; min-block-size: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 16px 12px; }

.pf-tl-day { position: sticky; inset-block-start: 0; z-index: 1; background: var(--lm-d-surface); padding-block: 10px 6px; font-size: 12.5px; font-weight: 700; color: var(--lm-d-muted); }

.pf-tl-x { font-size: 12.5px; color: var(--lm-d-muted); margin-block-start: 2px; }

.pf-tlc .p3-p-f > .p3-btn { flex: 1 1 0; justify-content: center; }

@media (max-width: 1279.98px) {

.pf-acb-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 1023.98px) {

.pf-body2 { grid-template-columns: minmax(0, 1fr); }

.pf-tlc { position: static; max-block-size: none; }

.pf-tlc-b { overflow: visible; }
}
/* ── v5 (06/10): no tabs except the customer — every section stacked in the one ruled card ── */
.pf-sec { display: flex; flex-direction: column; gap: 12px; padding: 16px 18px 18px; border-block-start: 1px solid var(--lm-d-divider); }

.p3-card-h + .pf-sec { border-block-start: 0; }

.pf-sec-title { margin: 0; font-size: 17px; font-weight: 700; color: var(--lm-d-ink); display: flex; align-items: center; gap: 8px; }

.pf-sec-title::before { content: ''; inline-size: 4px; block-size: 18px; border-radius: 2px; background: var(--lm-d-info); }

@media (max-width: 640px) {

.pf-sec { padding: 12px; }
}
/* the fitted page: head · strip · three columns */
.pf-fit { block-size: 100%; display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 12px; min-block-size: 0; }

.pf-fit-main { display: flex; flex-direction: column; gap: 12px; min-block-size: 0; min-inline-size: 0; }

.pf-fit-main > .p3-card { flex: 1 1 auto; min-block-size: 0; }

.pf-fit-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-inline-size: 0; }

.pf-fit-h .pf-head { gap: 12px; }

.pf-fit-h .pf-avatar { inline-size: 44px; block-size: 44px; font-size: 16px; }

.pf-fit-t { margin: 0; font-size: 24px; font-weight: 700; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; line-height: 1.3; }

.pf-fit-s { margin: 2px 0 0; font-size: 13px; color: var(--lm-d-muted); display: flex; flex-wrap: wrap; gap: 2px 8px; align-items: center; }

.pf-fit-s i { font-style: normal; color: var(--lm-d-divider); }

.pf-fit-s .pf-copy { inline-size: 24px; block-size: 24px; }

.pf-fit-a { display: flex; gap: 8px; flex: none; }

.pf-fit-a .p3-btn { min-block-size: 40px; }

.pf-miss { display: inline-flex; align-items: center; gap: 4px; min-block-size: 28px; padding-inline: 10px; border-radius: 999px; border: 1px solid var(--lm-d-accent-line);
    background: var(--lm-d-warn-soft); color: var(--lm-d-warn); font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }

.pf-fit .p3-strip-c { padding: 6px 14px; }

.pf-fit .p3-k-l { font-size: 12.5px; }

.pf-fit .p3-k-v { font-size: 22px; line-height: 1.3; }

.pf-fit .p3-k-s { font-size: 12px; }

.pf-fit-b { display: grid; grid-template-columns: minmax(0, 1fr) 340px 260px; gap: 12px; min-block-size: 0; }

.pf-fit-b > * { min-block-size: 0; }
/* the info card (ruled) — boxes in two columns, its body is the only fallback scroll */
.pf-info > .p3-card-h { padding: 8px 16px; }

.pf-info .p3-card-t { font-size: 18px; }

.pf-info-b { flex: 1 1 auto; min-block-size: 0; overflow-y: auto; padding: 10px 14px; display: flex; flex-direction: column; gap: 8px; }

.pf-trail { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 12.5px; color: var(--lm-d-muted); }

.pf-trail span { display: inline-flex; align-items: center; gap: 5px; min-block-size: 26px; padding-inline: 9px; border-radius: 999px; background: var(--lm-d-page); }

.pf-trail span::before { content: ''; inline-size: 7px; block-size: 7px; border-radius: 50%; background: var(--lm-d-dot); }

.pf-trail span.is-done::before { background: var(--lm-d-ok); }

.pf-trail span.is-now { background: var(--lm-d-accent-soft); color: var(--lm-d-accent-ink); font-weight: 700; }

.pf-trail span.is-now::before { background: var(--lm-d-accent); }

.pf-trail b { font-weight: 400; }

.pf-g2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }

.pf-fit .pf-box { padding: 8px 12px 10px; gap: 0; }

.pf-fit .pf-box-h { min-block-size: 30px; margin-block-end: 0; }

.pf-fit .pf-box-t { font-size: 14px; }

.pf-fit .pf-box .p3-line { padding: 4px 0; font-size: 13px; }

.pf-fit .pf-edit { min-block-size: 26px; padding-inline: 8px; font-size: 12px; }

.pf-fit .pf-todo-r { padding: 6px 10px; grid-template-columns: 84px minmax(0, 1fr) auto auto; }

.pf-fit .pf-todo-r .pf-todo-t { font-size: 13.5px; }

.pf-fit .p3-btn.is-sm { min-block-size: 32px; padding-inline: 10px; font-size: 13px; }

.pf-fit .p3-table th { padding: 6px 8px; font-size: 12.5px; }

.pf-fit .p3-table td { padding: 6px 8px; font-size: 13px; }

.pf-fit .p3-note { padding: 7px 10px; font-size: 12.5px; }

.pf-fit .p3-money b { font-size: 16px; }

.pf-fit .pf-ai { padding: 8px 12px; font-size: 12.5px; }
/* customer: the tabs card */
.pf-tabs > .p3-card-h { padding: 8px 14px; }

.pf-tabs .p3-pill { min-block-size: 34px; padding-inline: 12px; font-size: 13.5px; gap: 6px; }

.pf-tabs .p3-pills { gap: 6px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }

.pf-tabs .p3-pill { flex: none; }

.pf-info-b > *, .pf-tabs .pf-tab > * { flex-shrink: 0; }

.pf-fit .pf-ai-h > span { flex: 1 1 auto; font-size: 12.5px; color: var(--lm-d-muted); }

.pf-tabs .pf-tab { flex: 1 1 auto; min-block-size: 0; overflow-y: auto; padding: 12px 14px; gap: 10px; }
/* the Action Center column (house skin, texts as on main) */
.pf-ac-col { position: static; max-block-size: none; block-size: 100%; }

.pf-ac-col .pf-ac-h { padding: 10px 14px 8px; gap: 8px; }

.pf-ac-col .pf-ac-t h2 { font-size: 17px; }

.pf-ac-col .p3-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }

.pf-ac-col .p3-chips::-webkit-scrollbar { display: none; }

.pf-ac-col .p3-chip { min-block-size: 30px; padding-inline: 9px; font-size: 12.5px; flex: none; }

.pf-ac-col .pf-ac-b { padding: 8px 14px 10px; gap: 6px; }

.pf-ac-col .pf-acb-grid { grid-template-columns: minmax(0, 1fr); gap: 6px; }

.pf-ac-col .pf-acb-a, .pf-ac-col .pf-acb-b { gap: 6px; }

.pf-ac-col .pf-task-f .p3-btn.is-sm { min-block-size: 30px; }

.pf-ac-col .pf-kv { padding-block: 4px; }

.pf-ac-col .pf-task { padding: 10px 12px; gap: 8px; }

.pf-ac-col .pf-task-t b { font-size: 14.5px; }

.pf-ac-col .pf-task-stats { padding-block: 6px; gap: 4px 8px; }

.pf-ac-col .pf-task-stats b { font-size: 13px; }

.pf-ac-col .pf-comment { padding: 6px 10px; font-size: 12.5px; }

.pf-ac-col .pf-task-f { gap: 6px; }

.pf-ac-col .pf-task-f .p3-btn { min-block-size: 34px; padding-inline: 10px; font-size: 13px; }

.pf-ac-col .pf-task-f .p3-btn.is-primary { flex: 1 1 100%; min-block-size: 38px; }

.pf-ac-col .pf-task-f .p3-btn.is-sm { flex: 1 1 0; justify-content: center; }

.pf-ac-col .pf-rec { padding: 8px 12px; gap: 6px; }

.pf-ac-col .pf-rec > b { font-size: 13.5px; }

.pf-ac-col .pf-rec-why { font-size: 12.5px; }

.pf-ac-col .pf-kv { padding-block: 5px; font-size: 12.5px; }

.pf-cap { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; font-weight: 700; color: var(--lm-d-muted); }

.pf-cap .pf-link { font-size: 12px; }

.pf-cap-i { font-size: 12px; font-weight: 700; color: var(--lm-d-muted); margin-inline-end: 6px; }

.pf-info > .p3-card-h { flex-wrap: nowrap; }

.pf-info > .p3-card-h .pf-trail { flex-wrap: nowrap; overflow: hidden; }

.pf-trail span { white-space: nowrap; }

.pf-sr { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.pf-ac-col .pf-comment small { display: inline; margin-inline-start: 6px; }

.pf-ac-col .pf-rec-why { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }

.pf-ac-col .pf-task-stats > div { flex-direction: row; justify-content: space-between; gap: 6px; }

.pf-ac-col .pf-task-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px 14px; }
/* the timeline column */
.pf-fit .pf-tlc { position: static; block-size: 100%; max-block-size: none; }

.pf-fit .pf-tlc-h { padding: 10px 14px 8px; gap: 8px; }

.pf-fit .pf-tlc .pf-ac-t h2 { font-size: 17px; }

.pf-fit .pf-tlc .p3-search { min-block-size: 34px; }

.pf-fit .pf-tlc .p3-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }

.pf-fit .pf-tlc .p3-chips::-webkit-scrollbar { display: none; }

.pf-fit .pf-tlc .p3-chip { min-block-size: 28px; padding-inline: 8px; font-size: 12.5px; flex: none; }

.pf-fit .pf-tlc-b { padding: 0 14px 10px; }

.pf-fit .pf-tlc .p3-p-f { padding: 8px 14px; }

.pf-fit .pf-tlc .p3-p-f .p3-btn { min-block-size: 36px; font-size: 13px; }
/* timeline toggle below 1366px: the column becomes a side sheet */
.pf-tl-toggle { display: none; }

@media (max-width: 1365.98px) {

.pf-fit-b { grid-template-columns: minmax(0, 1fr) 330px; }

.pf-fit .pf-tlc { display: none; }

.pf-tl-toggle { display: inline-flex; }

.pf-fit-a .p3-btn:not(.is-primary) .pf-btn-l { display: none; }

.pf-fit-a .p3-btn:not(.is-primary) { inline-size: 42px; padding: 0; justify-content: center; }
}

@media (max-width: 1023.98px) {

.pf-fit { block-size: auto; grid-template-rows: none; }

.pf-fit-main { display: contents; }

.pf-fit-main > .p3-strip { order: -2; }

.pf-fit-h { flex-direction: column; align-items: stretch; }

.pf-fit-a { flex-wrap: wrap; }

.pf-fit-a .p3-btn { flex: 1 1 30%; justify-content: center; inline-size: auto; padding-inline: 12px; }

.pf-fit-a .p3-btn:not(.is-primary) .pf-btn-l { display: inline; }

.pf-fit-a .p3-btn.is-primary { order: -1; flex-basis: 100%; }

.pf-fit-b { grid-template-columns: minmax(0, 1fr); }

.pf-ac-col { order: -1; }

.pf-fit .pf-tlc { display: flex; position: static; }

.pf-info-b, .pf-tabs .pf-tab, .pf-ac-col .pf-ac-b, .pf-fit .pf-tlc-b { overflow: visible; }

.pf-tl-toggle { display: none; }
}

@media (max-width: 640px) {

.pf-g2 { grid-template-columns: minmax(0, 1fr); }

.pf-fit .p3-strip-c { padding: 8px 12px; }

.pf-fit-a .p3-btn, .pf-miss { min-block-size: 44px; }
}
/* ── v7 (06/10): the lead's main card = the journey rail (SharedJourneyPanel on main), each station holds its data + edits ── */
.pf-rail { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); position: relative; margin: 0; padding: 2px 0 0; list-style: none; flex-shrink: 0; }

.pf-rail::before { content: ''; position: absolute; inset-block-start: 17px; inset-inline: 7%; border-block-start: 2px solid var(--lm-d-divider); }

.pf-rail li { min-inline-size: 0; }

.pf-rail button { position: relative; inline-size: 100%; display: flex; flex-direction: column; align-items: center; gap: 2px; background: none; border: 0;
    padding: 0 2px 6px; font: inherit; cursor: pointer; color: var(--lm-d-muted); text-align: center; border-radius: 10px; border-block-end: 3px solid transparent; }

.pf-rail button:hover { background: var(--lm-d-hover); }

.pf-rail i { inline-size: 30px; block-size: 30px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 13px; font-weight: 700;
    background: var(--lm-d-surface); border: 2px solid var(--lm-d-control-edge); color: var(--lm-d-muted); }

.pf-rail .is-done i { border-color: var(--lm-d-ok); background: var(--lm-d-ok-soft); color: var(--lm-d-ok); }

.pf-rail .is-now i { border-color: var(--lm-d-accent); background: var(--lm-d-accent); color: var(--lm-d-on-accent); box-shadow: 0 0 0 4px var(--lm-d-accent-soft); }

.pf-rail b { font-size: 12.5px; font-weight: 700; color: var(--lm-d-ink); line-height: 1.3; }

.pf-rail small { font-size: 12px; color: var(--lm-d-muted); }

.pf-rail .is-count small { background: var(--lm-d-info-soft); color: var(--lm-d-info); border-radius: 999px; padding-inline: 8px; font-weight: 700; }

.pf-rail button.is-open { background: var(--lm-d-page); border-block-end-color: var(--lm-d-info); }

.pf-st-pane { display: none; flex-direction: column; gap: 6px; border: 1px solid var(--lm-d-border); border-radius: 12px; padding: 8px 12px 10px; min-block-size: 0; flex-shrink: 0; }

.pf-st-pane.is-on { display: flex; }

.pf-st-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-block-size: 30px; }

.pf-st-h > b { font-size: 14.5px; font-weight: 700; }

.pf-l2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; }

.pf-l2 .p3-line { padding: 4px 0; font-size: 13px; }

.pf-st-pane > .p3-line { padding: 4px 0; font-size: 13px; }

.pf-chiprow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }

.pf-val { display: inline-flex; align-items: center; min-block-size: 28px; padding-inline: 10px; border-radius: 999px; background: var(--lm-d-ok-soft); color: var(--lm-d-ok); font-size: 13px; font-weight: 700; }

.pf-chiprow .pf-add { background: var(--lm-d-warn-soft); border: 1px solid var(--lm-d-accent-line); border-radius: 999px; padding: 3px 10px; min-block-size: 28px; color: var(--lm-d-warn); }

.pf-next { display: flex; align-items: center; gap: 8px; min-block-size: 38px; padding-inline: 12px; border-radius: 10px; background: var(--lm-d-accent-soft);
    border: 1px solid var(--lm-d-accent-line); color: var(--lm-d-accent-ink); font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; inline-size: 100%; text-align: start; flex-shrink: 0; }

.pf-next .pf-ic { inline-size: 16px; block-size: 16px; }

.pf-wait { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12.5px; color: var(--lm-d-muted); flex-shrink: 0; }

.pf-wait > span { font-weight: 700; }

.pf-wait-c { display: inline-flex; align-items: center; gap: 4px; min-block-size: 28px; padding-inline: 10px; border-radius: 999px; border: 1px solid var(--lm-d-border);
    background: var(--lm-d-surface); color: var(--lm-d-ink); font: inherit; font-size: 12.5px; cursor: pointer; }

.pf-wait-c::before { content: ''; inline-size: 6px; block-size: 6px; border-radius: 50%; background: var(--lm-d-warn); }

.pf-wait-c:hover { background: var(--lm-d-hover); }

.pf-journey > .p3-card-h { flex-wrap: nowrap; }

@media (max-width: 640px) {

.pf-rail { grid-template-columns: repeat(7, minmax(72px, 1fr)); overflow-x: auto; }

.pf-l2 { grid-template-columns: minmax(0, 1fr); }

.pf-rail button, .pf-wait-c, .pf-next { min-block-size: 44px; }
}
/* ── v8 (06/10): the lead's own actions («مرحلة الرحلة & المالك» on main) as the journey card's head + the AI script row in the task card ── */
.pf-lead-tools { padding: 8px 12px; }

.pf-tools { display: flex; align-items: center; gap: 5px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; inline-size: 100%; }

.pf-tools::-webkit-scrollbar { display: none; }

.pf-tool { display: inline-flex; align-items: center; gap: 5px; flex: none; min-block-size: 32px; padding-inline: 9px; border-radius: 10px; border: 1px solid var(--lm-d-control-edge);
    background: var(--lm-d-surface); color: var(--lm-d-ink); font: inherit; font-size: 13px; cursor: pointer; white-space: nowrap; }

.pf-tool:hover { background: var(--lm-d-hover); }

.pf-tool span { color: var(--lm-d-muted); font-size: 12.5px; }

.pf-tool b { font-weight: 700; }

.pf-tool svg { inline-size: 14px; block-size: 14px; color: var(--lm-d-subtle); }

.pf-aiss { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--lm-d-border); border-inline-start: 3px solid var(--lm-d-ai); background: var(--lm-d-ai-bg); }

.pf-aiss b { color: var(--lm-d-ai); font-size: 12.5px; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }

.pf-aiss b svg { inline-size: 14px; block-size: 14px; }

.pf-aiss span { flex: 1 1 auto; min-inline-size: 0; font-size: 12px; color: var(--lm-d-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.pf-aiss .p3-btn { min-block-size: 28px; padding-inline: 10px; font-size: 12.5px; flex: none; }

.pf-ac-col .pf-ac-b { padding: 8px 14px; gap: 4px; }

.pf-ac-col .pf-acb-grid, .pf-ac-col .pf-acb-a, .pf-ac-col .pf-acb-b { gap: 5px; }

.pf-ac-col .pf-task { padding: 8px 12px; gap: 6px; }

.pf-ac-col .pf-aiss { padding: 4px 8px; }

.pf-ac-col .pf-comment { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.pf-ac-col .pf-attn { line-height: 1.4; flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }

.pf-ac-col .pf-attn::-webkit-scrollbar { display: none; }

.pf-ac-col .pf-attn .p3-tag { flex: none; }

.pf-ac-col .pf-aiss .p3-btn { min-block-size: 26px; }

.pf-ac-col .pf-acb-b > div:has(> .pf-kv) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; border-block-start: 1px solid var(--lm-d-divider); padding-block-start: 6px; }

.pf-ac-col .pf-acb-b .pf-kv { flex-direction: column; align-items: flex-start; gap: 0; padding: 0; border: 0; }

.pf-ac-col .pf-acb-b .pf-kv { min-inline-size: 0; }

.pf-ac-col .pf-acb-b .pf-kv > b { text-align: start; max-inline-size: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.pf-journey .pf-st-pane { padding: 6px 12px 8px; gap: 4px; }

.pf-journey .pf-info-b { gap: 6px; padding-block: 8px; }

@media (max-width: 640px) {

.pf-tool { min-block-size: 44px; }
}
/* ── v9 (06/10): professional pass — one border per surface, label-over-value tiles, one type scale
      (12 meta · 13 body · 13.5–14 emphasis · 16 section · 22 KPI · 24 title), colour only for status ── */
.pf-fit-t .p3-tag { min-block-size: 24px; font-size: 12px; }

.pf-fit-t .pf-tag-q { background: transparent; border: 1px solid var(--lm-d-border); color: var(--lm-d-muted); }

.pf-miss { background: transparent; border: 1px dashed var(--lm-d-accent-line); color: var(--lm-d-accent-ink); min-block-size: 24px; font-size: 12px; }

.pf-fit .p3-strip { box-shadow: none; }

.pf-fit .p3-k-l { font-size: 12px; font-weight: 500; }
/* journey card: rail · open station on a tinted band · one callout */
.pf-journey .pf-info-b { padding: 0; gap: 0; }

.pf-journey .pf-rail { padding: 10px 12px 6px; }

.pf-rail::before { inset-block-start: 24px; border-block-start-width: 2px; }

.pf-rail::after { content: ''; position: absolute; inset-block-start: 24px; inset-inline-start: 7%; inline-size: var(--pf-prog, 0%); border-block-start: 2px solid var(--lm-d-ok); }

.pf-rail i { position: relative; z-index: 1; inline-size: 28px; block-size: 28px; font-size: 12px; }

.pf-rail b { white-space: normal; line-height: 1.25; min-block-size: 2.5em; display: flex; align-items: center; justify-content: center; text-wrap: balance; font-size: 12.5px; }

.pf-rail button { gap: 1px; }

.pf-rail .is-count small { background: none; padding: 0; color: var(--lm-d-info); }

.pf-rail button { border-block-end: 0; padding-block-end: 8px; }

.pf-rail button:hover { background: none; }

.pf-rail button:hover b { color: var(--lm-d-info); }

.pf-rail button.is-open { background: none; }

.pf-rail button.is-open b { color: var(--lm-d-info); }

.pf-rail button.is-open::after { content: ''; position: absolute; inset-block-end: 0; inset-inline: 24%; border-block-end: 2px solid var(--lm-d-info); border-radius: 2px; }

.pf-journey .pf-st-pane { border: 0; border-radius: 0; background: var(--lm-d-page); border-block: 1px solid var(--lm-d-divider); padding: 8px 16px 10px; gap: 8px; }

.pf-st-h > b { font-size: 14px; }

.pf-journey .pf-callout { margin: 10px 12px 12px; }

.pf-callout { display: flex; flex-direction: column; gap: 6px; padding: 8px 12px 10px; border-radius: 12px; background: var(--lm-d-accent-soft); border: 1px solid var(--lm-d-accent-line); flex-shrink: 0; }

.pf-callout .pf-next { background: none; border: 0; padding: 0; min-block-size: 26px; }

.pf-callout .pf-wait-c { background: var(--lm-d-surface); }
/* tiles: label over value, no row rules */
.pf-tiles { display: grid; grid-template-columns: repeat(var(--pf-tc, 3), minmax(0, 1fr)); gap: 6px 18px; margin: 0; }

.pf-tiles > div { min-inline-size: 0; }

.pf-tiles dt { font-size: 12px; color: var(--lm-d-muted); margin: 0 0 1px; }

.pf-tiles dd { margin: 0; font-size: 13.5px; font-weight: 600; color: var(--lm-d-ink); display: flex; flex-wrap: wrap; align-items: center; gap: 4px; overflow-wrap: anywhere; }
/* LAND-OFFER-1 S8: the documents a land needs, two to a line — received (its date and who) or still asked for */
.pf-docs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 18px; }
.pf-docs li { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-inline-size: 0; font-size: 13px; color: var(--lm-d-ink); }
.pf-docs li > span { min-inline-size: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-docs li.is-missing > span { color: var(--lm-d-muted); }
.pf-docs li small { font-size: 12px; color: var(--lm-d-danger); white-space: nowrap; }
.pf-err { margin: 2px 0 0; font-size: 12px; color: var(--lm-d-danger); }

.pf-tiles dd .p3-tag { min-block-size: 22px; }

.pf-val { background: var(--lm-d-surface); border: 1px solid var(--lm-d-border); color: var(--lm-d-ink); }

.pf-val::before { content: '✓'; color: var(--lm-d-ok); margin-inline-end: 5px; font-size: 12px; }

.pf-chiprow .pf-add { background: transparent; border: 1px dashed var(--lm-d-accent-line); color: var(--lm-d-accent-ink); }

.pf-quote { margin: 0; padding: 2px 12px; border-inline-start: 3px solid var(--lm-d-border); font-size: 13.5px; color: var(--lm-d-ink); }

.pf-quote cite { display: block; font-style: normal; font-size: 12px; color: var(--lm-d-muted); }

.pf-box-f .pf-src { flex: 1 1 200px; align-self: center; }
/* Action Center: underline tabs, label-over-value meta, solid suggestion card */
.pf-ac-col .pf-ac-h { border-block-end: 0; padding-block-end: 0; }

.pf-ac-col .p3-chips { gap: 0; border-block-end: 1px solid var(--lm-d-divider); }

.pf-ac-col .p3-chip { border: 0; border-radius: 0; background: none; padding-inline: 4px; font-size: 12px; gap: 3px; min-block-size: 32px; color: var(--lm-d-muted); border-block-end: 2px solid transparent; }

.pf-ac-col .p3-chip b { color: inherit; }

.pf-ac-col .p3-chip.is-on { color: var(--lm-d-info); border-block-end-color: var(--lm-d-info); background: none; }

.pf-ac-col .pf-task-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 10px; border-block: 0; padding-block: 0; }

.pf-ac-col .pf-task-stats > div { flex-direction: column; justify-content: flex-start; gap: 0; }

.pf-ac-col .pf-task { border-inline-start-width: 3px; }

.pf-ac-col .pf-comment { border-radius: 8px; }

.pf-ac-col .pf-rec { border: 1px solid var(--lm-d-border); background: var(--lm-d-surface); }
/* timeline: a type icon per event, title over one meta line */
.pf-tl li { padding-inline-start: 34px; padding-block-end: 12px; }

.pf-tl li::before { inset-inline-start: 11px; inset-block: 26px 2px; }

.pf-tl-ic { position: absolute; inset-inline-start: 0; inset-block-start: 0; inline-size: 24px; block-size: 24px; border-radius: 50%; display: grid; place-items: center;
    background: var(--lm-d-chip-bg); color: var(--lm-d-muted); }

.pf-tl-ic svg { inline-size: 13px; block-size: 13px; }

.pf-tl li[data-kind="phone"] .pf-tl-ic { background: var(--lm-d-info-soft); color: var(--lm-d-info); }

.pf-tl li[data-kind="chat"] .pf-tl-ic { background: var(--lm-d-ok-soft); color: var(--lm-d-ok); }

.pf-tl li[data-kind="flag"] .pf-tl-ic { background: var(--lm-d-accent-soft); color: var(--lm-d-accent-ink); }

.pf-tl li[data-kind="money"] .pf-tl-ic { background: var(--lm-d-ok-soft); color: var(--lm-d-ok); }

.pf-tl li.is-danger .pf-tl-ic { background: var(--lm-d-danger-soft); color: var(--lm-d-danger); }

.pf-tl-t { font-size: 13px; font-weight: 600; }

.pf-tl-m { font-size: 12px; color: var(--lm-d-muted); margin-block-start: 1px; }

.pf-tl-x { font-size: 12px; color: var(--lm-d-muted); }

.pf-fit-b { grid-template-columns: minmax(0, 1fr) 344px 256px; }

@media (max-width: 1365.98px) {

.pf-fit-b { grid-template-columns: minmax(0, 1fr) 340px; }
}

@media (max-width: 1023.98px) {

.pf-fit-b { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {

.pf-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* ── v10 (06/10): the journey look for requested + broker; customer tabs flattened to tiles ── */
.pf-rail { grid-template-columns: repeat(var(--pf-n, 7), minmax(0, 1fr)); }

.pf-rail::before, .pf-rail::after { inset-inline-start: calc(50% / var(--pf-n, 7)); }

.pf-rail::before { inset-inline-end: calc(50% / var(--pf-n, 7)); }

.pf-rail > li > span { position: relative; inline-size: 100%; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 0 2px 8px; color: var(--lm-d-muted); text-align: center; }

.pf-tabs2 .pf-tab .pf-rail { padding: 2px 0 4px; }

.pf-sec2 { display: flex; flex-direction: column; gap: 6px; padding-block: 2px 10px; border-block-end: 1px solid var(--lm-d-divider); }

.pf-sec2:last-child { border-block-end: 0; padding-block-end: 0; }

.pf-bar-in { display: inline-block; inline-size: 72px; vertical-align: middle; }

.pf-add-x { color: var(--lm-d-danger); }

.pf-add-x::before { content: none; }

.pf-callout .pf-wait > span { color: var(--lm-d-accent-ink); }
/* v11: link rows under tiles + wide side sheets for long lists */
.pf-links { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-block-start: 6px; }

.pf-links .pf-link { font-size: 12px; }

.pf-tiles dd .pf-link { font-size: 12px; }

.pf-sheet.pf-sheet-w { inline-size: min(640px, 100vw); }

.pf-sheet .p3-table { inline-size: 100%; }

.pf-empty-s { padding: 16px; border: 1px dashed var(--lm-d-border); border-radius: 8px; color: var(--lm-d-muted); font-size: 13px; text-align: center; }

.pf-journey .pf-st-pane .p3-table td, .pf-journey .pf-st-pane .p3-table th { padding-block: 4px; }
/* v12: customer 360 with the full main inventory — 8 tabs, flags, unit headers, notes */
.pf-tabs8 .p3-pills { gap: 2px; }

.pf-tabs8 .p3-pill { padding-inline: 7px; font-size: 13px; gap: 4px; }

.pf-tabs8 .p3-pill .p3-pill-n { min-inline-size: 18px; padding-inline: 4px; }

.pf-tabs8 .pf-tab { gap: 8px; }

.pf-tabs8 .pf-tiles { gap: 4px 14px; }

.pf-tabs8 .pf-tiles dt { font-size: 12px; }

.pf-tabs8 .pf-tiles dd { font-size: 13px; }

.pf-tabs8 .p3-table td, .pf-tabs8 .p3-table th { padding-block: 4px; font-size: 12.5px; }

.pf-tabs8 .pf-sec2 { gap: 4px; padding-block: 0 8px; }

.pf-flag { display: flex; flex-direction: column; gap: 2px; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--lm-d-border); font-size: 12.5px; line-height: 1.6; }

.pf-flag b { font-size: 13px; }

.pf-flag.is-danger { background: var(--lm-d-danger-soft); border-color: var(--lm-d-danger-soft); }

.pf-flag.is-danger b { color: var(--lm-d-danger); }

.pf-flag.is-ok { background: var(--lm-d-ok-soft); border-color: var(--lm-d-ok-soft); }

.pf-flag.is-ok b { color: var(--lm-d-ok); }

.pf-flag .pf-link { font-size: 12px; display: inline; }

.pf-unit-h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 12px; font-size: 13px; }

.pf-unit-h span { font-size: 12px; color: var(--lm-d-muted); }

.pf-mk { display: inline-block; margin-inline-start: 4px; padding-inline: 6px; border-radius: 999px; background: var(--lm-d-info-soft); color: var(--lm-d-info); font-size: 12px; font-weight: 700; }

.pf-sub { display: block; font-size: 12px; color: var(--lm-d-muted); font-weight: 400; }

.pf-note { margin: 0; font-size: 12px; color: var(--lm-d-muted); }

.pf-tabs8 .pf-todo-r { padding-block: 4px; }

.pf-tabs8 .pf-ai-h { padding-block: 6px; }

.pf-link-ai { color: var(--lm-d-ai-ink); }

.p3-dot.is-warn { background: var(--lm-d-warn); }
/* v13: «الملف» station beside the journey rail + compact 4-col panes + legacy tech details in the timeline */
.pf-rail-row { display: flex; align-items: stretch; flex-shrink: 0; }

.pf-rail-row > .pf-rail:first-child { flex: 1 1 auto; min-inline-size: 0; }

.pf-rail.pf-rail-x { flex: none; inline-size: 72px; border-inline-start: 1px dashed var(--lm-d-border); padding-inline: 4px; }

.pf-rail.pf-rail-x::before, .pf-rail.pf-rail-x::after { display: none; }

.pf-rail.pf-rail-x i { border-style: dashed; color: var(--lm-d-muted); background: var(--lm-d-surface); }

.pf-rail.pf-rail-x i .pf-ic { inline-size: 14px; block-size: 14px; }

.pf-rail.pf-rail-x button.is-open i { border-color: var(--lm-d-info); color: var(--lm-d-info); }

.pf-journey .pf-st-pane .pf-tiles[style*="--pf-tc: 4"] { gap: 4px 12px; }

.pf-journey .pf-st-pane .pf-tiles dd { font-size: 13px; }

.pf-journey .pf-box-f .pf-lbl { font-size: 12px; color: var(--lm-d-muted); font-weight: 700; }

.pf-journey .pf-box-f .p3-chip[disabled] { opacity: .7; cursor: not-allowed; }

.pf-tl-tech { margin-block-start: 2px; font-size: 12px; color: var(--lm-d-muted); }

.pf-tl-tech summary { cursor: pointer; color: var(--lm-d-info); font-weight: 700; }
/* v14: ticket / internal-case sheets (main's ticket screen sections) */
.pf-hero { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: 12px; background: var(--lm-d-accent-soft); border: 1px solid var(--lm-d-accent-line); }

.pf-hero > b { font-size: 12px; color: var(--lm-d-accent-ink); }

.pf-hero > span { font-size: 14px; font-weight: 700; color: var(--lm-d-ink); }

.pf-hs-row { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-block-start: 2px; }

.pf-hs { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--lm-d-muted); }

.pf-hs i { font-style: normal; inline-size: 16px; block-size: 16px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--lm-d-border); font-size: 12px; }

.pf-hs.is-done { color: var(--lm-d-ok); }

.pf-hs.is-done i { border-color: var(--lm-d-ok); background: var(--lm-d-ok-soft); }

.pf-msg { align-self: flex-start; max-inline-size: 85%; padding: 6px 10px; border-radius: 10px; background: var(--lm-d-page); font-size: 13px; }

.pf-msg.is-staff { align-self: flex-end; background: var(--lm-d-info-soft); }

.pf-msg-m { font-size: 12px; color: var(--lm-d-muted); }

.pf-sheet-h h3 small { font-size: 12px; color: var(--lm-d-muted); font-weight: 400; }

.pf-raw { margin: 0; padding: 8px 10px; border-radius: 8px; background: var(--lm-d-page); border: 1px solid var(--lm-d-border); font-size: 12px; white-space: pre-wrap; word-break: break-word; color: var(--lm-d-ink); }

.p3-table td bdi { white-space: nowrap; }
/* v18: «فين التكرار» — every other classification of this contact + any other contact on the same number, clickable */
.pf-also { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 12px; }

.pf-also-l { color: var(--lm-d-muted); font-weight: 700; }

.pf-also-c { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--lm-d-border);
  background: var(--lm-d-surface); color: var(--lm-d-info); font: inherit; font-size: 12px; font-weight: 700; text-decoration: none; cursor: pointer; line-height: 1.6; }

.pf-also-c .pf-ic { inline-size: 12px; block-size: 12px; }

.pf-also-c:hover { background: var(--lm-d-hover); }

.pf-also-c.is-warn { color: var(--lm-d-warn); border-color: var(--lm-d-warn-soft); background: var(--lm-d-warn-soft); }

.pf-also-c.is-quiet { color: var(--lm-d-muted); cursor: default; font-weight: 400; }

.pf-also-sep { inline-size: 1px; block-size: 14px; background: var(--lm-d-divider); }

.pf-dup { margin-inline-start: 4px; padding: 0 6px; border-radius: 999px; border: 0; background: var(--lm-d-warn-soft); color: var(--lm-d-warn);
  font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }

.pf-dup-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.pf-dup-col { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border: 1px solid var(--lm-d-border); border-radius: 12px; }

.pf-dup-col .p3-btn { margin-block-start: 6px; align-self: flex-start; }

/* ── APP FRAME (hand-written, not from the mockup): the 360 fills the Filament main area under the
      topbar — one screen, no page scroll at ≥1024px; below that the page scrolls as normal. The host
      page has no Filament header (no heading, no header actions) — the 360 draws its own. ── */
body:has(.p3-page) .fi-main { padding-block: 12px; padding-inline: 16px; }
.p3-page .fi-page-main, .p3-page .fi-page-content { gap: 0; row-gap: 0; }
.p3-page .pf-fit { block-size: calc(100dvh - var(--hn-topbar-h, 68px) - 24px - 1px); }
@media (max-width: 1023.98px) {
.p3-page .pf-fit { block-size: auto; }
}
/* Forms carried into the sheets from the pages' existing markup (need-fields, stage, owner…): a label over a
   full-width control, on the house tokens — the inner wire bindings stay byte-for-byte the pages' own. */
.p3-page :is(.mkt360-field, .pf-field) { display: flex; flex-direction: column; gap: 4px; margin-block-end: 10px; font-size: 13px; color: var(--lm-d-muted); }
.p3-page :is(.mkt360-field, .pf-field) > label { font-size: 12.5px; color: var(--lm-d-muted); }
.p3-page :is(.mkt360-field, .pf-field) :is(input:not([type=checkbox]):not([type=radio]), select, textarea) { inline-size: 100%; min-block-size: 38px; padding: 6px 10px;
    border: 1px solid var(--lm-d-control-edge); border-radius: 10px; background: var(--lm-d-surface); color: var(--lm-d-ink); font: inherit; font-size: 13.5px; }
.p3-page :is(.mkt360-field, .pf-field) :is(input, select, textarea):focus { outline: 0; border-color: var(--lm-d-accent); box-shadow: 0 0 0 3px var(--lm-d-accent-soft); }
.p3-page .mkt360-gap-note { margin: 0 0 8px; font-size: 12.5px; color: var(--lm-d-muted); line-height: 1.6; }
.p3-page .pf-form-f { display: flex; flex-wrap: wrap; gap: 8px; margin-block-start: 6px; }
.p3-page .pf-sheet-sub { margin: 14px 0 8px; font-size: 13px; font-weight: 700; color: var(--lm-d-ink); }
.p3-page .pf-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.p3-page .pf-list li { padding: 6px 10px; border: 1px solid var(--lm-d-divider); border-radius: 10px; font-size: 12.5px; color: var(--lm-d-ink); }
.p3-page .pf-list li.is-old { color: var(--lm-d-muted); text-decoration: line-through; }
.p3-page .pf-list li.is-muted { color: var(--lm-d-muted); }
/* the header name opens the person's Customer 360 — it reads as the title, not as a blue link */
.p3-page .pf-name-link { color: inherit; text-decoration: none; }
.p3-page .pf-name-link:hover { text-decoration: underline; }
/* the header's call / WhatsApp number picker */
.p3-page .pf-act { position: relative; display: inline-flex; }
.p3-page .pf-pop { position: absolute; z-index: 30; inset-block-start: calc(100% + 6px); inset-inline-end: 0; min-inline-size: 240px; padding: 8px;
    background: var(--lm-d-surface); border: 1px solid var(--lm-d-border); border-radius: 12px; box-shadow: 0 8px 24px var(--lm-d-shadow); }
@media (max-width: 1023.98px) {
/* the picker's wrapper takes the button's place in the wrapped header row */
.p3-page .pf-fit-a .pf-act { flex: 1 1 30%; }
.p3-page .pf-fit-a .pf-act > .p3-btn { flex: 1 1 auto; inline-size: 100%; }
}
/* A request's journey can carry an 8th station (التوقيع, once a unit is chosen): the rail takes its count from
   the page (--pf-n) instead of the mockup's fixed seven, so no station wraps onto a second line. */
.p3-page .pf-rail[style*="--pf-n"] { grid-template-columns: repeat(var(--pf-n), minmax(0, 1fr)); }
/* The need as ONE checklist (PO 13/10: «البيانات اللي محتاجة تتملي تظهر أسهل ع العين وتساعد الموظف ينجز»):
   the six questions in a grid — recorded ones quiet with ✓, missing ones warm with an «add» that opens the
   sheet on that field; the same six in the sheet, each marked live while the employee types. */
.pf-need { display: flex; flex-direction: column; gap: 8px; margin-block-end: 10px; }
.pf-need-top { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--lm-d-ink); }
.pf-need-top > b { flex: none; }
.pf-need-top.is-done > b { color: var(--lm-d-ok); }
.pf-need-bar { flex: 1 1 auto; display: block; block-size: 6px; border-radius: 999px; background: var(--lm-d-divider); overflow: hidden; }
.pf-need-bar > i { display: block; block-size: 100%; border-radius: inherit; background: var(--lm-d-ok); transition: inline-size .2s; }
.pf-need-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 0; padding: 0; list-style: none; }
@media (max-width: 767.98px) { .pf-need-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pf-need-c { display: flex; flex-direction: column; gap: 2px; min-inline-size: 0; padding: 7px 10px; border: 1px solid var(--lm-d-divider); border-radius: 10px; background: var(--lm-d-surface); }
.pf-need-c.is-missing { border: 1px dashed var(--lm-d-accent-line); background: var(--lm-d-warn-soft); }
.pf-need-l { font-size: 12px; color: var(--lm-d-muted); }
.pf-need-v { font-size: 13.5px; font-weight: 700; color: var(--lm-d-ink); overflow-wrap: anywhere; }
.pf-need-v > span { color: var(--lm-d-ok); font-size: 12px; margin-inline-end: 3px; }
.pf-need-miss { font-size: 13px; font-weight: 700; color: var(--lm-d-warn); }
.pf-need-add { align-self: flex-start; padding: 0; border: 0; background: none; font: inherit; font-size: 13px; font-weight: 700; color: var(--lm-d-warn); cursor: pointer; }
.pf-need-add:hover { text-decoration: underline; }
.pf-need-add:focus-visible { outline: 2px solid var(--lm-d-accent); outline-offset: 2px; border-radius: 4px; }
/* in the sheet: a live counter on top, each field boxed and marked, the old value under the field it belongs to */
.pf-need-live { position: sticky; inset-block-start: -16px; z-index: 2; display: flex; flex-direction: column; gap: 6px; padding: 10px 12px;
    border: 1px solid var(--lm-d-divider); border-radius: 12px; background: var(--lm-d-surface); }
.pf-need-live > b { font-size: 13.5px; color: var(--lm-d-ink); }
.pf-need-live.is-done > b { color: var(--lm-d-ok); }
.pf-need-live .p3-btn { align-self: flex-start; }
.pf-need-live p { margin: 0; font-size: 12px; color: var(--lm-d-muted); }
.pf-nf { position: relative; padding: 8px 10px 2px; border: 1px solid var(--lm-d-divider); border-radius: 12px; }
.pf-nf.is-missing { border: 1px dashed var(--lm-d-accent-line); background: var(--lm-d-warn-soft); }
.pf-nf .mkt360-field { margin-block-end: 6px; }
.pf-nf-tag { position: absolute; inset-block-start: 8px; inset-inline-end: 10px; font-size: 12px; font-weight: 700; }
.pf-nf-tag.is-miss { color: var(--lm-d-warn); }
.pf-nf-tag.is-ok { color: var(--lm-d-ok); }
.pf-nf.is-missing .pf-nf-tag.is-ok, .pf-nf:not(.is-missing) .pf-nf-tag.is-miss { display: none; }
.pf-nf-hint { margin: 0 0 6px; font-size: 12px; color: var(--lm-d-muted); }
.pf-nf-hint > b { color: var(--lm-d-ink); }
.pf-need-fold { font-size: 12.5px; color: var(--lm-d-muted); }
.pf-need-fold > summary { cursor: pointer; font-weight: 700; color: var(--lm-d-ink); }
.pf-need-fold > div { margin-block-start: 8px; }
/* The «what's on the customer» rows (TSK-0570, seen on production 18/10): the mockup's 84px tag column is narrower than
   some worded tags («مستندات ناقصة» needs 113px with its dot, en/pt_BR more) — the column is 116px, and a longer tag wraps
   inside it instead of running into the row's text. */
.p3-page .pf-fit .pf-todo-r { grid-template-columns: 116px minmax(0, 1fr) auto auto; }
.p3-page .pf-fit .pf-todo-r > .p3-tag:first-child { max-inline-size: 100%; white-space: normal; text-align: center; }
/* ≤1365px: the header button opens the timeline column as a side sheet (Alpine «tlOpen»). */
.pf-tl-scrim { display: none; }
@media (min-width: 1024px) and (max-width: 1365.98px) {
.pf-fit.is-tl-open .pf-tl-scrim { display: block; position: fixed; inset: 0; background: var(--lm-d-overlay); z-index: 60; }
.pf-fit.is-tl-open .pf-tlc { display: flex; position: fixed; inset-block: 0; inset-inline-end: 0; inline-size: min(420px, 100vw);
    max-block-size: none; block-size: 100dvh; border-radius: 0; z-index: 61; }
}
/* ── CONTACT-RING-1 (Islam 18/10): the person's score as ONE ring out of 100, drawn in the colour of
   their temperature, with the number and the temperature written inside; a click says why. Global on
   purpose: the 360s, the CRM 360 and the contact lists all draw the same ring. Tokens only. ── */
.crm-ring { --ring-c: var(--ho-line-strong); --ring-ink: var(--ho-ink-muted); --ring-v: 0; --ring-w: 6px; --ring-s: 64px;
    position: relative; display: inline-grid; place-items: center; flex: none; inline-size: var(--ring-s); block-size: var(--ring-s);
    margin: 0; padding: 0; border: 0; border-radius: 50%; color: var(--ho-ink); font: inherit; text-decoration: none;
    background: conic-gradient(var(--ring-c) calc(var(--ring-v) * 1%), var(--ho-line) 0); }
.crm-ring::before { content: ""; position: absolute; inset: var(--ring-w); border-radius: 50%; background: var(--ho-surface); }
.crm-ring > span { position: relative; display: flex; flex-direction: column; align-items: center; line-height: 1.1; text-align: center; }
.crm-ring b { font-weight: 800; font-variant-numeric: tabular-nums; }
.crm-ring b small { font-size: 12px; font-weight: 600; color: var(--ho-ink-muted); }
.crm-ring i { font-style: normal; font-weight: 700; font-size: 12px; color: var(--ring-ink); white-space: nowrap; }
button.crm-ring { cursor: pointer; }
button.crm-ring:hover::before { background: var(--ho-surface-sunken); }
.crm-ring:focus-visible { outline: 2px solid var(--ho-focus); outline-offset: 2px; }
.crm-ring.is-hot { --ring-c: var(--ho-danger-line); --ring-ink: var(--ho-danger-ink); }
.crm-ring.is-warm { --ring-c: var(--ho-warning-line); --ring-ink: var(--ho-warning-ink); }
.crm-ring.is-cold { --ring-c: var(--ho-info-line); --ring-ink: var(--ho-info-ink); }
.crm-ring.is-sm { --ring-s: 52px; --ring-w: 5px; }
.crm-ring.is-sm b { font-size: 15px; }
.crm-ring.is-md { --ring-s: 64px; --ring-w: 6px; }
.crm-ring.is-md b { font-size: 19px; }
.crm-ring.is-lg { --ring-s: 104px; --ring-w: 10px; }
.crm-ring.is-lg b { font-size: 28px; }
/* «ليه؟» — the score's own reasons, the temperature's reason, the red chips (one partial: sheet, modal, card) */
.crm-why { display: flex; flex-direction: column; gap: 10px; font-size: 13px; line-height: 1.6; color: var(--ho-ink); }
.crm-why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 12px; }
.crm-why-head { margin: 0 0 4px; font-size: 12px; font-weight: 700; color: var(--ho-ink-muted); }
.crm-why-line { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 8px; padding: 3px 0; border-block-end: 1px dashed var(--ho-line); }
.crm-why-line:last-child { border-block-end: 0; }
.crm-why-pts { flex: none; font-weight: 800; font-variant-numeric: tabular-nums; }
.crm-why-pts.is-up { color: var(--ho-success-ink); }
.crm-why-pts.is-down { color: var(--ho-danger-ink); }
.crm-why-src { font-size: 12px; color: var(--ho-ink-muted); }
.crm-why-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.crm-why-chip { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600;
    background: var(--ho-danger-soft); color: var(--ho-danger-ink); border: 1px solid var(--ho-danger-line); }
/* a list cell: the ring and the score's type beside it */
.crm-ring-cell { display: inline-flex; align-items: center; gap: 8px; }
/* ── TSK-0670 (Eman 26/10, PO 27/10): the Lead 360 in three equal columns — the journey card (where the need is
   captured) as wide as the timeline, the Action Center and the timeline wider than before. Lead 360 only:
   scoped to its own shell attribute, the other 360s keep 1fr 344px 256px. ── */
@media (min-width: 1366px) {

.pf-fit[data-mkt360-compact-header] > .pf-fit-b { grid-template-columns: minmax(0, 1fr) minmax(360px, 1fr) minmax(0, 1fr); }
}

/* the timeline reads larger wherever it is shown — the third column, the side sheet, the stacked phone view */
.pf-fit[data-mkt360-compact-header] .pf-tl-t { font-size: 14px; }

.pf-fit[data-mkt360-compact-header] .pf-tl-m, .pf-fit[data-mkt360-compact-header] .pf-tl-x { font-size: 13px; }

@media (min-width: 1024px) and (max-width: 1365.98px) {

.pf-fit[data-mkt360-compact-header] > .pf-fit-b { grid-template-columns: minmax(0, 1fr) minmax(360px, 1fr); }
}
/* a narrow journey card keeps every number readable: the strip goes 2×2 and the rail shows its numbered
   circles (each label stays for screen readers and as the button's title; the open station's pane is titled) */
.pf-fit[data-mkt360-compact-header] .pf-fit-main { container: pf-lead-main / inline-size; }

@container pf-lead-main (max-width: 470px) {

.pf-fit[data-mkt360-compact-header] .p3-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.pf-fit[data-mkt360-compact-header] .p3-strip-c:nth-child(n) { border-inline-start: 0; border-block-start: 1px solid var(--lm-d-divider); }

.pf-fit[data-mkt360-compact-header] .p3-strip-c:nth-child(-n + 2) { border-block-start: 0; }

.pf-fit[data-mkt360-compact-header] .p3-strip-c:nth-child(2n) { border-inline-start: 1px solid var(--lm-d-divider); }

.pf-fit[data-mkt360-compact-header] .pf-rail b, .pf-fit[data-mkt360-compact-header] .pf-rail small {
    position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.pf-fit[data-mkt360-compact-header] .pf-rail button { padding-block-end: 4px; }

/* a lone last strip cell (the score ring beside four numbers) takes the whole row */
.pf-fit[data-mkt360-compact-header] .p3-strip-c:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* the panes' four-across facts go two-across, and the toolbar wraps instead of hiding tools past the edge */
.pf-fit[data-mkt360-compact-header] .pf-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.pf-fit[data-mkt360-compact-header] .pf-tools { flex-wrap: wrap; overflow-x: visible; }
}
