*, *::before, *::after { box-sizing: border-box; }
:root {
    --pf-ink: #122033;
    --pf-muted: #5b6b7c;
    --pf-line: #dce5ef;
    --pf-soft: #eef3f8;
    --pf-panel: #ffffff;
    --pf-navy: #0b1f33;
    --pf-navy-2: #12324f;
    --pf-accent: #148f9a;
    --pf-accent-2: #0f6e78;
    --pf-warn: #b45309;
    --pf-ok: #0f766e;
    --pf-side: 268px;
    --pf-radius: 16px;
    --pf-shadow: 0 18px 40px rgba(15, 35, 55, .08);
}
html, body { min-height: 100%; }
body.pf-app {
    margin: 0;
    font-family: "Open Sans", system-ui, sans-serif;
    color: var(--pf-ink);
    background:
        radial-gradient(1100px 420px at 100% -10%, rgba(20, 143, 154, .12), transparent 60%),
        radial-gradient(900px 380px at 0% 0%, rgba(18, 50, 79, .08), transparent 55%),
        #f3f6fa;
    line-height: 1.5;
}
a { color: #0d5f8a; }
h1, h2, h3 { font-family: Montserrat, sans-serif; color: var(--pf-ink); margin: 0; }
p { margin: 0; }
code { font-size: .92em; }

/* Shell */
.pf-side {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--pf-side);
    background: linear-gradient(180deg, var(--pf-navy) 0%, #071521 100%);
    color: #e8eef5;
    display: flex;
    flex-direction: column;
    z-index: 40;
    border-right: 1px solid rgba(255,255,255,.06);
}
.pf-side__brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 18px 16px 14px;
}
.pf-side__brand > a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: inherit;
    text-decoration: none;
}
.pf-side__mark {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, var(--pf-accent), #1f6f9a);
    color: #fff;
    font-family: Montserrat, sans-serif;
    font-weight: 700;
}
.pf-side__brand strong { display: block; font-family: Montserrat, sans-serif; letter-spacing: .02em; }
.pf-side__brand small { color: #94a8bc; font-size: .75rem; }
.pf-side__close {
    display: none;
    border: 0;
    background: rgba(255,255,255,.08);
    color: #fff;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    cursor: pointer;
}
.pf-side__nav {
    display: grid;
    gap: 4px;
    padding: 8px 12px;
    flex: 1;
    overflow: auto;
}
.pf-side__label {
    margin: 14px 10px 6px;
    font-size: .72rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #7f93a8;
}
.pf-side__nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #c7d5e4;
    text-decoration: none;
    padding: 10px 12px;
    border-radius: 12px;
    transition: background .15s ease, color .15s ease;
}
.pf-side__nav a > i:first-child {
    width: 1.15em;
    text-align: center;
    opacity: .9;
    flex: 0 0 auto;
}
.pf-side__nav-text {
    display: grid;
    gap: 1px;
    min-width: 0;
    flex: 1;
}
.pf-side__nav-text strong {
    display: block;
    font-size: .92rem;
    font-weight: 600;
    color: inherit;
}
.pf-side__nav-text small {
    display: block;
    font-size: .72rem;
    color: #7f93a8;
    font-weight: 400;
}
.pf-side__ext {
    margin-left: auto;
    font-size: .72rem;
    opacity: .55;
    flex: 0 0 auto;
}
.pf-side__nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.pf-side__nav a:hover .pf-side__nav-text small { color: #a8bbc8; }
.pf-side__nav a:hover .pf-side__ext { opacity: .9; }
.pf-side__nav a.is-active {
    background: rgba(20, 143, 154, .22);
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(20, 143, 154, .35);
}
.pf-side__foot {
    padding: 12px;
    border-top: 1px solid rgba(255,255,255,.08);
    display: grid;
    gap: 10px;
}
.pf-side__user {
    display: flex;
    gap: 10px;
    align-items: center;
    color: inherit;
    text-decoration: none;
    padding: 8px;
    border-radius: 12px;
    transition: background .15s ease;
}
.pf-side__user:hover { background: rgba(255,255,255,.06); }
.pf-side__user strong { display: block; font-size: .9rem; }
.pf-side__user small { color: #94a8bc; font-size: .75rem; word-break: break-all; }
.pf-side__logout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    color: #fecaca;
    text-decoration: none;
    padding: 11px 12px;
    min-height: 42px;
    font-size: .9rem;
    font-weight: 600;
    border-radius: 12px;
    border: 1px solid rgba(248, 113, 113, .28);
    background: rgba(127, 29, 29, .28);
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.pf-side__logout:hover {
    background: rgba(185, 28, 28, .42);
    border-color: rgba(252, 165, 165, .45);
    color: #fff;
}
.pf-side__logout i { opacity: .95; }
.pf-nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(8, 16, 28, .45);
    z-index: 35;
}
.pf-shell {
    margin-left: var(--pf-side);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.pf-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 22px;
    background: rgba(247, 250, 252, .9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(220, 229, 239, .9);
}
.pf-topbar__actions .pf-btn--sm { font-weight: 600; }
.pf-menu-btn {
    display: none;
    border: 0;
    background: #fff;
    border: 1px solid var(--pf-line);
    width: 40px;
    height: 40px;
    border-radius: 12px;
    cursor: pointer;
    color: var(--pf-ink);
}
.pf-topbar__title { flex: 1; min-width: 0; }
.pf-topbar__title h1 { font-size: 1.15rem; }
.pf-topbar__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.pf-main {
    width: min(1180px, calc(100% - 40px));
    margin: 22px auto 48px;
    flex: 1;
}

.pf-avatar {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #1f4668;
    color: #fff;
    display: grid;
    place-items: center;
    font-family: Montserrat, sans-serif;
    font-weight: 700;
    overflow: hidden;
    flex: 0 0 auto;
}
.pf-avatar.has-photo { background: #0b1f33; }
.pf-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pf-avatar--xl { width: 96px; height: 96px; border-radius: 24px; font-size: 1.6rem; }

.pf-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-end;
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid color-mix(in srgb, var(--pf-line) 80%, transparent);
}
.pf-head > div { min-width: 0; flex: 1; }
.pf-head h2 { font-size: clamp(1.35rem, 2vw, 1.6rem); letter-spacing: -.02em; }
.pf-head p { margin-top: 8px; max-width: 68ch; color: var(--pf-muted); }
.pf-head__actions,
.pf-actions,
.pf-inline-form,
.pf-card form,
.pf-form__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}
.pf-head__actions { flex: 0 0 auto; justify-content: flex-end; }
.pf-form__actions {
    margin-top: 6px;
    padding-top: 16px;
    border-top: 1px solid var(--pf-line);
}
.pf-eyebrow {
    margin: 0 0 6px;
    font-size: .72rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--pf-accent-2);
    font-weight: 700;
}

/* Buttons */
.pf-btn, button.pf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: linear-gradient(180deg, var(--pf-navy-2) 0%, var(--pf-navy) 100%);
    color: #fff;
    text-decoration: none;
    padding: 11px 16px;
    min-height: 42px;
    font: inherit;
    font-weight: 600;
    letter-spacing: .01em;
    cursor: pointer;
    white-space: nowrap;
    width: fit-content;
    box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 8px 18px rgba(11, 31, 51, .14);
    transition: background .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.pf-btn i { font-size: .92em; opacity: .95; }
.pf-btn:hover {
    background: linear-gradient(180deg, #163a58 0%, var(--pf-navy-2) 100%);
    transform: translateY(-1px);
    box-shadow: 0 1px 0 rgba(255,255,255,.14) inset, 0 12px 22px rgba(11, 31, 51, .18);
}
.pf-btn:active { transform: none; }
.pf-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(20, 143, 154, .28), 0 8px 18px rgba(11, 31, 51, .14);
}
.pf-btn--ghost {
    background: #fff;
    color: var(--pf-navy);
    border-color: var(--pf-line);
    box-shadow: none;
}
.pf-btn--ghost:hover {
    background: var(--pf-soft);
    border-color: #c5d4e4;
    color: var(--pf-navy);
    box-shadow: none;
}
.pf-btn--soft {
    background: color-mix(in srgb, var(--pf-accent) 12%, #fff);
    color: var(--pf-accent-2);
    border-color: color-mix(in srgb, var(--pf-accent) 22%, #fff);
    box-shadow: none;
}
.pf-btn--soft:hover {
    background: color-mix(in srgb, var(--pf-accent) 18%, #fff);
    border-color: color-mix(in srgb, var(--pf-accent) 35%, #fff);
    box-shadow: none;
}
.pf-btn--danger {
    background: #fff;
    color: #9a3412;
    border-color: #f0d2c2;
    box-shadow: none;
}
.pf-btn--danger:hover {
    background: #fff7ed;
    border-color: #e8b89a;
    color: #7c2d12;
    box-shadow: none;
}
.pf-btn--sm {
    padding: 7px 12px;
    min-height: 34px;
    font-size: .86rem;
    border-radius: 10px;
    box-shadow: none;
}
.pf-btn--sm:hover { box-shadow: none; }
.pf-btn:disabled, .pf-btn[aria-disabled="true"] {
    opacity: .55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
.pf-link {
    color: var(--pf-accent-2);
    text-decoration: none;
    font-weight: 600;
    font-size: .92rem;
}
.pf-link:hover { text-decoration: underline; }

.pf-card, .pf-form, .pf-preview, .pf-stat, .pf-empty-panel {
    background: var(--pf-panel);
    border: 1px solid var(--pf-line);
    border-radius: var(--pf-radius);
    padding: 18px;
}
.pf-card--lift { box-shadow: var(--pf-shadow); }
.pf-card__head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
}
.pf-card__head h2, .pf-card__head h3 { margin: 0; font-size: 1.05rem; }
.pf-card h2, .pf-card h3, .pf-preview { margin-bottom: 8px; }
.pf-card p, .pf-note { color: var(--pf-muted); margin: 8px 0 14px; }
.pf-card > .pf-actions,
.pf-card > form + form { margin-top: 10px; }
ul.pf-note { padding-left: 18px; }
ul.pf-note li { margin: 6px 0; }
.pf-empty, .pf-empty-panel { color: var(--pf-muted); text-align: center; }
.pf-empty-panel {
    padding: 48px 20px;
    display: grid;
    gap: 10px;
    justify-items: center;
}
.pf-empty-panel i { font-size: 1.8rem; color: var(--pf-accent); }

.pf-badge, .pf-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: #e7f6f1;
    color: var(--pf-ok);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    padding: 3px 8px;
    text-transform: uppercase;
}
.pf-badge--quiet, .pf-chip--off { background: var(--pf-soft); color: #33506e; }
.pf-chip--ok { background: #dff7f1; color: #0f766e; }
.pf-chip--warn { background: #fff4e5; color: var(--pf-warn); }
.pf-chip--teal { background: #e0f5f7; color: var(--pf-accent-2); }

/* Dashboard */
.pf-dash-hero {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-end;
    margin-bottom: 20px;
    padding: clamp(22px, 3vw, 28px);
    border-radius: 20px;
    background:
        radial-gradient(700px 240px at 100% 0%, rgba(20, 143, 154, .28), transparent 55%),
        linear-gradient(135deg, rgba(11, 31, 51, .98), rgba(18, 50, 79, .94));
    color: #edf3f8;
    box-shadow: var(--pf-shadow);
}
.pf-dash-hero h2 { color: #fff; font-size: clamp(1.45rem, 2.2vw, 1.75rem); margin-bottom: 8px; letter-spacing: -.02em; }
.pf-dash-hero p { color: #b7c7d8; max-width: 52ch; }
.pf-dash-hero .pf-eyebrow { color: #7fd4d8; }
.pf-dash-hero__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.pf-dash-hero .pf-btn {
    background: #fff;
    color: var(--pf-navy);
    border-color: transparent;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .18);
}
.pf-dash-hero .pf-btn:hover {
    background: #f3f7fb;
    color: var(--pf-navy);
}
.pf-dash-hero .pf-btn--ghost {
    background: rgba(255,255,255,.1);
    color: #fff;
    border-color: rgba(255,255,255,.18);
    box-shadow: none;
}
.pf-dash-hero .pf-btn--ghost:hover {
    background: rgba(255,255,255,.18);
    color: #fff;
}

.pf-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 16px;
}
.pf-stat {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 16px;
}
.pf-stat__ico {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: #e8f0f8;
    color: var(--pf-navy);
    flex: 0 0 auto;
}
.pf-stat__ico--mint { background: #e5f7f1; color: #0f766e; }
.pf-stat__ico--amber { background: #fff1df; color: #b45309; }
.pf-stat__ico--teal { background: #e0f5f7; color: var(--pf-accent-2); }
.pf-stat strong { display: block; font-family: Montserrat, sans-serif; font-size: 1.45rem; }
.pf-stat span { color: var(--pf-muted); font-size: .9rem; }
.pf-stat small { display: block; color: #7c8b9b; font-size: .78rem; margin-top: 2px; }

.pf-dash-grid, .pf-grid, .pf-split, .pf-theme-list { display: grid; gap: 14px; }
.pf-dash-grid, .pf-grid, .pf-split { grid-template-columns: 1fr 1fr; margin-bottom: 14px; }
.pf-dash-grid--wide { grid-template-columns: 1.2fr .8fr; }
.pf-theme-list { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }

.pf-quick {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.pf-quick a {
    display: grid;
    gap: 8px;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid var(--pf-line);
    background: #f8fafc;
    text-decoration: none;
    color: var(--pf-ink);
    font-weight: 600;
    transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.pf-quick a:hover {
    border-color: #b9cce0;
    background: #fff;
    transform: translateY(-1px);
}
.pf-quick i {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: color-mix(in srgb, var(--pf-accent) 12%, #fff);
    color: var(--pf-accent-2);
}

.pf-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pf-list a {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid var(--pf-line);
    text-decoration: none;
    color: inherit;
    background: #fbfcfe;
}
.pf-list a:hover { border-color: #b9cce0; }
.pf-list__title { display: grid; gap: 2px; }
.pf-list__title small { color: var(--pf-muted); }

.pf-theme-mini { display: grid; gap: 8px; }
.pf-theme-mini__card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--pf-line);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    background: #fbfcfe;
}
.pf-theme-mini__card:hover { border-color: #b9cce0; }
.pf-theme-mini__card small { color: var(--pf-muted); }

/* Sites */
.pf-site-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}
.pf-site-card {
    background: #fff;
    border: 1px solid var(--pf-line);
    border-radius: 18px;
    overflow: hidden;
    display: grid;
    grid-template-rows: auto 1fr;
    box-shadow: 0 10px 24px rgba(15, 35, 55, .04);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.pf-site-card:hover {
    transform: translateY(-3px);
    border-color: #c5d4e4;
    box-shadow: 0 18px 36px rgba(15, 35, 55, .1);
}
.pf-site-card.is-off { opacity: .88; }
.pf-site-card__preview {
    position: relative;
    min-height: 132px;
    background:
        radial-gradient(420px 160px at 100% 0%, color-mix(in srgb, var(--a) 28%, transparent), transparent 60%),
        linear-gradient(160deg, color-mix(in srgb, var(--p) 22%, #fff), #f4f7fb);
    padding: 14px 14px 12px;
    display: grid;
    gap: 0;
}
.pf-site-card__browser {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 28px;
    padding: 0 10px;
    border-radius: 10px 10px 0 0;
    background: color-mix(in srgb, var(--p) 92%, #000);
    color: #fff;
}
.pf-site-card__dots {
    display: inline-flex;
    gap: 4px;
}
.pf-site-card__dots i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,.35);
    display: block;
}
.pf-site-card__url {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: .72rem;
    opacity: .85;
    letter-spacing: .02em;
}
.pf-site-card__stage {
    background: #fff;
    border: 1px solid rgba(0,0,0,.05);
    border-top: 0;
    border-radius: 0 0 10px 10px;
    padding: 10px;
    display: grid;
    gap: 6px;
    min-height: 72px;
}
.pf-site-card__stage b {
    display: block;
    height: 8px;
    border-radius: 4px;
    background: #e8eef5;
}
.pf-site-card__stage b:first-child {
    height: 32px;
    background: linear-gradient(120deg, var(--p), var(--s));
}
.pf-site-card__status {
    position: absolute;
    right: 18px;
    bottom: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
}
.pf-site-card__body {
    padding: 16px;
    display: grid;
    gap: 14px;
    align-content: start;
}
.pf-site-card__top h3 {
    font-size: 1.08rem;
    letter-spacing: -.01em;
    margin: 0 0 8px;
}
.pf-site-card__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pf-site-card__meta {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
    color: var(--pf-muted);
    font-size: .88rem;
}
.pf-site-card__meta li {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.pf-site-card__meta i {
    width: 1.1em;
    color: #7c8b9b;
    flex: 0 0 auto;
}
.pf-site-card__meta span,
.pf-site-card__meta a {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.pf-site-card__meta a {
    color: var(--pf-accent-2);
    text-decoration: none;
    font-weight: 600;
}
.pf-site-card__meta a:hover { text-decoration: underline; }
.pf-site-card__actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--pf-soft);
}
.pf-site-card__actions .pf-btn { flex: 0 1 auto; }
.pf-site-card__actions form { display: inline-flex; margin: 0; }

/* Themes catalog + tabs */
.pf-tabs,
.pf-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
    padding: 6px;
    background: #fff;
    border: 1px solid var(--pf-line);
    border-radius: 16px;
    width: fit-content;
    max-width: 100%;
    box-shadow: 0 8px 20px rgba(15, 35, 55, .04);
}
.pf-tabs__btn,
.pf-filters button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid transparent;
    background: transparent;
    color: #475569;
    border-radius: 12px;
    padding: 9px 14px;
    min-height: 40px;
    font: inherit;
    font-weight: 600;
    font-size: .88rem;
    cursor: pointer;
    transition: background .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease;
}
.pf-tabs__btn i,
.pf-filters button i {
    font-size: .9em;
    opacity: .85;
}
.pf-tabs__btn:hover,
.pf-filters button:hover {
    background: var(--pf-soft);
    color: var(--pf-ink);
}
.pf-tabs__btn:focus-visible,
.pf-filters button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(20, 143, 154, .2);
}
.pf-tabs__btn.is-on,
.pf-filters button.is-on {
    background: linear-gradient(180deg, var(--pf-navy-2) 0%, var(--pf-navy) 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 8px 16px rgba(11, 31, 51, .16);
}
.pf-tabs__btn.is-on i,
.pf-filters button.is-on i { opacity: 1; }
.pf-tabs__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--pf-soft);
    color: #475569;
    font-style: normal;
    font-size: .75rem;
    font-weight: 700;
    line-height: 1;
}
.pf-tabs__btn.is-on .pf-tabs__count {
    background: rgba(255,255,255,.18);
    color: #fff;
}
.pf-catalog {
    display: grid;
    gap: 18px;
    min-height: 120px;
}
.pf-catalog[data-empty="1"]::after {
    content: 'Aucun habillage pour cette audience.';
    display: grid;
    place-items: center;
    padding: 36px 18px;
    border: 1px dashed var(--pf-line);
    border-radius: 16px;
    background: #fff;
    color: var(--pf-muted);
    font-size: .95rem;
}
.pf-pack {
    display: grid;
    grid-template-columns: minmax(240px, 320px) 1fr;
    gap: 0;
    background: #fff;
    border: 1px solid var(--pf-line);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(15, 35, 55, .05);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.pf-pack:hover {
    transform: translateY(-2px);
    border-color: #c5d4e4;
    box-shadow: 0 18px 40px rgba(15, 35, 55, .1);
}
.pf-pack__visual {
    min-height: 100%;
    background:
        linear-gradient(180deg, #eef3f8 0%, #f8fafc 100%);
    border-right: 1px solid var(--pf-soft);
}
.pf-pack__body {
    padding: 20px;
    display: grid;
    gap: 14px;
    align-content: start;
}
.pf-pack__title { display: grid; gap: 8px; }
.pf-pack__badges { display: flex; flex-wrap: wrap; gap: 8px; }
.pf-pack__title h3 {
    margin: 0;
    font-size: 1.35rem;
    letter-spacing: -.02em;
}
.pf-pack__title p {
    margin: 0;
    color: var(--pf-muted);
    max-width: 62ch;
}
.pf-pack__empty {
    margin: 0;
    color: var(--pf-muted);
    font-size: .9rem;
}
.pf-pack__foot {
    display: flex;
    justify-content: flex-end;
    margin-top: 2px;
    padding-top: 14px;
    border-top: 1px solid var(--pf-soft);
}
.pf-areas { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.pf-areas li {
    background: var(--pf-soft);
    border-radius: 999px;
    padding: 5px 10px;
    font-size: .8rem;
    color: #334155;
    font-weight: 600;
}
.pf-variants { display: grid; gap: 8px; }
.pf-variants__label {
    margin: 0;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #7c8b9b;
}
.pf-variants__list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 8px;
}
.pf-variant {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid var(--pf-line);
    border-radius: 12px;
    text-decoration: none;
    color: var(--pf-ink);
    background: #fbfcfe;
    transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.pf-variant:hover {
    border-color: #adc2d8;
    background: #fff;
    transform: translateY(-1px);
}
.pf-variant__text {
    display: grid;
    gap: 2px;
    min-width: 0;
}
.pf-variant__text strong {
    font-size: .9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.pf-variant__text small { color: var(--pf-muted); font-size: .75rem; }
.pf-variant__edit {
    color: #94a3b8;
    font-size: .78rem;
}
.pf-variant:hover .pf-variant__edit { color: var(--pf-accent-2); }
.pf-mock {
    height: 100%;
    min-height: 240px;
    background: #f6f8fb;
    position: relative;
    overflow: hidden;
}
.pf-pack__visual .pf-mock { min-height: 100%; }
.pf-mock__bar {
    height: 26px;
    display: flex;
    gap: 5px;
    align-items: center;
    padding: 0 12px;
    background: var(--p);
}
.pf-mock__bar i {
    width: 20px;
    height: 4px;
    border-radius: 99px;
    background: rgba(255,255,255,.75);
    display: block;
}
.pf-mock__stage { display: grid; gap: 8px; padding: 14px; }
.pf-mock__stage b { display: block; height: 10px; border-radius: 4px; background: #fff; }
.pf-mock--classique .pf-mock__stage { grid-template-columns: 1.4fr .6fr; }
.pf-mock--classique .pf-mock__stage b:first-child { grid-row: span 3; height: 78px; background: linear-gradient(160deg, var(--p), var(--s)); }
.pf-mock--siege .pf-mock__bar { background: #fff; border-bottom: 1px solid #e5eeea; }
.pf-mock--siege .pf-mock__bar i { background: var(--p); }
.pf-mock--siege .pf-mock__stage { grid-template-columns: 1fr 1fr; }
.pf-mock--siege .pf-mock__stage b:first-child { height: 28px; background: var(--p); }
.pf-mock--siege .pf-mock__stage b:nth-child(2) { height: 64px; background: var(--s); border-radius: 10px; }
.pf-mock--atelier { background: #14110e; }
.pf-mock--atelier .pf-mock__bar { background: transparent; }
.pf-mock--atelier .pf-mock__stage b { background: rgba(255,255,255,.16); }
.pf-mock--atelier .pf-mock__stage b:first-child { height: 36px; width: 70%; background: #f4efe6; }
.pf-mock--ligne { background: #111; }
.pf-mock--ligne .pf-mock__bar { background: transparent; }
.pf-mock--ligne .pf-mock__stage b:first-child { height: 34px; width: 62%; background: #f7f4ee; }
.pf-mock--ligne .pf-mock__stage b:nth-child(2) { width: 28%; background: #ff4d1c; }

.pf-choice {
    display: grid;
    grid-template-columns: 168px 1fr;
    gap: 12px;
    align-items: center;
    padding: 8px;
    border: 1px solid var(--pf-line);
    border-radius: 14px;
    cursor: pointer;
}
.pf-choice input { position: absolute; opacity: 0; pointer-events: none; }
.pf-choice.is-on { border-color: var(--pf-navy); box-shadow: 0 0 0 2px rgba(11, 31, 51, .12); }
.pf-choice span { display: grid; gap: 4px; color: var(--pf-muted); font-size: .9rem; }
.pf-choice strong { color: var(--pf-ink); font-family: Montserrat, sans-serif; }
.pf-choice em { font-style: normal; color: var(--pf-ok); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; }
.pf-choice .pf-mock { height: 92px; border-radius: 10px; min-height: 92px; }
.pf-choices:not(.pf-form-section),
.pf-colors:not(.pf-form-section),
.pf-gradient:not(.pf-form-section),
.pf-fonts:not(.pf-form-section) {
    border: 0;
    margin: 0;
    padding: 0;
}
.pf-choices legend, .pf-colors legend, .pf-gradient legend, .pf-fonts legend {
    font-family: Montserrat, sans-serif;
    color: var(--pf-ink);
    margin-bottom: 4px;
    font-size: .95rem;
}
.pf-choices { display: grid; gap: 10px; }
.pf-colors input[type="color"] { width: 64px; height: 40px; }
.pf-gradient {
    display: grid;
    gap: 12px;
}
.pf-grad-preview {
    height: 56px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: linear-gradient(155deg, #001c38, #002e5b, #2375ff);
}
.pf-colors--grad { margin: 0; }
.pf-fonts {
    display: grid;
    gap: 10px;
}
.pf-font-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
}
.pf-font-card {
    position: relative;
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.pf-font-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.pf-font-card__sample {
    font-size: 1.7rem;
    font-weight: 700;
    line-height: 1;
    color: var(--pf-ink, #0f172a);
}
.pf-font-card strong {
    font-size: .88rem;
    color: #0f172a;
}
.pf-font-card em {
    font-style: normal;
    font-size: .72rem;
    color: #64748b;
}
.pf-font-card:hover {
    border-color: #94a3b8;
    transform: translateY(-1px);
}
.pf-font-card.is-on {
    border-color: var(--pf-accent, #2375ff);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--pf-accent, #2375ff) 22%, transparent);
}

/* Forms */
.pf-form {
    display: grid;
    gap: 16px;
    max-width: 760px;
}
.pf-card > .pf-form,
.pf-editor .pf-form,
.pf-modal .pf-form {
    max-width: none;
    background: transparent;
    border: 0;
    padding: 0;
    border-radius: 0;
}
.pf-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.pf-form-section,
.pf-form fieldset.pf-form-section {
    margin: 0;
    padding: 16px;
    border: 1px solid var(--pf-line);
    border-radius: 14px;
    background: #f8fafc;
    display: grid;
    gap: 14px;
}
.pf-form-section > legend,
.pf-form fieldset.pf-form-section > legend {
    font-family: Montserrat, sans-serif;
    font-size: .95rem;
    font-weight: 700;
    color: var(--pf-ink);
    padding: 0 6px;
}
.pf-form-section > .pf-note,
.pf-form fieldset.pf-form-section > .pf-note {
    margin: 0;
}
.pf-form label,
.pf-colors label {
    display: grid;
    gap: 7px;
    font-size: .84rem;
    font-weight: 600;
    color: #334155;
    letter-spacing: .01em;
}
.pf-form label > span,
.pf-field__label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.pf-form .pf-hint {
    margin: -2px 0 0;
    font-size: .8rem;
    font-weight: 400;
    color: var(--pf-muted);
    line-height: 1.4;
}
.pf-form input[type="text"],
.pf-form input[type="email"],
.pf-form input[type="password"],
.pf-form input[type="url"],
.pf-form input[type="tel"],
.pf-form input[type="number"],
.pf-form input[type="search"],
.pf-form input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):not([type="hidden"]):not([type="file"]),
.pf-form select,
.pf-form textarea,
.pf-key {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--pf-line);
    border-radius: 12px;
    padding: 11px 13px;
    font: inherit;
    font-weight: 400;
    color: var(--pf-ink);
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.pf-form textarea {
    min-height: 96px;
    resize: vertical;
    line-height: 1.45;
}
.pf-form select {
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, #64748b 50%),
        linear-gradient(135deg, #64748b 50%, transparent 50%);
    background-position:
        calc(100% - 16px) calc(50% - 2px),
        calc(100% - 11px) calc(50% - 2px);
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    padding-right: 36px;
}
.pf-form input::placeholder,
.pf-form textarea::placeholder {
    color: #94a3b8;
}
.pf-form input:hover,
.pf-form select:hover,
.pf-form textarea:hover,
.pf-key:hover {
    border-color: #c5d4e4;
}
.pf-form input:focus,
.pf-form select:focus,
.pf-form textarea:focus,
.pf-key:focus {
    outline: none;
    border-color: color-mix(in srgb, var(--pf-accent) 55%, var(--pf-line));
    box-shadow: 0 0 0 3px rgba(20, 143, 154, .16);
}
.pf-form input:disabled,
.pf-form select:disabled,
.pf-form textarea:disabled {
    background: var(--pf-soft);
    color: #64748b;
    cursor: not-allowed;
    opacity: 1;
}
.pf-form input[type="color"] {
    width: 56px;
    height: 40px;
    min-height: 40px;
    padding: 3px;
    border-radius: 10px;
    border: 1px solid var(--pf-line);
    background: #fff;
    cursor: pointer;
}
.pf-check {
    grid-template-columns: 20px 1fr;
    align-items: start;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid var(--pf-line);
    border-radius: 12px;
    background: #fff;
    font-weight: 500;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease;
}
.pf-check:hover { border-color: #c5d4e4; background: #fbfcfe; }
.pf-check:has(input:checked) {
    border-color: color-mix(in srgb, var(--pf-accent) 40%, var(--pf-line));
    background: color-mix(in srgb, var(--pf-accent) 7%, #fff);
}
.pf-check input[type="checkbox"],
.pf-check input[type="radio"] {
    width: 18px;
    height: 18px;
    min-height: 0;
    margin: 2px 0 0;
    accent-color: var(--pf-accent);
    cursor: pointer;
}
.pf-colors {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}
.pf-colors label {
    min-width: 110px;
}
.pf-editor { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.pf-preview {
    --p: #002e5b;
    --s: #2375ff;
    --a: #5ec8ff;
    --r: 16px;
    overflow: hidden;
    padding: 0;
}
.pf-preview__bar { display: flex; gap: 10px; align-items: center; padding: 12px 14px; background: var(--g, var(--p)); color: #fff; }
.pf-preview__bar span { width: 18px; height: 18px; border-radius: 50%; background: var(--a); }
.pf-preview__hero { margin: 14px; padding: 16px; border-radius: var(--r); background: color-mix(in srgb, var(--p) 8%, #fff); }
.pf-preview__hero strong { color: var(--p); font-family: var(--f, Montserrat, sans-serif); }
.pf-preview__hero p { font-family: var(--f, inherit); margin: 8px 0 12px; color: #3d4b5c; }
.pf-preview__hero button { border: 0; border-radius: var(--r); background: var(--g, var(--s)); color: #fff; padding: 8px 12px; }
.pf-preview__footer {
    margin: 0 14px 14px;
    padding: 12px 14px;
    border-radius: var(--r, 12px);
    background: var(--fb, #071525);
    color: #e8eef5;
    font-size: .78rem;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.pf-preview[data-pack="siege"] .pf-preview__hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 10px; background: #fff; border: 1px solid #e4ebe7; }
.pf-preview[data-pack="siege"] .pf-preview__hero button { background: var(--s); }
.pf-preview[data-pack="atelier"] { background: #14110e; }
.pf-preview[data-pack="atelier"] .pf-preview__bar { background: transparent; }
.pf-preview[data-pack="atelier"] .pf-preview__hero { background: transparent; }
.pf-preview[data-pack="atelier"] .pf-preview__hero strong,
.pf-preview[data-pack="atelier"] .pf-preview__hero p { color: #f7f3ec; }
.pf-preview[data-pack="ligne"] { background: #111; }
.pf-preview[data-pack="ligne"] .pf-preview__bar { background: transparent; }
.pf-preview[data-pack="ligne"] .pf-preview__hero { background: transparent; }
.pf-preview[data-pack="ligne"] .pf-preview__hero strong { color: #f7f4ee; font-size: 1.4rem; }
.pf-preview[data-pack="ligne"] .pf-preview__hero p { color: #d9d3cb; }
.pf-preview[data-pack="ligne"] .pf-preview__hero button { background: #ff4d1c; }

.pf-table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--pf-line); border-radius: 14px; }
.pf-table { width: 100%; border-collapse: collapse; }
.pf-table th, .pf-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid #eef2f6; vertical-align: top; }
.pf-table th { font-size: .82rem; color: #5b6775; }
.pf-table small { display: block; color: var(--pf-muted); }
.pf-theme { display: grid; gap: 6px; text-decoration: none; color: inherit; }
.pf-swatches { display: flex; gap: 4px; }
.pf-swatches i {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: block;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
}
.pf-code, .pf-key { font-family: ui-monospace, Consolas, monospace; font-size: .82rem; }
.pf-code { white-space: pre-wrap; background: var(--pf-soft); border-radius: 10px; padding: 12px; }
.pf-warn { color: #9a3412; }
.pf-delete {
    margin-top: 18px;
    padding: 16px 18px;
    border: 1px dashed #f0d2c2;
    border-radius: var(--pf-radius);
    background: #fffaf7;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}
.pf-delete p {
    margin: 0;
    color: #9a3412;
    font-size: .92rem;
}
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; margin-bottom: 16px; background: #fff; border: 1px solid var(--pf-line); }
.alert__text { margin: 0; flex: 1; }
.alert--success { background: #ecfdf3; }
.alert--danger, .alert--warning { background: #fff7ed; }
.alert--info { background: #eff6ff; }

/* Profile */
.pf-profile { display: grid; gap: 14px; }
.pf-profile__hero {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 18px;
    align-items: center;
}
.pf-profile__photo { display: grid; gap: 10px; justify-items: start; }
.pf-profile__meta h3 { margin-bottom: 4px; }
.pf-profile__meta p { color: var(--pf-muted); }
.pf-profile__meta ul {
    list-style: none;
    margin: 14px 0 0;
    padding: 0;
    display: grid;
    gap: 8px;
    color: #334155;
}
.pf-profile__meta li { display: flex; gap: 8px; align-items: center; }
.pf-profile__meta i { color: var(--pf-accent-2); width: 1.1em; }
.pf-file {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1px dashed #b7c7d8;
    border-radius: 12px;
    cursor: pointer;
    background: #f8fafc;
    color: #334155;
    font-size: .9rem;
    font-weight: 600;
    transition: border-color .15s ease, background .15s ease;
}
.pf-file:hover {
    border-color: var(--pf-accent);
    background: color-mix(in srgb, var(--pf-accent) 6%, #fff);
}
.pf-file input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pf-key {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .86rem;
    letter-spacing: .02em;
}

/* Systems + modal */
.pf-systems { margin-bottom: 14px; }
.pf-systems__head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 12px;
}
.pf-systems__head p { margin: 8px 0 0; color: var(--pf-muted); max-width: 62ch; }
.pf-systems__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
}
.pf-systems__list li {
    display: grid;
    gap: 6px;
    padding: 12px;
    border: 1px solid var(--pf-line);
    border-radius: 12px;
    background: #f8fafc;
}
.pf-systems__list strong { color: var(--pf-ink); font-size: .92rem; }
.pf-systems__list small { color: var(--pf-muted); }

.pf-modal[hidden] { display: none !important; }
.pf-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(15, 23, 42, .48);
}
.pf-modal__dialog {
    width: min(720px, 100%);
    max-height: min(90vh, 880px);
    overflow: auto;
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--pf-line);
    box-shadow: 0 24px 60px rgba(15, 23, 42, .22);
}
.pf-modal__head, .pf-modal__foot {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    padding: 16px 18px;
    border-bottom: 1px solid #eef2f6;
}
.pf-modal__foot {
    border-bottom: 0;
    border-top: 1px solid #eef2f6;
    justify-content: flex-end;
    align-items: center;
    background: #fbfcfe;
}
.pf-modal__head h2 { margin: 0; font-size: 1.2rem; }
.pf-modal__head p { margin: 6px 0 0; color: var(--pf-muted); }
.pf-modal__close {
    border: 0;
    background: #eef2f6;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    color: #334155;
}
.pf-modal__body { padding: 16px 18px; display: grid; gap: 16px; }
.pf-mod-block {
    margin: 0;
    padding: 16px;
    border: 1px solid var(--pf-line);
    border-radius: 14px;
    display: grid;
    gap: 12px;
    background: #f8fafc;
}
.pf-mod-block legend {
    font-family: Montserrat, sans-serif;
    color: var(--pf-ink);
    padding: 0 6px;
    font-size: .95rem;
}
.pf-modal__body .pf-check {
    background: #fff;
}
.pf-mod-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.pf-mod-grid label:last-child { grid-column: 1 / -1; }
.pf-pay-list { display: grid; gap: 10px; }
.pf-pay {
    border: 1px solid var(--pf-line);
    border-radius: 12px;
    padding: 12px;
    display: grid;
    gap: 10px;
    background: #f8fafc;
}
.pf-pay__fields { display: grid; gap: 10px; }
.pf-pay__fields[hidden] { display: none !important; }
.pf-pay__fields textarea {
    width: 100%;
    border: 1px solid var(--pf-line);
    border-radius: 10px;
    padding: 10px 12px;
    font: inherit;
    resize: vertical;
}
.pf-mod-block.is-dim { opacity: .55; }

body.pf-nav-open { overflow: hidden; }

@media (max-width: 1100px) {
    .pf-stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
    .pf-side {
        transform: translateX(-105%);
        transition: transform .22s ease;
    }
    body.pf-nav-open .pf-side { transform: translateX(0); }
    .pf-side__close, .pf-menu-btn { display: inline-grid; place-items: center; }
    .pf-shell { margin-left: 0; }
    .pf-dash-hero, .pf-dash-grid, .pf-grid, .pf-split, .pf-editor, .pf-pack, .pf-choice, .pf-mod-grid, .pf-form-grid, .pf-profile__hero, .pf-quick {
        grid-template-columns: 1fr;
    }
    .pf-dash-hero { align-items: start; }
    .pf-head, .pf-systems__head { align-items: start; flex-direction: column; }
    .pf-head__actions { width: 100%; justify-content: flex-start; }
    .pf-main { width: min(1180px, calc(100% - 28px)); }
}
@media (max-width: 640px) {
    .pf-stats { grid-template-columns: 1fr; }
    .pf-topbar { padding: 12px 14px; }
    .pf-form__actions .pf-btn { width: 100%; }
    .pf-tabs, .pf-filters {
        width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    .pf-tabs__btn span { white-space: nowrap; }
}
/* Login */
body.pf-login {
    min-height: 100vh;
    margin: 0;
    padding: 0;
    background: #071521;
}
.pf-login__wrap {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    min-height: 100vh;
}
.pf-login__panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    padding: clamp(28px, 6vw, 72px) clamp(24px, 7vw, 88px);
    background:
        radial-gradient(720px 320px at 0% 0%, rgba(20, 143, 154, .10), transparent 55%),
        #f7fafc;
    animation: pfLoginIn .55s ease both;
}
.pf-login__brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--pf-ink);
}
.pf-login__brand strong {
    display: block;
    font-family: Montserrat, sans-serif;
    font-size: 1.05rem;
    letter-spacing: .02em;
}
.pf-login__brand small {
    display: block;
    color: var(--pf-muted);
    font-size: .78rem;
}
.pf-login__intro h1 {
    font-size: clamp(1.7rem, 2.4vw, 2.15rem);
    letter-spacing: -.02em;
    margin-bottom: 8px;
}
.pf-login__intro p {
    color: var(--pf-muted);
    max-width: 36ch;
}
.pf-login__form {
    width: min(420px, 100%);
    gap: 16px;
    background: transparent;
    border: 0;
    padding: 0;
    border-radius: 0;
}
.pf-login__field {
    display: grid;
    gap: 8px;
    font-size: .9rem;
    font-weight: 600;
    color: var(--pf-ink);
}
.pf-login__control {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 12px 0 14px;
    background: #fff;
    border: 1px solid var(--pf-line);
    border-radius: 12px;
    transition: border-color .18s ease, box-shadow .18s ease;
}
.pf-login__control:focus-within {
    border-color: color-mix(in srgb, var(--pf-accent) 55%, var(--pf-line));
    box-shadow: 0 0 0 3px rgba(20, 143, 154, .18);
}
.pf-login__control > i {
    color: var(--pf-accent-2);
    width: 1.1em;
    text-align: center;
    opacity: .9;
}
.pf-login__control input {
    flex: 1;
    min-width: 0;
    border: 0 !important;
    background: transparent !important;
    padding: 12px 0 !important;
    box-shadow: none !important;
    outline: none;
    font: inherit;
    font-weight: 400;
    color: var(--pf-ink);
}
.pf-login__control input::placeholder { color: #94a3b8; }
.pf-login__toggle {
    border: 0;
    background: transparent;
    color: var(--pf-muted);
    width: 36px;
    height: 36px;
    border-radius: 10px;
    cursor: pointer;
    display: grid;
    place-items: center;
}
.pf-login__toggle:hover { background: var(--pf-soft); color: var(--pf-ink); }
.pf-login__submit {
    width: 100%;
    justify-content: center;
    margin-top: 4px;
    min-height: 48px;
}
.pf-login__panel .alert {
    width: min(420px, 100%);
    margin: 0;
    animation: pfLoginIn .4s ease both;
}
.pf-login__visual {
    position: relative;
    overflow: hidden;
    color: #e8eef5;
    background:
        linear-gradient(160deg, var(--pf-navy) 0%, #071521 48%, #0a2f3a 100%);
    display: grid;
    align-items: end;
    padding: clamp(28px, 5vw, 56px);
    animation: pfLoginVisual .7s ease both;
}
.pf-login__visual-glow {
    position: absolute;
    width: 55%;
    height: 55%;
    right: -8%;
    top: -10%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(20, 143, 154, .42), transparent 68%);
    animation: pfLoginGlow 8s ease-in-out infinite alternate;
}
.pf-login__visual-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(180deg, rgba(0,0,0,.55), transparent 85%);
    opacity: .55;
}
.pf-login__visual-copy {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 14px;
    max-width: 28ch;
}
.pf-login__visual-copy .pf-side__mark {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    font-size: 1.25rem;
    box-shadow: 0 16px 36px rgba(0, 0, 0, .28);
}
.pf-login__visual-copy p {
    font-family: Montserrat, sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.15;
}
.pf-login__visual-copy small {
    color: #94a8bc;
    font-size: .95rem;
    line-height: 1.45;
}
@keyframes pfLoginIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
}
@keyframes pfLoginVisual {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes pfLoginGlow {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(-6%, 8%) scale(1.08); }
}
@media (max-width: 900px) {
    .pf-login__wrap { grid-template-columns: 1fr; }
    .pf-login__visual {
        order: -1;
        min-height: 220px;
        align-items: center;
        padding: 36px 24px;
    }
    .pf-login__visual-copy { max-width: none; }
    .pf-login__visual-copy p { font-size: 1.55rem; }
    .pf-login__panel { padding: 32px 22px 48px; gap: 22px; }
}
@media (prefers-reduced-motion: reduce) {
    .pf-login__panel,
    .pf-login__visual,
    .pf-login__panel .alert,
    .pf-login__visual-glow,
    .pf-login__submit { animation: none; transition: none; }
}
