/* IVUZE platform UI — layers on styles.css (tokens) and site-header.css.
   Calm, high-contrast, mobile-first. Touch targets are >= 44px. */
:root {
  --pf-card: #fffdf8;
  --pf-line: #ddd6c8;
  --pf-line-soft: #ebe6da;
  --pf-lime: #cdfa4c;
  --pf-danger: #b42318;
  --pf-danger-bg: #fdecea;
  --pf-warn: #8a5a00;
  --pf-warn-bg: #fdf3dc;
  --pf-ok: #17694a;
  --pf-ok-bg: #e2f3ea;
  --pf-info: #1f4f7a;
  --pf-info-bg: #e5eef7;
  --pf-radius: 18px;
  --pf-shadow: 0 1px 0 rgba(27,36,32,.03), 0 10px 30px rgba(27,36,32,.06);
}
body.pf { background: var(--bg); color: var(--ink); }
.pf [hidden] { display: none !important; }
.pf textarea { font: inherit; }
.pf-chat > * { flex-shrink: 0; }
.pf-chat > .pf-chat-main { flex: 1 1 0; min-height: 0; }
.pf-filters .pf-seg { border-radius: 14px; }
.pf-wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2rem); }
.pf-main { flex: 1; padding-bottom: 5.5rem; }
.pf h1, .pf h2, .pf h3 { line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; }
.pf h1 { font-size: clamp(1.9rem, 5vw, 3rem); font-weight: 800; }
.pf h2 { font-size: clamp(1.35rem, 3vw, 1.75rem); font-weight: 800; }
.pf h3 { font-size: 1.05rem; font-weight: 700; }
.pf p { max-width: 68ch; }
.pf-muted { color: var(--ink-muted); }
.pf-small { font-size: .86rem; }
.pf-kicker { font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); }
.pf-stack > * + * { margin-top: var(--gap, 1rem); }
.pf-row { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.pf-between { justify-content: space-between; }
.pf-grow { flex: 1 1 auto; min-width: 0; }
.pf-hide { display: none !important; }

/* ---------- Page hero ---------- */
.pf-hero { padding: clamp(1.5rem, 5vw, 3rem) 0 1.25rem; }
.pf .lede { margin: .75rem 0 0; max-width: 62ch; font-size: 1.08rem; color: var(--ink-muted); }
.pf-hero--dark { background: linear-gradient(160deg, #0a4a3f 0%, #06322b 60%, #04241f 100%); color: #fffdf9; border-radius: 0 0 28px 28px; padding-bottom: 2rem; margin-bottom: 1.5rem; }
.pf-hero--dark .pf-kicker { color: var(--pf-lime); }
.pf-hero--dark p.lede { color: rgba(255,253,249,.8); }

/* ---------- Buttons ---------- */
.pf-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 46px; padding: .7rem 1.25rem; border-radius: 999px; border: 1.5px solid transparent; font-weight: 700; font-size: .95rem; cursor: pointer; transition: transform .2s var(--ease), background .2s, box-shadow .2s; text-align: center; line-height: 1.2; }
.pf-btn:active { transform: translateY(1px); }
.pf-btn[disabled] { opacity: .55; cursor: not-allowed; }
.pf-btn--primary { background: var(--brand); color: var(--on-fill, #fff); }
.pf-btn--primary:hover { background: var(--brand-deep); }
.pf-btn--lime { background: var(--pf-lime); color: #0b2118; }
.pf-btn--lime:hover { background: #dcff73; }
.pf-btn--ghost { background: transparent; color: var(--brand); border-color: var(--brand); }
.pf-btn--ghost:hover { background: var(--brand-soft); }
.pf-btn--quiet { background: #efeadf; color: var(--ink); }
.pf-btn--quiet:hover { background: #e6e0d2; }
.pf-btn--danger { background: var(--pf-danger); color: #fff; }
.pf-btn--sm { min-height: 38px; padding: .45rem .95rem; font-size: .86rem; }
.pf-btn--block { width: 100%; }
.pf-link { color: var(--brand); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; background: none; border: 0; cursor: pointer; padding: 0; font-size: inherit; }

/* ---------- Cards ---------- */
.pf-card { background: var(--pf-card); border: 1px solid var(--pf-line); border-radius: var(--pf-radius); padding: 1.25rem; box-shadow: var(--pf-shadow); }
.pf-card--flat { box-shadow: none; }
.pf-card--soft { background: #eef4f1; border-color: #cfe0d9; box-shadow: none; }
.pf-grid { display: grid; gap: 1rem; }
.pf-grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.pf-grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.pf-grid--pros { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 800px) { .pf-grid--pros { grid-template-columns: 1fr; } }
.pf-section { margin-top: 2rem; }
.pf-section > h2 { margin-bottom: .9rem; }

/* ---------- Three pathways ---------- */
.pf-paths { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
.pf-path { display: flex; flex-direction: column; gap: .6rem; padding: 1.4rem; border-radius: 22px; border: 1px solid var(--pf-line); background: var(--pf-card); box-shadow: var(--pf-shadow); transition: transform .25s var(--ease), box-shadow .25s; color: inherit; }
.pf-path:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(27,36,32,.1); }
.pf-path .ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.pf-path h3 { font-size: 1.2rem; }
.pf-path .quote { font-style: italic; color: var(--ink-muted); }
.pf-path .go { margin-top: auto; font-weight: 800; color: var(--brand); display: inline-flex; gap: .4rem; align-items: center; }
.pf-path--now { background: linear-gradient(160deg, #0a4a3f, #06322b); color: #fffdf9; border-color: #06322b; }
.pf-path--now .ico { background: var(--pf-lime); color: #0b2118; }
.pf-path--now .quote { color: rgba(255,253,249,.78); }
.pf-path--now .go { color: var(--pf-lime); }

/* ---------- Forms ---------- */
.pf-field { display: block; }
.pf-field > .lbl { display: block; font-weight: 700; font-size: .9rem; margin-bottom: .35rem; }
.pf-field .hint { display: block; font-size: .82rem; color: var(--ink-muted); margin-top: .3rem; }
.pf-input, .pf-select, .pf-textarea { width: 100%; min-height: 48px; padding: .7rem .9rem; border: 1.5px solid var(--pf-line); border-radius: 14px; background: #fff; color: var(--ink); font-size: 1rem; }
.pf-textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.pf-input:focus, .pf-select:focus, .pf-textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(14,92,79,.18); }
.pf-form { display: grid; gap: 1rem; }
.pf-form .two { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.pf-check { display: flex; gap: .7rem; align-items: flex-start; padding: .8rem .9rem; border: 1.5px solid var(--pf-line); border-radius: 14px; background: #fff; cursor: pointer; }
.pf-check input { margin-top: .2rem; width: 20px; height: 20px; accent-color: var(--brand); flex-shrink: 0; }
.pf-check:has(input:checked) { border-color: var(--brand); background: #f0f7f4; }
.pf-choices { display: grid; gap: .6rem; }
.pf-err { color: var(--pf-danger); font-weight: 600; font-size: .92rem; }
.pf-search { position: relative; }
.pf-search svg { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--ink-muted); pointer-events: none; }
.pf-search .pf-input { padding-left: 2.9rem; min-height: 54px; font-size: 1.05rem; border-radius: 999px; }

/* ---------- Badges ---------- */
.pf-badge { display: inline-flex; align-items: center; gap: .35rem; padding: .22rem .65rem; border-radius: 999px; font-size: .76rem; font-weight: 700; background: #efeadf; color: var(--ink); white-space: nowrap; }
.pf-badge svg { width: 14px; height: 14px; }
.pf-badge--ok { background: var(--pf-ok-bg); color: var(--pf-ok); }
.pf-badge--warn { background: var(--pf-warn-bg); color: var(--pf-warn); }
.pf-badge--danger { background: var(--pf-danger-bg); color: var(--pf-danger); }
.pf-badge--info { background: var(--pf-info-bg); color: var(--pf-info); }
.pf-dot { width: 9px; height: 9px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.pf-dot--hollow { background: transparent; box-shadow: inset 0 0 0 2px currentColor; }
.av-online { background: var(--pf-ok-bg); color: var(--pf-ok); }
.av-available { background: #eaf5ef; color: #2a6b4f; }
.av-busy { background: var(--pf-warn-bg); color: var(--pf-warn); }
.av-away { background: #eeeeea; color: #5b5f5a; }
.av-coming_back { background: var(--pf-info-bg); color: var(--pf-info); }
.av-offline { background: #eeeeea; color: #6b6f6a; }

/* ---------- Avatars ---------- */
.pf-avatar { width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-weight: 800; font-size: 1.1rem; overflow: hidden; object-fit: cover; }
.pf-avatar--lg { width: 88px; height: 88px; font-size: 1.7rem; }
.pf-avatar--sm { width: 40px; height: 40px; font-size: .9rem; }

/* ---------- Professional / facility cards ---------- */
.pf-pro { display: flex; flex-direction: column; gap: .9rem; }
.pf-pro-pic { display: flex; justify-content: center; }
.pf-pro-pic .pf-avatar { width: 84px; height: 84px; font-size: 1.45rem; }
.pf-pro-pic + .pf-pro-head, .pf-pro-pic + .tl-listing { text-align: center; }
.pf-pro-pic + .tl-listing .tl-listing-contact { margin-left: auto; margin-right: auto; }
.pf-pro-head { display: flex; gap: .9rem; align-items: center; }
.pf-pro-head h3 { font-size: 1.1rem; }
.pf-pro-meta { display: flex; flex-wrap: wrap; gap: .4rem; }
.pf-pro-actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: auto; }
.pf-pro-actions .pf-btn { flex: 1 1 auto; }
.pf-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.pf-more { margin-top: .55rem; }
.pf-more > summary { width: auto; cursor: pointer; list-style: none; }
.pf-more > summary::-webkit-details-marker { display: none; }
.pf-more > summary::marker { content: ''; }
.pf-svc-all { margin: .75rem 0 0; padding-left: 1.15rem; display: grid; gap: .28rem; }
.pf-svc-box:has(details[open]) > .pf-chips { display: none; }
.pf-chip { padding: .28rem .7rem; border-radius: 999px; background: #eef4f1; color: var(--brand-deep); font-size: .8rem; font-weight: 600; border: 1px solid #d5e3dd; }
.pf-chip--limited { background: var(--pf-warn-bg); border-color: #efd9a6; color: var(--pf-warn); }
.pf-chip--unavailable { background: #f1eee7; border-color: var(--pf-line); color: var(--ink-faint); text-decoration: line-through; }

/* ---------- Filters ---------- */
.pf-filters { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); margin-top: .9rem; }
.pf-seg { display: inline-flex; padding: .2rem; border-radius: 999px; background: #e9e4d8; gap: .15rem; flex-wrap: wrap; }
.pf-seg button { border: 0; background: none; padding: .5rem .95rem; min-height: 40px; border-radius: 999px; font-weight: 700; font-size: .88rem; color: var(--ink-muted); cursor: pointer; }
.pf-seg button[aria-pressed="true"], .pf-seg button.on { background: var(--brand); color: var(--on-fill, #fff); }

/* ---------- Notices ---------- */
.pf-note { display: flex; gap: .8rem; padding: .95rem 1.05rem; border-radius: 14px; background: var(--pf-info-bg); color: #163a5c; font-size: .93rem; line-height: 1.5; }
.pf-note svg { flex-shrink: 0; margin-top: .1rem; }
.pf-note--warn { background: var(--pf-warn-bg); color: #5c3d00; }
.pf-note--danger { background: var(--pf-danger-bg); color: #7a1a12; border: 1px solid #f2c3bd; }
.pf-note--ok { background: var(--pf-ok-bg); color: #0f4a34; }
.pf-note strong { display: block; margin-bottom: .15rem; }
.pf-empty { text-align: center; padding: 2.5rem 1.25rem; border: 1.5px dashed var(--pf-line); border-radius: var(--pf-radius); background: rgba(255,253,248,.6); }
.pf-empty h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.pf-empty p { margin: 0 auto; color: var(--ink-muted); }
.pf-empty .pf-row { justify-content: center; margin-top: 1.1rem; }
.pf-skel { height: 130px; border-radius: var(--pf-radius); background: linear-gradient(90deg, #ebe6da, #f3efe5, #ebe6da); background-size: 200% 100%; animation: pfsk 1.4s infinite linear; }
@keyframes pfsk { to { background-position: -200% 0; } }

/* ---------- Rating ---------- */
.pf-stars { display: inline-flex; gap: 2px; color: #b98a1a; vertical-align: middle; }
.pf-stars svg { width: 16px; height: 16px; }
.pf-stars .off { color: #d9d3c4; }
.pf-bar { height: 8px; border-radius: 99px; background: #ebe6da; overflow: hidden; }
.pf-bar > i { display: block; height: 100%; background: var(--brand); border-radius: 99px; }
.pf-starpick { display: inline-flex; gap: .15rem; }
.pf-starpick button { background: none; border: 0; cursor: pointer; color: #d9d3c4; padding: .15rem; min-width: 40px; min-height: 40px; }
.pf-starpick button.on { color: #b98a1a; }
.pf-starpick svg { width: 28px; height: 28px; }

/* ---------- Tabs ---------- */
.pf-tabs { display: flex; gap: .3rem; overflow-x: auto; border-bottom: 1px solid var(--pf-line); scrollbar-width: none; margin: 1.25rem 0 1rem; }
.pf-tabs a, .pf-tabs button { flex-shrink: 0; padding: .8rem 1rem; font-weight: 700; font-size: .93rem; color: var(--ink-muted); border: 0; background: none; border-bottom: 3px solid transparent; cursor: pointer; white-space: nowrap; min-height: 46px; }
.pf-tabs [aria-selected="true"], .pf-tabs .on { color: var(--brand); border-bottom-color: var(--brand); }

/* ---------- Chat ---------- */
.pf-timer { display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .85rem; border-radius: 999px; background: var(--pf-ok-bg); color: var(--pf-ok); font-weight: 800; font-variant-numeric: tabular-nums; font-size: .95rem; }
.pf-timer[data-warn="low"] { background: var(--pf-warn-bg); color: var(--pf-warn); }
.pf-timer[data-warn="almost"], .pf-timer[data-warn="expiring"], .pf-timer[data-warn="expired"] { background: var(--pf-danger-bg); color: var(--pf-danger); }
.pf-split { display: grid; gap: 1rem; }
@media (min-width: 900px) { .pf-split { grid-template-columns: 340px 1fr; align-items: start; } }
/* Inside the dashboard the content column is narrower, so split later. */
.pf-dash .pf-split { grid-template-columns: 1fr; }
@media (min-width: 1280px) { .pf-dash .pf-split { grid-template-columns: 340px 1fr; align-items: start; } }
.pf-list { display: grid; gap: .5rem; grid-template-columns: minmax(0, 1fr); }
.pf-split > * { min-width: 0; }
.pf-unread { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: var(--cta); color: #fff; font-size: .75rem; font-weight: 800; display: inline-grid; place-items: center; }

/* ---------- Timeline ---------- */
.pf-timeline { display: grid; gap: 0; counter-reset: t; }
.pf-step { position: relative; display: flex; gap: .9rem; padding-bottom: 1.2rem; }
.pf-step::before { content: ""; position: absolute; left: 15px; top: 32px; bottom: 0; width: 2px; background: var(--pf-line); }
.pf-step:last-child::before { display: none; }
.pf-step .dot { width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; background: #ebe6da; color: var(--ink-muted); font-weight: 800; font-size: .8rem; z-index: 1; }
.pf-step.done .dot { background: var(--brand); color: var(--on-fill, #fff); }
.pf-step.now .dot { background: var(--pf-lime); color: #0b2118; box-shadow: 0 0 0 5px rgba(205,250,76,.35); }
.pf-step.done::before { background: var(--brand); }
.pf-step b { display: block; }
.pf-step .sub { color: var(--ink-muted); font-size: .86rem; }
.pf-hstages { display: flex; gap: .3rem; overflow-x: auto; padding-bottom: .3rem; }
.pf-hstage { flex: 1 0 auto; text-align: center; font-size: .72rem; font-weight: 700; padding: .5rem .6rem; border-radius: 10px; background: #ebe6da; color: var(--ink-muted); min-width: 84px; }
.pf-hstage.done { background: var(--brand); color: var(--on-fill, #fff); }
.pf-hstage.now { background: var(--pf-lime); color: #0b2118; }

/* ---------- Pricing ---------- */
.pf-price { display: flex; flex-direction: column; gap: .4rem; position: relative; }
.pf-price .amt { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; }
.pf-price .amt small { font-size: .9rem; font-weight: 600; color: var(--ink-muted); }
.pf-price .for { font-weight: 700; color: var(--brand); }

/* ---------- Dashboard ---------- */
.pf-dash { display: grid; gap: 1.25rem; padding-top: 1.25rem; grid-template-columns: minmax(0, 1fr); }
.pf-dash > * { min-width: 0; }
@media (min-width: 980px) { .pf-dash { grid-template-columns: 230px minmax(0, 1fr); align-items: start; } }
.pf-side { display: flex; gap: .3rem; overflow-x: auto; scrollbar-width: none; }
.pf-side-me { background: #fff; border: 1px solid var(--pf-line); }
.pf-side-me span { overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 980px) { .pf-side { flex-direction: column; position: sticky; top: 1rem; overflow: visible; } }
.pf-side a { display: flex; align-items: center; gap: .65rem; padding: .7rem .9rem; border-radius: 12px; font-weight: 700; font-size: .93rem; color: var(--ink-muted); white-space: nowrap; min-height: 46px; }
.pf-side a:hover { background: #ebe6da; }
.pf-side a[aria-current="page"] { background: var(--brand); color: var(--on-fill, #fff); }
.pf-side button.pf-theme { display: flex; align-items: center; gap: .65rem; width: 100%; padding: .7rem .9rem; border: 0; border-radius: 12px; background: transparent; font: inherit; font-weight: 700; font-size: .93rem; color: var(--ink-muted); text-align: left; cursor: pointer; min-height: 46px; }
.pf-side button.pf-theme:hover { background: #ebe6da; }
.theme-ico { display: inline-flex; }
.ivz-sun { display: none; }
html[data-theme="dark"] .ivz-moon { display: none; }
html[data-theme="dark"] .ivz-sun { display: inline-flex; }
.pf-side .grp { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); font-weight: 800; padding: .8rem .9rem .2rem; display: none; }
@media (min-width: 980px) { .pf-side .grp { display: block; } }
.pf-stat { padding: 1rem 1.1rem; border-radius: 16px; background: var(--pf-card); border: 1px solid var(--pf-line); }
.pf-stat .n { font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; }
.pf-stat .l { font-size: .82rem; color: var(--ink-muted); font-weight: 600; }
.pf-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.pf-table th { text-align: left; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); padding: .55rem .6rem; border-bottom: 1px solid var(--pf-line); }
.pf-table td { padding: .7rem .6rem; border-bottom: 1px solid var(--pf-line-soft); vertical-align: top; }
.pf-scroll { overflow-x: auto; }

/* ---------- Toast / dialog ---------- */
.pf-toast { position: fixed; left: 50%; bottom: 5.5rem; transform: translateX(-50%); background: #0b2118; color: #fff; padding: .8rem 1.2rem; border-radius: 14px; box-shadow: 0 12px 30px rgba(0,0,0,.25); z-index: 90; max-width: min(92vw, 460px); font-weight: 600; }
.pf-toast--err { background: var(--pf-danger); }
.pf-modal { position: fixed; inset: 0; z-index: 80; background: rgba(4,36,31,.55); display: grid; place-items: center; padding: 1rem; }
.pf-modal > div { background: var(--pf-card); border-radius: 22px; padding: 1.5rem; width: min(100%, 520px); max-height: 90vh; overflow-y: auto; }

/* ---------- Bottom tab bar (mobile) ---------- */
.pf-tabbar { display: none; }
@media (max-width: 760px) {
  .pf-tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: #fffdf8; border-top: 1px solid var(--pf-line); padding-bottom: env(safe-area-inset-bottom); }
  .pf-tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: .55rem .2rem; font-size: .68rem; font-weight: 700; color: var(--ink-muted); min-height: 56px; justify-content: center; text-align: center; }
  .pf-tabbar a[aria-current="page"] { color: var(--brand); }
  .pf-tabbar a.now { color: var(--brand-deep); }
  .pf-tabbar svg { width: 22px; height: 22px; }
}

/* ---------- Footer ---------- */
.pf-foot { border-top: 1px solid var(--pf-line); padding: 1.5rem 0 6rem; color: var(--ink-muted); font-size: .84rem; }
.pf-foot a { text-decoration: underline; text-underline-offset: 3px; }
.pf-foot .links { display: flex; gap: 1.2rem; flex-wrap: wrap; margin-bottom: .8rem; font-weight: 600; }

/* Header additions (site-header.css supplies the base) */
.sh-links a.hl { color: var(--sh-lime, #cdfa4c); font-weight: 700; }
.sh .sh-account { position: relative; }
.sh a.sh-btn--ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.35); box-shadow: none; }
.sh .badge-n { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--pf-lime); color: #0b2118; font-size: .68rem; font-weight: 800; margin-left: .3rem; }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* Keep nav labels on one line. */
.sh-links a { white-space: nowrap; }
@media (max-width: 760px) { .pf-chat { height: calc(100dvh - 13.5rem); min-height: 380px; margin-bottom: 1.25rem; } }
.pf-avatar--logo { background: #fff; border: 1px solid var(--line, #e5e7eb); }
.pf-avatar--logo img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }

/* Online/Offline signal on professional avatars. */
.pf-presence { position: relative; display: inline-flex; flex-shrink: 0; }
.pf-presence::after { content: ''; position: absolute; right: 1px; bottom: 1px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid #fff; background: #9aa3a0; }
.pf-presence.is-online::after { background: var(--pf-ok, #1a8f4c); }
.av-offline { background: #eceeed; color: #5b6461; }

/* Public Ratings page rows. */
.pf-rated { display: flex; align-items: center; gap: .9rem; text-decoration: none; color: inherit; flex-wrap: wrap; }
.pf-rated h3 { font-size: 1rem; }
.pf-rated-score { margin-left: auto; text-align: right; }

/* Google sign-in */
.pf-google { display: flex; justify-content: center; min-height: 44px; }
.pf-or { display: flex; align-items: center; gap: .8rem; margin: 1rem 0; color: var(--pf-muted, #667); font-size: .85rem; }
.pf-or::before, .pf-or::after { content: ''; flex: 1; height: 1px; background: var(--pf-line); }

/* ---------- Chat: familiar messenger look (teal header, tailed bubbles, round composer) ---------- */
.pf-item { min-width: 0; display: flex; gap: .8rem; padding: .85rem; border-radius: 14px; border: 1px solid var(--pf-line); background: var(--pf-card); cursor: pointer; text-align: left; width: 100%; color: inherit; align-items: center; }
.pf-item:hover, .pf-item.on { border-color: var(--brand); background: #f0f7f4; }
.pf-item .t { font-weight: 700; }
.pf-item .s { display: block; color: var(--ink-muted); font-size: .86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-item > .pf-grow { min-width: 0; }
.q-person { cursor: default; align-items: flex-start; }
.q-person--wait { box-shadow: inset 4px 0 0 var(--pf-warn, #9a6700); }
.q-person--help { box-shadow: inset 4px 0 0 var(--pf-ok, #0e7a4b); }
.q-person .pf-badge { flex: none; margin-top: .1rem; }

.pf-chat {
  --wa-me: #0f7a63; --wa-them: #fff; --wa-bg: #efe9dc; --wa-ink: #10201a; --wa-meta: #6b7c76; --wa-tick: #2b8fe0;
  position: relative; display: flex; flex-direction: column; height: clamp(460px, calc(100dvh - 16.5rem), 720px); margin-bottom: 1.75rem; overflow: hidden;
  border: 1px solid var(--pf-line); border-radius: 22px; box-shadow: var(--pf-shadow); background: var(--wa-bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.pf-chat-head { display: flex; align-items: center; gap: .65rem; padding: .55rem .7rem; background: var(--brand); color: var(--on-fill, #fff); }
.pf-back { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: #fff; flex-shrink: 0; }
.pf-back:hover { background: rgba(255,255,255,.14); }
.pf-chat-head .pf-presence::after { border-color: var(--brand); }
.pf-chat-head .pf-presence.is-online::after { background: #4ade80; }
.pf-who { min-width: 0; line-height: 1.25; }
.pf-who-name { display: flex; align-items: center; gap: .3rem; font-size: 1.02rem; font-weight: 700; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-vtick { display: inline-flex; flex-shrink: 0; }
.pf-who-sub { font-size: .78rem; color: rgba(255,255,255,.78); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-who-sub.is-on { color: #b8f7cf; font-weight: 600; }
.pf-badge--head { background: rgba(255,255,255,.16); color: #fff; font-size: .7rem; }
.pf-calls { display: flex; align-items: center; flex-shrink: 0; gap: .15rem; }
.pf-call-flag { font-size: .68rem; font-weight: 700; padding: .16rem .5rem; border-radius: 999px; background: rgba(255,255,255,.16); color: #fff; white-space: nowrap; }
@media (max-width: 720px) { .pf-call-flag { display: none; } }
.pf-call { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: #fff; cursor: pointer; opacity: .82; }
.pf-call:hover, .pf-call:focus-visible { background: rgba(255,255,255,.16); opacity: 1; outline: none; }
.pf-menu { position: relative; flex-shrink: 0; }
.pf-menu summary { list-style: none; cursor: pointer; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: #fff; }
.pf-menu summary::-webkit-details-marker { display: none; }
.pf-menu summary:hover, .pf-menu[open] summary { background: rgba(255,255,255,.16); }
.pf-menu-list { position: absolute; right: 0; top: 44px; z-index: 20; min-width: min(20rem, calc(100vw - 1.25rem)); display: flex; flex-direction: column; padding: .35rem; background: #fff; color: var(--ink); border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.28); }
.pf-menu-who { padding: .65rem .85rem .55rem; border-bottom: 1px solid #eee; }
.pf-menu-who b { display: block; font-size: .95rem; }
.pf-menu-who span { display: block; margin-top: .1rem; font-size: .78rem; color: var(--muted, #5c675f); }
.pf-who-title { display: block; font-weight: 700; }
.pf-menu-list button, .pf-menu-list a { text-align: left; padding: .7rem .85rem; border: 0; background: none; font: inherit; font-size: .93rem; border-radius: 9px; cursor: pointer; color: inherit; text-decoration: none; }
.pf-menu-list button:hover, .pf-menu-list a:hover { background: #f1efe8; }
.pf-menu-list .pf-call-opt { display: flex; align-items: center; gap: .55rem; white-space: nowrap; }
.pf-menu-list .pf-call-opt svg { flex-shrink: 0; }
.pf-soon { margin-left: auto; flex-shrink: 0; padding: .12rem .48rem; border-radius: 999px; background: #eef2ef; color: #52655d; font-size: .68rem; font-weight: 700; white-space: nowrap; }

.pf-chat-main { position: relative; display: flex; }
.pf-chat-body {
  flex: 1; min-width: 0; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; padding: .7rem .75rem 1rem; scroll-behavior: auto;
  background-color: var(--wa-bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140' fill='none' stroke='%230e5c4f' stroke-opacity='.06' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M22 14v12M16 20h12'/%3E%3Ccircle cx='96' cy='30' r='4'/%3E%3Cpath d='M58 72c0-6 9-6 9 0 0 6-9 12-9 12s-9-6-9-12c0-6 9-6 9 0z' transform='translate(0 -10)'/%3E%3Cpath d='M112 104v12M106 110h12'/%3E%3Ccircle cx='30' cy='108' r='3'/%3E%3Cpath d='M78 122l8-8M86 122l-8-8'/%3E%3C/svg%3E");
}
.pf-msg {
  position: relative; max-width: min(80%, 540px); margin-top: .4rem; padding: .4rem .65rem .3rem .7rem; border-radius: 12px; color: var(--wa-ink);
  font-size: .97rem; line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere; box-shadow: 0 1px 1px rgba(16,32,26,.14); animation: pfpop .18s ease-out;
}
.pf-msg.is-cont { margin-top: 2px; }
.pf-msg--them { align-self: flex-start; background: var(--wa-them); }
.pf-msgline { display: flex; align-items: flex-end; gap: .35rem; max-width: 100%; margin-top: .4rem; align-self: flex-start; }
.pf-msgline.is-cont { margin-top: 2px; }
.pf-msgline .pf-msg { margin-top: 0; align-self: auto; }
.pf-msgline .pf-avatar, .pf-msgline .pf-avpad { width: 28px; height: 28px; flex: none; font-size: .7rem; }
.pf-msg--me { align-self: flex-end; background: var(--wa-me); color: #fff; }
.pf-msg--them { border: 1px solid #e3ded1; }
.pf-msg--them.is-first::before { border: 0; }
.pf-msg--me .pf-meta { color: rgba(255,255,255,.78); }
.pf-msg--me .pf-tick { color: rgba(255,255,255,.7); }
.pf-msg--me .pf-tick.is-read { color: #8fd0ff; }
.pf-msg--me[data-pending] .pf-tick { color: rgba(255,255,255,.7); }
.pf-msg--them.is-first { border-top-left-radius: 0; }
.pf-msg--me.is-first { border-top-right-radius: 0; }
.pf-msg--them.is-first::before, .pf-msg--me.is-first::before { content: ''; position: absolute; top: 0; width: 9px; height: 13px; }
.pf-msg--them.is-first::before { left: -8px; background: var(--wa-them); clip-path: polygon(100% 0, 0 0, 100% 100%); }
.pf-msg--me.is-first::before { right: -8px; background: var(--wa-me); clip-path: polygon(0 0, 100% 0, 0 100%); }
.pf-msg::after { content: ''; display: block; clear: both; }
.pf-msg[data-pending] { opacity: .72; }
.pf-msg--emoji { background: transparent; box-shadow: none; padding: .1rem .3rem; font-size: 2.3rem; line-height: 1.15; }
.pf-msg--emoji::before { display: none; }
.pf-msg--emoji.pf-msg--me .pf-meta { color: var(--wa-meta); }
.pf-msg--emoji.pf-msg--me .pf-tick { color: #8a9a94; }
.pf-msg--emoji.pf-msg--me .pf-tick.is-read { color: var(--wa-tick); }
.pf-msg--emoji { border: 0; }
.pf-meta { float: right; display: inline-flex; align-items: center; gap: .22rem; margin: .5rem 0 -.15rem .7rem; font-size: .68rem; line-height: 1; color: var(--wa-meta); user-select: none; }
.pf-tick { display: inline-flex; align-items: center; color: #8a9a94; }
.pf-tick.is-read { color: var(--wa-tick); }
.pf-tick svg { display: block; }
.pf-day { align-self: center; margin: .8rem 0 .3rem; }
.pf-day span { display: inline-block; padding: .22rem .7rem; border-radius: 8px; background: rgba(255,255,255,.92); color: #566a63; font-size: .72rem; font-weight: 600; box-shadow: 0 1px 1px rgba(16,32,26,.12); }
.pf-newdiv { align-self: stretch; text-align: center; margin: .8rem 0 .3rem; }
.pf-newdiv span { display: inline-block; padding: .22rem .8rem; border-radius: 999px; background: #e0f4e8; color: var(--brand); font-size: .74rem; font-weight: 700; }
@keyframes pfpop { from { opacity: 0; transform: translateY(6px) scale(.97); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .pf-msg { animation: none; } }

.pf-tobottom { position: absolute; right: .9rem; bottom: .8rem; z-index: 3; width: 42px; height: 42px; border: 0; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #4d635b; box-shadow: 0 3px 10px rgba(0,0,0,.28); cursor: pointer; }
.pf-tobottom #tbn { position: absolute; top: -7px; right: -3px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: #1fbf6b; color: #fff; font-size: .72rem; font-weight: 700; display: grid; place-items: center; }
.pf-tobottom #tbn:empty { display: none; }

.pf-chat-foot { padding: .5rem .6rem calc(.5rem + env(safe-area-inset-bottom, 0px)); background: #f1eee6; }
.pf-endrow { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .7rem; padding: .15rem .4rem .4rem; }
.pf-endrow button { border: 0; background: none; color: var(--brand); font: inherit; font-weight: 700; cursor: pointer; padding: 0; text-decoration: underline; text-underline-offset: 3px; }
.pf-endrow .pf-small { font-size: .78rem; }
.pf-ended { margin: .15rem .2rem .35rem; }
.pf-ended .pf-row { margin-top: .7rem; }
.pf-quick { display: flex; gap: .4rem; overflow-x: auto; padding: .1rem .1rem .5rem; scrollbar-width: none; }
.pf-quick::-webkit-scrollbar { display: none; }
.pf-q { flex: 0 0 auto; max-width: 16rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: .42rem .85rem; border: 1px solid #cfdcd6; border-radius: 999px; background: #fff; color: var(--brand-deep); font: inherit; font-size: .84rem; font-weight: 600; cursor: pointer; }
.pf-q:hover { background: #eaf5f0; border-color: var(--brand); }
.pf-compose { display: flex; gap: .5rem; align-items: flex-end; }
.pf-compose-box { flex: 1; min-width: 0; display: flex; background: #fff; border-radius: 24px; padding: 0 1rem; box-shadow: 0 1px 1px rgba(16,32,26,.1); }
.pf-compose textarea.pf-textarea { flex: 1; min-height: 46px; max-height: 140px; padding: .72rem 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; resize: none; font-size: 1rem; line-height: 1.35; }
.pf-compose textarea.pf-textarea:focus { border: 0; box-shadow: none; outline: none; }
.pf-compose-box:focus-within { box-shadow: 0 0 0 2px rgba(14,92,79,.35); }
.pf-send { flex: 0 0 auto; width: 46px; height: 46px; border: 0; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: var(--on-fill, #fff); cursor: pointer; transition: transform .12s, background .12s; }
.pf-send:hover { background: var(--brand-deep); }
.pf-send:active { transform: scale(.92); }
.pf-send:disabled { background: #b4c4be; cursor: not-allowed; }
.pf-rules { margin: .4rem .3rem 0; text-align: center; font-size: .72rem; color: #7b8b85; }

/* Conversation list */
.pf-list--chat { gap: 0; }
.pf-item--chat { align-items: center; gap: .8rem; padding: .75rem .6rem; border: 0; border-bottom: 1px solid var(--pf-line-soft); border-radius: 0; background: transparent; }
.pf-item--chat:hover { background: #f4f1e8; border-color: var(--pf-line-soft); }
.pf-item--chat.on { background: #e6f2ec; border-color: var(--pf-line-soft); }
.pf-item--chat .pf-avatar { width: 50px; height: 50px; font-size: 1.1rem; }
.pf-item--chat .pf-r1, .pf-item--chat .pf-r2 { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.pf-item--chat .pf-r1 .t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 1rem; }
.pf-when { flex-shrink: 0; font-size: .72rem; color: var(--ink-muted); }
.pf-when.is-unread { color: #17a05a; font-weight: 700; }
.pf-item--chat .s { display: flex; align-items: center; gap: .3rem; min-width: 0; flex: 1; font-size: .88rem; }
.pf-item--chat .pf-tick { flex-shrink: 0; }
.pf-item--chat .pf-unread { flex-shrink: 0; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: #1fbf6b; color: #fff; font-size: .74rem; font-weight: 700; display: inline-grid; place-items: center; }
.pf-r3 { display: flex; gap: .3rem; margin-top: .15rem; }
.pf-mini { display: inline-block; padding: .05rem .5rem; border-radius: 999px; background: #eef2ef; color: #52655d; font-size: .68rem; font-weight: 600; }
.pf-mini--danger { background: var(--pf-danger-bg); color: var(--pf-danger); }
@media (max-width: 760px) {
  .pf-chat { height: calc(100dvh - 13.5rem); min-height: 380px; margin-bottom: 1.25rem; border-radius: 16px; }
  .pf-msg { max-width: 86%; }
}
@media (max-width: 560px) { .pf-badge--head { display: none; } }

/* Notifications: compact, X-style timeline */
.pf-notif-head { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-bottom: .8rem; }
.pf-notif-head h1 { font-size: clamp(1.5rem, 3.5vw, 2rem); }
.pf-notif-sec { max-width: 680px; margin-top: 1.35rem; }
.pf-notif-sec:first-of-type { margin-top: 0; }
.pf-notif-sec h2 { display: flex; align-items: baseline; gap: .45rem; margin: 0 0 .5rem; font-size: 1.05rem; }
.pf-notif-count { font-size: .8rem; font-weight: 600; color: var(--ink-muted); }
.pf-notif-empty { margin: 0; padding: .75rem .95rem; border: 1px dashed var(--pf-line); border-radius: 16px; color: var(--ink-muted); font-size: .9rem; background: var(--pf-card); }
.pf-notif-list { background: var(--pf-card); border: 1px solid var(--pf-line); border-radius: 16px; overflow: hidden; max-width: 680px; }
.pf-notif { position: relative; display: flex; align-items: flex-start; gap: .75rem; padding: .65rem .9rem; color: inherit; border-bottom: 1px solid var(--pf-line-soft); transition: background .15s; }
.pf-notif:last-child { border-bottom: 0; }
.pf-notif:hover { background: #f4f1e8; }
.pf-notif.is-unread { background: #f0f7f4; box-shadow: inset 3px 0 0 var(--brand); }
.pf-notif.is-unread:hover { background: #e6f2ec; }
.pf-notif-ico { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft, #d5e7e1); color: var(--brand); margin-top: 1px; }
.pf-notif-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .1rem; }
.pf-notif-top { display: flex; align-items: baseline; justify-content: space-between; gap: .6rem; }
.pf-notif-title { font-weight: 700; font-size: .93rem; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.pf-notif.is-unread .pf-notif-title { color: var(--ink); }
.pf-notif-time { flex: none; font-size: .78rem; color: var(--ink-muted); }
.pf-notif-body { font-size: .86rem; line-height: 1.35; color: var(--ink-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pf-notif-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); align-self: center; }

/* ---------- Dashboard chat pages: the chat stays put; messages scroll inside it ---------- */
.pf-wrap--chat { max-width: 1680px; }
main:has(.pf-wrap--chat) { padding-bottom: 1.25rem; }
.pf-dash--chat { --chat-stick: 5.25rem; --chat-h: calc(100dvh - var(--chat-stick) - 1rem); }
.pf-dash--chat #mc,
.pf-dash--chat #inner > .pf-chat {
  position: sticky; top: var(--chat-stick); z-index: 4; align-self: start;
}
.pf-dash--chat .pf-split--chat .pf-chat,
.pf-dash--chat #inner > .pf-chat { height: var(--chat-h); max-height: var(--chat-h); margin-bottom: 0; }
.pf-dash--chat #inner > div:first-child { margin-bottom: .55rem !important; }
.pf-dash--chat #inner > div:first-child h1 { font-size: 1.4rem !important; }
.pf-dash--chat #inner > div:first-child p { font-size: .86rem; margin-top: .1rem !important; }
body.pf:has(.pf-dash--chat) footer.ivz-foot { display: none; }
@media (max-width: 760px) {
  .pf-dash--chat { --chat-stick: 4.5rem; --chat-h: calc(100dvh - var(--chat-stick) - 4.75rem); }
}
.pf-alt { margin: .45rem .55rem 0; padding: .6rem .7rem .65rem; border-radius: 14px; background: #fff; border: 1px solid #e3ded1; }
.pf-alt-top { display: flex; align-items: flex-start; gap: .5rem; }
.pf-alt-top p { margin: 0; flex: 1; font-size: .84rem; line-height: 1.35; }
.pf-alt-x { border: 0; background: none; color: #66756f; font-size: 1.15rem; line-height: 1; cursor: pointer; padding: 0 .15rem; }
.pf-alt-row { display: grid; gap: .35rem; margin-top: .45rem; }
.pf-alt-card { display: flex; align-items: center; gap: .55rem; padding: .4rem .55rem; border-radius: 12px; background: #f3faf6; color: inherit; text-decoration: none; }
.pf-alt-card b { display: block; font-size: .9rem; }
.pf-alt-card span span { display: block; font-size: .75rem; color: var(--ink-muted); font-weight: 600; }
.pf-alt-go { margin-left: auto; flex: none; font-size: .78rem; font-weight: 800; color: var(--brand); }
@media (min-width: 980px) {
  /* Sidebar becomes a slim icon rail (labels stay available as tooltips). */
  .pf-dash--chat { grid-template-columns: 64px minmax(0, 1fr); gap: 1rem; }
  .pf-dash--chat .pf-side { align-items: center; }
  .pf-dash--chat .pf-side a, .pf-dash--chat .pf-side .pf-theme { position: relative; justify-content: center; width: 48px; padding: .7rem 0; }
  .pf-dash--chat .pf-side a > span:not(.pf-unread), .pf-dash--chat .pf-side .pf-theme > span:not(.theme-ico) { display: none; }
  .pf-dash--chat .pf-side .grp { display: block; width: 26px; height: 1px; padding: 0; margin: .5rem 0; background: var(--pf-line); font-size: 0; }
  .pf-dash--chat .pf-side .pf-unread { position: absolute; top: 3px; right: 0; min-width: 17px; height: 17px; padding: 0 4px; font-size: .64rem; }
}
@media (min-width: 1100px) {
  /* List on the left, conversation on the right, both as tall as the screen. */
  .pf-dash .pf-split.pf-split--chat { grid-template-columns: clamp(290px, 27%, 380px) minmax(0, 1fr); align-items: start; gap: 1rem; }
  .pf-split--chat .pf-listcol { display: flex; flex-direction: column; height: var(--chat-h); min-height: 0; }
  .pf-split--chat #cl-list { flex: 1; min-height: 0; overflow-y: auto; align-content: start; padding-right: .2rem; }
  .pf-split--chat #cl-detail > .pf-empty { height: var(--chat-h); display: grid; place-content: center; }
}
@media (min-width: 1100px) { .pf-split--chat .pf-msg { max-width: min(76%, 640px); } }
.pf-split--chat #cl-filters .pf-seg { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; border-radius: 999px; }
.pf-split--chat #cl-filters .pf-seg::-webkit-scrollbar { display: none; }
.pf-split--chat #cl-filters .pf-seg button { white-space: nowrap; flex: 0 0 auto; }

/* Chat time ended: popup + inline strip */
.pf-topup { text-align: center; padding: .4rem .2rem .2rem; }
.pf-topup-ico { display: inline-grid; place-items: center; width: 64px; height: 64px; margin-bottom: .6rem; border-radius: 50%; background: var(--pf-warn-bg); color: var(--pf-warn); }
.pf-topup h2 { margin-bottom: .4rem; }
.pf-topup p { color: var(--ink-muted); margin: 0 auto 1.1rem; max-width: 34ch; line-height: 1.5; }
.pf-topup-actions { display: flex; flex-direction: column; gap: .5rem; }
.pf-topup-actions .pf-btn { width: 100%; }
.pf-sysnote { align-self: center; display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; justify-content: center; margin: .9rem 0 .2rem; padding: .45rem .5rem .45rem .9rem; border-radius: 999px; background: var(--pf-warn-bg); color: var(--pf-warn); font-size: .82rem; font-weight: 700; box-shadow: 0 1px 1px rgba(16,32,26,.12); }
.pf-sysnote > span { display: inline-flex; align-items: center; gap: .35rem; }
.pf-sysnote button { border: 0; border-radius: 999px; padding: .4rem .9rem; background: var(--brand); color: var(--on-fill, #fff); font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; }
.pf-sysnote button:hover { background: var(--brand-deep); }

/* ======================================================================
   IVUZE Healthcare Talent (Hire a Professional)
   Same tokens as the rest of the platform; calm, medical, mobile-first.
   ====================================================================== */
.tl-hero { padding-bottom: 2.5rem; }
.tl-hero-grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .tl-hero-grid { grid-template-columns: 1.35fr 1fr; } }
.tl-hero-cta { margin-top: 1.4rem; gap: .6rem; }
@media (max-width: 560px) {
  .tl-hero-cta { flex-direction: column; align-items: stretch; }
  .tl-hero-cta > .pf-btn, .tl-hero-cta > .tl-hero-link { width: 100%; justify-content: center; }
}
.tl-btn-light { background: rgba(255,253,249,.1); color: #fffdf9; border-color: rgba(255,253,249,.45); }
.tl-btn-light:hover { background: rgba(255,253,249,.18); }
.tl-hero-link { color: #fffdf9; font-weight: 700; display: inline-flex; gap: .35rem; align-items: center; padding: .6rem .4rem; min-height: 46px; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(255,253,249,.4); }
.tl-meet { display: none; }
@media (min-width: 900px) {
  .tl-meet { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .6rem; }
  .tl-meet-card { display: flex; flex-direction: column; gap: .35rem; padding: 1.2rem; border-radius: 20px; background: rgba(255,253,249,.07); border: 1px solid rgba(255,253,249,.16); }
  .tl-meet-card span:last-child { font-size: .85rem; color: rgba(255,253,249,.72); }
  .tl-meet-ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--pf-lime); color: #0b2118; }
  .tl-meet-line { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1.5px dashed rgba(205,250,76,.6); color: var(--pf-lime); }
}
.tl-available { margin-top: 1.25rem; }
.tl-available h2 { font-size: 1.15rem; }
.tl-available-list { display: flex; flex-wrap: wrap; gap: .45rem .7rem; list-style: none; margin: .7rem 0 1rem; padding: 0; }
.tl-available-list button { display: inline-flex; align-items: baseline; gap: .35rem; padding: .45rem .8rem; border-radius: 999px; background: #eef4f1; border: 1px solid #d5e3dd; font: inherit; font-weight: 600; color: inherit; cursor: pointer; }
.tl-available-list button:hover { border-color: var(--brand); }
.tl-available-list button[aria-pressed="true"] { background: var(--brand); color: var(--on-fill, #fff); border-color: var(--brand); }
.tl-available-list button b { font-size: 1.05rem; }
.tl-available #results { margin-top: .25rem; }
.tl-group-results { margin: .2rem 0 1.1rem; }
.tl-group-title { margin: 0 0 .7rem; font-size: 1.05rem; }
.tl-jobs-lead { margin-top: 1.75rem; }
.tl-paths { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); margin-top: 2rem; }
.tl-path { display: flex; flex-direction: column; gap: .6rem; padding: 1.4rem; border-radius: 22px; background: var(--pf-card); border: 1px solid var(--pf-line); box-shadow: var(--pf-shadow); }
.tl-path h2 { font-size: 1.35rem; }
.tl-path .pf-row { margin-top: auto; padding-top: .4rem; }
.tl-path-k { font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); }
.tl-quick { display: flex; gap: .4rem; overflow-x: auto; padding: .7rem 0 .1rem; scrollbar-width: none; }
.tl-quick::-webkit-scrollbar { display: none; }
.tl-qf { border: 1px solid transparent; cursor: pointer; white-space: nowrap; min-height: 38px; font: inherit; font-size: .86rem; font-weight: 600; }
.tl-qf[aria-pressed="true"] { background: var(--brand); color: var(--on-fill, #fff); }
.tl-card { display: flex; flex-direction: column; gap: .75rem; }
.tl-vac { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: .85rem 1rem; align-items: start; }
.tl-interest { margin: 0; font-size: .78rem; line-height: 1.35; font-weight: 650; color: var(--ink-muted); }
.tl-interest b { display: block; font-size: 1.65rem; line-height: 1; color: var(--brand); margin-bottom: .3rem; }
.tl-card-head { display: flex; gap: .85rem; align-items: flex-start; }
.tl-card-head h3 { font-size: 1.08rem; }
.tl-card-head h3 a:hover { text-decoration: underline; }
.tl-sub { font-weight: 600; font-size: .92rem; }
.tl-card .pf-pro-actions { margin-top: auto; }
.tl-listing { display: grid; gap: .28rem; }
.tl-listing .who { margin: 0; font-size: 1.12rem; font-weight: 800; line-height: 1.3; }
.tl-listing .who a { color: inherit; }
.tl-listing .who a:hover { text-decoration: underline; }
.tl-listing p { margin: 0; }
.tl-listing-contact { font-weight: 800; margin-top: .35rem; color: inherit; }
.tl-card .tl-listing-contact { display: inline-flex; align-items: center; width: fit-content; margin-top: .7rem; padding: .55rem .95rem; border-radius: 999px; background: var(--pf-lime); color: #0b2118; text-decoration: none; border: 0; font: inherit; cursor: pointer; }
.tl-card .tl-listing-contact:hover { background: #b6ee2a; }
.tl-contact-more { display: grid; gap: .55rem; margin-top: .15rem; }
.tl-contact-more[hidden] { display: none; }
.tl-pick { display: inline-flex; align-items: center; gap: .45rem; font-weight: 650; cursor: pointer; }
.tl-pick input { width: 18px; height: 18px; accent-color: var(--brand); flex-shrink: 0; }
.tl-hire-row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.tl-page-head .tl-hire-row { margin-top: .9rem; }
.tl-page-head .tl-listing .who { font-size: clamp(1.45rem, 4vw, 2.05rem); }
.tl-choice-list { display: grid; gap: .35rem; }
.tl-orglogo { border-radius: 14px; }
.tl-status { display: inline-flex; align-items: center; gap: .4rem; padding: .25rem .7rem; border-radius: 999px; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.tl-status--open { background: var(--pf-ok-bg); color: var(--pf-ok); }
.tl-status--opps { background: var(--pf-warn-bg); color: var(--pf-warn); }
.tl-status--not { background: #eeeeea; color: #5b5f5a; }
.tl-why { font-size: .84rem; color: var(--ink-muted); background: #f3f0e8; border-radius: 10px; padding: .45rem .65rem; margin: 0; }
.tl-match { list-style: none; display: flex; flex-wrap: wrap; gap: .3rem .8rem; font-size: .82rem; margin: 0; padding: 0; }
.tl-match li { display: inline-flex; align-items: center; gap: .3rem; }
.tl-m { width: 18px; height: 18px; border-radius: 50%; display: inline-grid; place-items: center; font-size: .7rem; font-weight: 800; flex-shrink: 0; }
.tl-m--yes { background: var(--pf-ok-bg); color: var(--pf-ok); }
.tl-m--part { background: var(--pf-warn-bg); color: var(--pf-warn); }
.tl-m--no { background: #eeeeea; color: #6b6f6a; }
.tl-save { margin-left: auto; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--pf-line); background: #fff; color: var(--ink-muted); display: grid; place-items: center; cursor: pointer; flex-shrink: 0; }
.tl-save.on { color: var(--brand); border-color: var(--brand); }
.tl-save.on svg { fill: currentColor; }
.tl-how { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.tl-how h3 { display: flex; gap: .5rem; align-items: center; }
.tl-steps { margin: .8rem 0 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: .55rem; }
.tl-steps li { counter-increment: s; display: flex; gap: .7rem; align-items: center; }
.tl-steps li::before { content: counter(s); width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-weight: 800; font-size: .8rem; }
.tl-trust { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.tl-trust-item { display: flex; gap: .8rem; padding: 1rem; border-radius: 16px; background: #eef4f1; }
.tl-trust-item p { margin-top: .2rem; }
.tl-trust-ico { width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0; display: grid; place-items: center; background: #fff; color: var(--brand); }
.tl-toolbar { margin-top: .9rem; gap: .6rem; }
.tl-sort { min-height: 40px; padding: .4rem .7rem; width: auto; border-radius: 999px; font-size: .88rem; }
.tl-inline-check { padding: .55rem .8rem; }
.tl-searchlayout { display: grid; gap: 1.5rem; }
.tl-sidefilters { display: none; }
.tl-pro-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 720px) {
  .tl-pro-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .tl-pros-layout { grid-template-columns: 280px minmax(0, 1fr); align-items: start; }
  .tl-pros-layout .tl-sidefilters { display: block; position: sticky; top: 1rem; padding: 1.1rem; background: var(--pf-card); border: 1px solid var(--pf-line); border-radius: var(--pf-radius); max-height: calc(100vh - 2rem); overflow-y: auto; }
  .tl-pros-layout .tl-sidefilters .two { grid-template-columns: 1fr; }
  .tl-pros-layout .tl-filter-btn { display: none; }
}
/* Bottom sheet on phones */
@media (max-width: 760px) {
  .pf-modal.tl-sheet { place-items: end stretch; padding: 0; }
  .pf-modal.tl-sheet > div { width: 100%; max-height: 88vh; border-radius: 22px 22px 0 0; padding-bottom: calc(1.25rem + env(safe-area-inset-bottom)); animation: tl-up .22s var(--ease); }
}
@keyframes tl-up { from { transform: translateY(30px); opacity: .6; } to { transform: none; opacity: 1; } }
.tl-sheet-foot { position: sticky; bottom: -1.5rem; display: flex; gap: .6rem; justify-content: flex-end; background: var(--pf-card); padding: .9rem 0 .2rem; margin-top: 1rem; border-top: 1px solid var(--pf-line-soft); }
.tl-sheet-foot .pf-btn { flex: 1 1 auto; }
@media (min-width: 761px) { .tl-sheet-foot .pf-btn { flex: 0 0 auto; } }
.pf-modal.tl-sheet--wide > div { width: min(100%, 760px); }
@media (max-width: 760px) { .pf-modal.tl-sheet--wide > div { width: 100%; } }
.tl-announce { display: grid; gap: .85rem; }
.tl-vac-sec { border: 1px solid var(--pf-line); border-radius: 16px; padding: 1rem 1.05rem 1.1rem; background: color-mix(in srgb, var(--pf-card) 92%, var(--brand) 8%); }
.tl-vac-sec > header { display: flex; gap: .7rem; align-items: flex-start; margin-bottom: .85rem; }
.tl-vac-n { width: 1.65rem; height: 1.65rem; border-radius: 999px; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: .78rem; font-weight: 700; flex: none; }
.tl-vac-sec h3 { font-size: 1rem; margin: 0; line-height: 1.3; }
.tl-vac-sec header p { margin: .15rem 0 0; color: var(--ink-muted); font-size: .82rem; }
.tl-opt { margin-left: .35rem; font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-muted); }
.tl-choice { display: grid; gap: .6rem; }
@media (min-width: 680px) { .tl-choice { grid-template-columns: 1fr 1fr; } }
.tl-choice label { display: flex; gap: .65rem; align-items: flex-start; border: 1.5px solid var(--pf-line); border-radius: 14px; padding: .8rem .85rem; cursor: pointer; background: var(--pf-card); }
.tl-choice label:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 16%, transparent); }
.tl-choice input { margin-top: .2rem; accent-color: var(--brand); }
.tl-choice b { display: block; }
.tl-choice .pf-small { display: block; margin-top: .15rem; }
.tl-signoff { text-align: left; }
.tl-sign-kicker { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: .35rem; }
.tl-sign-name { font-family: Georgia, "Iowan Old Style", Palatino, serif; font-size: 1.45rem; line-height: 1.15; }
.tl-sign-title { margin-top: .15rem; font-weight: 600; }
/* Profile & vacancy pages */
.tl-page-head { display: flex; gap: 1.1rem; align-items: flex-start; flex-wrap: wrap; }
.tl-page-head .pf-avatar--lg { width: 96px; height: 96px; }
.tl-layout { display: grid; gap: 1.25rem; margin-top: 1.25rem; }
@media (min-width: 960px) { .tl-layout { grid-template-columns: minmax(0, 1fr) 330px; align-items: start; } .tl-aside { position: sticky; top: 1rem; } }
.tl-section { padding: 1.25rem; }
.tl-section > h2 { font-size: 1.15rem; margin-bottom: .8rem; }
.tl-entry { padding: .8rem 0; border-top: 1px solid var(--pf-line-soft); }
.tl-entry:first-of-type { border-top: 0; padding-top: 0; }
.tl-entry b { display: block; }
.tl-entry .when { font-size: .84rem; color: var(--ink-muted); }
.tl-pre { white-space: pre-line; }
.tl-locked { display: flex; gap: .7rem; align-items: center; color: var(--ink-muted); font-size: .9rem; padding: .8rem; border-radius: 12px; background: #f3f0e8; }
.tl-facts { display: grid; gap: .55rem; font-size: .92rem; }
.tl-facts div { display: flex; gap: .6rem; align-items: flex-start; }
.tl-facts svg { color: var(--brand); flex-shrink: 0; margin-top: .15rem; }
.tl-sticky-cta { display: none; }
@media (max-width: 760px) {
  .tl-sticky-cta { display: flex; gap: .5rem; position: fixed; left: 0; right: 0; bottom: calc(56px + env(safe-area-inset-bottom)); z-index: 55; padding: .6rem 1rem; background: rgba(255,253,248,.97); border-top: 1px solid var(--pf-line); box-shadow: 0 -6px 20px rgba(27,36,32,.06); }
  .tl-sticky-cta .pf-btn { flex: 1 1 0; }
  .tl-sticky-cta .tl-ibtn { flex: 0 0 44px; }
  .tl-has-sticky { padding-bottom: 4.5rem; }
}
/* Dashboards */
.tl-metrics { display: grid; gap: .7rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }
.tl-metrics a.pf-stat { color: inherit; transition: border-color .2s; }
.tl-metrics a.pf-stat:hover { border-color: var(--brand); }
.tl-meter { height: 10px; border-radius: 999px; background: #e6e0d2; overflow: hidden; }
.tl-meter > span { display: block; height: 100%; background: var(--brand); border-radius: inherit; }
.tl-stage { display: grid; grid-template-columns: minmax(6.2rem, 9rem) minmax(0, 1fr) 1.6rem; gap: .45rem; align-items: center; }
.tl-stage b { text-align: right; }
@media (max-width: 420px) {
  .tl-stage { grid-template-columns: minmax(0, 1fr) 1.6rem; }
  .tl-stage .tl-meter { grid-column: 1 / -1; }
}
.tl-tiles { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.tl-tile { display: flex; align-items: center; gap: .7rem; padding: .9rem 1rem; border-radius: 14px; background: var(--pf-card); border: 1px solid var(--pf-line); font-weight: 700; color: inherit; min-height: 56px; }
.tl-tile:hover { border-color: var(--brand); background: #f0f7f4; }
.tl-tile svg { color: var(--brand); flex-shrink: 0; }
.tl-tile .pf-unread { margin-left: auto; }
.tl-hire-nav { padding-top: .85rem; }
.tl-subnav { display: flex; gap: .3rem; overflow-x: auto; scrollbar-width: none; margin: 0 0 1.1rem; padding-bottom: .1rem; border-bottom: 1px solid var(--pf-line); }
.tl-subnav::-webkit-scrollbar { display: none; }
.tl-subnav a { flex-shrink: 0; padding: .7rem .9rem; font-weight: 700; font-size: .9rem; color: var(--ink-muted); border-bottom: 3px solid transparent; min-height: 44px; display: inline-flex; align-items: center; gap: .35rem; }
.tl-subnav a[aria-current="page"] { color: var(--brand); border-bottom-color: var(--brand); }
.tl-doc { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .8rem; align-items: center; padding: .85rem 0; border-top: 1px solid var(--pf-line-soft); }
.tl-doc:first-child { border-top: 0; }
.tl-doc-ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: #eef4f1; color: var(--brand); }
.tl-doc .t { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-doc .s { font-size: .82rem; color: var(--ink-muted); }
@media (max-width: 560px) { .tl-doc { grid-template-columns: auto minmax(0, 1fr); } .tl-doc > .pf-row { grid-column: 1 / -1; } }
.tl-request { border: 1.5px solid var(--brand); background: #f3f9f6; }
.tl-consent { font-size: .9rem; padding: .8rem .9rem; border-radius: 12px; background: var(--pf-info-bg); color: #163a5c; }
.tl-log { display: grid; gap: 0; }
.tl-log > div { display: flex; gap: .8rem; padding: .75rem 0; border-top: 1px solid var(--pf-line-soft); font-size: .9rem; }
.tl-log > div:first-child { border-top: 0; }
.tl-log .ico { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; background: #eef4f1; color: var(--brand); }
.tl-log .ico.warn { background: var(--pf-warn-bg); color: var(--pf-warn); }
.tl-log .ico.danger { background: var(--pf-danger-bg); color: var(--pf-danger); }
/* Pipeline (kanban) */
.tl-board { display: flex; gap: .7rem; overflow-x: auto; padding-bottom: .6rem; scroll-snap-type: x proximity; }
.tl-col { flex: 0 0 min(250px, 78vw); background: #efeadf; border-radius: 16px; padding: .6rem; min-height: 180px; scroll-snap-align: start; display: flex; flex-direction: column; gap: .5rem; }
.tl-col.drop { outline: 2px dashed var(--brand); outline-offset: -2px; background: #e6f0eb; }
.tl-col-h { display: flex; justify-content: space-between; align-items: flex-start; gap: .4rem; font-size: .8rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-muted); padding: .2rem .3rem; }
.tl-col-h > span:first-child { min-width: 0; line-height: 1.25; overflow-wrap: anywhere; }
.tl-kcard { background: var(--pf-card); border: 1px solid var(--pf-line); border-radius: 12px; padding: .7rem; cursor: grab; display: grid; gap: .4rem; }
.tl-kcard:active { cursor: grabbing; }
.tl-kcard[aria-grabbed="true"] { opacity: .55; }
.tl-kcard .pf-select { min-height: 38px; padding: .35rem .6rem; font-size: .84rem; border-radius: 10px; }
.tl-kcard a { font-weight: 700; }
/* Chat thread (recruitment) */
.tl-thread { display: flex; flex-direction: column; gap: .55rem; padding: 1rem; background: #efeae2; border-radius: 16px; max-height: 60vh; overflow-y: auto; }
.tl-bubble { max-width: min(82%, 560px); padding: .6rem .8rem; border-radius: 14px; background: #fff; box-shadow: 0 1px 1px rgba(0,0,0,.06); white-space: pre-wrap; overflow-wrap: anywhere; font-size: .95rem; }
.tl-bubble.me { align-self: flex-end; background: var(--brand); color: var(--on-fill, #fff); }
.tl-bubble .by { display: block; font-size: .74rem; font-weight: 700; opacity: .75; margin-bottom: .15rem; }
.tl-bubble .at { display: block; font-size: .7rem; opacity: .7; margin-top: .25rem; text-align: right; }
.tl-sys { align-self: center; max-width: 92%; text-align: center; font-size: .82rem; background: #fdf6dc; color: #5c4a10; padding: .45rem .8rem; border-radius: 10px; }
.tl-sys.tl-sys--doc { background: #e5eef7; color: #163a5c; }
.tl-sys.tl-sys--contact { background: var(--pf-ok-bg); color: var(--pf-ok); white-space: pre-line; }
.tl-inbox { display: grid; gap: 1rem; }
@media (min-width: 1100px) { .tl-inbox { grid-template-columns: 340px minmax(0, 1fr); align-items: start; } }
.tl-cv { max-width: 820px; margin: 1.5rem auto; background: #fff; padding: clamp(1.25rem, 4vw, 3rem); border-radius: 12px; box-shadow: var(--pf-shadow); color: #111; }
.tl-cv h1 { font-size: 2rem; }
.tl-cv h2 { font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); border-bottom: 1.5px solid #ddd; padding-bottom: .3rem; margin: 1.4rem 0 .6rem; }
@media print {
  body.pf { background: #fff; }
  .sh, .pf-tabbar, .ivz-footer, footer, .tl-noprint { display: none !important; }
  .tl-cv { box-shadow: none; margin: 0; padding: 0; max-width: none; }
  .pf-main { padding: 0; }
}
.tl-filled .pf-input, .tl-filled .pf-select, .tl-filled .pf-textarea, .pf-check.tl-filled { border-color: var(--pf-ok); background: #f3faf6; }
.tl-choice { display: grid; gap: .4rem; }
.tl-choice button { min-height: 44px; padding: .55rem .9rem; border-radius: 12px; border: 1.5px solid var(--pf-line); background: #fff; font: inherit; font-weight: 700; font-size: .92rem; text-align: left; cursor: pointer; color: var(--ink); }
.tl-choice button:hover { border-color: var(--brand); }
.tl-choice button[aria-pressed="true"] { border-color: var(--brand); background: #f0f7f4; color: var(--brand); box-shadow: inset 4px 0 0 var(--brand); }
.tl-ibtn { width: 44px; height: 44px; padding: 0; }

.tl-col--empty { flex-basis: 132px; }
.tl-col--empty .tl-col-h { flex-direction: column; align-items: flex-start; gap: .25rem; font-size: .68rem; letter-spacing: .02em; }

/* Dark theme surfaces that were painted with a fixed light color. */
html[data-theme="dark"] {
  --pf-card: #17241f;
  --pf-line: #31463d;
  --pf-line-soft: #263830;
  --pf-danger: #ffb4ab;
  --pf-danger-bg: #3f201c;
  --pf-warn: #f3cc7a;
  --pf-warn-bg: #3a2c12;
  --pf-ok: #8ed9b8;
  --pf-ok-bg: #143028;
  --pf-info: #b9d7f2;
  --pf-info-bg: #162838;
  --pf-shadow: 0 1px 0 rgba(0,0,0,.25), 0 12px 32px rgba(0,0,0,.35);
}
html[data-theme="dark"] .pf-btn--quiet { background: #24362f; color: var(--ink); }
html[data-theme="dark"] .pf-btn--quiet:hover { background: #2d433b; }
html[data-theme="dark"] .pf-card--soft,
html[data-theme="dark"] .pf-chip,
html[data-theme="dark"] .tl-trust-item,
html[data-theme="dark"] .tl-available-list button,
html[data-theme="dark"] .tl-doc-ico,
html[data-theme="dark"] .tl-log .ico { background: #1c332c; border-color: #345248; }
html[data-theme="dark"] .pf-input,
html[data-theme="dark"] .pf-select,
html[data-theme="dark"] .pf-textarea,
html[data-theme="dark"] .pf-check,
html[data-theme="dark"] .pf-side-me,
html[data-theme="dark"] .pf-menu-list,
html[data-theme="dark"] .pf-compose-box,
html[data-theme="dark"] .pf-q,
html[data-theme="dark"] .pf-alt,
html[data-theme="dark"] .pf-tobottom,
html[data-theme="dark"] .tl-save,
html[data-theme="dark"] .tl-choice button,
html[data-theme="dark"] .tl-bubble,
html[data-theme="dark"] .tl-trust-ico,
html[data-theme="dark"] .tl-cv,
html[data-theme="dark"] .pf-tabbar { background: #121c19; color: var(--ink); }
html[data-theme="dark"] .pf-check:has(input:checked),
html[data-theme="dark"] .pf-item:hover,
html[data-theme="dark"] .pf-item.on,
html[data-theme="dark"] .tl-choice button[aria-pressed="true"],
html[data-theme="dark"] .tl-tile:hover,
html[data-theme="dark"] .tl-request,
html[data-theme="dark"] .tl-filled .pf-input,
html[data-theme="dark"] .tl-filled .pf-select,
html[data-theme="dark"] .tl-filled .pf-textarea,
html[data-theme="dark"] .pf-check.tl-filled { background: #1a332c; }
html[data-theme="dark"] .pf-badge,
html[data-theme="dark"] .pf-seg,
html[data-theme="dark"] .pf-step .dot,
html[data-theme="dark"] .pf-hstage,
html[data-theme="dark"] .pf-bar,
html[data-theme="dark"] .tl-meter,
html[data-theme="dark"] .tl-col,
html[data-theme="dark"] .tl-why,
html[data-theme="dark"] .tl-locked { background: #24362f; color: var(--ink-muted); }
html[data-theme="dark"] .pf-side a:hover,
html[data-theme="dark"] .pf-side button.pf-theme:hover,
html[data-theme="dark"] .pf-item--chat:hover,
html[data-theme="dark"] .pf-notif:hover,
html[data-theme="dark"] .pf-menu-list button:hover,
html[data-theme="dark"] .pf-menu-list a:hover { background: #24362f; }
html[data-theme="dark"] .pf-item--chat.on,
html[data-theme="dark"] .pf-notif.is-unread { background: #1a332c; }
html[data-theme="dark"] .pf-note { color: var(--pf-info); }
html[data-theme="dark"] .pf-note--warn { color: var(--pf-warn); }
html[data-theme="dark"] .pf-note--danger { color: var(--pf-danger); border-color: #6a332c; }
html[data-theme="dark"] .pf-note--ok { color: var(--pf-ok); }
html[data-theme="dark"] .tl-consent,
html[data-theme="dark"] .tl-sys.tl-sys--doc { color: var(--pf-info); }
html[data-theme="dark"] .tl-sys { background: #3a2c12; color: var(--pf-warn); }
html[data-theme="dark"] .av-available { background: var(--pf-ok-bg); color: var(--pf-ok); }
html[data-theme="dark"] .av-away,
html[data-theme="dark"] .av-offline,
html[data-theme="dark"] .tl-status--not,
html[data-theme="dark"] .tl-m--no,
html[data-theme="dark"] .pf-chip--unavailable,
html[data-theme="dark"] .pf-mini { background: #24302c; color: #c5d0cb; }
html[data-theme="dark"] .pf-empty { background: rgba(18, 28, 25, .6); }
html[data-theme="dark"] .pf-skel { background: linear-gradient(90deg, #1c2c26, #24362f, #1c2c26); }
html[data-theme="dark"] .pf-stars .off,
html[data-theme="dark"] .pf-starpick button { color: #4d5e56; }
html[data-theme="dark"] .pf-presence::after { border-color: var(--pf-card); }
html[data-theme="dark"] .pf-chat {
  --wa-me: #1a6b5c; --wa-them: #1e2e28; --wa-bg: #101916; --wa-ink: #f3f7f4; --wa-meta: #9aada5;
}
html[data-theme="dark"] .pf-chat-head,
html[data-theme="dark"] .pf-back,
html[data-theme="dark"] .pf-who-name,
html[data-theme="dark"] .pf-call,
html[data-theme="dark"] .pf-menu summary,
html[data-theme="dark"] .pf-badge--head { color: var(--on-fill); }
html[data-theme="dark"] .pf-soon { background: #24362f; color: #c5d0cb; }
html[data-theme="dark"] .pf-who-sub { color: rgba(16, 33, 23, .72); }
html[data-theme="dark"] .pf-who-sub.is-on { color: #0b2118; }
html[data-theme="dark"] .pf-chat-foot,
html[data-theme="dark"] .tl-thread { background: #18241f; }
html[data-theme="dark"] .pf-msg--them { border-color: #2c4038; }
html[data-theme="dark"] .pf-day span { background: #24362f; color: var(--ink-muted); }
html[data-theme="dark"] .pf-menu-who { border-bottom-color: var(--pf-line); }
html[data-theme="dark"] .tl-col.drop { background: #1a332c; }
html[data-theme="dark"] .tl-sticky-cta { background: rgba(16, 25, 22, .96); }
html[data-theme="dark"] .tl-cv h2 { border-bottom-color: var(--pf-line); }
html[data-theme="dark"] .pf-q { border-color: #345248; color: var(--brand); }
html[data-theme="dark"] .pf-q:hover { background: #1a332c; }
