.pc-labels-page .pc-page-layout{
  display: grid;
  grid-template-columns: var(--pc-side-w) minmax(0, 1fr);
  grid-template-areas: "side main";
  gap: var(--pc-side-gap);
  align-items: start;
}

.pc-labels-page .home-side{
  grid-area: side;
}

.pc-labels-page .pc-labels-main{
  grid-area: main;
  min-width: 0;
}

.pc-labels-main { min-width: 0; min-height: 150vh; }

/* ── Hero ── */
.pc-labels-hero { padding: 40px 0 18px; }
.pc-labels-hero__top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; padding: 0 4px 14px;
}
.pc-labels-hero__title {
  display: flex; align-items: center; gap: 10px;
  margin: 0; font-size: clamp(30px, 4vw, 46px);
  font-weight: 600; color: #111827; line-height: 1.1;
}
.pc-labels-hero__icon { flex-shrink: 0; }
.pc-labels-hero__sub {
  margin: 8px 4px 0; font-size: 15px; color: #6b7280;
}
.pc-labels-create-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 18px; border-radius: 999px;
  border: none; background: #111827; color: #fff;
  font: inherit; font-size: 14px; font-weight: 600;
  cursor: pointer; white-space: nowrap; transition: background .15s;
}
.pc-labels-create-btn:hover { background: #1e2939; }

/* ── Empty (list) ── */
.pc-labels-empty {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: 60px 20px 80px;
}
.pc-labels-empty__icon { margin-bottom: 16px; }
.pc-labels-empty__title { font-size: 24px; font-weight: 650; color: #111827; }
.pc-labels-empty__sub { margin-top: 6px; color: #6b7280; font-size: 18px; max-width: 400px; line-height: 1.6; }
.pc-labels-empty__btn {
  margin-top: 18px; display: inline-flex; padding: 11px 20px;
  border-radius: 999px; border: none; background: #111827; color: #fff;
  font: inherit; font-weight: 650; font-size: 14px; cursor: pointer;
}

/* ── Labels grid ── */
.pc-labels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  padding-bottom: 70px;
  align-items: start;
}

/* ── Label card ── */
.pc-label-card {
  border: 1px solid rgba(0,0,0,.09);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow .15s, transform .12s;
  position: relative;
}
.pc-label-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,.09);
  transform: translateY(-2px);
}
.pc-label-card:focus-visible { outline: 2px solid #6366f1; outline-offset: 2px; }

.pc-label-card__thumb {
  width: 100%;
  height: 260px;
  background: #f3f4f6;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.pc-label-card__cover-img { width: 100%; height: 100%; object-fit: cover; }
.pc-label-card__cover-ph {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  display: flex; align-items: center; justify-content: center;
  color: #94a3b8;
}

.pc-label-card__body { padding: 12px 14px 10px; }
.pc-label-card__name {
  font-size: 20px; font-weight: 650; color: #111827;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pc-label-card__sub { margin-top: 3px; font-size: 16px; color: #9ca3af; }

.pc-label-card__actions {
  display: flex; align-items: center; gap: 2px;
  position: absolute; top: 8px; right: 8px;
  opacity: 0; transition: opacity .15s;
}
.pc-label-card:hover .pc-label-card__actions,
.pc-label-card:focus-within .pc-label-card__actions { opacity: 1; }

.pc-label-card__action-btn {
  width: 30px; height: 30px; border-radius: 50%;
  border: none; background: rgba(255,255,255,.9);
  backdrop-filter: blur(4px);
  color: #374151; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .12s, color .12s;
}
.pc-label-card__action-btn:hover { background: #fff; color: #111827; }
.pc-label-card__action-btn--del:hover { color: #dc2626; }

/* ── Detail view ── */
.pc-label-detail-hero { padding: 30px 0 18px; }
.pc-label-back-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px 6px 8px; border-radius: 999px;
  border: 1px solid rgba(0,0,0,.12); background: #fff;
  color: #374151; font: inherit; font-size: 14px;
  font-weight: 600; cursor: pointer; transition: background .12s;
  margin-bottom: 18px;
}
.pc-label-back-btn:hover { background: #f9fafb; }

.pc-label-detail-title-row {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 0 4px;
}
.pc-label-detail-title {
  margin: 0; font-size: clamp(26px, 4vw, 40px);
  font-weight: 600; color: #111827; flex: 1; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pc-label-detail-count {
  font-size: 14px; font-weight: 500; color: #6b7280;
  background: #f3f4f6; border-radius: 999px; padding: 2px 10px;
  flex-shrink: 0;
}
.pc-label-detail-actions { display: flex; gap: 6px; flex-shrink: 0; }
.pc-label-action-btn {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid rgba(0,0,0,.12); background: #fff;
  color: #374151; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .12s, color .12s;
}
.pc-label-action-btn:hover { background: #f3f4f6; }
.pc-label-action-btn--del:hover { color: #dc2626; border-color: #fca5a5; }

/* Detail empty */
.pc-label-detail-empty {
  padding: 50px 20px 80px; text-align: center;
}
.pc-label-detail-empty__title { font-size: 18px; font-weight: 650; color: #111827; }
.pc-label-detail-empty__sub { margin-top: 6px; color: #6b7280; font-size: 14px; line-height: 1.6; }

/* Detail items list */
.pc-label-items { display: flex; flex-direction: column; padding-bottom: 70px; }
.pc-label-loading { padding: 30px; color: #9ca3af; text-align: center; font-size: 14px; }

.pc-label-item {
  display: flex; align-items: center; gap: 14px;
  padding: 11px 4px; border-bottom: 1px solid rgba(0,0,0,.05);
  border-radius: 10px; transition: background .12s;
}
.pc-label-item:last-child { border-bottom: none; }
.pc-label-item:hover { background: rgba(0,0,0,.025); }

.pc-label-item__thumb {
  flex-shrink: 0; width: 90px; height: 90px; border-radius: 10px;
  overflow: hidden; background: #f3f4f6;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(0,0,0,.07);
}
.pc-label-item__img { width: 100%; height: 100%; display: block; }
.pc-label-item__img-ph { width: 100%; height: 100%; background: #e5e7eb; }

.pc-label-item__body { flex: 1; min-width: 0; }
.pc-label-item__title {
  display: block; font-size: 18px; font-weight: 600; color: #111827;
  text-decoration: none; line-height: 1.35;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pc-label-item__title:hover { color: #6366f1; }
.pc-label-item__brand {
  margin-top: 2px; font-size: 16px; color: #6b7280; font-weight: 500;
}
.pc-label-item__when { margin-top: 3px; font-size: 14px; color: #9ca3af; }

.pc-label-item__remove {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%;
  border: none; background: transparent; color: #9ca3af;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; opacity: 0; transition: opacity .15s, background .12s, color .12s;
}
.pc-label-item:hover .pc-label-item__remove { opacity: 1; }
.pc-label-item__remove:hover { background: rgba(0,0,0,.07); color: #374151; }

@media (max-width: 560px) {
  .pc-label-item__remove { opacity: 1; }
  .pc-label-item__thumb { width: 70px; height: 54px; }
  .pc-labels-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
}

/* ── Create modal ── */
.pc-label-modal-backdrop {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  padding: 20px; background: rgba(15, 23, 42, .35);
}
.pc-label-modal {
  width: min(100%, 440px); background: #fff;
  border: 1px solid rgba(0,0,0,.1); border-radius: 20px;
  box-shadow: 0 24px 60px rgba(15,23,42,.2);
  padding: 28px 24px 24px;
}
.pc-label-modal__title {
  margin: 0 0 18px; font-size: 20px; font-weight: 700; color: #111827;
}
.pc-label-modal__input {
  width: 100%; box-sizing: border-box;
  padding: 11px 14px; border-radius: 10px;
  border: 1.5px solid rgba(0,0,0,.15);
  font: inherit; font-size: 15px; color: #111827;
  outline: none; transition: border-color .15s;
}
.pc-label-modal__input:focus { border-color: #6366f1; }
.pc-label-modal__actions {
  display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px;
}
.pc-label-modal__btn {
  padding: 10px 20px; border-radius: 999px;
  font: inherit; font-size: 14px; font-weight: 700;
  cursor: pointer; border: none;
}
.pc-label-modal__btn--ghost {
  background: transparent; color: #6b7280;
  border: 1px solid rgba(0,0,0,.12);
}
.pc-label-modal__btn--ghost:hover { background: #f9fafb; }
.pc-label-modal__btn--primary { background: #111827; color: #fff; }
.pc-label-modal__btn--primary:hover { background: #1e2939; }
.pc-label-modal__btn:disabled { opacity: .5; pointer-events: none; }
