/* Tosconime — página de perfil (redesign 2026) */

.pf-page {
  max-width: 1080px;
  margin: 0 auto;
  padding: var(--layout-gutter) var(--layout-gutter-lg) 3rem;
  animation: viewEnter 0.45s var(--ease-out) both;
}

/* ── Toast ── */
.pf-toast {
  position: fixed;
  left: 50%;
  bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 1200;
  max-width: min(420px, calc(100vw - 2rem));
  padding: 0.75rem 1.1rem;
  border-radius: var(--radius-lg);
  background: var(--bg-glass-strong);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-card), var(--shadow-glow);
  font-size: 0.88rem;
  line-height: 1.4;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.28s var(--ease-out), transform 0.28s var(--ease-out);
}

.pf-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  animation: toastIn 0.35s var(--ease-spring) both;
}

.pf-toast.is-error {
  border-color: rgba(248, 113, 113, 0.45);
  background: rgba(40, 12, 14, 0.92);
}

.pf-toast.is-success {
  border-color: rgba(52, 211, 153, 0.45);
}

/* ── Hero card ── */
.pf-hero {
  position: relative;
  display: grid;
  grid-template-areas: "hero";
  --pf-banner-h: clamp(9rem, 32vw, 13.5rem);
  --pf-avatar-overlap: 3.25rem;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
}

.pf-hero.profile-card-page {
  --pf-banner-h: 170px;
}

.pf-hero-banner,
.pf-hero-body {
  grid-area: hero;
}

.pf-hero.is-loading .pf-hero-body {
  opacity: 0.45;
  pointer-events: none;
}

.pf-hero-banner {
  position: relative;
  z-index: 0;
  align-self: start;
  width: 100%;
  height: var(--pf-banner-h);
  background: linear-gradient(135deg, #0a1518 0%, #061012 50%, #0d1a1f 100%);
  overflow: hidden;
  pointer-events: none;
}

.pf-hero-banner img,
.profile-banner {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 1;
}

.pf-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, transparent 0%, rgba(5, 10, 12, 0.35) 55%, rgba(5, 10, 12, 0.95) 100%),
    linear-gradient(90deg, rgba(5, 10, 12, 0.5) 0%, transparent 45%);
  pointer-events: none;
}

.pf-hero-body {
  position: relative;
  z-index: 2;
  align-self: start;
  width: 100%;
  margin-top: 0;
  padding: calc(var(--pf-banner-h) - var(--pf-avatar-overlap)) 1.35rem 1.35rem;
  display: grid;
  gap: 1.15rem;
  transition: opacity 0.25s var(--ease-out);
}

.pf-identity {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
}

.pf-avatar-wrap {
  position: relative;
  z-index: 4;
  flex-shrink: 0;
  display: inline-grid;
  isolation: isolate;
}

.pf-avatar-wrap > .pf-avatar,
.pf-avatar-wrap > .profile-avatar {
  grid-area: 1 / 1;
  position: relative;
  z-index: 1;
  width: clamp(5.5rem, 18vw, 6.75rem);
  height: clamp(5.5rem, 18vw, 6.75rem);
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 3px solid var(--bg-card);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55), 0 0 0 1px var(--border-strong);
  background: #0a1214;
}

.pf-avatar-wrap > .pf-badge {
  grid-area: 1 / 1;
  position: relative;
  z-index: 5;
  align-self: end;
  justify-self: end;
  margin: 0 -0.2rem 0.2rem 0;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  background: var(--bg-glass-strong);
  color: var(--text-soft);
  backdrop-filter: blur(8px);
  pointer-events: none;
}

.pf-badge {
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  background: var(--bg-glass-strong);
  color: var(--text-soft);
  backdrop-filter: blur(8px);
}

.pf-badge.is-discord {
  color: #c4b5fd;
  border-color: rgba(139, 92, 246, 0.45);
  background: rgba(46, 16, 80, 0.75);
}

.pf-badge.is-visitor {
  color: var(--accent-strong);
  border-color: var(--border-strong);
}

.pf-badge.is-public {
  color: var(--muted);
}

.pf-meta {
  min-width: 0;
  flex: 1;
  padding-bottom: 0.15rem;
}

.pf-name,
.profile-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 4.5vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pf-bio,
.profile-bio {
  margin: 0.4rem 0 0;
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.5;
  max-width: var(--layout-max-text);
}

.pf-subtitle {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}

/* ── Actions ── */
.pf-actions,
.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.pf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 0;
  border-radius: 999px;
  padding: 0.55rem 1rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition-ui);
  white-space: nowrap;
}

.pf-btn:focus-visible {
  outline: var(--focus-outline);
  outline-offset: 2px;
}

.pf-btn-primary,
.btn-profile {
  background: var(--accent-gradient);
  color: var(--on-accent);
  box-shadow: var(--shadow-glow);
}

.pf-btn-primary:hover,
.btn-profile:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.pf-btn-ghost,
.btn-profile-ghost {
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--border);
}

.pf-btn-ghost:hover,
.btn-profile-ghost:hover {
  border-color: var(--border-strong);
  background: rgba(18, 29, 34, 0.95);
}

.pf-btn-sm {
  font-size: 0.78rem;
  padding: 0.45rem 0.75rem;
  min-height: auto;
}

.pf-field-discord-avatar {
  margin-top: -0.25rem;
}

.pf-btn-discord,
.btn-profile-discord {
  background: #5865f2;
  color: #fff;
  box-shadow: 0 8px 24px rgba(88, 101, 242, 0.35);
}

.pf-btn-discord:hover {
  background: #4752c4;
}

.pf-btn-danger {
  background: rgba(248, 113, 113, 0.12);
  color: #fca5a5;
  border: 1px solid rgba(248, 113, 113, 0.35);
}

.pf-btn-icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

/* ── Stats ── */
.pf-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 1.1rem;
}

.pf-stat {
  padding: 0.85rem 0.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(160deg, rgba(18, 29, 34, 0.9), rgba(11, 19, 22, 0.95));
  text-align: center;
  display: grid;
  gap: 0.2rem;
}

.pf-stat strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pf-stat span {
  font-size: 0.68rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.25;
}

/* ── Library section ── */
.pf-library,
.profile-collections {
  margin-top: 1.35rem;
  padding: 1.15rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(11, 19, 22, 0.92), rgba(5, 10, 12, 0.98));
  box-shadow: var(--shadow-sm);
}

.pf-library-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}

.pf-library-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

/* Tabs — segmented */
.pf-tabs,
.profile-collection-tabs {
  display: flex;
  gap: 0.25rem;
  padding: 0.28rem;
  border-radius: var(--radius-lg);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--hairline);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.pf-tabs::-webkit-scrollbar,
.profile-collection-tabs::-webkit-scrollbar {
  display: none;
}

.pf-tab,
.profile-tab {
  flex: 1 0 auto;
  min-width: max-content;
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: calc(var(--radius-lg) - 4px);
  padding: 0.5rem 0.85rem;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-ui);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.pf-tab:hover,
.profile-tab:hover {
  color: var(--text-soft);
}

.pf-tab.active,
.profile-tab.active {
  color: var(--on-accent);
  background: var(--accent-gradient);
  box-shadow: 0 4px 16px rgba(52, 211, 153, 0.28);
}

.pf-tab-count,
.profile-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.12);
}

.pf-tab.active .pf-tab-count,
.profile-tab.active .profile-tab-count {
  background: rgba(0, 0, 0, 0.22);
  color: inherit;
}

.pf-tab-icon {
  width: 0.9rem;
  height: 0.9rem;
  opacity: 0.85;
}

/* Toolbar */
.pf-toolbar,
.history-toolbar {
  display: flex;
  justify-content: flex-end;
  margin: 0.75rem 0 0.5rem;
}

.pf-toolbar.hidden,
.history-toolbar.hidden {
  display: none;
}

.pf-check,
.history-show-hidden {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}

.pf-check input,
.history-show-hidden input {
  accent-color: var(--accent);
  width: 1rem;
  height: 1rem;
}

/* Grid & cards */
.pf-grid,
.favorites-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
  gap: 0.85rem;
  min-height: 4rem;
}

.pf-grid--history,
.favorites-list:has(.history-list) {
  display: block;
}

.pf-card,
.collection-card {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  transition: transform 0.2s var(--ease-out), border-color 0.2s, box-shadow 0.2s;
}

.pf-card:hover,
.collection-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-glow);
}

.pf-card img,
.collection-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  display: block;
  background: #060a0c;
}

.pf-card-body,
.collection-card-body {
  padding: 0.55rem 0.6rem 0.65rem;
}

.pf-card-title,
.collection-title {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pf-card-kind,
.collection-kind {
  margin-top: 0.25rem;
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent-strong);
  opacity: 0.85;
}

/* Empty state */
.pf-empty,
.comment-empty {
  grid-column: 1 / -1;
  margin: 1.5rem auto;
  max-width: 28rem;
  text-align: center;
  padding: 1.5rem 1rem;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border);
  background: rgba(0, 0, 0, 0.2);
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.pf-empty-icon {
  display: block;
  margin: 0 auto 0.65rem;
  width: 2.5rem;
  height: 2.5rem;
  opacity: 0.45;
}

.pf-empty a {
  color: var(--accent-strong);
  font-weight: 600;
  text-decoration: none;
}

.pf-empty a:hover {
  text-decoration: underline;
}

/* History list */
.pf-history,
.history-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pf-history-item,
.history-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.55rem;
  align-items: center;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(18, 29, 34, 0.65);
  transition: border-color 0.15s;
}

.pf-history-item:hover,
.history-item:hover {
  border-color: var(--border-strong);
}

.pf-history-item.is-hidden-entry,
.history-item.is-hidden-entry {
  opacity: 0.65;
  border-style: dashed;
}

.pf-history-link,
.history-item-link {
  display: grid;
  grid-template-columns: 3.25rem 1fr;
  gap: 0.65rem;
  align-items: center;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

.pf-history-link img,
.history-item-link img {
  width: 3.25rem;
  height: 4.5rem;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: #060a0c;
}

.pf-history-title,
.history-item-title {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.3;
}

.pf-history-meta,
.history-item-meta {
  margin: 0.2rem 0 0;
  font-size: 0.75rem;
  color: var(--muted);
}

.pf-history-actions,
.history-item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: flex-end;
}

.pf-history-btn,
.history-action-btn {
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-soft);
  border-radius: 999px;
  padding: 0.3rem 0.6rem;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-ui);
}

.pf-history-btn:hover,
.history-action-btn:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

.pf-history-btn-danger,
.history-action-danger {
  color: #fca5a5;
  border-color: rgba(248, 113, 113, 0.35);
}

.pf-history-btn-danger:hover,
.history-action-danger:hover {
  background: rgba(248, 113, 113, 0.1);
}

/* ── Edit sheet ── */
.pf-sheet {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.28s var(--ease-out);
}

.pf-sheet.is-open {
  pointer-events: auto;
  opacity: 1;
}

.pf-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(4px);
}

.pf-sheet-panel,
.profile-editor {
  position: relative;
  width: min(520px, 100%);
  max-height: min(88vh, 720px);
  overflow-y: auto;
  margin: 0;
  padding: 1.25rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom, 0px));
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  border: 1px solid var(--border-strong);
  border-bottom: 0;
  background: var(--bg-glass-strong);
  backdrop-filter: blur(20px);
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.5);
  transform: translateY(100%);
  transition: transform 0.35s var(--ease-spring);
}

.pf-sheet.is-open .pf-sheet-panel,
.pf-sheet.is-open .profile-editor {
  transform: none;
}

@media (min-width: 640px) {
  .pf-sheet {
    align-items: center;
    padding: 1rem;
  }

  .pf-sheet-panel,
  .profile-editor {
    border-radius: var(--radius-xl);
    border-bottom: 1px solid var(--border-strong);
    transform: translateY(24px) scale(0.96);
  }

  .pf-sheet.is-open .pf-sheet-panel,
  .pf-sheet.is-open .profile-editor {
    transform: none;
  }
}

.pf-sheet-handle {
  width: 2.5rem;
  height: 0.28rem;
  border-radius: 999px;
  background: var(--hairline);
  margin: 0 auto 1rem;
}

@media (min-width: 640px) {
  .pf-sheet-handle {
    display: none;
  }
}

.pf-sheet-title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
}

.pf-field {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
}

.pf-field label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pf-field input,
.pf-field textarea,
.profile-editor input,
.profile-editor textarea {
  width: 100%;
  border: 1px solid var(--border);
  background: rgba(5, 10, 12, 0.65);
  color: var(--text);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 0.88rem;
  padding: 0.6rem 0.75rem;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.pf-field input:focus,
.pf-field textarea:focus,
.profile-editor input:focus,
.profile-editor textarea:focus {
  border-color: var(--accent);
  box-shadow: var(--focus-ring);
}

.pf-field textarea,
.profile-editor textarea {
  resize: vertical;
  min-height: 4.5rem;
}

.pf-upload,
.file-picker {
  border: 1px dashed var(--border-strong);
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius);
  padding: 0.75rem;
  display: grid;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.pf-upload:hover,
.file-picker:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
}

.pf-upload input,
.file-picker input {
  font-size: 0.76rem;
  color: var(--text-soft);
  cursor: pointer;
}

.pf-preview-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.pf-preview-thumb {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--border);
  background: #060a0c;
}

.pf-preview-thumb.is-round {
  border-radius: 50%;
}

.pf-sheet-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.pf-sheet-actions .pf-btn {
  flex: 1;
  min-width: 7rem;
}

/* Skeleton */
.pf-skeleton {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.04) 0%,
    rgba(255, 255, 255, 0.09) 50%,
    rgba(255, 255, 255, 0.04) 100%
  );
  background-size: 200% 100%;
  animation: pfShimmer 1.2s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

@keyframes pfShimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Back link */
.pf-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s;
}

.pf-back:hover {
  color: var(--accent-strong);
}

.pf-back svg {
  width: 1rem;
  height: 1rem;
}

/* Legacy alert hidden — toast replaces */
.profile-alert.hidden,
#profile-alert.hidden {
  display: none !important;
}

/* Responsive */
@media (max-width: 720px) {
  .pf-hero {
    --pf-banner-h: clamp(6rem, 28vw, 8rem);
    --pf-avatar-overlap: 2.75rem;
  }

  .pf-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pf-stats .pf-stat:nth-child(4),
  .pf-stats .pf-stat:nth-child(5) {
    grid-column: span 1;
  }

  .pf-hero-body {
    padding: calc(var(--pf-banner-h) - var(--pf-avatar-overlap)) 1rem 1rem;
  }

  .pf-grid,
  .favorites-list {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.6rem;
  }

  .pf-history-item,
  .history-item {
    grid-template-columns: 1fr;
  }

  .pf-history-actions,
  .history-item-actions {
    justify-content: flex-start;
    padding-left: 3.9rem;
  }
}

@media (max-width: 420px) {
  .pf-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pf-tab,
  .profile-tab {
    font-size: 0.72rem;
    padding: 0.45rem 0.65rem;
  }
}

/* ── Custom lists ── */
.pf-lista-page.is-loading {
  opacity: 0.55;
  pointer-events: none;
}

.pf-lista-head {
  margin-bottom: 1.25rem;
}

.pf-lista-owner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.pf-lista-owner-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-strong);
}

.pf-lista-owner-label {
  margin: 0;
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pf-lista-owner-name {
  color: var(--accent-strong);
  font-weight: 600;
  text-decoration: none;
}

.pf-lista-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.pf-lista-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 4vw, 1.75rem);
}

.pf-lista-count {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.lists-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
}

.pf-btn-danger {
  color: #fca5a5;
  border-color: rgba(248, 113, 113, 0.35);
  background: rgba(69, 10, 10, 0.35);
}

.pf-list-overview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
}

.pf-list-card {
  display: grid;
  gap: 0.55rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-glass);
  transition: border-color 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}

.pf-list-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.pf-list-card-open {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  cursor: pointer;
}

.pf-list-card-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.pf-list-card-meta {
  margin: 0.2rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.pf-list-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.pf-list-card-btn {
  font-size: 0.72rem;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
  color: var(--text-soft);
  cursor: pointer;
}

.pf-list-search {
  margin-bottom: 0.85rem;
}

.pf-list-search input {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-glass);
  color: var(--text);
}

.pf-list-search-results {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.45rem;
}

.pf-list-search-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.45rem 0.55rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-glass);
}

.pf-list-search-info {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  flex: 1;
}

.pf-list-search-info img {
  width: 2.25rem;
  height: 3.1rem;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.pf-list-search-info span {
  font-size: 0.88rem;
  line-height: 1.25;
}

.pf-list-search-add {
  flex-shrink: 0;
  padding: 0.35rem 0.7rem;
  font-size: 0.75rem;
}

.pf-list-search-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0.55rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-glass);
  cursor: pointer;
  text-align: left;
  color: inherit;
}

.pf-list-search-item img {
  width: 2.25rem;
  height: 3.1rem;
  object-fit: cover;
  border-radius: 4px;
}

.pf-list-item-card {
  position: relative;
}

.pf-list-item-remove {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  z-index: 2;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 50%;
  border: 1px solid rgba(248, 113, 113, 0.45);
  background: rgba(10, 4, 4, 0.82);
  color: #fca5a5;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}
