:root{
  --pc-bg: #ffffff;
  --pc-surface: #ffffff;
  --pc-text: #0f172a;
  --pc-muted: #64748b;
  --pc-border: rgba(15, 23, 42, 0.12);
  --pc-shadow: 0 10px 30px rgba(2, 6, 23, 0.08);
  --pc-radius: 16px;
  --pc-radius-sm: 12px;
  --pc-accent: var(--accent, #FF5C8D);
  --pc-accent-soft: rgba(255, 92, 141, 0.14);
  --pc-danger: #dc2626;
  --pc-danger-soft: rgba(220, 38, 38, 0.12);
  --pc-focus: 0 0 0 4px rgba(255, 92, 141, 0.18);
}

/* Base */
html, body { height: 100%; }
body{
  margin: 0;
  font-family: "Noto Sans JP", system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--pc-text);
  background: var(--pc-bg);
}
body.pc-shell{
  --pc-bg: #f6f7fb;
}
body.pc-shell .pc-app{
  background: transparent;
}
a{ color: inherit; text-decoration: none; }
*{ box-sizing: border-box; }

/* Shell layout */
.pc-app{ display: grid; grid-template-columns: 1fr; min-height: 100vh; }
.pc-sidebar{
  position: sticky; top: 0;
  height: 100vh;
  border-right: 1px solid var(--pc-border);
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px);
  padding: 20px 16px;
}
.pc-nav-close{ display:none; }
.pc-nav-overlay{ display:none; }
.pc-nav-toggle{ display:none; }
.pc-nav-icon{
  width: 20px; height: 14px;
  display: block;
  background:
    linear-gradient(var(--pc-text), var(--pc-text)) 0 0 / 100% 2px no-repeat,
    linear-gradient(var(--pc-text), var(--pc-text)) 0 50% / 100% 2px no-repeat,
    linear-gradient(var(--pc-text), var(--pc-text)) 0 100% / 100% 2px no-repeat;
  opacity: .9;
}
.pc-brand{ margin-bottom: 18px; }
.pc-brand-link{ display:flex; align-items:center; gap:10px; padding: 10px 12px; border-radius: 12px; }
.pc-brand-link:hover{ background: rgba(2,6,23,0.03); }
.pc-brand-mark{
  width: 34px; height: 34px;
  display:grid; place-items:center;
  background: transparent;
  color: inherit;
  border-radius: 12px;
  font-weight: 900;
}
.pc-brand-mark img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: inherit;
  display: block;
}
.pc-brand-text{ font-weight: 900; letter-spacing: .02em; }

.pc-nav{ display:flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.pc-nav-item{
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--pc-muted);
  font-weight: 800;
}
.pc-nav-item:hover{ background: rgba(2,6,23,0.03); color: var(--pc-text); }
.pc-nav-item.is-active{
  background: var(--pc-accent-soft);
  color: var(--pc-text);
  border: 1px solid rgba(255,92,141,0.25);
}

.pc-main{ display:flex; flex-direction: column; min-width: 0; width: 100%; grid-column: 1 / -1; }
.pc-topbar{
  position: sticky; top: 0;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--pc-border);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  padding: 14px 22px;
  display:flex; align-items:center; justify-content: space-between;
  z-index: 5;
}
.pc-topbar-left{ display:flex; align-items:center; gap: 10px; min-width: 0; }
.pc-topbar-title{ font-weight: 900; font-size: 16px; }
.pc-user{ color: var(--pc-muted); font-weight: 800; margin-right: 12px; }
.pc-btn-top{ padding: 8px 12px; border-radius: 12px; margin-right: 10px; }
.pc-link{
  color: var(--pc-accent);
  font-weight: 900;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.pc-link:hover{ text-decoration: underline; }

.pc-content{ padding: 22px; max-width: 1280px; width: 100%; margin: 0 auto; }

/* Cards */
.pc-grid{ display:grid; gap: 16px; }
.pc-grid-2{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px){ .pc-app{ grid-template-columns: 1fr; } .pc-grid-2{ grid-template-columns: 1fr; } }
@media (max-width: 900px){ .pc-split{ grid-template-columns: 1fr; } .pc-split-aside{ position: static; top: auto; } }

@media (max-width: 900px){
  .pc-content{ padding: 14px; }
  .pc-topbar{ padding: 12px 14px; }
  .pc-user{ display:none; }

  .pc-nav-toggle{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width: 42px; height: 38px;
    border: 1px solid var(--pc-border);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    flex: 0 0 auto;
  }
  .pc-nav-toggle:hover{ background: rgba(2,6,23,0.03); }

  .pc-sidebar{
    position: fixed;
    inset: 0 auto 0 0;
    width: min(320px, calc(100vw - 54px));
    height: 100vh;
    transform: translateX(-110%);
    transition: transform .18s ease;
    z-index: 60;
    border-right: 1px solid var(--pc-border);
    box-shadow: 0 30px 90px rgba(2,6,23,0.20);
    overflow: auto;
  }

  .pc-nav-close{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: sticky;
    top: 0;
    width: 100%;
    padding: 10px 12px;
    margin: -20px -16px 10px;
    border: 0;
    border-bottom: 1px solid var(--pc-border);
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    font-weight: 900;
    cursor: pointer;
  }

  .pc-nav-overlay{
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(2,6,23,0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease;
    z-index: 55;
  }

  body.pc-nav-open .pc-sidebar{ transform: translateX(0); }
  body.pc-nav-open .pc-nav-overlay{ opacity: 1; pointer-events: auto; }
}

.pc-card{
  background: var(--pc-surface);
  border: 1px solid var(--pc-border);
  border-radius: var(--pc-radius);
  box-shadow: var(--pc-shadow);
  padding: 18px;
}
.pc-card-link{ transition: transform .12s ease, box-shadow .12s ease; }
.pc-card-link:hover{ transform: translateY(-1px); box-shadow: 0 16px 42px rgba(2, 6, 23, 0.12); }
.pc-card-title{ font-weight: 900; font-size: 18px; }
.pc-card-sub{ margin-top: 6px; color: var(--pc-muted); font-weight: 700; }

/* Recent list */
.pc-recent{ list-style: none; margin: 14px 0 0; padding: 0; display:flex; flex-direction: column; gap: 10px; }
.pc-recent-item{ display:flex; gap: 10px; align-items: center; }
.pc-recent-title{ font-weight: 900; }
.pc-recent-title:hover{ text-decoration: underline; }
.pc-pill{
  display:inline-flex;
  align-items:center;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--pc-border);
  background: rgba(2,6,23,0.02);
  color: var(--pc-muted);
  font-weight: 900;
  font-size: 12px;
}

/* Split layout (Site Sections) */
.pc-split{ display: grid; grid-template-columns: 220px 1fr; gap: 16px; align-items: start; }
.pc-split-aside{
  position: sticky;
  top: 84px;
  align-self: start;
  padding: 10px;
  border: 1px solid var(--pc-border);
  border-radius: var(--pc-radius);
  background: rgba(255,255,255,0.9);
}
.pc-split-item{
  display:block;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--pc-muted);
  font-weight: 800;
}
.pc-split-item:hover{ background: rgba(2,6,23,0.03); color: var(--pc-text); }
.pc-split-item.is-active{ background: var(--pc-accent-soft); border: 1px solid rgba(255,92,141,0.25); color: var(--pc-text); }
.pc-split-main{ min-width: 0; }

.pc-card-nopad{ padding: 0; overflow: hidden; }
.pc-section-head{ padding: 16px 18px; border-bottom: 1px solid var(--pc-border); }
.pc-section-title{ font-weight: 900; font-size: 18px; }
.pc-section-sub{ margin-top: 4px; color: var(--pc-muted); font-weight: 700; font-size: 12px; }
.pc-section-body{ padding: 16px 18px; }

/* WP admin form output in console */
.pc-section-body .wrap{ margin: 0; }
.pc-section-body .wrap > h1{ display: none; }
.pc-section-body .wrap > .notice{ margin: 0 0 12px; }

.pc-section-body .button,
.pc-section-body .button-primary{
  border: 1px solid var(--pc-border);
  border-radius: 14px;
  padding: 10px 14px;
  font-weight: 900;
  background: #fff;
  cursor: pointer;
}
.pc-section-body .button-primary{
  border-color: rgba(255,92,141,0.45);
  background: linear-gradient(135deg, rgba(255,92,141,0.95), rgba(255,138,61,0.92));
  color: #fff;
}
.pc-section-body .button:hover{ background: rgba(2,6,23,0.03); }
.pc-section-body .button-primary:hover{ filter: brightness(1.02); }

.pc-section-body .description{ color: var(--pc-muted); font-weight: 700; }
.pc-section-body input[type="text"],
.pc-section-body input[type="number"],
.pc-section-body input[type="date"],
.pc-section-body input[type="month"],
.pc-section-body select,
.pc-section-body textarea{
  border: 1px solid var(--pc-border);
  border-radius: 12px;
  padding: 12px 12px;
}
.pc-section-body label{ font-weight: 800; }

/* ColorPage existing admin markup (cp-*) restyled */
.pc-section-body .cp-grid{ display: grid; gap: 12px; }
.pc-section-body .cp-grid-3{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pc-section-body .cp-span-2{ grid-column: span 2; }
.pc-section-body .cp-span-3{ grid-column: span 3; }
.pc-section-body .cp-social-row{
  grid-template-columns: 140px minmax(0, 1fr);
  align-items: end;
}
.pc-section-body .cp-social-row .cp-check{ white-space: nowrap; }
.pc-section-body .cp-social-row .cp-span-2{ grid-column: span 1; }
.pc-section-body .cp-sortable{ margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.pc-section-body .cp-sortable-item{
  position: relative;
  border: 1px solid var(--pc-border);
  border-radius: var(--pc-radius-sm);
  padding: 14px;
  background: rgba(255,255,255,0.9);
}
.pc-section-body .cp-handle{
  width: 32px; height: 32px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--pc-border);
  border-radius: 10px;
  background: rgba(2,6,23,0.03);
  color: transparent;
  cursor: move;
  margin-right: 8px;
  position: relative;
}
.pc-section-body .cp-handle::before{
  content: "";
  width: 12px;
  height: 12px;
  background: repeating-linear-gradient(
    to bottom,
    rgba(15,23,42,0.55) 0,
    rgba(15,23,42,0.55) 2px,
    transparent 2px,
    transparent 4px
  );
  display: block;
}
.pc-section-body .cp-check{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: var(--pc-muted);
}
.pc-section-body .cp-field span{
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  color: var(--pc-muted);
  font-weight: 800;
}
.pc-section-body .cp-repeat-head{ display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.pc-section-body .cp-remove{ position: absolute; top: 12px; right: 12px; }

.pc-section-body .cp-media-preview{
  margin-top: 10px;
  border: 1px dashed var(--pc-border);
  border-radius: var(--pc-radius-sm);
  padding: 8px;
  max-width: 320px;
  background: rgba(2,6,23,0.02);
}
.pc-section-body .cp-media-preview img,
.pc-card-body .cp-media-preview img,
.pc-panel-body .cp-media-preview img{
  max-width: 100%;
  height: auto;
  display: block;
}
.pc-section-body .cp-media-preview.is-empty{ min-height: 56px; }
.pc-section-body .cp-profile-image-slots,
.pc-panel-body .cp-profile-image-slots{
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  align-items: start;
}
.pc-section-body .cp-profile-image-slot .cp-media-preview,
.pc-panel-body .cp-profile-image-slot .cp-media-preview{
  max-width: 160px;
}
.pc-section-body .cp-profile-image-slot .cp-media-preview img,
.pc-panel-body .cp-profile-image-slot .cp-media-preview img{
  width: 100%;
  height: 88px;
  object-fit: cover;
  display: block;
}
.pc-section-body .cp-media-thumbs{
  grid-template-columns: repeat(auto-fill, 132px);
  justify-content: start;
  gap: 10px;
}
.pc-section-body .cp-media-thumbs--profile{
  grid-template-columns: repeat(auto-fill, 100px);
}
.pc-section-body .cp-thumb{ border: 1px solid var(--pc-border); border-radius: var(--pc-radius-sm); padding: 8px; background: #fff; position: relative; }
.pc-section-body .cp-thumb img{
  width: 100%;
  height: 92px;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  background: rgba(2,6,23,0.02);
}
.pc-section-body .cp-media-thumbs--profile .cp-thumb{ padding: 6px; }
.pc-section-body .cp-media-thumbs--profile .cp-thumb img{ height: 72px; }
.pc-section-body .cp-thumb .cp-remove{ top: 8px; right: 8px; }

.pc-section-body .cp-tab-nav{ display: flex; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.pc-section-body .cp-tab{ border-radius: 14px; }
.pc-section-body .cp-tab.is-active{
  border-color: rgba(255,92,141,0.35);
  background: var(--pc-accent-soft);
  box-shadow: inset 0 0 0 2px rgba(255,92,141,0.18);
}
.pc-section-body .cp-tab-panels{ border: 1px solid var(--pc-border); border-radius: var(--pc-radius-sm); padding: 14px; background: #fff; }
.pc-section-body .cp-tab-panel{ display: none; }
.pc-section-body .cp-tab-panel.is-active{ display: block; }

/* Video manage (entries) */
.pc-videos-manage{ padding: 0; }
.pc-videos-manage .pc-muted{ margin: 0 0 8px; }
.pc-videos-manage .cp-repeat-head{
  padding: 10px 12px;
  border: 1px solid var(--pc-border);
  border-radius: 14px;
  background: rgba(2,6,23,0.02);
  flex-wrap: wrap;
  gap: 10px;
}
.pc-videos-manage .cp-repeat-head--solo{
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  justify-content: center;
}
.pc-videos-manage .cp-add-large{
  padding: 14px 20px;
  font-size: 14px;
  min-width: 180px;
}
.pc-videos-manage .cp-sortable{ gap: 14px; }
.pc-videos-manage .cp-sortable-item{
  background: #fff;
  box-shadow: 0 8px 26px rgba(2,6,23,0.08);
}
.pc-videos-manage .cp-handle{
  width: 32px; height: 32px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--pc-border);
  border-radius: 10px;
  background: rgba(2,6,23,0.03);
}
.pc-videos-manage .cp-acc-toggle{ font-size: 14px; padding: 8px 10px; }
.pc-videos-manage .cp-acc-body{ margin-top: 12px; }
@media (max-width: 900px){
  .pc-videos-manage .cp-grid-3{ grid-template-columns: 1fr; }
  .pc-videos-manage .cp-span-2,
  .pc-videos-manage .cp-span-3{ grid-column: span 1; }
}

.pc-section-body .cp-video-categories{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px 2px;
}
.pc-section-body .cp-pill-check{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid var(--pc-border);
  border-radius: 999px;
  background: #fff;
  font-weight: 900;
  cursor: pointer;
  user-select: none;
}
.pc-section-body .cp-pill-check input{ width: 16px; height: 16px; }
.pc-section-body .cp-pill-check:has(input:checked){
  background: var(--pc-accent-soft);
  border-color: rgba(255,92,141,0.35);
}

.pc-section-body .cp-actions-row{ display:flex; align-items:center; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.pc-section-body .cp-actions-row .description{ margin: 0; }

.pc-card-body .cp-actions-row{
  display:flex;
  align-items:center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.pc-card-body .cp-actions-row .description{ margin: 0; }

.pc-card-body .cp-media-preview{
  margin-top: 10px;
  border: 1px dashed var(--pc-border);
  border-radius: var(--pc-radius-sm);
  padding: 8px;
  max-width: 320px;
  background: rgba(2,6,23,0.02);
}
.pc-card-body .cp-media-preview.is-empty{ min-height: 56px; }

.pc-brand-icon-preview{
  width: 96px;
  height: 96px;
  padding: 0;
  max-width: none;
  border-radius: 16px;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.pc-brand-icon-preview img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pc-crop-modal{
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
}
.pc-crop-modal[hidden]{ display: none; }
.pc-crop-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(2,6,23,0.6);
}
.pc-crop-dialog{
  position: relative;
  width: min(92vw, 520px);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(2,6,23,0.28);
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  z-index: 1;
}
.pc-crop-head{
  padding: 14px 16px;
  border-bottom: 1px solid var(--pc-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.pc-crop-body{
  padding: 16px;
  display: grid;
  gap: 12px;
}
.pc-crop-stage{
  width: min(360px, 70vw);
  height: min(360px, 70vw);
  margin: 0 auto;
  border-radius: 16px;
  background: rgba(2,6,23,0.04);
  overflow: hidden;
  position: relative;
}
.pc-crop-stage canvas{
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
  touch-action: none;
}
.pc-crop-actions{
  padding: 0 16px 16px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
body.pc-crop-open{
  overflow: hidden;
}

.pc-section-body .cp-repeat-item.is-collapsed .cp-acc-body{ display: none; }
.pc-section-body .cp-acc-toggle{
  flex: 1;
  text-align: left;
  border: 1px solid transparent;
  background: none;
  padding: 8px 10px;
  border-radius: 12px;
  font-weight: 900;
  color: var(--pc-text);
  cursor: pointer;
}
.pc-section-body .cp-acc-toggle:hover{ background: rgba(2,6,23,0.03); }
.pc-section-body .cp-repeat-item.is-collapsed .cp-acc-toggle{
  background: rgba(2,6,23,0.02);
  border-color: var(--pc-border);
}

/* Panels: repeatable layout */
.pc-panel-body .cp-sortable{ margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.pc-panel-body .cp-sortable-item{
  position: relative;
  border: 1px solid var(--pc-border);
  border-radius: var(--pc-radius-sm);
  padding: 14px;
  background: rgba(255,255,255,0.9);
}
.pc-panel-body .button,
.pc-panel-body .button-primary{
  border: 1px solid var(--pc-border);
  border-radius: 14px;
  padding: 10px 14px;
  font-weight: 900;
  background: #fff;
  cursor: pointer;
}
.pc-panel-body .button-primary{
  border-color: rgba(255,92,141,0.45);
  background: linear-gradient(135deg, rgba(255,92,141,0.95), rgba(255,138,61,0.92));
  color: #fff;
}
.pc-panel-body .button:hover{ background: rgba(2,6,23,0.03); }
.pc-panel-body .button-primary:hover{ filter: brightness(1.02); }
.pc-panel-body .button-link-delete{
  border: 0;
  background: none;
  color: #e11d48;
  font-weight: 800;
  cursor: pointer;
}
.pc-panel-body .button-link-delete:hover{ text-decoration: underline; }
.pc-panel-body .cp-repeat-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 10px;
}
.pc-panel-body .cp-grid{ display: grid; gap: 12px; }
.pc-panel-body .cp-grid-3{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pc-panel-body .cp-span-2{ grid-column: span 2; }
.pc-panel-body .cp-span-3{ grid-column: span 3; }
.pc-panel-body .cp-social-row{
  grid-template-columns: 140px minmax(0, 1fr);
  align-items: end;
}
.pc-panel-body .cp-social-row .cp-check{ white-space: nowrap; }
.pc-panel-body .cp-social-row .cp-span-2{ grid-column: span 1; }
.pc-panel-body .cp-check{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: var(--pc-muted);
}
.pc-panel-body .cp-field span{
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  color: var(--pc-muted);
  font-weight: 800;
}
.pc-panel-body .cp-handle{
  width: 32px; height: 32px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--pc-border);
  border-radius: 10px;
  background: rgba(2,6,23,0.03);
  color: transparent;
  cursor: move;
  margin-right: 8px;
  position: relative;
}
.pc-panel-body .cp-handle::before{
  content: "";
  width: 12px;
  height: 12px;
  background: repeating-linear-gradient(
    to bottom,
    rgba(15,23,42,0.55) 0,
    rgba(15,23,42,0.55) 2px,
    transparent 2px,
    transparent 4px
  );
  display: block;
}
.pc-panel-body .cp-remove{ position: absolute; top: 12px; right: 12px; }
.pc-panel-body .cp-repeat-item.is-collapsed .cp-acc-body{ display: none; }
.pc-panel-body .cp-acc-toggle{
  flex: 1;
  text-align: left;
  border: 1px solid transparent;
  background: none;
  padding: 8px 10px;
  border-radius: 12px;
  font-weight: 900;
  color: var(--pc-text);
  cursor: pointer;
}
.pc-panel-body .cp-acc-toggle:hover{ background: rgba(2,6,23,0.03); }
.pc-panel-body .cp-repeat-item.is-collapsed .cp-acc-toggle{
  background: rgba(2,6,23,0.02);
  border-color: var(--pc-border);
}
.pc-panel-body .cp-media-thumbs{
  grid-template-columns: repeat(auto-fill, 132px);
  justify-content: start;
  gap: 10px;
}
.pc-panel-body .cp-media-thumbs--profile{
  grid-template-columns: repeat(auto-fill, 100px);
}
.pc-panel-body .cp-thumb{
  border: 1px solid var(--pc-border);
  border-radius: var(--pc-radius-sm);
  padding: 8px;
  background: #fff;
  position: relative;
  overflow: hidden;
  max-width: 132px;
}
.pc-panel-body .cp-media-thumbs--profile .cp-thumb{
  padding: 6px;
  max-width: 100px;
}
.pc-panel-body .cp-thumb img{
  width: 100%;
  max-width: 100%;
  height: 92px;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  background: rgba(2,6,23,0.02);
}
.pc-panel-body .cp-media-thumbs--profile .cp-thumb img{ height: 72px; }

/* Lists (sortable) */
.pc-list{ list-style: none; margin: 14px 0 0; padding: 0; }
.pc-list > .pc-list-item + .pc-list-item{ margin-top: 12px; }
.pc-list-item{
  border: 1px solid var(--pc-border);
  border-radius: var(--pc-radius-sm);
  background: #fff;
  padding: 14px;
}
.pc-list-item:hover{ border-color: rgba(15, 23, 42, 0.2); }
.pc-list-item.is-collapsed{ padding-top: 10px; padding-bottom: 10px; }
.pc-list-head{ display:flex; align-items:center; gap: 10px; margin-bottom: 10px; }
.pc-list-item.is-collapsed .pc-list-head{ margin-bottom: 0; }
.pc-handle{
  width: 34px; height: 34px;
  display:grid; place-items:center;
  border: 1px solid var(--pc-border);
  border-radius: 12px;
  background: rgba(2,6,23,0.02);
  color: var(--pc-muted);
  cursor: move;
  user-select: none;
}
.pc-remove{ margin-left: auto; }

.pc-list-item.is-collapsed .pc-acc-body{ display: none; }
.pc-acc-body{ margin-top: 10px; }
.pc-acc-toggle{
  flex: 1;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  border: 1px solid transparent;
  background: none;
  padding: 8px 10px;
  border-radius: 12px;
  font-weight: 900;
  color: var(--pc-text);
  cursor: pointer;
}
.pc-acc-toggle:hover{ background: rgba(2,6,23,0.03); }
.pc-list-item.is-collapsed .pc-acc-toggle{
  background: rgba(2,6,23,0.02);
  border-color: var(--pc-border);
}
.pc-acc-caret{
  color: var(--pc-muted);
  transition: transform 180ms ease;
  flex: 0 0 auto;
}
.pc-list-item:not(.is-collapsed) .pc-acc-caret{ transform: rotate(180deg); }

/* Form */
.pc-form{ display:flex; flex-direction: column; gap: 12px; }
.pc-field{ display:flex; flex-direction: column; gap: 6px; }
.pc-field > span{ color: var(--pc-muted); font-weight: 800; font-size: 12px; }
input[type="text"], input[type="password"], input[type="search"], input[type="url"], input[type="number"], input[type="datetime-local"], input[type="month"], select, textarea{
  width: 100%;
  border: 1px solid var(--pc-border);
  border-radius: 12px;
  padding: 12px 12px;
  font: inherit;
  background: #fff;
  color: var(--pc-text);
}
input:focus, select:focus, textarea:focus{ outline: none; box-shadow: var(--pc-focus); border-color: rgba(255,92,141,0.45); }

/* Color */
.pc-color-wrap{ position: relative; }
.pc-color-tools{ display:flex; gap: 10px; align-items: center; }
.pc-color-tools .pc-input{ flex: 1 1 auto; min-width: 0; }
.pc-color-trigger{
  width: 44px; height: 44px;
  padding: 0;
  border: 1px solid var(--pc-border);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.pc-color-trigger:hover{ background: rgba(2,6,23,0.03); }
.pc-color-trigger.is-open{ box-shadow: var(--pc-focus); border-color: rgba(255,92,141,0.45); }
.pc-color-trigger-swatch{
  width: 100%; height: 100%;
  border-radius: 0;
  background: var(--pc-swatch, #fff);
  border: 1px solid rgba(15,23,42,0.12);
}
.pc-color-popover{
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 50;
  width: min(420px, 100%);
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--pc-border);
  background: #fff;
  box-shadow: 0 18px 60px rgba(2, 6, 23, 0.18);
}
.pc-color-popover-head{ display:flex; align-items:center; justify-content: space-between; gap: 10px; }
.pc-color-popover-title{ font-size: 13px; font-weight: 900; }
.pc-color-picker{
  width: 44px; height: 44px;
  padding: 0;
  border: 1px solid var(--pc-border);
  border-radius: 12px;
  background: #fff;
}
.pc-color-picker::-webkit-color-swatch-wrapper{ padding: 0; }
.pc-color-picker::-webkit-color-swatch{ border: 0; border-radius: 10px; }
.pc-color-palette{ display:flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.pc-color-swatch{
  width: 28px; height: 28px;
  border-radius: 10px;
  border: 1px solid var(--pc-border);
  background: var(--pc-swatch, #fff);
  cursor: pointer;
}
.pc-color-swatch:hover{ transform: translateY(-1px); }
.pc-color-swatch.is-active{ box-shadow: var(--pc-focus); border-color: rgba(15,23,42,0.45); }
.pc-color-free{ display:flex; align-items:center; gap: 10px; margin-top: 12px; }

.pc-check{ display:flex; gap: 10px; align-items:center; color: var(--pc-muted); font-weight: 800; }
.pc-check input{ width: 18px; height: 18px; }

.pc-btn{
  border: 1px solid var(--pc-border);
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 900;
  background: #fff;
  cursor: pointer;
}
.pc-btn:hover{ background: rgba(2,6,23,0.03); }
.pc-btn-primary{
  border-color: rgba(255,92,141,0.45);
  background: linear-gradient(135deg, rgba(255,92,141,0.95), rgba(255,138,61,0.92));
  color: #fff;
}
.pc-btn-primary:hover{ filter: brightness(1.02); }

/* Actions + filters */
.pc-actions{ display:flex; justify-content: flex-end; margin-bottom: 14px; }
.pc-actions-split{ justify-content: space-between; gap: 10px; }
.pc-actions-col{ flex-direction: column; align-items: stretch; }
.pc-filter{ padding: 16px; }
.pc-filter-grid{
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: end;
}
.pc-filter-grid .pc-field:nth-child(1){ grid-column: span 4; }
.pc-filter-grid .pc-field:nth-child(2){ grid-column: span 2; }
.pc-filter-grid .pc-field:nth-child(3){ grid-column: span 3; }
.pc-filter-grid .pc-field:nth-child(4){ grid-column: span 2; }
.pc-filter-check{ grid-column: span 1; }
.pc-filter-actions{ grid-column: span 12; display:flex; gap: 10px; justify-content: flex-end; }
.pc-note{ margin: 10px 0 0; color: var(--pc-muted); font-weight: 700; }

@media (max-width: 900px){
  .pc-filter-grid{ grid-template-columns: 1fr; }
  .pc-filter-grid .pc-field:nth-child(1),
  .pc-filter-grid .pc-field:nth-child(2),
  .pc-filter-grid .pc-field:nth-child(3),
  .pc-filter-grid .pc-field:nth-child(4),
  .pc-filter-check,
  .pc-filter-actions{ grid-column: auto; }
  .pc-filter-actions{ justify-content: stretch; }
}

/* Tables */
.pc-table-wrap{ padding: 0; overflow: hidden; }
.pc-table{ width: 100%; border-collapse: collapse; }
.pc-table th, .pc-table td{ padding: 12px 14px; border-bottom: 1px solid var(--pc-border); }
.pc-table th{ text-align: left; font-size: 12px; color: var(--pc-muted); font-weight: 900; background: rgba(2,6,23,0.02); }
.pc-row-title{ font-weight: 900; }
.pc-muted{ color: var(--pc-muted); font-weight: 700; }
.pc-empty{ color: var(--pc-muted); font-weight: 800; text-align: center; padding: 18px 14px; }
.pc-col-order{ width: 52px; text-align: center; }
.pc-row-handle{
  display:inline-grid; place-items:center;
  width: 34px; height: 34px;
  border: 1px solid var(--pc-border);
  border-radius: 12px;
  background: rgba(2,6,23,0.02);
  color: var(--pc-muted);
  cursor: move;
  user-select: none;
}

/* Pagination */
.pc-pagination{ display:flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 14px; }
.pc-page{
  min-width: 38px;
  height: 38px;
  display:grid;
  place-items:center;
  border-radius: 12px;
  border: 1px solid var(--pc-border);
  background: #fff;
  font-weight: 900;
  color: var(--pc-muted);
}
.pc-page:hover{ background: rgba(2,6,23,0.03); color: var(--pc-text); }
.pc-page.is-current{ background: var(--pc-accent-soft); border-color: rgba(255,92,141,0.25); color: var(--pc-text); }

/* Editor layout */
.pc-editor-form{ margin-top: 14px; }
.pc-editor-grid{ display:grid; grid-template-columns: 1fr 340px; gap: 16px; align-items: start; }
.pc-editor-side{ position: sticky; top: 84px; align-self: start; display:flex; flex-direction: column; gap: 16px; }
.pc-editor-main{ display:flex; flex-direction: column; gap: 16px; min-width: 0; }
.pc-editor{ margin-top: 10px; }
.pc-editor .wp-editor-wrap{ border: 1px solid var(--pc-border); border-radius: var(--pc-radius-sm); overflow: hidden; background: #fff; }
.pc-editor .wp-editor-container{ border: 0; }
.pc-editor-tools{ margin-top: 12px; display:flex; gap: 10px; justify-content: flex-end; }
.pc-term-list{ display:flex; flex-direction: column; gap: 8px; margin-top: 10px; }

.pc-featured{ display:flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.pc-featured-preview{
  border: 1px dashed var(--pc-border);
  border-radius: var(--pc-radius-sm);
  padding: 10px;
  background: rgba(2,6,23,0.02);
  min-height: 90px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.pc-featured-preview img{ max-width: 100%; height: auto; border-radius: 12px; display:block; }

@media (max-width: 900px){
  .pc-editor-grid{ grid-template-columns: 1fr; }
  .pc-editor-side{ position: static; top: auto; }
}

/* Media modal */
.pc-media-modal[aria-hidden="true"]{ display:none; }
.pc-media-modal{
  position: fixed;
  inset: 0;
  z-index: 50;
}
.pc-media-backdrop{ position:absolute; inset:0; background: rgba(2,6,23,0.45); }
.pc-media-panel{
  position: relative;
  margin: 6vh auto 0;
  width: min(980px, calc(100vw - 24px));
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 30px 90px rgba(2,6,23,0.35);
  overflow: hidden;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
}
.pc-media-head{ padding: 14px 16px; border-bottom: 1px solid var(--pc-border); display:flex; justify-content: space-between; align-items:center; }
.pc-media-body{ padding: 14px 16px; overflow: auto; flex: 1 1 auto; }
.pc-media-actions{ display:flex; gap: 10px; align-items:center; flex-wrap: wrap; }
.pc-media-search{ flex: 1; min-width: 220px; }
.pc-media-grid{
  margin-top: 12px;
  display:grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 900px){ .pc-media-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pc-media-item{
  border: 1px solid var(--pc-border);
  border-radius: 14px;
  background: #fff;
  padding: 6px;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
}
.pc-media-item:hover{ transform: translateY(-1px); box-shadow: 0 14px 30px rgba(2,6,23,0.12); }
.pc-media-item img{ width: 100%; height: auto; display:block; border-radius: 10px; aspect-ratio: 1 / 1; object-fit: cover; }
.pc-media-item.is-selected{ outline: 3px solid rgba(255,92,141,0.35); }
.pc-media-more{ margin-top: 12px; display:flex; justify-content: center; }

/* Toast + sticky error */
.pc-toast{
  position: fixed;
  bottom: 18px; left: 50%;
  transform: translateX(-50%);
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.92);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 18px 50px rgba(2,6,23,0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease, transform .15s ease;
  max-width: min(520px, calc(100vw - 24px));
}
.pc-toast.is-show{ opacity: 1; transform: translateX(-50%) translateY(-2px); }
.pc-sticky-error{
  margin: 18px 22px 0;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(220,38,38,0.35);
  background: var(--pc-danger-soft);
  color: var(--pc-danger);
  font-weight: 800;
}
.pc-sticky-error ul{ margin: 0; padding-left: 18px; }

/* Login */
.pc-login{ background: radial-gradient(1200px 520px at 40% 0%, rgba(255, 92, 141, 0.10), rgba(255,255,255,0)), #fff; }
.pc-login-wrap{ min-height: 100vh; display:grid; place-items:center; padding: 24px; }
.pc-login-card{
  width: min(420px, 100%);
  background: #fff;
  border: 1px solid var(--pc-border);
  border-radius: 22px;
  box-shadow: var(--pc-shadow);
  padding: 22px;
}
.pc-login-title{ margin: 0 0 14px; font-size: 22px; letter-spacing: .02em; }
.pc-site-list{
  display: grid;
  gap: 10px;
  margin-top: 16px;
}
.pc-site-item{
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid var(--pc-border);
  border-radius: 14px;
  background: #fff;
  transition: transform .15s ease, box-shadow .15s ease;
}
.pc-site-item:hover{ transform: translateY(-1px); box-shadow: var(--pc-shadow); }
.pc-site-name{ font-weight: 800; }
.pc-site-url{ color: var(--pc-muted); font-size: 13px; }
