/**
 * YOOAdmin Lite — admin themes page (card grid + header chrome).
 * Extracted from Extended upload-page.css; upload UI is not included in Lite.
 */
/* Upload Page - New Design */
.yoo-upload-wrap {
  max-width: 1400px;
  margin: 20px auto;
  padding: 0 20px;
  box-sizing: border-box;
  overflow-x: hidden;
  /* Replace-confirm version strip (hub / admin themes can override for dark). */
  --yoo-upload-version-strip-bg: #f0f2f4;
  --yoo-upload-version-strip-border: rgba(0, 0, 0, 0.08);
}

.yoo-upload-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid #dcdcde;
}

.yoo-upload-header-content {
  flex: 1;
}

.yoo-upload-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Check for updates — layout; chrome: yooadmin-yoo-buttons (yp-yoo-btn--soft) */
.yoo-check-updates-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--yp-yoo-btn-gap, 8px);
  cursor: pointer;
}

.yoo-check-updates-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.yoo-check-updates-btn .dashicons {
  width: 18px;
  height: 18px;
  font-size: 18px;
}

.yoo-upload-title {
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 8px 0;
  color: var(--yp-text);
}

.yoo-upload-subtitle {
  font-size: 13px;
  color: var(--yp-text);
  margin: 0;
}

.yoo-upload-toggle-btn {
  padding: 8px 16px;
  background: var(--_yp-primary, #eda934);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.yoo-upload-toggle-btn:hover {
  background: color-mix(in srgb, var(--_yp-primary, #eda934) 88%, #000);
}

.yoo-upload-toggle-btn .dashicons {
  font-size: 18px;
  width: 18px;
  height: 18px;
}

.yoo-toggle-icon {
  margin-left: 4px;
  transition: transform 0.3s;
}

/* Upload Section */
.yoo-upload-section {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 32px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  position: relative;
  z-index: 1;
  box-sizing: border-box;
}

.yoo-theme-manager-wrap.yoo-upload-wrap .yoo-upload-header {
  margin-bottom: 22px;
  padding-bottom: 14px;
}

.yoo-theme-manager-wrap.yoo-upload-wrap .yoo-upload-title {
  font-size: 19px;
  margin: 0 0 5px;
  line-height: 1.25;
}

.yoo-theme-manager-wrap.yoo-upload-wrap .yoo-upload-title .yoo-upload-title-dashicon {
  vertical-align: middle;
  margin-right: 6px;
  font-size: 22px;
  width: 22px;
  height: 22px;
}

.yoo-theme-manager-wrap.yoo-upload-wrap .yoo-upload-subtitle {
  font-size: 12px;
  line-height: 1.45;
}

.yoo-theme-manager-wrap.yoo-upload-wrap .yoo-upload-header-actions {
  gap: 8px;
}

.yoo-theme-manager-wrap.yoo-upload-wrap .yoo-check-updates-btn {
  padding: 6px 11px;
  font-size: 12px;
  gap: 5px;
}

.yoo-theme-manager-wrap.yoo-upload-wrap .yoo-check-updates-btn .dashicons {
  width: 15px;
  height: 15px;
  font-size: 15px;
}

.yoo-theme-manager-wrap.yoo-upload-wrap .yoo-upload-toggle-btn {
  padding: 6px 12px;
  font-size: 12px;
  gap: 6px;
}

.yoo-theme-manager-wrap.yoo-upload-wrap .yoo-upload-toggle-btn .dashicons {
  font-size: 15px;
  width: 15px;
  height: 15px;
}

.yoo-wordpress-results:not(.yoo-list-view-mode) .yoo-plugin-card {
  background: #fff;
  border: 1px solid #dcdcde;
  border-radius: 8px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: all 0.2s;
  position: relative;
}

.yoo-wordpress-results:not(.yoo-list-view-mode) .yoo-plugin-card:hover {
  border-color: #999;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.yoo-theme-manager-wrap #wp-results.yoo-wordpress-results:not(.yoo-list-view-mode) {
  width: 100%;
  box-sizing: border-box;
  align-items: start;
}

.yoo-theme-manager-wrap #wp-results.yoo-wordpress-results:not(.yoo-installed-split-layout):not(.yoo-list-view-mode) {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 16px;
}

.yoo-theme-manager-wrap #wp-results.yoo-wordpress-results.yoo-installed-split-layout {
  display: block;
}

.yoo-theme-manager-wrap .yoo-installed-split {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  box-sizing: border-box;
  --yoo-installed-sidebar-gap: 20px;
  --yoo-installed-overflow-gap: 29px;
  --yoo-installed-hero-col-gap: var(--yoo-installed-sidebar-gap);
  padding-right: var(--yoo-installed-sidebar-gap);
}

.yoo-theme-manager-wrap .yoo-installed-hero-row {
  display: grid;
  grid-template-columns: minmax(320px, min(620px, 58vw)) minmax(0, 1fr);
  column-gap: var(--yoo-installed-hero-col-gap, 20px);
  row-gap: 0;
  align-items: start;
  width: 100%;
  box-sizing: border-box;
}

.yoo-theme-manager-wrap .yoo-installed-sidebar-col:empty {
  display: none;
}

.yoo-theme-manager-wrap .yoo-installed-hero-row:has(.yoo-installed-sidebar-col:empty) {
  grid-template-columns: minmax(320px, min(620px, 58vw));
}

.yoo-theme-manager-wrap .yoo-installed-active-col,
.yoo-theme-manager-wrap .yoo-installed-sidebar-col {
  min-width: 0;
}

.yoo-theme-manager-wrap .yoo-installed-active-col {
  max-width: min(620px, 100%);
  width: 100%;
  justify-self: start;
  align-self: start;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: var(--yoo-installed-sidebar-block-px, auto);
  max-height: var(--yoo-installed-sidebar-block-px, min(62vh, 480px));
}

.yoo-theme-manager-wrap .yoo-installed-sidebar-col {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--yoo-installed-sidebar-gap);
  align-content: start;
  align-self: stretch;
  width: 100%;
  min-height: 0;
  box-sizing: border-box;
}

.yoo-theme-manager-wrap .yoo-installed-overflow-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--yoo-installed-overflow-gap);
  align-content: start;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 1100px) {
  .yoo-theme-manager-wrap .yoo-installed-sidebar-col {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .yoo-theme-manager-wrap .yoo-installed-overflow-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .yoo-theme-manager-wrap .yoo-installed-sidebar-col,
  .yoo-theme-manager-wrap .yoo-installed-overflow-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.yoo-theme-manager-wrap .yoo-installed-overflow-row:empty {
  display: none;
}

/* Active hero: fill the column height set to match sidebar; cover + clip = no corner gaps. */
.yoo-theme-manager-wrap #wp-results.yoo-installed-split-layout .yoo-theme-card--installed-hero {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.yoo-theme-manager-wrap #wp-results.yoo-installed-split-layout .yoo-theme-card--installed-hero .yoo-theme-card-media-wrap {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  position: relative;
}

.yoo-theme-manager-wrap #wp-results.yoo-installed-split-layout .yoo-theme-card--installed-hero .yoo-theme-card-media-wrap .yoo-theme-card-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  aspect-ratio: unset;
  background-size: cover;
  background-position: center center;
  background-color: #e8eaed;
}

/* Compact cards: sidebar + overflow row. */
.yoo-theme-manager-wrap #wp-results.yoo-installed-split-layout .yoo-theme-card--installed-compact .yoo-theme-card-media-wrap .yoo-theme-card-media {
  min-height: 128px;
  height: auto;
  aspect-ratio: 4 / 3;
  max-height: min(34vh, 260px);
  background-size: cover;
  background-position: center top;
  background-color: #e8eaed;
}

@media (max-width: 782px) {
  .yoo-theme-manager-wrap .yoo-installed-hero-row {
    grid-template-columns: 1fr;
  }

  /* Stacked layout: do not lock hero height to sidebar (sidebar is below). */
  .yoo-theme-manager-wrap .yoo-installed-active-col {
    height: auto;
    max-height: none;
  }

  .yoo-theme-manager-wrap #wp-results.yoo-installed-split-layout .yoo-theme-card--installed-hero {
    flex: 0 0 auto;
  }

  .yoo-theme-manager-wrap #wp-results.yoo-installed-split-layout .yoo-theme-card--installed-hero .yoo-theme-card-media-wrap {
    flex: 0 0 auto;
    aspect-ratio: 4 / 3;
    width: 100%;
    max-height: min(70vh, 520px);
    min-height: 220px;
  }
}

/* Installed split only: dim inactive, highlight active */
.yoo-theme-manager-wrap #wp-results.yoo-installed-split-layout.yoo-wordpress-results:not(.yoo-list-view-mode) .yoo-plugin-card.yoo-theme-card {
  padding: 0;
  overflow: hidden;
  gap: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border-radius: 8px;
  transition:
    opacity 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease,
    border-color 0.2s ease;
}

.yoo-theme-manager-wrap #wp-results.yoo-installed-split-layout.yoo-wordpress-results:not(.yoo-list-view-mode) .yoo-plugin-card.yoo-theme-card:not(.active) {
  opacity: 0.88;
  filter: saturate(0.88);
  background: #fff;
}

.yoo-theme-manager-wrap #wp-results.yoo-installed-split-layout.yoo-wordpress-results:not(.yoo-list-view-mode) .yoo-plugin-card.yoo-theme-card:not(.active):hover {
  opacity: 0.92;
  filter: saturate(0.92);
}

.yoo-theme-manager-wrap #wp-results.yoo-installed-split-layout.yoo-wordpress-results:not(.yoo-list-view-mode) .yoo-plugin-card.yoo-theme-card.active {
  z-index: 2;
  opacity: 1;
  filter: none;
  background: #fff;
  border-radius: 8px;
  /* Ring via box-shadow avoids inner gap vs rounded screenshot. */
  border: none;
  box-shadow:
    0 0 0 2px var(--_yp-primary, #eda934),
    0 8px 26px rgba(0, 0, 0, 0.08);
  outline: none;
}

.yoo-theme-manager-wrap #wp-results.yoo-installed-split-layout.yoo-wordpress-results:not(.yoo-list-view-mode) .yoo-plugin-card.yoo-theme-card.active > .yoo-theme-card-media-wrap {
  background: #e8eaed;
}

/* Browse / Featured / repo grid: same card shell as before (no Installed-only dimming) */
.yoo-theme-manager-wrap #wp-results.yoo-wordpress-results:not(.yoo-installed-split-layout):not(.yoo-list-view-mode) .yoo-plugin-card.yoo-theme-card {
  padding: 0;
  overflow: hidden;
  gap: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  opacity: 1;
  filter: none;
  background: #fff;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.yoo-theme-manager-wrap .yoo-wordpress-results.yoo-list-view-mode .yoo-plugin-card:not(.active) {
  opacity: 0.9;
}

.yoo-theme-manager-wrap .yoo-wordpress-results.yoo-list-view-mode .yoo-plugin-card.active {
  opacity: 1;
  background: #fff;
  border: 2px solid var(--_yp-primary, #eda934);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
}

/* Installed split: rounded media wrap, cover clip. */
.yoo-theme-manager-wrap #wp-results.yoo-installed-split-layout.yoo-wordpress-results:not(.yoo-list-view-mode) .yoo-theme-card > .yoo-theme-card-media-wrap {
  position: relative;
  width: 100%;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #e8eaed;
  isolation: isolate;
}

/* Browse/repo: previous flat-top shell. */
.yoo-theme-manager-wrap #wp-results.yoo-wordpress-results:not(.yoo-installed-split-layout):not(.yoo-list-view-mode) .yoo-theme-card > .yoo-theme-card-media-wrap {
  position: relative;
  width: 100%;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 0;
  background: #f3f4f6;
  isolation: isolate;
}

/* Browse/repo: classic tall screenshot (cover) — restored behavior */
.yoo-theme-manager-wrap #wp-results.yoo-wordpress-results:not(.yoo-installed-split-layout):not(.yoo-list-view-mode) .yoo-theme-card-media-wrap .yoo-theme-card-media {
  width: 100%;
  min-height: 220px;
  height: 260px;
  max-height: min(44vh, 400px);
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  border-radius: 0;
}

.yoo-theme-manager-wrap #wp-results.yoo-wordpress-results:not(.yoo-installed-split-layout):not(.yoo-list-view-mode) .yoo-theme-card-media--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f6f7f7;
}

.yoo-theme-manager-wrap #wp-results.yoo-wordpress-results:not(.yoo-installed-split-layout):not(.yoo-list-view-mode) .yoo-theme-card-media--placeholder .dashicons {
  font-size: 48px;
  width: 48px;
  height: 48px;
  color: var(--_yp-primary, #eda934);
}

/* Installed split: clipping from parent wrap. */
.yoo-theme-manager-wrap #wp-results.yoo-installed-split-layout.yoo-wordpress-results:not(.yoo-list-view-mode) .yoo-theme-card-media-wrap .yoo-theme-card-media {
  width: 100%;
  background-repeat: no-repeat;
  border-radius: 0;
}

.yoo-theme-manager-wrap #wp-results.yoo-installed-split-layout.yoo-wordpress-results:not(.yoo-list-view-mode) .yoo-theme-card-media--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f6f7f7;
  min-height: 140px;
  aspect-ratio: 4 / 3;
}

/* Active hero placeholder: same fill as screenshot layer. */
.yoo-theme-manager-wrap #wp-results.yoo-installed-split-layout .yoo-theme-card--installed-hero .yoo-theme-card-media-wrap .yoo-theme-card-media--placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: unset;
  border-radius: 0;
}

.yoo-theme-manager-wrap #wp-results.yoo-installed-split-layout.yoo-wordpress-results:not(.yoo-list-view-mode) .yoo-theme-card-media--placeholder .dashicons {
  font-size: 48px;
  width: 48px;
  height: 48px;
  color: var(--_yp-primary, #eda934);
}

/* Full-card hover: glass clipped by media-wrap */
.yoo-theme-manager-wrap .yoo-theme-card-hover-glass {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.yoo-theme-manager-wrap #wp-results.yoo-installed-split-layout .yoo-theme-card-hover-glass,
.yoo-theme-manager-wrap #wp-results.yoo-installed-split-layout .yoo-theme-card-hover-text {
  border-radius: 8px;
}

.yoo-theme-manager-wrap .yoo-theme-card-hover-text {
  position: absolute;
  inset: 0;
  z-index: 4;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 44px 16px 88px;
  box-sizing: border-box;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.98);
  transition:
    opacity 0.24s ease,
    transform 0.24s ease;
}

.yoo-theme-manager-wrap .yoo-theme-card-hover-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  color: #fff;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.55);
  max-width: 100%;
}

.yoo-theme-manager-wrap .yoo-theme-card-hover-author {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
  max-width: 100%;
}

.yoo-theme-manager-wrap .yoo-theme-card-media-wrap:hover .yoo-theme-card-hover-glass,
.yoo-theme-manager-wrap .yoo-theme-card-media-wrap:focus-within .yoo-theme-card-hover-glass {
  opacity: 1;
}

.yoo-theme-manager-wrap .yoo-theme-card-media-wrap:hover .yoo-theme-card-hover-text,
.yoo-theme-manager-wrap .yoo-theme-card-media-wrap:focus-within .yoo-theme-card-hover-text {
  opacity: 1;
  transform: scale(1);
}


/* Top tags: dark glass, subtle radius — single row (version + status + update) */
.yoo-theme-manager-wrap .yoo-theme-card-media-wrap .yoo-theme-card-top-tags {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  max-width: calc(100% - 16px);
  pointer-events: auto;
}

.yoo-theme-manager-wrap .yoo-wordpress-results.yoo-list-view-mode .yoo-theme-card-media-wrap .yoo-theme-card-top-tags {
  flex-wrap: wrap;
  gap: 6px;
}

/* Inactive installed themes: show version + status on hover / focus only (active card has no this class). */
.yoo-theme-manager-wrap .yoo-theme-card-media-wrap .yoo-theme-card-top-tags--inactive-hover-only {
  opacity: 0;
  transition: opacity 0.18s ease;
  pointer-events: none;
}

.yoo-theme-manager-wrap .yoo-theme-card-media-wrap:hover .yoo-theme-card-top-tags--inactive-hover-only,
.yoo-theme-manager-wrap .yoo-theme-card-media-wrap:focus-within .yoo-theme-card-top-tags--inactive-hover-only {
  opacity: 1;
  pointer-events: auto;
}

.yoo-theme-manager-wrap .yoo-theme-card-media-wrap .yoo-theme-status-tag {
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  pointer-events: none;
}

.yoo-theme-manager-wrap .yoo-theme-version-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 10px;
  box-sizing: border-box;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.95);
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: none;
  flex-shrink: 0;
}

.yoo-theme-manager-wrap
  .yoo-wordpress-results:not(.yoo-list-view-mode)
  .yoo-theme-card-media-wrap
  .yoo-theme-version-tag {
  min-height: 28px;
  padding: 0 7px;
  font-size: 11px;
  border-radius: 6px;
}

.yoo-theme-manager-wrap .yoo-theme-rating-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 34px;
  padding: 0 10px;
  box-sizing: border-box;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.2;
  cursor: default;
  color: rgba(255, 255, 255, 0.95);
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.yoo-theme-manager-wrap .yoo-theme-rating-tag .yoo-stars {
  color: var(--_yp-primary, #eda934);
  letter-spacing: 1px;
}

.yoo-theme-manager-wrap .yoo-theme-rating-tag .yoo-rating-count-hover {
  display: inline-block;
  vertical-align: middle;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  white-space: nowrap;
  transition: max-width 0.22s ease, opacity 0.15s ease;
  margin: 0;
}

.yoo-theme-manager-wrap .yoo-theme-rating-tag:hover .yoo-rating-count-hover {
  max-width: 7rem;
  opacity: 1;
  margin-left: 4px;
}

.yoo-theme-manager-wrap .yoo-theme-status-tag__pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 10px;
  box-sizing: border-box;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
}

.yoo-theme-manager-wrap
  .yoo-wordpress-results:not(.yoo-list-view-mode)
  .yoo-theme-card-media-wrap
  .yoo-theme-status-tag__pill {
  min-height: 28px;
  padding: 0 7px;
  font-size: 9px;
  letter-spacing: 0.04em;
  border-radius: 6px;
}

.yoo-theme-manager-wrap .yoo-theme-status-tag__pill--active {
  background: var(--_yp-primary, #eda934);
  color: #fff;
}

.yoo-theme-manager-wrap .yoo-theme-status-tag__pill--inactive {
  background: #374151;
  color: #f9fafb;
}

/* Pending theme update: alert tag + emphasis */
.yoo-theme-manager-wrap .yoo-theme-update-available-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 10px;
  box-sizing: border-box;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  color: #fff;
  background: #d63638;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 12px rgba(214, 54, 56, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: none;
  flex-shrink: 0;
}

.yoo-theme-manager-wrap
  .yoo-wordpress-results:not(.yoo-list-view-mode)
  .yoo-theme-card-media-wrap
  .yoo-theme-update-available-tag {
  min-height: 28px;
  padding: 0 6px;
  font-size: 9px;
  border-radius: 6px;
}

.yoo-theme-manager-wrap .yoo-plugin-card.yoo-theme-card.active.has-update .yoo-theme-status-tag__pill--active {
  background: #d63638;
  color: #fff;
  box-shadow: 0 2px 12px rgba(214, 54, 56, 0.4);
}

.yoo-theme-manager-wrap
  #wp-results.yoo-wordpress-results:not(.yoo-list-view-mode)
  .yoo-plugin-card.yoo-theme-card.has-update:not(.active) {
  box-shadow: 0 0 0 2px #d63638, 0 6px 18px rgba(214, 54, 56, 0.14);
}

.yoo-theme-manager-wrap
  #wp-results.yoo-installed-split-layout.yoo-wordpress-results:not(.yoo-list-view-mode)
  .yoo-plugin-card.yoo-theme-card.has-update:not(.active) {
  opacity: 1;
  filter: saturate(1);
}

.yoo-theme-manager-wrap .yoo-wordpress-results.yoo-list-view-mode
  .yoo-plugin-card.yoo-theme-card.has-update:not(.active) {
  border: 2px solid #d63638;
  box-shadow: 0 2px 10px rgba(214, 54, 56, 0.12);
}

/* Repo body: active installs only — no top border */
.yoo-theme-manager-wrap .yoo-theme-repo-meta--bottom {
  margin: 10px 0 0;
  padding: 0;
  border: none;
  font-size: 13px;
  color: var(--yp-text, #646970);
}

/* Author line — separate from description */
.yoo-theme-manager-wrap .yoo-theme-card-author-line {
  margin: 0 0 10px;
  padding: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  text-align: left;
}

.yoo-theme-manager-wrap .yoo-theme-card-author-prefix {
  color: #6b7280;
  font-weight: 500;
}

.yoo-theme-manager-wrap .yoo-theme-card-author-name {
  color: var(--yp-text, #1d2327);
}

.yoo-theme-manager-wrap .yoo-theme-card-author-line--list {
  margin-bottom: 0;
  font-size: 12px;
}

/* Repo “current theme” — glass pill inside image overlay (replaces footer strip) */
.yoo-theme-manager-wrap .yoo-theme-repo-current-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  box-sizing: border-box;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  color: rgba(255, 255, 255, 0.95);
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: none;
}

.yoo-theme-manager-wrap .yoo-theme-installed-bulk-bar[hidden],
.yoo-theme-manager-wrap .yoo-theme-repo-bulk-bar[hidden] {
  display: none !important;
}

.yoo-theme-manager-wrap .yoo-theme-installed-bulk-bar .yoo-bulk-actions-left,
.yoo-theme-manager-wrap .yoo-theme-repo-bulk-bar .yoo-bulk-actions-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.yoo-theme-manager-wrap .yoo-theme-installed-bulk-bar .yoo-media-bulk-select-all,
.yoo-theme-manager-wrap .yoo-theme-repo-bulk-bar .yoo-media-bulk-select-all {
  font-size: 13px;
  font-weight: 500;
  padding: 4px 8px;
  margin: 0;
  color: var(--_yp-primary, #c99730);
}

.yoo-theme-manager-wrap .yoo-theme-installed-bulk-bar .yoo-media-bulk-select-all:hover,
.yoo-theme-manager-wrap .yoo-theme-repo-bulk-bar .yoo-media-bulk-select-all:hover {
  color: var(--_yp-primary, #eda934);
  text-decoration: underline;
}

.yoo-theme-manager-wrap .yoo-theme-installed-bulk-bar .yoo-media-bulk-select-all[hidden],
.yoo-theme-manager-wrap .yoo-theme-repo-bulk-bar .yoo-media-bulk-select-all[hidden] {
  display: none !important;
}

.yoo-theme-manager-wrap .yoo-theme-installed-bulk-bar .yoo-theme-installed-bulk-update-btn[hidden] {
  display: none !important;
}

.yoo-theme-manager-wrap .yoo-plugin-card.yoo-theme-card.is-selected {
  border-color: var(--_yp-primary, #eda934);
  box-shadow: 0 0 0 2px rgba(238, 180, 78, 0.2);
}

.yoo-theme-manager-wrap .yoo-theme-card-media-wrap {
  position: relative;
}

.yoo-theme-manager-wrap .yoo-theme-card-media-wrap .yoo-media-card__select {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 7;
  display: block;
  margin: 0;
  padding: 0;
  line-height: 0;
  background: none;
  border: none;
  box-shadow: none;
  border-radius: 0;
  cursor: pointer;
  transition: opacity 0.2s ease;
  opacity: 0;
  pointer-events: none;
}

.yoo-theme-manager-wrap .yoo-theme-card-media-wrap:hover .yoo-media-card__select,
.yoo-theme-manager-wrap .yoo-theme-card-media-wrap:focus-within .yoo-media-card__select,
.yoo-theme-manager-wrap .yoo-plugin-card.yoo-theme-card.is-selected .yoo-media-card__select {
  opacity: 1;
  pointer-events: auto;
}

@media (hover: none), (pointer: coarse) {
  .yoo-theme-manager-wrap .yoo-theme-card-media-wrap .yoo-media-card__select {
    opacity: 1;
    pointer-events: auto;
  }
}

.yoo-theme-manager-wrap .yoo-theme-card__select input.yoo-media-card__cb[type='checkbox'] {
  width: 18px;
  height: 18px;
  margin: 0;
  cursor: pointer;
  flex-shrink: 0;
  vertical-align: top;
  accent-color: var(--_yp-primary, #eda934);
  background-color: #fff;
  border: 1px solid #c3c4c7;
  border-radius: 2px;
  box-sizing: border-box;
}

.yoo-theme-manager-wrap .yoo-theme-card__select input.yoo-media-card__cb[type='checkbox']:focus-visible {
  outline: 2px solid var(--_yp-primary, #eda934);
  outline-offset: 2px;
}

/* List-mode bulk checkbox: stay top-left over the square (relative broke layout vs aspect-ratio media) */
.yoo-theme-manager-wrap .yoo-wordpress-results.yoo-list-view-mode .yoo-plugin-card.yoo-theme-card .yoo-theme-card__select.yoo-theme-card__select--list {
  position: absolute;
  top: 10px;
  left: 10px;
  right: auto;
  z-index: 8;
  opacity: 1;
  pointer-events: auto;
}

[dir='rtl'] .yoo-theme-manager-wrap .yoo-wordpress-results.yoo-list-view-mode .yoo-plugin-card.yoo-theme-card .yoo-theme-card__select.yoo-theme-card__select--list {
  left: auto;
  right: 10px;
}

/* Bottom actions: dark glass pill like media lightbox preview toolbar */
.yoo-theme-manager-wrap .yoo-theme-card-media-wrap .yoo-theme-card__actions-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 6;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding: 12px 14px 16px;
  box-sizing: border-box;
  background: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.yoo-theme-manager-wrap .yoo-theme-card-media-wrap:hover .yoo-theme-card__actions-overlay,
.yoo-theme-manager-wrap .yoo-theme-card-media-wrap:focus-within .yoo-theme-card__actions-overlay {
  opacity: 1;
  /*
   * With pointer-events:none on the overlay, some browsers hit-test “through” the flex padding
   * to .yoo-theme-card-media beneath — Activate / icon buttons look visible but clicks never reach
   * .yoo-theme-card__actions-bar. Re-enable hit-testing whenever the bar is shown.
   */
  pointer-events: auto;
}

/* During install/activate: keep glass + actions visible like hover even if pointer leaves */
.yoo-theme-manager-wrap .yoo-theme-card-media-wrap.yoo-theme-card-media-wrap--hold-hover .yoo-theme-card-hover-glass,
.yoo-theme-manager-wrap .yoo-theme-card-media-wrap.yoo-theme-card-media-wrap--hold-hover .yoo-theme-card-hover-text {
  opacity: 1;
  transform: scale(1);
}

.yoo-theme-manager-wrap .yoo-theme-card-media-wrap.yoo-theme-card-media-wrap--hold-hover .yoo-theme-card__actions-overlay {
  opacity: 1;
  pointer-events: auto;
}

@media (hover: none), (pointer: coarse) {
  .yoo-theme-manager-wrap .yoo-theme-card-media-wrap .yoo-theme-card__actions-overlay {
    opacity: 1;
    pointer-events: auto;
  }
}

.yoo-theme-manager-wrap .yoo-theme-card__actions-bar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 5px;
  max-width: calc(100% - 4px);
  padding: 5px 7px;
  box-sizing: border-box;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: auto;
}

/* Icon buttons: dark glass circles (override global .yoo-action-btn #fff from shared stylesheets) */
.yoo-theme-manager-wrap .yoo-theme-card__actions-bar button.yoo-media-float-btn,
.yoo-theme-manager-wrap .yoo-theme-card__actions-bar .yoo-media-float-btn {
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  min-height: 30px !important;
  padding: 0 !important;
  margin: 0;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  background: rgba(0, 0, 0, 0.58) !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4) !important;
  color: #fff !important;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-size: 0 !important;
  line-height: 0 !important;
  appearance: none;
  pointer-events: auto;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease,
    border-color 0.15s ease;
}

.yoo-theme-manager-wrap .yoo-theme-card__actions-bar button.yoo-media-float-btn:hover,
.yoo-theme-manager-wrap .yoo-theme-card__actions-bar .yoo-media-float-btn:hover {
  transform: translateY(-1px);
  background: rgba(0, 0, 0, 0.75) !important;
  border-color: rgba(255, 255, 255, 0.42) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45) !important;
  color: #fff !important;
}

.yoo-theme-manager-wrap .yoo-theme-card__actions-bar button.yoo-media-float-btn:active,
.yoo-theme-manager-wrap .yoo-theme-card__actions-bar .yoo-media-float-btn:active {
  transform: translateY(0);
}

.yoo-theme-manager-wrap .yoo-theme-card__actions-bar button.yoo-media-float-btn .dashicons,
.yoo-theme-manager-wrap .yoo-theme-card__actions-bar .yoo-media-float-btn .dashicons {
  font-size: 15px !important;
  width: 15px !important;
  height: 15px !important;
  color: #fff !important;
}

body.yoo-focus .yoo-theme-manager-wrap .yoo-theme-card__actions-bar .yoo-media-float-btn:focus,
body.yoo-focus .yoo-theme-manager-wrap .yoo-theme-card__actions-bar .yoo-media-float-btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 2px;
}

/* Update: block plugin-grid orange pill rule — keep round dark glass */
.yoo-theme-manager-wrap .yoo-theme-card__actions-bar .yoo-media-float-btn.update.yoo-theme-update {
  order: 0 !important;
  border-radius: 50% !important;
  background: rgba(0, 0, 0, 0.58) !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
}

.yoo-theme-manager-wrap .yoo-theme-card__actions-bar .yoo-media-float-btn.update.yoo-theme-update:hover {
  background: rgba(0, 0, 0, 0.75) !important;
}

.yoo-theme-manager-wrap .yoo-theme-card__actions-bar .yoo-media-float-btn.yoo-theme-update.is-updating {
  cursor: wait !important;
  pointer-events: none;
  animation: yoo-theme-update-btn-pulse 0.9s ease-in-out infinite;
}

.yoo-theme-manager-wrap .yoo-theme-card__actions-bar .yoo-media-float-btn.yoo-theme-update.is-updating .dashicons.yoo-btn-spin {
  animation: spin 0.85s linear infinite;
}

@keyframes yoo-theme-update-btn-pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  }
  50% {
    transform: scale(0.94);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.25);
  }
}

@media (prefers-reduced-motion: reduce) {
  .yoo-theme-manager-wrap .yoo-theme-card__actions-bar .yoo-media-float-btn.yoo-theme-update.is-updating {
    animation: none;
  }

  .yoo-theme-manager-wrap .yoo-theme-card__actions-bar .yoo-media-float-btn.yoo-theme-update.is-updating .dashicons.yoo-btn-spin {
    animation: none;
  }
}

.yoo-theme-manager-wrap .yoo-theme-card__actions-bar .yoo-install-btn.yoo-media-float-btn {
  flex: 0 0 auto !important;
}
