/* ========== Design tokens ========== */
:root {
    --pp-bg: #ffffff;
    --pp-bg-soft: #f5f5f3;
    --pp-text: #1f1f1e;
    --pp-text-2: #5f5e5a;
    --pp-text-3: #8a8983;
    --pp-border: rgba(0, 0, 0, .12);
    --pp-border-strong: rgba(0, 0, 0, .3);
    --pp-accent: #185fa5;
    --pp-accent-bg: #e6f1fb;
    --pp-on-accent: #ffffff;
    --pp-danger: #a32d2d;
    --pp-success: #3b6d11;
    --pp-success-bg: #eaf3de;
}

/* Dark theme: follows the Fluent UI theme, which sets data-theme="dark" on the body (see IThemeService) */
body[data-theme="dark"] {
    --pp-bg: #262624;
    --pp-bg-soft: #30302e;
    --pp-text: #f1efe8;
    --pp-text-2: #b4b2a9;
    --pp-text-3: #888780;
    --pp-border: rgba(255, 255, 255, .14);
    --pp-border-strong: rgba(255, 255, 255, .34);
    --pp-accent: #85b7eb;
    --pp-accent-bg: #0c447c;
    --pp-on-accent: #042c53;
    --pp-danger: #f09595;
    --pp-success: #97c459;
    --pp-success-bg: #27500a;
}

/* Visual tones (one per project type) */
.pp-tone-success { --t-bg: #eaf3de; --t-fg: #3b6d11; }
.pp-tone-accent  { --t-bg: #e6f1fb; --t-fg: #185fa5; }
.pp-tone-pro     { --t-bg: #eeedfe; --t-fg: #534ab7; }
.pp-tone-warning { --t-bg: #faeeda; --t-fg: #854f0b; }
.pp-tone-danger  { --t-bg: #fcebeb; --t-fg: #a32d2d; }
.pp-tone-neutral { --t-bg: #f1efe8; --t-fg: #5f5e5a; }

body[data-theme="dark"] .pp-tone-success { --t-bg: #27500a; --t-fg: #c0dd97; }
body[data-theme="dark"] .pp-tone-accent  { --t-bg: #0c447c; --t-fg: #b5d4f4; }
body[data-theme="dark"] .pp-tone-pro     { --t-bg: #3c3489; --t-fg: #cecbf6; }
body[data-theme="dark"] .pp-tone-warning { --t-bg: #633806; --t-fg: #fac775; }
body[data-theme="dark"] .pp-tone-danger  { --t-bg: #791f1f; --t-fg: #f7c1c1; }
body[data-theme="dark"] .pp-tone-neutral { --t-bg: #444441; --t-fg: #d3d1c7; }

/* ========== Screen container (responsive through a container query) ========== */
.pp-app {
    container-type: inline-size;
    position: relative;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    width: calc(100% - 2rem);
    max-width: none;
    height: min(660px, calc(100dvh - 2rem));
    margin: 0 auto;
    padding: 16px 16px 12px;
    background: var(--pp-bg);
    color: var(--pp-text);
    border: .5px solid var(--pp-border);
    border-radius: 20px;
}

.pp-header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }

.pp-back {
    display: inline-flex; flex: none; align-items: center; justify-content: center;
    width: 36px; height: 36px; padding: 0; border-radius: 50%;
    border: .5px solid var(--pp-border-strong); background: transparent;
    color: inherit; font: inherit; cursor: pointer;
}
.pp-back:hover { background: var(--pp-bg-soft); }

/* Actions on the right of the header (link to the companies, active / inactive filter) */
.pp-header-actions { display: flex; flex: none; gap: 8px; margin-left: auto; }

/* Pill button or link: icon + text; "on" when a filter is applied */
.pp-pill {
    display: inline-flex; flex: none; align-items: center; gap: 6px;
    height: 36px; padding: 0 14px; border-radius: 999px; box-sizing: border-box;
    border: 1.5px solid var(--pp-border-strong); background: transparent;
    color: inherit; font: inherit; font-size: 13px; font-weight: 500; text-decoration: none; cursor: pointer;
}
.pp-pill i { font-size: 18px; }
.pp-pill:hover { background: var(--pp-bg-soft); }
.pp-pill--on, .pp-pill--on:hover { background: var(--pp-accent-bg); border-color: var(--pp-accent); color: var(--pp-accent); }

.pp-breadcrumb { margin: 0; font-size: 12px; color: var(--pp-text-3); }

/* Project type and template shown above the questions of a project (creation and edition). */
.pp-context {
    display: flex; align-items: center; gap: 12px; margin-bottom: 16px; padding: 12px 14px;
    background: var(--pp-bg); border: 1.5px solid var(--pp-border); border-radius: 14px;
}
.pp-context-icon {
    display: flex; flex: none; align-items: center; justify-content: center;
    width: 44px; height: 44px; font-size: 24px; border-radius: 12px;
    background: var(--t-bg, transparent); color: var(--t-fg, var(--pp-text-2));
}
.pp-context-type { margin: 0; font-size: 12px; color: var(--pp-text-3); }
.pp-context-name { margin: 0; font-weight: 500; }
.pp-context-bonus { margin: 2px 0 0; font-size: 13px; color: var(--t-fg, var(--pp-text-2)); }
.pp-title { margin: 0; font-size: 18px; font-weight: 500; }
.pp-subtitle { margin: 2px 0 0; font-size: 13px; color: var(--pp-text-2); }
.pp-loading { color: var(--pp-text-2); font-size: 13px; }
.pp-empty { margin: 0 0 12px; font-size: 13px; color: var(--pp-text-2); }
.pp-help { margin: -4px 0 8px; font-size: 12px; color: var(--pp-text-3); }

/* ========== Dashboard bar: signed-in user and navigation, above a pp-app ========== */
.pp-dash {
    box-sizing: border-box;
    display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
    width: calc(100% - 2rem); max-width: none; margin: 0 auto 12px; padding: 12px 16px;
    background: var(--pp-bg); color: var(--pp-text);
    border: .5px solid var(--pp-border); border-radius: 20px;
}
.pp-user { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pp-user-avatar {
    display: inline-flex; flex: none; align-items: center; justify-content: center;
    width: 48px; height: 48px; border-radius: 50%; font-size: 30px;
    background: var(--pp-accent-bg); color: var(--pp-accent);
}
.pp-logout, .pp-theme { font-size: 18px; }
.pp-logout:hover { color: var(--pp-danger); border-color: var(--pp-danger); }
.pp-logout:disabled { opacity: .6; cursor: default; }
.pp-user-text { min-width: 0; }
.pp-user-name {
    margin: 0; font-size: 18px; font-weight: 600;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ========== Scrollable zone and scroll hint ========== */
.pp-zone { position: relative; flex: 1; min-height: 0; }

.pp-body {
    height: 100%; overflow-y: auto; padding: 2px 8px 2px 2px;
    scrollbar-width: thin; scrollbar-color: var(--pp-border-strong) transparent;
}
.pp-body::-webkit-scrollbar { width: 6px; }
.pp-body::-webkit-scrollbar-thumb { background: var(--pp-border-strong); border-radius: 3px; }

.pp-content { min-height: 100%; }

.pp-hint {
    position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%);
    display: none; align-items: center; gap: 6px;
    padding: 7px 14px; border: none; border-radius: 999px;
    background: var(--pp-text); color: var(--pp-bg);
    font: inherit; font-size: 12px; font-weight: 500; white-space: nowrap; cursor: pointer;
    animation: pp-bounce 1.4s ease-in-out infinite;
}
.pp-hint--visible { display: flex; }

@keyframes pp-bounce {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, 3px); }
}
@media (prefers-reduced-motion: reduce) { .pp-hint { animation: none; } }

.pp-footer { display: flex; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: .5px solid var(--pp-border); }

/* ========== Grids and choice cards ========== */
.pp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.pp-grid--types { grid-template-columns: 1fr; }
/* Every row as tall as the tallest one: all the cards of the grid have the same height */
.pp-grid--even { grid-auto-rows: 1fr; }

.pp-card {
    position: relative; display: block; width: 100%; padding: 0; overflow: hidden;
    font: inherit; color: inherit; text-align: left; cursor: pointer;
    background: var(--pp-bg); border: 1.5px solid var(--pp-border); border-radius: 14px;
    transition: border-color .15s, background .15s;
}
.pp-card:hover { border-color: var(--pp-border-strong); }
.pp-card:focus-visible { outline: 2px solid var(--pp-accent); outline-offset: 2px; }
.pp-card--dashed { border-style: dashed; border-color: var(--pp-border-strong); }
.pp-card--on {
    background: var(--pp-accent-bg); border-color: var(--pp-accent);
    box-shadow: 0 0 0 1px var(--pp-accent);
}
.pp-card--on .pp-label { color: var(--pp-accent); }

.pp-visual {
    display: flex; align-items: center; justify-content: center;
    background: var(--t-bg, transparent); color: var(--t-fg, var(--pp-text-2));
}
.pp-text { display: block; }
.pp-label { display: block; font-weight: 500; }
.pp-description { display: block; font-size: 12px; color: var(--pp-text-2); }
.pp-arrow { margin-left: auto; color: var(--pp-text-3); }
.pp-check {
    position: absolute; top: 8px; right: 8px;
    display: flex; align-items: center; justify-content: center;
    width: 26px; height: 26px; border-radius: 50%; font-size: 16px;
    background: var(--pp-accent); color: var(--pp-on-accent);
}

/* Badge of an inactive project (shown when every project is listed) */
.pp-inactive {
    position: absolute; top: 8px; right: 8px;
    display: flex; align-items: center; justify-content: center;
    width: 26px; height: 26px; border-radius: 50%; font-size: 15px;
    background: var(--pp-bg); color: var(--pp-text-2);
    border: 1px solid var(--pp-border-strong);
}

/* "project" variant: visual above the label; the card fills its grid cell, so every card of a row has the same height */
.pp-card--project { display: flex; flex-direction: column; justify-content: flex-start; height: 100%; }
.pp-card--project .pp-visual { height: 72px; font-size: 30px; }
.pp-card--project .pp-label { padding: 8px 10px; font-size: 13px; line-height: 1.3; }
.pp-card--project .pp-description { padding: 0 10px 8px; margin-top: -4px; }

/* "type" variant: a row on small screens, a vertical card on large ones */
.pp-card--type { display: flex; align-items: center; gap: 14px; padding-right: 12px; border-radius: 16px; }
.pp-card--type .pp-visual { flex: none; width: 84px; height: 84px; font-size: 34px; }
.pp-card--type .pp-label { font-size: 15px; }
.pp-card--type .pp-check { top: 50%; right: 12px; transform: translateY(-50%); }

@container (min-width: 560px) {
    .pp-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
    .pp-grid--types { grid-template-columns: 1fr 1fr; }
    .pp-card--type { flex-direction: column; align-items: stretch; gap: 0; padding: 0; }
    .pp-card--type .pp-visual { width: auto; height: 110px; font-size: 42px; }
    .pp-card--type .pp-text { padding: 12px 14px; }
    .pp-card--type .pp-arrow { display: none; }
    .pp-card--type .pp-check { top: 10px; right: 10px; transform: none; }
    .pp-cta { width: auto; min-width: 220px; margin-left: auto; }
}

/* ========== Questions, chips, fields ========== */
.pp-question { margin-bottom: 18px; }
.pp-question-label { margin: 0 0 8px; font-size: 13px; color: var(--pp-text-2); }
.pp-error { margin: 6px 0 0; font-size: 12px; color: var(--pp-danger); }

label.pp-question-label { display: block; }

/* Result of a load or a save, above a form (profile) */
.pp-message {
    display: flex; align-items: center; gap: 8px; margin: 0 0 16px; padding: 10px 12px;
    font-size: 13px; border-radius: 8px;
    background: var(--pp-success-bg); color: var(--pp-success);
}
.pp-message i { font-size: 18px; }
.pp-message--error { background: var(--pp-bg-soft); color: var(--pp-danger); }

.pp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pp-chip {
    padding: 8px 14px; font: inherit; font-size: 13px; color: inherit; cursor: pointer;
    background: var(--pp-bg); border: 1.5px solid var(--pp-border); border-radius: 999px;
}
.pp-chip i { margin-right: 6px; }
.pp-chip--on { background: var(--pp-accent-bg); border-color: var(--pp-accent); color: var(--pp-accent); }

.pp-field {
    box-sizing: border-box; width: 100%; padding: 8px 10px;
    font: inherit; color: inherit; background: var(--pp-bg);
    border: 1px solid var(--pp-border-strong); border-radius: 8px;
}
textarea.pp-field { resize: vertical; }
/* A field that can no longer be changed (legal name and SIRET of a validated company): greyed and in italics. */
.pp-field:disabled { background: var(--pp-bg-soft); color: var(--pp-text-3); font-style: italic; opacity: 1; cursor: not-allowed; -webkit-text-fill-color: var(--pp-text-3); }
select.pp-field { height: 38px; }

.pp-slider-row { display: flex; align-items: center; gap: 12px; }
.pp-slider { flex: 1; width: 100%; }
.pp-value { min-width: 76px; text-align: right; font-size: 13px; font-weight: 500; }

.pp-number { display: flex; align-items: center; gap: 8px; }
.pp-number .pp-field { flex: 1; }
.pp-unit { font-size: 13px; color: var(--pp-text-2); }

/* ========== Catalog editor: fields side by side, question blocks, option rows ========== */
.pp-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0 10px; align-items: end; }

.pp-block { margin-bottom: 12px; padding: 12px; border: 1.5px solid var(--pp-border); border-radius: 14px; }
.pp-block > :last-child { margin-bottom: 0; }
.pp-block-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.pp-back:disabled { opacity: .4; cursor: default; }

.pp-option { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.pp-option .pp-field { flex: 1; min-width: 0; }

/* ========== Progress bar ========== */
.pp-progress { margin: 0 0 12px; }
.pp-progress-row { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 12px; color: var(--pp-text-2); }
.pp-progress-track { height: 6px; border-radius: 3px; background: var(--pp-border); }
.pp-progress-bar { height: 6px; border-radius: 3px; background: var(--pp-accent); transition: width .25s; }
.pp-progress--complete .pp-progress-bar { background: var(--pp-success); }

/* ========== Buttons and confirmation ========== */
.pp-cta {
    width: 100%; height: 46px; padding: 0 24px; border: none; border-radius: 999px;
    font: inherit; font-size: 14px; font-weight: 500; cursor: pointer;
    background: var(--pp-text); color: var(--pp-bg);
}
.pp-cta:disabled { opacity: .6; cursor: default; }

.pp-link-button {
    padding: 10px 20px; font: inherit; color: inherit; cursor: pointer;
    background: transparent; border: .5px solid var(--pp-border-strong); border-radius: 8px;
}
.pp-link-button:hover { background: var(--pp-bg-soft); }
.pp-link-button:disabled { opacity: .6; cursor: default; }
.pp-link-button--danger { color: var(--pp-danger); border-color: var(--pp-danger); }

.pp-template-group > .pp-help {
    display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 12px 0 8px;
}
.pp-template-group > .pp-help .pp-link-button { padding: 2px 10px; font-size: 12px; }

.pp-center {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    min-height: 100%; gap: 6px; text-align: center;
}
.pp-center .pp-subtitle { max-width: 300px; margin-bottom: 14px; }
.pp-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pp-actions--spaced { margin-bottom: 16px; }

.pp-circle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 64px; height: 64px; margin-bottom: 8px; border-radius: 50%; font-size: 32px;
    background: var(--pp-success-bg); color: var(--pp-success);
}

/* ========== Information button on a card and information sheet ========== */
.pp-card-wrap { position: relative; display: flex; }
.pp-card-wrap > .pp-card { flex: 1; }

.pp-info-button {
    position: absolute; top: 8px; left: 8px;
    display: flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; padding: 0; border-radius: 50%; font-size: 18px;
    background: var(--pp-bg); color: var(--pp-text-2);
    border: 1px solid var(--pp-border-strong); cursor: pointer;
}
.pp-info-button:hover { color: var(--pp-accent); border-color: var(--pp-accent); }
.pp-info-button:focus-visible { outline: 2px solid var(--pp-accent); outline-offset: 2px; }
.pp-delete-button:hover { color: var(--pp-danger); border-color: var(--pp-danger); }
.pp-info-button + .pp-delete-button { left: 46px; }

.pp-sheet-backdrop {
    position: absolute; inset: 0; z-index: 10; border-radius: 20px;
    background: rgba(0, 0, 0, .35);
}

/* Bottom sheet on small screens, centered dialog on large ones */
.pp-sheet {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 11;
    box-sizing: border-box; max-height: 85%; overflow-y: auto; padding: 16px;
    background: var(--pp-bg); color: var(--pp-text);
    border: .5px solid var(--pp-border); border-radius: 20px;
    box-shadow: 0 -6px 24px rgba(0, 0, 0, .18);
}

.pp-sheet-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.pp-sheet-visual {
    display: flex; flex: none; align-items: center; justify-content: center;
    width: 52px; height: 52px; border-radius: 14px; font-size: 26px;
    background: var(--t-bg, var(--pp-bg-soft)); color: var(--t-fg, var(--pp-text-2));
}
.pp-sheet-close { margin-left: auto; }

.pp-sheet-text { margin: 0 0 12px; font-size: 14px; line-height: 1.5; }

.pp-sheet-list { margin: 0 0 16px; padding: 0; list-style: none; font-size: 13px; }
.pp-sheet-list li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: .5px solid var(--pp-border); }
.pp-sheet-list i { font-size: 18px; color: var(--pp-text-3); }
.pp-sheet-list a { color: var(--pp-accent); text-decoration: none; overflow-wrap: anywhere; }
.pp-sheet-list a:hover { text-decoration: underline; }

.pp-sheet-actions { display: flex; gap: 8px; }

@container (min-width: 560px) {
    .pp-sheet { left: 50%; right: auto; bottom: 50%; width: 440px; transform: translate(-50%, 50%); }
}

/* Page-level variant (dashboard): covers the viewport instead of a pp-app */
.pp-sheet-backdrop--page { position: fixed; z-index: 1000; border-radius: 0; }
.pp-sheet--page { position: fixed; z-index: 1001; }

@media (min-width: 560px) {
    .pp-sheet--page { left: 50%; right: auto; bottom: 50%; width: 440px; transform: translate(-50%, 50%); }
}

/* ========== Pill with the number of chosen companies (project cards of the companies page) ========== */
.pp-count {
    position: absolute; top: 8px; right: 8px;
    display: inline-flex; align-items: center; gap: 4px;
    height: 26px; padding: 0 10px; border-radius: 999px;
    font-size: 13px; font-weight: 600; line-height: 1;
    background: var(--pp-bg); color: var(--pp-text-3);
    border: 1px solid var(--pp-border-strong);
}
.pp-count i { font-size: 15px; }
.pp-count--on { background: var(--pp-accent); color: var(--pp-on-accent); border-color: var(--pp-accent); }

/* Logo preview of a client company */
.pp-logo-preview { display: block; max-width: 160px; max-height: 96px; margin-bottom: 8px; border-radius: 8px; object-fit: contain; }

/* Card that cannot be chosen (project type without any possible client company) */
.pp-card--disabled, .pp-card--disabled:hover { opacity: .5; cursor: not-allowed; }

/* Description of a project at the top of the lead management page. */
.pp-summary {
    margin-bottom: 16px; padding: 12px 14px;
    background: var(--pp-bg); border: 1.5px solid var(--pp-border); border-radius: 14px;
}
.pp-summary-list { margin: 0; display: grid; gap: 10px; }
.pp-summary-row { display: grid; grid-template-columns: 150px 1fr; gap: 12px; align-items: start; }
.pp-summary-row dt { font-size: 13px; color: var(--pp-text-3); }
.pp-summary-row dt i { margin-right: 6px; }
.pp-summary-row dd { margin: 0; font-size: 14px; }
.pp-summary-criteria { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.pp-summary-question { font-weight: 500; }
@media (max-width: 520px) {
    .pp-summary-row { grid-template-columns: 1fr; gap: 2px; }
}

/* The description of the project can be collapsed: one full-width button as its header. */
.pp-summary-toggle {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%;
    margin: 0; padding: 0; font: inherit; color: inherit; text-align: left; cursor: pointer;
    background: transparent; border: 0;
}
.pp-summary-heading { display: grid; gap: 2px; min-width: 0; }
.pp-summary-title { font-weight: 500; }
.pp-summary-brief { font-size: 12px; color: var(--pp-text-3); }
.pp-summary-toggle[aria-expanded="true"] { margin-bottom: 12px; }
.pp-visually-hidden {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ========== Leads of a project ========== */
.pp-section-title { margin: 0 0 12px; font-size: 16px; font-weight: 600; }
.pp-section-head { margin-bottom: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.pp-section-head .pp-section-title { margin: 0; }
.pp-section-head .pp-buy { margin-left: auto; }
.pp-section-count--on { background: var(--pp-success-bg); color: var(--pp-success); }
.pp-section-count {
    margin-left: 6px; padding: 1px 8px; border-radius: 999px;
    background: var(--pp-bg-soft); color: var(--pp-text-2); font-size: 13px; font-weight: 500;
}
.pp-leads { margin: 0 0 12px; padding: 0; list-style: none; display: grid; gap: 10px; }
.pp-lead {
    padding: 12px 14px; display: grid; gap: 10px;
    background: var(--pp-bg); border: 1.5px solid var(--pp-border); border-radius: 14px;
}
.pp-lead-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.pp-lead-title { font-size: 14px; font-weight: 600; }
.pp-lead-title i { margin-right: 6px; color: var(--pp-text-3); }
.pp-lead-meta { font-size: 13px; color: var(--pp-text-3); }
.pp-lead-fields { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px 16px; }
.pp-lead-fields dt { font-size: 12px; color: var(--pp-text-3); }
.pp-lead-fields > div { min-width: 0; }
.pp-lead-fields dd { margin: 0; font-size: 14px; color: var(--pp-text-2); letter-spacing: .5px; overflow-wrap: anywhere; }
.pp-lead-fields dd.pp-lead-answer { color: var(--pp-text); letter-spacing: 0; }
.pp-lead-title { display: inline-flex; align-items: center; gap: 6px; }
.pp-lead-head { align-items: center; }

/* Detail of a lead: a rail of statuses on the left, identity / price / data on the right. */
.pp-lead { padding: 0; gap: 0; grid-template-columns: 190px minmax(0, 1fr); --pp-tone: var(--pp-text-3); }
.pp-lead--ok { --pp-tone: var(--pp-success); }
.pp-lead--done { --pp-tone: var(--pp-accent); }
.pp-lead-rail {
    padding: 14px 12px; display: flex; flex-direction: column; gap: 12px;
    background: var(--pp-bg-soft); border-left: 4px solid var(--pp-tone); border-right: 1px solid var(--pp-border);
    border-radius: 14px 0 0 14px;
}
.pp-lead-body { padding: 14px 18px 16px; display: grid; gap: 12px; align-content: start; min-width: 0; }
.pp-lead-id { display: grid; gap: 2px; }
.pp-lead-id .pp-lead-title { font-size: 16px; }
.pp-st { display: flex; gap: 8px; align-items: flex-start; }
.pp-st small { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--pp-text-3); }
.pp-st b { display: block; font-size: 12.5px; font-weight: 600; line-height: 1.25; color: var(--pp-text); }
.pp-st-ico {
    flex: none; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; font-size: 14px;
    background: var(--pp-bg-soft); color: var(--pp-text-3);
}
.pp-verified { margin-left: 5px; font-size: 16px; vertical-align: -2px; color: var(--pp-success); }
.pp-st--ok .pp-st-ico { background: var(--pp-success-bg); color: var(--pp-success); }
.pp-st--warn .pp-st-ico { background: var(--pp-accent-bg); color: var(--pp-accent); }
.pp-st--fresh .pp-st-ico { background: rgba(255, 196, 107, .16); color: #ffc46b; }
.pp-lead-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-right: auto; margin-left: 8px; }
.pp-claim-group { display: inline-flex; align-items: center; gap: 6px; }
.pp-claim-btn {
    display: inline-flex; align-items: center; gap: 10px; padding: 5px 14px 5px 10px; font: inherit; cursor: pointer;
    color: var(--pp-danger); background: color-mix(in srgb, var(--pp-danger) 12%, transparent);
    border: 1.5px solid var(--pp-danger); border-radius: 12px; text-align: left; line-height: 1.2;
}
.pp-claim-btn > i:first-child { font-size: 20px; }
.pp-claim-btn-text { display: grid; }
.pp-claim-btn-text b { font-size: 13px; font-weight: 600; }
.pp-claim-btn-text small { font-size: 11px; opacity: .85; }
.pp-claim-btn:hover { background: color-mix(in srgb, var(--pp-danger) 22%, transparent); }
.pp-claim-btn--off { color: var(--pp-text-3); border-color: var(--pp-border); background: transparent; cursor: default; }
.pp-info { position: relative; display: inline-flex; font-size: 18px; color: var(--pp-text-3); cursor: help; }
.pp-info-pop {
    position: absolute; top: calc(100% + 8px); right: -8px; z-index: 30; width: 300px; padding: 12px 14px;
    display: none; font-size: 12.5px; line-height: 1.45; color: var(--pp-text); text-align: left; cursor: default;
    background: var(--pp-bg); border: 1px solid var(--pp-border-strong); border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}
.pp-info-pop::before {
    content: ""; position: absolute; top: -6px; right: 12px; width: 10px; height: 10px; transform: rotate(45deg);
    background: var(--pp-bg); border-left: 1px solid var(--pp-border-strong); border-top: 1px solid var(--pp-border-strong);
}
.pp-info-pop strong { display: block; margin-bottom: 6px; font-size: 13px; }
.pp-info-pop ul { margin: 0; padding-left: 16px; display: grid; gap: 6px; color: var(--pp-text-2); }
.pp-info-pop em { font-style: normal; font-weight: 600; color: var(--pp-text); }
.pp-info:hover .pp-info-pop, .pp-info:focus .pp-info-pop, .pp-info:focus-within .pp-info-pop { display: block; }
.pp-info:hover, .pp-info:focus { color: var(--pp-text); outline: none; }
.pp-lead-buy-group { flex-wrap: wrap; justify-content: flex-end; }
/* Contact and project side by side when the width allows it, stacked otherwise. */
.pp-lead-blocks { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 8px; align-items: stretch; }
.pp-lead-block { padding: 6px 12px; border: 1px solid var(--pp-border); border-radius: 10px; }
.pp-lead-block-toggle {
    display: flex; align-items: center; justify-content: space-between; width: 100%; margin: 0; padding: 2px 0;
    font: inherit; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em;
    color: var(--pp-text-3); background: transparent; border: 0; cursor: pointer; text-align: left;
}
.pp-lead-block-toggle[aria-expanded="true"] { margin-bottom: 4px; }
.pp-lead-block .pp-lead-fields { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 4px 16px; padding-bottom: 4px; }
.pp-lead-block .pp-lead-fields dt { font-size: 11px; }
.pp-lead-block .pp-lead-fields dd { font-size: 13px; }

/* The page of the leads takes the height left under the dashboard bar. */
.pp-app--fill, .pp-app:has(.pp-body--fill) { height: max(480px, calc(100dvh - 195px)); }
/* The page of the leads fills the height: the controls stay on top, the list scrolls by itself. */
.pp-body--fill { overflow: hidden; display: flex; flex-direction: column; }
.pp-content--fill { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.pp-leads-section { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 8px; }
.pp-leads-section > * { flex-shrink: 0; }
/* Compact controls: more room for the list. */
.pp-body--fill .pp-summary { margin-bottom: 8px; padding: 8px 14px; }
.pp-leads-section .pp-section-head { margin: 0; }
.pp-leads-section .pp-chips { margin: 0; gap: 6px; }
.pp-leads-section .pp-chip { min-height: 0; height: 28px; padding: 0 10px; font-size: 12px; }
.pp-leads-section .pp-buy-bar { margin: 0; padding: 4px 10px; }
.pp-leads-section > .pp-leads {
    flex: 1 1 0; min-height: 160px; overflow-y: auto; align-content: start; grid-auto-rows: max-content; margin: 0; padding-right: 6px;
    scrollbar-width: thin; scrollbar-color: var(--pp-border-strong) transparent;
}
@media (max-width: 680px) {
    .pp-lead { grid-template-columns: 1fr; }
    .pp-lead-rail { flex-direction: row; flex-wrap: wrap; border-right: 0; border-bottom: 1px solid var(--pp-border); }
}
.pp-buy-bar {
    margin-bottom: 10px; padding: 8px 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px;
    background: var(--pp-bg-soft); border-radius: 12px;
}
.pp-buy-count { flex: 1; font-size: 13px; color: var(--pp-text-2); }
.pp-buy {
    display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px;
    border: 1.5px solid var(--pp-accent); border-radius: 999px; background: var(--pp-bg); color: var(--pp-accent);
    font: inherit; font-size: 13px; font-weight: 500; cursor: pointer;
}
.pp-buy:hover { background: var(--pp-accent-bg); }
.pp-buy--on, .pp-buy--on:hover { background: var(--pp-success); border-color: var(--pp-success); color: var(--pp-bg); }
.pp-buy:disabled { opacity: .5; cursor: default; background: var(--pp-bg); }
.pp-buy--global { background: var(--pp-accent); color: var(--pp-on-accent); }
.pp-buy--global:hover { background: var(--pp-accent); filter: brightness(1.1); }
.pp-buy-total { font-size: 13px; color: var(--pp-text-2); white-space: nowrap; }
.pp-buy-total strong { color: var(--pp-text); font-weight: 600; }
.pp-buy-total--over strong { color: var(--pp-danger); }
.pp-buy-message--alert { color: var(--pp-danger); font-weight: 500; }
.pp-buy-message { margin: 0 0 10px; font-size: 13px; color: var(--pp-text-2); }
.pp-lead-status {
    margin-left: 8px; padding: 1px 8px; border-radius: 999px;
    background: var(--pp-bg-soft); color: var(--pp-text-2); font-size: 12px; font-weight: 500;
}
.pp-lead-status--on { background: var(--pp-success-bg); color: var(--pp-success); }

/* ========== Balance / bonus: amount and history of the movements ========== */
.pp-balance-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin-bottom: 8px; }
.pp-balance {
    padding: 14px; background: var(--pp-bg); border: 1.5px solid var(--pp-border); border-radius: 14px; margin-bottom: 10px;
}
.pp-balance-pair .pp-balance { margin-bottom: 0; }
.pp-balance-label { margin: 0; font-size: 12px; color: var(--pp-text-3); }
.pp-balance-value { margin: 2px 0 0; font-size: 26px; font-weight: 600; }
.pp-balance-value--blocked { color: var(--pp-danger); }
.pp-movements { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.pp-movement {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 12px 14px;
    background: var(--pp-bg); border: 1.5px solid var(--pp-border); border-radius: 12px;
}
.pp-movement-main, .pp-movement-amounts { display: grid; gap: 2px; min-width: 0; }
.pp-movement-amounts { text-align: right; flex: none; }
.pp-movement-label { font-weight: 500; overflow-wrap: anywhere; }
.pp-movement-date { font-size: 12px; color: var(--pp-text-2); overflow-wrap: anywhere; }
.pp-movement-pending { font-size: 12px; color: var(--pp-accent); }
.pp-movement-amount { font-size: 18px; font-weight: 600; }
.pp-movement-amount--in { color: var(--pp-success); }
.pp-movement-amount--out { color: var(--pp-danger); }

/* ========== Dashboard bar: responsive placement of the user and of the buttons ========== */
.pp-dash .pp-user { flex: 1 1 280px; }
.pp-dash .pp-user-text { flex: 1 1 auto; }
.pp-dash .pp-header-actions {
    flex: 1 1 auto; flex-wrap: wrap; justify-content: flex-end; margin-left: 0;
}
.pp-dash .pp-pill { flex: 0 1 auto; white-space: nowrap; }

/* Narrow screens: the navigation takes a row of its own and its buttons share it in an even grid */
@media (max-width: 720px) {
    .pp-dash { padding: 10px 12px; gap: 10px; }
    .pp-dash .pp-user { flex-basis: 100%; }
    .pp-dash .pp-header-actions {
        flex-basis: 100%; display: grid; justify-content: stretch;
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }
    .pp-dash .pp-pill { justify-content: center; width: 100%; }
}

/* Very narrow screens: two buttons per row at most */
@media (max-width: 380px) {
    .pp-dash .pp-header-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pp-dash .pp-pill { padding: 0 8px; font-size: 12px; }
}

/* ========== Claim of a lead bought ========== */
.pp-claim { display: grid; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: .5px solid var(--pp-border); }
.pp-claim-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0; }
.pp-claim-status {
    padding: 2px 10px; border-radius: 10px; font-size: 12px; font-weight: 500;
    background: var(--pp-bg-soft); color: var(--pp-text-2); border: 1px solid var(--pp-border);
}
.pp-claim-status--open { background: #faeeda; color: #854f0b; border-color: #854f0b; }
.pp-claim-status--accepted { background: var(--pp-success-bg); color: var(--pp-success); border-color: var(--pp-success); }
.pp-claim-status--rejected { background: transparent; color: var(--pp-danger); border-color: var(--pp-danger); }
.pp-claim-exchanges { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13px; }
.pp-claim-exchanges li { display: grid; gap: 1px; padding-left: 10px; border-left: 2px solid var(--pp-border-strong); }
.pp-claim-attempt { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.pp-claim-attempt .pp-field { flex: 1 1 180px; min-width: 0; }
.pp-sheet--tall { max-height: 90dvh; overflow-y: auto; }
.pp-opportunity-line { margin: 0; font-size: 13px; color: var(--pp-text-2); overflow-wrap: anywhere; }

.pp-claim-status--contested { background: #eeedfe; color: #534ab7; border-color: #534ab7; }
.pp-claim-status--resolved { background: var(--pp-accent-bg); color: var(--pp-accent); border-color: var(--pp-accent); }

/* Collapsible claim of a lead and compact consent chips */
.pp-claim-toggle {
    display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%;
    margin: 0; padding: 0; font: inherit; font-size: 13px; color: inherit; text-align: left; cursor: pointer;
    background: transparent; border: 0;
}
.pp-claim-toggle-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 500; }
.pp-buy-progress { display: flex; align-items: center; gap: 12px; margin: 0 0 10px; font-size: 13px; color: var(--pp-text-2); }
.pp-buy-progress progress { flex: 1; max-width: 320px; height: 8px; accent-color: var(--pp-accent); }
.pp-chips--compact { gap: 4px; }
.pp-chips--compact .pp-chip { padding: 2px 8px; font-size: 11px; border-width: 1px; cursor: default; }
.pp-chips--compact .pp-chip i { margin-right: 4px; }

/* Number of companies that bought a lead, on its first line; framed when nobody bought it yet. */
.pp-lead-purchasers { font-size: 13px; color: var(--pp-text-3); }
.pp-lead-purchasers i { margin-right: 6px; }
.pp-lead-purchasers--fresh {
    padding: 3px 10px; border: 1.5px solid var(--pp-accent); border-radius: 8px;
    background: #faeeda; color: #854f0b; border-color: #854f0b; font-weight: 500;
}
body[data-theme="dark"] .pp-lead-purchasers--fresh { background: #633806; color: #fac775; border-color: #fac775; }
.pp-lead-purchasers--fresh i { color: inherit; }

/* Price of a lead, next to its buy button. */
.pp-lead-buy-group { display: inline-flex; align-items: center; gap: 10px; }
.pp-lead-price { font-size: 20px; font-weight: 700; white-space: nowrap; }
.pp-lead-price i { margin-right: 4px; color: var(--pp-text-3); }
.pp-lead-next-price { font-size: 12px; white-space: nowrap; padding: 2px 10px; border-radius: 999px; background: rgba(255, 196, 107, .16); color: #ffc46b; }
.pp-lead-next-price i { margin-right: 4px; }

/* ========== Purchase of credits (spec S3): quantities, terms of sale, payment ========== */
/* The text of a legal notice (terms of sale), read in a box that scrolls when it is long. */
.pp-legal {
    margin: 0 0 12px; padding: 10px 12px; overflow-wrap: anywhere;
    font: inherit; font-size: 12px; line-height: 1.5; white-space: pre-wrap;
    background: var(--pp-bg-soft); border-radius: 8px;
}
.pp-legal--scroll { max-height: 220px; overflow-y: auto; border: 1px solid var(--pp-border); }

/* Quantities proposed: one card each, side by side as long as they fit */
.pp-tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; }
.pp-tier {
    display: grid; gap: 2px; padding: 12px; text-align: center;
    background: var(--pp-bg); color: var(--pp-text); border: 1.5px solid var(--pp-border); border-radius: 12px;
    font: inherit; cursor: pointer;
}
.pp-tier:hover { background: var(--pp-bg-soft); }
.pp-tier--on, .pp-tier--on:hover { background: var(--pp-accent-bg); border-color: var(--pp-accent); }
.pp-tier-credits { font-size: 16px; font-weight: 600; }
.pp-tier-price { font-size: 12px; color: var(--pp-text-2); }
.pp-buy-total .pp-help { margin: 4px 0 0; }

/* "I accept" line: the box on the left, aligned with the first line of its text */
.pp-agree {
    display: flex; align-items: flex-start; gap: 10px; margin: 0 0 8px;
    font-size: 13px; line-height: 1.45; cursor: pointer;
}
.pp-agree input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--pp-accent); cursor: pointer; }
.pp-buy-note { margin: 8px 0 0; text-align: center; }
.pp-buy-note i { margin-right: 4px; }

/* ========== Start guide (spec U9, S10) ========== */
.pp-guide {
    box-sizing: border-box; width: calc(100% - 2rem); max-width: none; margin: 0 auto 12px; padding: 14px 16px;
    background: var(--pp-accent-bg); color: var(--pp-text);
    border: .5px solid var(--pp-accent); border-radius: 20px;
}
.pp-guide-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.pp-guide-title { margin: 0; font-size: 15px; font-weight: 500; }
.pp-guide-count { font-size: 14px; font-weight: 500; color: var(--pp-accent); }
.pp-guide-head .pp-guide-count { margin-left: auto; }
.pp-guide-toggle { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--pp-text-2); cursor: pointer; }
.pp-guide-toggle:hover { background: var(--pp-bg-soft); color: var(--pp-text); }
.pp-guide-bar { height: 6px; margin: 8px 0 10px; overflow: hidden; border-radius: 3px; background: var(--pp-bg); }
.pp-guide-bar > span { display: block; height: 100%; background: var(--pp-accent); }
.pp-guide-steps { margin: 0; padding: 0; list-style: none; }
.pp-guide-step { display: flex; align-items: flex-start; gap: 10px; padding: 6px 0; font-size: 13px; color: var(--pp-text-2); }
.pp-guide-mark {
    display: inline-flex; flex: none; align-items: center; justify-content: center;
    width: 22px; height: 22px; border-radius: 50%; font-size: 12px;
    background: var(--pp-bg); border: .5px solid var(--pp-border-strong);
}
.pp-guide-text { flex: 1; min-width: 0; }
.pp-guide-step-title { margin: 0; }
.pp-guide-desc { margin: 2px 0 0; }
.pp-guide-desc--small { font-size: 12px; }
.pp-guide-step--done .pp-guide-mark { background: var(--pp-success-bg); border-color: var(--pp-success); color: var(--pp-success); }
.pp-guide-step--current { color: var(--pp-text); }
.pp-guide-step--current .pp-guide-step-title { font-weight: 500; }
.pp-guide-step--current .pp-guide-mark { background: var(--pp-accent); border-color: var(--pp-accent); color: var(--pp-on-accent); }
.pp-guide-step--waiting { color: var(--pp-text); }
.pp-guide-step--waiting .pp-guide-step-title { font-weight: 500; }
.pp-guide-step--waiting .pp-guide-mark { background: var(--pp-bg-soft); border-color: var(--pp-text-3); }
.pp-guide-step--alert { color: var(--pp-text); }
.pp-guide-step--alert .pp-guide-step-title { font-weight: 500; }
.pp-guide-step--alert .pp-guide-mark { background: var(--pp-bg); border-color: var(--pp-danger); color: var(--pp-danger); }
.pp-guide-step--locked { opacity: .7; }
.pp-guide-step--locked .pp-guide-mark { background: var(--pp-bg-soft); }
.pp-guide--suspended { background: var(--pp-bg-soft); border-color: var(--pp-danger); }
.pp-guide--suspended .pp-guide-title { color: var(--pp-danger); }
.pp-guide-cta { margin-top: 8px; width: auto; padding: 0 16px; }
.pp-guide-note { margin: 4px 0 0; font-size: 12px; color: var(--pp-text-2); }

/* Dot on the button of the bar the guide points at */
.pp-pill { position: relative; }
.pp-pill-dot {
    position: absolute; top: -3px; right: -3px; width: 10px; height: 10px; border-radius: 50%;
    background: var(--pp-accent); border: 2px solid var(--pp-bg);
}

/* Welcome shown to a user or a company with no profile yet */
.pp-welcome { margin: 0 0 16px; font-size: 20px; font-weight: 500; }

/* Help of a field: icon, text on hover or focus */
.pp-label-row { display: flex; align-items: baseline; gap: 6px; }
.pp-tip { position: relative; display: inline-flex; margin: 0 0 8px; font-size: 16px; color: var(--pp-text-3); cursor: help; outline: none; }
.pp-tip:hover, .pp-tip:focus { color: var(--pp-accent); }
.pp-tip-bubble {
    display: none; position: absolute; top: 24px; left: -8px; z-index: 10; box-sizing: border-box; width: 250px; padding: 8px 10px;
    font-size: 12px; font-weight: 400; line-height: 1.5; color: var(--pp-text); cursor: default;
    background: var(--pp-bg); border: .5px solid var(--pp-border-strong); border-radius: 8px;
}
.pp-tip:hover .pp-tip-bubble, .pp-tip:focus .pp-tip-bubble { display: block; }

/* ========== Confirmation popup (account created) ========== */
.pp-modal-backdrop {
    position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center;
    padding: 16px; background: rgba(0, 0, 0, .45);
}
.pp-modal {
    width: 100%; max-width: 380px; padding: 28px 24px; text-align: center;
    background: var(--pp-bg); color: var(--pp-text); border: .5px solid var(--pp-border-strong); border-radius: 16px;
}
.pp-modal-icon { font-size: 44px; color: var(--pp-success); }
.pp-modal-title { margin: 8px 0 6px; font-size: 18px; font-weight: 500; }
.pp-modal-text { margin: 0 0 16px; font-size: 14px; }
.pp-modal-bar { height: 4px; margin-bottom: 20px; overflow: hidden; border-radius: 999px; background: var(--pp-bg-soft); }
.pp-modal-bar span {
    display: block; height: 100%; background: var(--pp-success);
    animation-name: pp-modal-countdown; animation-timing-function: linear; animation-fill-mode: forwards;
}
@keyframes pp-modal-countdown { from { width: 100%; } to { width: 0; } }

/* ========== Login and account creation (AuthShell): brand panel + card ========== */
.pp-auth {
    box-sizing: border-box; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    width: calc(100% - 2rem); max-width: none; min-height: min(680px, calc(100dvh - 2rem)); margin: 0 auto; overflow: hidden;
    background: var(--pp-bg); color: var(--pp-text); border: .5px solid var(--pp-border); border-radius: 20px;
}
.pp-auth-side {
    display: flex; flex-direction: column; gap: 20px; padding: 32px 28px;
    background: var(--pp-accent-bg); color: var(--pp-text);
}
.pp-auth-brand { display: flex; align-items: center; gap: 10px; }
.pp-auth-logo {
    display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
    font-size: 24px; border-radius: 12px; background: var(--pp-accent); color: var(--pp-on-accent);
}
.pp-auth-brand-name { font-size: 18px; font-weight: 500; }
.pp-auth-badge {
    align-self: flex-start; padding: 3px 12px; font-size: 12px; font-weight: 500; border-radius: 999px;
    border: 1px solid var(--pp-accent); color: var(--pp-accent);
}
.pp-auth-pitch { margin-top: auto; margin-bottom: auto; }
.pp-auth-headline { margin: 0 0 20px; font-size: 24px; font-weight: 500; line-height: 1.3; }
.pp-auth-points { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 0; list-style: none; font-size: 14px; line-height: 1.45; }
.pp-auth-points li { display: flex; gap: 10px; align-items: flex-start; }
.pp-auth-points i { flex: none; font-size: 20px; color: var(--pp-accent); }

.pp-auth-main { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 32px 20px; }
.pp-auth-card { width: 100%; max-width: 400px; animation: pp-auth-in .15s ease-out; }
@keyframes pp-auth-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.pp-auth-head { margin-bottom: 22px; }
.pp-auth-title { margin: 0; font-size: 22px; font-weight: 500; }
.pp-auth-subtitle { margin: 4px 0 0; font-size: 14px; color: var(--pp-text-2); }
.pp-auth-legal { margin: 0; font-size: 12px; color: var(--pp-text-3); }

.pp-auth-input { position: relative; display: flex; align-items: center; }
.pp-auth-input > i { position: absolute; left: 12px; font-size: 18px; color: var(--pp-text-3); pointer-events: none; }
.pp-auth-input .pp-field { width: 100%; padding-left: 38px; }
.pp-auth-input .pp-field:focus { outline: 2px solid var(--pp-accent); outline-offset: 1px; }
.pp-auth-input .pp-field.invalid { border-color: var(--pp-danger); }
.pp-auth-input .pp-field:has(+ .pp-auth-eye) { padding-right: 42px; }
.pp-auth-eye {
    position: absolute; right: 6px; display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; padding: 0; border: none; border-radius: 50%; background: transparent;
    color: var(--pp-text-3); font-size: 18px; cursor: pointer;
}
.pp-auth-eye:hover { background: var(--pp-bg-soft); color: var(--pp-text); }
.pp-auth-eye:focus-visible, .pp-cta:focus-visible, .pp-auth-secondary:focus-visible { outline: 2px solid var(--pp-accent); outline-offset: 2px; }

.pp-auth-options { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; font-size: 13px; }
.pp-auth-remember { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }

.pp-auth-or { display: flex; align-items: center; gap: 12px; margin: 18px 0; font-size: 12px; color: var(--pp-text-3); }
.pp-auth-or::before, .pp-auth-or::after { content: ""; flex: 1; height: .5px; background: var(--pp-border-strong); }
.pp-auth-secondary {
    width: 100%; height: 46px; padding: 0 24px; border-radius: 999px; box-sizing: border-box;
    border: 1.5px solid var(--pp-border-strong); background: transparent; color: inherit;
    font: inherit; font-size: 14px; font-weight: 500; cursor: pointer;
}
.pp-auth-secondary:hover { background: var(--pp-bg-soft); }

@media (max-width: 800px) {
    .pp-auth { grid-template-columns: 1fr; border-radius: 16px; }
    .pp-auth-side { flex-direction: row; align-items: center; padding: 16px; }
    .pp-auth-pitch { display: none; }
    .pp-auth-badge { margin-left: auto; align-self: center; }
    .pp-auth-main { padding: 24px 16px; }
}

/* ========== Legal pages (Markdown written by the administration) ========== */
.pp-auth-link { color: inherit; text-decoration: underline; }
.pp-auth-link:hover { color: var(--pp-accent); }
.pp-auth-linkbtn { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
.pp-auth-linkbtn:hover { color: var(--pp-accent); }
.pp-legal-doc {
    box-sizing: border-box; width: 100%; max-width: 760px; margin: 0 auto; padding: 24px 24px 32px;
    background: var(--pp-bg); color: var(--pp-text); border: .5px solid var(--pp-border); border-radius: 20px;
    max-height: calc(100vh - 48px); overflow: auto;
}
.pp-legal-back { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--pp-text-2); text-decoration: none; }
.pp-legal-back:hover { color: var(--pp-accent); }
.pp-legal-title { margin: 16px 0 12px; font-size: 24px; font-weight: 500; }
.pp-legal-updated { margin: 24px 0 0; font-size: 12px; color: var(--pp-text-3); }
.pp-markdown { font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.pp-markdown h1, .pp-markdown h2, .pp-markdown h3 { margin: 24px 0 8px; font-weight: 500; line-height: 1.3; }
.pp-markdown h1 { font-size: 20px; } .pp-markdown h2 { font-size: 17px; } .pp-markdown h3 { font-size: 15px; }
.pp-markdown p, .pp-markdown ul, .pp-markdown ol { margin: 0 0 12px; }
.pp-markdown ul, .pp-markdown ol { padding-left: 22px; }
.pp-markdown a { color: var(--pp-accent); }
.pp-markdown table { border-collapse: collapse; margin: 0 0 12px; width: max-content; }
.pp-markdown th, .pp-markdown td { padding: 6px 10px; border: .5px solid var(--pp-border-strong); text-align: left; }
.pp-markdown blockquote { margin: 0 0 12px; padding-left: 12px; border-left: 3px solid var(--pp-border-strong); color: var(--pp-text-2); }
.pp-markdown code { padding: 1px 4px; border-radius: 4px; background: var(--pp-bg-soft); }

/* ========== Counter on a button of the bar ========== */
.pp-pill-count {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px;
    font-size: 12px; font-weight: 600; line-height: 1;
    background: var(--pp-accent); color: var(--pp-on-accent);
}
