/* Paid layer: account, files, billing, sign-in and checkout pages.

   Plain CSS, no Tailwind build: Django serves it from the paidlayer app, so
   every paid tool gets the same file through sync_to_sites.py. It reads the
   site's own tokens (--ink, --brand, --border...), so each tool keeps its
   brand, font and buttons (.btn, .btn-primary, .btn-secondary, .field come
   from the site). A site tunes the frame by setting any --pl-* token in its
   own input.css under `html .pl`, which outranks this file (it loads after
   app.css), for example `html .pl { --pl-r-card: 8px; }`.

   The standard: .claude/skills/site-standards/SKILL.md, "Paid tools: account
   and sign-in pages". */

.pl {
  --pl-ink: var(--ink, #111827);
  --pl-text: var(--slate, #374151);
  --pl-muted: var(--muted, #6b7280);
  --pl-canvas: var(--canvas, var(--bg-soft, #f4f5f7));
  --pl-surface: var(--surface, #fff);
  --pl-line: rgba(17, 24, 39, 0.09);
  --pl-line-strong: rgba(17, 24, 39, 0.16);
  --pl-brand: var(--brand, #1f5c63);
  --pl-brand-ink: var(--brand-ink, var(--brand, #164349));
  --pl-brand-soft: color-mix(in srgb, var(--pl-brand) 9%, #fff);
  --pl-ok: var(--ok, #1d7a4c);
  --pl-ok-soft: color-mix(in srgb, var(--pl-ok) 11%, #fff);
  --pl-warn: var(--warn, #8a5a00);
  --pl-warn-soft: color-mix(in srgb, var(--pl-warn) 11%, #fff);
  --pl-bad: var(--bad, var(--danger, var(--stop, #b3261e)));
  --pl-r-card: 16px;
  --pl-r-ctl: 10px;
  --pl-sh-1: 0 1px 2px rgba(17, 24, 39, 0.05), 0 0 0 1px var(--pl-line);
  --pl-sh-2: 0 1px 2px rgba(17, 24, 39, 0.04), 0 14px 34px -16px rgba(17, 24, 39, 0.2), 0 0 0 1px var(--pl-line);
  --pl-ease: var(--ease-out, var(--ease, cubic-bezier(0.23, 1, 0.32, 1)));
  /* Brand hooks a site may set: a display face for page titles and the plan
     name (with its weight, tracking and a size factor, since a serif display
     reads smaller), and the colour of the strip on top of the plan card. */
  --pl-font-heading: inherit;
  --pl-heading-weight: 650;
  --pl-heading-track: -0.02em;
  --pl-heading-scale: 1;
  --pl-pass-bar: var(--pl-brand);

  background: var(--pl-canvas);
  color: var(--pl-text);
  padding: 28px 0 72px;
  min-height: calc(100svh - 56px);
  font-variant-numeric: tabular-nums;
}
/* The site footer sits flush under the grey canvas instead of after a white gap. */
body:has(.pl) > footer { margin-top: 0; }

.pl-wrap { width: 100%; max-width: 1080px; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 640px) { .pl-wrap { padding-inline: 28px; } .pl { padding-top: 40px; } }

.pl a:not(.btn) { color: var(--pl-brand-ink); text-underline-offset: 3px; }
.pl :focus-visible { outline: 2px solid var(--pl-brand); outline-offset: 2px; }

/* ---------- type ---------- */
.pl-h1 { color: var(--pl-ink); font-family: var(--pl-font-heading); font-size: calc(1.75rem * var(--pl-heading-scale)); line-height: 1.15; font-weight: var(--pl-heading-weight); letter-spacing: var(--pl-heading-track); margin: 0; text-wrap: balance; }
.pl-h2 { color: var(--pl-ink); font-size: 1rem; line-height: 1.3; font-weight: 650; letter-spacing: -0.005em; margin: 0; }
.pl-sub { color: var(--pl-muted); font-size: 0.95rem; line-height: 1.5; margin: 6px 0 0; }
.pl-label { color: var(--pl-muted); font-size: 0.8rem; font-weight: 550; letter-spacing: 0.01em; }
.pl-note { color: var(--pl-muted); font-size: 0.875rem; line-height: 1.55; }
.pl-num { color: var(--pl-ink); font-size: 2rem; font-weight: 650; letter-spacing: -0.03em; line-height: 1; }
.pl-break { overflow-wrap: anywhere; }
.pl-sub strong { color: var(--pl-ink); font-weight: 600; overflow-wrap: anywhere; }
/* Sites cap main p, li and dd at about 62ch for reading; app rows need the full width. */
.pl li, .pl dd, .pl .pl-row-title, .pl .pl-row-meta { max-width: none; }
.pl-chev { display: inline-flex; }

/* ---------- account shell ---------- */
.pl-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.pl-head .btn { flex: none; }
.pl-who { display: flex; align-items: center; gap: 14px; min-width: 0; }
.pl-avatar {
  flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: var(--pl-brand); color: #fff; font-weight: 650; font-size: 1.15rem; text-transform: uppercase;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), 0 6px 16px -8px var(--pl-brand);
}
.pl-grid { display: grid; gap: 20px; }
@media (min-width: 900px) { .pl-grid { grid-template-columns: 216px minmax(0, 1fr); gap: 32px; align-items: start; } }
.pl-main { display: grid; gap: 16px; min-width: 0; }

.pl-nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding: 2px 16px; }
.pl-nav::-webkit-scrollbar { display: none; }
.pl-nav-link {
  flex: none; display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 14px; border-radius: 999px;
  color: var(--pl-text) !important; text-decoration: none; font-weight: 550; font-size: 0.93rem;
  background: var(--pl-surface); box-shadow: var(--pl-sh-1);
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.12s var(--pl-ease);
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.pl-nav-link svg { color: var(--pl-muted); }
.pl-nav-link:active { transform: scale(0.97); }
.pl-nav-link[aria-current="page"] { background: var(--pl-ink); color: #fff !important; box-shadow: none; }
.pl-nav-link[aria-current="page"] svg { color: currentColor; }
.pl-count { margin-left: auto; min-width: 22px; padding: 1px 7px; border-radius: 999px; font-size: 0.75rem; font-weight: 600; text-align: center; background: var(--pl-canvas); color: var(--pl-muted); }
.pl-nav-link[aria-current="page"] .pl-count { background: rgba(255, 255, 255, 0.16); color: #fff; }
.pl-nav-sep, .pl-nav-out { display: none; }
@media (min-width: 900px) {
  .pl-nav { position: sticky; top: 84px; flex-direction: column; overflow: visible; margin: 0; padding: 0; }
  .pl-nav-link { border-radius: var(--pl-r-ctl); background: transparent; box-shadow: none; padding: 0 12px; }
  .pl-nav-link[aria-current="page"] { background: var(--pl-surface); color: var(--pl-ink) !important; box-shadow: var(--pl-sh-1); }
  .pl-nav-link[aria-current="page"] svg { color: var(--pl-brand); }
  .pl-nav-link[aria-current="page"] .pl-count { background: var(--pl-brand-soft); color: var(--pl-brand-ink); }
  .pl-nav-sep { display: block; height: 1px; background: var(--pl-line); margin: 10px 12px; }
  .pl-nav-out { display: block; }
  .pl-nav-out button { width: 100%; border: 0; cursor: pointer; font: inherit; }
}
@media (hover: hover) and (pointer: fine) {
  .pl-nav-link:not([aria-current="page"]):hover { background: color-mix(in srgb, var(--pl-ink) 5%, transparent); color: var(--pl-ink) !important; }
}

/* ---------- cards ---------- */
.pl-card { background: var(--pl-surface); border-radius: var(--pl-r-card); box-shadow: var(--pl-sh-1); }
.pl-card-pad { padding: 20px; }
@media (min-width: 640px) { .pl-card-pad { padding: 24px; } }
.pl-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--pl-line); }
@media (min-width: 640px) { .pl-card-head { padding: 18px 24px; } }
.pl-card-head a { font-size: 0.9rem; font-weight: 550; text-decoration: none; white-space: nowrap; }
.pl-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* The pass: the plan card, the one focal point of the account. A ticket with a
   perforated tear line between what you have and what you can do with it. */
.pl-pass { position: relative; background: var(--pl-surface); border-radius: var(--pl-r-card); box-shadow: var(--pl-sh-2); overflow: hidden; }
.pl-pass::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--pl-pass-bar); }
.pl-pass-top { padding: 24px 20px 20px; display: grid; gap: 18px; }
@media (min-width: 640px) { .pl-pass-top { padding: 28px 28px 24px; grid-template-columns: minmax(0, 1fr) auto; align-items: end; } }
.pl-pass-plan { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.pl-pass-name { color: var(--pl-ink); font-family: var(--pl-font-heading); font-size: calc(1.5rem * var(--pl-heading-scale)); font-weight: var(--pl-heading-weight); letter-spacing: var(--pl-heading-track); line-height: 1.15; margin: 0; }
.pl-tear { position: relative; height: 0; border-top: 1.5px dashed var(--pl-line-strong); margin: 0 18px; }
.pl-tear::before, .pl-tear::after { content: ""; position: absolute; top: -10px; width: 20px; height: 20px; border-radius: 50%; background: var(--pl-canvas); box-shadow: inset 0 0 0 1px var(--pl-line); }
.pl-tear::before { left: -28px; }
.pl-tear::after { right: -28px; }
.pl-pass-foot { padding: 16px 20px 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
@media (min-width: 640px) { .pl-pass-foot { padding: 18px 28px 22px; } }
.pl-stat { display: grid; gap: 6px; min-width: 160px; }
@media (min-width: 640px) { .pl-stat { text-align: right; justify-items: end; } }

.pl-meter { width: 100%; min-width: 200px; height: 8px; border-radius: 999px; background: var(--pl-canvas); box-shadow: inset 0 0 0 1px var(--pl-line); overflow: hidden; }
.pl-meter > span { display: block; height: 100%; min-width: 8px; border-radius: inherit; background: var(--pl-brand); transform-origin: left; animation: pl-grow 0.7s var(--pl-ease) both 0.1s; }
@keyframes pl-grow { from { transform: scaleX(0.04); } }

.pl-badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 600; white-space: nowrap; background: var(--pl-canvas); color: var(--pl-text); }
.pl-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.8; }
.pl-badge-ok { background: var(--pl-ok-soft); color: var(--pl-ok); }
.pl-badge-warn { background: var(--pl-warn-soft); color: var(--pl-warn); }
.pl-badge-brand { background: var(--pl-brand-soft); color: var(--pl-brand-ink); }
.pl-badge-plain::before { display: none; }

/* ---------- lists ---------- */
.pl-list { list-style: none; margin: 0; padding: 0; }
.pl-row { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-top: 1px solid var(--pl-line); }
.pl-row:first-child { border-top: 0; }
@media (min-width: 640px) { .pl-row { padding: 14px 24px; } }
.pl-row-body { flex: 1; min-width: 0; }
.pl-row-title { color: var(--pl-ink); font-weight: 600; overflow-wrap: anywhere; line-height: 1.35; margin: 0; }
.pl-row-meta { color: var(--pl-muted); font-size: 0.85rem; margin: 2px 0 0; }
.pl-row-actions .btn { white-space: nowrap; }
.pl-row-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
@media (max-width: 639px) {
  .pl-row-wrap { flex-wrap: wrap; }
  .pl-row-wrap .pl-row-actions { width: 100%; justify-content: stretch; }
  .pl-row-wrap .pl-row-actions .btn { flex: 1; }
}
.pl-file { flex: none; position: relative; width: 40px; height: 48px; border-radius: 6px 12px 6px 6px; background: var(--pl-brand-soft); color: var(--pl-brand-ink); display: grid; place-items: end center; padding-bottom: 7px; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.04em; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--pl-brand) 14%, transparent); }
.pl-file::after { content: ""; position: absolute; top: 0; right: 0; width: 12px; height: 12px; border-bottom-left-radius: 4px; background: color-mix(in srgb, var(--pl-brand) 18%, #fff); }
.pl-file svg { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); opacity: 0.85; }

/* Settings rows: label left, value right (stacked on a phone). */
.pl-kv { display: grid; gap: 4px; padding: 16px 20px; border-top: 1px solid var(--pl-line); }
.pl-kv:first-child { border-top: 0; }
@media (min-width: 640px) { .pl-kv { grid-template-columns: 180px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 16px 24px; } }
.pl-kv dt { color: var(--pl-muted); font-size: 0.875rem; font-weight: 550; }
.pl-kv dd { margin: 0; color: var(--pl-ink); font-weight: 550; overflow-wrap: anywhere; }
.pl-langs { display: flex; flex-wrap: wrap; gap: 6px; }
.pl-langs a { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 999px; font-size: 0.85rem; font-weight: 550; text-decoration: none; color: var(--pl-text) !important; box-shadow: inset 0 0 0 1px var(--pl-line-strong); }
.pl-langs a[aria-current="true"] { background: var(--pl-ink); color: #fff !important; box-shadow: none; }

/* ---------- empty state ---------- */
.pl-empty { display: grid; justify-items: center; text-align: center; gap: 8px; padding: 40px 24px 36px; }
.pl-empty-art { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: var(--pl-brand-soft); color: var(--pl-brand); margin-bottom: 6px; }
.pl-empty .pl-note { max-width: 34ch; }
.pl-empty .btn { margin-top: 10px; }

/* ---------- disclosure ---------- */
.pl-details { background: var(--pl-surface); border-radius: var(--pl-r-card); box-shadow: var(--pl-sh-1); }
.pl-details > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 16px 20px; color: var(--pl-ink); font-weight: 600; -webkit-tap-highlight-color: transparent; }
@media (min-width: 640px) { .pl-details > summary { padding: 18px 24px; } }
.pl-details > summary::-webkit-details-marker { display: none; }
.pl-details > summary small { display: block; color: var(--pl-muted); font-weight: 450; font-size: 0.85rem; margin-top: 2px; }
.pl-details > summary .pl-chev { margin-left: auto; flex: none; color: var(--pl-muted); transition: transform 0.2s var(--pl-ease); }
.pl-details[open] > summary .pl-chev { transform: rotate(180deg); }
.pl-details-body { padding: 0 20px 20px; display: grid; gap: 10px; color: var(--pl-text); font-size: 0.93rem; line-height: 1.6; }
@media (min-width: 640px) { .pl-details-body { padding: 0 24px 22px; } }
.pl-details-body p { margin: 0; }
.pl-details-body ul { margin: 0; padding-left: 1.1rem; display: grid; gap: 6px; }

/* ---------- plans (billing and pricing) ---------- */
.pl-plans { display: grid; gap: 14px; }
@media (min-width: 760px) { .pl-plans-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; } }
.pl-plan { position: relative; display: flex; flex-direction: column; background: var(--pl-surface); border-radius: var(--pl-r-card); box-shadow: var(--pl-sh-1); padding: 22px; }
.pl-plan-pick { box-shadow: 0 0 0 2px var(--pl-brand), 0 18px 40px -18px color-mix(in srgb, var(--pl-brand) 55%, transparent); }
.pl-plan-flag { position: absolute; top: -11px; left: 22px; height: 22px; padding: 0 10px; border-radius: 999px; background: var(--pl-brand); color: #fff; font-size: 0.75rem; font-weight: 650; display: inline-flex; align-items: center; }
.pl-plan-price { margin: 14px 0 0; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.pl-plan-price strong { color: var(--pl-ink); font-size: 2.1rem; font-weight: 650; letter-spacing: -0.03em; line-height: 1; }
.pl-plan-price span { color: var(--pl-muted); font-size: 0.9rem; }
.pl-checks { list-style: none; margin: 18px 0 0; padding: 18px 0 0; border-top: 1px solid var(--pl-line); display: grid; gap: 10px; font-size: 0.93rem; line-height: 1.45; }
.pl-checks li { display: flex; gap: 10px; align-items: flex-start; }
.pl-checks svg { flex: none; margin-top: 2px; color: var(--pl-brand); }
.pl-plan .btn { width: 100%; margin-top: auto; }
.pl-plan-btn { padding-top: 22px; margin-top: auto; }
.pl-plan-compact { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.pl-plan-compact .pl-row-body { min-width: 180px; }
.pl-plan-compact .btn { width: auto; margin: 0; }
.pl-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-top: 22px; color: var(--pl-muted); font-size: 0.875rem; }
.pl-trust span { display: inline-flex; align-items: center; gap: 7px; }
.pl-trust svg { color: var(--pl-ok); }

/* ---------- alerts ---------- */
.pl-alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--pl-r-ctl); font-size: 0.92rem; line-height: 1.5; background: var(--pl-warn-soft); color: var(--pl-warn); font-weight: 550; }
.pl-alert-bad { background: color-mix(in srgb, var(--pl-bad) 9%, #fff); color: var(--pl-bad); }
.pl-alert svg { flex: none; margin-top: 2px; }

/* ---------- sign-in and checkout frame ---------- */
.pl-auth { display: grid; place-items: start center; padding-top: 40px; }
@media (min-width: 640px) { .pl-auth { padding-top: 72px; } }
.pl-auth-card { width: 100%; max-width: 420px; margin-inline: auto; background: var(--pl-surface); border-radius: 20px; box-shadow: var(--pl-sh-2); padding: 32px 24px 28px; animation: pl-rise 0.4s var(--pl-ease) both; }
@media (min-width: 640px) { .pl-auth-card { padding: 40px 36px 32px; } }
.pl-auth-wide { max-width: 480px; }
@keyframes pl-rise { from { transform: translateY(8px) scale(0.99); } }
.pl-mark { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--pl-brand-soft); color: var(--pl-brand); margin-bottom: 20px; }
.pl-mark img { width: 30px; height: 30px; }
.pl-mark-ok { background: var(--pl-ok-soft); color: var(--pl-ok); }
.pl-auth-card .pl-h1 { font-size: calc(1.5rem * var(--pl-heading-scale)); }
.pl-form { display: grid; gap: 8px; margin-top: 24px; }
.pl-form label { color: var(--pl-ink); font-weight: 600; font-size: 0.92rem; }
.pl-form .field { width: 100%; font-size: 16px; }
.pl-form .btn { width: 100%; margin-top: 8px; min-height: 48px; }
.pl-or { display: flex; align-items: center; gap: 12px; color: var(--pl-muted); font-size: 0.8rem; margin: 22px 0 14px; }
.pl-or::before, .pl-or::after { content: ""; flex: 1; height: 1px; background: var(--pl-line); }
.pl-split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pl-split .btn { width: 100%; }
.pl-auth-foot { display: flex; align-items: center; justify-content: center; gap: 8px; max-width: 420px; margin: 20px auto 0; text-align: center; color: var(--pl-muted); font-size: 0.85rem; line-height: 1.5; }
.pl-auth-foot { display: block; }
.pl-auth-foot svg { display: inline-block; vertical-align: -2px; margin-right: 6px; }
.pl-auth .pl-details { box-shadow: none; background: transparent; margin-top: 4px; }
.pl-auth .pl-details > summary { padding: 10px 0; justify-content: center; font-size: 0.92rem; color: var(--pl-text); font-weight: 550; }
.pl-auth .pl-details > summary .pl-chev { margin-left: 0; }
.pl-auth .pl-details-body { padding: 4px 0 0; }

/* Thank-you steps: what happens after paying, as a short timeline. */
.pl-steps { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 0; }
.pl-step { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; padding-bottom: 18px; }
.pl-step:last-child { padding-bottom: 0; }
.pl-step:not(:last-child)::after { content: ""; position: absolute; left: 13.5px; top: 30px; bottom: 4px; width: 1px; background: var(--pl-line-strong); }
.pl-dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--pl-canvas); color: var(--pl-muted); font-size: 0.8rem; font-weight: 650; box-shadow: inset 0 0 0 1px var(--pl-line); }
.pl-dot-ok { background: var(--pl-ok); color: #fff; box-shadow: none; }
.pl-step p { margin: 0; }
.pl-step p > strong { display: block; color: var(--pl-ink); font-weight: 600; line-height: 1.35; padding-top: 4px; }
.pl-step p > span { display: block; color: var(--pl-muted); font-size: 0.88rem; line-height: 1.5; margin-top: 2px; }

.pl-check-draw path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: pl-draw 0.5s var(--pl-ease) 0.2s forwards; }
.pl-pop { animation: pl-pop 0.45s var(--pl-ease) both; }
@keyframes pl-draw { to { stroke-dashoffset: 0; } }
@keyframes pl-pop { from { transform: scale(0.7); } }

.pl-summary { margin-top: 20px; padding: 16px; border-radius: 12px; background: var(--pl-canvas); display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.pl-summary strong { color: var(--pl-ink); font-size: 1.25rem; font-weight: 650; }

@media (prefers-reduced-motion: reduce) {
  .pl *, .pl *::before, .pl *::after { animation: none !important; transition: none !important; }
  .pl-check-draw path { stroke-dashoffset: 0; }
}

/* ---------- small helpers ---------- */
@media (max-width: 479px) { .pl-hide-sm { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }
.pl-details > summary > svg:first-child { flex: none; color: var(--pl-brand); }
.pl-auth .pl-details-body .btn { width: 100%; }
@media (max-width: 639px) { .pl-head > .btn { width: 100%; } }
.pl-card-note { margin: 0; padding: 0 20px 18px; }
@media (min-width: 640px) { .pl-card-note { padding: 0 24px 20px; } }

/* ---------- brand photo (PAID_BRAND_IMAGE) ----------
   A site that sells a mood (a wedding, a memorial) sets one of its own
   photographs. The account header becomes a photo band with the title on a
   dark wash, and the sign-in card gets the photo beside it on desktop and as
   a strip on top on a phone. Without the setting, nothing here applies. */
.pl-head-photo { position: relative; isolation: isolate; overflow: hidden; align-items: flex-end; min-height: 168px; padding: 22px 20px; border-radius: var(--pl-r-card); color: #fff; box-shadow: var(--pl-sh-2); }
@media (min-width: 640px) { .pl-head-photo { min-height: 196px; padding: 28px; } }
.pl-head-photo > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; animation: pl-settle 1.2s var(--pl-ease) both; }
.pl-head-photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20, 10, 14, 0.22) 0%, rgba(20, 10, 14, 0.66) 100%); }
.pl-head-photo .pl-h1, .pl-head-photo .pl-sub { color: #fff; text-shadow: 0 1px 14px rgba(0, 0, 0, 0.45); }
.pl-head-photo .pl-sub { opacity: 0.88; }
.pl-head-photo .pl-avatar { box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85); }
.pl-head-photo .btn-primary { background: #fff; color: var(--pl-brand-ink); box-shadow: 0 6px 18px -8px rgba(0, 0, 0, 0.5); }
@media (hover: hover) and (pointer: fine) { .pl-head-photo .btn-primary:hover { background: #fff; color: var(--pl-ink); } }
@keyframes pl-settle { from { transform: scale(1.04); } }

.pl-auth-split { display: grid; width: 100%; max-width: 420px; margin-inline: auto; background: var(--pl-surface); border-radius: 20px; box-shadow: var(--pl-sh-2); overflow: hidden; animation: pl-rise 0.4s var(--pl-ease) both; }
.pl-auth-split .pl-auth-card { box-shadow: none; border-radius: 0; animation: none; max-width: none; }
.pl-auth-photo { position: relative; height: 150px; }
.pl-auth-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 860px) {
  .pl-auth-split { max-width: 880px; grid-template-columns: 1fr 1fr; }
  .pl-auth-split.pl-auth-split-wide { max-width: 940px; }
  .pl-auth-photo { height: auto; min-height: 460px; }
  .pl-auth-split .pl-auth-card { align-self: center; }
}
