:root{--psgp:#2563eb;--psgp-dark:#111827;--psgp-soft:#f7f8fb;--psgp-border:#e5e7eb}.psgp-portal,.psgp-auth{font-family:Inter,Arial,sans-serif}.psgp-portal{display:grid;grid-template-columns:280px 1fr;gap:24px;max-width:1200px;margin:30px auto}.psgp-sidebar{background:#fff;border:1px solid var(--psgp-border);border-radius:22px;padding:20px;box-shadow:0 16px 40px rgba(15,23,42,.08);height:max-content;position:sticky;top:20px}.psgp-brand{display:flex;align-items:center;gap:10px;margin-bottom:20px}.psgp-brand img{max-height:38px}.psgp-user{text-align:center;padding:18px;background:var(--psgp-soft);border-radius:18px;margin-bottom:18px}.psgp-user img{display:block;margin:0 auto 10px}.psgp-sidebar nav a{display:block;padding:13px 15px;border-radius:12px;color:#334155;text-decoration:none;font-weight:700;margin:4px 0}.psgp-sidebar nav a.active,.psgp-sidebar nav a:hover{background:var(--psgp);color:#fff}.psgp-main{min-width:0}.psgp-main h1{font-size:32px;margin:0 0 20px}.psgp-card,.psgp-auth form{background:#fff;border:1px solid var(--psgp-border);border-radius:22px;padding:26px;box-shadow:0 16px 40px rgba(15,23,42,.08);margin-bottom:20px}.psgp-row{display:grid;grid-template-columns:1fr 1fr;gap:16px}.psgp-card label,.psgp-auth label,.psgp-admin label{display:block;font-weight:700;margin:12px 0 7px}.psgp-card input,.psgp-card select,.psgp-card textarea,.psgp-auth input,.psgp-admin input,.psgp-admin select,.psgp-admin textarea{width:100%;max-width:100%;box-sizing:border-box;border:1px solid #cbd5e1;border-radius:12px;padding:12px 14px;background:#fff}.psgp-card button,.psgp-auth button,.psgp-btn,.psgp-payment button{display:inline-block;background:var(--psgp);color:#fff!important;border:0;border-radius:12px;padding:12px 20px;font-weight:800;text-decoration:none;cursor:pointer;margin-top:10px}.psgp-add-media{margin-bottom:8px!important;background:#111827!important}.psgp-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:20px}.psgp-stat{background:#fff;border:1px solid var(--psgp-border);border-radius:20px;padding:22px;box-shadow:0 12px 30px rgba(15,23,42,.07)}.psgp-stat b{font-size:34px;display:block}.psgp-stat span{color:#64748b;font-weight:700}.psgp-table{width:100%;border-collapse:collapse}.psgp-table th,.psgp-table td{padding:13px;border-bottom:1px solid #e5e7eb;text-align:left}.psgp-pagination{display:flex;gap:8px;margin-top:20px}.psgp-pagination a,.psgp-pagination span{padding:9px 13px;border:1px solid #d1d5db;border-radius:10px;text-decoration:none}.psgp-pagination a.active{background:#111827;color:#fff}.psgp-alert{padding:14px;border-radius:12px;margin:12px 0;font-weight:700}.psgp-alert.success{background:#ecfdf5;color:#065f46}.psgp-alert.error{background:#fef2f2;color:#991b1b}.psgp-auth{max-width:560px;margin:40px auto}.psgp-auth h2{text-align:center;font-size:30px}.psgp-auth-links{display:flex;justify-content:space-between}.psgp-admin .psgp-grid-admin{display:grid;grid-template-columns:1fr 1fr;gap:20px}.psgp-admin .psgp-full{grid-column:1/-1}.psgp-email-detail{border:1px solid #e5e7eb;border-radius:14px;padding:14px;margin:12px 0}.psgp-email-detail summary{font-weight:800;cursor:pointer}.wp-editor-wrap button,.mce-toolbar button,.mce-btn button{background:transparent!important;color:inherit!important;box-shadow:none!important;border:0!important}.psgp-profile-head{display:flex;gap:18px;align-items:center}.psgp-dark-pro{--psgp:#38bdf8}.psgp-dark-pro .psgp-sidebar,.psgp-dark-pro .psgp-card,.psgp-dark-pro .psgp-stat{background:#0f172a;color:#e5e7eb;border-color:#334155}.psgp-dark-pro .psgp-user{background:#111827}.psgp-saas-clean .psgp-sidebar,.psgp-saas-clean .psgp-card,.psgp-saas-clean .psgp-stat{border-radius:14px;box-shadow:none}.psgp-magazine .psgp-sidebar{background:#111827;color:#fff}.psgp-corporate{--psgp:#0f172a}.psgp-glass .psgp-sidebar,.psgp-glass .psgp-card,.psgp-glass .psgp-stat{backdrop-filter:blur(15px);background:rgba(255,255,255,.75)}.psgp-minimal .psgp-sidebar,.psgp-minimal .psgp-card,.psgp-minimal .psgp-stat{box-shadow:none;border-radius:6px}.psgp-gradient .psgp-sidebar{background:linear-gradient(135deg,#2563eb,#7c3aed);color:#fff}.psgp-gradient .psgp-sidebar a{color:#fff}@media(max-width:850px){.psgp-portal{grid-template-columns:1fr}.psgp-sidebar{position:static}.psgp-row,.psgp-stats,.psgp-admin .psgp-grid-admin{grid-template-columns:1fr}.psgp-auth-links{display:block}.psgp-main h1{font-size:26px}}

.psgp-brand{flex-wrap:wrap}.psgp-brand small{display:block;width:100%;font-size:12px;color:#64748b;font-weight:600;margin-left:48px}.psgp-content-field label{margin-bottom:6px}.psgp-media-under-label{display:inline-flex!important;margin:0 0 10px!important;background:#111827!important;padding:10px 16px!important}.psgp-admin-pro{max-width:1220px}.psgp-admin-hero{background:linear-gradient(135deg,#111827,#2563eb);border-radius:22px;color:#fff;padding:28px 32px;margin:18px 0 22px;display:flex;justify-content:space-between;align-items:center;box-shadow:0 20px 50px rgba(15,23,42,.18)}.psgp-admin-hero h1{color:#fff;font-size:34px;margin:0 0 6px}.psgp-admin-hero p{margin:0;color:#dbeafe}.psgp-admin-brand{text-align:right;background:rgba(255,255,255,.12);padding:14px 18px;border-radius:16px}.psgp-admin-brand a{display:block;color:#fff}.psgp-tabs{position:sticky;top:32px;z-index:5;background:#f0f0f1;padding:10px 0;display:flex;gap:8px;flex-wrap:wrap}.psgp-tabs a{background:#fff;border:1px solid #dcdcde;border-radius:999px;padding:10px 16px;text-decoration:none;font-weight:700;color:#1d2327}.psgp-settings-section{margin-bottom:22px}.psgp-settings-section h2{font-size:22px;margin-top:0}.psgp-gateway{border:1px solid #e5e7eb;border-radius:16px;padding:18px;background:#f8fafc}.psgp-template-picker{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:14px}.psgp-template-option{border:2px solid #e5e7eb;border-radius:18px;padding:14px;background:#fff;cursor:pointer}.psgp-template-option.selected{border-color:#2563eb;box-shadow:0 10px 24px rgba(37,99,235,.15)}.psgp-template-option input{display:none}.psgp-template-option .thumb{display:block;height:86px;border-radius:14px;margin-bottom:10px;background:linear-gradient(135deg,#f8fafc,#dbeafe);border:1px solid #e5e7eb}.psgp-template-option .thumb.dark-pro{background:linear-gradient(135deg,#020617,#0f172a)}.psgp-template-option .thumb.magazine{background:linear-gradient(135deg,#111827,#f59e0b)}.psgp-template-option .thumb.gradient{background:linear-gradient(135deg,#2563eb,#7c3aed)}.psgp-template-option .thumb.agency{background:linear-gradient(135deg,#0f172a,#14b8a6)}.psgp-template-option .thumb.newsroom{background:linear-gradient(135deg,#b91c1c,#111827)}.psgp-template-option .thumb.clean-card{background:linear-gradient(135deg,#fff,#f1f5f9)}.psgp-sticky-save{position:sticky;bottom:0;background:#fff;border:1px solid #e5e7eb;border-radius:16px;padding:10px 18px;box-shadow:0 -12px 30px rgba(15,23,42,.08);margin-top:20px}.psgp-agency{--psgp:#14b8a6}.psgp-agency .psgp-sidebar{background:#0f172a;color:#fff}.psgp-newsroom{--psgp:#b91c1c}.psgp-newsroom .psgp-card{border-top:5px solid var(--psgp)}.psgp-clean-card .psgp-sidebar,.psgp-clean-card .psgp-card,.psgp-clean-card .psgp-stat{box-shadow:0 6px 18px rgba(15,23,42,.05);border-radius:18px}
@media(max-width:782px){.psgp-admin-hero{display:block}.psgp-admin-brand{text-align:left;margin-top:14px}.psgp-tabs{position:static}}

/* v7 admin information, polished controls, editor media row */
.psgp-shortcode-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:22px 0}.psgp-shortcode-card{background:#fff;border:1px solid #e5e7eb;border-radius:20px;padding:22px;box-shadow:0 12px 30px rgba(15,23,42,.06)}.psgp-shortcode-card h2{margin-top:0}.psgp-code-copy{display:flex;gap:10px;align-items:center;background:#f8fafc;border:1px dashed #cbd5e1;border-radius:14px;padding:10px;margin:12px 0}.psgp-code-copy code{flex:1;font-size:13px}.psgp-copy{white-space:nowrap}.psgp-price-field{display:flex;align-items:center;border:1px solid #cbd5e1;border-radius:12px;overflow:hidden;background:#fff}.psgp-price-field span{padding:12px 14px;background:#f1f5f9;border-right:1px solid #cbd5e1;font-weight:800}.psgp-price-field input{border:0!important;border-radius:0!important}.psgp-switch{display:flex!important;align-items:center;gap:12px;margin:12px 0!important;cursor:pointer}.psgp-switch input{display:none}.psgp-switch span{width:54px;height:30px;border-radius:999px;background:#cbd5e1;position:relative;transition:.2s}.psgp-switch span:before{content:"";width:24px;height:24px;border-radius:50%;background:#fff;position:absolute;top:3px;left:3px;box-shadow:0 2px 6px rgba(15,23,42,.25);transition:.2s}.psgp-switch input:checked+span{background:#2563eb}.psgp-switch input:checked+span:before{left:27px}.psgp-switch.small span{width:46px;height:26px}.psgp-switch.small span:before{width:20px;height:20px}.psgp-switch.small input:checked+span:before{left:23px}.psgp-gateway{transition:.2s}.psgp-gateway:hover{box-shadow:0 14px 30px rgba(15,23,42,.08);transform:translateY(-1px)}.psgp-template-option{position:relative;transition:.2s}.psgp-template-option:hover{border-color:#60a5fa;box-shadow:0 14px 30px rgba(37,99,235,.12);transform:translateY(-2px)}.psgp-template-option em{display:inline-block;margin-top:8px;font-style:normal;font-size:12px;border-radius:999px;background:#f1f5f9;color:#475569;padding:5px 9px}.psgp-template-option.selected em,.psgp-template-option.active em{background:#2563eb;color:#fff}.psgp-template-option.active,.psgp-template-option:has(input:checked){border-color:#2563eb;box-shadow:0 14px 30px rgba(37,99,235,.18)}.psgp-note,.psgp-content-rules{background:#eff6ff;border:1px solid #bfdbfe;border-radius:16px;padding:14px 16px;color:#1e3a8a;margin:14px 0}.psgp-content-rules ul{margin:8px 0 0 18px}.psgp-editor-actions{display:flex;align-items:center;margin:0 0 -1px 0;position:relative;z-index:2}.psgp-editor-tabs-spacer{flex:1}.psgp-wp-media-button{background:#f6f7f7!important;color:#1d2327!important;border:1px solid #c3c4c7!important;border-radius:3px!important;padding:5px 10px!important;margin:0 0 4px!important;font-weight:600!important;box-shadow:0 1px 0 #c3c4c7!important;display:inline-flex!important;gap:5px;align-items:center}.psgp-wp-media-button:hover{background:#f0f0f1!important;border-color:#8c8f94!important}.psgp-content-field .wp-editor-wrap{clear:both}.psgp-content-field .wp-editor-tabs{margin-top:-31px!important}.psgp-content-field .wp-switch-editor{height:29px!important}.psgp-content-field label{font-size:15px}.psgp-submit .psgp-content-field{margin-top:8px}.psgp-admin-brand span{display:block;color:#dbeafe;font-size:12px;margin-top:5px}

/* v8 professional settings sidebar and editor alignment */
.psgp-settings-layout{display:grid;grid-template-columns:260px 1fr;gap:22px;align-items:start}.psgp-settings-sidebar{position:sticky;top:48px;background:#fff;border:1px solid #e5e7eb;border-radius:20px;padding:12px;box-shadow:0 12px 30px rgba(15,23,42,.06)}.psgp-settings-nav-link{display:block;width:100%;box-sizing:border-box;text-align:left;background:transparent;border:0;border-radius:12px;color:#334155;text-decoration:none;font-weight:800;padding:13px 14px;margin:3px 0;cursor:pointer;font-size:14px}.psgp-settings-nav-link:hover{background:#f1f5f9;color:#0f172a}.psgp-settings-nav-link.active{background:#111827;color:#fff}.psgp-settings-content{min-width:0}.psgp-settings-section{display:none}.psgp-settings-section.active{display:block}.psgp-switch-card{background:#f8fafc;border:1px solid #e5e7eb;border-radius:16px;padding:16px!important;margin:0!important;height:100%;box-sizing:border-box}.psgp-switch-card:hover{border-color:#93c5fd;box-shadow:0 10px 24px rgba(37,99,235,.08)}
.psgp-content-field label,.psgp-submit label{font-size:14px!important;font-weight:700!important;color:#1d2327!important}.psgp-content-field .wp-media-buttons{display:flex!important;align-items:center;gap:8px;padding:0!important}.psgp-content-field .wp-editor-tools{display:flex!important;align-items:flex-end!important;justify-content:space-between!important}.psgp-content-field .wp-editor-tabs{float:none!important;margin-top:0!important;margin-left:auto!important}.psgp-content-field .wp-switch-editor{height:31px!important;box-sizing:border-box!important}.psgp-wp-media-button,.psgp-add-media{background:#f1f1f1!important;color:#000!important;border:1px solid #c3c4c7!important;border-radius:3px!important;padding:5px 12px!important;margin:0 0 4px!important;font-weight:600!important;box-shadow:0 1px 0 #c3c4c7!important;display:inline-flex!important;gap:5px;align-items:center;line-height:1.7!important}.psgp-wp-media-button:hover,.psgp-add-media:hover{background:#e5e5e5!important;color:#000!important;border-color:#8c8f94!important}.psgp-content-field .dashicons{color:#000!important}
@media(max-width:900px){.psgp-settings-layout{grid-template-columns:1fr}.psgp-settings-sidebar{position:static}.psgp-content-field .wp-editor-tools{display:block!important}.psgp-content-field .wp-editor-tabs{float:right!important}}

/* v10 fixes: Add Media black text and 18px frontend labels */
.psgp-card button.psgp-add-media,
.psgp-card button.psgp-wp-media-button,
.psgp-submit button.psgp-add-media,
.psgp-submit button.psgp-wp-media-button,
.psgp-content-field button.psgp-add-media,
.psgp-content-field button.psgp-wp-media-button{
    background:#f1f1f1!important;
    color:#000!important;
    border:1px solid #c3c4c7!important;
    border-radius:3px!important;
    box-shadow:0 1px 0 #c3c4c7!important;
    text-shadow:none!important;
}
.psgp-card button.psgp-add-media:hover,
.psgp-card button.psgp-wp-media-button:hover,
.psgp-submit button.psgp-add-media:hover,
.psgp-submit button.psgp-wp-media-button:hover,
.psgp-content-field button.psgp-add-media:hover,
.psgp-content-field button.psgp-wp-media-button:hover{
    background:#e5e5e5!important;
    color:#000!important;
}
.psgp-submit label,
.psgp-submit .psgp-content-field label,
.psgp-profile label,
.psgp-card.psgp-profile label,
.psgp-card form label{
    font-size:18px!important;
    line-height:1.35!important;
    font-weight:700!important;
}

/* v11: visual editor only, login spacing, stronger media button color */
.psgp-content-field .wp-editor-tabs,
.psgp-content-field .wp-switch-editor,
.psgp-content-field button.wp-switch-editor,
.psgp-content-field .html-active .switch-tmce,
.psgp-content-field .tmce-active .switch-html{display:none!important;visibility:hidden!important;}
.psgp-content-field .wp-editor-tools{justify-content:flex-start!important;min-height:34px!important;}
.psgp-content-field .wp-media-buttons{display:flex!important;align-items:center!important;}
.psgp-content-field button.psgp-add-media,
.psgp-content-field .wp-media-buttons button.psgp-add-media,
.psgp-submit .wp-media-buttons button.psgp-add-media,
button.psgp-add-media.psgp-wp-media-button,
button.psgp-add-media.psgp-wp-media-button *{
  color:#000!important;
  fill:#000!important;
  text-shadow:none!important;
}
.psgp-content-field button.psgp-add-media,
.psgp-submit .wp-media-buttons button.psgp-add-media,
button.psgp-add-media.psgp-wp-media-button{
  background:#f1f1f1!important;
  border:1px solid #c3c4c7!important;
  border-radius:3px!important;
  box-shadow:0 1px 0 #c3c4c7!important;
}
.psgp-remember{display:flex!important;align-items:center!important;gap:8px!important;margin:8px 0 18px!important;font-size:15px!important;font-weight:500!important;}
.psgp-remember input{width:16px!important;height:16px!important;margin:0!important;order:0!important;}
.psgp-remember span{order:1!important;}
.psgp-login-links{margin-top:18px!important;padding-top:10px!important;display:flex!important;gap:14px!important;align-items:center!important;}
.psgp-public-author ul{margin-left:20px}.psgp-public-author li{margin:8px 0}


/* v12 polish: equal auth fields, reports, settings menu, PayPal full-width */
.psgp-auth form input[type="text"],
.psgp-auth form input[type="email"],
.psgp-auth form input[type="password"],
.psgp-auth form input:not([type]){
    width:100%!important;
    max-width:100%!important;
    min-height:48px!important;
    box-sizing:border-box!important;
    display:block!important;
}
.psgp-auth form p{margin:0 0 15px!important;}
.psgp-auth form button[name="psgp_signup"]{margin-bottom:20px!important;}
.psgp-auth .center{padding-top:10px!important;margin-top:8px!important;}
.psgp-stat b,
.psgp-report-card b{
    font-size:24px!important;
    line-height:1.15!important;
    margin-bottom:10px!important;
    display:block!important;
}
.psgp-stat span,
.psgp-report-card span{
    font-size:18px!important;
    line-height:1.35!important;
    display:block!important;
    font-weight:700!important;
}
.psgp-report-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:18px;margin:22px 0;}
.psgp-report-card{padding:22px!important;border-radius:20px!important;background:#fff!important;}
.psgp-settings-sidebar .psgp-settings-nav-link[href*="shortcodes"]{display:none!important;}
.psgp-admin .psgp-gateway.psgp-full{grid-column:1/-1!important;width:100%!important;box-sizing:border-box!important;}
.psgp-admin .psgp-gateway.psgp-full input{max-width:100%!important;}
/* v13 refinements */
.psgp-stat b,
.psgp-report-card b{
    font-size:28px!important;
    line-height:1.15!important;
    margin-bottom:12px!important;
}
.psgp-stat span,
.psgp-report-card span{
    font-size:16px!important;
    line-height:1.35!important;
}
.psgp-brand{
    justify-content:center!important;
    text-align:center!important;
}
.psgp-brand strong{
    display:block!important;
    width:100%!important;
    text-align:center!important;
}
.psgp-brand small{
    margin-left:0!important;
    text-align:center!important;
}
.psgp-auth-bottom-link,
.psgp-auth .center{
    padding-top:18px!important;
    margin-top:12px!important;
}

/* PS Guest Post publisher management refinements */
.psgp-progress{display:flex;gap:10px;flex-wrap:wrap;margin:18px 0}.psgp-progress span{padding:10px 14px;border-radius:999px;background:#f1f5f9;color:#334155;font-weight:800;border:1px solid #e2e8f0}.psgp-progress span.done{background:#dcfce7;color:#166534;border-color:#86efac}.psgp-badge{display:inline-block;background:#111827;color:#fff;border-radius:999px;padding:6px 12px;font-size:12px;font-weight:800;letter-spacing:.02em}.psgp-quality-box{background:#f8fafc;border:1px solid #e2e8f0;border-radius:16px;padding:14px 16px;margin:16px 0}.psgp-quality-box strong{display:block;margin-bottom:6px;font-size:16px}.psgp-quality-box span{color:#475569;font-weight:700}.psgp-workflow-card{background:linear-gradient(135deg,#fff,#f8fafc)!important}.psgp-public-author .psgp-badge{margin:4px 0 8px}.psgp-settings-sidebar .psgp-settings-nav-link[data-section="advanced"]{border-top:1px solid #e5e7eb;margin-top:10px;padding-top:15px}

/* v15 updates */
.psgp-pagination .prev,.psgp-pagination .next{font-weight:800;background:#fff;}
.psgp-pagination .disabled{opacity:.45;background:#f8fafc;color:#64748b;cursor:not-allowed;}
.psgp-settings-section[data-section="advanced"] small{display:block;margin-top:6px;color:#64748b;font-weight:500;line-height:1.35;}

/* v16 professional publisher management enhancements */
.psgp-dashboard-grid{display:grid;gap:22px;margin-top:22px}.psgp-dashboard-grid .psgp-card:nth-child(3){grid-column:1/-1}.psgp-activity-list{margin:0;padding:0;list-style:none}.psgp-activity-list li{display:flex;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid #eef2f7}.psgp-activity-list span{font-size:13px;color:#64748b}.psgp-badge-big{display:inline-flex;padding:10px 16px;border-radius:999px;background:#111827;color:#fff;font-weight:700;margin:8px 0}.psgp-calendar-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:18px}.psgp-calendar-day{background:#fff;border:1px solid #e5e7eb;border-radius:16px;padding:16px;box-shadow:0 8px 30px rgba(15,23,42,.06)}.psgp-calendar-day h3{margin:0 0 12px;font-size:18px}.psgp-calendar-item{padding:12px;border-radius:12px;background:#f8fafc;margin-bottom:10px}.psgp-calendar-item strong{display:block;font-size:14px}.psgp-calendar-item span{display:block;color:#64748b;font-size:12px;margin:4px 0}.psgp-fake-chart{height:220px;display:flex;align-items:flex-end;gap:14px;padding:24px;background:linear-gradient(180deg,#f8fafc,#fff);border-radius:16px}.psgp-fake-chart span{flex:1;display:block;background:#2563eb;border-radius:10px 10px 0 0;min-height:24px}.psgp-ai-review{margin:18px 0;padding:16px;border-radius:14px;background:#f8fafc;border:1px solid #e5e7eb}.psgp-ai-review strong{display:block;margin-bottom:8px}.psgp-ai-review ul{margin:0;padding-left:18px}.psgp-ai-review li{margin:6px 0}.psgp-ai-review li.ok{color:#15803d}.psgp-ai-review li.warn{color:#b45309}.psgp-ai-review li.info{color:#475569}.psgp-stats-pro .psgp-stat{background:linear-gradient(135deg,#fff,#f8fafc);border:1px solid #e5e7eb;box-shadow:0 12px 30px rgba(15,23,42,.06)}
@media(max-width:900px){.psgp-dashboard-grid{grid-template-columns:1fr}}

/* v20 security + publisher operations */
.psgp-mini-timeline{display:flex;flex-wrap:wrap;gap:6px}
.psgp-mini-timeline span{font-size:12px;font-weight:700;border-radius:999px;padding:6px 9px;background:#f1f5f9;color:#64748b;border:1px solid #e2e8f0}
.psgp-mini-timeline span.done{background:#dcfce7;color:#166534;border-color:#86efac}
.psgp-admin .psgp-card .button.button-primary{margin:4px 8px 4px 0}

/* v23 PS Guest Post refinements */
.psgp-admin-hero h1:after{content:none!important;display:none!important;}
.psgp-profile-head input,
.psgp-card form input,
.psgp-card form select,
.psgp-card form textarea,
.psgp-submit input,
.psgp-submit select,
.psgp-submit textarea{width:100%!important;max-width:100%!important;box-sizing:border-box!important;min-height:48px!important;}
.psgp-profile-head input[type="file"],
.psgp-submit input[type="file"]{padding:10px 12px!important;line-height:24px!important;}
.psgp-brand strong,
.psgp-brand small{font-size:18px!important;line-height:1.35!important;font-weight:800!important;}
.psgp-brand small{font-weight:700!important;opacity:.85!important;}
.psgp-mini-timeline span.step-submitted.done,
.psgp-progress span.step-submitted.done{background:#dbeafe!important;color:#1d4ed8!important;border-color:#93c5fd!important;}
.psgp-mini-timeline span.step-paid.done,
.psgp-progress span.step-payment.done{background:#fef3c7!important;color:#d97706!important;border-color:#fcd34d!important;}
.psgp-mini-timeline span.step-review.done,
.psgp-progress span.step-review.done{background:#ede9fe!important;color:#7c3aed!important;border-color:#c4b5fd!important;}
.psgp-mini-timeline span.step-published.done,
.psgp-progress span.step-published.done{background:#dcfce7!important;color:#15803d!important;border-color:#86efac!important;}
.psgp-mini-timeline span:not(.done),
.psgp-progress span:not(.done){background:#f8fafc!important;color:#64748b!important;border-color:#e2e8f0!important;}
.psgp-system-ok{color:#15803d;font-weight:800}.psgp-system-warn{color:#b45309;font-weight:800}

/* v24 refinements */
.psgp-admin-hero h1:after{content:none!important;display:none!important;}
.psgp-progress span.step-submitted.done{background:#dbeafe!important;color:#1d4ed8!important;border-color:#93c5fd!important;}
.psgp-progress span.step-payment.done{background:#fef3c7!important;color:#d97706!important;border-color:#fcd34d!important;}
.psgp-progress span.step-review.done{background:#ede9fe!important;color:#7c3aed!important;border-color:#c4b5fd!important;}
.psgp-progress span.step-published.done{background:#dcfce7!important;color:#15803d!important;border-color:#86efac!important;}
.psgp-card input[type="text"],.psgp-card input[type="email"],.psgp-card input[type="url"],.psgp-card input[type="password"],.psgp-card input[type="number"],.psgp-card select,.psgp-card textarea{width:100%!important;max-width:100%!important;box-sizing:border-box!important;min-height:48px!important;}
.psgp-card textarea{min-height:130px!important;}
.psgp-row>p{width:100%!important;margin:0 0 14px!important;}
.psgp-profile-head>div{flex:1!important;width:100%!important;}
.psgp-log-actions{display:flex;gap:10px;align-items:center;margin-bottom:14px;}
.psgp-email-detail textarea{font-family:Arial,Helvetica,sans-serif;line-height:1.5;}

/* v25: modern log buttons, checkboxes, email/template customization */
.psgp-log-actions{display:flex!important;gap:12px!important;align-items:center!important;margin:0 0 18px!important;padding:14px!important;background:#f8fafc!important;border:1px solid #e5e7eb!important;border-radius:16px!important;}
.psgp-log-actions .button{border:0!important;border-radius:10px!important;color:#fff!important;font-weight:800!important;padding:8px 16px!important;line-height:1.6!important;box-shadow:0 8px 18px rgba(15,23,42,.12)!important;}
.psgp-log-delete{background:#f97316!important;}
.psgp-log-delete:hover{background:#ea580c!important;}
.psgp-log-clear{background:#dc2626!important;}
.psgp-log-clear:hover{background:#b91c1c!important;}
.psgp-log-table th:first-child,.psgp-log-table td:first-child{width:42px;text-align:center;}
.psgp-modern-check{appearance:none!important;-webkit-appearance:none!important;width:20px!important;height:20px!important;min-width:20px!important;border:2px solid #cbd5e1!important;border-radius:6px!important;background:#fff!important;display:inline-grid!important;place-content:center!important;cursor:pointer!important;vertical-align:middle!important;transition:.18s!important;}
.psgp-modern-check:checked{background:#2563eb!important;border-color:#2563eb!important;}
.psgp-modern-check:checked:before{content:"✓";color:#fff;font-size:14px;font-weight:900;line-height:1;}
.psgp-modern-check:hover{border-color:#2563eb!important;box-shadow:0 0 0 3px rgba(37,99,235,.12)!important;}
.psgp-design-panel,.psgp-email-design-box{margin-top:22px;padding:22px;border:1px solid #e5e7eb;border-radius:20px;background:linear-gradient(135deg,#ffffff,#f8fafc);}
.psgp-design-panel h3,.psgp-email-design-box h3{margin:0 0 8px;font-size:20px;color:#111827;}


/* v26 refinements: restore previous frontend template styling, tighter signup link spacing, email preview */
.psgp-design-panel{display:none!important;}
.psgp-auth form button[name="psgp_signup"]{margin-bottom:6px!important;}
.psgp-auth .center,.psgp-auth-bottom-link{padding-top:4px!important;margin-top:4px!important;}
.psgp-portal{background:transparent!important;color:inherit!important;font-size:inherit!important;padding:0!important;border-radius:0!important;}
.psgp-portal .psgp-card,.psgp-portal .psgp-stat,.psgp-portal .psgp-sidebar{background:#fff;color:inherit;}
.psgp-dark-pro .psgp-sidebar,.psgp-dark-pro .psgp-card,.psgp-dark-pro .psgp-stat{background:#0f172a!important;color:#e5e7eb!important;border-color:#334155!important;}
.psgp-portal label,.psgp-submit label,.psgp-profile label{font-size:18px!important;}
.psgp-email-preview-actions{display:flex;gap:12px;align-items:center;margin:14px 0;}
.psgp-email-preview-box{margin:16px 0;padding:22px;background:#f1f5f9;border:1px solid #e2e8f0;border-radius:18px;overflow:auto;}
.psgp-email-preview-frame{max-width:760px;margin:0 auto;}
.psgp-email-preview-frame table{max-width:100%;}
/* v27: consistent auth bottom spacing and email design settings polish */
.psgp-auth form > button + .center,
.psgp-auth form > button + .psgp-auth-links,
.psgp-auth form > button + .psgp-auth-bottom-link{
    margin-top:4px!important;
    padding-top:4px!important;
}
.psgp-login-links{margin-top:4px!important;padding-top:4px!important;}
.psgp-auth-bottom-link{margin-top:4px!important;padding-top:4px!important;}
.psgp-email-design-box input[type="text"],
.psgp-email-design-box input[type="url"],
.psgp-email-design-box input[type="number"],
.psgp-email-design-box textarea{width:100%!important;max-width:100%!important;box-sizing:border-box!important;}

/* v28: separate frontend template styles from email design settings */
.psgp-portal{background:transparent!important;color:inherit!important;font-size:inherit!important;padding:0!important;border-radius:0!important;}
.psgp-portal .psgp-card,.psgp-portal .psgp-stat,.psgp-portal .psgp-sidebar{background:#fff;color:inherit;}
.psgp-dark-pro .psgp-sidebar,.psgp-dark-pro .psgp-card,.psgp-dark-pro .psgp-stat{background:#0f172a!important;color:#e5e7eb!important;border-color:#334155!important;}
.psgp-magazine .psgp-sidebar{background:#111827!important;color:#fff!important;}
.psgp-gradient .psgp-sidebar{background:linear-gradient(135deg,#2563eb,#7c3aed)!important;color:#fff!important;}
.psgp-agency .psgp-sidebar{background:#0f172a!important;color:#fff!important;}
.psgp-newsroom .psgp-sidebar{background:#111827!important;color:#fff!important;}
.psgp-portal .psgp-sidebar nav a.active,.psgp-portal .psgp-sidebar nav a:hover{background:var(--psgp)!important;color:#fff!important;}
.psgp-portal .psgp-btn,.psgp-portal button:not(.mce-btn button):not(.wp-switch-editor){background:var(--psgp)!important;color:#fff!important;}
.psgp-email-design-box input,.psgp-email-design-box textarea{border-color:#cbd5e1!important;background:#fff!important;color:#111827!important;}
.psgp-email-footer-design{margin-top:18px;padding:22px;border:1px solid #e5e7eb;border-radius:20px;background:linear-gradient(135deg,#f8fafc,#ffffff);}
.psgp-email-footer-design h3{margin:0 0 8px;font-size:20px;color:#111827;}
.psgp-email-footer-design input[type="text"],
.psgp-email-footer-design input[type="url"],
.psgp-email-footer-design input[type="email"],
.psgp-email-footer-design textarea{width:100%!important;max-width:100%!important;box-sizing:border-box!important;border-color:#cbd5e1!important;background:#fff!important;color:#111827!important;}


/* v31: auth spacing, sidebar subtitle color, email header/footer polish */
.psgp-auth form > button + .center,
.psgp-auth form > button + .psgp-auth-links,
.psgp-auth form > button + .psgp-auth-bottom-link{
    margin-top:20px!important;
    padding-top:0!important;
}
.psgp-login-links{margin-top:20px!important;padding-top:0!important;}
.psgp-brand small{color:#000!important;opacity:1!important;}
.psgp-email-design-box{margin-top:18px;padding:22px;border:1px solid #e5e7eb;border-radius:20px;background:linear-gradient(135deg,#f8fafc,#ffffff);}

@media(max-width:1100px){.psgp-shortcode-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.psgp-shortcode-grid{grid-template-columns:1fr}}
.psgp-btn.small{padding:6px 10px;font-size:13px;display:inline-block}
.psgp-alert.info{background:#eff6ff;color:#1d4ed8;border:1px solid #bfdbfe}

/* v38 Published Posts pagination/table improvements */
.psgp-filterbar{display:flex;align-items:end;gap:14px;margin:0 0 18px;flex-wrap:wrap}.psgp-filterbar label{margin:0;font-size:14px}.psgp-filterbar select{max-width:260px}.psgp-table-subline{margin-top:8px}.psgp-actions-cell{white-space:nowrap}.psgp-muted{color:#64748b;font-weight:700}.psgp-btn.secondary{background:#f1f5f9!important;color:#111827!important;border:1px solid #d1d5db}.psgp-status-badge{display:inline-block;border-radius:999px;padding:7px 12px;font-size:12px;font-weight:800;white-space:nowrap}.psgp-status-badge.published{background:#dcfce7;color:#15803d}.psgp-status-badge.pending-review{background:#ede9fe;color:#7c3aed}.psgp-status-badge.payment-pending{background:#fef3c7;color:#d97706}.psgp-status-badge.revision{background:#dbeafe;color:#1d4ed8}.psgp-status-badge.rejected{background:#fee2e2;color:#b91c1c}.psgp-status-badge.default{background:#f1f5f9;color:#334155}.psgp-posts-table th,.psgp-posts-table td{vertical-align:middle}.psgp-mini-timeline .step-submitted.done{background:#dbeafe;color:#1d4ed8;border-color:#93c5fd}.psgp-mini-timeline .step-paid.done{background:#fef3c7;color:#d97706;border-color:#fcd34d}.psgp-mini-timeline .step-review.done{background:#ede9fe;color:#7c3aed;border-color:#c4b5fd}.psgp-mini-timeline .step-published.done{background:#dcfce7;color:#15803d;border-color:#86efac}

/* v42 additions */
.psgp-maintenance-check{display:flex;align-items:center;gap:12px;padding:14px 16px;margin:10px 0;border:1px solid #e5e7eb;border-radius:12px;background:#fff;box-shadow:0 1px 2px rgba(15,23,42,.04);font-weight:600;color:#111827;cursor:pointer}
.psgp-maintenance-check input{appearance:none;-webkit-appearance:none;width:22px;height:22px;border:2px solid #cbd5e1;border-radius:7px;background:#fff;display:inline-block;position:relative;flex:0 0 22px}
.psgp-maintenance-check input:checked{background:#2563eb;border-color:#2563eb}
.psgp-maintenance-check input:checked:after{content:'✓';position:absolute;left:4px;top:-2px;color:#fff;font-weight:800;font-size:16px}
.psgp-maintenance-check:hover{border-color:#2563eb;background:#f8fbff}
.psgp-admin .psgp-log-actions .psgp-log-delete{background:#f97316!important;border-color:#ea580c!important;color:#fff!important;font-weight:700;border-radius:8px;padding:4px 12px}
.psgp-admin .psgp-log-actions .psgp-log-clear{background:#dc2626!important;border-color:#b91c1c!important;color:#fff!important;font-weight:700;border-radius:8px;padding:4px 12px}
.psgp-admin-dashboard-quick{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:20px 0}
@media(max-width:900px){.psgp-admin-dashboard-quick{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* v43 polish */
.psgp-invoice-preview-actions{display:flex!important;align-items:center;gap:12px;flex-wrap:wrap;margin-top:18px!important}
.psgp-invoice-preview-actions .description{display:inline-block;color:#64748b;margin-left:4px}
.psgp-maintenance-check{position:relative;transition:.18s ease;border-width:1px!important}
.psgp-maintenance-check input{cursor:pointer;transition:.18s ease}
.psgp-maintenance-check span{font-size:15px;line-height:1.4}
.psgp-maintenance-check input:focus{box-shadow:0 0 0 3px rgba(37,99,235,.18);outline:none}
.psgp-maintenance-check input:checked + span{color:#1d4ed8}
.psgp-maintenance-check:has(input:checked){border-color:#2563eb;background:#eff6ff}
.psgp-badge-green{background:#dcfce7!important;color:#166534!important;border:1px solid #86efac!important}
.psgp-badge-red{background:#fee2e2!important;color:#991b1b!important;border:1px solid #fecaca!important}
.psgp-mini-check{background:#f8fafc;border:1px solid #e5e7eb;border-radius:14px;padding:16px 18px;display:flex;flex-direction:column;gap:6px}
.psgp-mini-check strong{font-size:15px;color:#111827}
.psgp-mini-check span{font-size:13px;color:#475569;font-weight:600}

/* v48 published posts pagination cleanup */
.psgp-review-style-pagination{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-top:18px;padding-top:14px;border-top:1px solid #e5e7eb}
.psgp-review-style-pagination .button{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:6px 12px;border:1px solid #d0d7de;border-radius:6px;background:#fff;color:#1d2327;text-decoration:none;font-size:13px;font-weight:600;line-height:1.2}
.psgp-review-style-pagination .button:hover{background:#f6f7f7;border-color:#8c8f94;color:#111827}
.psgp-review-style-pagination .button-primary,.psgp-review-style-pagination .active{background:#2271b1!important;border-color:#2271b1!important;color:#fff!important}
.psgp-review-style-pagination .disabled{opacity:.55;cursor:not-allowed;background:#f6f7f7;color:#646970}

/* v49 modern maintenance cleanup tools */
.psgp-maintenance-panel .psgp-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:18px;padding-bottom:16px;border-bottom:1px solid #e5e7eb}
.psgp-maintenance-panel .psgp-section-head h2{margin:0 0 6px;font-size:22px;color:#111827}
.psgp-maintenance-panel .psgp-section-head p{margin:0;color:#64748b;font-weight:600}
.psgp-cleanup-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:18px 0 20px}
.psgp-cleanup-option{display:block;margin:0!important;cursor:pointer;position:relative}
.psgp-cleanup-option input{position:absolute;opacity:0;pointer-events:none}
.psgp-cleanup-box{display:flex;align-items:center;gap:14px;min-height:94px;padding:18px;border:1px solid #e2e8f0;border-radius:18px;background:linear-gradient(135deg,#ffffff,#f8fafc);box-shadow:0 8px 22px rgba(15,23,42,.05);transition:all .18s ease;box-sizing:border-box}
.psgp-cleanup-option:hover .psgp-cleanup-box{border-color:#93c5fd;box-shadow:0 12px 28px rgba(37,99,235,.10);transform:translateY(-1px)}
.psgp-cleanup-icon{width:44px;height:44px;flex:0 0 44px;border-radius:14px;background:#eff6ff;color:#2563eb;display:flex;align-items:center;justify-content:center;font-size:20px;font-weight:800}
.psgp-cleanup-text{display:flex;flex-direction:column;gap:5px;min-width:0;flex:1}
.psgp-cleanup-text strong{font-size:15px;line-height:1.2;color:#0f172a;font-weight:800}
.psgp-cleanup-text em{font-size:13px;line-height:1.35;color:#64748b;font-style:normal;font-weight:600}
.psgp-cleanup-check{width:24px;height:24px;border:2px solid #cbd5e1;border-radius:8px;background:#fff;flex:0 0 24px;position:relative;transition:all .18s ease}
.psgp-cleanup-option input:checked + .psgp-cleanup-box{border-color:#2563eb;background:linear-gradient(135deg,#eff6ff,#ffffff);box-shadow:0 14px 34px rgba(37,99,235,.16)}
.psgp-cleanup-option input:checked + .psgp-cleanup-box .psgp-cleanup-icon{background:#2563eb;color:#fff}
.psgp-cleanup-option input:checked + .psgp-cleanup-box .psgp-cleanup-check{background:#2563eb;border-color:#2563eb}
.psgp-cleanup-option input:checked + .psgp-cleanup-box .psgp-cleanup-check:after{content:'✓';position:absolute;left:4px;top:-3px;color:#fff;font-size:18px;font-weight:900}
.psgp-cleanup-option input:focus + .psgp-cleanup-box{outline:3px solid rgba(37,99,235,.18);outline-offset:2px}
.psgp-maintenance-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-top:18px;padding-top:18px;border-top:1px solid #e5e7eb}
.psgp-run-maintenance{background:#2563eb!important;border-color:#1d4ed8!important;color:#fff!important;border-radius:10px!important;padding:7px 16px!important;font-weight:800!important;box-shadow:0 8px 18px rgba(37,99,235,.22)!important}
.psgp-run-maintenance:hover{background:#1d4ed8!important;border-color:#1e40af!important;color:#fff!important}
.psgp-maintenance-actions span{color:#64748b;font-size:13px;font-weight:700}
@media(max-width:900px){.psgp-cleanup-grid{grid-template-columns:1fr}.psgp-cleanup-box{min-height:auto}}


/* v51 Global PS Guest Post notification cleanup */
.psgp-alert,
.psgp-admin-notice{
    display:flex;
    align-items:flex-start;
    gap:10px;
    padding:14px 16px !important;
    border-radius:12px !important;
    margin:14px 0 !important;
    font-weight:700;
    line-height:1.45;
    box-shadow:0 8px 24px rgba(15,23,42,.06);
    color:#111827 !important;
}
.psgp-alert *,
.psgp-admin-notice *{color:inherit !important;}
.psgp-alert.success,
.psgp-admin-notice.success{
    background:#ecfdf5 !important;
    color:#111827 !important;
    border:1px solid #bbf7d0 !important;
    border-left:5px solid #22c55e !important;
}
.psgp-alert.error,
.psgp-admin-notice.error{
    background:#fef2f2 !important;
    color:#111827 !important;
    border:1px solid #fecaca !important;
    border-left:5px solid #ef4444 !important;
}
.psgp-alert.warning,
.psgp-admin-notice.warning{
    background:#fffbeb !important;
    color:#111827 !important;
    border:1px solid #fde68a !important;
    border-left:5px solid #f59e0b !important;
}
.psgp-alert.info,
.psgp-admin-notice.info{
    background:#eff6ff !important;
    color:#111827 !important;
    border:1px solid #bfdbfe !important;
    border-left:5px solid #3b82f6 !important;
}
.psgp-notice-icon{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    flex:0 0 22px;
    width:22px;
    height:22px;
    border-radius:999px;
    background:#fff;
    color:#111827 !important;
    font-weight:900;
    box-shadow:0 2px 8px rgba(15,23,42,.08);
}
.psgp-admin .notice,
.psgp-admin-pro .notice{
    color:#111827 !important;
}
.psgp-admin .notice p,
.psgp-admin-pro .notice p{
    color:#111827 !important;
}
