/* Shared pf- components (P3 §3). Palettes set custom properties on the component root; a variant stylesheet,
   loaded last, can restyle through them. No text-transform other than none; no font-variant-caps other than
   normal (unit-scanned). Reduced-motion block at the end (P3 §7.7). */
.pf-pal-default,.pf-pal-dark{
  --pf-bg:#071527;--pf-card:#0F2A47;--pf-card2:#123153;--pf-fg:#F3F7FC;--pf-dim:#9DB5D1;--pf-line:rgba(126,168,214,.32);
  --pf-act:#9BC0E8;--pf-act-fg:#071527;--pf-you:#FFF55B;--pf-good:#9BC0E8;--pf-warn:#FFF55B;--pf-bad:#FF9C9C;
  --pf-pill:#0F2A47;--pf-pill-fg:#F3F7FC;--pf-pill-line:#79B4F5;
}
.pf-pal-dark{--pf-bg:#0b0f14;--pf-card:#141a22;--pf-card2:#1b2330;--pf-pill:#141a22}
.pf-pal-paper{
  --pf-bg:#fbf8f1;--pf-card:#ffffff;--pf-card2:#f3efe5;--pf-fg:#1a1a1a;--pf-dim:#4a4a4a;--pf-line:rgba(0,0,0,.25);
  --pf-act:#1a1a1a;--pf-act-fg:#ffffff;--pf-you:#8a5a00;--pf-good:#1d6b4f;--pf-warn:#7a5a00;--pf-bad:#a3262a;
  --pf-pill:#1a1a1a;--pf-pill-fg:#ffffff;--pf-pill-line:#1a1a1a;
}

.pf-sr{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.pf-note{color:var(--pf-dim, #9DB5D1);font-size:.92rem}
.pf-hint{color:var(--pf-dim, #9DB5D1);font-size:.9rem;margin:4px 0}
.pf-dim{color:var(--pf-dim, #9DB5D1)}
.pf-error{color:var(--pf-bad, #FF9C9C);font-weight:600}
.pf-warn-text{color:var(--pf-warn, #FFF55B);font-weight:600}
.pf-field-err{color:var(--pf-bad, #FF9C9C);font-weight:600;margin:4px 0 0}
.pf-link{color:var(--pf-act, #9BC0E8)}

/* Buttons and inputs */
.pf-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:9px 18px;border-radius:999px;border:1px solid var(--pf-line, rgba(126,168,214,.32));background:transparent;color:var(--pf-fg, #F3F7FC);font-weight:600;text-align:center;line-height:1.25}
.pf-btn:hover{border-color:var(--pf-act, #9BC0E8)}
.pf-btn--primary{background:var(--pf-act, #9BC0E8);border-color:var(--pf-act, #9BC0E8);color:var(--pf-act-fg, #071527)}
.pf-btn--small{min-height:36px;padding:6px 12px;font-size:.92rem}
.pf-btn--link{min-height:44px;border:0;padding:6px 2px;background:none;color:var(--pf-act, #9BC0E8);text-decoration:underline;text-underline-offset:3px;border-radius:4px;font-weight:600}
.pf-btn:disabled{opacity:.55;cursor:not-allowed}
.pf-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px;margin:14px 0 6px}
.pf-links{list-style:none;margin:6px 0;padding:0;display:flex;flex-direction:column;gap:2px}
.pf-label{display:block;font-weight:600;margin:0 0 6px}
.pf-input{width:100%;max-width:520px;min-height:44px;padding:9px 12px;border-radius:10px;border:1px solid var(--pf-line, rgba(126,168,214,.32));background:var(--pf-card, #0F2A47);color:var(--pf-fg, #F3F7FC)}
.pf-input--short{max-width:12ch}
.pf-input[aria-invalid="true"]{border-color:var(--pf-bad, #FF9C9C)}
.pf-select{min-height:44px;padding:8px 10px;border-radius:10px;border:1px solid var(--pf-line, rgba(126,168,214,.32));background:var(--pf-card, #0F2A47);color:var(--pf-fg, #F3F7FC);max-width:100%}
.pf-field{margin:12px 0}
.pf-radio,.pf-check{display:flex;align-items:center;gap:10px;min-height:44px}
.pf-radio input,.pf-check input{width:24px;height:24px;margin:0;flex:none;accent-color:var(--pf-act, #9BC0E8)}
fieldset.pf-area-modes,fieldset.pf-area-size,fieldset.pf-area-from,fieldset.pf-area-shape,fieldset.pf-preset-group{border:1px solid var(--pf-line, rgba(126,168,214,.32));border-radius:12px;padding:10px 14px 12px;margin:12px 0}
legend{font-weight:600;padding:0 6px}
.pf-area-modes:focus{outline:3px solid var(--pf-you, #FFF55B);outline-offset:2px}

/* Cards */
.pf-card{background:var(--pf-card, #0F2A47);border:1px solid var(--pf-line, rgba(126,168,214,.32));border-radius:14px;padding:18px 20px;margin:14px 0;color:var(--pf-fg, #F3F7FC)}
.pf-card-title{margin-top:0}
.pf-card-name{font-size:1.15rem;font-weight:700;margin:0 0 2px}
.pf-regname{color:var(--pf-dim);font-size:.92rem}
.pf-facts{margin:10px 0;display:grid;gap:6px}
.pf-fact{display:grid;grid-template-columns:minmax(120px,190px) 1fr;gap:4px 14px}
.pf-fact dt{color:var(--pf-dim)}
.pf-fact dd{margin:0}
.pf-fact-line{display:block}
@media (max-width:520px){.pf-fact{grid-template-columns:1fr}.pf-fact dt{font-size:.88rem}}
/* "Is this you?" (shared/company-card.js), in the user's redesign (9 Nov 2026) and the paid views' tokens
   (app-paid-simple.css --sv-*): the question as a large title, one card (name and "Checked just now" across the top,
   then ruled rows with the label left and the value right), and the buttons under the card. */
.pf-cc{max-width:520px;margin:0 auto;color:var(--sv-fg, #F1F5FB)}
.pf-cc .pf-cc-title{margin:0 0 18px;font-family:Inter,system-ui,sans-serif;font-size:clamp(2rem,4.2vw,2.6rem);font-weight:800;letter-spacing:-.025em;line-height:1.1;color:var(--sv-fg, #F1F5FB)}
.pf-cc .pf-cc-title:focus{outline:none}
.pf-cc .pf-cc-box{margin:0;padding:18px 20px 6px;border:1px solid var(--sv-line, rgba(173,196,227,.13));border-radius:18px;background:var(--sv-card, #111D33);color:var(--sv-fg, #F1F5FB);box-shadow:0 24px 48px -24px rgba(0,0,0,.65)}
.pf-cc-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px 14px;padding:0 0 14px;border-bottom:1px solid var(--sv-line, rgba(173,196,227,.13))}
.pf-cc .pf-cc-name{margin:0;font-size:1.25rem;font-weight:700;letter-spacing:-.01em;line-height:1.3}
.pf-cc-checked{display:inline-flex;align-items:center;gap:7px;margin:0;font-size:.8rem;font-weight:600;white-space:nowrap}
.pf-cc-tick{flex:none;width:16px;height:16px}
.pf-cc-tick circle{fill:#FFF55B}
.pf-cc-tick path{fill:none;stroke:#0B1424;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.pf-cc .pf-regname{margin:10px 0 0;color:var(--sv-dim, #A9B6C9);font-size:.88rem}
.pf-cc .pf-cc-facts{display:block;margin:0}
.pf-cc .pf-fact{display:flex;align-items:baseline;justify-content:space-between;gap:4px 20px;padding:12px 0;border-bottom:1px solid var(--sv-line, rgba(173,196,227,.13))}
.pf-cc .pf-fact:last-child{border-bottom:0}
.pf-cc .pf-fact dt{flex:none;color:var(--sv-dim, #A9B6C9);font-size:.9rem}
.pf-cc .pf-fact dd{min-width:0;text-align:right;font-size:.92rem;font-weight:600;overflow-wrap:anywhere}
.pf-cc-num{color:inherit;text-decoration:none}
.pf-cc-num:hover{text-decoration:underline;text-underline-offset:3px}
.pf-cc-num:focus-visible{outline:2px solid var(--sv-fg, #F1F5FB);outline-offset:2px;border-radius:3px}
.pf-cc .pf-cc-source{margin:12px 2px 0;color:var(--sv-dim, #A9B6C9);font-size:.85rem}
.pf-cc>.pf-error{margin:12px 2px 0}
.pf-cc .pf-cc-actions{gap:10px 12px;margin:18px 0 0}
.pf-cc .pf-cc-actions .pf-btn{min-height:46px;padding:0 22px;font-weight:600}
.pf-cc .pf-cc-actions .pf-btn--primary{border:0;background:#FFF55B;color:#0B1424;font-weight:700}
.pf-cc .pf-cc-actions .pf-btn--primary:hover{filter:brightness(.96)}
.pf-cc .pf-cc-actions .pf-btn:not(.pf-btn--primary,.pf-btn--link){border-color:var(--sv-line-strong, rgba(173,196,227,.26));color:var(--sv-fg, #F1F5FB)}
.pf-cc .pf-cc-actions .pf-btn:not(.pf-btn--primary,.pf-btn--link):hover{border-color:var(--sv-fg, #F1F5FB)}
.pf-cc .pf-cc-actions .pf-cc-rename{padding:0 10px;color:var(--sv-fg, #F1F5FB);font-size:.92rem}
.pf-cc .pf-cc-actions .pf-btn:focus-visible{outline:2px solid var(--sv-fg, #F1F5FB);outline-offset:2px}
.pf-cc .pf-cc-actions>p{flex:1 1 100%;margin:0}
/* reCAPTCHA's badge after "Yes, that's us" (company-card.js showHumanCheck): the invisible check draws its
   "protected by reCAPTCHA" badge inline, a 256×60 frame. */
.pf-cc .pf-cc-check{margin:18px 0 0}
.pf-cc .pf-cc-check[hidden]{display:none}
.pf-cc .pf-cc-check-box{min-height:60px}
/* A phone: Yes and No side by side, "Change the name" under them, held at the bottom of the screen while the card is
   on it (sticky inside the card's section, so it settles under the card once you scroll to the end). */
@media (max-width:640px){
  .pf-cc .pf-cc-title{margin-bottom:14px;font-size:2rem}
  .pf-cc .pf-cc-box{padding:16px 16px 4px;border-radius:16px}
  .pf-cc .pf-fact{gap:4px 14px;padding:11px 0}
  .pf-cc .pf-cc-actions{position:sticky;bottom:0;z-index:5;display:grid;grid-template-columns:1fr 1fr;gap:8px 10px;
    margin:0 -4px;padding:14px 4px calc(12px + env(safe-area-inset-bottom,0px));
    background:linear-gradient(to bottom,transparent,var(--sv-bg, #0B1424) 14px)}
  .pf-cc .pf-cc-actions .pf-btn{width:100%;min-height:48px;padding-left:10px;padding-right:10px}
  .pf-cc .pf-cc-actions .pf-cc-rename{grid-column:1/-1;min-height:40px}
  .pf-cc .pf-cc-actions>p{grid-column:1/-1}
}
html[data-pf-theme="light"] .pf-cc .pf-cc-box{box-shadow:0 1px 2px rgba(11,32,57,.04),0 18px 36px -24px rgba(11,32,57,.25)}
html[data-pf-theme="light"] .pf-cc-tick circle{fill:#2F588C}
html[data-pf-theme="light"] .pf-cc-tick path{stroke:#FFFFFF}

/* Combobox */
.pf-cs{margin:10px 0}
.pf-cs-box{position:relative;max-width:620px}
/* The suggestions: a solid panel above whatever follows (the landing's headings never show through), at most 380px
   tall, scrolling inside with a slim scrollbar. */
.pf-cs-list{position:relative;z-index:50;list-style:none;margin:6px 0 0;padding:4px;border-radius:12px;border:1px solid var(--pf-line, rgba(126,168,214,.32));background:var(--pf-card2, #123153);max-height:380px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--pf-line, rgba(126,168,214,.32)) transparent}
.pf-cs-list::-webkit-scrollbar{width:8px}
.pf-cs-list::-webkit-scrollbar-thumb{border-radius:8px;background:var(--pf-line, rgba(126,168,214,.32))}
/* A row (company-search.js): the name, its role pill and its figures on line 1, what it does, where and what it
   files on line 2, cut short with the number last (the full line is the row's title). */
.pf-cs-opt{min-height:44px;padding:7px 10px;border-radius:8px;cursor:pointer;display:flex;flex-wrap:wrap;align-items:center;gap:2px 12px}
.pf-cs-opt[aria-selected="true"]{background:var(--pf-act, #9BC0E8);color:var(--pf-act-fg, #071527)}
.pf-cs-main{flex:1 1 12em;min-width:0;display:flex;flex-wrap:wrap;align-items:center;gap:2px 8px}
.pf-cs-name{font-weight:700}
.pf-cs-stats{flex:0 0 auto;margin-left:auto;display:flex;align-items:center;gap:6px}
.pf-cs-stat{padding:1px 8px;border-radius:999px;border:1px solid var(--pf-line, rgba(126,168,214,.32));font-size:.8rem;font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}
.pf-cs-meta{flex:1 0 100%;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.82rem;color:var(--pf-dim, #9DB5D1)}
.pf-cs-opt[aria-selected="true"] :is(.pf-cs-meta,.pf-cs-as){color:inherit}
.pf-cs-opt[aria-selected="true"] :is(.pf-cs-stat,.pf-cs-pill){border-color:currentColor}
.pf-cs-head{margin:8px 0 0;font-size:.88rem;color:var(--pf-dim, #9DB5D1)}
.pf-cs-msg:empty{display:none}
/* A company's part in its group (search-lines.js roleLabel): a tinted pill, the colour telling the kinds apart and
   the words saying them, so the text keeps the row's own colour in both themes. */
.pf-cs-pill{display:inline-block;padding:0 8px;border-radius:999px;border:1px solid transparent;font-size:.74rem;font-weight:700;line-height:1.6;white-space:nowrap}
.pf-cs-pill--trading{background:rgba(155,192,232,.16);border-color:rgba(155,192,232,.55)}
.pf-cs-pill--top{background:rgba(121,180,245,.18);border-color:rgba(121,180,245,.6)}
.pf-cs-pill--holding,.pf-cs-pill--subsidiary{background:rgba(157,181,209,.14);border-color:rgba(157,181,209,.45)}
.pf-cs-pill--property{background:rgba(196,160,255,.16);border-color:rgba(196,160,255,.55)}
.pf-cs-pill--dormant{background:transparent;border-color:var(--pf-line, rgba(126,168,214,.32));color:var(--pf-dim, #9DB5D1)}
.pf-cs-pill--whole{background:#FFF55B;border-color:#FFF55B;color:#0B1424}
.pf-cs-opt[aria-selected="true"] .pf-cs-pill--dormant{color:inherit}
/* The whole group (search-groups.js wholeGroupCard): first, behind a yellow rule and a faint yellow tint. Its line 2
   is a sentence, so it wraps. */
.pf-cs-opt--whole{margin:0 0 4px;padding:10px 10px 10px 12px;border-left:4px solid #FFF55B;background:rgba(255,245,91,.07)}
.pf-cs-opt--whole .pf-cs-name{font-size:1.02rem}
.pf-cs-opt--whole .pf-cs-meta{white-space:normal}
/* "Show 3 other group entities": the group's folded companies. */
.pf-cs-opt--unfold{min-height:40px}
.pf-cs-opt--unfold .pf-cs-name{font-size:.86rem;font-weight:600;color:var(--pf-act, #9BC0E8)}
.pf-cs-opt--unfold .pf-cs-name::before{content:"+ "}
.pf-cs-opt--unfold[aria-selected="true"] .pf-cs-name{color:inherit}
/* A trading-name result (company-search.js tradingNames): the name customers know it by, and how it was found. */
.pf-cs-as{flex:1 0 100%;font-size:.86rem;font-weight:600;color:var(--pf-good, #9BC0E8)}
/* On its own line under the live search's link. */
.pf-cs-trading:not([hidden]){display:block}
/* A group's companies sit indented behind a rule under their heading, so they read as one family. With the whole
   group above, the heading is the small "Or select a specific legal entity". */
.pf-cs-group{list-style:none;margin:4px 0;padding:0}
.pf-cs-group-head{display:block;padding:8px 10px 4px;font-size:.84rem;font-weight:600;color:var(--pf-fg, #F3F7FC)}
.pf-cs-group--whole>.pf-cs-group-head{padding-top:6px;font-size:.7rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--pf-dim, #9DB5D1)}
.pf-cs-group-list{list-style:none;margin:0 0 0 10px;padding:0 0 0 6px;border-left:2px solid var(--pf-line, rgba(126,168,214,.32))}
/* A phone: the name and its pill get the whole first line, so a long name wraps rather than squeezing; line 2 is one
   run of text that wraps, the figures first ("£18m rev • 245 staff • Licensed restaurants · London"). */
@media (max-width:639px){
  .pf-cs-opt{display:block}
  .pf-cs-main{margin:0 0 2px}
  .pf-cs-stats,.pf-cs-stat{display:inline;margin:0;padding:0;border:0;font-size:.82rem}
  .pf-cs-stat~.pf-cs-stat::before,.pf-cs-stats~.pf-cs-meta::before{content:"•";margin:0 6px;font-weight:400}
  .pf-cs-meta{display:inline;white-space:normal}
  .pf-cs-as{display:block}
}
/* Phone search mode (search-mode.js): the search fills the part of the screen the keyboard leaves (--pf-cs-vh and
   --pf-cs-top follow the visual viewport). The whole layer scrolls, the box and Cancel pinned at its top, so every
   pixel under the box goes to the suggestions, and the "Can't see your company?" links follow the last one. The page
   behind doesn't scroll. The extra class in each selector outweighs the landing's rules for the box (app-home.css). */
.pf-cs-bar{display:flex;align-items:center;gap:6px}
.pf-cs-bar>:first-child{flex:1 1 auto;min-width:0}
.pf-cs-cancel{flex:0 0 auto;padding:6px 4px;text-decoration:none}
html.pf-cs-locked,html.pf-cs-locked body{overflow:hidden;overscroll-behavior:none}
.pf-cs.pf-cs--searching{position:fixed;left:0;right:0;top:var(--pf-cs-top, 0);z-index:1000;height:var(--pf-cs-vh, 100dvh);margin:0;
  padding:0 12px 12px;overflow-y:auto;overscroll-behavior:contain;scroll-padding-top:72px;background:var(--sc-bg, var(--pf-bg, #071527))}
.pf-cs.pf-cs--searching .pf-cs-box{max-width:none}
/* Full screen, the box is the screen's only content and its placeholder says what to type: the label stays for screen
   readers only, or it would sit above the box under the phone's status bar. */
.pf-cs.pf-cs--searching>.pf-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.pf-cs.pf-cs--searching .pf-cs-bar{position:sticky;top:0;z-index:2;padding:max(10px, env(safe-area-inset-top)) 0 8px;background:var(--sc-bg, var(--pf-bg, #071527))}
.pf-cs.pf-cs--searching .pf-input{min-height:48px;padding-top:10px;padding-bottom:10px;padding-left:16px;border-radius:12px;font-size:1rem}
.pf-cs.pf-cs--searching .pf-cs-list{position:static;max-height:none;overflow:visible;margin:0;padding:2px 0;border:0;background:none;box-shadow:none}
.pf-cs.pf-cs--searching :is(.pf-cs-head,.pf-cs-live,.pf-cs-trading,.pf-cs-msg){margin:6px 0 0 4px;text-align:left}

/* The search's filter menu (search-filter.js): a funnel button inside the input, and a panel that opens under it in
   the list's place. A dot on the funnel says a filter is on. */
.pf-cs-field{position:relative}
.pf-cs-box--filter .pf-input{padding-right:56px}
.pf-sf-btn{position:absolute;top:50%;right:5px;transform:translateY(-50%);display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;padding:0;border:0;border-radius:999px;background:transparent;color:var(--pf-dim, #9DB5D1);cursor:pointer}
.pf-sf-btn:hover,.pf-sf-btn[aria-expanded="true"]{color:var(--pf-fg, #F3F7FC);background:rgba(126,168,214,.12)}
.pf-sf-btn:focus-visible{outline:2px solid var(--pf-act, #9BC0E8);outline-offset:1px}
.pf-sf-btn.is-on{color:var(--pf-act, #9BC0E8)}
.pf-sf-dot{position:absolute;top:9px;right:9px;width:8px;height:8px;border-radius:50%;background:var(--pf-act, #9BC0E8);box-shadow:0 0 0 2px var(--pf-card, #0F2A47);display:none}
.pf-sf-btn.is-on .pf-sf-dot{display:block}
.pf-sf-panel{position:absolute;top:calc(100% + 8px);right:0;z-index:31;width:min(360px,100%);padding:14px 16px 12px;border-radius:14px;border:1px solid var(--pf-line, rgba(126,168,214,.32));background:var(--pf-card2, #123153);color:var(--pf-fg, #F3F7FC);box-shadow:0 14px 34px rgba(0,0,0,.45)}
.pf-sf-set{border:0;margin:0;padding:0;min-width:0}
.pf-sf-set + .pf-sf-set{margin-top:12px}
.pf-sf-actions{display:flex;align-items:center;gap:14px;flex:none}
.pf-sf-clear{min-height:36px;padding:4px 2px;font-size:.92rem}
.pf-sf-legend{padding:0;margin:0 0 6px;font-size:.88rem;font-weight:600;color:var(--pf-dim, #9DB5D1)}
.pf-sf-opt{display:grid;grid-template-columns:20px minmax(0,1fr);column-gap:10px;align-items:center;min-height:44px;padding:6px 8px;margin:0 -8px;border-radius:8px;cursor:pointer}
.pf-sf-opt:hover{background:rgba(126,168,214,.10)}
.pf-sf-opt input{grid-row:1 / span 2;width:18px;height:18px;margin:0;accent-color:var(--pf-act, #9BC0E8)}
.pf-sf-label{font-weight:600}
.pf-sf-hint{grid-column:2;font-size:.82rem;color:var(--pf-dim, #9DB5D1)}
.pf-sf-note{margin:8px 0 0;font-size:.8rem;color:var(--pf-dim, #9DB5D1)}
.pf-sf-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:10px 0 0;padding:10px 0 0;border-top:1px solid var(--pf-line, rgba(126,168,214,.32))}
.pf-sf-summary{margin:0;font-size:.82rem;color:var(--pf-dim, #9DB5D1)}
.pf-anchor-line{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;margin:6px 0 12px}
.pf-anchor-name{font-weight:700}

/* Rows */
.pf-tablewrap{position:relative;overflow-x:auto;max-width:100%;border:1px solid var(--pf-line, rgba(126,168,214,.32));border-radius:12px;margin:10px 0}
.pf-tablewrap:focus-visible{outline:3px solid var(--pf-you, #FFF55B)}
/* Tables scroll inside .pf-tablewrap, so cells wrap at word boundaries only (the page's overflow-wrap:anywhere
   would otherwise squeeze a label column to one letter wide). */
.pf-rows{width:100%;border-collapse:collapse;min-width:560px;overflow-wrap:normal}
.pf-rows th[scope="row"]{min-width:10em}
.pf-rows th,.pf-rows td{padding:10px 12px;border-bottom:1px solid var(--pf-line, rgba(126,168,214,.2));text-align:left;vertical-align:top}
.pf-rows th{font-size:.88rem;color:var(--pf-dim, #9DB5D1);font-weight:600}
.pf-rows .pf-num{text-align:right;white-space:nowrap}
.pf-rows tr:last-child td{border-bottom:0}
.pf-co{min-width:200px}
.pf-co-name{display:block;font-weight:600}
.pf-co-meta,.pf-co-why,.pf-co-flag,.pf-co-state{display:block;font-size:.88rem;color:var(--pf-dim, #9DB5D1)}
/* The name customers know it by, under a registered name they might not (list-rows.js, search-lines.js). */
.pf-co-as{display:block;font-size:.88rem;font-weight:600;color:var(--pf-good, #9BC0E8)}
.pf-co-state{color:var(--pf-warn, #FFF55B)}
.pf-basis{display:block;font-size:.8rem;color:var(--pf-dim, #9DB5D1)}
.pf-gap{color:var(--pf-dim, #9DB5D1)}
.pf-you{display:inline-block;padding:0 8px;border-radius:999px;background:var(--pf-you, #FFF55B);color:#071527;font-size:.8rem;font-weight:700}
.pf-me td{background:rgba(255,245,91,.06)}
.pf-row-on td{background:rgba(155,192,232,.14)}
/* A removed row on its way out (list-rows.js leave): tinted as it slides away, and never in the way of a tap. */
.pf-row-leaving{pointer-events:none}
.pf-row-leaving td{background:color-mix(in srgb, var(--pf-bad, #FF9C9C) 16%, transparent)}
.pf-row-actions{white-space:nowrap}
/* Minimal (pre-analysis) list: no figure columns, so drop the wide min-width and push the action to the right. */
.pf-rows--minimal{min-width:0}
.pf-rows--minimal td.pf-row-actions{text-align:right;width:1%}
/* A caller's text columns (list-rows.js isTextCol): words, left-aligned. On a narrow screen the columns go and the
   same words show as one line under the name (.pf-co-alt) instead; never both. */
.pf-rows .pf-col{font-size:.93rem}
.pf-co-alt{display:none;font-size:.88rem;color:var(--pf-dim, #9DB5D1)}
.pf-co-alt:empty{display:none!important}
@media (max-width:760px){
  .pf-rows--text .pf-col{display:none}
  .pf-rows--text .pf-co-alt{display:block}
}
.pf-empty{color:var(--pf-dim, #9DB5D1)}
.pf-count{font-weight:600}
/* The count and "Clear all" on one line (list-builder.js): the count takes the space, the link sits at the end. */
.pf-count-row{display:flex;align-items:baseline;justify-content:space-between;gap:8px 16px}
.pf-count-row .pf-count{margin:0}
.pf-count-clear{flex:none;min-height:auto;padding:0;font-size:.9rem}
.pf-count-clear[hidden]{display:none}
/* "What it does" hover card (list builder). A dotted underline marks a name that has one. Fixed, placed by
   list-rows.js under (or above) the row's company cell. */
.pf-co--about .pf-co-name{text-decoration:underline dotted;text-decoration-color:var(--pf-dim, #9DB5D1);text-underline-offset:4px;cursor:help}
.pf-about{position:fixed;z-index:400;left:0;top:0;pointer-events:none;width:min(360px,calc(100vw - 16px));padding:12px 14px 10px;border-radius:12px;border:1px solid var(--pf-line, rgba(126,168,214,.32));background:var(--pf-card2, #123153);color:var(--pf-fg, #F3F7FC);box-shadow:0 10px 28px rgba(0,0,0,.45);font-size:.88rem;line-height:1.5;animation:pf-about-in .14s ease-out both}
.pf-about-title{margin:0 0 6px;font-weight:700}
.pf-about-body p{margin:0 0 6px}
/* The facts (shared/about.js): each label beside its value, in the card and in the phone's sheet. */
.pf-about-facts{display:grid;gap:5px;margin:0}
.pf-about-fact{display:grid;grid-template-columns:7.2em minmax(0,1fr);gap:10px;align-items:baseline}
.pf-about-fact dt{color:var(--pf-dim, #9DB5D1);font-size:.8rem}
.pf-about-fact dd{margin:0}
/* A name with facts behind it is a button (list-rows.js): it looks like the name, and the whole company cell is its
   target, so a tap anywhere on it opens the facts. */
.pf-co--about{position:relative}
.pf-co-open{display:block;width:100%;padding:0;border:0;background:none;color:inherit;font:inherit;font-weight:600;text-align:left;cursor:pointer}
.pf-co-open::after{content:"";position:absolute;inset:0}
.pf-co-open:focus-visible{outline:none}
.pf-co-open:focus-visible::after{outline:3px solid var(--pf-you, #FFF55B);outline-offset:-3px;border-radius:6px}
.pf-about-source{margin:8px 0 0;font-size:.78rem;color:var(--pf-dim, #9DB5D1)}
@keyframes pf-about-in{from{opacity:0;transform:translateY(-3px)}to{opacity:1;transform:none}}

/* Presets */
.pf-preset{display:flex;gap:12px;align-items:flex-start;padding:12px;border-radius:12px;border:1px solid var(--pf-line, rgba(126,168,214,.2));margin:8px 0}
.pf-preset input{margin-top:4px;width:24px;height:24px;flex:none;accent-color:var(--pf-act, #9BC0E8)}
.pf-preset label{display:flex;flex-direction:column;gap:2px;cursor:pointer;flex:1}
.pf-preset.is-off label{cursor:default;opacity:.85}
.pf-preset-title{font-weight:700}
.pf-preset-desc{display:flex;flex-direction:column;gap:2px;font-size:.9rem;color:var(--pf-dim, #9DB5D1)}
.pf-preset-reason{color:var(--pf-warn, #FFF55B)}
.pf-preset-detail{margin-top:12px}

/* Tray */
.pf-tray{background:var(--pf-card, #0F2A47);border:1px solid var(--pf-line, rgba(126,168,214,.32));border-radius:14px;padding:14px 16px;margin:12px 0}
.pf-tray-list{position:relative;list-style:none;margin:8px 0;padding:0;display:flex;flex-direction:column;gap:6px;max-height:360px;overflow-y:auto}
.pf-tray-item{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;padding:6px 0;border-bottom:1px solid var(--pf-line, rgba(126,168,214,.2))}
.pf-tray-name{font-weight:600;flex:1 1 160px}
.pf-tray-meta{color:var(--pf-dim, #9DB5D1);font-size:.88rem}

/* Maps */
.pf-results-map{margin:12px 0}
.pf-skip-map{position:absolute;left:-9999px}
.pf-skip-map:focus{position:static;display:inline-block;margin:0 0 8px;padding:6px 12px;border-radius:999px;background:var(--pf-you, #FFF55B);color:#071527;font-weight:600}
.pf-map-frame{position:relative}
.pf-map{width:100%;height:420px;border-radius:12px;border:1px solid var(--pf-line, rgba(126,168,214,.32));background:#0B2039;overflow:hidden}
@media (max-width:700px){.pf-map{height:clamp(280px,55vh,480px)}}
.pf-map.is-failed{height:auto;min-height:80px}
.pf-map--draw{height:380px}
.pf-crosshair::after{content:"";position:absolute;left:50%;top:50%;width:22px;height:22px;margin:-11px 0 0 -11px;border:2px solid #FFF55B;border-radius:50%;pointer-events:none;z-index:500;box-shadow:0 0 0 2px rgba(7,21,39,.7)}
.pf-map-msg{position:absolute;left:10px;right:10px;top:10px;z-index:600;margin:0;padding:8px 12px;border-radius:10px;background:rgba(7,21,39,.92);color:#F3F7FC;border:1px solid #FFF55B}
.pf-legend{list-style:none;margin:8px 0;padding:0;display:flex;flex-wrap:wrap;gap:6px 16px;font-size:.88rem;color:var(--pf-dim, #9DB5D1)}
.pf-legend-pill{display:inline-block;min-width:30px;padding:1px 8px;border-radius:999px;text-align:center;font-weight:700;background:var(--pf-pill);color:var(--pf-pill-fg);border:2px solid var(--pf-pill-line)}
.pf-draw-btns{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}
.pf-readout{min-height:1.4em;color:var(--pf-dim, #9DB5D1)}

/* Leaflet within our palettes */
.pf-results-map .leaflet-container,.pf-area .leaflet-container{font-family:inherit;background:#0B2039}
.pf-pal-paper .leaflet-tile-pane{filter:grayscale(1)}
.leaflet-container a.leaflet-popup-close-button{width:32px;height:32px;font-size:22px;line-height:30px}
.leaflet-container .leaflet-control-attribution{background:rgba(255,255,255,.92);color:#1a1a1a;font-size:12px}
.leaflet-container .leaflet-control-attribution a{color:#0b4f9c}
.leaflet-control-zoom a{width:36px!important;height:36px!important;line-height:36px!important}

/* Pins (booking.com style): a pill above its point, with a small pointer. Sizes come from CSS, never inline. */
.pf-pin{background:none;border:0;width:auto!important;height:auto!important;translate:-50% calc(-100% - 7px)}
.pf-pin .pf-pin-in{position:relative;display:inline-flex;align-items:center;justify-content:center;min-width:36px;min-height:28px;padding:2px 9px;border-radius:999px;background:var(--pf-pill, #0F2A47);color:var(--pf-pill-fg, #F3F7FC);border:2px solid var(--pf-pill-line, #79B4F5);font:700 13px/1.2 Inter,system-ui,sans-serif;white-space:nowrap;box-shadow:0 2px 6px rgba(0,0,0,.35)}
.pf-pin .pf-pin-in::after{content:"";position:absolute;left:50%;bottom:-8px;margin-left:-6px;border:6px solid transparent;border-top-color:var(--pf-pill-line, #79B4F5);border-bottom:0}
.pf-pin:focus{outline:none}
.pf-pin:focus-visible .pf-pin-in{outline:3px solid #FFF55B;outline-offset:2px}
.pf-pin--estimate .pf-pin-in{border-style:dashed}
.pf-pin--none .pf-pin-in,.pf-pin--no-accounts .pf-pin-in{background:#3b4a5c;border-color:#9DB5D1;color:#F3F7FC}
.pf-pin--not-analysed .pf-pin-in{background:#0B2039;border-color:#9DB5D1;color:#F3F7FC}
.pf-pin--failed .pf-pin-in{background:#0B2039;border-color:#FF9C9C;color:#FFD3D3}
.pf-pin--pending .pf-pin-in{background:#0B2039;border-color:#FFF55B;color:#FFF55B}
/* Only the marker's own root pulses (finding 9); the legend's sample pill shares the class but stays still. */
.pf-pin.pf-pin--pending{animation:pf-pulse 1.8s ease-in-out infinite}
.pf-pin--you .pf-pin-in{background:#FFF55B;color:#071527;border-color:#071527;border-radius:999px;padding-left:22px}
.pf-pin--you .pf-pin-in::before{content:"";position:absolute;left:6px;top:50%;width:10px;height:10px;margin-top:-5px;border-radius:50%;background:#071527;box-shadow:0 0 0 2px #FFF55B,0 0 0 3px #071527}
.pf-pin--you .pf-pin-in::after{border-top-color:#071527}
.pf-pin--stack .pf-pin-in{background:#123153;border-color:#9BC0E8}
.pf-pin--cluster{translate:-50% -50%}
.pf-pin--cluster .pf-pin-in{min-width:36px;min-height:36px;border-radius:50%;background:#123153;border-color:#9BC0E8}
.pf-pin--cluster .pf-pin-in::after{display:none}
.pf-pin--on .pf-pin-in{background:#F3F7FC;color:#071527;border-color:#071527}
.pf-legend-pill.pf-pin--estimate{border-style:dashed}
.pf-legend-pill.pf-pin--none{background:#3b4a5c;border-color:#9DB5D1;color:#F3F7FC}
.pf-legend-pill.pf-pin--not-analysed{background:#0B2039;border-color:#9DB5D1;color:#F3F7FC}
.pf-legend-pill.pf-pin--pending{background:#0B2039;border-color:#FFF55B;color:#FFF55B}
.pf-legend-pill.pf-pin--you{background:#FFF55B;color:#071527;border-color:#071527}
@keyframes pf-pulse{50%{opacity:.6}}

/* Popups (company cards on the map) */
.leaflet-popup-content-wrapper{border-radius:12px}
.pf-pop{color:#071527;font-size:.95rem}
.pf-pop .pf-pop-title{font-size:1.05rem;margin:0 0 4px;color:#071527}
.pf-pop p{margin:0 0 6px}
.pf-pop .pf-note{color:#33475e}
.pf-pop .pf-btn{color:#071527;border-color:#33475e}
.pf-pop .pf-pop-list{list-style:none;margin:6px 0;padding:0;display:flex;flex-direction:column;gap:4px}
.pf-pop .pf-actions{margin:8px 0 0}

/* Draw tool */
.pf-handle{background:none;border:0}
.pf-handle-dot{position:absolute;left:-7px;top:-7px;width:14px;height:14px;border-radius:50%;background:#FFF55B;border:2px solid #071527;cursor:move}
.pf-handle--first .pf-handle-dot{background:#9BC0E8;width:18px;height:18px;left:-9px;top:-9px}
path.pf-draw-shape{stroke:#FFF55B;stroke-width:3;fill:rgba(255,245,91,.15)}
path.pf-draw-path{stroke:#FFF55B;stroke-width:3;fill:none}
path.pf-draw-trail{stroke:#FFF55B;stroke-width:2;fill:none;opacity:.8}

/* Area panel */
.pf-area-pane{margin:6px 0}
.pf-suggest ul{flex-direction:row;flex-wrap:wrap;gap:6px}

/* Sign-up panels */
.pf-signup{max-width:640px}
.pf-devcode{border:2px dashed var(--pf-warn, #FFF55B);border-radius:10px;padding:8px 12px;margin:10px 0}
.pf-plan{border:1px solid var(--pf-line, rgba(126,168,214,.32));border-radius:12px;padding:12px 14px;margin:10px 0}

@media (prefers-reduced-motion: reduce){
  .pf-prog,.pf-prog *,.pf-pin,.pf-pin *,.pf-about{animation:none!important;transition:none!important}
  .leaflet-container,.leaflet-container *{animation:none!important;transition:none!important}
}
.pf-reduce-motion .pf-prog,.pf-reduce-motion .pf-prog *,
.pf-reduce-motion .pf-pin,.pf-reduce-motion .pf-pin *,.pf-reduce-motion .pf-about{animation:none!important;transition:none!important}
/* Leaflet's zoom and popup fades are CSS transitions; Leaflet finishes a zoom on a timer, so this is safe live. */
.pf-reduce-motion .leaflet-container,.pf-reduce-motion .leaflet-container *{animation:none!important;transition:none!important}
