/**
 * YOOUpdate Center — full shell (with upload-page.css / yoo-btn).
 */

/* Clip horizontal bleed only; tooltips/progress render in admin_footer (position:fixed). */
.yoo-update-center-wrap.yoo-upload-wrap {
    overflow-x: hidden;
}

.yoo-uc-floating-ui {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 100040;
    margin: 0 !important;
    padding: 0 !important;
}

.yoo-uc-floating-ui .yoo-uc-auto-mode-tooltip.is-visible {
    pointer-events: auto;
}

#yoo-uc-progress-root {
    margin: 0 !important;
    padding: 0 !important;
}

/* One footer clearance layer — avoid stacked padding (wrap + #wpbody-content) causing empty scroll. */
body.yooadmin-theme-yooadmin-studio-hub #wpbody-content:has(> .wrap.yoo-update-center-wrap),
html[data-yooadmin-studio-color-mode-effective="dark"] body.yooadmin-theme-yooadmin-studio-hub #wpbody-content:has(> .wrap.yoo-update-center-wrap),
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective="dark"] body.yooadmin-theme-yooadmin-studio-hub #wpbody-content:has(> .wrap.yoo-update-center-wrap),
html[data-yooadmin-studio-color-mode-effective="light"] body.yoo-focus.yooadmin-theme-yooadmin-studio-hub #wpbody-content:has(> .wrap.yoo-update-center-wrap) {
    padding-bottom: 0 !important;
}

body.yooadmin-theme-yooadmin-studio-hub #wpbody-content > .wrap.yoo-update-center-wrap,
html[data-yooadmin-studio-color-mode-effective="dark"] body.wp-admin.yooadmin-theme-yooadmin-studio-hub #wpbody-content > .wrap.yoo-update-center-wrap,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective="dark"] body.wp-admin.yooadmin-theme-yooadmin-studio-hub #wpbody-content > .wrap.yoo-update-center-wrap,
html[data-yooadmin-studio-color-mode-effective="light"] body.yoo-focus.wp-admin.yooadmin-theme-yooadmin-studio-hub #wpbody-content > .wrap.yoo-update-center-wrap {
    padding-bottom: 24px !important;
    margin-bottom: 48px !important;
    min-height: 0 !important;
}

.yoo-update-center-wrap .yp-tabs:last-child {
    margin-bottom: 0;
}

.yoo-update-center-wrap {
    --yoo-uc-radius: 12px;
    --yoo-uc-card-border: #dcdcde;
    --yoo-uc-card-bg: #fff;
    --yoo-uc-muted: var(--yp-text-600, #646970);
}

.yoo-update-center-title-icon {
    vertical-align: middle;
    margin-right: 8px;
    font-size: 24px;
    width: 24px;
    height: 24px;
    color: var(--_yp-primary, #eda934);
}

/* Page header — denser than generic upload-page title (24px) */
.yoo-update-center-wrap .yoo-upload-title {
    font-size: 19px;
    font-weight: 600;
    margin: 0 0 6px;
    line-height: 1.25;
}

.yoo-update-center-wrap .yoo-upload-subtitle {
    font-size: 12px;
    line-height: 1.45;
    margin: 0;
    color: var(--yp-text, #1d2327);
}

.yoo-update-center-intro {
    margin: 0 0 1.5rem;
    padding: 14px 18px;
    background: linear-gradient(135deg, rgba(232, 158, 67, 0.06), rgba(255, 255, 255, 0.9));
    border: 1px solid #e8e8e8;
    border-radius: var(--yoo-uc-radius);
    color: var(--yp-text, #1d2327);
    font-size: 14px;
    line-height: 1.55;
    max-width: 100%;
}

.yoo-update-center-panels {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.yoo-update-center-panel {
    background: var(--yoo-uc-card-bg);
    border: 1px solid var(--yoo-uc-card-border);
    border-radius: var(--yoo-uc-radius);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.045);
}

.yoo-update-center-panel--core {
    border-color: color-mix(in srgb, var(--_yp-primary, #eda934) 35%, #dcdcde);
    box-shadow: 0 8px 32px rgba(232, 158, 67, 0.1);
}

.yoo-update-center-panel-head {
    padding: 1.1rem 1.35rem;
    border-bottom: 1px solid #e8e8e8;
    background: linear-gradient(180deg, rgba(232, 158, 67, 0.07) 0%, rgba(255, 255, 255, 0.96) 100%);
}

.yoo-update-center-panel-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--yp-text, #1d2327);
}

.yoo-update-center-panel-kicker {
    margin: 0.4rem 0 0;
    font-size: 13px;
    color: var(--yoo-uc-muted);
}

.yoo-update-center-panel-body {
    padding: 1.35rem 1.35rem 1.5rem;
}

.yoo-update-center-wp-version {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 0.65rem;
    color: var(--yp-text, #1d2327);
}

.yoo-update-center-meta {
    margin: 0 0 1.1rem;
    font-size: 13px;
    color: var(--yoo-uc-muted);
}

.yoo-update-center-meta a {
    color: var(--_yp-primary, #eda934);
    font-weight: 600;
    text-decoration: none;
}

.yoo-update-center-meta a:hover {
    text-decoration: underline;
}

.yoo-uc-infobox {
    margin-bottom: 1rem;
}

.yoo-update-center-core-heading {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 1rem 0 0.75rem;
}

.yoo-update-center-core-list {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.yoo-update-center-core-list > li {
    margin: 0;
    padding: 1rem 1.1rem;
    background: #fafafa;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
}

.yoo-update-center-core-item .upgrade .button.button-primary,
.yoo-update-center-core-item .upgrade .yoo-update-center-btn-primary {
    border-radius: 8px;
    padding: 8px 18px;
    font-weight: 600;
}

.yoo-update-center-auto-status {
    margin-bottom: 1.15rem;
    padding: 12px 14px;
    background: #f6f7f7;
    border-radius: 8px;
    border: 1px solid #e8e8e8;
    font-size: 13px;
    line-height: 1.55;
}

.yoo-update-center-auto-link {
    color: var(--_yp-primary, #eda934);
    font-weight: 600;
}

/* Section titles (plugins / themes / translations) */
.yoo-uc-section-head {
    margin-bottom: 1rem;
}

.yoo-update-center-panel--plugins .yoo-uc-section-head,
.yoo-update-center-panel--themes .yoo-uc-section-head,
.yoo-update-center-panel--translations .yoo-uc-section-head {
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
    margin-bottom: 1rem;
}

.yoo-update-center-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--yp-text, #1d2327);
}

.yoo-uc-section-head__icon {
    color: var(--_yp-primary, #eda934);
    font-size: 22px;
    width: 22px;
    height: 22px;
}

.yoo-update-center-count {
    font-weight: 600;
    color: var(--yoo-uc-muted);
}

.yoo-update-center-section-lead {
    margin: 0.45rem 0 0;
    font-size: 13px;
    color: var(--yoo-uc-muted);
    line-height: 1.45;
}

.yoo-uc-empty {
    padding: 2rem 1.5rem;
    text-align: center;
    background: #f9fafb;
    border: 1px dashed #dcdcde;
    border-radius: var(--yoo-uc-radius);
    color: var(--yoo-uc-muted);
}

/* No updates — full width of tab panel, centered; icon above text */
.yoo-update-center-wrap .yp-tab-panels .yoo-uc-no-updates {
    width: 100%;
    max-width: none;
    margin: 0;
    box-sizing: border-box;
}

.yoo-uc-no-updates {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0;
    margin: 0 0 1rem;
    padding: 2rem 1.25rem 2.25rem;
    background: linear-gradient(135deg, rgba(232, 158, 67, 0.07), #f9fafb);
    border: 1px solid #e8e8e8;
    border-radius: var(--yoo-uc-radius);
    color: var(--yp-text, #1d2327);
}

.yoo-uc-no-updates__icon {
    flex-shrink: 0;
    font-size: 36px;
    width: 36px;
    height: 36px;
    line-height: 1;
    color: #00a32a;
    margin: 0 0 14px;
}

.yoo-uc-no-updates__text {
    margin: 0;
    max-width: 28rem;
    font-size: 14px;
    line-height: 1.55;
    color: var(--yoo-uc-muted);
}

/* Toolbar */
.yoo-uc-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 1rem;
    padding: 12px 14px;
    background: #f9fafb;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
}

.yoo-uc-toolbar--foot {
    margin-top: 1rem;
    margin-bottom: 0;
}

.yoo-uc-toolbar--solo {
    justify-content: flex-end;
    margin-top: 1rem;
}

.yoo-uc-select-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    user-select: none;
}

.yoo-uc-select-all input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--_yp-primary, #eda934);
}

/* Card table → responsive grid */
.yoo-uc-cards-table {
    width: 100%;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

.yoo-uc-cards-table thead,
.yoo-uc-cards-table tfoot {
    display: none;
}

.yoo-uc-cards-table tbody {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
    border: none !important;
}

.yoo-uc-cards-table tbody tr,
.yoo-uc-card-row {
    display: flex;
    flex-direction: column;
    margin: 0 !important;
    background: var(--yoo-uc-card-bg);
    border: 1px solid var(--yoo-uc-card-border) !important;
    border-radius: var(--yoo-uc-radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.yoo-uc-cards-table tbody tr:hover {
    border-color: #b9bcc0 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.yoo-uc-cards-table tbody td {
    border: none !important;
    padding: 0 !important;
}

.yoo-uc-card-row {
    position: relative;
    padding-top: 0;
}

.yoo-uc-card-row__check {
    padding: 10px 12px 8px !important;
    margin: 0 !important;
    border-bottom: 1px solid #f0f0f0 !important;
}

.yoo-uc-card-row__check input[type="checkbox"] {
    margin-right: 8px;
    accent-color: var(--_yp-primary, #eda934);
}

.yoo-uc-card-row__body {
    padding: 12px 14px 16px !important;
}

/* Plugin card */
.yoo-uc-plugin-card {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.yoo-uc-plugin-card__icon {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border-radius: 10px;
    overflow: hidden;
    background: #f0f0f1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.yoo-uc-plugin-card__icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.yoo-uc-plugin-card__icon .dashicons {
    font-size: 40px;
    width: 40px;
    height: 40px;
    color: var(--_yp-primary, #eda934);
}

.yoo-uc-plugin-card__title {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--yp-text, #1d2327);
}

.yoo-uc-plugin-card__versions {
    margin: 0 0 6px;
    font-size: 13px;
    color: #0369a1;
    font-weight: 600;
}

.yoo-uc-plugin-card__changelog {
    margin: 0 0 8px;
    font-size: 12px;
}

.yoo-uc-plugin-card__changelog a {
    color: var(--_yp-primary, #eda934);
    font-weight: 600;
}

.yoo-uc-plugin-card__extra {
    font-size: 12px;
    line-height: 1.5;
    color: var(--yoo-uc-muted);
}

/* Theme card */
.yoo-uc-theme-card {
    display: flex;
    gap: 14px;
    align-items: stretch;
}

.yoo-uc-theme-card__shot {
    flex-shrink: 0;
    width: 120px;
    border-radius: 10px;
    overflow: hidden;
    background: #1d2327;
    line-height: 0;
}

.yoo-uc-theme-card__img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.yoo-uc-theme-card__title {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 700;
}

.yoo-uc-theme-card__versions {
    margin: 0 0 8px;
    font-size: 13px;
    color: #0369a1;
    font-weight: 600;
}

.yoo-uc-theme-card__extra {
    font-size: 12px;
    line-height: 1.5;
    color: var(--yoo-uc-muted);
}

/* Translation cards grid */
.yoo-uc-translations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.yoo-uc-translation-card {
    padding: 14px 16px;
    background: #fafafa;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.yoo-uc-translation-card__badge {
    display: inline-block;
    align-self: flex-start;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(232, 158, 67, 0.15);
    color: #8a5a1c;
}

.yoo-uc-translation-card__lang {
    font-size: 15px;
    font-weight: 700;
    color: var(--yp-text, #1d2327);
}

.yoo-uc-translation-card__ver {
    font-size: 13px;
    color: var(--yoo-uc-muted);
}

/* In-page progress (AJAX updates) */
.yoo-uc-progress-root[hidden] {
    display: none !important;
}

.yoo-uc-progress-root {
    position: fixed;
    inset: 0;
    z-index: 100050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
}

.yoo-uc-progress-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(2px);
}

.yoo-uc-progress-modal {
    position: relative;
    z-index: 1;
    width: min(420px, 100%);
    max-height: min(70vh, 480px);
    overflow: auto;
    background: #fff;
    border-radius: var(--yoo-uc-radius, 12px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
    padding: 1rem 1.15rem 1.25rem;
    border: 1px solid #e0e0e0;
    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.yoo-uc-progress-modal--success {
    border-color: var(--_yp-primary, #eda934);
    /* Tinted shadow to match primary (fallback if color-mix unsupported) */
    box-shadow: 0 12px 40px rgba(232, 158, 67, 0.22);
}

.yoo-uc-progress-head {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.85rem;
}

@keyframes yoo-uc-progress-spin {
    to {
        transform: rotate(360deg);
    }
}

.yoo-uc-progress-spinner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    line-height: 1;
    color: var(--_yp-primary, #eda934);
}

.yoo-uc-progress-spinner[hidden] {
    display: none;
}

.yoo-uc-progress-spinner .dashicons {
    width: 22px;
    height: 22px;
    font-size: 22px;
    animation: yoo-uc-progress-spin 0.85s linear infinite;
    transform-origin: 50% 50%;
}

.yoo-uc-progress-modal--success .yoo-uc-progress-bar-inner {
    background: linear-gradient(90deg, var(--_yp-primary, #eda934), #f4c382);
}

.yoo-uc-progress-modal--success .yoo-uc-progress-pct {
    color: var(--_yp-primary, #eda934);
}

.yoo-uc-progress-title {
    margin: 0 0 1rem;
    font-size: 0.95rem;
    font-weight: 700;
    flex: 1;
    min-width: 0;
}

.yoo-uc-progress-head .yoo-uc-progress-title {
    margin-bottom: 0;
}

.yoo-uc-progress-bar-outer {
    height: 8px;
    border-radius: 999px;
    background: #e8e8e8;
    overflow: hidden;
    margin-bottom: 0.85rem;
}

.yoo-uc-progress-bar-inner {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--_yp-primary, #eda934), #f4c382);
    transition: width 0.55s cubic-bezier(0.25, 0.8, 0.2, 1);
    will-change: width;
}

.yoo-uc-progress-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px 12px;
    margin: 0 0 0.75rem;
}

.yoo-uc-progress-step {
    margin: 0;
    flex: 1;
    min-width: 0;
    font-size: 12px;
    color: var(--yp-text, #1d2327);
    font-weight: 500;
    line-height: 1.4;
    min-height: 1.25em;
}

.yoo-uc-progress-pct {
    font-size: 12px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--_yp-primary, #eda934);
    flex-shrink: 0;
}

.yoo-uc-progress-log {
    margin: 0;
    padding-left: 1.1rem;
    font-size: 12px;
    line-height: 1.4;
    color: var(--yp-text, #1d2327);
    max-height: 200px;
    overflow-y: auto;
}

.yoo-uc-progress-log li {
    margin-bottom: 0.35rem;
}

.yoo-uc-progress-footer {
    margin-top: 1rem;
    padding-top: 0.85rem;
    border-top: 1px solid #e8e8e8;
    display: flex;
    justify-content: flex-end;
}

.yoo-uc-progress-footer[hidden] {
    display: none !important;
}

.yoo-uc-progress-footer .button-primary.yoo-btn-primary {
    min-width: 5.5rem;
}

/* Toast (matches notifications dropdown .yp-toast-* when notifications-ui.css is not loaded) */
.yp-toast-message.yoo-uc-toast-fallback {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #fff;
    border-left: 4px solid var(--yp-brand, #eda934);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 12px 16px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 300px;
    max-width: 500px;
    z-index: 100100;
    opacity: 0;
    transform: translateX(400px);
    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
}

.yp-toast-message.yoo-uc-toast-fallback.yp-toast-show {
    opacity: 1;
    transform: translateX(0);
}

.yp-toast-message.yoo-uc-toast-fallback.yp-toast-success .yp-toast-icon {
    color: var(--yp-brand, #eda934);
}

.yp-toast-message.yoo-uc-toast-fallback .yp-toast-icon {
    font-size: 18px;
    font-weight: bold;
    flex-shrink: 0;
}

.yp-toast-message.yoo-uc-toast-fallback .yp-toast-text {
    flex: 1;
    font-size: 14px;
    line-height: 1.4;
    color: #333;
}

body.rtl .yp-toast-message.yoo-uc-toast-fallback {
    right: auto;
    left: 20px;
    transform: translateX(-400px);
}

body.rtl .yp-toast-message.yoo-uc-toast-fallback.yp-toast-show {
    transform: translateX(0);
}

.yoo-uc-check-again {
    padding: 0;
    margin: 0;
    vertical-align: baseline;
    font: inherit;
    color: var(--_yp-primary, #eda934);
    font-weight: 600;
}

.yoo-uc-check-again:hover {
    text-decoration: underline;
}

/* -------------------------------------------------------------------------
 * SaaS layout: WordPress hero + tabs + Theme Manager–style tiles
 * ------------------------------------------------------------------------- */

.yoo-update-center-wrap.yoo-theme-manager-wrap {
    max-width: 1200px;
}

.yoo-uc-preface-above-hero {
    margin-bottom: 1.25rem;
}

.yoo-uc-preface-line {
    margin: 0 0 0.5rem;
}

.yoo-uc-preface-line:last-child {
    margin-bottom: 0;
}

/* Hero */
.yoo-uc-hero {
    margin-bottom: 1.75rem;
    padding: 1.5rem 1.65rem;
    background: #f9fafb;
    border: 1px solid #e8e8e8;
    border-radius: var(--yoo-uc-radius);
    overflow: hidden;
}

.yoo-uc-hero__top {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.25rem;
    margin-bottom: 1rem;
}

.yoo-uc-hero__brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.yoo-uc-wp-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: none;
    box-shadow: none;
    border-radius: 0;
}

/* WordPress mark — skin / neutral gray (not brown) */
.yoo-uc-wp-logo .dashicons-wordpress {
    font-size: 44px;
    width: 44px;
    height: 44px;
    color: #727272;
}

.yoo-uc-hero__aside {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    max-width: min(520px, 100%);
}

.yoo-uc-auto-mode-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px 14px;
    width: 100%;
}

.yoo-uc-auto-mode-anchor {
    position: relative;
    display: inline-flex;
    max-width: 100%;
}

/* Auto-update mode toggle — visuals: yooadmin-yoo-buttons (yp-yoo-btn--soft) */
.yoo-update-center-wrap .yoo-uc-auto-toggle.yoo-btn {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.35;
}

.yoo-uc-auto-toggle--locked {
    cursor: default;
}

.yoo-uc-auto-toggle--disabled {
    cursor: not-allowed;
    opacity: 0.85;
}

.yoo-uc-auto-toggle--off {
    cursor: default;
    background: #f6f7f7 !important;
    border: 1px solid #dcdcde !important;
    color: #646970 !important;
}

.yoo-uc-auto-toggle:focus-visible {
    outline: 2px solid var(--_yp-primary, #eda934);
    outline-offset: 2px;
}

.yoo-uc-auto-mode-tooltip {
    position: absolute;
    right: 0;
    bottom: calc(100% + 10px);
    left: auto;
    width: min(320px, 92vw);
    padding: 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(6px);
    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        visibility 0.2s;
    z-index: 50;
}

.yoo-uc-auto-mode-tooltip--portaled {
    position: fixed;
    right: auto;
    bottom: auto;
    z-index: 100040;
    transform: translateY(4px);
}

.yoo-uc-auto-mode-tooltip--portaled:not(.is-visible) {
    top: 0 !important;
    left: 0 !important;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.yoo-uc-auto-mode-tooltip--portaled.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.yoo-uc-auto-mode-anchor:hover .yoo-uc-auto-mode-tooltip:not(.yoo-uc-auto-mode-tooltip--portaled),
.yoo-uc-auto-mode-anchor:focus-within .yoo-uc-auto-mode-tooltip:not(.yoo-uc-auto-mode-tooltip--portaled) {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.yoo-uc-auto-mode-tooltip__inner {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #e4e4e7;
    border-radius: 8px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
    text-align: start;
    font-size: 11px;
    line-height: 1.4;
    font-weight: 500;
    color: var(--yp-text, #1d2327);
}

.yoo-uc-auto-mode-tooltip__head {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.yoo-uc-auto-mode-tooltip__icon {
    flex-shrink: 0;
    font-size: 18px;
    width: 18px;
    height: 18px;
    line-height: 1;
    margin-top: 1px;
    color: var(--_yp-primary, #eda934);
}

.yoo-uc-auto-mode-tooltip__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.yoo-uc-auto-mode-tooltip__p {
    display: block;
    margin: 0;
}

.yoo-uc-hero-maintenance-slot:empty {
    display: none;
}

.yoo-uc-hero-maintenance-card {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin: 0.5rem 0 0;
    max-width: 42rem;
    padding: 0.5rem 0.65rem;
    background: #f5f5f5;
    border: 1px solid #d5d5d5;
    border-radius: 6px;
}

.yoo-uc-hero-maintenance-card__icon {
    flex-shrink: 0;
    line-height: 1;
    padding-top: 1px;
    color: #727272;
}

.yoo-uc-hero-maintenance-card__icon .dashicons {
    width: 16px;
    height: 16px;
    font-size: 16px;
}

.yoo-uc-hero-maintenance-card__text {
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
    font-weight: 500;
    color: #50575e;
}

.yoo-uc-hero-auto-pending {
    margin: 0;
    font-size: 12px;
    color: var(--yoo-uc-muted, #646970);
    text-align: right;
    max-width: 100%;
}

/* Title can shrink (ellipsis) so the actions column keeps enough width for both buttons */
.yoo-update-center-wrap .yoo-upload-header-content {
    flex: 1 1 auto;
    min-width: 0;
}

.yoo-update-center-wrap .yoo-upload-header-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    flex-shrink: 0;
    flex-wrap: nowrap;
    justify-content: flex-end;
    width: max-content;
    max-width: 100%;
    box-sizing: border-box;
}

.yoo-uc-header-actions-toolbar {
    display: inline-flex;
    align-items: stretch;
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 8px;
    width: max-content;
    max-width: 100%;
}

.yoo-uc-header-actions-toolbar .yoo-check-updates-btn {
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
    max-width: none;
    box-sizing: border-box;
}

.yoo-uc-header-actions-toolbar .yoo-uc-header-core-btn-wrap {
    flex: 0 0 auto;
    display: flex;
    align-items: stretch;
    min-width: 13rem;
    max-width: 22rem;
    width: auto;
    box-sizing: border-box;
}

.yoo-uc-header-actions-toolbar .yoo-uc-header-core-btn-wrap form {
    margin: 0;
    display: flex;
    align-items: stretch;
    width: 100%;
    min-width: 0;
}

/* Primary core action — wide min width + padding like Upload Theme; not equal-split with Check */
.yoo-update-center-wrap .yoo-upload-header-actions .yoo-uc-header-core-submit.button.button-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 4px;
    padding-block: 7px;
    padding-inline: 14px 18px;
    font-size: 12px;
    font-weight: 600;
    min-height: 34px;
    white-space: nowrap;
    flex: none;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}

/* Toolbar: same nominal icon box; image-rotate glyph is heavier — scale to match Check for updates */
.yoo-update-center-wrap .yoo-uc-header-actions-toolbar .yoo-uc-header-core-submit__icon.dashicons {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    font-size: 14px;
    line-height: 1;
    flex-shrink: 0;
}

.yoo-update-center-wrap .yoo-uc-header-actions-toolbar .yoo-uc-header-core-submit__icon.dashicons-image-rotate {
    font-size: 13px;
    transform: scale(0.86);
    transform-origin: center center;
}

.yoo-upload-header-actions .yoo-uc-header-core-submit .yoo-uc-header-core-submit__label {
    line-height: 1.35;
}

/* Narrow screens: full-width actions row + horizontal scroll if needed (never stack the two buttons) */
@media (max-width: 782px) {
    .yoo-update-center-wrap .yoo-upload-header-actions {
        flex-basis: 100%;
        width: 100%;
        max-width: 100%;
        justify-content: flex-end;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .yoo-update-center-wrap .yoo-uc-header-actions-toolbar {
        margin-inline-start: auto;
    }
}

.yoo-update-center-wrap .yoo-update-center-core-actions .yoo-uc-core-row-submit.button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    vertical-align: middle;
    padding-inline: 24px;
    padding-block: 10px;
    box-sizing: border-box;
}

.yoo-update-center-core-actions .yoo-uc-core-row-submit .dashicons {
    width: 18px;
    height: 18px;
    font-size: 18px;
    flex-shrink: 0;
}

/* Check for updates — layout; chrome: yooadmin-yoo-buttons */
.yoo-update-center-wrap .yoo-check-updates-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--yp-yoo-btn-gap, 8px);
    min-height: 34px;
    box-sizing: border-box;
    text-decoration: none;
}

.yoo-uc-header-actions-toolbar .yoo-check-updates-btn:hover,
.yoo-uc-header-actions-toolbar .yoo-check-updates-btn:focus {
    text-decoration: none !important;
    box-shadow: none;
}

/* Toolbar Check: same padding as upload-page.css (compact vs primary core button) */
.yoo-uc-header-actions-toolbar .yoo-check-updates-btn {
    padding: 7px 12px;
    gap: 5px;
}

/* Default check button icon size — same as Theme Manager / upload-page */
.yoo-update-center-wrap .yoo-check-updates-btn .dashicons {
    width: 15px;
    height: 15px;
    font-size: 15px;
}

.yoo-update-center-wrap .yoo-uc-hero__kicker {
    margin: 0;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--yoo-uc-muted);
}

.yoo-update-center-wrap .yoo-uc-hero__version-line {
    margin: 0.2rem 0 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--yp-text, #1d2327);
}

.yoo-update-center-wrap .yoo-uc-hero__version-group {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-inline-start: 0.3rem;
    vertical-align: baseline;
}

.yoo-update-center-wrap .yoo-uc-hero__version-line strong {
    font-size: 16px;
    font-weight: 700;
    color: var(--_yp-primary, #eda934);
}

.yoo-update-center-wrap .yoo-uc-latest-version-tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 7px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 4px;
    background: #edfaef;
    color: #1d2327;
    border: 1px solid #68de7c;
    line-height: 1.2;
}

.yoo-uc-hero-last-checked-wrap {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    margin-top: 6px;
}

.yoo-uc-last-checked-compact {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.35;
    color: #646970;
    cursor: default;
    text-align: end;
}

.yoo-uc-last-checked-compact__icon {
    display: inline-flex;
    flex-shrink: 0;
    line-height: 1;
    color: #787c82;
}

.yoo-uc-last-checked-compact__icon .dashicons {
    width: 16px;
    height: 16px;
    font-size: 16px;
}

.yoo-uc-last-checked-compact__text {
    font-weight: 600;
    color: #50575e;
}

.yoo-uc-last-checked-compact__text--muted {
    color: #8c8f94;
    font-style: normal;
    font-weight: 500;
}

.yoo-uc-hero__core .yoo-update-center-core-heading {
    font-size: 1rem;
    margin-top: 0.5rem;
}

.yoo-uc-hero__core .yoo-update-center-core-list {
    gap: 0.5rem;
}

.yoo-uc-hero__core .yoo-update-center-core-list > li {
    padding: 0.85rem 1rem;
}

.yoo-uc-hero__core .button.button-primary,
.yoo-uc-hero__core .yoo-update-center-btn-primary {
    border-radius: 10px;
    padding: 10px 22px;
    font-size: 15px;
    font-weight: 700;
    min-height: 46px;
    box-shadow: none;
}

/* Tabs — same shell + nav + panels as YOOAdmin Settings (.yp-tabs in yp-settings.css) */
.yoo-update-center-wrap .yp-tabs {
    --yp-set-radius: 12px;
    --yp-set-border: rgba(15, 23, 42, 0.09);
    --yp-set-surface: #ffffff;
    --yp-set-muted: #f8fafc;
    --yp-set-text: #1e293b;
    --yp-set-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 10px 28px rgba(15, 23, 42, 0.04);
    margin: 0 0 1.75rem;
    background: var(--yp-set-surface);
    border: 1px solid var(--yp-set-border);
    border-radius: var(--yp-set-radius);
    overflow: hidden;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
    box-shadow: var(--yp-set-shadow);
}

.yoo-update-center-wrap .yp-tab-nav {
    position: relative;
    z-index: 1;
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    gap: 4px;
    border-bottom: 1px solid var(--yp-set-border);
    background: var(--yp-set-muted);
    padding: 6px 8px 0;
    white-space: nowrap;
    /* No scrollbars — tabs flex/shrink; avoids stray vertical scrollbar from overflow:auto */
    overflow-x: hidden;
    overflow-y: hidden;
}

.yoo-update-center-wrap .yp-tab.yoo-uc-tab {
    appearance: none;
    flex: 1 1 0;
    min-width: 0;
    max-width: 100%;
    justify-content: center;
    background: transparent;
    border: 0;
    padding: 8px 10px;
    border-radius: 8px 8px 0 0;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    color: var(--yp-set-text);
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    line-height: 1.25;
    transition:
        background 0.15s ease,
        color 0.15s ease;
}

.yoo-update-center-wrap .yp-tab.yoo-uc-tab:hover:not(.is-active) {
    background: rgba(255, 255, 255, 0.72);
}

.yoo-update-center-wrap .yp-tab.yoo-uc-tab.is-active {
    color: var(--yp-text, #1d2327);
    background: var(--yp-set-surface);
}

/* moving underline — same as YOOAdmin Settings (yoo-settings.js + .yp-tab-ink in yp-settings.css) */
.yoo-update-center-wrap .yp-tab-ink {
    position: absolute;
    bottom: -1px;
    left: 0;
    height: 3px;
    width: 0;
    background: var(--yooadmin-primary, #eda934);
    border-radius: 2px;
    transition:
        left 0.25s ease,
        width 0.25s ease;
    pointer-events: none;
    z-index: 2;
}

.yoo-update-center-wrap .yoo-uc-tab__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
}

.yoo-update-center-wrap .yp-tab-nav .yp-tab.yoo-uc-tab:not(.is-active) .yoo-uc-tab__badge {
    background: rgba(80, 87, 94, 0.2);
    color: #50575e;
}

.yoo-update-center-wrap .yp-tab-nav .yp-tab.yoo-uc-tab.is-active .yoo-uc-tab__badge {
    background: var(--_yp-primary, #eda934);
    color: #fff;
}

.yoo-update-center-wrap .yp-tab-panels {
    padding: 20px 22px 24px;
    position: relative;
    z-index: 1;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    background: var(--yp-set-surface);
}

.yoo-update-center-wrap .yp-tab-panel.yoo-uc-tab-panel {
    display: none !important;
    position: relative;
    overflow-x: hidden;
    padding-top: 0;
}

.yoo-update-center-wrap .yp-tab-panel.yoo-uc-tab-panel.is-active {
    display: block !important;
}

.yoo-uc-tab-panel[hidden] {
    display: none !important;
}

@media (max-width: 782px) {
    .yoo-update-center-wrap .yp-tab-nav {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 8px;
        white-space: normal;
    }

    .yoo-update-center-wrap .yp-tab.yoo-uc-tab {
        width: 100%;
        min-width: 0;
        justify-content: flex-start;
        padding: 8px 12px;
        font-size: 12px;
        border-radius: 6px;
    }

    .yoo-update-center-wrap .yp-tab.yoo-uc-tab.is-active {
        background: var(--yooadmin-primary, #eda934);
        color: #fff;
        box-shadow: none;
    }

    .yoo-update-center-wrap .yp-tab.yoo-uc-tab:hover:not(.is-active) {
        background: rgba(255, 255, 255, 0.55);
    }

    .yoo-update-center-wrap .yp-tab-ink {
        display: none;
    }

    .yoo-update-center-wrap .yp-tab-nav .yp-tab.yoo-uc-tab.is-active .yoo-uc-tab__badge {
        background: rgba(255, 255, 255, 0.25);
        color: #fff;
    }

    .yoo-update-center-wrap .yp-tab-nav .yp-tab.yoo-uc-tab:not(.is-active) .yoo-uc-tab__badge {
        background: rgba(80, 87, 94, 0.2);
        color: #50575e;
    }

    .yoo-update-center-wrap .yp-tab-panels {
        padding: 12px 8px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden !important;
    }
}

/* Bulk bar — Theme Manager pattern (upload-page .yoo-bulk-actions-bar); [hidden] must win over display:flex */
.yoo-update-center-wrap .yoo-uc-bulk-strip.yoo-bulk-actions-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 16px;
    margin-bottom: 1.25rem;
    background: #f0f0f1;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    box-sizing: border-box;
}

.yoo-update-center-wrap .yoo-uc-bulk-strip[hidden] {
    display: none !important;
}

.yoo-update-center-wrap .yoo-uc-bulk-strip .yoo-bulk-actions-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.yoo-update-center-wrap .yoo-uc-bulk-strip .yoo-bulk-actions-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.yoo-uc-bulk-strip__select {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    user-select: none;
    color: var(--yp-text, #1d2327);
}

.yoo-uc-bulk-strip__select input {
    width: 18px;
    height: 18px;
    accent-color: var(--_yp-primary, #eda934);
}

/* Same size / look as Theme Manager bulk apply ( .yoo-bulk-apply-btn in upload-page.css ) */
.yoo-update-center-wrap .yoo-uc-bulk-strip input.yoo-bulk-apply-btn[type='submit'] {
    padding: 6px 16px;
    min-height: 0;
    line-height: 1.4;
    font-size: 14px;
    font-weight: 500;
    background: var(--_yp-primary, #eda934);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: none;
    text-shadow: none;
    transition: opacity 0.2s ease;
}

.yoo-update-center-wrap .yoo-uc-bulk-strip input.yoo-bulk-apply-btn[type='submit']:hover:not(:disabled) {
    opacity: 0.92;
}

/*
 * Grid only: old rule was minmax(158px, 1fr) — on wide screens two cards each grew to ~50% width
 * (looked “huge”). Capping the track max shrinks the *card footprint* without touching inner
 * typography (those stay on the defaults in .yoo-uc-tile-meta-bar / .dashicons below).
 */
.yoo-update-center-wrap .yoo-uc-grid-root {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(158px, 300px));
    gap: 12px;
    justify-content: start;
}

@media (max-width: 782px) {
    .yoo-update-center-wrap .yoo-uc-grid-root {
        grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
    }
}

.yoo-uc-plugins-grid .yoo-plugin-card,
.yoo-uc-themes-grid .yoo-plugin-card {
    margin: 0;
}

/* Kill Theme Manager grid card padding/gap — full-bleed media (upload-page.css adds 20px padding) */
.yoo-update-center-wrap .yoo-uc-grid-root.yoo-wordpress-results:not(.yoo-list-view-mode) .yoo-plugin-card.yoo-uc-update-tile {
    padding: 0 !important;
    gap: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.yoo-update-center-wrap .yoo-uc-grid-root.yoo-wordpress-results:not(.yoo-list-view-mode) .yoo-plugin-card.yoo-uc-update-tile:hover {
    border: none !important;
    box-shadow: none !important;
}

.yoo-uc-update-tile {
    border: 1px solid var(--yoo-uc-card-border);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.yoo-uc-update-tile:hover {
    border-color: #c3c4c7;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07);
}

.yoo-uc-update-tile .yoo-theme-card-media-wrap {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 0;
    background: #1d2327;
    border: none;
    box-sizing: border-box;
}

/* No hover overlay — Update Center uses bottom bar only */
.yoo-update-center-wrap .yoo-uc-update-tile .yoo-theme-card-hover-glass,
.yoo-update-center-wrap .yoo-uc-update-tile .yoo-theme-card-hover-text {
    display: none !important;
}

.yoo-uc-update-tile .yoo-theme-card-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

/* Plugin icon / image — fill tile; same curve as card (clip via parent overflow) */
.yoo-uc-plugin-tile-wrap .yoo-uc-plugin-tile-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    background: linear-gradient(160deg, #f0f0f1 0%, #e2e4e7 100%);
}

.yoo-uc-plugin-tile-wrap .yoo-uc-plugin-tile-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.yoo-uc-plugin-tile-wrap .yoo-uc-plugin-tile-icon .dashicons {
    font-size: 52px;
    width: 52px;
    height: 52px;
    color: var(--_yp-primary, #eda934);
    opacity: 0.9;
}

/* Bottom meta bar — full width; details icon + update */
.yoo-uc-tile-meta-bar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 4;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
    min-height: 56px;
    padding: 8px 10px;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.58);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.yoo-uc-tile-meta-bar__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
    text-align: left;
}

.yoo-uc-tile-meta-bar__title {
    display: block;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
}

.yoo-uc-tile-meta-bar__ver {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.88);
    letter-spacing: 0.02em;
}

.yoo-uc-tile-meta-bar__compat {
    display: block;
    margin-top: 2px;
    font-size: 10px;
    font-weight: 500;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.82);
}

.yoo-uc-tile-meta-bar__actions {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: 6px;
}

.yoo-uc-tile-meta-bar__details {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin: 0;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    text-decoration: none;
    box-shadow: none;
    transition:
        background 0.15s ease,
        opacity 0.15s ease;
}

.yoo-uc-tile-meta-bar__details:hover,
.yoo-uc-tile-meta-bar__details:focus {
    background: rgba(255, 255, 255, 0.26);
    color: #fff;
    outline: none;
}

.yoo-uc-tile-meta-bar__details .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.yoo-uc-tile-meta-bar__update {
    flex-shrink: 0;
    margin: 0 !important;
    padding: 5px 12px !important;
    min-height: 0 !important;
    line-height: 1.35 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    border: none !important;
    border-radius: 6px !important;
    background: var(--_yp-primary, #eda934) !important;
    color: #fff !important;
    box-shadow: none !important;
    cursor: pointer;
    transition: opacity 0.15s ease;
}

.yoo-uc-tile-meta-bar__update:hover:not(:disabled) {
    opacity: 0.92;
}

.yoo-uc-tile-meta-bar__update:disabled,
.yoo-uc-tile-meta-bar--blocked .yoo-uc-tile-meta-bar__update {
    display: none;
}

.yoo-uc-tile-meta-bar--blocked {
    justify-content: flex-start;
}

/* Checkbox on tile — show on hover / focus / checked */
.yoo-uc-tile-check {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 6;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.yoo-theme-card-media-wrap:hover .yoo-uc-tile-check,
.yoo-theme-card-media-wrap:focus-within .yoo-uc-tile-check,
.yoo-theme-card-media-wrap:has(.yoo-uc-tile-cb:checked) .yoo-uc-tile-check {
    opacity: 1;
}

.yoo-uc-tile-check-label {
    display: inline-block;
    width: 22px;
    height: 22px;
    border-radius: 4px;
    border: 2px solid rgba(255, 255, 255, 0.95);
    background: rgba(0, 0, 0, 0.35);
    cursor: pointer;
}

.yoo-uc-tile-cb {
    position: absolute;
    opacity: 0;
    width: 22px;
    height: 22px;
    margin: 0;
    cursor: pointer;
}

.yoo-uc-tile-cb:checked + .yoo-uc-tile-check-label {
    background: var(--_yp-primary, #eda934);
    border-color: #fff;
}

.yoo-uc-tile-cb:checked + .yoo-uc-tile-check-label::after {
    content: '';
    display: block;
    width: 6px;
    height: 10px;
    margin: 3px auto 0;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Translations — language stack (settings-style row) */
.yoo-uc-lang-stack {
    margin: 0 0 1rem;
    padding: 0;
    list-style: none;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.yoo-uc-lang-row {
    display: grid;
    grid-template-columns: minmax(80px, 0.9fr) 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f1;
    font-size: 14px;
}

.yoo-uc-lang-row:last-child {
    border-bottom: none;
}

.yoo-uc-lang-row__type {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--yoo-uc-muted);
}

.yoo-uc-lang-row__code {
    font-weight: 600;
    color: var(--yp-text, #1d2327);
}

.yoo-uc-lang-row__ver {
    font-size: 13px;
    color: var(--yoo-uc-muted);
    text-align: end;
}

.yoo-uc-translations-actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 0.25rem;
}

@media (max-width: 600px) {
    .yoo-uc-cards-table tbody {
        grid-template-columns: 1fr;
    }

    .yoo-uc-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .yoo-uc-toolbar .yoo-btn-primary {
        width: 100%;
        justify-content: center;
    }

    .yoo-uc-hero__top {
        flex-direction: column;
    }

    .yoo-uc-hero__aside {
        align-items: stretch;
        max-width: none;
    }

    .yoo-uc-auto-mode-tooltip:not(.yoo-uc-auto-mode-tooltip--portaled) {
        right: auto;
        left: 0;
    }

    .yoo-update-center-wrap .yoo-uc-grid-root {
        grid-template-columns: repeat(auto-fill, minmax(158px, min(300px, 100%)));
    }

    .yoo-uc-lang-row {
        grid-template-columns: 1fr;
        text-align: start;
    }

    .yoo-uc-lang-row__ver {
        text-align: start;
    }
}

/* Dark mode — tooltip/progress live outside .yoo-update-center-wrap. */
html[data-yooadmin-studio-color-mode-effective="dark"] .yoo-uc-auto-mode-tooltip__inner,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective="dark"] .yoo-uc-auto-mode-tooltip__inner {
    background: var(--ysh-card, #1a1d23) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: var(--ysh-text, #cfd6e0) !important;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45) !important;
}

html[data-yooadmin-studio-color-mode-effective="dark"] .yoo-uc-auto-mode-tooltip__p,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective="dark"] .yoo-uc-auto-mode-tooltip__p {
    color: inherit !important;
}

html[data-yooadmin-studio-color-mode-effective="dark"] .yoo-uc-progress-modal,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective="dark"] .yoo-uc-progress-modal {
    background: var(--ysh-card, #1a1d23) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5) !important;
}

html[data-yooadmin-studio-color-mode-effective="dark"] .yoo-uc-progress-title,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective="dark"] .yoo-uc-progress-title {
    color: var(--ysh-heading, #d8d3ce) !important;
}

html[data-yooadmin-studio-color-mode-effective="dark"] :is(.yoo-uc-progress-step, .yoo-uc-progress-log, .yoo-uc-progress-pct),
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective="dark"] :is(.yoo-uc-progress-step, .yoo-uc-progress-log, .yoo-uc-progress-pct) {
    color: var(--ysh-muted, #9aa5b1) !important;
}

html[data-yooadmin-studio-color-mode-effective="dark"] .yoo-uc-progress-modal--success .yoo-uc-progress-pct,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective="dark"] .yoo-uc-progress-modal--success .yoo-uc-progress-pct {
    color: var(--_yp-primary, #eda934) !important;
}

html[data-yooadmin-studio-color-mode-effective="dark"] .yoo-uc-progress-bar-outer,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective="dark"] .yoo-uc-progress-bar-outer {
    background: rgba(255, 255, 255, 0.1) !important;
}

html[data-yooadmin-studio-color-mode-effective="dark"] .yoo-uc-progress-footer,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective="dark"] .yoo-uc-progress-footer {
    border-top-color: rgba(255, 255, 255, 0.1) !important;
}

html[data-yooadmin-studio-color-mode-effective="dark"] .yoo-uc-progress-backdrop,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective="dark"] .yoo-uc-progress-backdrop {
    background: rgba(0, 0, 0, 0.62) !important;
}

/* Dark mode — orange primary buttons: white label/icon (Studio Hub global .button-primary uses #1a1206). */
html[data-yooadmin-studio-color-mode-effective="dark"] .yoo-update-center-wrap :is(
    .yoo-uc-header-core-submit,
    .yoo-uc-core-row-submit,
    .yoo-update-center-btn-primary,
    .yoo-btn-primary
).button.button-primary,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective="dark"] .yoo-update-center-wrap :is(
    .yoo-uc-header-core-submit,
    .yoo-uc-core-row-submit,
    .yoo-update-center-btn-primary,
    .yoo-btn-primary
).button.button-primary,
html[data-yooadmin-studio-color-mode-effective="dark"] .yoo-update-center-wrap input.yoo-btn.yoo-btn-primary,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective="dark"] .yoo-update-center-wrap input.yoo-btn.yoo-btn-primary,
html[data-yooadmin-studio-color-mode-effective="dark"] .yoo-uc-progress-footer .button-primary.yoo-btn-primary,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective="dark"] .yoo-uc-progress-footer .button-primary.yoo-btn-primary {
    color: #fff !important;
}

html[data-yooadmin-studio-color-mode-effective="dark"] .yoo-update-center-wrap :is(
    .yoo-uc-header-core-submit,
    .yoo-uc-core-row-submit,
    .yoo-update-center-btn-primary,
    .yoo-btn-primary
).button.button-primary:hover,
html[data-yooadmin-studio-color-mode-effective="dark"] .yoo-update-center-wrap :is(
    .yoo-uc-header-core-submit,
    .yoo-uc-core-row-submit,
    .yoo-update-center-btn-primary,
    .yoo-btn-primary
).button.button-primary:focus,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective="dark"] .yoo-update-center-wrap :is(
    .yoo-uc-header-core-submit,
    .yoo-uc-core-row-submit,
    .yoo-update-center-btn-primary,
    .yoo-btn-primary
).button.button-primary:hover,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective="dark"] .yoo-update-center-wrap :is(
    .yoo-uc-header-core-submit,
    .yoo-uc-core-row-submit,
    .yoo-update-center-btn-primary,
    .yoo-btn-primary
).button.button-primary:focus,
html[data-yooadmin-studio-color-mode-effective="dark"] .yoo-update-center-wrap input.yoo-btn.yoo-btn-primary:hover,
html[data-yooadmin-studio-color-mode-effective="dark"] .yoo-update-center-wrap input.yoo-btn.yoo-btn-primary:focus,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective="dark"] .yoo-update-center-wrap input.yoo-btn.yoo-btn-primary:hover,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective="dark"] .yoo-update-center-wrap input.yoo-btn.yoo-btn-primary:focus,
html[data-yooadmin-studio-color-mode-effective="dark"] .yoo-uc-progress-footer .button-primary.yoo-btn-primary:hover,
html[data-yooadmin-studio-color-mode-effective="dark"] .yoo-uc-progress-footer .button-primary.yoo-btn-primary:focus,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective="dark"] .yoo-uc-progress-footer .button-primary.yoo-btn-primary:hover,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective="dark"] .yoo-uc-progress-footer .button-primary.yoo-btn-primary:focus {
    color: #fff !important;
}

html[data-yooadmin-studio-color-mode-effective="dark"] .yoo-update-center-wrap :is(
    .yoo-uc-header-core-submit,
    .yoo-uc-core-row-submit,
    .yoo-update-center-btn-primary,
    .yoo-btn-primary
).button.button-primary :is(.dashicons, span),
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective="dark"] .yoo-update-center-wrap :is(
    .yoo-uc-header-core-submit,
    .yoo-uc-core-row-submit,
    .yoo-update-center-btn-primary,
    .yoo-btn-primary
).button.button-primary :is(.dashicons, span),
html[data-yooadmin-studio-color-mode-effective="dark"] .yoo-uc-progress-footer .button-primary.yoo-btn-primary :is(.dashicons, span),
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective="dark"] .yoo-uc-progress-footer .button-primary.yoo-btn-primary :is(.dashicons, span) {
    color: #fff !important;
}
