


.pf-face-av { display: block; line-height: 0; }


.lk-bar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 28px; padding: 12px 24px 8px;
  border-top: 1px solid color-mix(in oklab, var(--pf-accent) 22%, var(--border)); }
.lk-bar:empty { min-height: 132px; padding: 0; }
.lk-strip { min-width: 0; }
.lk-head { display: flex; align-items: baseline; gap: 10px; min-width: 0; margin-bottom: 6px; }
.lk-now { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 13.5px; font-weight: 600; color: var(--text-primary); }
.lk-strip.on-locked .lk-now { color: var(--text-secondary); }
.lk-count { margin-left: auto; flex: none; font-family: var(--font-mono); font-size: 11.5px; color: var(--text-secondary);
  font-variant-numeric: tabular-nums; }
.lk-row { display: flex; align-items: center; gap: 6px; }
.lk-step { flex: none; width: 36px; height: 36px; display: grid; place-items: center; padding: 0; border-radius: 50%;
  border: 1px solid var(--border); background: var(--surface-1); color: var(--text-primary); cursor: pointer; }
.lk-step:hover { border-color: var(--border-strong); background: color-mix(in oklab, var(--pf-accent) 10%, var(--surface-1)); }
.lk-step:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.lk-track { position: relative; flex: 1 1 auto; min-width: 0; display: flex; gap: 8px; padding: 5px; overflow-x: auto;
  overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 16px;
  background: color-mix(in oklab, var(--pf-accent) 6%, transparent); }
.lk-track::-webkit-scrollbar { display: none; }
.lk-track:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.lk-item { --lk-rar: var(--border); position: relative; flex: none; scroll-snap-align: center; width: 64px; height: 64px;
  display: grid; place-items: center; border-radius: 14px; cursor: pointer;
  border: 1px solid color-mix(in oklab, var(--lk-rar) 60%, var(--border)); background: var(--surface-1); }
.lk-item[data-rar="E"] { --lk-rar: var(--rar-e); }
.lk-item[data-rar="D"] { --lk-rar: var(--rar-d); }
.lk-item[data-rar="C"] { --lk-rar: var(--rar-c); }
.lk-item[data-rar="B"] { --lk-rar: var(--rar-b); }
.lk-item[data-rar="A"] { --lk-rar: var(--rar-a); }
.lk-item[data-rar="S"] { --lk-rar: var(--rar-s); }
.lk-item:hover { border-color: var(--border-strong); }
.lk-item[aria-selected="true"] { border-color: var(--brand); box-shadow: 0 0 0 2px color-mix(in oklab, var(--brand) 40%, transparent); }
.lk-item.cur[aria-disabled="true"] { outline: 2px dashed var(--text-secondary); outline-offset: 1px; }
.lk-track:focus-visible .lk-item.cur { outline: 2px solid var(--brand); outline-offset: 2px; }
.lk-track:focus-visible .lk-item.cur[aria-disabled="true"] { outline-style: dashed; }
.lk-item[aria-disabled="true"] { cursor: default; }
.lk-item[aria-disabled="true"] .lk-art > :not(.pf-lock) { opacity: .34; filter: grayscale(1); }
.lk-art { position: relative; display: block; line-height: 0; }
.lk-item .il-avatar, .lk-pic { width: 56px; height: 56px; }
.lk-pic { display: block; border-radius: 50%; overflow: hidden; }
.lk-pic img { display: block; width: 100%; height: 100%; }
.lk-strip[data-look-strip="banner"] .lk-item { width: 100px; }
.lk-ban { position: relative; display: block; width: 88px; height: 52px; border-radius: 10px; overflow: hidden; color: var(--pf-accent);
  background: linear-gradient(120deg, color-mix(in oklab, var(--pf-accent) 26%, var(--surface-1)), color-mix(in oklab, var(--pf-accent) 8%, var(--surface-1))); }
.lk-item .pf-lock { right: -5px; bottom: -5px; width: 20px; height: 20px; display: grid; place-items: center; }
.lk-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.lk-line { grid-column: 1 / -1; margin: 4px 0 0; min-height: 1.6em; color: var(--text-secondary); }
.lk-line b { color: var(--text-primary); }
.lk-undo { appearance: none; padding: 2px 2px; border: 0; background: none; cursor: pointer; font: inherit; font-weight: 600; color: var(--brand);
  text-decoration: underline; text-decoration-color: color-mix(in oklab, currentColor 40%, transparent); text-underline-offset: 3px; }
.lk-undo:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: var(--radius-xs); }
.pf-moredesign { margin-left: auto; }
.pf-moredesign + .pf-admin { margin-left: 14px; }


@keyframes lk-hop { 0% { transform: none; } 30% { transform: translateY(-9px) scale(1.04, .97); }
  55% { transform: translateY(0) scale(.97, 1.03); } 78% { transform: translateY(-2px); } 100% { transform: none; } }
@keyframes lk-spark { from { transform: rotate(var(--a)) translateY(-20px) scale(.4); opacity: 1; }
  to { transform: rotate(var(--a)) translateY(-84px) scale(1.1); opacity: 0; } }
@keyframes lk-sheen { from { transform: translateX(-110%); } to { transform: translateX(110%); } }
.lk-burst { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; z-index: 2; }
.lk-burst i { position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; opacity: 0; background: var(--pf-accent);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
@media (prefers-reduced-motion: no-preference) {
  :root:not([data-motion="still"]) .pf-plate .lk-hop { animation: lk-hop .5s ease-out; }
  :root:not([data-motion="still"]) .pf-plate .lk-burst i { animation: lk-spark .62s ease-out both; }
  :root:not([data-motion="still"]) .pf-plate .lk-sheen::after { content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(100deg, transparent 30%, color-mix(in oklab, var(--surface-1) 50%, transparent) 50%, transparent 70%);
    animation: lk-sheen .7s ease-out both; }
}


.pf-first { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; margin-bottom: 14px; align-items: start; }
.pf-first:empty { display: none; }
.pf-first > .card, .pf-glance-slot > .card { margin: 0; }
.pf-glance-slot:empty { min-height: 120px; }
.pf-glance .hero-head { justify-content: space-between; }
.pf-glance .pf-stats { margin-top: 2px; }


.cp-intro { margin: 0 0 8px; }
.cp-line { margin: 0 0 8px; min-height: 1.4em; color: var(--text-secondary); }
.cp-line:empty { min-height: 0; margin: 0; }
.cp-group { border-top: 1px solid var(--border); }
.cp-group:last-of-type { border-bottom: 1px solid var(--border); }
.cp-group > summary { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 8px 2px; cursor: pointer; list-style: none;
  font-size: 13.5px; font-weight: 600; color: var(--text-primary); }
.cp-group > summary::-webkit-details-marker { display: none; }
.cp-group > summary::before { content: ""; flex: none; width: 7px; height: 7px; margin: 0 3px 0 2px; color: var(--text-secondary);
  border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(-45deg); }
.cp-group[open] > summary::before { transform: rotate(45deg); }
.cp-group > summary:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--brand); border-radius: 6px; }
.cp-v { margin-left: auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 12.5px; font-weight: 400; color: var(--text-secondary); }
.cp-body { display: flex; flex-direction: column; gap: 10px; padding: 2px 0 14px; }
.cp-note { margin: 0; max-width: 62ch; }
.cp-save { display: flex; justify-content: flex-end; }
.cp-body .pf-row { grid-template-columns: 84px minmax(0, 1fr); }
.cp-body .pf-form { gap: 12px; }


.pf-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.pf-tile { --pf-rar: var(--border); position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0;
  padding: 9px 4px 8px; border-radius: 14px; border: 1px solid color-mix(in oklab, var(--pf-rar) 55%, var(--border));
  background: var(--surface-1); color: var(--text-primary); font: inherit; cursor: pointer; }
.pf-tile[data-rar] { background: radial-gradient(110% 70% at 50% 0%, color-mix(in oklab, var(--pf-rar) 14%, transparent), transparent 72%), var(--surface-1); }
.pf-tile[data-rar="E"] { --pf-rar: var(--rar-e); }
.pf-tile[data-rar="D"] { --pf-rar: var(--rar-d); }
.pf-tile[data-rar="C"] { --pf-rar: var(--rar-c); }
.pf-tile[data-rar="B"] { --pf-rar: var(--rar-b); }
.pf-tile[data-rar="A"] { --pf-rar: var(--rar-a); }
.pf-tile[data-rar="S"] { --pf-rar: var(--rar-s); }
.pf-tile[data-rar="L"] { --pf-rar: var(--rar-legendary); }
.pf-tile[data-rar="U"] { --pf-rar: var(--rar-unique); }
.pf-tile:hover:not(:disabled) { border-color: var(--border-strong); }
.pf-tile.on { border-color: var(--brand); box-shadow: 0 0 0 2px color-mix(in oklab, var(--brand) 35%, transparent); }
.pf-tile:focus-visible, .pf-chip:focus-visible, .pf-opt:focus-visible, .pf-swatch:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.pf-tile-art { position: relative; display: grid; place-items: center; min-height: 56px; line-height: 0; }
.pf-tile-name { font-size: 12px; font-weight: 600; line-height: 1.25; text-align: center; overflow-wrap: anywhere; }
.pf-tile[data-cp-fam] .pf-tile-name { color: var(--text-primary); }
.pf-tile-none { display: block; width: 48px; height: 48px; border-radius: 50%; border: 1.5px dashed var(--border-strong); }
.pf-tile:disabled { cursor: not-allowed; }
.pf-tile:disabled .pf-tile-art > :not(.pf-lock) { opacity: .34; filter: grayscale(1); }
.pf-tile:disabled .pf-tile-name { color: var(--text-secondary); }
.pf-tile .pf-lock { right: -4px; bottom: -2px; width: 20px; height: 20px; display: grid; place-items: center; }

@media (max-width: 640px) {
  
  .lk-bar { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 10px 16px 6px; }
  .lk-bar:empty { min-height: 236px; }
  .lk-step { width: 44px; height: 44px; }
  .lk-item { width: 58px; height: 58px; }
  .lk-item .il-avatar, .lk-pic { width: 50px; height: 50px; }
  .lk-strip[data-look-strip="banner"] .lk-item { width: 92px; }
  .lk-ban { width: 80px; height: 48px; }
  .lk-undo { min-height: 44px; padding: 0 6px; }
  .pf-moredesign { min-height: 44px; }
  .pf-first { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .cp-group > summary { min-height: 48px; }
  .cp-body .pf-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cp-body .btn, .cp-body .pf-chip, .cp-body select, .cp-body input:not([type="checkbox"]):not([type="radio"]), .cp-body textarea { min-height: 44px; }
  .cp-body .pf-opt { min-width: 44px; min-height: 44px; }
  .cp-body .pf-swatch { width: 44px; height: 44px; }
  .cp-body .pf-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
}
