/* ========== Upload Thumbnail (Dropzone) ========== */
:root{
  --post-thumb-size: 64px;       /* پیش‌فرض؛ می‌تونی از سرور override کنی */
  --post-thumb-radius: 8px;
  --thumb-border-color: #cfcfcf;
  --thumb-accent: #0d6efd;
  --thumb-bg: #f2f2f2;
}

/* Phase 5B — signed atomic update */
.deployment-update-steps{display:grid;grid-template-columns:repeat(11,minmax(95px,1fr));gap:.55rem;overflow-x:auto;padding:.25rem 0 1rem}
.deployment-update-step{min-width:95px;display:flex;flex-direction:column;align-items:center;gap:.35rem;padding:.7rem .45rem;border:1px solid #d9e0ea;border-radius:12px;background:#fff;color:#64748b;font-size:.76rem;text-align:center}
.deployment-update-step b{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:#eef2f7;color:#334155}
.deployment-update-step.is-active{border-color:#2563eb;background:#eff6ff;color:#1d4ed8}.deployment-update-step.is-active b{background:#2563eb;color:#fff}
.deployment-update-step.is-complete{border-color:#16a34a;background:#f0fdf4;color:#15803d}.deployment-update-step.is-complete b{background:#16a34a;color:#fff}
.deployment-update-step.is-failed{border-color:#dc2626;background:#fef2f2;color:#b91c1c}.deployment-update-step.is-failed b{background:#dc2626;color:#fff}
.deployment-update-file-list{display:flex;flex-direction:column;gap:.18rem;margin-top:.35rem;max-width:360px;max-height:150px;overflow:auto;direction:ltr;text-align:left;color:#64748b}
.deployment-update-progress{margin-top:1rem;padding:1rem;border:1px solid #cbd5e1;border-radius:14px;background:#f8fafc}
.deployment-update-progress>div:first-child{display:flex;justify-content:space-between;gap:1rem;margin-bottom:.75rem}.deployment-update-progress p{margin:.7rem 0}.deployment-update-progress code{display:block;margin-bottom:.7rem}
@media(max-width:992px){.deployment-update-steps{grid-template-columns:repeat(11,110px)}}

.thumb-wrap { margin-top: .5rem; }

.thumb-dropzone{
  border: 2px dashed var(--thumb-border-color);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  transition: background-color .2s, border-color .2s;
}
.thumb-dropzone.dragover{
  border-color: var(--thumb-accent);
  background: #f0f7ff;
}
.thumb-preview img{
  max-height: 96px;
  border-radius: 6px;
  display: block;
}

/* ========== Post list thumbnail ========== */
/* کانتینر قابل‌تنظیم: با data-size یا با ست‌کردن --post-thumb-size روی خود container */
.thumb-size[data-size="sm"] { --post-thumb-size: 36px; }
.thumb-size[data-size="md"] { --post-thumb-size: 48px; }
.thumb-size[data-size="lg"] { --post-thumb-size: 80px; }

.post-title-wrap{
  display: flex;
  align-items: center;
  gap: .75rem;
}
.post-thumb{
  width: var(--post-thumb-size);
  height: var(--post-thumb-size);
  display: block;
  border-radius: var(--post-thumb-radius);
  background: var(--thumb-bg);
  box-shadow: 0 1px 2px rgba(0,0,0,.08);
  object-fit: cover;          /* پیش‌فرض: برش می‌دهد تا مربع شیک شود */
}
.post-thumb.contain{           /* بدون برش و کاملاً متناسب */
  object-fit: contain;
  background: #fff;
}
.post-title-text{ font-weight: 600; }

@media (max-width: 576px){
  /* در موبایل کمی ظریف‌تر */
  .post-title-text{ font-weight: 500; }
  /* اگر اندازه مشخص نشده، کمی کوچک‌تر نمایش بده */
  .thumb-size:not([data-size]) { --post-thumb-size: 56px; }
}

/* حالت جای‌نگهدار (وقتی تصویر نداریم) */
.post-thumb.is-placeholder{ background: #e9ecef; }



/* آیکون برنامه زیر عنوان */
:root { --app-icon-size: 48px; }              /* پیش‌فرض */
.icon-size[data-size="sm"] { --app-icon-size: 40px; }
.icon-size[data-size="md"] { --app-icon-size: 96px; }
.icon-size[data-size="lg"] { --app-icon-size: 128px; }

.app-icon{
  width: var(--app-icon-size);
  height: var(--app-icon-size);
  object-fit: cover;            /* اگر برش نخواهی بعداً کلاس contain بده */
  border-radius: 10px;
  background: #f2f2f2;
  box-shadow: 0 1px 2px rgba(0,0,0,.08);
  display: block;
}
.app-icon.contain{ object-fit: contain; background:#fff; }

.app-icon{ width:82px; height:82px; border-radius:12px; object-fit:cover; background:#f2f2f2; box-shadow:0 1px 2px rgba(0,0,0,.08); }
@media (max-width:576px){ .app-icon{ width:48px; height:48px; } }

#manualVersions .small { min-height: 1rem; }



#postSearchClear {
  font-size: 20px;
  line-height: 1;
  padding: 0 .6rem;
  color:red;
}

/* moved from header inline */
.ftp-folder-card .status-msg { min-width: 120px; white-space: nowrap; }
@media (max-width: 576px) {
  .ftp-folder-card .input-group { width: 100%; }
}


.vs-toast-stack{
  position:fixed;
  top:22px;
  left:50%;
  z-index:13000;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:.5rem;
  width:min(560px,calc(100vw - 24px));
  transform:translateX(-50%);
  pointer-events:none;
}
.vs-toast{
  width:max-content;
  max-width:100%;
  padding:.68rem .9rem;
  border:1px solid rgba(255,255,255,.2);
  border-radius:12px;
  background:#1f2937;
  color:#fff;
  box-shadow:0 12px 34px rgba(15,23,42,.25);
  opacity:0;
  transform:translateY(-12px) scale(.98);
  transition:opacity .25s ease,transform .25s ease;
  font-size:.78rem;
  line-height:1.7;
  text-align:center;
}
.vs-toast.show{opacity:1;transform:translateY(0) scale(1)}
.vs-toast-success{background:#15803d}
.vs-toast-error{background:#b91c1c}
.vs-toast-info{background:#1d4ed8}


.vs-links .table td, .vs-links .table th { vertical-align: middle; }

.vs-links-panel .card-body { max-height: 360px; overflow: auto; }
.vs-links-panel table { font-size: .875rem; }
/*
.vs-toast { position: fixed; right: 14px; bottom: 14px; z-index: 1056; }
*/

a.limited-width {
  display: inline-block;   /* یا block */
  max-width: 150px;        /* عرض دلخواه */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;  /* برای هماهنگی با متن اطراف */
}


/* ===== Cron History styles ===== */
/* جدول نسخه‌ها (ریزِ هر ردیف) */
.mini-ver {
  border-collapse: collapse;
  width: 100%;
}
.mini-ver td {
  padding: .15rem .25rem;
  vertical-align: middle;
  font-size: .875rem; /* small */
  line-height: 1.25rem;
  white-space: nowrap;
}

/* تیتر هر نوع نسخه */
.mini-ver-label {
  font-weight: 600;
  white-space: nowrap;
}

/* نمایش نسخه جاری */
.text-current {
  font-weight: 600;
}

/* حالت‌های نسخه یافت‌شده */
.text-found-new {color:#198754; font-weight:600; }   /* همان رنگ success بوت‌استرپ */
.text-found-old { color: #6c757d; }   /* همان رنگ text-muted بوت‌استرپ */

/* بج NEW کوچک */
.badge-new {
  display: inline-block;
  padding: 0 .35rem;
  font-size: .7rem;
  border-radius: .5rem;
  background: #dc3545; /* پس‌زمینه‌ی هشدار ملایم */
  border: 1px solid #ffe69c;
  color: #ffffff;
  vertical-align: baseline;
}

/* لینک منبع با عرض محدود + سه‌نقطه */
.limited-width {
  max-width: 260px;
  display: inline-block;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
  white-space: nowrap;
}

/* واکنش‌گرایی: استک شدن جدول در موبایل به حالت کارت‌مانند */
@media (max-width: 992px) {
  .table.table-sm thead {
    display: none; /* هدر را پنهان می‌کنیم؛ لیبل‌ها با data-label می‌آیند */
  }
  .table.table-sm tr {
    display: block;
    margin-bottom: 1rem;
    border: 1px solid rgba(0,0,0,.06);
    border-radius: .5rem;
    padding: .5rem;
  }
  .table.table-sm td {
    display: grid;
    grid-template-columns: 110px 1fr; /* لیبل | محتوا */
    align-items: start;
    gap: .5rem;
    border: none !important;
    padding: .35rem .25rem !important;
    white-space: normal;
  }
  .table.table-sm td::before {
    content: attr(data-label);
    font-weight: 600;
    color: #6c757d;
  }
  .limited-width {
    max-width: 100%;
  }
  .mini-ver td {
    white-space: normal; /* اجازهٔ چندخطی در موبایل */
  }
}

/* ===== Admin breadcrumb ===== */
.admin-breadcrumb-wrap{
  direction: rtl;
  text-align: right;
  background: #f8f9fa;
  border-bottom: 1px solid rgba(0,0,0,.07);
}
.admin-breadcrumb{
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: .45rem;
  padding-top: .55rem;
  padding-bottom: .55rem;
  font-size: .92rem;
}
.admin-breadcrumb-link{
  color: #0d6efd;
  font-weight: 600;
  text-decoration: none;
}
.admin-breadcrumb-link:hover{ text-decoration: underline; }
.admin-breadcrumb-separator{
  color: #adb5bd;
  font-size: .82rem;
  user-select: none;
}
.admin-breadcrumb-current{
  color: #6c757d;
  font-size: .88rem;
  font-weight: 400;
  overflow-wrap: anywhere;
}

/* ===== Post publication controls ===== */
.post-edit-publication-line{
  color: #6c757d;
  font-size: .9rem;
  display: flex;
  align-items: center;
  gap: .35rem;
  flex-wrap: wrap;
}
.post-edit-publication-line time{ color: #495057; font-weight: 600; }
.publication-now-check{
  min-height:38px;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:.65rem;
  padding:.38rem .65rem;
  border:1px solid #ced4da;
  border-radius:.375rem;
  background:#fff;
  overflow:hidden;
}
.publication-now-check-copy{min-width:0;margin:0;color:#1e293b;font-size:.78rem;font-weight:700;line-height:1.5;cursor:pointer}
.publication-now-help{min-height:1.2rem}
.publication-now-check-control{
  display:flex;
  align-items:center;
  justify-content:center;
  min-width:48px;
  padding:.35rem!important;
  border:1px solid #dbeafe;
  border-radius:999px;
  background:#eff6ff;
}
.publication-now-check-control .form-check-input{float:none!important;margin:0!important;cursor:pointer}
#publicationDateBox .publication-current{
  padding: .65rem .8rem;
  border-radius: .5rem;
  background: #f8f9fa;
  border: 1px solid #eef0f2;
}
.post-cron-settings-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:.75rem;
  margin-bottom:1rem;
}
.post-setting-switch-card{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:.85rem;
  min-height:92px;
  padding:.8rem .9rem;
  border:1px solid #dbe4ef;
  border-radius:13px;
  background:linear-gradient(145deg,#fff,#f8fafc);
  overflow:hidden;
}
.post-setting-switch-card--wide{grid-column:1/-1;border-color:#bfdbfe;background:linear-gradient(145deg,#eff6ff,#fff)}
.post-setting-switch-copy{min-width:0}
.post-setting-switch-copy label{display:block;margin:0;color:#1e293b;font-size:.8rem;font-weight:850;line-height:1.7;cursor:pointer}
.post-setting-switch-copy small{display:block;margin-top:.16rem;color:#64748b;font-size:.66rem;line-height:1.7}
.post-setting-switch-control{
  display:flex;
  align-items:center;
  justify-content:center;
  min-width:50px;
  padding:.38rem!important;
  border:1px solid #dbeafe;
  border-radius:999px;
  background:#eff6ff;
  overflow:hidden;
}
.post-setting-switch-control.form-switch{padding-right:.38rem!important;padding-left:.38rem!important}
.post-setting-switch-control .form-check-input{float:none!important;margin:0!important;cursor:pointer}
.cron-setting-tooltip{display:block;min-height:1.1rem;margin-top:.22rem;font-size:.64rem}
.cron-inline-save-message{display:block;min-height:1.2rem;margin-top:.2rem;font-size:.72rem;opacity:0;transform:translateY(-2px);transition:opacity .2s ease,transform .2s ease}
.cron-inline-save-message.is-visible{opacity:1;transform:translateY(0)}
.cron-inline-save-message.is-success{color:#15803d}
.cron-inline-save-message.is-error{color:#b91c1c}
@media(max-width:767.98px){
  .post-cron-settings-grid{grid-template-columns:1fr}
  .post-setting-switch-card--wide{grid-column:auto}
  .publication-now-check{min-height:38px}
}

@media (max-width: 576px){
  .admin-breadcrumb{ font-size: .86rem; }
  .admin-breadcrumb-current{ font-size: .82rem; }
}


/* ===== Floating jump to post save button ===== */
.post-save-jump{
  position: fixed;
  right: 22px;
  top: 84px;
  z-index: 1080;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  direction: rtl;
  border: 0;
  border-radius: 999px;
  padding: .7rem 1rem;
  background: #0d6efd;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 10px 28px rgba(13,110,253,.28);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px) scale(.97);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease, box-shadow .2s ease;
}
.post-save-jump.is-visible{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}
.post-save-jump:hover,
.post-save-jump:focus-visible{
  color: #fff;
  background: #0b5ed7;
  box-shadow: 0 12px 32px rgba(13,110,253,.38);
  outline: none;
}
#postSaveActions.post-save-target-highlight{
  animation: post-save-target-pulse 1.2s ease;
}
@keyframes post-save-target-pulse{
  0%,100%{ box-shadow: none; }
  35%{ box-shadow: 0 0 0 .3rem rgba(13,110,253,.2); border-radius: .55rem; }
}
@media (max-width: 576px){
  .post-save-jump{
    right: 12px;
    top: 72px;
    max-width: calc(100vw - 24px);
    padding: .65rem .85rem;
    font-size: .88rem;
  }
}
@media (prefers-reduced-motion: reduce){
  .post-save-jump{ transition: none; }
  #postSaveActions.post-save-target-highlight{ animation: none; }
}


/* ===== Freeze controls for post sources ===== */
.vs-freeze-cell{position:relative;min-width:150px}
.vs-row.is-source-frozen{opacity:.72;background:#f1f5f9}
.vs-row.is-source-frozen .vs-url,
.vs-row.is-source-frozen .vs-tag,
.vs-row.is-source-frozen .vs-css{background:#e9ecef;cursor:not-allowed}
.vs-row.is-site-frozen{box-shadow:inset 4px 0 0 #f59e0b}
.vs-freeze-tip,.site-freeze-tip{
  position:absolute;z-index:30;right:50%;top:calc(100% + 5px);transform:translateX(50%) translateY(-4px);
  min-width:220px;max-width:330px;padding:.45rem .65rem;border-radius:.55rem;color:#fff;font-size:.78rem;
  opacity:0;visibility:hidden;pointer-events:none;transition:.2s ease;box-shadow:0 8px 24px rgba(15,23,42,.22)
}
.vs-freeze-tip.is-visible,.site-freeze-tip.is-visible{opacity:1;visibility:visible;transform:translateX(50%) translateY(0)}
.vs-freeze-tip.is-ok,.site-freeze-tip.is-ok{background:#15803d}
.vs-freeze-tip.is-error,.site-freeze-tip.is-error{background:#b91c1c}

/* ===== Global site freeze controls ===== */
.site-priority-item{position:relative;transition:background .2s ease,opacity .2s ease}
.site-priority-item.is-frozen{background:#f8fafc;opacity:.82}
.site-priority-main{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap}
.site-priority-controls{display:flex;align-items:center;gap:.65rem;flex-wrap:wrap}
.site-freeze-reason{width:min(300px,70vw)}
.site-freeze-tip{right:auto;left:12px;top:calc(100% - 4px);transform:translateY(-4px)}
.site-freeze-tip.is-visible{transform:translateY(0)}

/* ===== Manual post update job ===== */
.manual-update-panel{border:1px solid #cbd5e1;border-radius:14px;background:#fff;overflow:hidden;box-shadow:0 8px 28px rgba(15,23,42,.08)}
.manual-update-header{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap;padding:14px 16px;background:linear-gradient(180deg,#f8fafc,#fff);border-bottom:1px solid #e2e8f0}
.manual-update-message{color:#475569}
.manual-update-body{padding:14px}
.manual-update-logs{display:flex;flex-direction:column;gap:8px;max-height:420px;overflow:auto;padding:2px}
.manual-update-log{border:1px solid #e2e8f0;border-right-width:4px;border-radius:10px;padding:9px 11px;background:#fff}
.manual-update-log.is-info{border-right-color:#2563eb}
.manual-update-log.is-success{border-right-color:#16a34a;background:#f0fdf4}
.manual-update-log.is-warning{border-right-color:#d97706;background:#fffbeb}
.manual-update-log.is-error{border-right-color:#dc2626;background:#fef2f2}
.manual-update-log-head{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#64748b;font-size:.75rem;margin-bottom:4px}
.manual-update-log-stage{font-weight:700;color:#334155}
.manual-update-log-message{font-size:.9rem;line-height:1.8;white-space:pre-wrap}
.manual-update-result{border-top:1px solid #e2e8f0;padding-top:14px}
.manual-update-links{display:grid;gap:8px}
.manual-update-link{display:flex;align-items:center;justify-content:space-between;gap:12px;text-decoration:none;border:1px solid #bbf7d0;background:#f0fdf4;color:#166534;border-radius:10px;padding:9px 11px}
.manual-update-link:hover{background:#dcfce7;color:#14532d}
.manual-update-link span{font-size:.78rem;color:#475569}
.manual-update-result-empty{padding:10px 12px;border-radius:10px;background:#f8fafc;border:1px dashed #cbd5e1;color:#475569}

@media (max-width: 768px){
  .vs-freeze-cell{min-width:135px}
  .site-priority-main,.manual-update-header{align-items:stretch;flex-direction:column}
  .site-priority-controls{width:100%}
  .site-freeze-reason{width:100%;flex:1 1 100%}
  .manual-update-link{align-items:flex-start;flex-direction:column}
}

/* مرکز مشترک گزارش‌های Cron دستی و خودکار */
.cron-report-toolbar{background:#f8fafc}
.cron-report-toolbar .cron-report-tab.active{color:#fff;background:#0d6efd;border-color:#0d6efd}
.cron-report-history{min-width:240px}
.manual-update-log.is-warn{border-right-color:#d97706;background:#fffbeb}
.manual-update-log-context{margin-top:5px;color:#64748b;font-size:.78rem;line-height:1.7}
.manual-update-log-head time{margin-inline-start:auto;white-space:nowrap}
.cron-report-phase{font-weight:500}
@media (max-width: 575.98px){
  .cron-report-history{width:100%;max-width:none!important}
  .cron-report-toolbar .ms-auto{margin-inline-start:0!important}
}
.cron-report-meta-details{margin-top:8px;border-top:1px dashed #cbd5e1;padding-top:7px;color:#475569;font-size:.8rem}
.cron-report-meta-details summary{cursor:pointer;font-weight:700;color:#334155}
.cron-report-source-list{display:grid;gap:.55rem;margin-top:.55rem}
.cron-report-source-card{display:grid!important;gap:.35rem;padding:.58rem!important;border-radius:10px!important;background:rgba(248,250,252,.92)!important;border:1px solid #e2e8f0!important}.cron-report-source-card>strong{color:#334155;font-size:.72rem}.cron-report-source-field{display:grid;grid-template-columns:110px minmax(0,1fr);gap:.55rem;align-items:start;padding:.28rem .36rem;border-radius:7px;background:#fff;border:1px solid #eef2f7}.cron-report-source-field>span:first-child{color:#94a3b8;font-size:.62rem}.cron-report-source-field>span:last-child,.cron-report-source-field>code{min-width:0;overflow-wrap:anywhere;color:#334155;font-size:.68rem}
.cron-report-technical{display:grid;grid-template-columns:1fr;gap:.38rem;margin-top:.6rem}.cron-report-technical span{display:grid;grid-template-columns:1fr;background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;padding:.38rem .52rem;font-size:.7rem;color:#475569}


.cron-report-run-meta {
  line-height: 1.8;
}

.cron-report-result-stats {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-top: .85rem;
}

.cron-report-result-stats > span {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .4rem .65rem;
  border: 1px solid rgba(0, 0, 0, .1);
  border-radius: .65rem;
  background: rgba(0, 0, 0, .025);
  font-size: .84rem;
}

/* بخش جمع‌شونده مدیریت لینک‌های دانلود */
.download-links-collapsible{border:1px solid #dbe3ee;border-radius:14px;background:#fff;overflow:hidden;box-shadow:0 6px 22px rgba(15,23,42,.05)}
.download-links-collapsible-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer;padding:14px 16px;background:linear-gradient(180deg,#f8fafc,#fff);list-style:none;user-select:none}
.download-links-collapsible-summary::-webkit-details-marker{display:none}
.download-links-collapsible-summary::after{content:'⌄';font-size:1.1rem;color:#64748b;transition:transform .2s ease}
.download-links-collapsible[open] .download-links-collapsible-summary::after{transform:rotate(180deg)}
.download-links-collapsible-summary>span:first-child{display:flex;flex-direction:column;gap:3px}
.download-links-collapsible-summary small{font-weight:400;color:#64748b}
.download-links-collapsible .download-links-manager{margin:0;padding:16px;border-top:1px solid #e2e8f0}

/* ===== Post edit heading version ===== */
.post-edit-heading-version{
  display:inline-flex;
  align-items:baseline;
  gap:.25rem;
  margin-inline-start:.35rem;
  color:#495057;
  font-size:.78em;
  font-weight:600;
  white-space:nowrap;
}

/* ===== Compact version source rows ===== */
#postEditForm .vs-table{
  width:100%;
  min-width:0;
  table-layout:fixed;
}
#postEditForm .vs-table col.vs-col-order{width:7%}
#postEditForm .vs-table col.vs-col-result{width:6%}
#postEditForm .vs-table col.vs-col-actions{width:16%}
#postEditForm .vs-table col.vs-col-puppeteer{width:6%}
#postEditForm .vs-table col.vs-col-css{width:12%}
#postEditForm .vs-table col.vs-col-tag{width:8%}
#postEditForm .vs-table col.vs-col-url{width:31%}
#postEditForm .vs-table col.vs-col-freeze{width:14%}
#postEditForm .vs-table th,
#postEditForm .vs-table td{
  min-width:0;
  padding-inline:.28rem;
  overflow-wrap:anywhere;
}
#postEditForm .vs-table th{
  font-size:.76rem;
  line-height:1.35;
}
#postEditForm .vs-table .form-control{
  width:100%;
  min-width:0;
}
#postEditForm .vs-table .vs-css,
#postEditForm .vs-table .vs-tag{
  padding-inline:.35rem;
  font-size:.78rem;
}
#postEditForm .vs-table .vs-url{
  padding-inline:.45rem;
  font-size:.8rem;
}
#postEditForm .vs-actions-group{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:.2rem;
  flex-wrap:nowrap;
}
#postEditForm .vs-actions-group .btn{
  flex:0 0 auto;
  padding:.25rem .38rem;
  font-size:.7rem;
  line-height:1.25;
  white-space:nowrap;
}
#postEditForm .vs-table .vs-freeze-cell{
  min-width:0;
  padding-inline:.2rem;
}
#postEditForm .vs-table .vs-freeze-cell .form-switch{
  gap:.25rem!important;
}
#postEditForm .vs-table .vs-freeze-badge{
  padding:.25em .4em;
  font-size:.66rem;
}
@media (min-width:993px){
  #postEditForm .vs-section .table-responsive{overflow-x:visible}
}
@media (max-width:992px){
  #postEditForm .vs-table col{width:auto!important}
  #postEditForm .vs-actions-group{flex-wrap:wrap}
  #postEditForm .vs-table .vs-css,
  #postEditForm .vs-table .vs-tag,
  #postEditForm .vs-table .vs-url{font-size:.875rem}
}

/* ===== Right-click navigation menu on post edit page ===== */
.post-edit-context-menu{
  position:fixed;
  z-index:12000;
  width:min(285px,calc(100vw - 18px));
  max-height:calc(100vh - 18px);
  overflow:auto;
  direction:rtl;
  text-align:right;
  padding:.45rem;
  border:1px solid rgba(15,23,42,.14);
  border-radius:14px;
  background:#fff;
  box-shadow:0 18px 48px rgba(15,23,42,.24);
  opacity:0;
  transform:translateY(5px) scale(.985);
  transform-origin:top right;
  transition:opacity .12s ease,transform .12s ease;
}
.post-edit-context-menu[hidden]{display:none!important}
.post-edit-context-menu.is-open{
  opacity:1;
  transform:translateY(0) scale(1);
}
.post-edit-context-menu-title{
  padding:.45rem .6rem .35rem;
  color:#64748b;
  font-size:.75rem;
  font-weight:700;
}
.post-edit-context-menu-group+.post-edit-context-menu-group{
  margin-top:.35rem;
  padding-top:.35rem;
  border-top:1px solid #e2e8f0;
}
.post-edit-context-menu-button{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.75rem;
  border:0;
  border-radius:9px;
  padding:.55rem .65rem;
  background:transparent;
  color:#1e293b;
  text-align:right;
  font-size:.86rem;
  cursor:pointer;
}
.post-edit-context-menu-button:hover,
.post-edit-context-menu-button:focus-visible{
  background:#eff6ff;
  color:#0d6efd;
  outline:none;
}
.post-edit-context-menu-shortcut{
  color:#94a3b8;
  font-size:.7rem;
  direction:ltr;
}
#postEditPage .post-edit-scroll-target{
  scroll-margin-top:84px;
}
#postEditPage .post-edit-scroll-highlight{
  animation:post-edit-scroll-highlight 1.25s ease;
}
@keyframes post-edit-scroll-highlight{
  0%,100%{box-shadow:none}
  35%{box-shadow:0 0 0 .3rem rgba(13,110,253,.2);border-radius:.65rem}
}
@media (prefers-reduced-motion:reduce){
  .post-edit-context-menu{transition:none}
  #postEditPage .post-edit-scroll-highlight{animation:none}
}

/* ===== Session timeout settings tooltip ===== */
.session-timeout-action {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.session-save-tooltip {
  position: absolute;
  right: 50%;
  bottom: calc(100% + 10px);
  min-width: 220px;
  max-width: min(320px, 80vw);
  padding: 9px 12px;
  border-radius: 9px;
  color: #fff;
  font-size: .82rem;
  line-height: 1.6;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(50%, 8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  z-index: 1080;
}

.session-save-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  right: 50%;
  margin-right: -6px;
  border: 6px solid transparent;
  border-top-color: currentColor;
  filter: brightness(.7);
}

.session-save-tooltip.is-success { background: #198754; }
.session-save-tooltip.is-error { background: #dc3545; }
.session-save-tooltip.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(50%, 0);
}
.session-save-tooltip.is-success::after { border-top-color: #198754; }
.session-save-tooltip.is-error::after { border-top-color: #dc3545; }

/* ===== Dashboard active errors and unified active error center ===== */
.dashboard-welcome,
.dashboard-error-panel,
.active-error-total-card,
.active-error-empty {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
}
.dashboard-welcome { padding: 1.1rem 1.25rem; }
.dashboard-error-panel { padding: 1.15rem; }
.dashboard-error-button {
  min-height: 92px;
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  color: #1e293b;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.dashboard-error-button:hover {
  color: #0f172a;
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(15, 23, 42, .12);
}
.dashboard-error-button.is-version:hover { border-color: #f59e0b; }
.dashboard-error-button.is-upload:hover { border-color: #dc3545; }
.dashboard-error-button.is-webhook:hover { border-color: #6f42c1; }
.dashboard-error-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  border-radius: 12px;
  background: #f8fafc;
  font-size: 1.15rem;
}
.dashboard-error-text { display: flex; flex-direction: column; gap: .2rem; flex: 1; }
.dashboard-error-text small { color: #64748b; font-size: .75rem; }
.dashboard-error-count {
  min-width: 40px;
  height: 40px;
  padding: 0 .55rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #dc3545;
  color: #fff;
  font-weight: 800;
}
.active-error-total-card {
  min-width: 128px;
  padding: .8rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.active-error-total-number { font-size: 1.8rem; line-height: 1; font-weight: 900; color: #dc3545; }
.active-error-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .9rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 13px;
  background: #fff;
  color: #334155;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(15, 23, 42, .05);
}
.active-error-summary:hover,
.active-error-summary.is-selected { border-color: #dc3545; color: #991b1b; }
.active-error-summary strong {
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #fee2e2;
  color: #b91c1c;
}
.active-error-empty { padding: 3rem 1rem; text-align: center; color: #64748b; }
.active-error-empty i { font-size: 3rem; color: #198754; margin-bottom: .8rem; }
.active-error-accordion .accordion-item { overflow: hidden; border: 1px solid #e2e8f0; border-radius: 15px; }
.active-error-accordion .accordion-button { gap: .75rem; font-weight: 800; }
.active-error-category-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #f1f5f9;
}
.active-error-item { padding: 1rem 1.1rem; border-top: 1px solid #e2e8f0; }
.active-error-item:first-child { border-top: 0; }
.active-error-item-head { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: .8rem; }
.active-error-entity-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .7rem; margin-bottom: .8rem; }
.active-error-entity-grid > div { padding: .7rem; border-radius: 10px; background: #f8fafc; }
.active-error-label { display: block; color: #64748b; font-size: .72rem; margin-bottom: .2rem; }
.active-error-message { padding: .8rem; border-right: 4px solid #dc3545; border-radius: 8px; background: #fff1f2; }
.active-error-details { margin-top: .7rem; }
.active-error-details summary { cursor: pointer; font-weight: 700; color: #475569; }
.active-error-details pre { margin-top: .6rem; padding: .75rem; border-radius: 9px; background: #0f172a; color: #e2e8f0; white-space: pre-wrap; direction: ltr; text-align: left; }
.active-error-suggestion { margin-top: .7rem; padding: .75rem; border-radius: 9px; background: #fffbeb; color: #854d0e; }
.active-error-source { margin-top: .7rem; overflow-wrap: anywhere; }
.active-error-actions { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .9rem; }
@media (max-width: 767.98px) {
  .dashboard-error-button { min-height: 78px; }
  .active-error-item { padding: .85rem; }
}

/* ===== Active error retry actions, post identity and alternating rows ===== */
.active-error-list .active-error-item.is-tone-a {
  background: linear-gradient(135deg, #fff7f8 0%, #fffafb 48%, #ffffff 100%);
}
.active-error-list .active-error-item.is-tone-b {
  background: linear-gradient(135deg, #f7f8ff 0%, #fafaff 48%, #ffffff 100%);
}
.active-error-list .active-error-item {
  position: relative;
  transition: opacity .25s ease, transform .25s ease, box-shadow .2s ease;
}
.active-error-list .active-error-item:hover {
  box-shadow: inset 4px 0 0 rgba(99, 102, 241, .18), 0 8px 24px rgba(15, 23, 42, .05);
}
.active-error-list .active-error-item.is-resolved {
  opacity: 0;
  transform: translateY(-8px) scale(.99);
}
.active-error-post-cell { min-width: min(100%, 280px); }
.active-error-post {
  display: flex;
  align-items: center;
  gap: .7rem;
  min-width: 0;
  color: #1e293b;
  text-decoration: none;
}
.active-error-post:hover { color: #4338ca; }
.active-error-post-icon {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border-radius: 13px;
  object-fit: cover;
  background: #fff;
  border: 1px solid rgba(148, 163, 184, .38);
  box-shadow: 0 5px 14px rgba(15, 23, 42, .1);
}
.active-error-post-names {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.45;
}
.active-error-post-names strong,
.active-error-post-names small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.active-error-post-names strong { font-size: .92rem; }
.active-error-post-names small { color: #64748b; font-size: .75rem; text-align: right; }
.active-error-actions { align-items: center; }
.active-error-retry-btn,
.active-error-resolve-btn { position: relative; min-width: 105px; }
.active-error-action-status {
  display: none;
  flex: 1 1 260px;
  min-width: 180px;
  padding: .46rem .7rem;
  border-radius: 9px;
  background: rgba(255,255,255,.72);
  border: 1px dashed rgba(100,116,139,.35);
  color: #475569;
  font-size: .78rem;
}
.active-error-action-status.is-visible { display: inline-flex; }
.active-error-running-badge .spinner-border { width: .75rem; height: .75rem; border-width: .12em; }
.active-error-floating-tooltip {
  position: absolute;
  z-index: 2200;
  max-width: min(420px, calc(100vw - 24px));
  padding: .62rem .82rem;
  border-radius: 10px;
  color: #fff;
  font-size: .78rem;
  line-height: 1.7;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 8px);
  box-shadow: 0 12px 30px rgba(15, 23, 42, .22);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  pointer-events: none;
}
.active-error-floating-tooltip.is-success { background: #198754; }
.active-error-floating-tooltip.is-error { background: #b91c1c; }
.active-error-floating-tooltip.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
@media (max-width: 575.98px) {
  .active-error-post-icon { width: 46px; height: 46px; flex-basis: 46px; }
  .active-error-actions .btn { flex: 1 1 130px; }
  .active-error-action-status { flex-basis: 100%; }
}


/* ===== Live automatic Cron monitor ===== */
.dashboard-live-cron-panel,
.live-cron-hero,
.live-cron-toolbar,
.live-cron-stat,
.live-cron-empty,
.live-cron-card {
  border: 1px solid #e2e8f0;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .07);
}
.dashboard-live-cron-panel { padding: 1.15rem; border-radius: 16px; }
.dashboard-live-cron-button {
  min-height: 92px;
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: 1rem;
  border: 1px solid #dbe5f1;
  border-radius: 14px;
  color: #1e293b;
  text-decoration: none;
  background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.dashboard-live-cron-button:hover { color: #0f172a; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(15,23,42,.11); }
.dashboard-live-cron-button.is-scan:hover { border-color: #0d6efd; }
.dashboard-live-cron-button.is-upload:hover { border-color: #7c3aed; }
.dashboard-live-cron-button > span:nth-child(2) { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.dashboard-live-cron-button small { color: #64748b; font-size: .74rem; margin-top: .2rem; }
.dashboard-live-cron-button b { min-width: 38px; height: 38px; display: grid; place-items: center; border-radius: 999px; background: #0d6efd; color: #fff; }
.dashboard-live-cron-button.is-upload b { background: #7c3aed; }
.dashboard-live-cron-icon { width: 46px; height: 46px; display: grid; place-items: center; flex: 0 0 46px; border-radius: 13px; background: #eff6ff; color: #0d6efd; font-size: 1.15rem; }
.dashboard-live-cron-button.is-upload .dashboard-live-cron-icon { background: #f5f3ff; color: #7c3aed; }
.live-cron-hero { padding: 1.3rem; border-radius: 18px; background: linear-gradient(135deg, #fff 0%, #f8fbff 100%); }
.live-cron-hero-icon { width: 58px; height: 58px; display: grid; place-items: center; flex: 0 0 58px; border-radius: 17px; background: linear-gradient(135deg, #0d6efd, #4f46e5); color: #fff; font-size: 1.4rem; box-shadow: 0 10px 24px rgba(13,110,253,.25); }
.live-cron-connection { display: inline-flex; align-items: center; gap: .55rem; padding: .55rem .8rem; border-radius: 999px; background: #f1f5f9; color: #475569; font-size: .8rem; font-weight: 700; }
.live-cron-pulse { width: 10px; height: 10px; border-radius: 999px; background: #94a3b8; }
.live-cron-connection.is-connected { background: #ecfdf5; color: #047857; }
.live-cron-connection.is-connected .live-cron-pulse { background: #10b981; animation: live-cron-pulse 1.5s infinite; }
.live-cron-connection.is-error { background: #fff1f2; color: #b91c1c; }
.live-cron-connection.is-error .live-cron-pulse { background: #ef4444; }
@keyframes live-cron-pulse { 0%{box-shadow:0 0 0 0 rgba(16,185,129,.45)} 70%{box-shadow:0 0 0 8px rgba(16,185,129,0)} 100%{box-shadow:0 0 0 0 rgba(16,185,129,0)} }
.live-cron-toolbar { padding: 1rem; border-radius: 15px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.live-cron-detail-switch { padding: .55rem .8rem .55rem 2.9rem; border: 1px solid #dbe5f1; border-radius: 10px; background: #f8fafc; }
.live-cron-stat { padding: 1rem 1.1rem; border-radius: 14px; display: flex; align-items: center; justify-content: space-between; }
.live-cron-stat span { color: #64748b; font-size: .82rem; }
.live-cron-stat strong { font-size: 1.55rem; color: #0d6efd; }
.live-cron-empty { padding: 3.2rem 1rem; border-radius: 18px; text-align: center; color: #64748b; }
.live-cron-empty[hidden], .live-cron-jobs[hidden] { display: none !important; }
.live-cron-empty i { font-size: 3rem; color: #94a3b8; margin-bottom: 1rem; }
.live-cron-jobs { display: grid; gap: 1.25rem; }
.live-cron-card { --live-accent:#0d6efd; --live-soft:#eff6ff; overflow: hidden; border-radius: 18px; border-top: 4px solid var(--live-accent); }
.live-cron-card.tone-1 { --live-accent:#0d6efd; --live-soft:#eff6ff; }
.live-cron-card.tone-2 { --live-accent:#7c3aed; --live-soft:#f5f3ff; }
.live-cron-card.tone-3 { --live-accent:#0891b2; --live-soft:#ecfeff; }
.live-cron-card.tone-4 { --live-accent:#d97706; --live-soft:#fffbeb; }
.live-cron-card.tone-5 { --live-accent:#059669; --live-soft:#ecfdf5; }
.live-cron-card.tone-6 { --live-accent:#db2777; --live-soft:#fdf2f8; }
.live-cron-card.is-terminal { opacity: .9; border-top-style: dashed; }
.live-cron-card-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding: 1rem 1.15rem; background: linear-gradient(135deg, var(--live-soft), #fff 70%); border-bottom: 1px solid #e2e8f0; }
.live-cron-post { display: flex; align-items: center; gap: .8rem; min-width: 0; color: #1e293b; text-decoration: none; }
.live-cron-post:hover { color: var(--live-accent); }
.live-cron-post img { width: 58px; height: 58px; flex: 0 0 58px; border-radius: 15px; object-fit: cover; border: 2px solid #fff; box-shadow: 0 7px 18px rgba(15,23,42,.14); }
.live-cron-post > span { display: flex; flex-direction: column; min-width: 0; }
.live-cron-post strong, .live-cron-post small { max-width: min(520px, 62vw); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-cron-post strong { font-size: 1rem; }
.live-cron-post small { color: #64748b; font-size: .78rem; text-align: right; }
.live-cron-card-status { display: flex; align-items: center; gap: .65rem; }
.live-cron-job-number { color: #64748b; font-size: .75rem; direction: rtl; }
.live-cron-card-overview { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .75rem; padding: 1rem 1.15rem; }
.live-cron-card-overview > div { padding: .75rem; border: 1px solid #e2e8f0; border-radius: 11px; background: #f8fafc; }
.live-cron-card-overview span { display: block; color: #64748b; font-size: .7rem; margin-bottom: .2rem; }
.live-cron-card-overview strong { font-size: .83rem; color: #334155; }
.live-cron-current-message { margin: 0 1.15rem 1rem; padding: .8rem 1rem; border-right: 4px solid var(--live-accent); border-radius: 10px; background: var(--live-soft); color: #334155; font-size: .84rem; }
.live-cron-current-message code { margin-right: .45rem; }
.live-cron-timeline-wrap { padding: 0 1.15rem 1.15rem; }
.live-cron-timeline-title { font-weight: 800; color: #334155; margin-bottom: .8rem; }
.live-cron-timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.live-cron-timeline::before { content:''; position:absolute; top:7px; bottom:7px; right:14px; width:2px; background:#e2e8f0; }
.live-cron-log { position: relative; display: flex; gap: .8rem; padding: 0 0 .9rem; }
.live-cron-log:last-child { padding-bottom: 0; }
.live-cron-log-icon { width: 30px; height: 30px; display:grid; place-items:center; flex:0 0 30px; z-index:1; border-radius:999px; background:#fff; border:2px solid #cbd5e1; color:#64748b; }
.live-cron-log.is-success .live-cron-log-icon { border-color:#10b981; color:#059669; }
.live-cron-log.is-warn .live-cron-log-icon { border-color:#f59e0b; color:#d97706; }
.live-cron-log.is-error .live-cron-log-icon { border-color:#ef4444; color:#dc2626; }
.live-cron-log-body { flex: 1; min-width: 0; padding: .7rem .8rem; border:1px solid #e2e8f0; border-radius:11px; background:#fff; }
.live-cron-log-body strong { font-size:.82rem; }
.live-cron-log-body time { color:#94a3b8; font-size:.68rem; }
.live-cron-log-body p { margin:.3rem 0 0; color:#475569; font-size:.78rem; line-height:1.7; }
.live-cron-log-meta, .live-cron-result { margin-top:.6rem; }
.live-cron-log-meta > strong, .live-cron-result summary { color:#475569; font-size:.75rem; font-weight:700; }
.live-cron-log-meta pre, .live-cron-result pre { margin:.55rem 0 0; padding:.75rem; max-height:360px; overflow:auto; border-radius:9px; background:#0f172a; color:#e2e8f0; direction:ltr; text-align:left; font-size:.7rem; white-space:pre-wrap; }
.live-cron-result { margin:0 1.15rem 1.15rem; padding:.8rem; border:1px dashed #cbd5e1; border-radius:10px; }
.live-cron-no-log { padding:1rem; border:1px dashed #cbd5e1; border-radius:10px; color:#64748b; text-align:center; font-size:.8rem; }
@media (max-width: 767.98px) {
  .live-cron-toolbar { align-items: stretch; }
  .live-cron-card-overview { grid-template-columns:1fr; }
  .live-cron-post strong, .live-cron-post small { max-width: 58vw; }
  .live-cron-hero-icon { width:50px; height:50px; flex-basis:50px; }
}
@media (prefers-reduced-motion: reduce) { .live-cron-connection.is-connected .live-cron-pulse { animation:none; } }

/* ===== Live Cron retention setting ===== */
.live-cron-retention {
  position: relative;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  align-items: center;
  gap: .85rem 1.25rem;
  padding: 1rem 1.1rem;
  border: 1px solid #dbe5f1;
  border-radius: 15px;
  background: linear-gradient(135deg, #f8fbff 0%, #fff 55%, #f5f3ff 100%);
  box-shadow: 0 9px 24px rgba(15, 23, 42, .06);
}
.live-cron-retention-copy { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.live-cron-retention-copy > div { display: flex; flex-direction: column; min-width: 0; }
.live-cron-retention-copy strong { color: #1e293b; font-size: .9rem; }
.live-cron-retention-copy small { color: #64748b; font-size: .73rem; margin-top: .18rem; }
.live-cron-retention-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  border-radius: 12px;
  color: #4f46e5;
  background: #eef2ff;
}
.live-cron-retention-form { position: relative; display: flex; align-items: center; gap: .55rem; }
.live-cron-retention-form .input-group { width: 150px; direction: ltr; }
.live-cron-retention-form input { text-align: center; }
.live-cron-retention-help { grid-column: 1 / -1; color: #64748b; font-size: .72rem; border-top: 1px dashed #dbe5f1; padding-top: .65rem; }
.live-cron-save-tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  z-index: 1080;
  min-width: 220px;
  max-width: min(360px, 86vw);
  padding: .55rem .75rem;
  border-radius: 9px;
  color: #fff;
  text-align: center;
  font-size: .74rem;
  line-height: 1.7;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 7px);
  pointer-events: none;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .2);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}
.live-cron-save-tooltip.is-success { background: #047857; }
.live-cron-save-tooltip.is-error { background: #b91c1c; }
.live-cron-save-tooltip.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
@media (max-width: 767.98px) {
  .live-cron-retention { grid-template-columns: 1fr; }
  .live-cron-retention-form { flex-wrap: wrap; }
  .live-cron-retention-help { grid-column: auto; }
}

/* ===== Webhook customer management ===== */
.webhook-admin-page,
.webhook-logs-page { --wh-ink:#1e293b; --wh-muted:#64748b; --wh-border:#dbe4ef; }
.webhook-hero,
.webhook-logs-hero {
  display:flex; align-items:center; justify-content:space-between; gap:1rem; flex-wrap:wrap;
  padding:1.25rem 1.35rem; border:1px solid var(--wh-border); border-radius:18px;
  background:linear-gradient(135deg,#f8fbff 0%,#fff 48%,#f7f5ff 100%);
  box-shadow:0 13px 32px rgba(15,23,42,.08);
}
.webhook-hero-main,
.webhook-logs-hero > div:first-child { display:flex; align-items:center; gap:1rem; min-width:0; }
.webhook-hero h3,
.webhook-logs-hero h3 { color:var(--wh-ink); font-weight:850; }
.webhook-hero p,
.webhook-logs-hero p { color:var(--wh-muted); font-size:.83rem; line-height:1.8; }
.webhook-hero-icon,
.webhook-logs-hero-icon {
  width:58px; height:58px; flex:0 0 58px; display:grid; place-items:center; border-radius:17px;
  color:#fff; font-size:1.35rem; background:linear-gradient(135deg,#2563eb,#7c3aed);
  box-shadow:0 11px 25px rgba(79,70,229,.25);
}
.webhook-hero-actions { display:flex; gap:.55rem; flex-wrap:wrap; }
.webhook-test-guide { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.85rem; }
.webhook-test-guide article {
  display:flex; align-items:flex-start; gap:.75rem; padding:1rem; border:1px solid var(--wh-border); border-radius:14px;
  background:#fff; box-shadow:0 8px 22px rgba(15,23,42,.05);
}
.webhook-test-guide article > span {
  width:32px; height:32px; flex:0 0 32px; display:grid; place-items:center; border-radius:10px;
  background:#eef2ff; color:#4f46e5; font-weight:900;
}
.webhook-test-guide article div { display:flex; flex-direction:column; gap:.25rem; }
.webhook-test-guide strong { color:var(--wh-ink); font-size:.88rem; }
.webhook-test-guide small { color:var(--wh-muted); line-height:1.75; font-size:.74rem; }
.webhook-editor-card { border:1px solid var(--wh-border); border-radius:17px; overflow:hidden; box-shadow:0 11px 28px rgba(15,23,42,.06); }
.webhook-editor-card .card-header { padding:.9rem 1.1rem; background:linear-gradient(90deg,#eef6ff,#faf8ff); border-bottom:1px solid var(--wh-border); }
.webhook-editor-card .card-body { padding:1.2rem; }
.webhook-editor-heading { display:flex; align-items:center; gap:.7rem; }
.webhook-editor-heading-icon { width:36px; height:36px; display:grid; place-items:center; border-radius:11px; background:#fff; color:#4f46e5; border:1px solid #dbe4ef; box-shadow:0 5px 13px rgba(15,23,42,.07); }
.webhook-editor-heading > div { display:flex; flex-direction:column; gap:.12rem; }
.webhook-editor-heading strong { color:#263449; }
.webhook-editor-heading small { color:#64748b; font-size:.7rem; }
.webhook-editing-badge { display:inline-flex; align-items:center; gap:.35rem; padding:.38rem .65rem; border-radius:999px; color:#7c2d12; background:#ffedd5; border:1px solid #fdba74; font-size:.72rem; font-weight:850; }
.webhook-editing-badge[hidden], .webhook-edit-mode-banner[hidden], #whCancelEdit[hidden] { display:none !important; }
.webhook-editor-card.is-editing { border-color:#f59e0b; box-shadow:0 0 0 3px rgba(245,158,11,.12),0 15px 34px rgba(120,53,15,.12); }
.webhook-editor-card.is-editing .card-header { background:linear-gradient(90deg,#fff7ed,#fffbeb); border-bottom-color:#fdba74; }
.webhook-editor-card.is-editing .webhook-editor-heading-icon { color:#b45309; border-color:#fdba74; background:#fff7ed; }
.webhook-edit-mode-banner { display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:.8rem; margin:0 0 1rem; padding:.85rem 1rem; border:1px solid #fbbf24; border-radius:14px; background:linear-gradient(135deg,#fffbeb,#fff7ed); color:#78350f; box-shadow:0 8px 20px rgba(146,64,14,.08); }
.webhook-edit-mode-banner-icon { width:42px; height:42px; display:grid; place-items:center; border-radius:12px; background:#fff; color:#b45309; border:1px solid #fed7aa; font-size:1.05rem; }
.webhook-edit-mode-banner strong { display:block; font-size:.88rem; }
.webhook-edit-mode-banner p { margin-top:.18rem; color:#92400e; font-size:.72rem; line-height:1.7; }
.webhook-edit-mode-identity { display:flex; flex-direction:column; align-items:flex-end; gap:.12rem; min-width:170px; padding:.5rem .65rem; border-radius:10px; background:rgba(255,255,255,.72); border:1px solid #fed7aa; }
.webhook-edit-mode-identity span { font-weight:900; color:#7c2d12; }
.webhook-edit-mode-identity small { color:#9a3412; font-size:.68rem; }
.webhook-kind-picker { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:.55rem; }
.webhook-kind-picker label {
  position:relative; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:.12rem;
  min-height:66px; padding:.55rem; border:1px solid #d9e3ef; border-radius:12px; background:#f8fafc; cursor:pointer;
  transition:border-color .15s ease,box-shadow .15s ease,transform .15s ease;
}
.webhook-kind-picker label:hover { border-color:#818cf8; transform:translateY(-1px); box-shadow:0 7px 16px rgba(79,70,229,.1); }
.webhook-kind-picker input { position:absolute; top:.45rem; right:.5rem; }
.webhook-kind-picker span { font-weight:800; color:#334155; font-size:.82rem; }
.webhook-kind-picker small { color:#64748b; font-size:.65rem; }
.webhook-form-actions { padding-top:.8rem; border-top:1px dashed #dbe4ef; }
.webhook-targets-wrap,
.webhook-logs-table-wrap { border:1px solid var(--wh-border); border-radius:17px; overflow:hidden; box-shadow:0 12px 30px rgba(15,23,42,.07); background:#fff; }
.appup-webhook-targets-table thead th,
.webhook-logs-table thead th { padding:.85rem .75rem; background:#eef3f9; color:#334155; border-bottom:1px solid #d8e2ed; font-size:.77rem; white-space:nowrap; }
.appup-webhook-targets-table td { padding:.85rem .75rem; border-color:rgba(148,163,184,.2); }
.appup-webhook-targets-table tr.tone-a > td { background:#f7fbff; }
.appup-webhook-targets-table tr.tone-b > td { background:#f7f5ff; }
.appup-webhook-targets-table tr.webhook-target-main > td { border-top:2px solid #c9d8e8; }
.appup-webhook-targets-table tr.webhook-target-main.tone-a > td:first-child { border-right:5px solid #3b82f6; }
.appup-webhook-targets-table tr.webhook-target-main.tone-b > td:first-child { border-right:5px solid #8b5cf6; }
.appup-webhook-targets-table tr.webhook-target-main.is-being-edited > td { background:#fff7ed !important; border-top-color:#f59e0b; border-bottom:1px solid #fdba74; }
.appup-webhook-targets-table tr.webhook-target-main.is-being-edited > td:first-child { border-right-color:#f59e0b; box-shadow:inset -4px 0 0 #f59e0b; }
.appup-webhook-targets-table tr.webhook-target-test.is-last > td { border-bottom:3px solid #cbd8e6; }
.webhook-customer-name { display:flex; align-items:center; gap:.65rem; min-width:170px; }
.webhook-customer-name > span { width:38px; height:38px; flex:0 0 38px; display:grid; place-items:center; border-radius:11px; background:#fff; color:#4f46e5; border:1px solid #dbe4ef; box-shadow:0 5px 13px rgba(15,23,42,.08); }
.webhook-customer-name > div { display:flex; flex-direction:column; min-width:0; }
.webhook-customer-name strong { color:#1e293b; }
.webhook-customer-name small { color:#64748b; font-size:.68rem; }
.webhook-url-cell { max-width:310px; }
.webhook-url-cell a { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:.75rem; }
.webhook-kind-badges { display:flex; gap:.3rem; flex-wrap:wrap; }
.webhook-kind-badges span { padding:.25rem .45rem; border-radius:999px; background:#fff; border:1px solid #d7e2ed; color:#475569; font-size:.67rem; }
.webhook-test-panel {
  display:grid; grid-template-columns:auto minmax(220px,1fr) auto; align-items:center; gap:.8rem 1rem;
  margin:.25rem 0; padding:.85rem 1rem; border:1px solid rgba(148,163,184,.28); border-radius:13px;
  background:rgba(255,255,255,.76); box-shadow:inset 0 1px 0 rgba(255,255,255,.9);
}
.webhook-test-panel.is-mapping { grid-template-columns:auto minmax(220px,.72fr) minmax(480px,1.35fr); }
.webhook-test-panel.is-update { grid-template-columns:auto minmax(260px,1fr) minmax(360px,.8fr); }
.webhook-test-number { width:34px; height:34px; display:grid; place-items:center; border-radius:11px; background:#e0e7ff; color:#4338ca; font-weight:900; }
.webhook-test-panel.is-connection .webhook-test-number { background:#dcfce7; color:#15803d; }
.webhook-test-panel.is-update .webhook-test-number { background:#dbeafe; color:#1d4ed8; }
.webhook-test-copy { display:flex; flex-direction:column; gap:.2rem; min-width:0; }
.webhook-test-copy strong { color:#27364b; font-size:.84rem; }
.webhook-test-copy small { color:#64748b; font-size:.71rem; line-height:1.75; }
.webhook-map-grid { display:grid; grid-template-columns:100px minmax(115px,1fr) 32px 100px minmax(115px,1fr) auto auto; gap:.45rem; align-items:center; }
.webhook-update-grid { display:grid; grid-template-columns:105px minmax(140px,1fr) minmax(135px,.8fr) minmax(240px,1.05fr); gap:.55rem; align-items:center; }
.webhook-update-action { grid-column:1/-1; justify-self:end; min-width:300px; min-height:38px; display:inline-flex; align-items:center; justify-content:center; gap:.35rem; white-space:normal; line-height:1.45; }
.webhook-map-arrow { text-align:center; color:#7c3aed; font-weight:900; font-size:1rem; }
.webhook-test-feedback { grid-column:1/-1; }

.webhook-wp-display-switch { display:flex; align-items:center; justify-content:center; gap:.35rem; min-height:31px; padding:.22rem .35rem; border:1px solid #cbd5e1; border-radius:9px; background:#f8fafc; white-space:nowrap; }
.webhook-wp-display-switch > span { color:#64748b; font-size:.67rem; }
.webhook-wp-display-switch label { margin:0; cursor:pointer; }
.webhook-wp-display-switch input { position:absolute; opacity:0; pointer-events:none; }
.webhook-wp-display-switch b { display:block; padding:.25rem .48rem; border-radius:7px; color:#475569; font-size:.67rem; transition:all .15s ease; }
.webhook-wp-display-switch input:checked + b { color:#fff; background:#4f46e5; box-shadow:0 4px 10px rgba(79,70,229,.2); }
.webhook-mapping-result-card { display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); align-items:stretch; gap:.65rem; margin-top:.7rem; padding:.7rem; border:1px solid #cbd5e1; border-radius:13px; background:rgba(255,255,255,.68); }
.webhook-mapping-result-card.is-verified { border-color:#86efac; background:linear-gradient(135deg,rgba(240,253,244,.92),rgba(239,246,255,.9)); }
.webhook-mapping-result-card.is-unverified { border-color:#fca5a5; background:linear-gradient(135deg,rgba(254,242,242,.95),rgba(255,247,237,.9)); }
.webhook-mapping-side { display:flex; flex-direction:column; gap:.16rem; min-width:0; padding:.65rem .7rem; border-radius:10px; background:rgba(255,255,255,.82); border:1px solid rgba(148,163,184,.24); }
.webhook-mapping-side strong { color:#334155; font-size:.72rem; }
.webhook-mapping-side > span { color:#0f172a; font-size:.86rem; font-weight:900; overflow-wrap:anywhere; }
.webhook-mapping-side small { color:#64748b; font-size:.65rem; direction:ltr; text-align:left; overflow-wrap:anywhere; }
.webhook-mapping-connector { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:.25rem; min-width:92px; color:#15803d; }
.webhook-mapping-result-card.is-unverified .webhook-mapping-connector { color:#b91c1c; }
.webhook-mapping-connector i { font-size:1.15rem; }
.webhook-mapping-connector b { font-size:.66rem; text-align:center; }

.webhook-test-alert { margin:.35rem 0 0; padding:.75rem .85rem; border-radius:12px; line-height:1.7; }
.webhook-test-alert-header { display:flex; align-items:center; gap:.55rem; margin-bottom:.35rem; }
.webhook-test-alert-header .btn-close { margin-right:auto; font-size:.7rem; }
.webhook-test-alert-icon { width:25px; height:25px; display:grid; place-items:center; border-radius:999px; background:rgba(255,255,255,.65); font-weight:900; }
.webhook-test-alert-message { font-size:.78rem; }
.webhook-test-alert-suggestion { margin-top:.3rem; font-size:.75rem; }
.webhook-test-alert-suggestion strong { font-weight:850; }
.webhook-test-alert-meta { display:flex; gap:.4rem; flex-wrap:wrap; margin-top:.55rem; }
.webhook-test-alert-meta span { padding:.25rem .5rem; border:1px solid rgba(100,116,139,.25); border-radius:999px; background:rgba(255,255,255,.58); font-size:.66rem; }
.webhook-test-alert-details { display:grid; gap:.35rem; margin-top:.65rem; padding:.6rem .7rem; border:1px solid rgba(100,116,139,.2); border-radius:10px; background:rgba(255,255,255,.46); }
.webhook-test-alert-detail-row { display:grid; grid-template-columns:minmax(110px,auto) 1fr; gap:.45rem; align-items:start; font-size:.73rem; }
.webhook-test-alert-detail-row strong { white-space:nowrap; font-weight:850; }
.webhook-test-alert-detail-row span { overflow-wrap:anywhere; }
@media (max-width:640px) { .webhook-test-alert-detail-row { grid-template-columns:1fr; gap:.05rem; } }
.webhook-empty { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:.5rem; min-height:170px; color:#64748b; text-align:center; }
.webhook-empty i { font-size:2.4rem; color:#94a3b8; }
.webhook-empty strong { color:#475569; }
.webhook-empty small { font-size:.75rem; }

.webhook-secret-modal[hidden] { display:none !important; }
.webhook-secret-modal { position:fixed; inset:0; z-index:1095; display:grid; place-items:center; padding:1rem; }
.webhook-secret-modal-backdrop { position:absolute; inset:0; background:rgba(15,23,42,.58); backdrop-filter:blur(3px); }
.webhook-secret-modal-dialog { position:relative; width:min(620px,100%); border:1px solid #cbd5e1; border-radius:18px; background:#fff; box-shadow:0 24px 70px rgba(15,23,42,.3); padding:1.15rem; direction:rtl; }
.webhook-secret-modal-close { position:absolute; top:.7rem; left:.7rem; width:34px; height:34px; border:0; border-radius:9px; background:#f1f5f9; color:#475569; }
.webhook-secret-modal-head { display:flex; align-items:flex-start; gap:.8rem; padding-left:2.5rem; margin-bottom:1rem; }
.webhook-secret-modal-head > span { width:42px; height:42px; flex:0 0 42px; display:grid; place-items:center; border-radius:12px; background:#ede9fe; color:#6d28d9; }
.webhook-secret-modal-head h4 { margin:0 0 .25rem; font-size:1rem; color:#1e293b; }
.webhook-secret-modal-head p { margin:0; color:#64748b; font-size:.75rem; line-height:1.8; }
.webhook-secret-target { display:flex; align-items:center; justify-content:space-between; gap:.7rem; margin-bottom:.8rem; padding:.55rem .7rem; border-radius:10px; background:#f8fafc; border:1px solid #e2e8f0; }
.webhook-secret-target span { color:#64748b; font-size:.72rem; }
.webhook-secret-target strong { color:#1e293b; font-size:.82rem; }
.webhook-secret-reveal-status { min-height:1.4rem; margin-top:.55rem; color:#64748b; font-size:.72rem; }
.webhook-secret-reveal-status.is-error { color:#b91c1c; }
.webhook-secret-reveal-status.is-success { color:#15803d; }
.webhook-secret-reveal-value { margin-top:.8rem; padding:.8rem; border:1px solid #86efac; border-radius:12px; background:#f0fdf4; }
.webhook-secret-reveal-value > div:first-child { display:flex; justify-content:space-between; gap:.5rem; color:#166534; }
.webhook-secret-reveal-value > div:first-child span { font-weight:850; }
.webhook-secret-reveal-value > div:first-child small { font-size:.66rem; color:#4b7d5a; }
.webhook-secret-reveal-value code { display:block; margin:.7rem 0; padding:.7rem; border:1px solid #bbf7d0; border-radius:9px; background:#fff; color:#0f172a; overflow-wrap:anywhere; user-select:all; text-align:left; direction:ltr; }
.webhook-secret-reveal-actions { display:flex; align-items:center; gap:.45rem; flex-wrap:wrap; }
.webhook-secret-reveal-actions > span { margin-right:auto; color:#166534; font-size:.7rem; font-weight:800; }

/* ===== Human-readable webhook logs ===== */
.webhook-logs-hero-icon { background:linear-gradient(135deg,#0f766e,#2563eb); }
.webhook-log-stats { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.75rem; }
.webhook-log-stats > div { display:flex; align-items:center; justify-content:space-between; gap:.7rem; padding:.85rem 1rem; border:1px solid var(--wh-border); border-radius:13px; background:#fff; box-shadow:0 7px 19px rgba(15,23,42,.05); }
.webhook-log-stats span { color:#64748b; font-size:.75rem; }
.webhook-log-stats strong { color:#1d4ed8; font-size:1.1rem; }
.webhook-log-stats a { font-size:.76rem; font-weight:750; }
.webhook-log-tools { border:1px solid var(--wh-border); border-radius:15px; overflow:hidden; }
.webhook-log-tools .card-header { background:#f1f5f9; font-weight:800; }
.webhook-cleanup-box { display:flex; align-items:center; gap:.65rem; flex-wrap:wrap; padding:.8rem; border:1px dashed #cbd5e1; border-radius:12px; background:#f8fafc; }
.webhook-cleanup-box > div { display:flex; flex-direction:column; min-width:230px; }
.webhook-cleanup-box strong { font-size:.8rem; }
.webhook-cleanup-box small { color:#64748b; font-size:.68rem; }
.webhook-cleanup-box input { max-width:170px; }
.webhook-logs-table td { padding:.85rem; border-color:rgba(148,163,184,.22); vertical-align:middle; }
.webhook-logs-table tbody tr.tone-a td { background:#f8fbff; }
.webhook-logs-table tbody tr.tone-b td { background:#faf7ff; }
.webhook-logs-table tbody tr.is-error td:first-child { border-right:5px solid #ef4444; }
.webhook-logs-table tbody tr.is-success td:first-child { border-right:5px solid #10b981; }
.webhook-log-post { display:flex; align-items:center; gap:.65rem; min-width:230px; color:#1e293b; text-decoration:none; }
.webhook-log-post:hover { color:#4f46e5; }
.webhook-log-post img { width:48px; height:48px; flex:0 0 48px; border-radius:12px; object-fit:cover; border:1px solid #d8e2ed; background:#fff; }
.webhook-log-post span { display:flex; flex-direction:column; min-width:0; }
.webhook-log-post strong,.webhook-log-post small { max-width:245px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.webhook-log-post strong { font-size:.82rem; }
.webhook-log-post small { color:#64748b; font-size:.68rem; text-align:right; }
.webhook-log-target { display:flex; flex-direction:column; gap:.18rem; min-width:150px; }
.webhook-log-target strong { font-size:.8rem; color:#334155; }
.webhook-log-target small { font-size:.65rem; color:#64748b; }
.webhook-log-human { min-width:320px; padding:.7rem .8rem; border-radius:11px; border:1px solid #dbe4ef; background:rgba(255,255,255,.78); }
.webhook-log-human.is-error { border-right:4px solid #ef4444; }
.webhook-log-human.is-success { border-right:4px solid #10b981; }
.webhook-log-human > strong { display:block; color:#263449; font-size:.82rem; }
.webhook-log-human > p { margin:.28rem 0 0; color:#475569; font-size:.74rem; line-height:1.75; }
.webhook-log-suggestion { display:flex; align-items:flex-start; gap:.35rem; margin-top:.45rem; padding:.45rem .55rem; border-radius:8px; background:#fff7ed; color:#9a3412; font-size:.7rem; }
.webhook-technical-pre { min-height:100px; max-height:420px; overflow:auto; padding:1rem; border-radius:11px; background:#0f172a; color:#e2e8f0; direction:ltr; text-align:left; white-space:pre-wrap; font-size:.72rem; }
.webhook-recent-errors-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.8rem; }
.webhook-recent-errors-grid article { padding:.85rem; border:1px solid #f1c7cd; border-radius:12px; background:linear-gradient(135deg,#fff7f8,#fff); }
.webhook-recent-errors-grid article strong { color:#7f1d1d; font-size:.8rem; }
.webhook-recent-errors-grid article p { margin:.45rem 0; color:#475569; font-size:.72rem; line-height:1.75; }
.webhook-recent-errors-grid article small { display:block; padding:.45rem .55rem; border-radius:8px; background:#fff7ed; color:#9a3412; font-size:.68rem; }

@media (max-width:1199.98px) {
  .webhook-test-panel.is-mapping,.webhook-test-panel.is-update { grid-template-columns:auto 1fr; }
  .webhook-map-grid,.webhook-update-grid,.webhook-test-feedback { grid-column:1/-1; }
  .webhook-update-grid { grid-template-columns:105px minmax(140px,1fr) minmax(130px,1fr); }
  .webhook-update-grid .webhook-wp-display-switch,.webhook-update-grid .js-test-post { grid-column:auto / span 1; }

.webhook-wp-display-switch { display:flex; align-items:center; justify-content:center; gap:.35rem; min-height:31px; padding:.22rem .35rem; border:1px solid #cbd5e1; border-radius:9px; background:#f8fafc; white-space:nowrap; }
.webhook-wp-display-switch > span { color:#64748b; font-size:.67rem; }
.webhook-wp-display-switch label { margin:0; cursor:pointer; }
.webhook-wp-display-switch input { position:absolute; opacity:0; pointer-events:none; }
.webhook-wp-display-switch b { display:block; padding:.25rem .48rem; border-radius:7px; color:#475569; font-size:.67rem; transition:all .15s ease; }
.webhook-wp-display-switch input:checked + b { color:#fff; background:#4f46e5; box-shadow:0 4px 10px rgba(79,70,229,.2); }
.webhook-mapping-result-card { display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); align-items:stretch; gap:.65rem; margin-top:.7rem; padding:.7rem; border:1px solid #cbd5e1; border-radius:13px; background:rgba(255,255,255,.68); }
.webhook-mapping-result-card.is-verified { border-color:#86efac; background:linear-gradient(135deg,rgba(240,253,244,.92),rgba(239,246,255,.9)); }
.webhook-mapping-result-card.is-unverified { border-color:#fca5a5; background:linear-gradient(135deg,rgba(254,242,242,.95),rgba(255,247,237,.9)); }
.webhook-mapping-side { display:flex; flex-direction:column; gap:.16rem; min-width:0; padding:.65rem .7rem; border-radius:10px; background:rgba(255,255,255,.82); border:1px solid rgba(148,163,184,.24); }
.webhook-mapping-side strong { color:#334155; font-size:.72rem; }
.webhook-mapping-side > span { color:#0f172a; font-size:.86rem; font-weight:900; overflow-wrap:anywhere; }
.webhook-mapping-side small { color:#64748b; font-size:.65rem; direction:ltr; text-align:left; overflow-wrap:anywhere; }
.webhook-mapping-connector { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:.25rem; min-width:92px; color:#15803d; }
.webhook-mapping-result-card.is-unverified .webhook-mapping-connector { color:#b91c1c; }
.webhook-mapping-connector i { font-size:1.15rem; }
.webhook-mapping-connector b { font-size:.66rem; text-align:center; }

}
@media (max-width:991.98px) {
  .webhook-test-guide { grid-template-columns:1fr; }
  .webhook-kind-picker { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .webhook-log-stats { grid-template-columns:1fr; }
  .webhook-recent-errors-grid { grid-template-columns:1fr; }
}
@media (max-width:767.98px) {
  .webhook-hero-main,.webhook-logs-hero > div:first-child { align-items:flex-start; }
  .webhook-hero-actions,.webhook-logs-hero .d-flex { width:100%; }
  .webhook-hero-actions .btn,.webhook-logs-hero .btn { flex:1 1 145px; }
  .webhook-test-panel,.webhook-test-panel.is-mapping,.webhook-test-panel.is-update { grid-template-columns:auto 1fr; }
  .webhook-test-panel > button,.webhook-map-grid,.webhook-update-grid,.webhook-test-feedback { grid-column:1/-1; }

.webhook-wp-display-switch { display:flex; align-items:center; justify-content:center; gap:.35rem; min-height:31px; padding:.22rem .35rem; border:1px solid #cbd5e1; border-radius:9px; background:#f8fafc; white-space:nowrap; }
.webhook-wp-display-switch > span { color:#64748b; font-size:.67rem; }
.webhook-wp-display-switch label { margin:0; cursor:pointer; }
.webhook-wp-display-switch input { position:absolute; opacity:0; pointer-events:none; }
.webhook-wp-display-switch b { display:block; padding:.25rem .48rem; border-radius:7px; color:#475569; font-size:.67rem; transition:all .15s ease; }
.webhook-wp-display-switch input:checked + b { color:#fff; background:#4f46e5; box-shadow:0 4px 10px rgba(79,70,229,.2); }
.webhook-mapping-result-card { display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); align-items:stretch; gap:.65rem; margin-top:.7rem; padding:.7rem; border:1px solid #cbd5e1; border-radius:13px; background:rgba(255,255,255,.68); }
.webhook-mapping-result-card.is-verified { border-color:#86efac; background:linear-gradient(135deg,rgba(240,253,244,.92),rgba(239,246,255,.9)); }
.webhook-mapping-result-card.is-unverified { border-color:#fca5a5; background:linear-gradient(135deg,rgba(254,242,242,.95),rgba(255,247,237,.9)); }
.webhook-mapping-side { display:flex; flex-direction:column; gap:.16rem; min-width:0; padding:.65rem .7rem; border-radius:10px; background:rgba(255,255,255,.82); border:1px solid rgba(148,163,184,.24); }
.webhook-mapping-side strong { color:#334155; font-size:.72rem; }
.webhook-mapping-side > span { color:#0f172a; font-size:.86rem; font-weight:900; overflow-wrap:anywhere; }
.webhook-mapping-side small { color:#64748b; font-size:.65rem; direction:ltr; text-align:left; overflow-wrap:anywhere; }
.webhook-mapping-connector { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:.25rem; min-width:92px; color:#15803d; }
.webhook-mapping-result-card.is-unverified .webhook-mapping-connector { color:#b91c1c; }
.webhook-mapping-connector i { font-size:1.15rem; }
.webhook-mapping-connector b { font-size:.66rem; text-align:center; }

  .webhook-map-grid { grid-template-columns:1fr 1fr; }
  .webhook-map-arrow { display:none; }
  .webhook-map-grid button { width:100%; }
  .webhook-update-grid { grid-template-columns:1fr; }
  .webhook-update-action { grid-column:1; justify-self:stretch; width:100%; min-width:0; }
  .webhook-edit-mode-banner { grid-template-columns:auto 1fr; }
  .webhook-edit-mode-identity { grid-column:1/-1; align-items:flex-start; min-width:0; }
  .webhook-mapping-result-card { grid-template-columns:1fr; }
  .webhook-mapping-connector { min-height:52px; }
  .webhook-wp-display-switch { justify-content:flex-start; flex-wrap:wrap; }
  .webhook-logs-table .webhook-log-human { min-width:0; }
}

/* ===== Post & site update statistics ===== */
.statistics-page{--stats-border:#dbe4f0;--stats-text:#0f172a;--stats-muted:#64748b;max-width:1760px;margin:0 auto}.statistics-hero{display:flex;align-items:center;justify-content:space-between;gap:1.5rem;padding:1.45rem 1.6rem;border-radius:24px;color:#fff;background:radial-gradient(circle at top right,rgba(59,130,246,.48),transparent 34%),linear-gradient(135deg,#0f172a,#1e3a8a 55%,#0f766e);box-shadow:0 18px 46px rgba(15,23,42,.18)}.statistics-site-hero{background:radial-gradient(circle at top left,rgba(168,85,247,.38),transparent 36%),linear-gradient(135deg,#111827,#312e81 52%,#115e59)}.statistics-post-identity{display:flex;align-items:center;gap:1.1rem;min-width:0}.statistics-post-thumb{width:86px;height:86px;object-fit:cover;border-radius:22px;border:3px solid rgba(255,255,255,.7);box-shadow:0 10px 26px rgba(0,0,0,.22);background:#fff}.statistics-eyebrow{display:block;margin-bottom:.25rem;color:#bfdbfe;font-size:.76rem;font-weight:800;letter-spacing:.02em}.statistics-hero h1{margin:0;font-size:clamp(1.25rem,2.3vw,2rem);font-weight:950}.statistics-hero p{margin:.55rem 0 0;color:#dbeafe}.statistics-meta-row{display:flex;flex-wrap:wrap;gap:.5rem .85rem;margin-top:.6rem;font-size:.75rem;color:#dbeafe}.statistics-meta-row span{padding:.25rem .5rem;border:1px solid rgba(255,255,255,.2);border-radius:999px;background:rgba(255,255,255,.08)}.statistics-hero-actions{display:flex;flex-wrap:wrap;gap:.55rem}.statistics-range-panel{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.85rem 1rem;border:1px solid var(--stats-border);border-radius:18px;background:#fff;box-shadow:0 8px 24px rgba(15,23,42,.06)}.statistics-range-presets{display:flex;flex-wrap:wrap;gap:.38rem}.statistics-range-button{border:1px solid #cbd5e1;border-radius:10px;padding:.45rem .75rem;color:#334155;background:#f8fafc;font-size:.78rem;font-weight:800;transition:.16s}.statistics-range-button:hover{border-color:#818cf8;color:#3730a3}.statistics-range-button.is-active{border-color:#4f46e5;color:#fff;background:#4f46e5;box-shadow:0 7px 16px rgba(79,70,229,.22)}.statistics-range-status{display:flex;align-items:center;gap:.45rem;white-space:nowrap;color:#334155;font-weight:850}.statistics-custom-range{display:flex;align-items:end;gap:.55rem;padding:.65rem;border:1px dashed #a5b4fc;border-radius:12px;background:#eef2ff}.statistics-custom-range label{display:grid;gap:.2rem;color:#475569;font-size:.7rem;font-weight:800}.statistics-custom-range input{width:150px;direction:ltr;text-align:center}.statistics-card{position:relative;padding:1rem;border:1px solid var(--stats-border);border-radius:20px;background:#fff;box-shadow:0 10px 30px rgba(15,23,42,.06);overflow:hidden}.statistics-card:before{content:"";position:absolute;inset:0 0 auto 0;height:3px;background:linear-gradient(90deg,#4f46e5,#0ea5e9,#10b981)}.statistics-card-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;padding:.2rem .25rem .6rem}.statistics-card-heading span{color:#4f46e5;font-size:.68rem;font-weight:900}.statistics-card-heading h2{margin:.12rem 0 .18rem;color:var(--stats-text);font-size:1.05rem;font-weight:950}.statistics-card-heading p{margin:0;color:var(--stats-muted);font-size:.76rem}.statistics-type-filter{display:flex;align-items:center;flex-wrap:wrap;gap:.38rem;margin:.35rem 0 .9rem;padding:.55rem .65rem;border:1px solid #e2e8f0;border-radius:13px;background:#f8fafc}.statistics-filter-label{margin-left:.15rem;color:#475569;font-size:.7rem;font-weight:900}.statistics-kind-chip{position:relative;margin:0;cursor:pointer}.statistics-kind-chip input{position:absolute;opacity:0;pointer-events:none}.statistics-kind-chip span{display:block;padding:.32rem .58rem;border:1px solid #cbd5e1;border-radius:999px;color:#475569;background:#fff;font-size:.68rem;font-weight:850;transition:.15s}.statistics-kind-chip input:checked+span{border-color:#4f46e5;color:#fff;background:#4f46e5;box-shadow:0 5px 12px rgba(79,70,229,.17)}.statistics-kind-chip.is-all input:checked+span{border-color:#0f766e;background:#0f766e}.statistics-filter-state{margin-right:auto;color:#64748b;font-size:.66rem}.statistics-chart-body{min-height:110px}.statistics-chart-medium{min-height:330px}.statistics-chart-large{min-height:390px}.statistics-chart-xlarge{min-height:455px}.statistics-loading{display:flex;align-items:center;justify-content:center;gap:.35rem;min-height:150px;color:#64748b}.statistics-loading span{width:9px;height:9px;border-radius:50%;background:#6366f1;animation:statisticsPulse 1s infinite ease-in-out}.statistics-loading span:nth-child(2){animation-delay:.14s}.statistics-loading span:nth-child(3){animation-delay:.28s}.statistics-loading b{margin-right:.45rem;font-size:.78rem}@keyframes statisticsPulse{0%,80%,100%{transform:scale(.7);opacity:.45}40%{transform:scale(1.15);opacity:1}}.statistics-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.8rem}.statistics-summary-item{display:flex;align-items:center;gap:.75rem;min-height:112px;padding:.85rem;border:1px solid #e2e8f0;border-radius:16px;background:linear-gradient(145deg,#fff,#f8fafc)}.statistics-summary-icon{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;border-radius:13px;color:#fff;background:#475569}.statistics-summary-item small{display:block;color:#64748b;font-size:.67rem;font-weight:850}.statistics-summary-item strong{display:block;margin:.1rem 0;color:#0f172a;font-size:1.35rem;font-weight:950}.statistics-summary-item p{margin:0;color:#94a3b8;font-size:.62rem}.statistics-summary-item.is-success .statistics-summary-icon{background:#059669}.statistics-summary-item.is-primary .statistics-summary-icon{background:#2563eb}.statistics-summary-item.is-neutral .statistics-summary-icon{background:#64748b}.statistics-summary-item.is-info .statistics-summary-icon{background:#0891b2}.statistics-summary-item.is-purple .statistics-summary-icon{background:#7c3aed}.statistics-summary-item.is-danger .statistics-summary-icon{background:#dc2626}.statistics-summary-item.is-warning .statistics-summary-icon{background:#d97706}.statistics-summary-item.is-dark .statistics-summary-icon{background:#0f172a}.statistics-svg-scroll{width:100%;overflow:auto;padding-bottom:.25rem}.statistics-svg{display:block;width:100%;min-width:760px;height:auto}.statistics-grid-line{stroke:#e2e8f0;stroke-width:1}.statistics-axis-label{fill:#64748b;font-size:11px;font-family:inherit}.statistics-bar{fill:#4f46e5;transition:.15s}.statistics-bar-group:hover .statistics-bar{fill:#0ea5e9}.statistics-pie-layout{display:grid;grid-template-columns:minmax(260px,330px) minmax(240px,1fr);align-items:center;gap:1rem}.statistics-pie-wrap{display:grid;place-items:center}.statistics-pie-svg{width:min(100%,320px);filter:drop-shadow(0 8px 18px rgba(15,23,42,.08))}.statistics-pie-segment{stroke:#fff;stroke-width:2;transition:transform .15s;transform-origin:150px 150px}.statistics-pie-segment:hover{transform:scale(1.035)}.statistics-pie-hole{fill:#fff}.statistics-pie-total-label{fill:#64748b;font-size:13px;font-weight:800}.statistics-pie-total{fill:#0f172a;font-size:24px;font-weight:950}.statistics-pie-empty{fill:#64748b;font-size:13px}.statistics-legend{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.42rem;max-height:310px;overflow:auto;padding:.25rem}.statistics-legend-title{grid-column:1/-1;color:#334155;font-size:.75rem;font-weight:950}.statistics-legend-item{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:.35rem;padding:.38rem .45rem;border:1px solid #e2e8f0;border-radius:10px;background:#f8fafc}.statistics-legend-item.is-zero{opacity:.52;filter:grayscale(.45)}.statistics-legend-color{width:11px;height:11px;border-radius:4px;background:var(--legend-color)}.statistics-legend-item b{overflow:hidden;text-overflow:ellipsis;color:#334155;font-size:.67rem;white-space:nowrap;direction:ltr;text-align:left}.statistics-legend-item small{color:#64748b;font-size:.62rem}.statistics-line-legend{display:flex;grid-template-columns:none;flex-wrap:wrap;gap:.35rem;max-height:125px;margin-bottom:.55rem}.statistics-line-legend .statistics-legend-item{min-width:150px}.statistics-line-path{opacity:.9}.statistics-line-point{stroke:#fff;stroke-width:1.2}.statistics-table{margin:0;font-size:.72rem}.statistics-table thead th{position:sticky;top:0;z-index:1;white-space:nowrap;color:#334155;background:#eef2ff;border-bottom-color:#c7d2fe}.statistics-table tbody tr:nth-child(even){background:#f8fafc}.statistics-table tbody tr.is-zero{opacity:.55}.statistics-source-name{display:flex;align-items:center;gap:.4rem;min-width:135px}.statistics-source-name i{width:10px;height:32px;border-radius:6px;background:var(--source-color)}.statistics-source-name b{font-size:.7rem}.statistics-error-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.65rem;margin-bottom:.8rem}.statistics-error-summary div{display:flex;align-items:center;justify-content:space-between;padding:.75rem .9rem;border:1px solid #fecaca;border-radius:13px;background:#fff7f7}.statistics-error-summary span{color:#7f1d1d;font-size:.7rem;font-weight:850}.statistics-error-summary b{color:#b91c1c;font-size:1.15rem}.statistics-errors-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(300px,.65fr);gap:1rem}.statistics-errors-grid h3{margin:0 0 .55rem;color:#334155;font-size:.86rem;font-weight:950}.statistics-error-category{display:inline-block;padding:.2rem .42rem;border-radius:999px;color:#7f1d1d;background:#fee2e2;font-size:.64rem;font-weight:850}.statistics-active-error-list{display:grid;gap:.55rem;max-height:430px;overflow:auto}.statistics-active-error-list article{padding:.65rem;border:1px solid #fed7aa;border-radius:12px;background:#fff7ed}.statistics-active-error-list article>div{display:flex;align-items:center;justify-content:space-between;gap:.5rem}.statistics-active-error-list b{color:#9a3412;font-size:.72rem}.statistics-active-error-list code{font-size:.62rem}.statistics-active-error-list p{margin:.35rem 0;color:#431407;font-size:.7rem}.statistics-active-error-list small{color:#9a3412;font-size:.62rem}.statistics-empty{display:grid;place-items:center;min-height:135px;padding:1rem;border:1px dashed #cbd5e1;border-radius:14px;color:#64748b;background:#f8fafc;font-size:.78rem}.statistics-inline-error{display:flex;align-items:center;justify-content:center;gap:.8rem;min-height:145px;padding:1rem;border:1px solid #fecaca;border-radius:14px;color:#991b1b;background:#fef2f2}.statistics-inline-error>div{display:grid}.statistics-inline-error strong{font-size:.78rem}.statistics-inline-error span{font-size:.7rem}.statistics-page-message{position:fixed;top:76px;left:50%;z-index:1100;display:flex;align-items:center;gap:.5rem;max-width:min(560px,90vw);padding:.75rem 1rem;border-radius:13px;color:#fff;transform:translateX(-50%);box-shadow:0 16px 40px rgba(15,23,42,.24)}.statistics-page-message.is-success{background:#047857}.statistics-page-message.is-error{background:#b91c1c}.post-statistics-shortcut{display:inline-flex;align-items:center;gap:.35rem}.cron-auto-open-setting{padding:.75rem;border:1px solid #bfdbfe;border-radius:13px;background:#eff6ff}.cron-auto-open-setting .form-check-label{color:#1e3a8a;font-weight:900}.cron-setting-tooltip{display:inline-flex;align-items:center;margin-right:.45rem;padding:.22rem .48rem;border-radius:999px;color:#fff;background:#059669;font-size:.65rem;opacity:0;transform:translateY(4px);transition:.2s;pointer-events:none}.cron-setting-tooltip.is-visible{opacity:1;transform:none}.cron-setting-tooltip.is-error{background:#dc2626}
@media(max-width:1199.98px){.statistics-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.statistics-range-panel{align-items:flex-start;flex-direction:column}.statistics-range-status{align-self:flex-end}.statistics-errors-grid{grid-template-columns:1fr}}
@media(max-width:767.98px){.statistics-hero{align-items:flex-start;flex-direction:column;padding:1.1rem}.statistics-post-identity{align-items:flex-start}.statistics-post-thumb{width:66px;height:66px;border-radius:16px}.statistics-hero-actions{width:100%}.statistics-hero-actions .btn{flex:1}.statistics-summary-grid{grid-template-columns:1fr}.statistics-pie-layout{grid-template-columns:1fr}.statistics-legend{grid-template-columns:1fr}.statistics-error-summary{grid-template-columns:1fr}.statistics-custom-range{align-items:stretch;flex-direction:column;width:100%}.statistics-custom-range input{width:100%}.statistics-range-status{align-self:auto}.statistics-filter-state{width:100%;margin-top:.15rem}.statistics-card{padding:.75rem}}
.statistics-data-note{display:flex;align-items:flex-start;gap:.65rem;padding:.72rem .9rem;border:1px solid #bae6fd;border-radius:14px;color:#0c4a6e;background:#f0f9ff;font-size:.72rem;line-height:1.9}.statistics-data-note i{margin-top:.28rem;color:#0284c7}.statistics-data-note span{flex:1}

/* ===== Analytics phase 2: comparison, CSV, stability and timeline events ===== */
.statistics-export-panel{display:grid;grid-template-columns:minmax(260px,.7fr) minmax(420px,1.3fr);gap:1rem;align-items:center;padding:1rem 1.1rem;border:1px solid #bbf7d0;border-radius:18px;background:linear-gradient(135deg,#f0fdf4,#fff 55%,#ecfdf5);box-shadow:0 10px 28px rgba(5,150,105,.08)}
.statistics-export-copy{display:flex;align-items:center;gap:.8rem}.statistics-export-copy>div{display:grid;gap:.15rem}.statistics-export-copy strong{color:#14532d;font-size:.9rem}.statistics-export-copy small{color:#4b5563;font-size:.69rem;line-height:1.7}.statistics-export-icon{display:grid;place-items:center;flex:0 0 48px;width:48px;height:48px;border-radius:14px;color:#fff;background:#059669;font-size:1.25rem;box-shadow:0 8px 20px rgba(5,150,105,.22)}
.statistics-export-controls{display:grid;gap:.55rem}.statistics-export-controls .statistics-type-filter{margin:0}.statistics-export-buttons{display:flex;flex-wrap:wrap;gap:.5rem}.statistics-export-buttons .btn{display:inline-flex;align-items:center;gap:.38rem}
.statistics-comparison-ranges{display:flex;flex-wrap:wrap;gap:.55rem;margin-bottom:.8rem}.statistics-comparison-ranges span{display:inline-flex;align-items:center;gap:.4rem;padding:.42rem .65rem;border:1px solid #dbeafe;border-radius:999px;color:#1e3a8a;background:#eff6ff;font-size:.68rem}.statistics-comparison-ranges span:nth-child(2){border-color:#e9d5ff;color:#581c87;background:#faf5ff}
.statistics-comparison-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:.65rem}.statistics-comparison-metric{padding:.75rem;border:1px solid #e2e8f0;border-top:4px solid #64748b;border-radius:14px;background:#fff}.statistics-comparison-metric small{display:block;color:#64748b;font-size:.66rem;font-weight:850}.statistics-comparison-metric>strong{display:block;margin:.15rem 0;color:#0f172a;font-size:1.3rem}.statistics-comparison-metric>div{display:grid;gap:.15rem}.statistics-comparison-metric span{color:#94a3b8;font-size:.61rem}.statistics-comparison-metric b{font-size:.67rem}.statistics-comparison-metric.is-up{border-top-color:#059669}.statistics-comparison-metric.is-up b{color:#047857}.statistics-comparison-metric.is-down{border-top-color:#dc2626}.statistics-comparison-metric.is-down b{color:#b91c1c}.statistics-comparison-metric.is-same{border-top-color:#64748b}.statistics-comparison-metric.is-new{border-top-color:#2563eb}.statistics-comparison-metric.is-new b{color:#1d4ed8}.statistics-comparison-sources{margin-top:.8rem;border:1px solid #e2e8f0;border-radius:13px;overflow:hidden}.statistics-comparison-sources summary{padding:.7rem .85rem;cursor:pointer;color:#334155;background:#f8fafc;font-size:.72rem;font-weight:900}.statistics-comparison-sources .table-responsive{max-height:340px}
.statistics-stability-summary{display:flex;flex-wrap:wrap;gap:.45rem;margin-bottom:.8rem}.statistics-stability-summary span{display:inline-flex;align-items:center;gap:.4rem;padding:.38rem .6rem;border-radius:999px;font-size:.67rem;font-weight:850;background:#f1f5f9;color:#475569}.statistics-stability-summary b{display:grid;place-items:center;min-width:23px;height:23px;padding:0 .3rem;border-radius:999px;background:#fff}.statistics-stability-summary .is-excellent{color:#065f46;background:#d1fae5}.statistics-stability-summary .is-stable{color:#166534;background:#dcfce7}.statistics-stability-summary .is-average{color:#854d0e;background:#fef9c3}.statistics-stability-summary .is-unreliable{color:#991b1b;background:#fee2e2}.statistics-stability-summary .is-insufficient{color:#475569;background:#e2e8f0}
.statistics-stability-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem}.statistics-stability-list article{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.55rem;padding:.75rem;border:1px solid #e2e8f0;border-radius:14px;background:linear-gradient(145deg,#fff,#f8fafc)}.statistics-stability-source{display:flex;align-items:center;gap:.5rem;min-width:0}.statistics-stability-source>div{display:grid;min-width:0}.statistics-stability-source b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#1e293b;font-size:.72rem}.statistics-stability-source small{color:#64748b;font-size:.61rem}.statistics-stability-progress{grid-column:1/-1;height:8px;overflow:hidden;border-radius:999px;background:#e2e8f0}.statistics-stability-progress i{display:block;width:var(--stability-width);height:100%;border-radius:inherit;background:linear-gradient(90deg,#dc2626,#f59e0b 45%,#10b981)}.statistics-stability-list ul{grid-column:1/-1;margin:0;padding:0 1rem 0 0;color:#64748b;font-size:.62rem;line-height:1.8}.statistics-stability-badge{display:grid;place-items:center;min-width:64px;padding:.25rem .4rem;border-radius:10px;background:#e2e8f0;color:#475569}.statistics-stability-badge b{font-size:.9rem}.statistics-stability-badge small{font-size:.55rem;white-space:nowrap}.statistics-stability-badge.is-excellent{color:#065f46;background:#d1fae5}.statistics-stability-badge.is-stable{color:#166534;background:#dcfce7}.statistics-stability-badge.is-average{color:#854d0e;background:#fef9c3}.statistics-stability-badge.is-unreliable{color:#991b1b;background:#fee2e2}
.statistics-event-marker{cursor:help}.statistics-event-marker-count{fill:#fff;font-size:7px;font-weight:900;pointer-events:none}.statistics-event-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.45rem;margin-top:.75rem}.statistics-event-list-title{grid-column:1/-1;color:#334155;font-size:.72rem;font-weight:950}.statistics-event-list article{display:flex;align-items:flex-start;gap:.5rem;padding:.55rem .65rem;border:1px solid #e2e8f0;border-radius:11px;background:#f8fafc}.statistics-event-list article>span{width:9px;height:9px;margin-top:.28rem;flex:0 0 9px;border-radius:999px;background:#64748b}.statistics-event-list article>div{display:grid;min-width:0}.statistics-event-list b{color:#334155;font-size:.68rem}.statistics-event-list small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#64748b;font-size:.58rem}.statistics-event-list p{margin:.15rem 0 0;color:#475569;font-size:.61rem;line-height:1.6}.statistics-event-list article.is-success>span{background:#059669}.statistics-event-list article.is-primary>span{background:#2563eb}.statistics-event-list article.is-warning>span{background:#d97706}.statistics-event-list article.is-danger>span{background:#dc2626}.statistics-event-list article.is-info>span{background:#7c3aed}
@media(max-width:1199.98px){.statistics-export-panel{grid-template-columns:1fr}.statistics-comparison-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:767.98px){.statistics-comparison-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.statistics-stability-list,.statistics-event-list{grid-template-columns:1fr}.statistics-export-buttons .btn{flex:1;justify-content:center}.statistics-export-panel{padding:.8rem}}

/* ===== Post management analytics columns & saved column chooser ===== */
.posts-management-page{max-width:1800px}.posts-page-hero{display:flex;justify-content:space-between;align-items:center;gap:1.25rem;padding:1.25rem 1.4rem;border-radius:20px;background:linear-gradient(135deg,#eff6ff 0%,#f8fafc 48%,#eef2ff 100%);border:1px solid #dbeafe;box-shadow:0 12px 34px rgba(15,23,42,.07)}.posts-page-hero span{display:block;color:#2563eb;font-size:.78rem;font-weight:800;margin-bottom:.25rem}.posts-page-hero p{color:#64748b;font-size:.9rem;margin-top:.35rem}.posts-filter-card{border:1px solid #e2e8f0;border-radius:18px;box-shadow:0 8px 24px rgba(15,23,42,.04)}.posts-table-toolbar{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap;padding:.7rem .9rem;background:#fff;border:1px solid #e2e8f0;border-radius:14px}.posts-sort-status{font-size:.78rem;color:#64748b;padding:.35rem .65rem;background:#f8fafc;border-radius:999px}.posts-columns-menu{width:min(390px,calc(100vw - 24px));border:0;border-radius:18px;box-shadow:0 22px 60px rgba(15,23,42,.2);overflow:hidden}.posts-columns-menu-head{padding:1rem 1.1rem;background:linear-gradient(135deg,#1e3a8a,#2563eb);color:#fff}.posts-columns-menu-head strong,.posts-columns-menu-head small{display:block}.posts-columns-menu-head small{opacity:.8;margin-top:.25rem;font-size:.75rem}.posts-columns-actions{display:flex;gap:.35rem;flex-wrap:wrap;padding:.75rem;border-bottom:1px solid #e2e8f0;background:#f8fafc}.posts-columns-options{display:grid;grid-template-columns:1fr 1fr;gap:.45rem;padding:.85rem;max-height:340px;overflow:auto}.posts-column-option{display:flex;align-items:center;gap:.55rem;padding:.65rem .7rem;border:1px solid #e2e8f0;border-radius:11px;background:#fff;cursor:pointer;transition:.18s}.posts-column-option:hover{border-color:#93c5fd;background:#eff6ff}.posts-column-option input{accent-color:#2563eb}.posts-column-option span{font-size:.82rem;font-weight:700;color:#334155}.posts-column-option small{margin-inline-start:auto;color:#94a3b8;font-size:.65rem}.posts-column-option.is-required{background:#f8fafc;cursor:not-allowed}.posts-columns-save-state{display:flex;align-items:center;gap:.5rem;padding:.7rem 1rem;font-size:.75rem;color:#475569;background:#f8fafc;border-top:1px solid #e2e8f0}.posts-columns-save-state.is-success{color:#166534;background:#f0fdf4}.posts-columns-save-state.is-error{color:#991b1b;background:#fef2f2}.posts-columns-save-state.is-saving{color:#1d4ed8;background:#eff6ff}.posts-table-shell{background:#fff;border:1px solid #e2e8f0;border-radius:18px;box-shadow:0 12px 34px rgba(15,23,42,.06)}.posts-management-table{margin:0;min-width:1120px}.posts-management-table thead th{position:sticky;top:0;z-index:2;background:#f8fafc;color:#334155;border-bottom:2px solid #dbeafe;font-size:.78rem;white-space:nowrap;padding:.9rem .75rem}.posts-management-table tbody tr:nth-child(odd){background:#fff}.posts-management-table tbody tr:nth-child(even){background:#f8fafc}.posts-management-table tbody tr:hover{background:#eff6ff}.posts-management-table td{padding:.8rem .75rem;border-color:#e2e8f0}.posts-sort-link{display:inline-flex;align-items:center;gap:.4rem;color:#475569;text-decoration:none}.posts-sort-link:hover,.posts-sort-link.is-active{color:#1d4ed8}.post-title-wrap{display:flex;align-items:center;gap:.7rem;min-width:260px}.post-title-wrap img{width:44px;height:44px;object-fit:cover;box-shadow:0 3px 10px rgba(15,23,42,.14)}.post-title-wrap div{display:flex;flex-direction:column;min-width:0}.post-title-wrap strong{max-width:420px;white-space:normal;line-height:1.6}.post-title-wrap small{color:#94a3b8;font-size:.68rem}.post-stat-badge{display:inline-flex;align-items:center;justify-content:center;gap:.4rem;min-width:70px;padding:.48rem .65rem;border-radius:12px;text-decoration:none;font-size:.8rem;border:1px solid transparent;transition:.18s}.post-stat-badge:hover{transform:translateY(-1px);box-shadow:0 6px 16px rgba(15,23,42,.12)}.post-stat-badge.is-update{background:#dcfce7;color:#166534;border-color:#bbf7d0}.post-stat-badge.is-upload{background:#dbeafe;color:#1e40af;border-color:#bfdbfe}.post-stat-badge.is-error{background:#ffedd5;color:#9a3412;border-color:#fed7aa}.post-stat-badge.is-active-error{background:#fee2e2;color:#991b1b;border-color:#fecaca}.post-stat-badge.is-zero{background:#f8fafc;color:#94a3b8;border-color:#e2e8f0;box-shadow:none}.posts-row-actions{display:flex;align-items:center;gap:.35rem}.posts-row-actions .btn{width:34px;height:34px;display:inline-flex;align-items:center;justify-content:center}.statistics-export-buttons [data-xlsx-export]{box-shadow:0 7px 18px rgba(22,163,74,.22)}
@media(max-width:768px){.posts-page-hero{align-items:flex-start;flex-direction:column}.posts-columns-options{grid-template-columns:1fr}.posts-table-toolbar{align-items:stretch}.posts-columns-dropdown,.posts-columns-dropdown>button{width:100%}.posts-management-table{min-width:980px}}


/* Source analytics correctness + clearer alternating post rows */
.posts-analytics-scope-note{display:inline-flex;align-items:center;gap:.4rem;padding:.35rem .65rem;border-radius:999px;background:#f0fdf4;color:#166534;border:1px solid #bbf7d0;font-size:.72rem;font-weight:700}
.posts-management-table tbody tr:nth-child(odd)>td{background:#ffffff}
.posts-management-table tbody tr:nth-child(even)>td{background:#f4f8ff}
.posts-management-table tbody tr:hover>td{background:#eaf3ff!important}
.posts-management-table tbody tr>td:first-child{box-shadow:inset -3px 0 0 transparent}
.posts-management-table tbody tr:nth-child(even)>td:first-child{box-shadow:inset -3px 0 0 #bfdbfe}
.posts-management-table tbody tr{transition:transform .16s ease,box-shadow .16s ease}
.posts-management-table tbody tr:hover{box-shadow:0 8px 22px rgba(37,99,235,.08)}
@media(max-width:768px){.posts-analytics-scope-note{width:100%;justify-content:center;border-radius:10px}}

/* Source circuit breaker / blocked sources */
.source-blocks-hero {
  display:flex; align-items:center; justify-content:space-between; gap:1rem;
  padding:1.25rem 1.35rem; border:1px solid #dbe6f2; border-radius:20px;
  background:linear-gradient(135deg,#f8fbff,#eef6ff); box-shadow:0 10px 28px rgba(31,72,119,.07);
}
.source-blocks-hero-actions { display:flex; flex-wrap:wrap; gap:.65rem; }
.source-blocks-summary { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:.8rem; }
.source-block-summary-card { border:1px solid #e1e8f0; border-radius:16px; padding:1rem; background:#fff; display:flex; justify-content:space-between; align-items:center; gap:.75rem; }
.source-block-summary-card span { color:#667085; font-size:.88rem; }
.source-block-summary-card strong { min-width:2.2rem; text-align:center; border-radius:12px; padding:.35rem .55rem; background:#e9f8f2; color:#08785b; font-size:1.08rem; }
.source-blocks-table thead th { background:#15243a; color:#fff; white-space:nowrap; border:0; padding:.9rem .8rem; }
.source-blocks-table tbody tr:nth-child(odd) { background:#fff; }
.source-blocks-table tbody tr:nth-child(even) { background:#f6f9fd; }
.source-blocks-table tbody tr:hover { background:#edf5ff; }
.source-blocks-table td { padding:.9rem .8rem; border-color:#e6edf5; vertical-align:middle; }
.source-block-post { font-weight:800; color:#17365f; text-decoration:none; }
.source-block-host { direction:ltr; text-align:left; font-weight:800; color:#162235; }
.source-block-url { direction:ltr; text-align:left; max-width:360px; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; color:#718096; font-size:.78rem; }
.source-block-stage { display:inline-flex; padding:.34rem .62rem; border-radius:999px; font-size:.78rem; font-weight:800; background:#fff1df; color:#9a4e00; }
.source-block-stage.stage-version { background:#eee9ff; color:#5633a8; }
.source-block-stage.stage-link { background:#e5f2ff; color:#145d99; }
.source-block-stage.stage-download { background:#fff2d8; color:#8a5700; }
.source-block-stage.stage-upload { background:#ffe9dc; color:#9a3e0f; }
.source-block-stage.stage-validation { background:#ffe5ef; color:#a42b5c; }
.source-block-stage.stage-commit { background:#ffe8e8; color:#a92c2c; }
.source-block-stage.stage-pipeline { background:#ffe8e8; color:#a92c2c; }
.source-failure-counts { display:flex; flex-wrap:wrap; gap:.35rem; }
.source-failure-counts span { background:#f0f4f8; border:1px solid #e0e8f0; border-radius:9px; padding:.28rem .45rem; font-size:.75rem; }
.source-failure-counts b { color:#c62828; }
.source-block-code { direction:ltr; display:inline-block; max-width:240px; overflow:hidden; text-overflow:ellipsis; color:#a32121; }
.source-block-error { max-width:300px; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; color:#6b7280; font-size:.78rem; margin-top:.25rem; }
.source-blocks-empty { padding:3rem 1rem; text-align:center; color:#738096; background:#fbfcfe; }
.source-block-message { position:fixed; z-index:1080; left:1.25rem; bottom:1.25rem; opacity:0; transform:translateY(12px); pointer-events:none; transition:.22s ease; border-radius:12px; padding:.75rem 1rem; color:#fff; box-shadow:0 10px 26px rgba(0,0,0,.18); }
.source-block-message.is-visible { opacity:1; transform:translateY(0); }
.source-block-message.is-ok { background:#0d8b68; }
.source-block-message.is-error { background:#c73535; }
.source-blocks-table tbody.is-loading { opacity:.5; pointer-events:none; }
.source-fallback-settings-card { border:1px solid #dfe8f2; border-radius:18px; overflow:hidden; box-shadow:0 8px 24px rgba(28,63,99,.06); }
.source-fallback-settings-card .card-header { background:linear-gradient(135deg,#183d67,#245b8f); color:#fff; }
.source-fallback-save-wrap { position:relative; display:inline-flex; align-items:center; gap:.75rem; }
.source-fallback-tooltip { opacity:0; transform:translateY(5px); transition:.2s ease; border-radius:10px; padding:.45rem .7rem; font-size:.8rem; }
.source-fallback-tooltip.is-visible { opacity:1; transform:translateY(0); }
.source-fallback-tooltip.is-ok { background:#e5f8f1; color:#08745a; }
.source-fallback-tooltip.is-error { background:#ffe8e8; color:#a62d2d; }
@media (max-width: 992px) {
  .source-blocks-summary { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .source-blocks-hero { align-items:flex-start; flex-direction:column; }
}
@media (max-width: 576px) {
  .source-blocks-summary { grid-template-columns:1fr; }
  .source-blocks-hero-actions { width:100%; }
  .source-blocks-hero-actions .btn { flex:1; }
}

/* Configurable source Cooldown and Half-open */
.source-circuit-guide {
  padding:.9rem 1rem;
  border:1px solid #bfdbfe;
  border-radius:14px;
  background:linear-gradient(135deg,#eff6ff,#f8fbff);
  color:#294761;
  line-height:1.9;
  font-size:.82rem;
}
.source-circuit-guide strong { color:#174b7a; }
.source-circuit-subcard {
  padding:1rem;
  border:1px solid #dbe5ef;
  border-radius:16px;
  background:#fbfdff;
  transition:opacity .18s ease, background .18s ease, border-color .18s ease;
}
.source-circuit-subcard.is-disabled {
  opacity:.68;
  background:#f8fafc;
  border-color:#e5e7eb;
}
.source-circuit-subcard.is-disabled > :not(.d-flex) { filter:saturate(.6); }
.source-blocks-mini-guide {
  border:1px solid #bfdbfe;
  border-radius:14px;
  background:linear-gradient(135deg,#eff6ff,#f8fbff);
  color:#294761;
  line-height:1.85;
}
.source-blocks-summary { grid-template-columns:repeat(3,minmax(0,1fr)); }
.source-block-summary-card strong {
  min-width:4.5rem;
  max-width:10rem;
  overflow-wrap:anywhere;
  font-size:.9rem;
  line-height:1.5;
}
.source-circuit-status {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.35rem;
  padding:.38rem .65rem;
  border:1px solid transparent;
  border-radius:999px;
  font-size:.74rem;
  font-weight:850;
  white-space:nowrap;
}
.source-circuit-status.is-cooldown { background:#fff7dd; color:#8a5a00; border-color:#fde7a2; }
.source-circuit-status.is-half-open-ready { background:#e8f8ff; color:#075d7a; border-color:#b7e8f8; }
.source-circuit-status.is-half-open-active { background:#e6f8ee; color:#08714d; border-color:#bcebd4; }
.source-circuit-status.is-half-open-busy { background:#f0ecff; color:#5a37a2; border-color:#d9ceff; }
.source-circuit-status.is-auto-release { background:#eaf7ff; color:#145d8f; border-color:#c4e5f8; }
.source-circuit-status.is-open { background:#ffe9e9; color:#9e2f2f; border-color:#f8caca; }
.source-circuit-status.is-closed { background:#e8f7ed; color:#167044; border-color:#c5e8d1; }
.source-circuit-detail {
  max-width:260px;
  margin-top:.35rem;
  color:#697586;
  font-size:.72rem;
  line-height:1.65;
}
.source-block-time { min-width:155px; font-size:.76rem; line-height:1.55; color:#334155; }
@media (max-width: 992px) {
  .source-blocks-summary { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width: 576px) {
  .source-blocks-summary { grid-template-columns:1fr; }
  .source-block-summary-card strong { max-width:55%; }
}

/* WordPress mapping inspector in post edit */
.wordpress-mapping-inspector { scroll-margin-top: 1rem; }
.wp-mapping-panel { border: 1px solid #cbd5e1; border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 0 12px 34px rgba(15,23,42,.08); }
.wp-mapping-panel-header { display:flex; justify-content:space-between; align-items:flex-start; gap:1rem; padding:1rem 1.15rem; background:linear-gradient(135deg,#eff6ff,#f8fafc 55%,#ecfeff); border-bottom:1px solid #dbeafe; }
.wp-mapping-panel-header h3 { margin:0; font-size:1.05rem; color:#0f172a; }
.wp-mapping-message { display:none; margin-top:.4rem; font-size:.86rem; }
.wp-mapping-message.is-visible { display:block; }
.wp-mapping-message.is-ok { color:#166534; }
.wp-mapping-message.is-error { color:#b91c1c; }
.wp-mapping-panel-body { padding:1rem; }
.wp-mapping-toolbar { display:flex; flex-wrap:wrap; gap:.6rem; align-items:center; margin-bottom:1rem; }
.wp-mapping-guide { margin-bottom:1rem; border:1px solid #dbeafe; background:#f8fbff; border-radius:12px; padding:.75rem .9rem; color:#334155; font-size:.86rem; }
.wp-mapping-guide summary { cursor:pointer; font-weight:700; color:#1e3a8a; }
.wp-mapping-summary { display:flex; flex-wrap:wrap; gap:.55rem; margin-inline-start:auto; }
.wp-mapping-summary span { border:1px solid #e2e8f0; background:#fff; border-radius:999px; padding:.3rem .65rem; font-size:.78rem; color:#475569; }
.wp-mapping-summary .is-success { border-color:#bbf7d0; color:#166534; background:#f0fdf4; }
.wp-mapping-summary .is-warning { border-color:#fde68a; color:#92400e; background:#fffbeb; }
.wp-mapping-summary .is-danger { border-color:#fecaca; color:#991b1b; background:#fef2f2; }
.wp-mapping-results { display:grid; grid-template-columns:repeat(auto-fit,minmax(330px,1fr)); gap:1rem; }
.wp-mapping-card { border:1px solid #e2e8f0; border-radius:16px; background:#fff; overflow:hidden; box-shadow:0 5px 18px rgba(15,23,42,.055); }
.wp-mapping-card:nth-child(even) { background:#f8fbff; }
.wp-mapping-card.is-connected { border-color:#86efac; }
.wp-mapping-card.is-warning { border-color:#fcd34d; }
.wp-mapping-card.is-conflict,.wp-mapping-card.is-unreachable { border-color:#fca5a5; }
.wp-mapping-card-header { display:flex; justify-content:space-between; align-items:flex-start; gap:.75rem; padding:.9rem 1rem; border-bottom:1px solid rgba(148,163,184,.25); }
.wp-mapping-card-header h4 { margin:0; font-size:1rem; color:#0f172a; }
.wp-mapping-site-url { display:block; max-width:390px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:.78rem; direction:ltr; text-align:left; margin-top:.28rem; }
.wp-mapping-target-state { border-radius:999px; padding:.15rem .48rem; font-size:.69rem; font-weight:700; }
.wp-mapping-target-state.is-enabled { color:#166534; background:#dcfce7; }
.wp-mapping-target-state.is-disabled { color:#64748b; background:#e2e8f0; }
.wp-mapping-status { display:inline-flex; gap:.35rem; align-items:center; white-space:nowrap; border-radius:999px; padding:.28rem .6rem; font-size:.72rem; font-weight:800; }
.wp-mapping-status.is-connected { color:#166534; background:#dcfce7; }
.wp-mapping-status.is-warning { color:#92400e; background:#fef3c7; }
.wp-mapping-status.is-conflict,.wp-mapping-status.is-unreachable { color:#991b1b; background:#fee2e2; }
.wp-mapping-status.is-not-mapped,.wp-mapping-status.is-not-checked { color:#475569; background:#e2e8f0; }
.wp-mapping-change-warning { padding:.55rem 1rem; background:#fff7ed; color:#9a3412; border-bottom:1px solid #fed7aa; font-size:.82rem; font-weight:700; }
.wp-mapping-card-body { padding:1rem; }
.wp-mapping-post-title { font-weight:800; color:#1e293b; margin-bottom:.45rem; }
.wp-mapping-identity { display:flex; flex-wrap:wrap; gap:.45rem; font-size:.75rem; color:#475569; }
.wp-mapping-identity span { background:#f1f5f9; border-radius:7px; padding:.2rem .4rem; }
.wp-mapping-public-url { margin-top:.75rem; display:grid; gap:.25rem; }
.wp-mapping-public-url span { color:#64748b; font-size:.75rem; }
.wp-mapping-public-url a { direction:ltr; text-align:left; word-break:break-all; font-size:.82rem; }
.wp-mapping-result-message { margin-top:.8rem; color:#334155; font-size:.86rem; line-height:1.8; }
.wp-mapping-proof-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.45rem .8rem; margin-top:.8rem; padding-top:.75rem; border-top:1px dashed #cbd5e1; font-size:.74rem; color:#64748b; }
.wp-mapping-conflicts { padding:.65rem; border-radius:10px; background:#fff1f2; border:1px solid #fecdd3; color:#881337; font-size:.8rem; }
.wp-mapping-conflict-item { display:flex; justify-content:space-between; gap:.5rem; border-top:1px dashed #fda4af; margin-top:.45rem; padding-top:.45rem; }
.wp-mapping-last-known { border:1px solid #cbd5e1; border-radius:10px; padding:.55rem .65rem; background:#f8fafc; }
.wp-mapping-last-known summary { cursor:pointer; font-weight:700; color:#475569; }
.wp-mapping-card-actions { display:flex; flex-wrap:wrap; gap:.45rem; padding:.8rem 1rem; border-top:1px solid rgba(148,163,184,.25); }
.wp-mapping-empty { grid-column:1/-1; padding:2rem; text-align:center; border:1px dashed #cbd5e1; border-radius:14px; color:#64748b; background:#f8fafc; }
.wordpress-mapping-inspector.is-loading .wp-mapping-results { opacity:.55; pointer-events:none; }
@media (max-width: 720px) {
  .wp-mapping-panel-header,.wp-mapping-card-header { flex-direction:column; }
  .wp-mapping-summary { margin-inline-start:0; }
  .wp-mapping-results { grid-template-columns:1fr; }
  .wp-mapping-proof-grid { grid-template-columns:1fr; }
  .wp-mapping-conflict-item { flex-direction:column; }
}

/* WordPress mapping summary in post list */
.post-mapping-summary { display:flex; flex-direction:column; gap:.28rem; min-width:145px; text-decoration:none; border:1px solid #cbd5e1; border-radius:12px; padding:.45rem .55rem; background:#fff; transition:.18s ease; }
.post-mapping-summary:hover { transform:translateY(-1px); box-shadow:0 7px 18px rgba(15,23,42,.09); }
.post-mapping-summary-main { display:flex; align-items:center; gap:.35rem; color:#334155; }
.post-mapping-summary-main i { font-size:1rem; }
.post-mapping-summary-main b { font-size:.92rem; direction:ltr; }
.post-mapping-summary-main small { color:#64748b; font-size:.67rem; }
.post-mapping-summary-meta { display:flex; gap:.25rem; flex-wrap:wrap; }
.post-mapping-summary-meta em { font-style:normal; font-size:.62rem; border-radius:999px; padding:.1rem .34rem; background:#f1f5f9; color:#475569; }
.post-mapping-summary-meta em.is-error { background:#fee2e2; color:#991b1b; }
.post-mapping-summary-meta em.is-version { background:#ffedd5; color:#9a3412; }
.post-mapping-summary.is-success { border-color:#86efac; background:#f0fdf4; }
.post-mapping-summary.is-success .post-mapping-summary-main { color:#166534; }
.post-mapping-summary.is-warning { border-color:#fcd34d; background:#fffbeb; }
.post-mapping-summary.is-warning .post-mapping-summary-main { color:#92400e; }
.post-mapping-summary.is-danger { border-color:#fca5a5; background:#fef2f2; }
.post-mapping-summary.is-danger .post-mapping-summary-main { color:#991b1b; }
.post-mapping-summary.is-empty { border-style:dashed; background:#f8fafc; }

/* Version comparison inside WordPress mapping inspector */
.wp-version-sync { margin-top:.85rem; border:1px solid #cbd5e1; border-radius:12px; overflow:hidden; background:#f8fafc; }
.wp-version-sync-head { display:flex; justify-content:space-between; gap:.75rem; align-items:center; padding:.6rem .7rem; background:#f1f5f9; border-bottom:1px solid #e2e8f0; }
.wp-version-sync-head strong { display:flex; align-items:center; gap:.4rem; color:#1e293b; font-size:.82rem; }
.wp-version-sync-head span { font-size:.7rem; font-weight:700; color:#475569; }
.wp-version-sync-grid { display:grid; gap:0; }
.wp-version-sync-row { display:grid; grid-template-columns:72px minmax(0,1fr) auto; gap:.55rem; align-items:center; padding:.5rem .7rem; border-top:1px dashed #e2e8f0; font-size:.72rem; }
.wp-version-sync-row:first-child { border-top:0; }
.wp-version-pair { display:flex; flex-wrap:wrap; gap:.35rem; color:#475569; }
.wp-version-pair bdi { background:#fff; border:1px solid #e2e8f0; border-radius:6px; padding:.12rem .32rem; }
.wp-version-state { display:inline-flex; align-items:center; gap:.25rem; font-weight:700; white-space:nowrap; }
.wp-version-sync-row.is-synced .wp-version-state { color:#166534; }
.wp-version-sync-row.is-behind .wp-version-state { color:#b45309; }
.wp-version-sync-row.is-ahead .wp-version-state { color:#1d4ed8; }
.wp-version-sync-row.is-empty .wp-version-state { color:#64748b; }
.wp-version-sync > small { display:block; padding:.5rem .7rem; color:#64748b; border-top:1px solid #e2e8f0; }
.wp-version-sync.is-synced { border-color:#86efac; }
.wp-version-sync.is-synced .wp-version-sync-head { background:#f0fdf4; }
.wp-version-sync.is-problem { border-color:#fdba74; }
.wp-version-sync.is-problem .wp-version-sync-head { background:#fff7ed; }
.wp-version-sync.is-unsupported { border-color:#fcd34d; padding:.7rem; background:#fffbeb; }
.wp-version-sync.is-unsupported .wp-version-sync-head { padding:0 0 .4rem; border:0; background:transparent; }
.wp-version-sync.is-unsupported p { margin:0; color:#78350f; font-size:.78rem; line-height:1.8; }
.webhook-auto-recheck-result { margin-top:.7rem; border:1px solid #bbf7d0; background:#f0fdf4; color:#166534; border-radius:10px; padding:.55rem .7rem; font-size:.78rem; }
.webhook-auto-recheck-result.is-warning { border-color:#fde68a; background:#fffbeb; color:#92400e; }

@media (max-width: 720px) {
  .wp-version-sync-row { grid-template-columns:1fr; gap:.3rem; }
  .wp-version-sync-head { align-items:flex-start; flex-direction:column; }
}

/* ===== Admin topbar + live session countdown ===== */
.admin-topbar{position:sticky;top:0;z-index:1040;background:linear-gradient(115deg,#10233f,#183f69 55%,#1e587b);box-shadow:0 8px 26px rgba(15,35,63,.2);min-height:68px}
.admin-brand{display:flex;align-items:center;gap:.75rem;color:#fff!important;text-decoration:none}
.admin-brand-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:13px;background:rgba(255,255,255,.13);box-shadow:inset 0 0 0 1px rgba(255,255,255,.16)}
.admin-brand>span:last-child{display:flex;flex-direction:column;line-height:1.15}.admin-brand strong{font-size:.98rem}.admin-brand small{font-size:.65rem;color:#b9d4ea;direction:ltr;text-align:right}
.admin-topbar-actions{display:flex;align-items:center;gap:.55rem}.admin-topbar-link{display:inline-flex;align-items:center;gap:.4rem;padding:.48rem .68rem;border-radius:10px;color:#d8e9f7;text-decoration:none;font-size:.8rem;font-weight:700}.admin-topbar-link:hover{background:rgba(255,255,255,.1);color:#fff}
.admin-avatar-link{width:38px;height:38px;display:grid;place-items:center;border-radius:12px;background:rgba(255,255,255,.12);color:#fff;text-decoration:none}.admin-avatar-link:hover{background:rgba(255,255,255,.2);color:#fff}
.admin-logout-btn{display:inline-flex;align-items:center;gap:.4rem;border:1px solid rgba(255,255,255,.22);color:#fff;background:rgba(220,53,69,.22);border-radius:10px;font-size:.78rem}.admin-logout-btn:hover{background:#dc3545;color:#fff}
.admin-session-countdown{display:flex;align-items:center;gap:.55rem;min-width:138px;padding:.42rem .65rem;border-radius:12px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.14);color:#fff;transition:.2s ease}.admin-session-countdown-icon{width:30px;height:30px;display:grid;place-items:center;border-radius:9px;background:rgba(255,255,255,.12)}
.admin-session-countdown-copy{display:flex;flex-direction:column;line-height:1.1}.admin-session-countdown-copy small{font-size:.63rem;color:#c9dfef}.admin-session-countdown-copy b{margin-top:.18rem;font-size:.83rem;letter-spacing:.05em;font-variant-numeric:tabular-nums}
.admin-session-countdown.is-warning{background:rgba(245,158,11,.22);border-color:rgba(252,211,77,.42)}.admin-session-countdown.is-danger{background:rgba(220,53,69,.3);border-color:rgba(255,255,255,.3);animation:admin-session-pulse 1.2s infinite}.admin-session-countdown.is-expired{background:#7f1d1d}
@keyframes admin-session-pulse{50%{transform:scale(1.025);box-shadow:0 0 0 5px rgba(220,53,69,.08)}}
@media(max-width:575.98px){.admin-topbar{min-height:60px}.admin-brand>span:last-child{display:none}.admin-brand-icon{width:38px;height:38px}.admin-session-countdown{min-width:112px;padding:.35rem .5rem}.admin-session-countdown-icon{display:none}.admin-session-countdown-copy small{font-size:.58rem}.admin-session-countdown-copy b{font-size:.76rem}.admin-topbar-actions{gap:.35rem}}

/* ===== Dashboard v2 ===== */
.dashboard-v2{max-width:1600px;margin-inline:auto;background:linear-gradient(180deg,#f6f9fd 0,#fff 38%)}
.dashboard-hero-v2{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(280px,.7fr);gap:1.25rem;padding:1.6rem;border-radius:24px;background:radial-gradient(circle at 8% 10%,rgba(96,165,250,.25),transparent 33%),linear-gradient(135deg,#102f52,#174a75 60%,#176a7d);color:#fff;box-shadow:0 18px 42px rgba(23,55,91,.2);overflow:hidden;position:relative}.dashboard-hero-v2:after{content:"";position:absolute;width:260px;height:260px;border-radius:50%;left:-80px;bottom:-150px;border:42px solid rgba(255,255,255,.06)}
.dashboard-hero-copy,.dashboard-hero-meta{position:relative;z-index:1}.dashboard-eyebrow,.settings-eyebrow{display:inline-flex;align-items:center;gap:.42rem;padding:.36rem .68rem;border-radius:999px;background:rgba(255,255,255,.12);font-size:.72rem;font-weight:800}.dashboard-hero-copy h1{font-size:clamp(1.45rem,3vw,2.15rem);margin:.8rem 0 .45rem}.dashboard-hero-copy p{max-width:740px;color:#d5e8f6;margin:0}.dashboard-hero-actions{display:flex;gap:.65rem;flex-wrap:wrap;margin-top:1.15rem}.dashboard-hero-actions .btn{display:inline-flex;align-items:center;gap:.45rem;border-radius:11px;font-weight:800}
.dashboard-hero-meta{display:grid;gap:.7rem;align-content:center}.dashboard-hero-meta>div{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:.72rem .85rem;border:1px solid rgba(255,255,255,.13);border-radius:14px;background:rgba(255,255,255,.08);backdrop-filter:blur(7px)}.dashboard-hero-meta small{color:#c6dced;font-size:.7rem}.dashboard-hero-meta strong{font-size:.86rem;overflow-wrap:anywhere;text-align:left}
.dashboard-metric-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:.85rem;margin:1rem 0}.dashboard-metric-card{--tone:#2563eb;--soft:#eff6ff;display:flex;align-items:center;gap:.75rem;min-height:108px;padding:.9rem;border:1px solid #e1e8f0;border-radius:17px;background:#fff;text-decoration:none;color:#1e293b;box-shadow:0 8px 24px rgba(15,23,42,.055);transition:.18s ease}.dashboard-metric-card:hover{color:#0f172a;transform:translateY(-3px);border-color:var(--tone);box-shadow:0 14px 30px rgba(15,23,42,.1)}.dashboard-metric-card.tone-green{--tone:#059669;--soft:#ecfdf5}.dashboard-metric-card.tone-violet{--tone:#7c3aed;--soft:#f5f3ff}.dashboard-metric-card.tone-orange{--tone:#d97706;--soft:#fffbeb}.dashboard-metric-card.tone-red{--tone:#dc2626;--soft:#fef2f2}.metric-icon{width:44px;height:44px;display:grid;place-items:center;flex:0 0 44px;border-radius:13px;background:var(--soft);color:var(--tone);font-size:1.12rem}.dashboard-metric-card>span:last-child{display:flex;flex-direction:column;min-width:0}.dashboard-metric-card small{color:#64748b;font-size:.68rem}.dashboard-metric-card strong{font-size:1.42rem;line-height:1.2;color:var(--tone)}.dashboard-metric-card em{font-style:normal;color:#94a3b8;font-size:.64rem}
.dashboard-main-grid{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.dashboard-panel-v2{border:1px solid #e2e8f0;border-radius:20px;background:#fff;box-shadow:0 10px 28px rgba(15,23,42,.06);overflow:hidden}.dashboard-panel-header{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:1rem 1.1rem;border-bottom:1px solid #e8edf3}.dashboard-panel-header>div{display:flex;align-items:center;gap:.7rem}.dashboard-panel-header h2,.dashboard-section-title h2{font-size:1rem;margin:0;color:#1e293b}.dashboard-panel-header p,.dashboard-section-title p{font-size:.7rem;color:#64748b;margin:.18rem 0 0}.panel-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:12px}.panel-icon.danger{background:#fef2f2;color:#dc2626}.panel-icon.primary{background:#eff6ff;color:#2563eb}
.dashboard-compact-list,.dashboard-cron-links{display:grid;gap:.6rem;padding:.9rem}.dashboard-compact-list>a,.dashboard-cron-links>a{display:flex;align-items:center;gap:.7rem;padding:.72rem;border-radius:13px;color:#1e293b;text-decoration:none;background:#f8fafc;border:1px solid transparent}.dashboard-compact-list>a:nth-child(even),.dashboard-cron-links>a:nth-child(even){background:#f2f7ff}.dashboard-compact-list>a:hover,.dashboard-cron-links>a:hover{border-color:#bfdbfe;background:#eff6ff}.dashboard-compact-list>a>span:nth-child(2),.dashboard-cron-links>a>span:nth-child(2){display:flex;flex:1;flex-direction:column}.dashboard-compact-list small,.dashboard-cron-links small{color:#64748b;font-size:.68rem}.dashboard-compact-list b,.dashboard-cron-links b{min-width:34px;height:34px;display:grid;place-items:center;border-radius:999px;background:#fff;color:#334155;box-shadow:0 3px 10px rgba(15,23,42,.08)}.list-icon,.cron-visual{width:39px;height:39px;display:grid;place-items:center;border-radius:11px}.list-icon.amber{background:#fff7ed;color:#d97706}.list-icon.red{background:#fef2f2;color:#dc2626}.list-icon.violet{background:#f5f3ff;color:#7c3aed}.cron-visual.scan{background:#eff6ff;color:#2563eb}.cron-visual.upload{background:#f5f3ff;color:#7c3aed}.dashboard-live-pill{display:inline-flex;align-items:center;gap:.42rem;padding:.38rem .62rem;border-radius:999px;background:#ecfdf5;color:#047857;font-size:.72rem;font-weight:800}.dashboard-live-pill i{font-size:.48rem;animation:live-cron-pulse 1.5s infinite}
.dashboard-shortcuts-v2{margin-top:1rem;border:1px solid #e2e8f0;border-radius:20px;background:#fff;padding:1rem;box-shadow:0 10px 28px rgba(15,23,42,.05)}.dashboard-section-title{display:flex;justify-content:space-between;margin-bottom:.85rem}.dashboard-shortcut-groups{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.8rem}.shortcut-group{--tone:#2563eb;--soft:#eff6ff;border:1px solid #e2e8f0;border-radius:15px;overflow:hidden}.shortcut-group.tone-2{--tone:#d97706;--soft:#fffbeb}.shortcut-group.tone-3{--tone:#7c3aed;--soft:#f5f3ff}.shortcut-group.tone-4{--tone:#059669;--soft:#ecfdf5}.shortcut-group header{display:flex;align-items:center;gap:.65rem;padding:.8rem;background:var(--soft);color:var(--tone)}.shortcut-group header>i{width:36px;height:36px;display:grid;place-items:center;border-radius:10px;background:#fff}.shortcut-group header span{display:flex;flex-direction:column}.shortcut-group header small{font-size:.65rem;color:#64748b}.shortcut-group nav{display:grid;padding:.55rem}.shortcut-group nav a{padding:.52rem .58rem;border-radius:9px;color:#334155;text-decoration:none;font-size:.76rem;font-weight:700}.shortcut-group nav a:nth-child(even){background:#f8fafc}.shortcut-group nav a:hover{background:var(--soft);color:var(--tone)}
@media(max-width:1199.98px){.dashboard-metric-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.dashboard-shortcut-groups{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:767.98px){.dashboard-hero-v2{grid-template-columns:1fr}.dashboard-main-grid{grid-template-columns:1fr}.dashboard-metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-shortcut-groups{grid-template-columns:1fr}.dashboard-panel-header{align-items:flex-start;flex-direction:column}.dashboard-hero-meta{grid-template-columns:1fr 1fr}.dashboard-hero-meta>div:first-child{grid-column:1/-1}}
@media(max-width:479px){.dashboard-metric-grid{grid-template-columns:1fr}.dashboard-hero-meta{grid-template-columns:1fr}.dashboard-hero-meta>div:first-child{grid-column:auto}}

/* ===== Settings v2 + context navigation ===== */
.settings-page-v2{max-width:1600px;margin-inline:auto;background:linear-gradient(180deg,#f7faff,#fff 24%)}.settings-hero-v2{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:1.35rem 1.5rem;border-radius:22px;background:linear-gradient(135deg,#163a63,#205f8b);color:#fff;box-shadow:0 14px 36px rgba(27,66,105,.18)}.settings-hero-v2 h1{font-size:1.6rem;margin:.6rem 0 .25rem}.settings-hero-v2 p{margin:0;color:#d4e6f3}.settings-hero-help{display:flex;align-items:center;gap:.7rem;max-width:390px;padding:.75rem .85rem;border:1px solid rgba(255,255,255,.16);border-radius:14px;background:rgba(255,255,255,.09)}.settings-hero-help>i{font-size:1.2rem}.settings-hero-help span{display:flex;flex-direction:column}.settings-hero-help small{font-size:.68rem;color:#cae0ef;margin-top:.12rem}
.settings-quick-nav{display:none;position:sticky;top:67px;z-index:1020;gap:.45rem;padding:.65rem;margin:1rem 0;background:rgba(255,255,255,.92);border:1px solid #e2e8f0;border-radius:15px;box-shadow:0 8px 22px rgba(15,23,42,.07);backdrop-filter:blur(10px);overflow:auto}.settings-quick-nav button,.settings-side-nav button{border:0;background:transparent;color:#475569;display:flex;align-items:center;gap:.5rem;border-radius:10px;font-size:.75rem;font-weight:750;white-space:nowrap}.settings-quick-nav button{padding:.48rem .65rem}.settings-quick-nav button:hover,.settings-quick-nav button.is-active,.settings-side-nav button:hover,.settings-side-nav button.is-active{background:#eaf3ff;color:#0d6efd}
.settings-layout-v2{display:grid;grid-template-columns:220px minmax(0,1fr);gap:1rem;margin-top:1rem;align-items:start}.settings-side-nav{position:sticky;top:84px;display:grid;gap:.25rem;padding:.75rem;border:1px solid #e2e8f0;border-radius:17px;background:#fff;box-shadow:0 8px 24px rgba(15,23,42,.055)}.settings-side-nav-title{padding:.35rem .5rem .6rem;font-size:.72rem;font-weight:850;color:#94a3b8;border-bottom:1px solid #eef2f7;margin-bottom:.25rem}.settings-side-nav button{padding:.58rem .65rem;text-align:right}.settings-side-nav button i{width:20px;text-align:center}.settings-content-v2{display:grid;gap:1rem;min-width:0}.settings-panel-v2{--section-tone:#2563eb;--section-soft:#eff6ff;scroll-margin-top:88px;border:1px solid #e1e8f0;border-radius:19px;background:#fff;box-shadow:0 9px 28px rgba(15,23,42,.055);overflow:hidden;transition:box-shadow .2s ease,border-color .2s ease}.settings-panel-v2:nth-child(even){--section-tone:#7c3aed;--section-soft:#f5f3ff}.settings-panel-v2:nth-child(3n){--section-tone:#059669;--section-soft:#ecfdf5}.settings-panel-v2:hover{border-color:#cbd9e8;box-shadow:0 12px 32px rgba(15,23,42,.08)}.settings-panel-header{display:flex;align-items:center;gap:.72rem;padding:.95rem 1rem;background:linear-gradient(135deg,var(--section-soft),#fff 75%);border-bottom:1px solid #e5ebf2}.settings-panel-header>div{flex:1}.settings-panel-header h2{font-size:1rem;color:#1e293b;margin:0}.settings-panel-header p{font-size:.69rem;color:#64748b;margin:.18rem 0 0}.settings-panel-icon{width:42px;height:42px;display:grid;place-items:center;flex:0 0 42px;border-radius:12px;background:#fff;color:var(--section-tone);box-shadow:0 5px 15px rgba(15,23,42,.07)}.settings-panel-badge{padding:.3rem .55rem;border-radius:999px;background:#fff;color:var(--section-tone);font-size:.65rem;font-weight:800;border:1px solid #dce5ef}.settings-panel-body{padding:1rem}.settings-form-grid,.settings-control-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem}.settings-control-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.settings-control-grid.four{grid-template-columns:repeat(4,minmax(0,1fr))}.settings-field{min-width:0;padding:.75rem;border:1px solid #e5ebf2;border-radius:13px;background:#fbfcfe}.settings-field label{font-size:.76rem;font-weight:800;color:#334155}.settings-field small{display:block;color:#7c8797;font-size:.65rem;margin-top:.3rem}.settings-form-actions{grid-column:1/-1;display:flex;justify-content:flex-start}.settings-inline-add,.settings-folder-filter,.settings-action-row{display:flex;align-items:center;gap:.6rem;flex-wrap:wrap}.settings-inline-add .form-control,.settings-folder-filter .form-control{max-width:620px;flex:1 1 300px}.settings-source-list{max-width:900px}.settings-help-note{display:flex;align-items:flex-start;gap:.55rem;padding:.72rem .8rem;border-radius:12px;background:#eff6ff;color:#36566f;border:1px solid #bfdbfe;font-size:.74rem;line-height:1.8}.settings-subcard-head,.settings-switch-row,.settings-danger-zone{display:flex;justify-content:space-between;align-items:center;gap:1rem}.settings-subcard-head>div:first-child,.settings-switch-row>div:first-child,.settings-danger-zone>div:first-child{display:flex;flex-direction:column}.settings-subcard-head small,.settings-switch-row small,.settings-danger-zone small{font-size:.67rem;color:#718096;margin-top:.15rem}.settings-switch-row{padding:.75rem .8rem;border:1px solid #e5ebf2;border-radius:12px;background:#fbfcfe;margin-bottom:.6rem}.settings-danger-zone{padding:.8rem;border:1px solid #fecaca;border-radius:13px;background:#fff7f7;color:#991b1b}.settings-checkbox-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.6rem}.settings-checkbox-grid label{display:flex;align-items:center;gap:.5rem;padding:.68rem;border:1px solid #e2e8f0;border-radius:11px;background:#f8fafc;font-size:.72rem;font-weight:700}.settings-meta-line{padding:.65rem .75rem;border-radius:10px;background:#f8fafc;color:#64748b;font-size:.7rem}.settings-folder-count{display:inline-flex;margin:.75rem 0;padding:.32rem .58rem;border-radius:999px;background:#eff6ff;color:#1d4ed8;font-size:.72rem;font-weight:800}.settings-folder-list{list-style:none;padding:0;margin:0;display:grid;gap:.55rem}.settings-scroll-highlight{animation:settings-highlight 1.4s ease}.settings-context-menu{position:fixed;z-index:3000;display:grid;min-width:245px;padding:.45rem;border:1px solid #dbe4ef;border-radius:14px;background:#fff;box-shadow:0 18px 45px rgba(15,23,42,.2);opacity:0;visibility:hidden;transform:translateY(5px) scale(.98);transition:.14s ease}.settings-context-menu.is-open{opacity:1;visibility:visible;transform:none}.settings-context-title{display:flex;align-items:center;gap:.45rem;padding:.48rem .55rem;color:#64748b;font-size:.7rem;font-weight:850;border-bottom:1px solid #eef2f7;margin-bottom:.25rem}.settings-context-menu button{display:flex;align-items:center;gap:.55rem;border:0;background:transparent;border-radius:9px;padding:.52rem .58rem;color:#334155;text-align:right;font-size:.75rem}.settings-context-menu button:nth-child(odd){background:#f8fafc}.settings-context-menu button:hover{background:#eaf3ff;color:#0d6efd}.settings-context-menu button i{width:20px;text-align:center}
@keyframes settings-highlight{0%,100%{box-shadow:0 9px 28px rgba(15,23,42,.055)}35%{box-shadow:0 0 0 4px rgba(37,99,235,.16),0 14px 35px rgba(15,23,42,.1)}}
@media(max-width:1199.98px){.settings-layout-v2{grid-template-columns:1fr}.settings-side-nav{display:none}.settings-quick-nav{display:flex}.settings-control-grid.four{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:767.98px){.settings-hero-v2{align-items:flex-start;flex-direction:column}.settings-hero-help{max-width:none;width:100%}.settings-form-grid,.settings-control-grid,.settings-control-grid.two,.settings-control-grid.three,.settings-control-grid.four{grid-template-columns:1fr}.settings-checkbox-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.settings-panel-header{align-items:flex-start;flex-wrap:wrap}.settings-panel-header .btn{margin-right:auto}.settings-subcard-head,.settings-switch-row,.settings-danger-zone{align-items:flex-start}.settings-danger-zone{flex-direction:column}.settings-danger-zone .btn{width:100%}}
@media(max-width:479px){.settings-checkbox-grid{grid-template-columns:1fr}.settings-quick-nav{top:59px}.settings-panel-body{padding:.75rem}.settings-panel-header{padding:.8rem}.settings-action-row .btn{flex:1 1 135px}}
@media(prefers-reduced-motion:reduce){.settings-panel-v2,.settings-context-menu,.dashboard-metric-card{transition:none}.settings-scroll-highlight,.admin-session-countdown.is-danger{animation:none}}

/* PATCH-090 — project-local runtime control center */
.runtime-control-panel{--section-tone:#0f766e;--section-soft:#ecfdf5!important}.runtime-overview-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.75rem}.runtime-metric{display:flex;flex-direction:column;gap:.3rem;padding:1rem;border:1px solid #dce8e6;border-radius:16px;background:linear-gradient(145deg,#fff,#f5fbfa)}.runtime-metric>span{font-size:.7rem;font-weight:800;color:#64748b}.runtime-metric>strong{font-size:1.35rem;color:#0f172a}.runtime-metric>strong.is-open{color:#047857}.runtime-metric>strong.is-blocked{color:#b91c1c}.runtime-metric>small{font-size:.65rem;color:#7b8794}.runtime-mode-picker{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.7rem;margin-top:1rem}.runtime-mode-option{position:relative;display:flex;align-items:center;gap:.75rem;padding:.9rem;border:1px solid #dfe7ee;border-radius:15px;background:#fff;text-align:right;color:#334155;transition:.18s ease}.runtime-mode-option>i{width:38px;height:38px;display:grid;place-items:center;border-radius:11px;background:#eff6ff;color:#2563eb;font-size:1.15rem}.runtime-mode-option span{display:flex;flex-direction:column;gap:.12rem}.runtime-mode-option small{font-size:.63rem;color:#718096}.runtime-mode-option em{position:absolute;left:.65rem;top:.65rem;width:10px;height:10px;border:2px solid #cbd5e1;border-radius:50%}.runtime-mode-option.is-selected{border-color:#2563eb;box-shadow:0 0 0 3px #dbeafe}.runtime-mode-option.is-selected em{background:#2563eb;border-color:#2563eb}.runtime-mode-option.is-active:after{content:'فعال';position:absolute;left:.55rem;bottom:.5rem;padding:.15rem .35rem;border-radius:999px;background:#dcfce7;color:#047857;font-size:.55rem;font-style:normal;font-weight:900}.runtime-process-board{margin-top:1rem;border:1px solid #e2e8f0;border-radius:15px;overflow:hidden}.runtime-board-head{display:flex;justify-content:space-between;align-items:center;padding:.75rem .85rem;background:#f8fafc;border-bottom:1px solid #e7edf3}.runtime-board-head>div{display:flex;flex-direction:column}.runtime-board-head small{font-size:.62rem;color:#7c8797}.runtime-process-list,.runtime-live-runs{display:grid;gap:.45rem;padding:.65rem;max-height:300px;overflow:auto}.runtime-process-item{display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:.6rem;padding:.62rem .68rem;border:1px solid #e6ebf1;border-radius:11px;background:#fff}.runtime-process-item>i{width:32px;height:32px;display:grid;place-items:center;border-radius:9px;background:#f1f5f9;color:#475569}.runtime-process-item>div{display:flex;flex-direction:column}.runtime-process-item small{font-size:.61rem;color:#718096;direction:ltr;text-align:right}.runtime-process-item>span{font-size:.58rem;font-weight:850;padding:.22rem .4rem;border-radius:999px}.runtime-process-item.is-safe>span{background:#dcfce7;color:#047857}.runtime-process-item.is-busy>span{background:#fff7ed;color:#c2410c}.runtime-empty{padding:1.2rem;text-align:center;color:#94a3b8;font-size:.7rem}.runtime-action-bar{display:flex;align-items:center;gap:.55rem;flex-wrap:wrap;margin-top:1rem}.runtime-action-bar>span{font-size:.68rem;color:#64748b}.settings-panel-badge.is-online{background:#dcfce7;color:#047857;border-color:#bbf7d0}
.runtime-control-modal .modal-content{border:0;border-radius:24px;overflow:hidden;box-shadow:0 28px 90px rgba(2,6,23,.35)}.runtime-modal-header{align-items:flex-start;padding:1.15rem 1.3rem;background:radial-gradient(circle at 15% 10%,#2563eb,#102a50 62%);color:#fff}.runtime-modal-header p{margin:.25rem 0 0;color:#c7ddf4;font-size:.7rem}.runtime-modal-kicker{font-size:.62rem;font-weight:850;color:#93c5fd}.runtime-policy-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem}.runtime-policy-card{display:grid;grid-template-columns:48px minmax(0,1fr) 22px;align-items:center;gap:.75rem;padding:1rem;border:1px solid #dfe6ee;border-radius:17px;background:#fff;text-align:right}.runtime-policy-card>span:nth-child(2){display:flex;flex-direction:column;gap:.25rem}.runtime-policy-card small{font-size:.67rem;line-height:1.8;color:#66758a}.runtime-policy-icon{width:46px;height:46px;display:grid;place-items:center;border-radius:14px;background:#eff6ff;color:#2563eb;font-size:1.2rem}.runtime-policy-check{color:#cbd5e1}.runtime-policy-card.is-selected{border-color:#2563eb;background:#f8fbff;box-shadow:0 0 0 3px #dbeafe}.runtime-policy-card.is-selected .runtime-policy-check{color:#2563eb}.runtime-confirm-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem;margin-top:1rem}.runtime-confirm-grid label{display:flex;flex-direction:column;gap:.35rem;font-size:.7rem;font-weight:800;color:#334155}.runtime-confirm-grid .runtime-reason{grid-column:1/-1}.runtime-progress-hero{display:flex;align-items:center;gap:1rem;padding:1rem;border-radius:18px;background:linear-gradient(135deg,#eff6ff,#ecfdf5)}.runtime-progress-ring{--runtime-progress:0deg;width:86px;height:86px;display:grid;place-items:center;flex:0 0 86px;border-radius:50%;background:conic-gradient(#2563eb var(--runtime-progress),#dbeafe 0);position:relative}.runtime-progress-ring:before{content:'';position:absolute;inset:9px;border-radius:50%;background:#fff}.runtime-progress-ring span{position:relative;font-weight:900;color:#1e3a8a}.runtime-progress-hero>div:last-child{display:flex;flex-direction:column;gap:.25rem}.runtime-progress-hero small{direction:ltr;text-align:right;color:#64748b}.runtime-stage-line{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:.45rem;margin:1rem 0}.runtime-stage-line>div{position:relative;display:flex;flex-direction:column;align-items:center;gap:.35rem;padding:.65rem .35rem;color:#94a3b8;text-align:center;font-size:.59rem}.runtime-stage-line>div i{width:34px;height:34px;display:grid;place-items:center;border-radius:50%;background:#f1f5f9}.runtime-stage-line>div.is-current{color:#1d4ed8;font-weight:900}.runtime-stage-line>div.is-current i{background:#dbeafe;box-shadow:0 0 0 5px #eff6ff}.runtime-stage-line>div.is-done{color:#047857}.runtime-stage-line>div.is-done i{background:#dcfce7}.runtime-live-runs{padding:0;max-height:220px}
.uptodown-chrome-card{position:relative;display:grid;grid-template-columns:92px minmax(0,1fr);gap:1rem;align-items:center;margin-top:1rem;padding:1rem 1.1rem;border:1px solid #d8e6f5;border-radius:20px;overflow:hidden;background:radial-gradient(circle at 8% 15%,rgba(59,130,246,.13),transparent 28%),linear-gradient(135deg,#f8fbff,#f4fffb);transition:.2s ease}.uptodown-chrome-card:after{content:'';position:absolute;inset:auto -80px -110px auto;width:230px;height:230px;border-radius:50%;background:rgba(16,185,129,.07);pointer-events:none}.uptodown-chrome-card.is-active{border-color:#60a5fa;box-shadow:0 10px 32px rgba(37,99,235,.12)}.uptodown-chrome-card.is-error{border-color:#fecaca;background:linear-gradient(135deg,#fff7f7,#fff)}.uptodown-chrome-orbit{position:relative;width:78px;height:78px;display:grid;place-items:center;border-radius:50%;background:#fff;box-shadow:0 8px 24px rgba(30,64,175,.12)}.uptodown-chrome-orbit:before,.uptodown-chrome-orbit span{content:'';position:absolute;inset:-6px;border:2px dashed #bfdbfe;border-radius:50%}.uptodown-chrome-card.is-active .uptodown-chrome-orbit:before{animation:uptodown-chrome-spin 5s linear infinite;border-color:#3b82f6}.uptodown-chrome-orbit span{inset:7px;border-style:solid;border-color:#dbeafe}.uptodown-chrome-orbit i{position:relative;font-size:2rem;color:#2563eb}.uptodown-chrome-card.is-running .uptodown-chrome-orbit i{color:#059669}.uptodown-chrome-copy{min-width:0}.uptodown-chrome-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:.8rem}.uptodown-chrome-heading h3{margin:.15rem 0 0;font-size:1rem;color:#0f172a}.uptodown-chrome-copy>p{margin:.45rem 0 .75rem;font-size:.68rem;color:#64748b}.uptodown-chrome-badge{display:inline-flex;align-items:center;gap:.35rem;white-space:nowrap;padding:.34rem .55rem;border:1px solid #dbe5ef;border-radius:999px;background:#fff;color:#64748b;font-size:.62rem;font-weight:900}.uptodown-chrome-badge i{width:8px;height:8px;border-radius:50%;background:#94a3b8}.uptodown-chrome-badge.is-online{color:#047857;border-color:#bbf7d0;background:#ecfdf5}.uptodown-chrome-badge.is-online i{background:#10b981;box-shadow:0 0 0 4px #d1fae5}.uptodown-chrome-badge.is-offline{color:#b45309;border-color:#fde68a;background:#fffbeb}.uptodown-chrome-badge.is-offline i{background:#f59e0b}.uptodown-chrome-badge.is-error{color:#b91c1c;border-color:#fecaca;background:#fff1f2}.uptodown-chrome-badge.is-error i{background:#ef4444}.uptodown-chrome-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.55rem}.uptodown-chrome-stats>span{display:flex;min-width:0;flex-direction:column;gap:.15rem;padding:.55rem .65rem;border:1px solid rgba(203,213,225,.65);border-radius:12px;background:rgba(255,255,255,.75)}.uptodown-chrome-stats small{font-size:.56rem;color:#7c8797}.uptodown-chrome-stats strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.68rem;color:#1e293b}.uptodown-chrome-actions{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap;margin-top:.75rem}.uptodown-chrome-actions small{margin-inline-start:auto;color:#64748b;font-size:.58rem}.uptodown-chrome-actions .btn{font-size:.65rem}.uptodown-chrome-actions .btn:disabled{opacity:.7}@keyframes uptodown-chrome-spin{to{transform:rotate(360deg)}}
@media(max-width:768px){.runtime-overview-grid,.runtime-mode-picker,.runtime-policy-grid,.runtime-confirm-grid{grid-template-columns:1fr}.runtime-confirm-grid .runtime-reason{grid-column:auto}.runtime-stage-line{grid-template-columns:repeat(5,110px);overflow-x:auto;justify-content:start}.runtime-control-modal .modal-dialog{margin:.5rem}.runtime-action-bar .btn{flex:1 1 100%}.uptodown-chrome-card{grid-template-columns:1fr}.uptodown-chrome-orbit{margin:auto}.uptodown-chrome-heading{align-items:center}.uptodown-chrome-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.uptodown-chrome-actions .btn{flex:1 1 100%}.uptodown-chrome-actions small{margin:0;width:100%;text-align:center}}

.settings-legacy-anchor {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  pointer-events: none;
}

/* ===== Post editor UX refresh: compact navigation, clearer fields and version tones ===== */
#postEditPage{
  --post-editor-border:#dbe4ef;
  --post-editor-muted:#64748b;
  --post-editor-surface:#ffffff;
  --post-editor-soft:#f8fafc;
}

.post-editor-quicknav{
  position:sticky;
  top:70px;
  z-index:1025;
  display:flex;
  align-items:center;
  gap:.75rem;
  margin:1rem 0 .85rem;
  padding:.58rem .65rem;
  direction:rtl;
  border:1px solid rgba(148,163,184,.32);
  border-radius:16px;
  background:rgba(255,255,255,.94);
  box-shadow:0 10px 30px rgba(15,23,42,.09);
  backdrop-filter:blur(12px);
}
.post-editor-quicknav[hidden]{display:none!important}
.post-editor-quicknav-label{
  display:inline-flex;
  align-items:center;
  gap:.42rem;
  flex:0 0 auto;
  padding:.45rem .65rem;
  color:#334155;
  font-size:.82rem;
  font-weight:800;
  white-space:nowrap;
}
.post-editor-quicknav-label i{color:#2563eb}
.post-editor-quicknav-items{
  display:flex;
  align-items:center;
  gap:.35rem;
  min-width:0;
  flex:1 1 auto;
  overflow-x:auto;
  overscroll-behavior-inline:contain;
  scrollbar-width:thin;
  padding:.1rem;
}
.post-edit-nav-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.38rem;
  flex:0 0 auto;
  min-height:36px;
  padding:.43rem .68rem;
  border:1px solid transparent;
  border-radius:10px;
  background:transparent;
  color:#475569;
  font-size:.78rem;
  font-weight:700;
  white-space:nowrap;
  transition:background .18s ease,color .18s ease,border-color .18s ease,transform .18s ease;
}
.post-edit-nav-link i{font-size:.78rem;color:#94a3b8;transition:color .18s ease}
.post-edit-nav-index{
  display:inline-grid;
  place-items:center;
  min-width:20px;
  height:20px;
  padding:0 5px;
  border:1px solid #dbe4ef;
  border-radius:7px;
  background:#f8fafc;
  color:#64748b;
  font-size:.64rem;
  font-weight:800;
  line-height:1;
  direction:ltr;
}
.post-edit-nav-link.is-active .post-edit-nav-index,
.post-edit-nav-link:hover .post-edit-nav-index,
.post-edit-nav-link:focus-visible .post-edit-nav-index{border-color:#93c5fd;background:#fff;color:#1d4ed8}
.post-edit-nav-link:hover,
.post-edit-nav-link:focus-visible{
  color:#1d4ed8;
  border-color:#bfdbfe;
  background:#eff6ff;
  outline:none;
  transform:translateY(-1px);
}
.post-edit-nav-link:hover i,
.post-edit-nav-link:focus-visible i,
.post-edit-nav-link.is-active i{color:#2563eb}
.post-edit-nav-link.is-active{
  color:#1d4ed8;
  border-color:#93c5fd;
  background:linear-gradient(180deg,#eff6ff,#dbeafe);
  box-shadow:0 4px 12px rgba(37,99,235,.12);
}
.post-edit-nav-link--save{
  color:#166534;
  background:#f0fdf4;
  border-color:#bbf7d0;
}
.post-edit-nav-link--save i{color:#16a34a}
.post-edit-nav-link--save:hover,
.post-edit-nav-link--save:focus-visible,
.post-edit-nav-link--save.is-active{
  color:#14532d;
  border-color:#86efac;
  background:linear-gradient(180deg,#f0fdf4,#dcfce7);
}
.post-editor-quicknav-hint{
  flex:0 0 auto;
  max-width:180px;
  color:#94a3b8;
  font-size:.68rem;
  line-height:1.55;
}

.post-editor-form{display:flex;flex-direction:column;gap:.25rem}
.post-editor-section,
.post-editor-card{
  border:1px solid var(--post-editor-border)!important;
  border-radius:18px!important;
  background:var(--post-editor-surface);
  box-shadow:0 7px 24px rgba(15,23,42,.055)!important;
  overflow:hidden;
}
.post-editor-section-heading{
  display:flex;
  align-items:center;
  gap:.8rem;
  padding:1rem 1.15rem;
  border-bottom:1px solid #e8eef5;
  background:linear-gradient(135deg,#f8fafc 0%,#ffffff 72%);
}
.post-editor-section-heading h4{
  margin:0;
  color:#1e293b;
  font-size:1rem;
  font-weight:850;
}
.post-editor-section-heading p{
  margin:.2rem 0 0;
  color:var(--post-editor-muted);
  font-size:.78rem;
  line-height:1.7;
}
.post-editor-section-icon{
  display:grid;
  place-items:center;
  flex:0 0 40px;
  width:40px;
  height:40px;
  border-radius:12px;
  color:#1d4ed8;
  background:#dbeafe;
  box-shadow:inset 0 0 0 1px #bfdbfe;
}
.post-editor-section-body{padding:1.15rem}
.post-editor-section--content .post-editor-section-icon{color:#7c3aed;background:#ede9fe;box-shadow:inset 0 0 0 1px #ddd6fe}
.post-editor-section--sources .post-editor-section-icon{color:#0369a1;background:#e0f2fe;box-shadow:inset 0 0 0 1px #bae6fd}

#postEditForm .form-label{
  margin-bottom:.42rem;
  color:#334155;
  font-size:.82rem;
  font-weight:750;
}
#postEditForm .form-control,
#postEditForm .form-select{
  min-height:44px;
  border:1.5px solid #b9c7d8;
  border-radius:10px;
  background-color:#fcfdff;
  color:#172033;
  box-shadow:inset 0 1px 2px rgba(15,23,42,.035);
  transition:border-color .18s ease,box-shadow .18s ease,background-color .18s ease;
}
#postEditForm textarea.form-control{min-height:130px;line-height:1.85;resize:vertical}
#postEditForm #editor{min-height:310px;background:#fff}
#postEditForm .form-control::placeholder{color:#94a3b8;opacity:1}
#postEditForm .form-control:hover,
#postEditForm .form-select:hover{border-color:#8fa5be;background-color:#fff}
#postEditForm .form-control:focus,
#postEditForm .form-select:focus{
  border-color:#3b82f6;
  background-color:#fff;
  box-shadow:0 0 0 .23rem rgba(59,130,246,.13),inset 0 1px 2px rgba(15,23,42,.02);
}
#postEditForm .form-text{color:#718096;font-size:.74rem;line-height:1.65}
#postEditForm .input-group>.btn{min-height:44px;border-radius:10px 0 0 10px;font-size:.78rem;font-weight:750}
#postEditForm .input-group>.form-control{border-radius:0 10px 10px 0}

.manual-versions-card>.card-header,
.post-editor-card>.card-header{
  padding:.85rem 1rem;
  border-bottom:1px solid #e5edf5;
  background:linear-gradient(180deg,#f8fafc,#fff);
  color:#334155;
  font-weight:800;
}
.manual-versions-card>.card-body,
.post-editor-card>.card-body{padding:1rem}

.version-tone--original{--version-accent:#2563eb;--version-accent-rgb:37,99,235;--version-soft:#eff6ff;--version-soft-strong:#dbeafe}
.version-tone--mod{--version-accent:#7c3aed;--version-accent-rgb:124,58,237;--version-soft:#f5f3ff;--version-soft-strong:#ede9fe}
.version-tone--unlocked{--version-accent:#059669;--version-accent-rgb:5,150,105;--version-soft:#ecfdf5;--version-soft-strong:#d1fae5}
.version-tone--beta{--version-accent:#d97706;--version-accent-rgb:217,119,6;--version-soft:#fffbeb;--version-soft-strong:#fef3c7}
.version-field-surface{
  height:100%;
  padding:.9rem;
  border:1px solid rgba(var(--version-accent-rgb),.28);
  border-top:4px solid var(--version-accent);
  border-radius:14px;
  background:linear-gradient(145deg,var(--version-soft),#fff 72%);
  box-shadow:0 5px 15px rgba(var(--version-accent-rgb),.07);
}
.version-field-card .form-label{color:var(--version-accent)!important;font-weight:850!important}
.version-field-card .version-input{
  border-color:rgba(var(--version-accent-rgb),.45)!important;
  background:var(--version-soft)!important;
  color:#172033;
  font-weight:750;
  direction:ltr;
  text-align:left;
}
.version-field-card .version-input:focus{
  border-color:var(--version-accent)!important;
  background:#fff!important;
  box-shadow:0 0 0 .22rem rgba(var(--version-accent-rgb),.14)!important;
}
.version-field-card .js-save-ver{
  border-color:var(--version-accent)!important;
  background:var(--version-accent)!important;
  color:#fff!important;
}
.version-field-card .js-save-ver:hover,
.version-field-card .js-save-ver:focus-visible{filter:brightness(.92)}

.version-source-card{
  border:1px solid rgba(var(--version-accent-rgb),.28)!important;
  border-right:5px solid var(--version-accent)!important;
  border-radius:15px!important;
  box-shadow:0 8px 22px rgba(var(--version-accent-rgb),.075)!important;
  overflow:hidden;
}
.version-source-card>.card-header{
  padding:.9rem 1rem;
  border-bottom:1px solid rgba(var(--version-accent-rgb),.18);
  background:linear-gradient(135deg,var(--version-soft-strong),#fff 76%);
}
.version-source-card>.card-header strong{color:var(--version-accent);font-size:.95rem}
.version-source-card>.card-body{padding:.9rem}
.version-source-card .table-responsive{
  overflow-x:auto!important;
  border:1px solid rgba(var(--version-accent-rgb),.16);
  border-radius:12px;
  background:#fff;
}
#postEditForm .version-source-card .vs-table{
  min-width:1140px;
  margin-bottom:0;
  table-layout:fixed;
}
#postEditForm .version-source-card .vs-table thead th{
  height:44px;
  padding:.5rem .42rem;
  border-bottom:1px solid rgba(var(--version-accent-rgb),.22);
  background:var(--version-soft)!important;
  color:#334155;
  vertical-align:middle;
  font-size:.73rem;
  font-weight:800;
  text-align:center;
}
#postEditForm .version-source-card .vs-table td{
  height:54px;
  padding:.42rem .35rem;
  border-color:#edf2f7;
  vertical-align:middle;
}
#postEditForm .version-source-card .vs-row:nth-child(even) td{background:rgba(var(--version-accent-rgb),.035)}
#postEditForm .version-source-card .vs-row:hover td{background:rgba(var(--version-accent-rgb),.075)}
#postEditForm .version-source-card .vs-table .form-control,
#postEditForm .version-source-card .vs-table .form-select{
  min-height:38px;
  border-color:rgba(var(--version-accent-rgb),.3);
  border-radius:8px;
  background:rgba(var(--version-accent-rgb),.035);
}
#postEditForm .version-source-card .vs-table .form-control:focus,
#postEditForm .version-source-card .vs-table .form-select:focus{
  border-color:var(--version-accent);
  background:#fff;
  box-shadow:0 0 0 .18rem rgba(var(--version-accent-rgb),.12);
}
#postEditForm .version-source-card .vs-actions-group{gap:.28rem;justify-content:center;flex-wrap:wrap}
#postEditForm .version-source-card .vs-actions-group .btn{min-height:31px;padding:.28rem .42rem;border-radius:7px}
.version-source-card>.card-body>.d-flex{align-items:center;flex-wrap:wrap;gap:.45rem!important;margin-top:.75rem}
.version-source-card .vs-msg{display:inline-flex;align-items:center;min-height:30px;padding:.25rem .5rem;border-radius:8px}

#uploadDirBox,#postCats,#post-cron-card,#publicationDateBox{scroll-margin-top:145px}
#postEditPage .post-edit-scroll-target{scroll-margin-top:145px}
#postSaveActions{
  padding:.8rem;
  border:1px solid #dce6f1;
  border-radius:14px;
  background:linear-gradient(180deg,#fff,#f8fafc);
}
#postSaveActions .btn{min-height:40px;border-radius:9px;font-size:.82rem;font-weight:750}

/* Smaller floating save shortcut; it remains visible for four seconds after scrolling. */
.post-save-jump{
  right:16px;
  top:92px;
  gap:.3rem;
  padding:.45rem .68rem;
  min-height:34px;
  border:1px solid rgba(255,255,255,.34);
  font-size:.76rem;
  font-weight:750;
  box-shadow:0 8px 22px rgba(13,110,253,.24);
  transform:translateY(8px) scale(.96);
}
.post-save-jump>span:first-child{font-size:.86rem;line-height:1}
.post-save-jump:hover,
.post-save-jump:focus-visible{box-shadow:0 10px 25px rgba(13,110,253,.33)}
.post-scroll-top{
  position:fixed;
  right:16px;
  bottom:18px;
  z-index:1080;
  display:grid;
  place-items:center;
  width:40px;
  height:40px;
  padding:0;
  border:1px solid rgba(255,255,255,.45);
  border-radius:13px;
  background:linear-gradient(145deg,#1d4ed8,#2563eb);
  color:#fff;
  box-shadow:0 10px 26px rgba(37,99,235,.28);
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transform:translateY(10px) scale(.94);
  transition:opacity .2s ease,transform .2s ease,visibility .2s ease,box-shadow .2s ease;
}
.post-scroll-top.is-visible{opacity:1;visibility:visible;pointer-events:auto;transform:translateY(0) scale(1)}
.post-scroll-top:hover,.post-scroll-top:focus-visible{color:#fff;background:#1d4ed8;box-shadow:0 13px 30px rgba(37,99,235,.38);outline:none}
.post-scroll-top i{font-size:.88rem}

/* Compact right-click menu: same main destinations as the visible quick navigation. */
.post-edit-context-menu--compact{width:min(310px,calc(100vw - 20px));padding:.5rem}
.post-edit-context-menu-header{
  display:flex;
  flex-direction:column;
  gap:.15rem;
  margin:-.05rem -.05rem .4rem;
  padding:.65rem .7rem;
  border-radius:11px;
  background:linear-gradient(135deg,#eff6ff,#f8fafc);
  color:#1e3a8a;
}
.post-edit-context-menu-header strong{font-size:.87rem}
.post-edit-context-menu-header span{color:#64748b;font-size:.68rem}
.post-edit-context-menu-list{display:flex;flex-direction:column;gap:.16rem}
.post-edit-context-menu--compact .post-edit-context-menu-button:nth-child(even){background:#f8fafc}
.post-edit-context-menu--compact .post-edit-context-menu-button.is-save{color:#166534;background:#f0fdf4}
.post-edit-context-menu-main{display:flex;align-items:center;gap:.55rem;min-width:0}
.post-edit-context-menu-main i{width:18px;color:#64748b;text-align:center}
.post-edit-context-menu-button:hover .post-edit-context-menu-main i,
.post-edit-context-menu-button:focus-visible .post-edit-context-menu-main i{color:#2563eb}
.post-edit-context-menu--compact .post-edit-context-menu-shortcut{
  display:inline-grid;
  place-items:center;
  width:22px;
  height:22px;
  border:1px solid #dbe4ef;
  border-radius:7px;
  background:#fff;
  color:#64748b;
  font-size:.66rem;
}

@media (max-width:991.98px){
  .post-editor-quicknav{top:62px;gap:.25rem;padding:.45rem}
  .post-editor-quicknav-label span,.post-editor-quicknav-hint{display:none}
  .post-editor-quicknav-label{padding:.42rem .5rem}
  .post-edit-nav-link{padding:.42rem .58rem;font-size:.74rem}
  .post-editor-section-body{padding:.9rem}
  #postEditForm .version-source-card .vs-table{min-width:1080px}
}
@media (max-width:575.98px){
  .post-editor-quicknav{margin-inline:-.2rem;border-radius:13px}
  .post-editor-section-heading{align-items:flex-start;padding:.85rem}
  .post-editor-section-heading p{display:none}
  .post-editor-section-icon{width:36px;height:36px;flex-basis:36px;border-radius:10px}
  .post-editor-section-body{padding:.78rem}
  .manual-versions-card>.card-body,.post-editor-card>.card-body{padding:.78rem}
  .version-field-surface{padding:.75rem}
  #postEditForm .form-control,#postEditForm .form-select{min-height:42px}
  #postSaveActions{align-items:stretch!important}
  #postSaveActions .btn{flex:1 1 100%}
  .post-save-jump{right:10px;top:72px;max-width:none;padding:.42rem .62rem;font-size:.72rem}
  .post-scroll-top{right:10px;bottom:12px;width:38px;height:38px;border-radius:12px}
}
@media (prefers-reduced-motion:reduce){
  .post-edit-nav-link{transition:none}
  .post-scroll-top{transition:none}
}

/* ===== Per-admin post editor section visibility menu ===== */
.post-editor-sections-menu{
  position:relative;
  flex:0 0 auto;
  z-index:1045;
}
.post-editor-sections-summary{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.42rem;
  min-height:36px;
  padding:.42rem .62rem;
  border:1px solid #cbd5e1;
  border-radius:10px;
  background:linear-gradient(180deg,#fff,#f8fafc);
  color:#334155;
  cursor:pointer;
  list-style:none;
  font-size:.76rem;
  font-weight:800;
  white-space:nowrap;
  user-select:none;
  transition:border-color .18s ease,box-shadow .18s ease,background .18s ease;
}
.post-editor-sections-summary::-webkit-details-marker{display:none}
.post-editor-sections-summary:hover,
.post-editor-sections-summary:focus-visible,
.post-editor-sections-menu[open]>.post-editor-sections-summary{
  border-color:#93c5fd;
  background:#eff6ff;
  box-shadow:0 0 0 3px rgba(37,99,235,.1);
  outline:none;
}
.post-editor-sections-summary>i:first-child{color:#2563eb}
.post-editor-sections-count{
  display:inline-grid;
  place-items:center;
  min-width:23px;
  height:23px;
  padding:0 .35rem;
  border-radius:999px;
  background:#dbeafe;
  color:#1d4ed8;
  font-size:.66rem;
  font-weight:900;
}
.post-editor-sections-chevron{
  color:#94a3b8;
  font-size:.65rem;
  transition:transform .18s ease;
}
.post-editor-sections-menu[open] .post-editor-sections-chevron{transform:rotate(180deg)}
.post-editor-sections-panel{
  position:fixed;
  inset:auto;
  z-index:12500;
  width:min(520px,calc(100vw - 30px));
  max-height:min(72vh,620px);
  overflow:auto;
  padding:.72rem;
  border:1px solid #dbe4ef;
  border-radius:16px;
  background:#fff;
  box-shadow:0 22px 55px rgba(15,23,42,.22);
  overscroll-behavior:contain;
}
.post-editor-sections-panel.is-portaled{margin:0!important}
.post-editor-sections-panel-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:.7rem;
  padding:.2rem .2rem .65rem;
  border-bottom:1px solid #eef2f7;
}
.post-editor-sections-panel-head strong{display:block;color:#1e293b;font-size:.84rem}
.post-editor-sections-panel-head small{display:block;margin-top:.18rem;color:#64748b;font-size:.66rem;line-height:1.65}
.post-editor-sections-options{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:.45rem;
  padding:.65rem 0;
}
.post-editor-section-option{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:.65rem;
  min-width:0;
  min-height:66px;
  padding:.65rem .7rem;
  border:1px solid #e2e8f0;
  border-radius:12px;
  background:#fff;
  cursor:pointer;
  overflow:hidden;
  transition:border-color .16s ease,background .16s ease,transform .16s ease,box-shadow .16s ease;
}
.post-editor-section-option.is-alt{background:#f8fafc}
.post-editor-section-option:hover{
  border-color:#bfdbfe;
  background:#eff6ff;
  transform:translateY(-1px);
}
.post-editor-section-option:has(input:disabled){cursor:not-allowed;background:#f8fafc}
.post-editor-section-switch{
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  min-width:48px;
  padding:.35rem!important;
  border:1px solid #dbeafe;
  border-radius:999px;
  background:#eff6ff;
  overflow:hidden;
}
.post-editor-section-option:has(input:disabled) .post-editor-section-switch{border-color:#e2e8f0;background:#f1f5f9}
.post-editor-section-switch.form-switch{padding-right:.35rem!important;padding-left:.35rem!important}
.post-editor-section-switch .form-check-input{float:none!important;margin:0!important;cursor:pointer}
.post-editor-section-switch .form-check-input:disabled{cursor:not-allowed;opacity:.72}
.post-editor-section-option-text{display:flex;flex-direction:column;min-width:0}
.post-editor-section-option-text strong{
  overflow:hidden;
  color:#334155;
  font-size:.72rem;
  font-weight:800;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.post-editor-section-option-text small{margin-top:.08rem;color:#94a3b8;font-size:.59rem}
.post-editor-sections-actions{
  display:flex;
  align-items:center;
  gap:.4rem;
  flex-wrap:wrap;
  padding-top:.6rem;
  border-top:1px solid #eef2f7;
}
.post-editor-sections-state{
  display:flex;
  align-items:center;
  gap:.38rem;
  min-height:30px;
  margin-top:.55rem;
  padding:.42rem .55rem;
  border-radius:9px;
  background:#f0fdf4;
  color:#166534;
  font-size:.65rem;
  line-height:1.55;
}
.post-editor-sections-state.is-saving{background:#eff6ff;color:#1d4ed8}
.post-editor-sections-state.is-error{background:#fef2f2;color:#b91c1c}
.post-editor-sections-state.is-success{background:#f0fdf4;color:#166534}
#postEditPage [data-editor-section][hidden],
#postEditorQuickNav [data-editor-section-link][hidden]{display:none!important}

@media (max-width:991.98px){
  .post-editor-sections-summary>span:not(.post-editor-sections-count){display:none}
  .post-editor-sections-summary{padding:.42rem .5rem}
}
@media (max-width:575.98px){
  .post-editor-sections-panel{
    width:calc(100vw - 20px)!important;
  }
  .post-editor-sections-options{grid-template-columns:1fr}
  .post-editor-sections-actions .btn{flex:1 1 30%}
}
@media (prefers-reduced-motion:reduce){
  .post-editor-sections-summary,
  .post-editor-section-option,
  .post-editor-sections-chevron{transition:none}
}


/* Post content editor mode selector and lazy editor host */
.post-editor-sections-subtitle{padding:.55rem .7rem .35rem;color:#334155;font-size:.72rem;font-weight:800}
.post-content-editor-mode-picker{margin:.65rem;border:1px solid #dbeafe;border-radius:13px;background:linear-gradient(145deg,#f8fbff,#fff);overflow:hidden}
.post-content-editor-mode-title{display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:.65rem .75rem;border-bottom:1px solid #e5edf7}
.post-content-editor-mode-title>span{display:flex;align-items:center;gap:.45rem;color:#1e3a8a;font-size:.78rem;font-weight:800}
.post-content-editor-mode-title>span i{color:#2563eb}
.post-content-editor-mode-title small{color:#64748b;font-size:.65rem}
.post-content-editor-mode-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.45rem;padding:.6rem}
.post-content-editor-mode-option{display:grid;grid-template-columns:auto auto minmax(0,1fr);align-items:center;gap:.55rem;padding:.62rem;border:1px solid #dbe4ef;border-radius:11px;background:#fff;cursor:pointer;transition:border-color .15s,background-color .15s,box-shadow .15s}
.post-content-editor-mode-option.is-alt{background:#f8fafc}.post-content-editor-mode-option:hover{border-color:#93c5fd;background:#eff6ff}.post-content-editor-mode-option:has(input:checked){border-color:#60a5fa;background:#eff6ff;box-shadow:0 0 0 2px rgba(59,130,246,.1)}
.post-content-editor-mode-option input{width:1rem;height:1rem;margin:0;accent-color:#2563eb}
.post-content-editor-mode-option-icon{display:flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:8px;background:#e0e7ff;color:#3730a3}
.post-content-editor-mode-option-text{min-width:0}.post-content-editor-mode-option-text strong{display:block;color:#1e293b;font-size:.73rem}.post-content-editor-mode-option-text small{display:block;margin-top:.12rem;color:#64748b;font-size:.61rem;line-height:1.55}
.post-content-editor-mode-state{display:flex;align-items:center;gap:.4rem;margin:0 .6rem .6rem;padding:.45rem .6rem;border-radius:9px;background:#f1f5f9;color:#475569;font-size:.65rem}
.post-content-editor-mode-state.is-saving,.post-content-editor-mode-state.is-loading{background:#eff6ff;color:#1d4ed8}.post-content-editor-mode-state.is-error{background:#fef2f2;color:#b91c1c}.post-content-editor-mode-state.is-success{background:#f0fdf4;color:#166534}
.post-content-editor-field-head{display:flex;align-items:center;justify-content:space-between;gap:.75rem;margin-bottom:.45rem}
.post-content-editor-current-mode{display:inline-flex;align-items:center;gap:.35rem;padding:.28rem .55rem;border:1px solid #dbeafe;border-radius:999px;background:#eff6ff;color:#1d4ed8;font-size:.68rem;font-weight:700}
.post-content-editor-host{position:relative;min-height:120px}.post-content-editor-loading{display:flex;align-items:center;justify-content:center;gap:.55rem;min-height:120px;border:1px dashed #93c5fd;border-radius:12px;background:#eff6ff;color:#1d4ed8;font-size:.8rem}.post-content-editor-loading[hidden]{display:none!important}
.post-content-editor-host textarea[data-post-content-source]{min-height:390px;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;direction:rtl;text-align:right;line-height:1.85}.post-content-editor-host textarea[data-post-content-source][hidden]{display:none!important}.post-content-editor-help{line-height:1.75}
@media(max-width:767.98px){.post-content-editor-mode-options{grid-template-columns:1fr}.post-content-editor-mode-title{align-items:flex-start;flex-direction:column}.post-content-editor-field-head{align-items:flex-start;flex-direction:column}}

/* ===== Post editor quick navigation layout fix ===== */
.post-editor-quicknav{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:0;
  padding:0;
  overflow:visible;
}
.post-editor-quicknav-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  min-width:0;
  padding:.62rem .75rem;
  border-bottom:1px solid #e9eef5;
  background:linear-gradient(180deg,rgba(248,250,252,.96),rgba(255,255,255,.96));
  border-radius:16px 16px 0 0;
}
.post-editor-quicknav-intro{
  display:flex;
  align-items:center;
  gap:.8rem;
  min-width:0;
}
.post-editor-quicknav-label{
  padding:.35rem .42rem;
  font-size:.8rem;
}
.post-editor-quicknav-hint{
  display:inline-flex;
  align-items:center;
  gap:.38rem;
  max-width:none;
  min-width:0;
  color:#64748b;
  font-size:.68rem;
  line-height:1.65;
}
.post-editor-quicknav-hint i{color:#94a3b8;flex:0 0 auto}
.post-editor-quicknav-track{
  min-width:0;
  padding:.55rem .65rem .62rem;
  border-radius:0 0 16px 16px;
  background:#fff;
}
.post-editor-quicknav-items{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-start;
  gap:.38rem;
  overflow:visible;
  padding:0;
  scrollbar-width:none;
}
.post-editor-quicknav-items::-webkit-scrollbar{display:none}
.post-edit-nav-link{
  flex:1 1 auto;
  min-width:max-content;
  min-height:38px;
  padding:.45rem .72rem;
  border-color:#e2e8f0;
  background:#fff;
}
.post-editor-quicknav .post-editor-sections-menu{margin-inline-start:auto}

@media (max-width:991.98px){
  .post-editor-quicknav{top:62px;padding:0;gap:0}
  .post-editor-quicknav-head{padding:.5rem .58rem}
  .post-editor-quicknav-label span{display:inline}
  .post-editor-quicknav-hint span{display:none}
  .post-editor-quicknav-hint{width:30px;height:30px;justify-content:center;border:1px solid #e2e8f0;border-radius:9px;background:#fff}
  .post-editor-quicknav-track{padding:.48rem .55rem}
  .post-editor-quicknav-items{
    flex-wrap:nowrap;
    overflow-x:auto;
    overscroll-behavior-inline:contain;
    scroll-snap-type:inline proximity;
  }
  .post-edit-nav-link{flex:0 0 auto;scroll-snap-align:start}
}
@media (max-width:575.98px){
  .post-editor-quicknav{margin-inline:-.2rem;border-radius:13px}
  .post-editor-quicknav-head{gap:.45rem;border-radius:13px 13px 0 0}
  .post-editor-quicknav-label{font-size:.74rem;padding:.3rem}
  .post-editor-quicknav-label span{max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .post-editor-quicknav-track{border-radius:0 0 13px 13px}
  .post-edit-nav-link{min-height:36px;padding:.42rem .6rem;font-size:.72rem}
}


/* ===== Per-post source row priority and AJAX row ordering ===== */
.source-row-priority-toolbar{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:.75rem 1rem;
  margin-bottom:1rem;
  padding:.85rem .95rem;
  border:1px solid #cfe1f5;
  border-radius:14px;
  background:linear-gradient(135deg,#eff6ff,#fff 76%);
}
.source-row-priority-copy{display:flex;align-items:flex-start;gap:.7rem;min-width:0}
.source-row-priority-icon{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;border-radius:11px;background:#dbeafe;color:#2563eb}
.source-row-priority-copy>div{display:flex;flex-direction:column;min-width:0}
.source-row-priority-copy strong{color:#1e3a8a;font-size:.8rem}
.source-row-priority-copy small{margin-top:.18rem;color:#64748b;font-size:.66rem;line-height:1.75}
.source-row-priority-control{display:flex;align-items:center;gap:.55rem;padding:.45rem .6rem;border:1px solid #dbeafe;border-radius:999px;background:#fff}
.source-row-priority-control .form-check-input{margin:0;cursor:pointer}
.source-row-priority-state{min-width:52px;color:#64748b;font-size:.68rem;font-weight:850;text-align:center}
.source-row-priority-state.is-enabled{color:#15803d}
.source-row-priority-help{grid-column:1/-1;padding-top:.55rem;border-top:1px dashed #cbdcf0;color:#55708e;font-size:.65rem;line-height:1.75}
.vs-order-cell{user-select:none}
.vs-order-controls{display:flex;align-items:center;justify-content:center;gap:.25rem}
.vs-drag-handle{display:inline-flex;align-items:center;justify-content:center;gap:.28rem;min-width:42px;height:32px;padding:0 .4rem;border:1px solid #cbd5e1;border-radius:8px;background:#f8fafc;color:#64748b;cursor:grab;touch-action:none}
.vs-drag-handle:hover,.vs-drag-handle:focus-visible{border-color:#60a5fa;background:#eff6ff;color:#1d4ed8;outline:0}
.vs-drag-handle:active{cursor:grabbing}
.vs-order-number{display:inline-grid;place-items:center;min-width:17px;height:17px;padding:0 .2rem;border-radius:999px;background:#e2e8f0;color:#334155;font-size:.6rem;font-weight:900}
.vs-order-stepper{display:flex;flex-direction:column;gap:2px}
.vs-order-step{display:grid;place-items:center;width:20px;height:15px;padding:0;border:1px solid #dbe4ef;border-radius:5px;background:#fff;color:#64748b;font-size:.5rem}
.vs-order-step:hover:not(:disabled),.vs-order-step:focus-visible:not(:disabled){border-color:#93c5fd;background:#eff6ff;color:#1d4ed8;outline:0}
.vs-order-step:disabled{opacity:.3;cursor:not-allowed}
.vs-tbody.is-reordering .vs-row{transition:transform .12s ease,opacity .12s ease}
.vs-row.is-dragging{opacity:.48;box-shadow:0 0 0 2px rgba(37,99,235,.24)}
.vs-row.is-dragging td{background:#dbeafe!important}
@media(max-width:767.98px){
  .source-row-priority-toolbar{grid-template-columns:1fr;align-items:stretch}
  .source-row-priority-control{justify-content:space-between;border-radius:11px}
  .source-row-priority-help{grid-column:auto}
}
@media(prefers-reduced-motion:reduce){.vs-toast,.vs-tbody.is-reordering .vs-row{transition:none}}


/* ===== Settings sources/session alignment, responsive source cards, and grouped dashboard pipelines ===== */
.session-timeout-layout{
  display:grid;
  grid-template-columns:minmax(280px,620px) minmax(190px,auto);
  align-items:end;
  gap:1rem;
}
.session-timeout-field{min-width:0}
.session-timeout-input-group{max-width:620px}
.session-timeout-action{
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:.45rem;
  min-width:190px;
}
.session-timeout-action .btn{min-height:46px;display:inline-flex;align-items:center;justify-content:center;gap:.5rem;white-space:nowrap}
.session-timeout-action .btn.is-saving i{animation:session-save-pulse 1s ease-in-out infinite}
.session-save-tooltip{
  position:static;
  right:auto;
  bottom:auto;
  min-width:0;
  max-width:none;
  min-height:22px;
  padding:.28rem .45rem;
  border-radius:8px;
  font-size:.69rem;
  box-shadow:none;
  transform:translateY(-3px);
}
.session-save-tooltip::after{display:none}
.session-save-tooltip.is-visible{transform:translateY(0)}
@keyframes session-save-pulse{50%{opacity:.45}}

.settings-source-list-head,
.site-priority-grid{
  display:grid;
  grid-template-columns:minmax(240px,1.25fr) 92px minmax(230px,1fr) 120px 76px;
  align-items:center;
  gap:.65rem;
}
.settings-source-list-head{
  max-width:1100px;
  margin:.25rem 0 .4rem;
  padding:.55rem .75rem;
  border:1px solid #dbe5ef;
  border-radius:11px;
  background:#f8fafc;
  color:#64748b;
  font-size:.68rem;
  font-weight:850;
  text-align:center;
}
.settings-source-list{max-width:1100px}
.site-priority-item{padding:.62rem .72rem;border-color:#e2e8f0!important}
.site-priority-item:nth-child(even){background:#fbfdff}
.site-priority-item.is-frozen{background:#f8fafc;opacity:1}
.site-priority-domain{display:flex;align-items:center;gap:.55rem;min-width:0;direction:ltr;text-align:left}
.site-priority-index{display:grid;place-items:center;flex:0 0 24px;width:24px;height:24px;border-radius:999px;background:#eff6ff;color:#1d4ed8;font-size:.65rem;font-weight:900}
.site-priority-domain code{min-width:0;color:#e11d48;font-size:.78rem}
.site-priority-status,.site-priority-freeze,.site-priority-remove{display:flex;align-items:center;justify-content:center}
.site-priority-reason-wrap{display:flex;flex-direction:column;gap:.2rem;min-width:0}
.site-freeze-reason{width:100%;min-width:0}
.site-freeze-reason:disabled{background:#f1f5f9;color:#94a3b8;cursor:not-allowed}
.site-freeze-reason-help{color:#94a3b8;font-size:.58rem;line-height:1.45}
.site-priority-remove .btn{display:inline-flex;align-items:center;justify-content:center;gap:.3rem;min-width:62px}
.site-freeze-tip{left:12px;right:12px;top:calc(100% - 3px);max-width:none;text-align:center}

/* Mobile-friendly source rows: cards instead of a 1080px horizontal table. */
@media(max-width:767.98px){
  .session-timeout-layout{grid-template-columns:1fr;align-items:stretch}
  .session-timeout-action{min-width:0}
  .session-timeout-action .btn{width:100%}
  .settings-source-list-head{display:none}
  .site-priority-item{padding:.7rem}
  .site-priority-grid{grid-template-columns:1fr auto auto;gap:.65rem .55rem}
  .site-priority-grid>[data-label]::before{display:block;margin-bottom:.24rem;color:#94a3b8;font-size:.58rem;font-weight:800;content:attr(data-label)}
  .site-priority-domain{grid-column:1/-1;padding-bottom:.55rem;border-bottom:1px dashed #dbe4ef}
  .site-priority-status{grid-column:1/2;justify-content:flex-start}
  .site-priority-freeze{grid-column:2/3}
  .site-priority-remove{grid-column:3/4}
  .site-priority-reason-wrap{grid-column:1/-1}
  .site-priority-remove .btn span{display:none}
  .site-priority-remove .btn{min-width:42px;height:38px}

  #postEditForm .version-source-card .table-responsive{overflow:visible!important;border:0;background:transparent}
  #postEditForm .version-source-card .vs-table{display:block;width:100%;min-width:0!important;background:transparent}
  #postEditForm .version-source-card .vs-table colgroup,
  #postEditForm .version-source-card .vs-table thead{display:none}
  #postEditForm .version-source-card .vs-table tbody{display:grid;gap:.8rem;width:100%}
  #postEditForm .version-source-card .vs-table .vs-row{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:.65rem;
    width:100%;
    padding:.72rem;
    border:1px solid rgba(var(--version-accent-rgb),.24);
    border-radius:14px;
    background:linear-gradient(180deg,#fff,var(--version-soft));
    box-shadow:0 6px 18px rgba(15,23,42,.06);
  }
  #postEditForm .version-source-card .vs-table .vs-row td{
    display:flex;
    flex-direction:column;
    align-items:stretch;
    justify-content:flex-start;
    gap:.32rem;
    width:auto!important;
    height:auto!important;
    min-width:0;
    padding:0!important;
    border:0!important;
    background:transparent!important;
    text-align:initial!important;
  }
  #postEditForm .version-source-card .vs-table .vs-row td::before{
    content:attr(data-label);
    display:block;
    color:#64748b;
    font-size:.62rem;
    font-weight:850;
    line-height:1.4;
  }
  #postEditForm .version-source-card .vs-order-cell,
  #postEditForm .version-source-card .vs-url-cell,
  #postEditForm .version-source-card .vs-actions-cell,
  #postEditForm .version-source-card .vs-freeze-cell{grid-column:1/-1}
  #postEditForm .version-source-card .vs-order-cell{
    flex-direction:row!important;
    align-items:center!important;
    justify-content:space-between!important;
    padding-bottom:.55rem!important;
    border-bottom:1px dashed rgba(var(--version-accent-rgb),.25)!important;
  }
  #postEditForm .version-source-card .vs-order-cell::before{margin:0}
  #postEditForm .version-source-card .vs-order-controls{margin-inline-start:auto}
  #postEditForm .version-source-card .vs-result-cell{justify-content:center}
  #postEditForm .version-source-card .vs-puppeteer-cell{align-items:flex-start;text-align:right!important}
  #postEditForm .version-source-card .vs-puppeteer-cell .form-check-input{margin:.2rem .15rem 0 0}
  #postEditForm .version-source-card .vs-actions-group{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;gap:.4rem}
  #postEditForm .version-source-card .vs-actions-group .btn{width:100%;min-height:38px}
  #postEditForm .version-source-card .vs-freeze-cell .form-switch{display:flex!important;justify-content:space-between;width:100%;padding:.58rem .7rem;border:1px solid rgba(var(--version-accent-rgb),.2);border-radius:10px;background:#fff}
  #postEditForm .version-source-card .vs-table .form-control{min-height:42px;font-size:.86rem}
  #postEditForm .version-source-card>.card-body>.d-flex{align-items:stretch}
  #postEditForm .version-source-card>.card-body>.d-flex>.btn{flex:1 1 calc(50% - .4rem);min-height:40px}
  #postEditForm .version-source-card>.card-body>.d-flex>.ms-auto{flex:1 1 100%;margin-inline-start:0!important}
}
@media(max-width:420px){
  #postEditForm .version-source-card .vs-table .vs-row{grid-template-columns:1fr}
  #postEditForm .version-source-card .vs-table .vs-row td{grid-column:1!important}
  #postEditForm .version-source-card .vs-actions-group{grid-template-columns:1fr}
}

/* Related dashboard operations stay together: scan in one panel, upload in the other. */
.dashboard-pipeline-panel{--pipeline-tone:#2563eb;--pipeline-soft:#eff6ff}
.dashboard-pipeline-panel.tone-upload{--pipeline-tone:#7c3aed;--pipeline-soft:#f5f3ff}
.panel-icon.upload{background:#f5f3ff;color:#7c3aed}
.dashboard-pipeline-count{display:flex;align-items:center;gap:.5rem;padding:.42rem .6rem;border:1px solid #e2e8f0;border-radius:999px;background:#fff}
.dashboard-pipeline-count small{color:#64748b;font-size:.62rem}
.dashboard-pipeline-count b{display:grid;place-items:center;min-width:28px;height:28px;padding:0 .35rem;border-radius:999px;background:var(--pipeline-soft);color:var(--pipeline-tone)}
.dashboard-pipeline-summary{display:grid;grid-template-columns:1fr 1fr;gap:.65rem;padding:.85rem .9rem 0}
.dashboard-pipeline-summary>span{display:grid;grid-template-columns:32px auto;grid-template-areas:'icon value' 'icon label';align-items:center;padding:.65rem;border:1px solid #e5ebf2;border-radius:12px;background:#fbfcfe}
.dashboard-pipeline-summary i{grid-area:icon;color:var(--pipeline-tone)}
.dashboard-pipeline-summary strong{grid-area:value;color:#1e293b;font-size:1rem}
.dashboard-pipeline-summary small{grid-area:label;color:#64748b;font-size:.62rem}
.dashboard-pipeline-links{display:grid;grid-template-columns:1fr 1fr;gap:.55rem;padding:.85rem .9rem .95rem}
.dashboard-pipeline-links a{display:flex;align-items:center;gap:.65rem;min-width:0;padding:.7rem;border:1px solid #e5ebf2;border-radius:12px;background:#fff;color:#334155;text-decoration:none;transition:.16s ease}
.dashboard-pipeline-links a:nth-child(even){background:#f8fafc}
.dashboard-pipeline-links a:hover{border-color:var(--pipeline-tone);background:var(--pipeline-soft);color:var(--pipeline-tone);transform:translateY(-1px)}
.dashboard-pipeline-links a>i{display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;border-radius:10px;background:var(--pipeline-soft);color:var(--pipeline-tone)}
.dashboard-pipeline-links a>span{display:flex;flex-direction:column;min-width:0}
.dashboard-pipeline-links strong{font-size:.75rem}
.dashboard-pipeline-links small{margin-top:.12rem;color:#64748b;font-size:.61rem;line-height:1.55}
.dashboard-secondary-panel{margin-top:1rem}
.dashboard-secondary-links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.7rem;padding:.9rem}
.dashboard-secondary-links>a{display:flex;align-items:center;gap:.65rem;padding:.72rem;border:1px solid #e5ebf2;border-radius:13px;background:#f8fafc;color:#1e293b;text-decoration:none}
.dashboard-secondary-links>a:hover{border-color:#bfdbfe;background:#eff6ff}
.dashboard-secondary-links>a>span:nth-child(2){display:flex;flex:1;flex-direction:column;min-width:0}
.dashboard-secondary-links small{color:#64748b;font-size:.64rem}
.dashboard-secondary-links b{min-width:32px;height:32px;display:grid;place-items:center;border-radius:999px;background:#fff}
.shortcut-group.tone-5{--tone:#7c3aed;--soft:#f5f3ff}
.dashboard-shortcut-groups{grid-template-columns:repeat(5,minmax(0,1fr))}
@media(max-width:1399.98px){.dashboard-shortcut-groups{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:991.98px){
  .dashboard-pipeline-links{grid-template-columns:1fr}
  .dashboard-secondary-links{grid-template-columns:1fr}
  .dashboard-shortcut-groups{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:575.98px){
  .dashboard-pipeline-summary{grid-template-columns:1fr}
  .dashboard-shortcut-groups{grid-template-columns:1fr}
  .dashboard-pipeline-count{width:100%;justify-content:space-between}
}

/* Selective cron-error cleanup confirmation */
.error-cleanup-card{border-color:#f1c8c8;box-shadow:0 10px 28px rgba(127,29,29,.05)}
.error-cleanup-card>.card-header{border-bottom-color:#f3d6d6;background:linear-gradient(135deg,#fff7f7,#fff)!important}
.error-cleanup-date-field{min-width:190px}
.error-cleanup-types{overflow:hidden;border:1px solid #e2e8f0;border-radius:14px;background:#fbfdff}
.error-cleanup-types-head{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.75rem .85rem;border-bottom:1px solid #e6edf5;background:linear-gradient(180deg,#f8fafc,#fff)}
.error-cleanup-types-head>div{min-width:0}.error-cleanup-types-head strong{display:block;color:#26384f;font-size:.82rem}.error-cleanup-types-head small{display:block;margin-top:.18rem;color:#77869a;font-size:.65rem;line-height:1.7}
.error-cleanup-select-all{display:flex;align-items:center;gap:.4rem;margin:0;padding:.42rem .62rem;border:1px solid #d4deea;border-radius:10px;background:#fff;white-space:nowrap;font-size:.72rem;font-weight:800;color:#42546b}
.error-cleanup-select-all .form-check-input{float:none;margin:0}
.error-cleanup-type-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.55rem;max-height:320px;overflow:auto;padding:.7rem}
.error-cleanup-type-option{display:flex;align-items:flex-start;gap:.55rem;min-width:0;padding:.62rem .68rem;border:1px solid #dce5ef;border-radius:11px;background:#fff;cursor:pointer;transition:border-color .15s ease,background-color .15s ease,box-shadow .15s ease}
.error-cleanup-type-option:hover{border-color:#f1a7a7;background:#fffafa;box-shadow:0 5px 16px rgba(127,29,29,.06)}
.error-cleanup-type-option:has(.form-check-input:checked){border-color:#ef9a9a;background:#fff5f5;box-shadow:inset 0 0 0 1px rgba(220,38,38,.06)}
.error-cleanup-type-option>.form-check-input{flex:0 0 auto;margin:.15rem 0 0}
.error-cleanup-type-copy{display:flex;flex-direction:column;min-width:0;gap:.28rem}.error-cleanup-type-copy code{display:block;overflow:hidden;color:#8b1d1d;font-size:.68rem;text-overflow:ellipsis;white-space:nowrap}.error-cleanup-type-copy small{display:flex;align-items:center;gap:.3rem;color:#66758a;font-size:.61rem}.error-cleanup-type-copy .badge{font-size:.52rem}
.error-cleanup-confirm-modal .modal-content{overflow:hidden;border:0;border-radius:18px;box-shadow:0 28px 90px rgba(15,23,42,.3)}
.error-cleanup-confirm-modal .modal-header{align-items:flex-start;background:linear-gradient(135deg,#fff1f2,#fff 78%)}
.error-cleanup-selected-box{padding:.75rem .85rem;border:1px solid #f0d1d1;border-radius:13px;background:#fffafa}.error-cleanup-selected-box>strong{display:block;margin-bottom:.55rem;color:#7f1d1d;font-size:.77rem}.error-cleanup-selected-box ul{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.4rem;margin:0;padding:0;list-style:none;max-height:230px;overflow:auto}.error-cleanup-selected-box li{display:flex;flex-direction:column;gap:.15rem;min-width:0;padding:.46rem .55rem;border:1px solid #f0dddd;border-radius:9px;background:#fff}.error-cleanup-selected-box code{overflow:hidden;color:#991b1b;font-size:.67rem;text-overflow:ellipsis;white-space:nowrap}.error-cleanup-selected-box small{color:#7c8795;font-size:.58rem}
@media(max-width:991.98px){.error-cleanup-type-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:575.98px){.error-cleanup-types-head{align-items:stretch;flex-direction:column}.error-cleanup-select-all{justify-content:center}.error-cleanup-type-grid{grid-template-columns:1fr;max-height:360px}.error-cleanup-date-field{width:100%;min-width:0}.error-cleanup-date-field input{width:100%}.error-cleanup-card [data-cleanup-form]{width:100%}.error-cleanup-card [data-cleanup-btn]{width:100%}.error-cleanup-selected-box ul{grid-template-columns:1fr}}

/* Settings error-cleanup access center */
.settings-error-cleanup-panel{--section-tone:#dc2626;--section-soft:#fff1f2}
.settings-panel-icon--danger{color:#dc2626}.settings-panel-badge--danger{border-color:#fecaca;color:#b91c1c;background:#fff7f7}
.settings-help-note--warning{border-color:#fed7aa;background:#fff7ed;color:#9a4b0b}
.settings-error-cleanup-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.8rem}
.settings-error-cleanup-card{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:start;gap:.75rem;padding:.85rem;border:1px solid #e2e8f0;border-radius:15px;background:linear-gradient(145deg,#fff,#fbfcfe);box-shadow:0 6px 18px rgba(15,23,42,.045)}
.settings-error-cleanup-card.tone-version{border-top:3px solid #2563eb}.settings-error-cleanup-card.tone-upload{border-top:3px solid #ea580c}.settings-error-cleanup-card.tone-webhook{border-top:3px solid #7c3aed}
.settings-error-cleanup-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:#f1f5f9;color:#334155;font-size:1rem}
.settings-error-cleanup-card.tone-version .settings-error-cleanup-icon{background:#eff6ff;color:#1d4ed8}.settings-error-cleanup-card.tone-upload .settings-error-cleanup-icon{background:#fff7ed;color:#c2410c}.settings-error-cleanup-card.tone-webhook .settings-error-cleanup-icon{background:#f5f3ff;color:#6d28d9}
.settings-error-cleanup-card strong{display:block;color:#1e293b;font-size:.82rem}.settings-error-cleanup-card p{margin:.25rem 0 0;color:#64748b;font-size:.66rem;line-height:1.8}
.settings-error-cleanup-actions{grid-column:1/-1;display:flex;gap:.45rem;flex-wrap:wrap;padding-top:.65rem;border-top:1px dashed #dbe4ef}.settings-error-cleanup-actions .btn{display:inline-flex;align-items:center;gap:.35rem;font-size:.67rem;font-weight:800}
#cron-errors-cleanup,#cron-upload-errors-cleanup,#webhook-cleanup{scroll-margin-top:90px}
@media(max-width:1199.98px){.settings-error-cleanup-grid{grid-template-columns:1fr}}
@media(max-width:575.98px){.settings-error-cleanup-card{grid-template-columns:1fr}.settings-error-cleanup-actions .btn{flex:1 1 100%;justify-content:center}}

/* ===== Comprehensive error guide ===== */
.error-guide-page{
  --eg-ink:#172033;
  --eg-muted:#64748b;
  --eg-border:#dbe4f0;
  --eg-surface:#ffffff;
  --eg-soft:#f6f8fc;
  --eg-shadow:0 18px 45px rgba(15,23,42,.08);
  max-width:1600px;
  margin-inline:auto;
  color:var(--eg-ink);
}
.error-guide-hero{
  position:relative;
  overflow:hidden;
  display:grid;
  grid-template-columns:minmax(0,1.35fr) minmax(320px,.65fr);
  gap:1.25rem;
  padding:clamp(1.3rem,2.6vw,2.25rem);
  border:1px solid rgba(255,255,255,.18);
  border-radius:28px;
  background:
    radial-gradient(circle at 8% 18%,rgba(56,189,248,.2),transparent 32%),
    radial-gradient(circle at 91% 78%,rgba(168,85,247,.2),transparent 30%),
    linear-gradient(135deg,#0f172a 0%,#162a4b 54%,#183e61 100%);
  color:#fff;
  box-shadow:0 24px 70px rgba(15,23,42,.2);
}
.error-guide-hero::after{
  content:"";
  position:absolute;
  inset:auto -80px -110px auto;
  width:280px;
  height:280px;
  border:46px solid rgba(255,255,255,.045);
  border-radius:50%;
  pointer-events:none;
}
.error-guide-hero-copy,.error-guide-hero-actions{position:relative;z-index:1}
.error-guide-eyebrow{
  display:inline-flex;
  align-items:center;
  gap:.55rem;
  margin-bottom:.8rem;
  padding:.42rem .75rem;
  border:1px solid rgba(255,255,255,.2);
  border-radius:999px;
  background:rgba(255,255,255,.08);
  color:#dbeafe;
  font-size:.8rem;
  font-weight:800;
}
.error-guide-hero h1{margin:0 0 .75rem;font-size:clamp(1.55rem,3vw,2.55rem);font-weight:900;letter-spacing:-.025em}
.error-guide-hero p{max-width:850px;margin:0;color:#d4deec;font-size:.95rem;line-height:2}
.error-guide-hero-badges{display:flex;flex-wrap:wrap;gap:.65rem;margin-top:1.25rem}
.error-guide-hero-badges span{
  display:inline-flex;
  align-items:center;
  gap:.45rem;
  padding:.58rem .75rem;
  border:1px solid rgba(255,255,255,.15);
  border-radius:12px;
  background:rgba(255,255,255,.085);
  color:#eaf2ff;
  font-size:.76rem;
}
.error-guide-hero-badges b{font-size:.95rem;color:#fff}
.error-guide-hero-actions{display:grid;grid-template-columns:1fr 1fr;gap:.75rem;align-content:center}
.error-guide-hero-action{
  display:flex;
  align-items:center;
  gap:.75rem;
  min-height:82px;
  padding:.85rem;
  border:1px solid rgba(255,255,255,.14);
  border-radius:16px;
  background:rgba(255,255,255,.075);
  color:#fff;
  text-decoration:none;
  transition:transform .2s ease,background .2s ease,border-color .2s ease;
}
.error-guide-hero-action:hover{transform:translateY(-3px);background:rgba(255,255,255,.14);border-color:rgba(255,255,255,.3);color:#fff}
.error-guide-hero-action>i{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:rgba(255,255,255,.13);font-size:1.05rem}
.error-guide-hero-action span{display:flex;flex-direction:column;gap:.18rem;min-width:0}
.error-guide-hero-action strong{font-size:.85rem}
.error-guide-hero-action small{color:#cad6e6;font-size:.67rem;line-height:1.6}
.error-guide-workflow{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:.85rem;
  margin:1rem 0;
}
.error-guide-workflow article{
  display:flex;
  align-items:flex-start;
  gap:.8rem;
  padding:1rem;
  border:1px solid var(--eg-border);
  border-radius:18px;
  background:var(--eg-surface);
  box-shadow:0 8px 24px rgba(15,23,42,.045);
}
.error-guide-workflow article>span{display:grid;place-items:center;flex:0 0 38px;height:38px;border-radius:12px;background:#eaf2ff;color:#1d4ed8;font-weight:900}
.error-guide-workflow div{display:flex;flex-direction:column;gap:.25rem}
.error-guide-workflow strong{font-size:.84rem}
.error-guide-workflow small{color:var(--eg-muted);font-size:.82rem;line-height:1.9}
.error-guide-search-shell{
  margin:1rem 0;
  border:1px solid var(--eg-border);
  border-radius:22px;
  background:rgba(255,255,255,.96);
  box-shadow:var(--eg-shadow);
}
.error-guide-search-form{padding:1rem}
.error-guide-search-main label{display:flex;align-items:center;gap:.45rem;margin-bottom:.5rem;color:#334155;font-size:.78rem;font-weight:850}
.error-guide-search-input-wrap{position:relative}
.error-guide-search-input-wrap .form-control{
  min-height:52px;
  padding-inline:1rem 5.2rem;
  border:1px solid #cbd8e8;
  border-radius:15px;
  background:#fbfdff;
  font-size:.88rem;
  transition:border-color .2s ease,box-shadow .2s ease,background .2s ease;
}
.error-guide-search-input-wrap .form-control:focus{border-color:#4f8df7;background:#fff;box-shadow:0 0 0 4px rgba(59,130,246,.12)}
.error-guide-clear,.error-guide-search-spinner{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  display:none;
  place-items:center;
  width:34px;
  height:34px;
  border:0;
  border-radius:10px;
}
.error-guide-clear{left:.55rem;background:#eef2f7;color:#64748b}
.error-guide-clear:hover{background:#fee2e2;color:#b91c1c}
.error-guide-clear.is-visible{display:grid}
.error-guide-search-spinner{left:2.9rem;color:#2563eb}
.error-guide-search-spinner.is-visible{display:grid}
.error-guide-search-hints{display:flex;align-items:center;flex-wrap:wrap;gap:.5rem;margin-top:.55rem;color:#718096;font-size:.68rem}
.error-guide-search-hints kbd{padding:.08rem .35rem;border:1px solid #cbd5e1;border-radius:5px;background:#f8fafc;color:#334155;box-shadow:none}
.error-guide-search-hints button{padding:.2rem .48rem;border:1px solid #d7e0ec;border-radius:999px;background:#fff;color:#41628a;font-size:.66rem}
.error-guide-search-hints button:hover{border-color:#93b6eb;background:#eff6ff;color:#1d4ed8}
.error-guide-filter-grid{display:grid;grid-template-columns:1.2fr .8fr .8fr auto;gap:.75rem;align-items:end;margin-top:.9rem;padding-top:.9rem;border-top:1px dashed #dbe4ef}
.error-guide-filter-grid label{display:flex;flex-direction:column;gap:.35rem;color:#475569;font-size:.7rem;font-weight:800}
.error-guide-filter-grid .form-select,.error-guide-filter-grid .form-control{min-height:42px;border-radius:11px;border-color:#d5dfeb;font-size:.75rem}
.error-guide-filter-actions{display:flex;gap:.45rem}
.error-guide-filter-actions .btn{min-height:42px;border-radius:11px;white-space:nowrap;font-size:.75rem;font-weight:800}
.error-guide-result-toolbar{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.75rem 1rem;border-top:1px solid #e5ebf3;background:#f8fafc;border-radius:0 0 22px 22px}
.error-guide-result-status{color:#52647b;font-size:.73rem}
.error-guide-result-status strong{color:#18263d}
.error-guide-result-actions{display:flex;gap:.35rem}
.error-guide-result-actions button{
  display:inline-flex;
  align-items:center;
  gap:.35rem;
  padding:.38rem .58rem;
  border:1px solid #d8e1ec;
  border-radius:9px;
  background:#fff;
  color:#53677f;
  font-size:.68rem;
}
.error-guide-result-actions button:hover{border-color:#9eb8dc;color:#1d4ed8}
.error-guide-category-nav{
  position:sticky;
  top:10px;
  z-index:1020;
  display:flex;
  gap:.55rem;
  overflow-x:auto;
  margin:1rem 0;
  padding:.65rem;
  border:1px solid rgba(203,213,225,.8);
  border-radius:18px;
  background:rgba(248,250,252,.92);
  box-shadow:0 12px 32px rgba(15,23,42,.08);
  backdrop-filter:blur(12px);
  scrollbar-width:thin;
}
.error-guide-category-nav a{
  --eg-tone:#64748b;
  display:flex;
  align-items:center;
  gap:.55rem;
  flex:0 0 auto;
  min-width:165px;
  padding:.6rem .68rem;
  border:1px solid #dce4ee;
  border-radius:13px;
  background:#fff;
  color:#25344b;
  text-decoration:none;
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease;
}
.error-guide-category-nav a:hover{transform:translateY(-2px);border-color:color-mix(in srgb,var(--eg-tone) 55%,#fff);box-shadow:0 8px 20px rgba(15,23,42,.08)}
.error-guide-category-nav a>i{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:color-mix(in srgb,var(--eg-tone) 12%,#fff);color:var(--eg-tone)}
.error-guide-category-nav span{display:flex;flex-direction:column;gap:.08rem}
.error-guide-category-nav strong{font-size:.72rem}
.error-guide-category-nav small{color:#7b8a9d;font-size:.62rem}
.error-guide-groups{display:flex;flex-direction:column;gap:.85rem;transition:opacity .2s ease}
.error-guide-page.is-searching .error-guide-groups{opacity:.55}
.error-guide-category{
  --eg-tone:#64748b;
  border:1px solid #dce4ee;
  border-radius:20px;
  background:#fff;
  box-shadow:0 9px 28px rgba(15,23,42,.055);
  overflow:clip;
  scroll-margin-top:105px;
}
.error-guide-category>summary,.error-guide-error-card>summary,.error-guide-subsection>summary{list-style:none}
.error-guide-category>summary::-webkit-details-marker,.error-guide-error-card>summary::-webkit-details-marker,.error-guide-subsection>summary::-webkit-details-marker{display:none}
.error-guide-category-summary{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto auto;
  align-items:center;
  gap:.85rem;
  padding:1rem 1.1rem;
  cursor:pointer;
  background:linear-gradient(90deg,color-mix(in srgb,var(--eg-tone) 7%,#fff),#fff 55%);
  user-select:none;
}
.error-guide-category[open]>.error-guide-category-summary{border-bottom:1px solid color-mix(in srgb,var(--eg-tone) 15%,#e2e8f0)}
.error-guide-category-icon{display:grid;place-items:center;width:46px;height:46px;border-radius:15px;background:color-mix(in srgb,var(--eg-tone) 13%,#fff);color:var(--eg-tone);font-size:1.05rem}
.error-guide-category-copy{display:flex;flex-direction:column;gap:.2rem;min-width:0}
.error-guide-category-copy strong{font-size:.94rem}
.error-guide-category-copy small{color:#6b7b8e;font-size:.8rem;line-height:1.8}
.error-guide-category-count{display:flex;align-items:center;gap:.35rem;padding:.45rem .65rem;border-radius:10px;background:#f1f5f9;color:#53657a}
.error-guide-category-count b{color:var(--eg-tone);font-size:.9rem}
.error-guide-category-count small{font-size:.63rem}
.error-guide-category-chevron{display:grid;place-items:center;width:32px;height:32px;border-radius:9px;background:#eef2f7;color:#64748b;transition:transform .22s ease}
.error-guide-category[open]>.error-guide-category-summary .error-guide-category-chevron{transform:rotate(180deg);background:color-mix(in srgb,var(--eg-tone) 12%,#fff);color:var(--eg-tone)}
.error-guide-category-body{padding:1rem;background:#fbfcfe}
.error-guide-related-routes{display:flex;align-items:center;flex-wrap:wrap;gap:.45rem;margin-bottom:.85rem;padding:.65rem .75rem;border:1px dashed #ced9e7;border-radius:12px;background:#fff;color:#617187;font-size:.76rem}
.error-guide-related-routes>span{display:inline-flex;align-items:center;gap:.35rem;font-weight:800;color:#44566d}
.error-guide-related-routes a{display:inline-flex;align-items:center;gap:.32rem;padding:.3rem .5rem;border-radius:8px;background:#eef4fc;color:#2f5f9f;text-decoration:none}
.error-guide-related-routes a:hover{background:#dfeeff;color:#164e9a}
.error-guide-error-list{display:flex;flex-direction:column;gap:.6rem}
.error-guide-error-card{
  --level-tone:#dc2626;
  border:1px solid #dfe6ef;
  border-radius:15px;
  background:#fff;
  overflow:hidden;
  scroll-margin-top:115px;
  transition:border-color .18s ease,box-shadow .18s ease;
}
.error-guide-error-card.level-warn{--level-tone:#d97706}
.error-guide-error-card.level-info{--level-tone:#0284c7}
.error-guide-error-card[open]{border-color:color-mix(in srgb,var(--level-tone) 34%,#dfe6ef);box-shadow:0 11px 26px rgba(15,23,42,.07)}
.error-guide-error-summary{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto auto;
  align-items:center;
  gap:.75rem;
  padding:.8rem .85rem;
  cursor:pointer;
  user-select:none;
}
.error-guide-error-summary:hover{background:color-mix(in srgb,var(--level-tone) 3.5%,#fff)}
.error-guide-level-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:color-mix(in srgb,var(--level-tone) 10%,#fff);color:var(--level-tone)}
.error-guide-error-heading{display:grid;grid-template-columns:max-content minmax(0,1fr);align-items:center;gap:.3rem .65rem;min-width:0}
.error-guide-error-heading code{grid-row:1 / span 2;padding:.35rem .48rem;border:1px solid #d8e2ee;border-radius:8px;background:#f5f8fc;color:#172d4b;font-size:.69rem;font-weight:800;white-space:nowrap}
.error-guide-error-heading strong{font-size:.8rem;line-height:1.7}
.error-guide-error-heading small{overflow:hidden;color:#77869a;font-size:.76rem;line-height:1.6;text-overflow:ellipsis;white-space:nowrap}
.error-guide-error-meta{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:.3rem;max-width:310px}
.error-guide-error-meta em{padding:.24rem .42rem;border:1px solid #dfe6ef;border-radius:7px;background:#f8fafc;color:#66768a;font-size:.6rem;font-style:normal;white-space:nowrap}
.error-guide-error-meta em.level{border-color:color-mix(in srgb,var(--level-tone) 20%,#dfe6ef);background:color-mix(in srgb,var(--level-tone) 8%,#fff);color:var(--level-tone);font-weight:800}
.error-guide-error-meta em.retry{color:#2563eb}
.error-guide-error-chevron{display:grid;place-items:center;width:28px;height:28px;border-radius:8px;background:#f1f5f9;color:#64748b;transition:transform .2s ease}
.error-guide-error-card[open]>.error-guide-error-summary .error-guide-error-chevron{transform:rotate(180deg);background:color-mix(in srgb,var(--level-tone) 9%,#fff);color:var(--level-tone)}
.error-guide-error-body{display:flex;flex-direction:column;gap:.65rem;padding:.85rem;border-top:1px solid #edf1f6;background:#fcfdff}
.error-guide-error-overview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) auto;gap:.55rem;align-items:stretch}
.error-guide-error-overview>div{display:flex;flex-direction:column;gap:.18rem;padding:.55rem .65rem;border:1px solid #e2e8f0;border-radius:10px;background:#fff}
.error-guide-error-overview span{color:#7b8798;font-size:.58rem}
.error-guide-error-overview b,.error-guide-error-overview code{color:#263b56;font-size:.68rem;font-weight:800}
.error-guide-error-overview button{display:inline-flex;align-items:center;justify-content:center;gap:.35rem;padding:.5rem .68rem;border:1px solid #cfdbea;border-radius:10px;background:#f5f8fc;color:#48617f;font-size:.65rem;white-space:nowrap}
.error-guide-error-overview button:hover,.error-guide-error-overview button.is-copied{border-color:#86c49d;background:#ecfdf3;color:#15803d}
.error-guide-subsection{border:1px solid #dde6f0;border-radius:12px;background:#fff;overflow:hidden}
.error-guide-subsection>summary{display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:.7rem .75rem;cursor:pointer;background:#f8fafc;color:#34475f;user-select:none}
.error-guide-subsection>summary>span{display:flex;align-items:center;gap:.5rem}
.error-guide-subsection>summary strong{font-size:.82rem}
.error-guide-subsection>summary>i{color:#8492a5;font-size:.7rem;transition:transform .2s ease}
.error-guide-subsection[open]>summary>i{transform:rotate(180deg)}
.error-guide-subsection.cause>summary>span>i{color:#7c3aed}
.error-guide-subsection.solution>summary>span>i{color:#059669}
.error-guide-subsection.diagnose>summary>span>i{color:#2563eb}
.error-guide-subsection-body{padding:.8rem}
.error-guide-summary-text{margin:0 0 .65rem;padding:.65rem .75rem;border-right:3px solid #8b5cf6;border-radius:8px;background:#f7f3ff;color:#46566b;font-size:.86rem;line-height:2}
.error-guide-check-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.45rem;margin:0;padding:0;list-style:none}
.error-guide-check-list li{display:flex;align-items:flex-start;gap:.45rem;padding:.55rem .6rem;border:1px solid #e4eaf2;border-radius:9px;background:#fbfdff;color:#526277;font-size:.82rem;line-height:1.9}
.error-guide-check-list li i{margin-top:.32rem;color:#3b82f6;font-size:.58rem}
.error-guide-check-list.cause-list li i{color:#8b5cf6}
.error-guide-solution-list{display:flex;flex-direction:column;gap:.45rem;margin:0;padding:0;list-style:none;counter-reset:solution}
.error-guide-solution-list li{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:start;gap:.55rem;padding:.58rem .65rem;border:1px solid #dcebe3;border-radius:10px;background:#f8fffb}
.error-guide-solution-list li>span{display:grid;place-items:center;width:27px;height:27px;border-radius:8px;background:#dcfce7;color:#15803d;font-size:.65rem;font-weight:900}
.error-guide-solution-list p{margin:0;color:#425b4d;font-size:.82rem;line-height:1.95}
.error-guide-item-actions{display:flex;align-items:center;flex-wrap:wrap;gap:.4rem;padding-top:.15rem}
.error-guide-item-actions a{display:inline-flex;align-items:center;gap:.32rem;padding:.38rem .55rem;border:1px solid #d8e2ed;border-radius:9px;background:#fff;color:#49627e;text-decoration:none;font-size:.64rem}
.error-guide-item-actions a:hover{border-color:#9eb8dc;background:#eff6ff;color:#1d4ed8}
.error-guide-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:330px;padding:2rem;border:1px dashed #cbd5e1;border-radius:22px;background:#fff;text-align:center}
.error-guide-empty>i{margin-bottom:.9rem;color:#94a3b8;font-size:2.5rem}
.error-guide-empty h2{font-size:1rem}
.error-guide-empty p{color:#718096;font-size:.82rem;line-height:1.9}
.error-guide-empty button{padding:.5rem .9rem;border:0;border-radius:10px;background:#2563eb;color:#fff;font-size:.72rem}
.error-guide-footer-note{display:flex;align-items:center;gap:.85rem;margin-top:1rem;padding:1rem;border:1px solid #f1d49a;border-radius:17px;background:#fffaf0;color:#634f28}
.error-guide-footer-note>i{display:grid;place-items:center;flex:0 0 42px;height:42px;border-radius:13px;background:#fef3c7;color:#b7791f;font-size:1.05rem}
.error-guide-footer-note>div{flex:1;min-width:0}
.error-guide-footer-note strong{font-size:.8rem}
.error-guide-footer-note p{margin:.15rem 0 0;color:#7c6a48;font-size:.8rem;line-height:1.9}
.error-guide-footer-note>a{padding:.45rem .65rem;border:1px solid #e8ca8e;border-radius:9px;background:#fff;color:#8a5a16;text-decoration:none;font-size:.66rem;white-space:nowrap}
.error-guide-category-nav .tone-blue,.error-guide-category.tone-blue{--eg-tone:#2563eb}
.error-guide-category-nav .tone-cyan,.error-guide-category.tone-cyan{--eg-tone:#0891b2}
.error-guide-category-nav .tone-violet,.error-guide-category.tone-violet{--eg-tone:#7c3aed}
.error-guide-category-nav .tone-green,.error-guide-category.tone-green{--eg-tone:#059669}
.error-guide-category-nav .tone-indigo,.error-guide-category.tone-indigo{--eg-tone:#4f46e5}
.error-guide-category-nav .tone-orange,.error-guide-category.tone-orange{--eg-tone:#d97706}
.error-guide-category-nav .tone-pink,.error-guide-category.tone-pink{--eg-tone:#db2777}
.error-guide-category-nav .tone-red,.error-guide-category.tone-red{--eg-tone:#dc2626}
.error-guide-category-nav .tone-navy,.error-guide-category.tone-navy{--eg-tone:#1e3a8a}
.error-guide-category-nav .tone-slate,.error-guide-category.tone-slate{--eg-tone:#475569}
.error-guide-category-nav .tone-gray,.error-guide-category.tone-gray{--eg-tone:#64748b}
@media (max-width:1100px){
  .error-guide-hero{grid-template-columns:1fr}
  .error-guide-hero-actions{grid-template-columns:repeat(4,minmax(0,1fr))}
  .error-guide-hero-action{min-height:72px}
  .error-guide-hero-action small{display:none}
  .error-guide-workflow{grid-template-columns:1fr}
  .error-guide-filter-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .error-guide-filter-actions{grid-column:1 / -1;justify-content:flex-end}
}
@media (max-width:820px){
  .error-guide-hero-actions{grid-template-columns:1fr 1fr}
  .error-guide-category-summary{grid-template-columns:auto minmax(0,1fr) auto}
  .error-guide-category-count{display:none}
  .error-guide-error-summary{grid-template-columns:auto minmax(0,1fr) auto}
  .error-guide-error-meta{grid-column:2 / 3;justify-content:flex-start;max-width:none}
  .error-guide-error-chevron{grid-column:3;grid-row:1 / span 2}
  .error-guide-error-overview{grid-template-columns:1fr 1fr}
  .error-guide-error-overview button{grid-column:1 / -1}
  .error-guide-check-list{grid-template-columns:1fr}
}
@media (max-width:576px){
  .error-guide-page{padding-inline:.65rem!important}
  .error-guide-hero{padding:1rem;border-radius:20px}
  .error-guide-hero h1{font-size:1.35rem}
  .error-guide-hero p{font-size:.84rem;line-height:1.9}
  .error-guide-hero-badges span{font-size:.65rem}
  .error-guide-hero-actions{grid-template-columns:1fr}
  .error-guide-hero-action{min-height:62px}
  .error-guide-hero-action small{display:block}
  .error-guide-filter-grid{grid-template-columns:1fr}
  .error-guide-filter-actions{grid-column:auto;display:grid;grid-template-columns:1fr 1fr}
  .error-guide-result-toolbar{align-items:flex-start;flex-direction:column}
  .error-guide-category-nav{top:6px;margin-inline:-.1rem;border-radius:14px}
  .error-guide-category-nav a{min-width:145px}
  .error-guide-category-summary{gap:.55rem;padding:.8rem}
  .error-guide-category-icon{width:38px;height:38px;border-radius:12px}
  .error-guide-category-copy small{display:none}
  .error-guide-category-body{padding:.65rem}
  .error-guide-related-routes{align-items:flex-start;flex-direction:column}
  .error-guide-error-summary{gap:.5rem;padding:.7rem .6rem}
  .error-guide-level-icon{width:32px;height:32px}
  .error-guide-error-heading{grid-template-columns:1fr;gap:.2rem}
  .error-guide-error-heading code{grid-row:auto;width:max-content}
  .error-guide-error-heading small{display:none}
  .error-guide-error-meta{grid-column:1 / -1;padding-right:2.5rem}
  .error-guide-error-chevron{grid-column:3;grid-row:1}
  .error-guide-error-body{padding:.6rem}
  .error-guide-error-overview{grid-template-columns:1fr}
  .error-guide-error-overview button{grid-column:auto}
  .error-guide-footer-note{align-items:flex-start;flex-wrap:wrap}
  .error-guide-footer-note>a{margin-right:auto}
}
.list-icon.primary{background:#eff6ff;color:#2563eb}

/* ===== Comprehensive system guide ===== */
.system-guide-page{--sg-ink:#172033;--sg-muted:#66758a;--sg-border:#dce4ee;--sg-soft:#f5f8fc;--sg-primary:#3156d3;color:var(--sg-ink)}
.system-guide-page button,.system-guide-page input,.system-guide-page select{font-family:inherit}
.system-guide-hero{position:relative;display:grid;grid-template-columns:minmax(0,1.5fr) minmax(310px,.72fr);gap:1.25rem;overflow:hidden;margin-bottom:1rem;padding:1.45rem;border-radius:26px;background:linear-gradient(135deg,#162a6b 0%,#3156d3 50%,#6d4ce8 100%);box-shadow:0 22px 48px rgba(36,55,120,.18);color:#fff}
.system-guide-hero:before{content:"";position:absolute;left:-70px;bottom:-100px;width:260px;height:260px;border:1px solid rgba(255,255,255,.15);border-radius:50%;box-shadow:0 0 0 34px rgba(255,255,255,.04),0 0 0 68px rgba(255,255,255,.03)}
.system-guide-hero-copy,.system-guide-hero-actions{position:relative;z-index:1}
.system-guide-eyebrow,.system-guide-section-kicker{display:inline-flex;align-items:center;gap:.42rem;font-size:.69rem;font-weight:800;letter-spacing:.01em}
.system-guide-eyebrow{margin-bottom:.65rem;padding:.34rem .62rem;border:1px solid rgba(255,255,255,.2);border-radius:999px;background:rgba(255,255,255,.1)}
.system-guide-hero h1{margin:0 0 .45rem;font-size:1.65rem;font-weight:900;line-height:1.45}
.system-guide-hero p{max-width:850px;margin:0;color:rgba(255,255,255,.82);font-size:.9rem;line-height:2}
.system-guide-hero-badges{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:1rem}
.system-guide-hero-badges span{display:inline-flex;align-items:center;gap:.38rem;padding:.42rem .58rem;border:1px solid rgba(255,255,255,.15);border-radius:11px;background:rgba(14,24,68,.2);color:#eef2ff;font-size:.67rem}
.system-guide-hero-badges b{font-size:.78rem}
.system-guide-hero-actions{display:grid;grid-template-columns:1fr 1fr;gap:.65rem;align-content:center}
.system-guide-hero-action{display:flex;align-items:center;gap:.7rem;min-height:74px;padding:.75rem;border:1px solid rgba(255,255,255,.16);border-radius:17px;background:rgba(255,255,255,.1);color:#fff;text-align:right;text-decoration:none;transition:.18s ease;backdrop-filter:blur(6px)}
button.system-guide-hero-action{width:100%;cursor:pointer}
.system-guide-hero-action:hover{transform:translateY(-2px);border-color:rgba(255,255,255,.38);background:rgba(255,255,255,.17);color:#fff}
.system-guide-hero-action>i{display:grid;place-items:center;flex:0 0 40px;height:40px;border-radius:13px;background:rgba(255,255,255,.15);font-size:1rem}
.system-guide-hero-action span{display:grid;gap:.13rem}
.system-guide-hero-action strong{font-size:.75rem}
.system-guide-hero-action small{color:rgba(255,255,255,.7);font-size:.62rem}
.system-guide-search-card,.system-guide-navigation,.system-guide-catalog,.system-guide-footer-note{margin-bottom:1rem;border:1px solid var(--sg-border);border-radius:22px;background:#fff;box-shadow:0 10px 28px rgba(28,47,84,.055)}
.system-guide-search-card{padding:1.15rem}
.system-guide-search-head,.system-guide-navigation>header,.system-guide-catalog-head{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;margin-bottom:1rem}
.system-guide-section-kicker{margin-bottom:.25rem;color:#3156d3}
.system-guide-search-head h2,.system-guide-navigation h2,.system-guide-catalog-head h2{margin:0;font-size:1.02rem;font-weight:900}
.system-guide-search-head p,.system-guide-catalog-head p{max-width:850px;margin:.25rem 0 0;color:var(--sg-muted);font-size:.82rem;line-height:1.95}
.system-guide-search-shortcut{display:inline-flex;align-items:center;gap:.4rem;color:#738196;font-size:.64rem;white-space:nowrap}
.system-guide-search-shortcut kbd{display:grid;place-items:center;min-width:28px;height:26px;border:1px solid #d7dfeb;border-bottom-width:3px;border-radius:7px;background:#f8fafc;color:#334155;font-family:inherit}
.system-guide-search-grid{display:grid;grid-template-columns:minmax(260px,1.15fr) minmax(390px,1.25fr) minmax(210px,.65fr) auto;gap:.75rem;align-items:end}
.system-guide-search-input-wrap,.system-guide-section-filter{display:grid;gap:.35rem}
.system-guide-search-input-wrap>span:first-child,.system-guide-section-filter>span,.system-guide-mode-picker>legend{color:#4b5f78;font-size:.66rem;font-weight:800}
.system-guide-search-input{position:relative;display:flex;align-items:center}
.system-guide-search-input>i{position:absolute;right:.8rem;z-index:2;color:#718096}
.system-guide-search-input input{height:45px;padding-right:2.3rem;padding-left:2.4rem;border-color:#d9e2ee;border-radius:13px;font-size:.72rem}
.system-guide-search-input button{position:absolute;left:.42rem;display:grid;place-items:center;width:30px;height:30px;border:0;border-radius:9px;background:#eef2f7;color:#66758a}
.system-guide-mode-picker{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.42rem;margin:0;padding:0;border:0}
.system-guide-mode-picker>legend{grid-column:1/-1;margin:0}
.system-guide-mode-picker label{position:relative;cursor:pointer}
.system-guide-mode-picker input{position:absolute;opacity:0;pointer-events:none}
.system-guide-mode-picker label>span{display:grid;grid-template-columns:auto 1fr;column-gap:.42rem;align-items:center;min-height:45px;padding:.44rem .5rem;border:1px solid #dce4ee;border-radius:12px;background:#f8fafc;transition:.16s ease}
.system-guide-mode-picker label>span>i{grid-row:1/span 2;color:#718096}
.system-guide-mode-picker b{font-size:.66rem}
.system-guide-mode-picker small{color:#8290a3;font-size:.56rem;line-height:1.35}
.system-guide-mode-picker input:checked+span{border-color:#6f8ee9;background:#eef3ff;box-shadow:0 0 0 2px rgba(49,86,211,.09)}
.system-guide-mode-picker input:checked+span>i,.system-guide-mode-picker input:checked+span>b{color:#3156d3}
.system-guide-section-filter select{height:45px;border-color:#d9e2ee;border-radius:13px;font-size:.69rem}
.system-guide-search-actions{display:flex;gap:.42rem}
.system-guide-search-actions .btn{height:45px;border-radius:12px;font-size:.68rem;white-space:nowrap}
.system-guide-search-examples{display:flex;align-items:center;flex-wrap:wrap;gap:.38rem;margin-top:.8rem;padding-top:.75rem;border-top:1px dashed #e1e7ef}
.system-guide-search-examples>span{color:#718096;font-size:.63rem}
.system-guide-search-examples button{padding:.3rem .5rem;border:1px solid #dce4ee;border-radius:999px;background:#f8fafc;color:#4b5f78;font-size:.6rem}
.system-guide-search-examples button:hover{border-color:#9eb2ea;background:#eef3ff;color:#3156d3}
.system-guide-search-status{display:flex;align-items:center;min-height:42px;margin-top:.75rem;padding:.65rem .75rem;border-radius:12px;background:#f5f8fc;color:#617087;font-size:.67rem}
.system-guide-search-status strong{color:#263a59;font-size:.76rem}
.system-guide-search-results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem;margin-top:.75rem}
.system-guide-search-results[hidden]{display:none}
.system-guide-result-card{display:flex;flex-direction:column;min-width:0;padding:.85rem;border:1px solid #dfe6ef;border-radius:16px;background:linear-gradient(180deg,#fff,#fbfcff);transition:.17s ease}
.system-guide-result-card:hover{transform:translateY(-2px);border-color:#b7c7ed;box-shadow:0 10px 25px rgba(40,67,130,.08)}
.system-guide-result-card header{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:.58rem;align-items:center}
.system-guide-result-icon{display:grid;place-items:center;width:39px;height:39px;border-radius:12px;background:#edf3ff;color:#3156d3}
.system-guide-result-card header>div>span{display:flex;align-items:center;gap:.3rem;color:#7b889a;font-size:.57rem}
.system-guide-result-card header>div>span i{font-size:.45rem}
.system-guide-result-card h3{margin:.13rem 0 0;font-size:.78rem;font-weight:900}
.system-guide-result-card header>em{display:grid;place-items:center;min-width:34px;height:28px;border-radius:9px;background:#eefbf4;color:#15803d;font-size:.6rem;font-style:normal;font-weight:900}
.system-guide-result-card>p{flex:1;margin:.65rem 0;color:#5f6f84;font-size:.82rem;line-height:2}
.system-guide-result-card mark{padding:0 .1rem;border-radius:4px;background:#fff0a8;color:#704b00}
.system-guide-result-meta{display:flex;align-items:center;flex-wrap:wrap;gap:.4rem;margin-bottom:.65rem}
.system-guide-result-meta span,.system-guide-result-meta code{display:inline-flex;align-items:center;gap:.3rem;padding:.3rem .42rem;border-radius:8px;background:#f1f5f9;color:#526277;font-size:.56rem}
.system-guide-result-meta code{direction:ltr}
.system-guide-result-card footer{display:flex;align-items:center;justify-content:space-between;gap:.5rem;padding-top:.6rem;border-top:1px dashed #e1e7ef}
.system-guide-result-card footer>span{color:#8793a4;font-size:.56rem}
.system-guide-result-card footer>div{display:flex;gap:.35rem}
.system-guide-result-card footer button,.system-guide-result-route{display:inline-flex;align-items:center;gap:.3rem;padding:.37rem .5rem;border:1px solid #b9c9ed;border-radius:9px;background:#eef3ff;color:#3156d3;text-decoration:none;font-size:.58rem}
.system-guide-result-route{border-color:#d7e0ea;background:#fff;color:#526277}
.system-guide-no-results{grid-column:1/-1;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:240px;padding:1.5rem;border:1px dashed #cdd7e4;border-radius:18px;background:#fbfcfe;text-align:center}
.system-guide-no-results>i{margin-bottom:.65rem;color:#9aa7b7;font-size:2rem}
.system-guide-no-results h3{font-size:.88rem}
.system-guide-no-results p{color:#718096;font-size:.82rem;line-height:1.9}
.system-guide-no-results button{padding:.45rem .7rem;border:0;border-radius:9px;background:#3156d3;color:#fff;font-size:.65rem}
.system-guide-navigation{padding:1rem}
.system-guide-navigation>header{align-items:center;margin-bottom:.7rem}
.system-guide-navigation>header>span{color:#718096;font-size:.78rem}
.system-guide-section-nav{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:.5rem}
.system-guide-section-nav a{--sg-tone:#3156d3;display:grid;grid-template-columns:auto 1fr;column-gap:.45rem;align-items:center;min-width:0;padding:.62rem;border:1px solid #e0e6ee;border-radius:14px;background:#fbfcfe;color:#2e3e54;text-decoration:none;transition:.16s ease}
.system-guide-section-nav a:hover{transform:translateY(-2px);border-color:color-mix(in srgb,var(--sg-tone) 40%,#dce4ee);box-shadow:0 8px 20px rgba(38,57,94,.07)}
.system-guide-section-nav a>span{grid-row:1/span 2;display:grid;place-items:center;width:34px;height:34px;border-radius:11px;background:color-mix(in srgb,var(--sg-tone) 10%,#fff);color:var(--sg-tone)}
.system-guide-section-nav strong{overflow:hidden;font-size:.63rem;text-overflow:ellipsis;white-space:nowrap}
.system-guide-section-nav small{color:#8390a2;font-size:.54rem}
.system-guide-catalog{padding:1rem}
.system-guide-catalog-head>div:last-child{display:flex;gap:.4rem;white-space:nowrap}
.system-guide-section-list{display:grid;gap:.65rem}
.system-guide-section{--sg-tone:#3156d3;overflow:hidden;border:1px solid #dfe6ef;border-radius:18px;background:#fff}
.system-guide-section[open]{border-color:color-mix(in srgb,var(--sg-tone) 35%,#dfe6ef);box-shadow:0 10px 24px rgba(35,58,102,.06)}
.system-guide-section-summary{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;gap:.7rem;align-items:center;padding:.82rem .9rem;cursor:pointer;list-style:none;background:linear-gradient(90deg,color-mix(in srgb,var(--sg-tone) 7%,#fff),#fff)}
.system-guide-section-summary::-webkit-details-marker,.system-guide-group-summary::-webkit-details-marker,.system-guide-item-summary::-webkit-details-marker,.system-guide-subdetail>summary::-webkit-details-marker{display:none}
.system-guide-section-icon{display:grid;place-items:center;width:43px;height:43px;border-radius:13px;background:color-mix(in srgb,var(--sg-tone) 12%,#fff);color:var(--sg-tone);font-size:1rem}
.system-guide-section-copy{display:grid;gap:.14rem}
.system-guide-section-copy strong{font-size:.82rem;font-weight:900}
.system-guide-section-copy small{color:#728095;font-size:.76rem;line-height:1.75}
.system-guide-section-count{display:grid;min-width:48px;text-align:center}
.system-guide-section-count b{color:var(--sg-tone);font-size:.88rem}
.system-guide-section-count small{color:#8a96a6;font-size:.52rem}
.system-guide-chevron{color:#8491a3;transition:transform .18s ease}
.system-guide-section[open]>.system-guide-section-summary .system-guide-chevron,.system-guide-group[open]>.system-guide-group-summary>i:last-child,.system-guide-item[open]>.system-guide-item-summary .system-guide-chevron,.system-guide-subdetail[open]>summary>i:last-child{transform:rotate(180deg)}
.system-guide-section-body{display:grid;gap:.55rem;padding:.65rem;border-top:1px solid #e6ebf2;background:#f7f9fc}
.system-guide-group{overflow:hidden;border:1px solid #e1e7ef;border-radius:14px;background:#fff}
.system-guide-group-summary{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;gap:.5rem;align-items:center;padding:.68rem .75rem;cursor:pointer;list-style:none}
.system-guide-group-summary>span{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:#f1f5f9;color:#60718a}
.system-guide-group-summary strong{font-size:.78rem}
.system-guide-group-summary em{padding:.24rem .38rem;border-radius:8px;background:#f5f7fa;color:#7a8798;font-size:.55rem;font-style:normal}
.system-guide-group-summary>i{color:#929dac;font-size:.62rem;transition:transform .18s ease}
.system-guide-group-body{display:grid;gap:.45rem;padding:.5rem;border-top:1px solid #e7ecf2;background:#fbfcfe}
.system-guide-item{overflow:hidden;border:1px solid #e2e8f0;border-radius:12px;background:#fff}
.system-guide-item[open]{border-color:#bdcbee;box-shadow:0 7px 17px rgba(42,63,110,.055)}
.system-guide-item-summary{display:grid;grid-template-columns:auto minmax(0,1fr) minmax(100px,auto) auto;gap:.55rem;align-items:center;padding:.62rem .68rem;cursor:pointer;list-style:none}
.system-guide-item-bullet{color:var(--sg-tone);font-size:.42rem}
.system-guide-item-title{display:grid;gap:.11rem}
.system-guide-item-title strong{font-size:.8rem;font-weight:900}
.system-guide-item-title small{color:#748195;font-size:.75rem;line-height:1.65}
.system-guide-item-summary code{overflow:hidden;max-width:250px;padding:.28rem .4rem;border-radius:7px;background:#f2f5f9;color:#596a81;font-size:.54rem;text-overflow:ellipsis;white-space:nowrap}
.system-guide-item-body{display:grid;gap:.55rem;padding:.65rem;border-top:1px solid #e6ebf2;background:#fbfcff}
.system-guide-item-overview{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;gap:.45rem}
.system-guide-item-overview>div{display:grid;gap:.18rem;padding:.55rem;border:1px solid #e2e8f0;border-radius:11px;background:#fff}
.system-guide-item-overview>div>span{color:#8894a4;font-size:.68rem}
.system-guide-item-overview>div>strong,.system-guide-item-overview>div>a{overflow-wrap:anywhere;color:#40536d;font-size:.76rem;text-decoration:none}
.system-guide-item-overview>button{padding:.45rem .58rem;border:1px solid #d5dfeb;border-radius:11px;background:#fff;color:#52657d;font-size:.72rem}
.system-guide-item-overview>button.is-copied,.system-guide-item-footer button.is-copied{border-color:#8bd4a9;background:#effcf4;color:#15803d}
.system-guide-description-block{padding:.65rem;border:1px solid #dbe5f1;border-radius:12px;background:#fff}
.system-guide-description-block h3{display:flex;align-items:center;gap:.4rem;margin:0 0 .25rem;color:#304a72;font-size:.8rem}
.system-guide-description-block p{margin:0;color:#5f7086;font-size:.85rem;line-height:2}
.system-guide-subdetail{overflow:hidden;border:1px solid #e0e7ef;border-radius:11px;background:#fff}
.system-guide-subdetail>summary{display:flex;align-items:center;justify-content:space-between;gap:.5rem;padding:.55rem .65rem;cursor:pointer;list-style:none;color:#40536d;font-size:.8rem;font-weight:800}
.system-guide-subdetail>summary span{display:flex;align-items:center;gap:.4rem}
.system-guide-subdetail>summary>i{color:#929dac;font-size:.58rem;transition:transform .18s ease}
.system-guide-subdetail>div{padding:.55rem .65rem;border-top:1px solid #e7ecf2;background:#fbfcfe}
.system-guide-subdetail ul,.system-guide-subdetail ol{display:grid;gap:.35rem;margin:0;padding:0;list-style:none}
.system-guide-subdetail li{display:flex;align-items:flex-start;gap:.45rem;color:#5e6f84;font-size:.82rem;line-height:1.9}
.system-guide-subdetail li>i{margin-top:.28rem;color:#2da66e;font-size:.55rem}
.system-guide-subdetail li>b{display:grid;place-items:center;flex:0 0 24px;height:24px;border-radius:8px;background:#eaf0ff;color:#3156d3;font-size:.56rem}
.system-guide-subdetail.tone-tip{border-color:#d7eadf}
.system-guide-subdetail.tone-tip>summary{color:#26704d}
.system-guide-subdetail.tone-tip li>i{color:#d49513}
.system-guide-subdetail.tone-warning{border-color:#f0d8a8}
.system-guide-subdetail.tone-warning>summary{color:#8b5c14}
.system-guide-subdetail.tone-warning li>i{color:#d97706}
.system-guide-item-footer{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:.4rem}
.system-guide-item-footer button,.system-guide-item-footer a{display:inline-flex;align-items:center;gap:.35rem;padding:.42rem .55rem;border:1px solid #d4deea;border-radius:9px;background:#fff;color:#52657d;text-decoration:none;font-size:.57rem}
.system-guide-item-footer a{border-color:#b9c9ed;background:#eef3ff;color:#3156d3}
.system-guide-target-flash{animation:system-guide-flash 2.1s ease}
@keyframes system-guide-flash{0%,100%{box-shadow:0 0 0 0 rgba(49,86,211,0)}20%{box-shadow:0 0 0 5px rgba(49,86,211,.18)}50%{box-shadow:0 0 0 2px rgba(49,86,211,.08)}}
.system-guide-footer-note{display:flex;align-items:center;gap:.8rem;padding:.9rem}
.system-guide-footer-note>i{display:grid;place-items:center;flex:0 0 40px;height:40px;border-radius:12px;background:#eef3ff;color:#3156d3}
.system-guide-footer-note>div{flex:1;min-width:0}
.system-guide-footer-note strong{font-size:.72rem}
.system-guide-footer-note p{margin:.15rem 0 0;color:#718096;font-size:.8rem;line-height:1.9}
.system-guide-footer-note>a{padding:.42rem .58rem;border:1px solid #bac9ed;border-radius:9px;background:#eef3ff;color:#3156d3;text-decoration:none;font-size:.6rem;white-space:nowrap}
.system-guide-page.is-searching .system-guide-search-card{box-shadow:0 0 0 3px rgba(49,86,211,.07),0 10px 28px rgba(28,47,84,.055)}
.system-guide-section-nav .tone-blue,.system-guide-section.tone-blue{--sg-tone:#3156d3}
.system-guide-section-nav .tone-indigo,.system-guide-section.tone-indigo{--sg-tone:#4f46e5}
.system-guide-section-nav .tone-violet,.system-guide-section.tone-violet{--sg-tone:#7c3aed}
.system-guide-section-nav .tone-cyan,.system-guide-section.tone-cyan{--sg-tone:#0891b2}
.system-guide-section-nav .tone-orange,.system-guide-section.tone-orange{--sg-tone:#d97706}
.system-guide-section-nav .tone-green,.system-guide-section.tone-green{--sg-tone:#059669}
.system-guide-section-nav .tone-red,.system-guide-section.tone-red{--sg-tone:#dc2626}
.system-guide-section-nav .tone-pink,.system-guide-section.tone-pink{--sg-tone:#db2777}
.system-guide-section-nav .tone-slate,.system-guide-section.tone-slate{--sg-tone:#475569}
.system-guide-section-nav .tone-amber,.system-guide-section.tone-amber{--sg-tone:#b7791f}
.system-guide-section-nav .tone-teal,.system-guide-section.tone-teal{--sg-tone:#0f766e}
.system-guide-section-nav .tone-gray,.system-guide-section.tone-gray{--sg-tone:#64748b}
.system-guide-section-nav .tone-navy,.system-guide-section.tone-navy{--sg-tone:#1e3a8a}
.system-guide-section-nav .tone-brown,.system-guide-section.tone-brown{--sg-tone:#92400e}
@media (max-width:1250px){
  .system-guide-search-grid{grid-template-columns:minmax(240px,1fr) minmax(390px,1.35fr) minmax(200px,.7fr)}
  .system-guide-search-actions{grid-column:1/-1;justify-content:flex-end}
  .system-guide-section-nav{grid-template-columns:repeat(5,minmax(0,1fr))}
}
@media (max-width:992px){
  .system-guide-hero{grid-template-columns:1fr}
  .system-guide-hero-actions{grid-template-columns:repeat(4,minmax(0,1fr))}
  .system-guide-hero-action{min-height:68px}
  .system-guide-hero-action small{display:none}
  .system-guide-search-grid{grid-template-columns:1fr 1fr}
  .system-guide-mode-picker{grid-column:1/-1}
  .system-guide-section-filter{grid-column:1}
  .system-guide-search-actions{grid-column:2;justify-content:flex-end}
  .system-guide-section-nav{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media (max-width:768px){
  .system-guide-search-head,.system-guide-navigation>header,.system-guide-catalog-head{flex-direction:column}
  .system-guide-search-grid{grid-template-columns:1fr}
  .system-guide-mode-picker,.system-guide-section-filter,.system-guide-search-actions{grid-column:auto}
  .system-guide-search-actions{justify-content:stretch}
  .system-guide-search-actions .btn{flex:1}
  .system-guide-search-results{grid-template-columns:1fr}
  .system-guide-section-nav{display:flex;overflow:auto;scroll-snap-type:x mandatory;padding-bottom:.25rem}
  .system-guide-section-nav a{flex:0 0 190px;scroll-snap-align:start}
  .system-guide-item-summary{grid-template-columns:auto minmax(0,1fr) auto}
  .system-guide-item-summary code{grid-column:2/3;max-width:100%}
  .system-guide-item-summary .system-guide-chevron{grid-column:3;grid-row:1/span 2}
  .system-guide-item-overview{grid-template-columns:1fr 1fr}
  .system-guide-item-overview>button{grid-column:1/-1}
}
@media (max-width:576px){
  .system-guide-page{padding-inline:.65rem!important}
  .system-guide-hero{padding:1rem;border-radius:20px}
  .system-guide-hero h1{font-size:1.28rem}
  .system-guide-hero p{font-size:.84rem}
  .system-guide-hero-actions{grid-template-columns:1fr 1fr}
  .system-guide-hero-action{min-height:60px;padding:.6rem}
  .system-guide-hero-action small{display:block}
  .system-guide-search-card,.system-guide-navigation,.system-guide-catalog{padding:.75rem;border-radius:17px}
  .system-guide-mode-picker{grid-template-columns:1fr}
  .system-guide-mode-picker>legend{grid-column:auto}
  .system-guide-search-examples{flex-wrap:nowrap;overflow:auto;padding-bottom:.2rem}
  .system-guide-search-examples button{flex:0 0 auto}
  .system-guide-result-card footer{align-items:flex-start;flex-direction:column}
  .system-guide-section-summary{grid-template-columns:auto minmax(0,1fr) auto;gap:.5rem;padding:.7rem}
  .system-guide-section-count{display:none}
  .system-guide-section-copy small{display:none}
  .system-guide-group-summary{padding:.6rem}
  .system-guide-item-summary{padding:.58rem}
  .system-guide-item-title small{display:none}
  .system-guide-item-summary code{font-size:.5rem}
  .system-guide-item-overview{grid-template-columns:1fr}
  .system-guide-item-overview>button{grid-column:auto}
  .system-guide-footer-note{align-items:flex-start;flex-wrap:wrap}
  .system-guide-footer-note>a{margin-right:auto}
}

/* ===== System guide: verified destinations and post-aware deep links ===== */
.system-guide-target-card{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(300px,.65fr);gap:1rem;align-items:center;margin-bottom:1rem;padding:1rem 1.1rem;border:1px solid #d9e4f2;border-radius:20px;background:linear-gradient(135deg,#f8fbff 0%,#f4f2ff 100%);box-shadow:0 10px 28px rgba(28,47,84,.055)}
.system-guide-target-copy h2{margin:.18rem 0 .3rem;font-size:.95rem;font-weight:900;color:#253a5d}
.system-guide-target-copy p{margin:0;color:#65758a;font-size:.82rem;line-height:2}
.system-guide-target-copy code{padding:.08rem .3rem;border-radius:5px;background:#e7ecf7;color:#334b76;font-size:.74rem}
.system-guide-target-picker{display:grid;gap:.35rem;padding:.7rem;border:1px solid #d9e2ef;border-radius:14px;background:#fff}
.system-guide-target-picker>span{color:#40536d;font-size:.65rem;font-weight:900}
.system-guide-target-picker select{min-height:44px;border-color:#d8e1ee;border-radius:11px;font-size:.67rem}
.system-guide-target-picker small{color:#718096;font-size:.72rem;line-height:1.8}
.system-guide-target-state{display:inline-flex;align-items:center;gap:.3rem;max-width:250px;padding:.28rem .45rem;border-radius:8px;font-size:.54rem;font-weight:800;white-space:nowrap}
.system-guide-target-state.is-unavailable{background:#f1f5f9;color:#64748b}
.system-guide-target-state.is-conditional{background:#fff7e6;color:#9a6700}
.system-guide-item-overview{grid-template-columns:minmax(0,1fr) minmax(0,1.1fr) minmax(0,.9fr) auto}
.system-guide-item-overview .system-guide-real-target{border-color:#bdd4f6;background:#f5f9ff}
.system-guide-item-overview .system-guide-real-target>a{color:#2453b5;font-weight:800}
.system-guide-target-unavailable{grid-column:span 2;border-color:#e5d8b8!important;background:#fffbf0!important}
.system-guide-target-unavailable strong{color:#87621d!important;line-height:1.8}
.system-guide-technical-endpoint{border-style:dashed!important;background:#f8fafc!important}
.system-guide-technical-endpoint code{overflow-wrap:anywhere;color:#526277;font-size:.56rem}
.system-guide-technical-endpoint code b{margin-left:.25rem;color:#7c3aed}
.system-guide-go-disabled{display:inline-flex;align-items:center;gap:.35rem;padding:.42rem .55rem;border:1px dashed #d4dce7;border-radius:9px;background:#f8fafc;color:#7b8797;font-size:.57rem}
.system-guide-result-unavailable{display:inline-flex;align-items:center;gap:.3rem;padding:.37rem .5rem;border:1px dashed #d4dce7;border-radius:9px;background:#f8fafc;color:#7b8797;font-size:.58rem}
.system-guide-result-target-note{max-width:100%;line-height:1.55}
.system-guide-result-endpoint{border:1px dashed #d8deea;background:#fbfcfe!important}
.system-guide-result-endpoint b{margin-left:.2rem;color:#7c3aed}

@media (max-width:991.98px){
  .system-guide-target-card{grid-template-columns:1fr}
  .system-guide-item-overview{grid-template-columns:1fr 1fr}
  .system-guide-target-unavailable{grid-column:1/-1}
}
@media (max-width:575.98px){
  .system-guide-target-card{padding:.75rem;border-radius:16px}
  .system-guide-item-overview{grid-template-columns:1fr}
  .system-guide-target-unavailable{grid-column:auto}
  .system-guide-target-state{grid-column:2/3;max-width:100%;white-space:normal}
}

.guide-deep-link-target{position:relative;z-index:2;animation:guide-deep-link-pulse 2.4s ease}
@keyframes guide-deep-link-pulse{
  0%,100%{box-shadow:0 0 0 0 rgba(49,86,211,0)}
  15%{box-shadow:0 0 0 6px rgba(49,86,211,.2)}
  45%{box-shadow:0 0 0 3px rgba(49,86,211,.1)}
}

/* ==========================================================================
   Update Test Lab — isolated version/link/FTP/Cron diagnostics
   ========================================================================== */
.update-test-lab{--utl-ink:#172033;--utl-muted:#64748b;--utl-border:#dbe5f0;--utl-surface:#fff;--utl-bg:#f5f8fc;color:var(--utl-ink)}
.utl-hero{display:flex;justify-content:space-between;gap:24px;align-items:center;margin:24px 0 18px;padding:30px;border-radius:24px;background:radial-gradient(circle at 15% 20%,rgba(255,255,255,.17),transparent 30%),linear-gradient(135deg,#14213d,#274c77 55%,#3a86ff);color:#fff;box-shadow:0 20px 50px rgba(26,59,110,.2);overflow:hidden;position:relative}
.utl-hero:after{content:"";position:absolute;inset:auto -80px -110px auto;width:270px;height:270px;border:45px solid rgba(255,255,255,.07);border-radius:50%}
.utl-hero-copy{max-width:850px;position:relative;z-index:1}.utl-eyebrow{display:inline-flex;align-items:center;gap:8px;padding:7px 12px;border:1px solid rgba(255,255,255,.24);background:rgba(255,255,255,.1);border-radius:999px;font-size:.82rem}.utl-hero h1{font-size:clamp(1.45rem,3vw,2.35rem);font-weight:900;margin:14px 0 10px}.utl-hero p{margin:0;line-height:2;color:rgba(255,255,255,.86)}
.utl-hero-badges{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}.utl-hero-badges span{display:inline-flex;gap:7px;align-items:center;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.16);border-radius:10px;padding:7px 10px;font-size:.78rem}.utl-hero-badges code{color:#fff}.utl-hero-actions{display:flex;flex-direction:column;gap:10px;min-width:225px;position:relative;z-index:1}.utl-hero-actions .btn{font-weight:800;padding:.75rem 1rem}
.utl-safety-strip{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:18px}.utl-safety-strip>div{display:flex;gap:10px;align-items:flex-start;background:#eef6ff;border:1px solid #cfe2ff;padding:12px 14px;border-radius:14px;font-size:.82rem;line-height:1.75}.utl-safety-strip i{color:#2563eb;margin-top:4px}.utl-safety-strip code{direction:ltr;display:inline-block}
.utl-layout{display:grid;grid-template-columns:250px minmax(0,1fr);gap:18px;align-items:start}.utl-sidebar{position:sticky;top:82px}.utl-side-nav,.utl-side-note{background:#fff;border:1px solid var(--utl-border);border-radius:18px;box-shadow:0 10px 28px rgba(15,23,42,.055)}.utl-side-nav{padding:8px}.utl-side-nav a{display:flex;align-items:center;gap:11px;color:#334155;text-decoration:none;padding:11px 12px;border-radius:11px;font-weight:700;font-size:.86rem}.utl-side-nav a:hover{background:#eef6ff;color:#1d4ed8}.utl-side-nav i{width:22px;text-align:center}.utl-side-note{padding:16px;margin-top:12px;background:linear-gradient(180deg,#fff9e8,#fff);border-color:#fde7a8}.utl-side-note>i{color:#f59e0b;font-size:1.25rem}.utl-side-note strong{display:block;margin:7px 0 3px}.utl-side-note p{font-size:.78rem;color:#6b7280;line-height:1.8;margin:0}
.utl-main{min-width:0}.utl-card{background:#fff;border:1px solid var(--utl-border);border-radius:20px;margin-bottom:18px;box-shadow:0 9px 30px rgba(15,23,42,.055);overflow:hidden;scroll-margin-top:90px}.utl-card-header{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:17px 19px;border-bottom:1px solid #edf2f7;background:linear-gradient(180deg,#fff,#fbfdff)}.utl-card-header>div:first-child{display:flex;align-items:center;gap:12px}.utl-card-header h2{font-size:1.05rem;font-weight:900;margin:0 0 4px}.utl-card-header p{margin:0;color:var(--utl-muted);font-size:.78rem}.utl-card-icon{width:42px;height:42px;border-radius:13px;display:grid;place-items:center;background:#eaf2ff;color:#2563eb;font-size:1.05rem}.utl-card-icon.tone-purple{background:#f1eafe;color:#7c3aed}.utl-card-icon.tone-green{background:#e8fff4;color:#059669}.utl-card-icon.tone-red{background:#fff0f0;color:#dc2626}.utl-card-icon.tone-cyan{background:#e7fbff;color:#0891b2}.utl-card-icon.tone-amber{background:#fff8e6;color:#d97706}.utl-card-body{padding:19px}
.utl-save-state{font-size:.76rem;padding:5px 10px;border-radius:999px;background:#f1f5f9;color:#64748b}.utl-save-state.is-saving{background:#fff7df;color:#a16207}.utl-save-state.is-saved{background:#e9fff4;color:#047857}.utl-save-state.is-error{background:#fff0f0;color:#b91c1c}.utl-switch-box{height:100%;min-height:58px;display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #dbe5f0;border-radius:12px;padding:9px 12px}.utl-switch-box strong,.utl-switch-box small{display:block}.utl-switch-box small{font-size:.7rem;color:#64748b}.utl-config-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:16px;padding-top:15px;border-top:1px dashed #dbe5f0}
.utl-source-accordion .accordion-item{border:0;border-bottom:1px solid #e9eef5}.utl-source-accordion .accordion-item:last-child{border-bottom:0}.utl-source-accordion .accordion-button{padding:16px 19px;background:#fff;box-shadow:none;display:flex;gap:11px}.utl-source-accordion .accordion-button:not(.collapsed){background:#f8fbff;color:#172033}.utl-source-accordion .accordion-button>span:nth-child(2){display:flex;flex-direction:column}.utl-source-accordion .accordion-button small{font-size:.73rem;color:#64748b;margin-top:3px}.utl-kind-dot{display:inline-block;width:10px;height:10px;border-radius:50%;margin-left:7px;vertical-align:middle}.utl-kind-dot--original{background:#2563eb}.utl-kind-dot--mod{background:#e11d48}.utl-kind-dot--unlocked{background:#7c3aed}.utl-kind-dot--beta{background:#d97706}.utl-kind-toolbar{display:flex;justify-content:space-between;align-items:end;gap:12px;margin-bottom:12px}.utl-current-version{display:flex;align-items:center;gap:10px}.utl-current-version label{font-size:.78rem;font-weight:800}.utl-current-version input{width:145px}
.utl-source-list{display:flex;flex-direction:column;gap:10px}.utl-source-row{display:grid;grid-template-columns:74px minmax(0,1fr) auto;gap:10px;align-items:center;border:1px solid #dbe5f0;border-radius:14px;padding:10px;background:#fbfdff;transition:.18s}.utl-source-row:hover{border-color:#9fc2f3;box-shadow:0 6px 18px rgba(37,99,235,.07)}.utl-source-priority{height:100%;min-height:62px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;border-left:1px dashed #d6dfeb;color:#64748b}.utl-source-priority i{font-size:.9rem}.utl-source-priority span{font-size:.68rem;font-weight:800;white-space:nowrap}.utl-source-fields{display:grid;grid-template-columns:minmax(260px,2fr) minmax(120px,.8fr) minmax(95px,.55fr) minmax(150px,1fr);gap:8px}.utl-source-field label{display:block;font-size:.68rem;font-weight:800;color:#64748b;margin-bottom:4px}.utl-source-options{display:flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:flex-end}.utl-source-options .form-check{font-size:.72rem;margin:0}.utl-source-move{display:flex;gap:4px}.utl-empty-sources{display:flex;align-items:center;justify-content:center;gap:8px;color:#94a3b8;border:1px dashed #cbd5e1;border-radius:12px;padding:20px}.utl-empty-sources[hidden]{display:none!important}.utl-add-source-wrap{display:flex;justify-content:flex-start;margin-top:12px;padding-top:10px;border-top:1px dashed #dbe5f0}.update-test-lab.is-config-locked .utl-source-row,.update-test-lab.is-config-locked .utl-webhook-target-card{opacity:.86}
.utl-detail-mode{display:flex;align-items:center;gap:8px;font-size:.78rem;font-weight:800}.utl-detail-mode select{width:155px}.utl-pipeline-buttons{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.utl-run-btn{border:1px solid #dbe5f0;border-radius:15px;background:#fff;padding:13px;display:grid;grid-template-columns:38px minmax(0,1fr) auto;gap:10px;align-items:center;text-align:right;color:#1e293b;transition:.18s}.utl-run-btn:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 10px 20px rgba(15,23,42,.1);border-color:#93b9ef}.utl-run-btn:disabled{opacity:.55;cursor:not-allowed}.utl-run-btn>i{font-size:1.15rem;color:#64748b}.utl-run-btn strong,.utl-run-btn small{display:block}.utl-run-btn strong{font-size:.86rem}.utl-run-btn small{font-size:.68rem;color:#64748b;margin-top:3px}.utl-run-number{width:34px;height:34px;border-radius:11px;display:grid;place-items:center;background:#edf4ff;color:#2563eb;font-weight:900}.utl-run-btn.step-full{grid-column:1/-1;background:linear-gradient(135deg,#0f766e,#059669);color:#fff;border-color:transparent}.utl-run-btn.step-full small,.utl-run-btn.step-full>i{color:rgba(255,255,255,.78)}.utl-run-btn.step-full .utl-run-number{background:rgba(255,255,255,.16);color:#fff}.utl-run-hint{display:flex;gap:9px;align-items:flex-start;margin-top:12px;background:#eff8ff;border:1px solid #cfe8ff;color:#315a78;padding:10px 12px;border-radius:12px;font-size:.76rem;line-height:1.8}
.utl-live-actions{display:flex;gap:12px;align-items:center;font-size:.78rem}.utl-run-status{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:12px;align-items:center;border:1px solid #dbe5f0;border-radius:15px;padding:13px;background:#f8fafc}.utl-status-indicator{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:#e2e8f0;color:#64748b}.utl-status-indicator.is-running{background:#e8f2ff;color:#2563eb;animation:utlPulse 1.4s infinite}.utl-status-indicator.is-success{background:#e9fff4;color:#059669}.utl-status-indicator.is-error{background:#fff0f0;color:#dc2626}.utl-status-indicator.is-warning{background:#fff8e5;color:#d97706}.utl-run-status strong,.utl-run-status small{display:block}.utl-run-status small{color:#64748b;margin-top:3px}.utl-status-meta{display:flex;gap:7px;flex-direction:column;align-items:flex-end;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.72rem;color:#64748b}.utl-stage-progress{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:12px 0}.utl-stage-chip{display:grid;grid-template-columns:28px 1fr;grid-template-rows:auto auto;column-gap:7px;padding:9px;border:1px solid #e2e8f0;border-radius:12px;background:#fff}.utl-stage-chip>span{grid-row:1/3;width:27px;height:27px;border-radius:9px;display:grid;place-items:center;background:#f1f5f9;font-weight:800}.utl-stage-chip strong{font-size:.75rem}.utl-stage-chip small{font-size:.65rem;color:#94a3b8}.utl-stage-chip.is-running{border-color:#93c5fd;background:#eff6ff}.utl-stage-chip.is-running>span{background:#2563eb;color:#fff}.utl-stage-chip.is-done{border-color:#86efac;background:#f0fdf4}.utl-stage-chip.is-done>span{background:#16a34a;color:#fff}.utl-stage-chip.is-failed{border-color:#fca5a5;background:#fff1f2}.utl-stage-chip.is-failed>span{background:#dc2626;color:#fff}
.utl-live-log{min-height:150px;max-height:820px;overflow:auto;border-radius:15px;background:#0f172a;padding:10px}.utl-log-empty{min-height:130px;color:#94a3b8;display:flex;flex-direction:column;gap:8px;align-items:center;justify-content:center}.utl-log-empty i{font-size:1.6rem}.utl-log-stage{background:#111c31;border:1px solid #263552;border-radius:12px;margin-bottom:8px;color:#e5edf9;overflow:hidden}.utl-log-stage>summary{display:flex;align-items:center;gap:9px;cursor:pointer;padding:11px 12px;list-style:none}.utl-log-stage>summary::-webkit-details-marker{display:none}.utl-log-stage>summary>span:nth-child(2){display:flex;flex-direction:column;flex:1}.utl-log-stage>summary small{color:#94a3b8;font-size:.68rem}.utl-stage-summary-icon{color:#60a5fa}.utl-stage-summary-time{font-family:ui-monospace,monospace;color:#93c5fd;font-size:.72rem}.utl-log-stage>summary>i:last-child{transition:.2s}.utl-log-stage[open]>summary>i:last-child{transform:rotate(180deg)}.utl-log-stage-body{border-top:1px solid #263552;padding:7px}.utl-log-item{display:grid;grid-template-columns:30px minmax(0,1fr);gap:8px;padding:10px;border-radius:9px}.utl-log-item+.utl-log-item{border-top:1px dashed #293955}.utl-log-marker{width:26px;height:26px;border-radius:50%;display:grid;place-items:center;background:#25324b;color:#93c5fd}.utl-log-item.is-success .utl-log-marker{background:#073b2d;color:#6ee7b7}.utl-log-item.is-error .utl-log-marker{background:#4c1821;color:#fda4af}.utl-log-item.is-warn .utl-log-marker{background:#4d3711;color:#fcd34d}.utl-log-content header{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.utl-log-content p{margin:5px 0 0;line-height:1.75;color:#e2e8f0;font-size:.79rem}.utl-log-time,.utl-log-kind,.utl-log-source,.utl-log-duration,.utl-log-process{font-size:.65rem;border:1px solid #354663;border-radius:999px;padding:2px 7px;color:#a9bad2;display:inline-flex;gap:4px;align-items:center}.utl-log-kind{color:#c4b5fd}.utl-log-duration{color:#93c5fd}.utl-log-meta,.utl-error-guide{margin-top:8px;border:1px solid #344767;border-radius:9px;background:#16233a}.utl-log-meta summary,.utl-error-guide summary{padding:8px 10px;cursor:pointer;font-size:.72rem;list-style:none}.utl-log-meta pre{direction:ltr;text-align:left;white-space:pre-wrap;word-break:break-word;color:#bdd0e8;font-size:.68rem;padding:10px;border-top:1px solid #344767;margin:0}.utl-error-guide>summary{display:flex;align-items:center;gap:7px;color:#fcd34d}.utl-error-guide>summary span{flex:1}.utl-error-guide-body{padding:11px;border-top:1px solid #344767}.utl-error-guide-body h5{font-size:.85rem;color:#fff}.utl-guide-columns{display:grid;grid-template-columns:1fr 1fr;gap:10px}.utl-guide-columns section,.utl-guide-checks{background:#0f1a2c;border-radius:8px;padding:9px}.utl-error-guide-body strong{font-size:.72rem;color:#bfdbfe}.utl-error-guide-body ul{list-style:none;margin:6px 0 0;padding:0}.utl-error-guide-body li{display:flex;gap:6px;font-size:.7rem;color:#cbd5e1;margin:5px 0}.utl-guide-checks{margin:9px 0}
.utl-summary-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.utl-summary-grid article{display:flex;align-items:center;gap:10px;border:1px solid #e1e8f0;background:#fbfdff;border-radius:13px;padding:12px}.utl-summary-grid i{width:38px;height:38px;border-radius:11px;display:grid;place-items:center;background:#edf4ff;color:#2563eb}.utl-summary-grid small,.utl-summary-grid strong{display:block}.utl-summary-grid small{font-size:.68rem;color:#64748b}.utl-summary-grid strong{font-size:1rem;margin-top:2px}.utl-timing-table-wrap{overflow:auto;margin-top:14px}.utl-timing-table{min-width:880px;font-size:.76rem}.utl-timing-table th{white-space:nowrap;background:#f8fafc}.utl-process-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin-top:12px}.utl-process-metrics article{display:flex;align-items:center;gap:9px;border:1px solid #e2e8f0;border-radius:12px;padding:10px}.utl-process-metrics i{color:#2563eb}.utl-process-metrics span{flex:1}.utl-process-metrics strong,.utl-process-metrics small{display:block}.utl-process-metrics small{font-size:.7rem;color:#64748b}.utl-process-metrics code{font-size:.63rem;color:#475569}
.utl-history-select{width:250px}.utl-maintenance-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.utl-maintenance-grid article{display:grid;grid-template-columns:48px minmax(0,1fr) auto;gap:12px;align-items:center;border:1px solid #e2e8f0;border-radius:14px;padding:14px}.utl-maintenance-icon{width:44px;height:44px;border-radius:13px;background:#fff1f2;color:#dc2626;display:grid;place-items:center}.utl-maintenance-grid p{font-size:.74rem;color:#64748b;line-height:1.7;margin:4px 0 0}.utl-modal{border:0;border-radius:18px;overflow:hidden}.utl-cleanup-file-list{display:flex;flex-direction:column;gap:8px}.utl-cleanup-file-list article{display:flex;gap:10px;align-items:center;border:1px solid #dbe5f0;border-radius:12px;padding:10px}.utl-cleanup-file-list article>i{color:#16a34a}.utl-cleanup-file-list strong,.utl-cleanup-file-list small{display:block}.utl-cleanup-file-list small{font-size:.7rem;color:#64748b;direction:ltr;text-align:left}.utl-cleanup-options{display:flex;flex-direction:column;gap:9px}.utl-cleanup-options label{display:flex;gap:10px;align-items:flex-start;border:1px solid #dbe5f0;border-radius:12px;padding:11px;cursor:pointer}.utl-cleanup-options strong,.utl-cleanup-options small{display:block}.utl-cleanup-options small{font-size:.72rem;color:#64748b;margin-top:3px}
.utl-toast-stack{position:fixed;top:18px;left:50%;transform:translateX(-50%);z-index:1090;width:min(92vw,520px);display:flex;flex-direction:column;gap:8px}.utl-toast{display:flex;align-items:center;gap:9px;background:#fff;border:1px solid #dbe5f0;border-radius:13px;padding:11px 14px;box-shadow:0 15px 35px rgba(15,23,42,.18);opacity:0;transform:translateY(-10px);transition:.22s}.utl-toast.show{opacity:1;transform:none}.utl-toast--success{border-color:#86efac}.utl-toast--success i{color:#16a34a}.utl-toast--error{border-color:#fca5a5}.utl-toast--error i{color:#dc2626}.utl-toast--warning{border-color:#fcd34d}.utl-toast--warning i{color:#d97706}
@keyframes utlPulse{0%,100%{box-shadow:0 0 0 0 rgba(37,99,235,.35)}50%{box-shadow:0 0 0 8px rgba(37,99,235,0)}}

/* Update test preview */
.update-test-preview{max-width:1180px}.utp-hero{display:flex;justify-content:space-between;align-items:center;gap:20px;background:linear-gradient(135deg,#102a43,#2463a7);color:#fff;border-radius:22px;padding:25px;margin-bottom:16px}.utp-hero>div>span{font-size:.78rem;display:inline-flex;gap:7px;align-items:center}.utp-hero h1{font-size:1.65rem;font-weight:900;margin:9px 0}.utp-hero p{margin:0;color:rgba(255,255,255,.82);line-height:1.9}.utp-version-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.utp-version-card{padding:14px;border-radius:15px;background:#fff;border:1px solid #dbe5f0;box-shadow:0 8px 22px rgba(15,23,42,.05)}.utp-version-card span,.utp-version-card strong,.utp-version-card small{display:block}.utp-version-card strong{font-size:1.25rem;margin:5px 0}.utp-version-card small{font-size:.68rem;color:#64748b}.utp-version-card--original{border-top:4px solid #2563eb}.utp-version-card--mod{border-top:4px solid #e11d48}.utp-version-card--unlocked{border-top:4px solid #7c3aed}.utp-version-card--beta{border-top:4px solid #d97706}.utp-summary{display:flex;gap:10px;flex-wrap:wrap;margin:13px 0}.utp-summary>div{display:flex;align-items:center;gap:9px;background:#fff;border:1px solid #dbe5f0;border-radius:12px;padding:9px 13px}.utp-summary i{color:#2563eb}.utp-summary small,.utp-summary strong{display:block}.utp-summary small{font-size:.65rem;color:#64748b}.utp-content-card,.utp-artifacts-card{background:#fff;border:1px solid #dbe5f0;border-radius:18px;margin-top:13px;overflow:hidden;box-shadow:0 8px 24px rgba(15,23,42,.05)}.utp-content-card>header,.utp-artifacts-card>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 17px;border-bottom:1px solid #e8eef5}.utp-content-card>header>div{display:flex;gap:10px;align-items:center}.utp-content-card h2,.utp-artifacts-card h2{font-size:1rem;font-weight:900;margin:0}.utp-content-card header p{margin:2px 0 0;font-size:.7rem;color:#64748b}.utp-download-preview,.utp-artifacts-card>div,.utp-artifacts-card>p{padding:17px}.utp-empty{text-align:center;padding:35px;color:#64748b}.utp-empty i{font-size:2rem;color:#94a3b8}.utp-empty strong{display:block;margin:8px 0;color:#334155}

@media(max-width:1199.98px){.utl-layout{grid-template-columns:1fr}.utl-sidebar{position:static}.utl-side-nav{display:flex;overflow:auto}.utl-side-nav a{white-space:nowrap}.utl-side-note{display:none}.utl-source-fields{grid-template-columns:minmax(220px,2fr) repeat(3,minmax(100px,1fr))}.utl-maintenance-grid{grid-template-columns:1fr}}
@media(max-width:991.98px){.utl-hero{align-items:flex-start;flex-direction:column}.utl-hero-actions{flex-direction:row;width:100%;min-width:0}.utl-hero-actions .btn{flex:1}.utl-safety-strip{grid-template-columns:1fr}.utl-pipeline-buttons{grid-template-columns:1fr 1fr}.utl-summary-grid{grid-template-columns:1fr 1fr}.utl-process-metrics{grid-template-columns:1fr 1fr}.utl-source-row{grid-template-columns:74px minmax(0,1fr)}.utl-source-options{grid-column:1/-1;border-top:1px dashed #dbe5f0;padding-top:8px}.utl-source-fields{grid-template-columns:1fr 1fr}.utl-source-field--url{grid-column:1/-1}.utp-version-grid{grid-template-columns:1fr 1fr}}
@media(max-width:575.98px){.utl-hero{padding:20px;border-radius:18px}.utl-hero-actions{flex-direction:column}.utl-card-header{align-items:flex-start;flex-direction:column}.utl-card-header>div:first-child{align-items:flex-start}.utl-card-body{padding:14px}.utl-pipeline-buttons,.utl-summary-grid,.utl-process-metrics{grid-template-columns:1fr}.utl-run-btn.step-full{grid-column:auto}.utl-run-status{grid-template-columns:auto 1fr}.utl-status-meta{grid-column:1/-1;flex-direction:row;justify-content:space-between;align-items:center}.utl-stage-progress{grid-template-columns:1fr 1fr}.utl-source-fields{grid-template-columns:1fr}.utl-source-field--url{grid-column:auto}.utl-source-row{grid-template-columns:1fr}.utl-source-priority{min-height:auto;flex-direction:row;border:0;border-bottom:1px dashed #d6dfeb;padding-bottom:6px;justify-content:flex-start}.utl-source-options{justify-content:flex-start}.utl-kind-toolbar{align-items:stretch;flex-direction:column}.utl-current-version{justify-content:space-between}.utl-current-version input{width:135px}.utl-guide-columns{grid-template-columns:1fr}.utl-maintenance-grid article{grid-template-columns:44px 1fr}.utl-maintenance-grid button{grid-column:1/-1}.utl-history-select{width:100%}.utp-hero{align-items:flex-start;flex-direction:column}.utp-version-grid{grid-template-columns:1fr 1fr}.utp-content-card>header{align-items:flex-start;flex-direction:column}}

/* Update test lab: per-source tests, webhook stage and closeable summaries */
.utl-webhook-warning-inline{display:flex;gap:12px;align-items:flex-start;padding:13px 15px;border:1px solid #fed7aa;border-radius:14px;background:#fff7ed;color:#9a3412;line-height:1.9;margin-bottom:14px}.utl-webhook-warning-inline i{margin-top:5px;color:#ea580c}.utl-webhook-targets{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.utl-webhook-target{border:1px solid #dbe5f0;border-radius:16px;padding:14px;background:linear-gradient(180deg,#fff,#fbfdff)}.utl-webhook-target-head{display:grid;grid-template-columns:40px minmax(0,1fr) auto;gap:10px;align-items:center;margin-bottom:12px}.utl-webhook-target-head>span{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;background:#eef2ff;color:#4338ca;font-size:1.2rem}.utl-webhook-target-head strong,.utl-webhook-target-head small{display:block}.utl-webhook-target-head small{color:#64748b;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.utl-webhook-target-head>b{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;color:#64748b}.utl-webhook-target-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px}.utl-webhook-target-fields label{display:block;font-size:.72rem;font-weight:900;color:#475569;margin-bottom:5px}.utl-webhook-target>p{font-size:.72rem;color:#64748b;line-height:1.8;margin:10px 0 0}
.utl-source-row{grid-template-rows:auto auto auto}.utl-source-test-actions{grid-column:2/4;display:flex;align-items:center;gap:7px;flex-wrap:wrap;padding-top:9px;border-top:1px dashed #dbe5f0}.utl-source-test-actions>span{font-size:.72rem;font-weight:900;color:#475569;margin-left:auto}.utl-source-test-results{grid-column:1/-1;display:flex;flex-direction:column;gap:8px}.utl-closeable-box{border:1px solid #dbe5f0;border-radius:14px;background:#fff;overflow:hidden;box-shadow:0 6px 18px rgba(15,23,42,.055)}.utl-closeable-box.is-success{border-color:#a7f3d0}.utl-closeable-box.is-error{border-color:#fecaca}.utl-closeable-box.is-warning{border-color:#fde68a}.utl-closeable-box>header{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:stretch;background:#f8fafc;border-bottom:1px solid #e5e7eb}.utl-closeable-box>header>[data-box-toggle]{border:0;background:transparent;display:flex;align-items:center;gap:9px;text-align:right;padding:10px 12px;color:#1e293b}.utl-closeable-box>header>[data-box-toggle]>i{transition:.18s}.utl-closeable-box>header>[data-box-toggle] strong,.utl-closeable-box>header>[data-box-toggle] small{display:block}.utl-closeable-box>header>[data-box-toggle] small{color:#64748b;font-size:.7rem;margin-top:2px}.utl-closeable-box>header>[data-box-close]{width:42px;border:0;border-right:1px solid #e5e7eb;background:transparent;color:#64748b}.utl-closeable-box>header>[data-box-close]:hover{background:#fff0f0;color:#dc2626}.utl-closeable-box-body{padding:12px}.utl-closeable-box.is-collapsed .utl-closeable-box-body{display:none}.utl-closeable-box.is-collapsed [data-box-toggle]>i{transform:rotate(-90deg)}.utl-test-report-grid,.utl-stage-mini-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.utl-test-report-grid>span,.utl-stage-mini-grid>span{padding:8px 10px;border-radius:10px;background:#f8fafc;font-size:.76rem}.utl-test-report-grid b,.utl-stage-mini-grid b{display:block;color:#64748b;font-size:.65rem;margin-bottom:3px}.utl-link-list{direction:ltr;text-align:left;max-height:220px;overflow:auto;margin:8px 0 0;padding-left:20px}.utl-link-list a{word-break:break-all}.utl-source-artifacts{display:flex;flex-direction:column;gap:7px;margin-top:10px}.utl-source-artifacts>article{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:9px 10px;border:1px solid #dbe5f0;border-radius:11px;background:#fbfdff}.utl-source-artifacts>article>div{display:flex;align-items:center;gap:8px}.utl-source-artifacts strong,.utl-source-artifacts small{display:block}.utl-source-artifacts small{color:#64748b;font-size:.68rem}.utl-stage-summary-boxes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0 0 14px}.utl-stage-kind-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-top:9px}.utl-stage-kind-summary>span{display:flex;justify-content:space-between;gap:8px;border:1px solid #e5e7eb;border-radius:9px;padding:7px 9px;font-size:.7rem}.utl-webhook-summary{display:flex;gap:14px;font-weight:900;margin-top:10px}.utl-stage-progress{grid-template-columns:repeat(5,1fr)}.utl-pipeline-buttons{grid-template-columns:repeat(5,minmax(0,1fr))}.utl-run-btn.step-webhook{background:#fff7ed;border-color:#fdba74}.utl-run-btn.step-webhook .utl-run-number{background:#ffedd5;color:#c2410c}.utl-run-btn.step-full{grid-column:auto}.utl-run-btn.step-full-webhook{background:linear-gradient(135deg,#7c2d12,#ea580c)}
.utl-webhook-confirm-hero{display:flex;gap:14px;align-items:flex-start;padding:15px;border-radius:15px;background:#fff7ed;border:1px solid #fed7aa;color:#9a3412}.utl-webhook-confirm-hero>i{font-size:2rem}.utl-webhook-confirm-hero strong{display:block;font-size:1rem}.utl-webhook-confirm-hero p{margin:5px 0 0;line-height:1.9}.utl-webhook-confirm-list{display:flex;flex-direction:column;gap:8px;margin:14px 0}.utl-webhook-confirm-list article{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 12px;border:1px solid #dbe5f0;border-radius:11px}.utl-webhook-confirm-list article.is-missing{border-color:#fecaca;background:#fff7f7}.utl-webhook-confirm-list strong,.utl-webhook-confirm-list small{display:block}.utl-webhook-confirm-list small{color:#64748b}.utl-webhook-confirm-list>article>span{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.75rem;direction:ltr}.utl-webhook-confirm-check{display:flex;gap:10px;align-items:flex-start;border:1px solid #fecaca;background:#fff7f7;border-radius:12px;padding:12px;font-weight:800}.utl-webhook-confirm-check input{margin-top:5px}
@media(max-width:1199.98px){.utl-pipeline-buttons{grid-template-columns:repeat(2,minmax(0,1fr))}.utl-run-btn.step-full{grid-column:auto}.utl-webhook-targets{grid-template-columns:1fr}}
@media(max-width:767.98px){.utl-source-test-actions{grid-column:1/-1}.utl-source-test-actions>span{width:100%;margin:0}.utl-test-report-grid,.utl-stage-mini-grid,.utl-stage-kind-summary{grid-template-columns:1fr 1fr}.utl-stage-summary-boxes{grid-template-columns:1fr}.utl-stage-progress{grid-template-columns:1fr 1fr}.utl-pipeline-buttons{grid-template-columns:1fr}.utl-webhook-target-fields{grid-template-columns:1fr}.utl-source-artifacts>article,.utl-webhook-confirm-list article{align-items:flex-start;flex-direction:column}.utl-source-artifacts>article>div:last-child{width:100%;flex-wrap:wrap}}

/* Update Test Lab — sequential UX, local webhook toggles and near-button progress */
.utl-active-run-notice{display:flex;align-items:center;gap:12px;margin:0 0 18px;padding:13px 15px;border:1px solid #93c5fd;border-radius:15px;background:linear-gradient(135deg,#eff6ff,#fff);color:#1e40af;box-shadow:0 8px 24px rgba(37,99,235,.08)}.utl-active-run-notice>div{flex:1}.utl-active-run-notice strong,.utl-active-run-notice small{display:block}.utl-active-run-notice small{color:#64748b;margin-top:3px}
.utl-inline-save-state{display:inline-flex;margin-top:8px;padding:4px 9px;border-radius:999px;background:#f1f5f9;color:#64748b;font-size:.68rem}.utl-inline-save-state.is-saving{background:#fff7df;color:#a16207}.utl-inline-save-state.is-saved{background:#e9fff4;color:#047857}.utl-inline-save-state.is-error{background:#fff0f0;color:#b91c1c}
.utl-webhook-target{position:relative;transition:.2s}.utl-webhook-target.is-test-enabled{border-color:#86efac;background:linear-gradient(180deg,#f0fdf4,#fff)}.utl-webhook-statuses{display:flex;align-items:flex-end;flex-direction:column;gap:5px}.utl-webhook-test-switch{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 11px;margin-bottom:11px;border:1px dashed #cbd5e1;border-radius:12px;background:#f8fafc}.utl-webhook-test-switch strong,.utl-webhook-test-switch small{display:block}.utl-webhook-test-switch small{font-size:.68rem;color:#64748b;margin-top:2px}.utl-webhook-target.is-test-enabled .utl-webhook-test-switch{border-color:#86efac;background:#ecfdf5}.utl-webhook-skipped-list{display:flex;gap:7px;flex-wrap:wrap;padding:10px;border:1px solid #fde68a;background:#fffbeb;border-radius:11px;color:#92400e}.utl-webhook-skipped-list strong{width:100%}.utl-webhook-skipped-list span{padding:3px 7px;border-radius:999px;background:#fff;font-size:.72rem}
.utl-run-btn{position:relative;overflow:hidden}.utl-run-btn.is-stage-locked{filter:grayscale(.18);background:#f8fafc}.utl-run-btn.is-stage-locked:disabled{opacity:.72;cursor:not-allowed}.utl-run-btn.is-stage-locked:disabled *{cursor:not-allowed}.utl-button-runtime{display:block;min-height:0;margin-top:5px;font-style:normal;font-size:.66rem;color:#2563eb}.utl-run-btn.is-running{border-color:#60a5fa;background:linear-gradient(100deg,#eff6ff,#fff,#eff6ff);background-size:220% 100%;animation:utlButtonShimmer 1.3s linear infinite}.utl-run-btn.is-running .utl-button-runtime{min-height:18px}.utl-run-btn.step-full .utl-button-runtime{color:#d1fae5}.utl-run-btn.step-webhook-dry{background:#f5f3ff;border-color:#c4b5fd}.utl-run-btn.step-webhook-dry .utl-run-number{background:#ede9fe;color:#6d28d9}
.utl-source-test-btn{display:inline-flex;align-items:center;gap:6px;text-align:right}.utl-source-test-btn>span{display:flex;flex-direction:column}.utl-source-test-btn [data-button-runtime]{font-size:.6rem;color:inherit;opacity:.85}.utl-source-test-btn.is-running{box-shadow:0 0 0 3px rgba(59,130,246,.12)}
.utl-stage-chip.is-skipped{border-color:#cbd5e1;background:#f8fafc;color:#64748b}.utl-stage-chip.is-skipped>span{background:#94a3b8;color:#fff}.utl-stage-chip.is-partial{border-color:#fde68a;background:#fffbeb}.utl-stage-chip.is-partial>span{background:#d97706;color:#fff}
@keyframes utlButtonShimmer{0%{background-position:100% 0}100%{background-position:-100% 0}}
@media(max-width:767.98px){.utl-active-run-notice{align-items:flex-start;flex-wrap:wrap}.utl-active-run-notice button{width:100%}.utl-webhook-test-switch{align-items:flex-start}.utl-webhook-statuses{align-items:flex-start}.utl-run-btn{min-height:82px}}

/* Update Test Lab — timing waterfall */
.utl-waterfall{margin:1rem 0 1.25rem;border:1px solid #dbe7f5;border-radius:18px;background:linear-gradient(145deg,#fbfdff,#f4f8ff);overflow:hidden}
.utl-waterfall>header{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.9rem 1rem;border-bottom:1px solid #e1eaf5}
.utl-waterfall>header>div{display:flex;align-items:center;gap:.7rem}.utl-waterfall>header i{color:#2563eb}.utl-waterfall>header span{display:flex;flex-direction:column}.utl-waterfall>header small{color:#718096}.utl-waterfall>header>span{font-weight:800;color:#1e40af;background:#eaf2ff;border-radius:999px;padding:.35rem .7rem;white-space:nowrap}
.utl-waterfall-empty{padding:1.3rem;text-align:center;color:#718096}
.utl-waterfall-body{padding:1rem;display:grid;gap:.7rem}.utl-waterfall-row{display:grid;grid-template-columns:2rem minmax(8rem,11rem) minmax(10rem,1fr) 7rem;align-items:center;gap:.7rem}.utl-waterfall-row>span{width:1.8rem;height:1.8rem;display:grid;place-items:center;border-radius:50%;background:#eaf2ff;color:#1d4ed8;font-weight:900}.utl-waterfall-row>strong{font-size:.9rem}.utl-waterfall-row>div{height:.78rem;background:#e7eef8;border-radius:999px;overflow:hidden;direction:ltr}.utl-waterfall-row>div>i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#2563eb,#06b6d4);min-width:.5rem}.utl-waterfall-row>b{font-size:.82rem;color:#334155;direction:ltr;text-align:left}
@media(max-width:700px){.utl-waterfall-row{grid-template-columns:2rem 1fr 6.4rem}.utl-waterfall-row>div{grid-column:2/4}.utl-waterfall-row>b{grid-column:3;grid-row:1}.utl-waterfall>header{align-items:flex-start}.utl-waterfall>header>span{font-size:.78rem}}
.utl-button-runtime{gap:.28rem;align-items:center;flex-wrap:wrap}.utl-button-runtime span{display:inline;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.utl-button-runtime b{direction:ltr;white-space:nowrap}.utl-run-btn.is-running .utl-button-runtime{display:flex}
.utl-run-btn.is-stage-locked{cursor:not-allowed!important}.utl-run-btn.is-stage-locked *{cursor:not-allowed!important}.utl-run-hint{transition:.2s}#utl-run-controls:has(.utl-run-btn.is-stage-locked:hover) .utl-run-hint{border-color:#fbbf24;background:#fffbeb;color:#92400e}

/* =========================================================
   Secure deployment, backup and recovery center — phase 1
   ========================================================= */
.deployment-center {
  --dc-ink: #10233f;
  --dc-muted: #607089;
  --dc-border: #dfe7f2;
  --dc-surface: #ffffff;
  --dc-soft: #f5f8fc;
  --dc-primary: #2558d9;
  --dc-violet: #6f42c1;
  --dc-green: #168764;
  --dc-amber: #c67a00;
  --dc-danger: #c83d4f;
  color: var(--dc-ink);
}

.deployment-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 285px;
  margin: 0 -1rem 1rem;
  padding: 2.4rem clamp(1.25rem, 4vw, 3.5rem);
  color: #fff;
  background:
    radial-gradient(circle at 12% 20%, rgba(118, 166, 255, .42), transparent 28%),
    radial-gradient(circle at 88% 76%, rgba(101, 230, 194, .24), transparent 28%),
    linear-gradient(130deg, #102c62 0%, #244fc0 48%, #44288d 100%);
  border-radius: 0 0 30px 30px;
  box-shadow: 0 20px 55px rgba(25, 51, 111, .2);
}

.deployment-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to left, #000, transparent 84%);
}

.deployment-hero-copy,
.deployment-hero-actions { position: relative; z-index: 1; }
.deployment-hero-copy { max-width: 850px; }
.deployment-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .45rem .8rem;
  margin-bottom: .9rem;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  font-size: .82rem;
  font-weight: 800;
}
.deployment-hero h1 { margin: 0 0 .8rem; font-size: clamp(1.7rem, 3vw, 2.65rem); font-weight: 950; }
.deployment-hero p { max-width: 770px; margin: 0; color: rgba(255,255,255,.84); line-height: 2; }
.deployment-hero-badges { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.25rem; }
.deployment-hero-badges span {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .55rem .75rem;
  border-radius: 12px;
  background: rgba(6, 20, 54, .25);
  color: rgba(255,255,255,.92);
  font-size: .82rem;
}
.deployment-hero-actions { display: flex; flex-direction: column; gap: .7rem; min-width: 245px; }
.deployment-hero-actions .btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px; font-weight: 800; }

.deployment-safety-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .75rem;
  margin-bottom: 1.15rem;
}
.deployment-safety-strip > div {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  padding: .9rem 1rem;
  background: #fff;
  border: 1px solid var(--dc-border);
  border-radius: 16px;
  box-shadow: 0 7px 24px rgba(31, 57, 102, .055);
}
.deployment-safety-strip i { color: var(--dc-primary); margin-top: .2rem; }
.deployment-safety-strip span { color: var(--dc-muted); font-size: .8rem; line-height: 1.8; }
.deployment-safety-strip strong { display: block; color: var(--dc-ink); }

.deployment-layout { display: grid; grid-template-columns: 245px minmax(0, 1fr); gap: 1rem; align-items: start; }
.deployment-sidebar { position: sticky; top: 86px; display: grid; gap: .85rem; }
.deployment-side-nav,
.deployment-side-note {
  background: #fff;
  border: 1px solid var(--dc-border);
  border-radius: 18px;
  box-shadow: 0 9px 30px rgba(31, 57, 102, .06);
}
.deployment-side-nav { padding: .55rem; }
.deployment-side-nav a {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .78rem .8rem;
  color: #31415b;
  border-radius: 12px;
  text-decoration: none;
  font-size: .85rem;
  font-weight: 800;
  transition: .18s ease;
}
.deployment-side-nav a:hover { color: var(--dc-primary); background: #eef4ff; transform: translateX(-2px); }
.deployment-side-nav i { width: 20px; text-align: center; }
.deployment-side-note { padding: 1rem; background: linear-gradient(145deg, #f0f6ff, #fff); }
.deployment-side-note > i { color: var(--dc-primary); font-size: 1.2rem; }
.deployment-side-note strong { display: block; margin: .55rem 0 .35rem; }
.deployment-side-note p { margin: 0; color: var(--dc-muted); font-size: .78rem; line-height: 1.9; }

.deployment-main { min-width: 0; display: grid; gap: 1rem; }
.deployment-status-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; }
.deployment-status-card {
  display: flex;
  align-items: center;
  gap: .8rem;
  min-height: 112px;
  padding: 1rem;
  background: #fff;
  border: 1px solid var(--dc-border);
  border-top: 4px solid #8aa0bf;
  border-radius: 17px;
  box-shadow: 0 8px 25px rgba(31, 57, 102, .055);
}
.deployment-status-card.is-ready { border-top-color: var(--dc-green); }
.deployment-status-card.is-warning { border-top-color: var(--dc-amber); }
.deployment-status-card.is-blocked { border-top-color: var(--dc-danger); }
.deployment-status-card.is-planned { border-top-color: var(--dc-violet); }
.deployment-status-icon {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, #4778e8, #274fba);
  box-shadow: 0 8px 18px rgba(49, 90, 190, .22);
}
.deployment-status-card.is-ready .deployment-status-icon { background: linear-gradient(135deg, #25aa83, #117257); }
.deployment-status-card.is-warning .deployment-status-icon { background: linear-gradient(135deg, #f2ad34, #b66b00); }
.deployment-status-card.is-blocked .deployment-status-icon { background: linear-gradient(135deg, #e75a6a, #a82f40); }
.deployment-status-card.is-planned .deployment-status-icon { background: linear-gradient(135deg, #8c65dc, #5e36aa); }
.deployment-status-card > div { min-width: 0; }
.deployment-status-card small,
.deployment-status-card em { display: block; }
.deployment-status-card small { color: var(--dc-muted); font-size: .72rem; }
.deployment-status-card strong { display: block; margin: .2rem 0; font-size: 1rem; }
.deployment-status-card em { overflow: hidden; color: #7a879b; font-size: .69rem; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }

.deployment-notice { padding: .9rem 1rem; border: 1px solid transparent; border-radius: 14px; font-weight: 800; }
.deployment-notice.is-success { color: #0e684d; background: #e9f8f2; border-color: #bdebd9; }
.deployment-notice.is-warning { color: #805400; background: #fff8df; border-color: #f3d889; }
.deployment-notice.is-danger { color: #962f3d; background: #fff0f2; border-color: #efbcc4; }

.deployment-panel {
  overflow: hidden;
  background: var(--dc-surface);
  border: 1px solid var(--dc-border);
  border-radius: 20px;
  box-shadow: 0 10px 34px rgba(31, 57, 102, .065);
  scroll-margin-top: 90px;
}
.deployment-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 1.15rem;
  border-bottom: 1px solid #edf1f7;
  background: linear-gradient(180deg, #fff, #fbfcfe);
}
.deployment-panel-header > div { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.deployment-panel-header h2 { margin: 0 0 .15rem; font-size: 1rem; font-weight: 950; }
.deployment-panel-header p { margin: 0; color: var(--dc-muted); font-size: .76rem; }
.deployment-panel-icon {
  flex: 0 0 45px;
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, #527fe9, #2c55bb);
}
.deployment-panel-icon.tone-violet { background: linear-gradient(135deg, #9169df, #6537b4); }
.deployment-panel-icon.tone-green { background: linear-gradient(135deg, #25ae86, #127255); }
.deployment-panel-icon.tone-amber { background: linear-gradient(135deg, #efad3b, #b66b00); }
.deployment-panel-badge {
  flex: 0 0 auto;
  padding: .4rem .65rem;
  color: #40526d;
  background: #edf2f8;
  border-radius: 999px;
  font: 700 .68rem/1.2 monospace;
}
.deployment-panel-body { padding: 1.1rem; }

.deployment-runtime-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
.deployment-runtime-grid > div {
  min-width: 0;
  padding: .85rem;
  background: var(--dc-soft);
  border: 1px solid #e5ebf4;
  border-radius: 14px;
}
.deployment-runtime-grid > div.wide { grid-column: span 2; }
.deployment-runtime-grid small { display: block; margin-bottom: .35rem; color: var(--dc-muted); font-size: .7rem; }
.deployment-runtime-grid strong { display: block; overflow: hidden; font-size: .8rem; text-overflow: ellipsis; white-space: nowrap; }

.deployment-process-chain { margin-top: 1rem; padding-top: 1rem; border-top: 1px dashed #dce5f1; }
.deployment-process-chain h3 { margin: 0 0 .75rem; font-size: .87rem; font-weight: 900; }
.deployment-process-chain h3 i { color: var(--dc-primary); margin-left: .4rem; }
.deployment-process-item { display: flex; align-items: flex-start; gap: .75rem; position: relative; padding: .55rem 0; }
.deployment-process-item:not(:last-child)::after { content: ""; position: absolute; right: 15px; top: 38px; bottom: -4px; width: 2px; background: #dce6f3; }
.deployment-process-item > span { position: relative; z-index: 1; flex: 0 0 31px; width: 31px; height: 31px; display: grid; place-items: center; color: #fff; background: var(--dc-primary); border-radius: 50%; font-size: .72rem; font-weight: 900; }
.deployment-process-item > div { min-width: 0; }
.deployment-process-item strong,
.deployment-process-item small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.deployment-process-item strong { font-size: .78rem; }
.deployment-process-item small { color: var(--dc-muted); font-size: .68rem; }

.deployment-warning-list { display: grid; gap: .55rem; margin-top: .9rem; }
.deployment-warning-list > div { display: flex; gap: .6rem; align-items: flex-start; padding: .7rem .8rem; color: #7a5709; background: #fff8e6; border: 1px solid #f0da9a; border-radius: 12px; font-size: .76rem; line-height: 1.8; }
.deployment-warning-list:empty { display: none; }

.deployment-lock-visual { display: flex; align-items: center; gap: 1rem; padding: 1rem; background: linear-gradient(135deg, #f6f2ff, #fbfaff); border: 1px solid #e2d6f7; border-radius: 16px; }
.deployment-lock-symbol { flex: 0 0 58px; width: 58px; height: 58px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #8d66dc, #5d34a8); border-radius: 18px; font-size: 1.3rem; }
.deployment-lock-symbol.locked { background: linear-gradient(135deg, #e35d6c, #a92f40); }
.deployment-lock-visual strong { display: block; margin-bottom: .25rem; }
.deployment-lock-visual p { margin: 0; color: var(--dc-muted); font-size: .78rem; }
.deployment-rule-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; margin-top: .85rem; }
.deployment-rule-grid > div { display: flex; gap: .65rem; padding: .85rem; border: 1px solid var(--dc-border); border-radius: 14px; }
.deployment-rule-grid i { color: var(--dc-violet); margin-top: .2rem; }
.deployment-rule-grid strong,
.deployment-rule-grid small { display: block; }
.deployment-rule-grid strong { font-size: .78rem; }
.deployment-rule-grid small { margin-top: .2rem; color: var(--dc-muted); font-size: .69rem; line-height: 1.7; }

.deployment-roadmap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; }
.deployment-roadmap-item { display: flex; align-items: center; gap: .65rem; padding: .8rem; border: 1px solid var(--dc-border); border-radius: 14px; background: #fff; }
.deployment-roadmap-number { flex: 0 0 28px; width: 28px; height: 28px; display: grid; place-items: center; color: #fff; background: #7c8aa1; border-radius: 9px; font-size: .72rem; font-weight: 900; }
.deployment-roadmap-icon { color: #66758c; }
.deployment-roadmap-item strong,
.deployment-roadmap-item small { display: block; }
.deployment-roadmap-item strong { font-size: .75rem; }
.deployment-roadmap-item small { color: var(--dc-muted); font-size: .67rem; }
.deployment-roadmap-item.status-ready { border-color: #bfe6d8; background: #f3fbf8; }
.deployment-roadmap-item.status-ready .deployment-roadmap-number { background: var(--dc-green); }
.deployment-roadmap-item.status-warning { border-color: #efd99e; background: #fffaf0; }
.deployment-roadmap-item.status-warning .deployment-roadmap-number { background: var(--dc-amber); }
.deployment-roadmap-item.status-blocked { border-color: #efc0c7; background: #fff5f6; }
.deployment-roadmap-item.status-blocked .deployment-roadmap-number { background: var(--dc-danger); }
.deployment-roadmap-item.status-planned { opacity: .72; }
.deployment-future-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin-top: 1rem; }
.deployment-future-grid article { display: flex; gap: .8rem; padding: .9rem; background: var(--dc-soft); border: 1px solid #e5ebf4; border-radius: 15px; }
.deployment-future-grid > article > i { flex: 0 0 38px; width: 38px; height: 38px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #557ee1, #3a56a7); border-radius: 12px; }
.deployment-future-grid strong { display: block; font-size: .8rem; }
.deployment-future-grid p { margin: .25rem 0 0; color: var(--dc-muted); font-size: .7rem; line-height: 1.75; }

.deployment-audit-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; margin-bottom: .9rem; }
.deployment-audit-summary > div { padding: .8rem; text-align: center; background: var(--dc-soft); border: 1px solid #e5ebf4; border-radius: 13px; }
.deployment-audit-summary small,
.deployment-audit-summary strong { display: block; }
.deployment-audit-summary small { color: var(--dc-muted); font-size: .68rem; }
.deployment-audit-summary strong { margin-top: .2rem; font-size: .82rem; }
.deployment-audit-table-wrap { border: 1px solid var(--dc-border); border-radius: 14px; }
.deployment-audit-table { font-size: .74rem; }
.deployment-audit-table th { color: #50617a; background: #f4f7fb; white-space: nowrap; }
.deployment-audit-table td { max-width: 360px; }
.deployment-event-status { display: inline-flex; padding: .3rem .5rem; border-radius: 999px; background: #e9eef5; font: 700 .65rem/1 monospace; }
.deployment-event-status.status-success { color: #0f7053; background: #e5f7f0; }
.deployment-event-status.status-running { color: #2257b4; background: #e8f0ff; }
.deployment-event-status.status-warning { color: #865700; background: #fff4cf; }
.deployment-event-status.status-failed { color: #9c2f3f; background: #ffe8eb; }

@media (max-width: 1250px) {
  .deployment-safety-strip,
  .deployment-status-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .deployment-runtime-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .deployment-roadmap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 991.98px) {
  .deployment-hero { flex-direction: column; align-items: stretch; }
  .deployment-hero-actions { flex-direction: row; flex-wrap: wrap; min-width: 0; }
  .deployment-layout { grid-template-columns: 1fr; }
  .deployment-sidebar { position: static; }
  .deployment-side-nav { display: flex; overflow-x: auto; }
  .deployment-side-nav a { flex: 0 0 auto; }
  .deployment-rule-grid { grid-template-columns: 1fr; }
}

@media (max-width: 767.98px) {
  .deployment-hero { margin-inline: -.75rem; padding: 1.5rem 1rem; border-radius: 0 0 22px 22px; }
  .deployment-hero-actions { flex-direction: column; }
  .deployment-safety-strip,
  .deployment-status-grid,
  .deployment-runtime-grid,
  .deployment-roadmap,
  .deployment-future-grid,
  .deployment-audit-summary { grid-template-columns: 1fr; }
  .deployment-runtime-grid > div.wide { grid-column: auto; }
  .deployment-panel-header { align-items: flex-start; }
  .deployment-panel-badge { display: none; }
  .deployment-panel-body { padding: .85rem; }
  .deployment-audit-table { min-width: 760px; }
}

/* =========================================================
   Secure deployment center — phase 2 selective backup
   ========================================================= */
.deployment-status-grid-wide { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.deployment-backup-panel { border-color: #cfe6dc; }
.deployment-backup-form { display: grid; gap: 1rem; }
.deployment-form-section {
  min-width: 0;
  margin: 0;
  padding: 1rem;
  border: 1px solid var(--dc-border);
  border-radius: 16px;
  background: linear-gradient(180deg, #fff, #fbfcfe);
}
.deployment-form-section legend {
  float: none;
  width: auto;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin: 0 0 .85rem;
  padding: 0 .25rem;
  color: var(--dc-ink);
  font-size: .88rem;
  font-weight: 950;
}
.deployment-form-section legend > span {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--dc-primary);
  border-radius: 9px;
  font-size: .7rem;
}
.deployment-choice-grid,
.deployment-check-grid { display: grid; gap: .75rem; }
.deployment-type-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.deployment-choice-card,
.deployment-check-grid > label {
  position: relative;
  min-width: 0;
  margin: 0;
  cursor: pointer;
}
.deployment-choice-card > input,
.deployment-check-grid > label > input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.deployment-choice-card > span,
.deployment-check-grid > label > span {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .25rem;
  padding: .9rem;
  border: 1px solid #dfe7f2;
  border-radius: 14px;
  background: #fff;
  transition: .18s ease;
}
.deployment-choice-card > span > i,
.deployment-check-grid > label > span > i {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  margin-bottom: .2rem;
  color: var(--dc-primary);
  background: #edf3ff;
  border-radius: 12px;
}
.deployment-choice-card strong,
.deployment-check-grid strong { font-size: .78rem; }
.deployment-choice-card small,
.deployment-check-grid small {
  color: var(--dc-muted);
  font-size: .68rem;
  line-height: 1.75;
  overflow-wrap: anywhere;
}
.deployment-choice-card > input:checked + span,
.deployment-check-grid > label > input:checked + span {
  border-color: #7fa2f2;
  background: #f2f6ff;
  box-shadow: 0 0 0 3px rgba(37, 88, 217, .08);
}
.deployment-choice-card > input:focus-visible + span,
.deployment-check-grid > label > input:focus-visible + span { outline: 3px solid rgba(37, 88, 217, .25); outline-offset: 2px; }
.deployment-check-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.deployment-check-grid > label > span { min-height: 132px; }
.deployment-check-grid > label.is-disabled { cursor: not-allowed; opacity: .55; }
.deployment-check-grid > label.is-fixed > span { border-style: dashed; background: #f7fafc; }
.deployment-inline-options,
.deployment-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; margin-top: .85rem; }
.deployment-inline-options label,
.deployment-form-grid label {
  display: grid;
  gap: .4rem;
  color: #34445d;
  font-size: .74rem;
  font-weight: 850;
}
.deployment-form-grid .wide { grid-column: span 2; }
.deployment-inline-options .form-select,
.deployment-form-grid .form-control { min-height: 43px; border-color: #d9e3ef; border-radius: 11px; font-size: .78rem; }
.deployment-form-grid textarea.form-control { min-height: 88px; resize: vertical; }
.deployment-backup-security-note {
  display: flex;
  align-items: flex-start;
  gap: .8rem;
  padding: .9rem 1rem;
  color: #184f43;
  background: #edf9f5;
  border: 1px solid #bfe6d8;
  border-radius: 14px;
}
.deployment-backup-security-note > i { margin-top: .15rem; color: var(--dc-green); font-size: 1.15rem; }
.deployment-backup-security-note strong { display: block; margin-bottom: .2rem; font-size: .8rem; }
.deployment-backup-security-note p { margin: 0; font-size: .72rem; line-height: 1.8; }
.deployment-form-actions { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: .2rem; }
.deployment-form-actions .btn { display: inline-flex; align-items: center; gap: .5rem; min-height: 46px; padding-inline: 1.2rem; font-weight: 900; }
.deployment-form-actions small { color: var(--dc-muted); font-size: .7rem; }

.deployment-job-progress .progress { height: 22px; border-radius: 999px; background: #e9eff7; }
.deployment-job-progress .progress-bar { min-width: 44px; border-radius: 999px; font-size: .68rem; font-weight: 900; }
.deployment-job-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .7rem; margin-top: .7rem; color: var(--dc-muted); font-size: .72rem; }
.deployment-stage-list { display: grid; gap: .55rem; margin-top: .9rem; }
.deployment-stage-item { display: flex; align-items: flex-start; gap: .65rem; padding: .65rem .75rem; border: 1px solid #dfe7f2; border-radius: 12px; background: #fbfcfe; }
.deployment-stage-item > i { margin-top: .15rem; color: var(--dc-green); }
.deployment-stage-item.is-failed > i { color: var(--dc-danger); }
.deployment-stage-item strong,
.deployment-stage-item small { display: block; }
.deployment-stage-item strong { font-size: .73rem; }
.deployment-stage-item small { margin-top: .15rem; color: var(--dc-muted); font-size: .66rem; }

.deployment-backup-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; margin-bottom: .85rem; }
.deployment-backup-summary > div { display: flex; align-items: center; gap: .7rem; min-width: 0; padding: .85rem; background: var(--dc-soft); border: 1px solid #e4ebf4; border-radius: 14px; }
.deployment-backup-summary > div > i { flex: 0 0 38px; width: 38px; height: 38px; display: grid; place-items: center; color: #fff; background: var(--dc-primary); border-radius: 12px; }
.deployment-backup-summary > div.is-warning > i { background: var(--dc-amber); }
.deployment-backup-summary > div.is-good > i { background: var(--dc-green); }
.deployment-backup-summary small,
.deployment-backup-summary strong { display: block; }
.deployment-backup-summary small { color: var(--dc-muted); font-size: .67rem; }
.deployment-backup-summary strong { overflow: hidden; margin-top: .15rem; font-size: .8rem; text-overflow: ellipsis; white-space: nowrap; }
.deployment-321-warning { margin: 0 0 .85rem; }
.deployment-backup-table-wrap { border: 1px solid var(--dc-border); border-radius: 14px; }
.deployment-backup-table { min-width: 980px; font-size: .72rem; }
.deployment-backup-table th { color: #50617a; background: #f4f7fb; white-space: nowrap; }
.deployment-backup-table td > strong,
.deployment-backup-table td > small { display: block; }
.deployment-backup-table td > small { max-width: 260px; margin-top: .2rem; color: var(--dc-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.deployment-mini-progress { width: 95px; height: 7px; overflow: hidden; background: #e6edf6; border-radius: 999px; }
.deployment-mini-progress > span { display: block; height: 100%; background: linear-gradient(90deg, #2e64db, #6a8ff0); border-radius: inherit; }
.deployment-event-status.status-queued { color: #6c4da8; background: #f0e9ff; }

@media (max-width: 1400px) {
  .deployment-type-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .deployment-check-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1250px) {
  .deployment-status-grid-wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .deployment-check-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .deployment-backup-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767.98px) {
  .deployment-status-grid-wide,
  .deployment-type-grid,
  .deployment-check-grid,
  .deployment-inline-options,
  .deployment-form-grid,
  .deployment-backup-summary { grid-template-columns: 1fr; }
  .deployment-form-grid .wide { grid-column: auto; }
  .deployment-form-actions { align-items: stretch; flex-direction: column; }
  .deployment-form-actions .btn { justify-content: center; }
  .deployment-check-grid > label > span { min-height: 0; }
}

/* =========================================================
   Secure deployment center — phase 3 encrypted remotes
   ========================================================= */
.deployment-destination-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.deployment-checkbox-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
.deployment-checkbox-grid > label {
  position: relative;
  min-width: 0;
  margin: 0;
  cursor: pointer;
}
.deployment-checkbox-grid > label > input { position: absolute; opacity: 0; pointer-events: none; }
.deployment-checkbox-grid > label > span {
  min-height: 116px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .3rem;
  padding: .9rem;
  border: 1px solid #dfe7f2;
  border-radius: 14px;
  background: #fff;
  transition: .18s ease;
}
.deployment-checkbox-grid > label > input:checked + span {
  border-color: #7fa2f2;
  background: #f2f6ff;
  box-shadow: 0 0 0 3px rgba(37, 88, 217, .08);
}
.deployment-checkbox-grid > label > input:focus-visible + span { outline: 3px solid rgba(37, 88, 217, .25); outline-offset: 2px; }
.deployment-checkbox-grid > label.is-disabled { cursor: not-allowed; opacity: .5; }
.deployment-checkbox-grid strong { font-size: .78rem; }
.deployment-checkbox-grid small { color: var(--dc-muted); font-size: .68rem; line-height: 1.7; overflow-wrap: anywhere; }
.deployment-inline-fields { display: flex; flex-wrap: wrap; gap: .75rem; }
.deployment-inline-fields > label { flex: 1 1 200px; display: grid; gap: .35rem; color: #34445d; font-size: .73rem; font-weight: 850; }

.deployment-security-callout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .85rem;
  align-items: flex-start;
  padding: 1rem;
  color: #174f45;
  background: linear-gradient(135deg, #edf9f5, #f7fcfa);
  border: 1px solid #b9e2d4;
  border-radius: 16px;
}
.deployment-security-callout > i {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--dc-green);
  border-radius: 13px;
}
.deployment-security-callout strong { display: block; margin-bottom: .25rem; font-size: .82rem; }
.deployment-security-callout p { margin: 0; font-size: .72rem; line-height: 1.85; }

.deployment-remote-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; }
.deployment-remote-card {
  min-width: 0;
  padding: 1rem;
  border: 1px solid #dde6f1;
  border-radius: 17px;
  background: linear-gradient(180deg, #fff, #f9fbfe);
  box-shadow: 0 10px 24px rgba(28, 54, 88, .05);
}
.deployment-remote-card.is-ready { border-color: #b8decf; background: linear-gradient(180deg, #fff, #f3fbf8); }
.deployment-remote-card.is-disabled { opacity: .7; }
.deployment-remote-card > header { display: flex; align-items: center; justify-content: space-between; gap: .65rem; margin-bottom: .75rem; }
.deployment-remote-card > header > div { display: flex; align-items: center; gap: .65rem; min-width: 0; }
.deployment-remote-card > header i {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--dc-primary);
  border-radius: 12px;
}
.deployment-remote-card h4 { margin: 0; font-size: .84rem; font-weight: 950; }
.deployment-remote-card header small { display: block; margin-top: .15rem; color: var(--dc-muted); font-size: .65rem; }
.deployment-remote-card p { min-height: 47px; margin: 0 0 .75rem; color: #53647d; font-size: .7rem; line-height: 1.8; }
.deployment-remote-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.deployment-remote-actions .btn { display: inline-flex; align-items: center; gap: .35rem; font-size: .69rem; font-weight: 850; }
.deployment-remote-result {
  min-height: 43px;
  margin-top: .75rem;
  padding: .65rem .75rem;
  color: #53647d;
  background: #f3f6fa;
  border: 1px dashed #d6e0ec;
  border-radius: 11px;
  font-size: .68rem;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.deployment-remote-result.is-success { color: #17634f; background: #eaf8f3; border-color: #b7dece; }
.deployment-remote-result.is-error { color: #963344; background: #fff0f2; border-color: #efc6cd; }
.deployment-remote-listing { display: grid; gap: .65rem; margin-top: .75rem; max-height: 420px; overflow: auto; }
.deployment-remote-item {
  display: grid;
  gap: .55rem;
  padding: .7rem;
  background: #fff;
  border: 1px solid #e0e7f0;
  border-radius: 11px;
}
.deployment-remote-item > div { min-width: 0; }
.deployment-remote-item strong,
.deployment-remote-item small { display: block; }
.deployment-remote-item strong { max-width: 100%; font-size: .7rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.deployment-remote-item small { margin-top: .15rem; color: var(--dc-muted); font-size: .63rem; }
.deployment-remote-item .btn { flex: 0 0 auto; font-size: .65rem; }

.deployment-progress-large { min-width: 145px; }
.deployment-progress-large .progress { height: 9px; margin-bottom: .35rem; background: #e7edf5; border-radius: 999px; }
.deployment-progress-large .progress-bar { border-radius: inherit; }
.deployment-progress-large small { color: var(--dc-muted); font-size: .63rem; }


.deployment-remote-item > header { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.deployment-remote-item > header strong,
.deployment-remote-item > header small { display: block; }
.deployment-remote-item > header small { color: var(--dc-muted); font-size: .63rem; }
.deployment-remote-asset {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .55rem .65rem;
  background: #f8fafc;
  border: 1px solid #e5ebf3;
  border-radius: 9px;
}
.deployment-remote-asset span { min-width: 0; }
.deployment-remote-asset b,
.deployment-remote-asset small { display: block; }
.deployment-remote-asset b { overflow: hidden; font-size: .66rem; text-overflow: ellipsis; white-space: nowrap; }
.deployment-remote-asset small { margin-top: .1rem; color: var(--dc-muted); font-size: .61rem; }
.deployment-remote-success { color: #17634f; font-weight: 800; }
.deployment-remote-error { color: #963344; font-weight: 800; }

@media (max-width: 1400px) {
  .deployment-destination-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1250px) {
  .deployment-remote-grid,
  .deployment-checkbox-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767.98px) {
  .deployment-destination-grid,
  .deployment-remote-grid,
  .deployment-checkbox-grid { grid-template-columns: 1fr; }
  .deployment-checkbox-grid > label > span { min-height: 0; }
  .deployment-remote-item .btn { width: 100%; justify-content: center; }
}

/* Secure deployment center — phase 4 restore */
.deployment-restore-panel .deployment-panel-body{display:grid;gap:1.25rem}
.deployment-restore-warning{display:flex;align-items:flex-start;gap:.9rem;padding:1rem 1.1rem;border:1px solid #f1c36d;border-radius:16px;background:#fff8e8;color:#704b00}
.deployment-restore-warning>i{font-size:1.35rem;margin-top:.15rem}
.deployment-restore-warning p{margin:.35rem 0 0;line-height:1.9}
.deployment-restore-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}
.deployment-form-card{display:grid;gap:.85rem;padding:1.1rem;border:1px solid var(--bs-border-color,#dee2e6);border-radius:18px;background:var(--bs-body-bg,#fff);box-shadow:0 8px 28px rgba(15,23,42,.055)}
.deployment-form-card h3{font-size:1.02rem;margin:0;display:flex;align-items:center;gap:.55rem}
.deployment-form-card label{display:grid;gap:.42rem;font-size:.9rem;font-weight:700}
.deployment-form-card input[type="file"],.deployment-form-card input[type="text"],.deployment-form-card select{width:100%;border:1px solid #d6dbe3;border-radius:12px;padding:.72rem .8rem;background:#fff;font-weight:400}
.deployment-component-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.55rem}
.deployment-component-grid label{display:flex;align-items:center;gap:.45rem;padding:.65rem .7rem;border:1px solid #e4e7ec;border-radius:12px;background:#f8fafc}
.deployment-subpanel{border:1px solid #e5e7eb;border-radius:18px;overflow:hidden;background:#fff}
.deployment-subpanel>h3{margin:0;padding:1rem 1.1rem;border-bottom:1px solid #e5e7eb;background:#f8fafc;font-size:1rem}
.deployment-mini-result{padding:.8rem;border-radius:12px;background:#eef6ff;border:1px solid #bdd8ff;word-break:break-word}
.deployment-mini-result p{margin:.35rem 0 0}
.deployment-restore-panel code{display:inline-block;max-width:560px;white-space:normal;word-break:break-all;text-align:left;direction:ltr;background:#101827;color:#e5eefb;padding:.55rem .7rem;border-radius:9px}
@media (max-width:991.98px){.deployment-restore-grid{grid-template-columns:1fr}}
@media (max-width:575.98px){.deployment-component-grid{grid-template-columns:1fr}.deployment-restore-warning{padding:.85rem}.deployment-form-card{padding:.9rem}}

/* Secure deployment center — phase 5A agent */
.deployment-agent-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.deployment-agent-grid article{display:flex;flex-direction:column;gap:7px;padding:16px;border:1px solid var(--bs-border-color,#dfe5ec);border-radius:16px;background:rgba(248,250,252,.82)}.deployment-agent-grid small{color:#667085}.deployment-agent-grid strong{font-size:1rem}.deployment-agent-grid code{font-size:.78rem;white-space:normal;overflow-wrap:anywhere}.deployment-agent-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px}.deployment-agent-actions code{padding:9px 12px;border-radius:10px;background:#0f172a;color:#dbeafe;direction:ltr}@media(max-width:1000px){.deployment-agent-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.deployment-agent-grid{grid-template-columns:1fr}.deployment-agent-actions{align-items:stretch}.deployment-agent-actions>*{width:100%}}

/* Update Test Lab — published Node post used as the read-only webhook reference */
.utl-test-post-picker{margin-bottom:16px;padding:16px;border:1px solid #bfdbfe;border-radius:16px;background:linear-gradient(180deg,#eff6ff 0,#fff 100%)}
.utl-test-post-picker-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:14px}.utl-test-post-picker-head>div{display:flex;align-items:center;gap:10px;min-width:0}.utl-test-post-picker-head>div>span{width:42px;height:42px;display:grid;place-items:center;border-radius:13px;background:#dbeafe;color:#1d4ed8;font-size:1.15rem}.utl-test-post-picker-head strong,.utl-test-post-picker-head small{display:block}.utl-test-post-picker-head small{margin-top:3px;color:#64748b;line-height:1.8}
.utl-test-post-picker-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.utl-test-post-picker-grid label{display:block;margin-bottom:6px;font-size:.78rem;font-weight:900;color:#334155}.utl-test-post-picker-grid>div>small{display:block;margin-top:5px;font-size:.68rem;color:#64748b}.utl-test-post-search-wrap{position:relative}.utl-test-post-results{position:absolute;z-index:30;inset-inline:0;top:calc(100% + 5px);max-height:320px;overflow:auto;border:1px solid #cbd5e1;border-radius:12px;background:#fff;box-shadow:0 16px 35px rgba(15,23,42,.16);padding:5px}.utl-test-post-result{width:100%;border:0;border-bottom:1px solid #eef2f7;background:#fff;display:flex;justify-content:space-between;align-items:center;gap:12px;text-align:right;padding:10px;border-radius:8px}.utl-test-post-result:last-child{border-bottom:0}.utl-test-post-result:hover,.utl-test-post-result:focus{background:#eff6ff;outline:none}.utl-test-post-result span{min-width:0}.utl-test-post-result strong,.utl-test-post-result small{display:block}.utl-test-post-result small{color:#64748b;margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.utl-test-post-result>span:last-child{text-align:left;direction:ltr;max-width:45%}.utl-test-post-result-empty{padding:12px;text-align:center;color:#64748b}
.utl-test-post-preview{margin-top:13px}.utl-test-post-empty{display:flex;align-items:center;justify-content:center;gap:8px;padding:13px;border:1px dashed #bfdbfe;border-radius:12px;color:#64748b;background:#fff}.utl-test-post-card{display:grid;grid-template-columns:46px minmax(0,1fr);gap:12px;align-items:center;padding:13px;border:1px solid #facc15;border-radius:14px;background:#fffbeb}.utl-test-post-card.is-saved{border-color:#86efac;background:#f0fdf4}.utl-test-post-card-icon{width:46px;height:46px;display:grid;place-items:center;border-radius:13px;background:#fff;color:#2563eb;font-size:1.25rem}.utl-test-post-card-title{display:flex;gap:7px;align-items:center;flex-wrap:wrap}.utl-test-post-card-title strong{font-size:.95rem;color:#0f172a}.utl-test-post-card-main p{margin:4px 0 8px;color:#475569}.utl-test-post-meta{display:flex;gap:8px;flex-wrap:wrap}.utl-test-post-meta span{display:flex;align-items:center;gap:6px;padding:4px 8px;border-radius:8px;background:rgba(255,255,255,.85);font-size:.72rem}.utl-test-post-meta b{color:#64748b}.utl-test-post-meta code{direction:ltr}.utl-test-post-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:12px}.utl-test-post-actions>span{font-size:.72rem;color:#64748b;line-height:1.8}
.utl-webhook-confirm-node-post{display:flex;flex-direction:column;gap:3px;padding:11px 12px;margin-bottom:9px;border:1px solid #bfdbfe;border-radius:11px;background:#eff6ff}.utl-webhook-confirm-node-post strong{color:#1d4ed8}.utl-webhook-confirm-node-post span{font-weight:900}.utl-webhook-confirm-node-post small{color:#64748b;direction:ltr;text-align:left}
.utl-webhook-result-list{display:flex;flex-direction:column;gap:8px;margin-top:10px}.utl-webhook-result-item{padding:10px 11px;border:1px solid #dbe5f0;border-radius:11px;background:#fff}.utl-webhook-result-item.is-success{border-color:#86efac;background:#f0fdf4}.utl-webhook-result-item.is-error{border-color:#fecaca;background:#fff7f7}.utl-webhook-result-item>header{display:flex;justify-content:space-between;gap:10px;align-items:center}.utl-webhook-result-item strong{display:block}.utl-webhook-result-item small{color:#64748b}.utl-webhook-result-item p{margin:7px 0 0;line-height:1.8;font-size:.76rem}.utl-webhook-result-meta{display:flex;gap:7px;flex-wrap:wrap;margin-top:8px}.utl-webhook-result-meta span{padding:4px 7px;border-radius:8px;background:rgba(255,255,255,.8);font-size:.7rem}
@media(max-width:767.98px){.utl-test-post-picker-head{align-items:flex-start;flex-direction:column}.utl-test-post-picker-grid{grid-template-columns:1fr}.utl-test-post-result{align-items:flex-start;flex-direction:column}.utl-test-post-result>span:last-child{max-width:100%;text-align:right}.utl-test-post-card{grid-template-columns:1fr}.utl-test-post-card-icon{display:none}.utl-test-post-actions .btn{width:100%}.utl-webhook-result-item>header{align-items:flex-start;flex-direction:column}}


/* PATCH-003 — distinguish single-source test reports and make cleanup state visually explicit */
.utl-source-test-results{gap:14px}
.utl-source-test-report{position:relative;border-width:1px 1px 1px 5px;box-shadow:0 10px 24px rgba(15,23,42,.08);background:#fff}
.utl-source-test-report--version{border-inline-start-color:#2563eb}
.utl-source-test-report--links{border-inline-start-color:#0891b2}
.utl-source-test-report--upload{border-inline-start-color:#16a34a}
.utl-source-test-report-header{display:grid!important;grid-template-columns:minmax(0,1fr) 44px!important;align-items:stretch!important;background:#fff!important}
.utl-source-test-report-toggle{display:grid!important;grid-template-columns:44px minmax(0,1fr) auto 18px;align-items:center;gap:11px;width:100%;padding:12px 14px!important;text-align:right!important}
.utl-source-test-report-icon{width:42px;height:42px;border-radius:13px;display:grid;place-items:center;font-size:1.05rem;background:#eff6ff;color:#2563eb}
.utl-source-test-report--links .utl-source-test-report-icon{background:#ecfeff;color:#0891b2}
.utl-source-test-report--upload .utl-source-test-report-icon{background:#ecfdf5;color:#16a34a}
.utl-source-test-report-heading{min-width:0}
.utl-source-test-report-heading>*{display:block}
.utl-source-test-report-kicker{font-size:.67rem;font-weight:900;letter-spacing:.01em;color:#64748b;margin-bottom:2px}
.utl-source-test-report-heading strong{font-size:.91rem;color:#0f172a}
.utl-source-test-report-heading small{font-size:.7rem;color:#64748b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:2px}
.utl-source-test-report-badges{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap}
.utl-source-test-report-duration,.utl-source-test-report-status{display:inline-flex;align-items:center;gap:5px;border-radius:999px;padding:5px 8px;font-size:.68rem;font-weight:800;white-space:nowrap}
.utl-source-test-report-duration{background:#f1f5f9;color:#475569;direction:ltr}
.utl-source-test-report-status.is-success{background:#ecfdf5;color:#047857}
.utl-source-test-report-status.is-error{background:#fff1f2;color:#be123c}
.utl-source-test-report-status.is-warning{background:#fffbeb;color:#b45309}
.utl-source-test-report-chevron{color:#94a3b8;transition:.18s}
.utl-source-test-report.is-collapsed .utl-source-test-report-chevron{transform:rotate(-90deg)}
.utl-source-test-report-section{margin-top:11px;border:1px solid #dbeafe;border-radius:12px;background:#f8fbff;overflow:hidden}
.utl-source-test-report-section>header{display:flex;align-items:center;gap:8px;padding:8px 10px;background:#eff6ff;color:#1e40af}
.utl-source-test-report-section>header span{margin-inline-start:auto;border-radius:999px;background:#dbeafe;padding:2px 7px;font-size:.68rem;font-weight:900}
.utl-source-test-report-error{display:flex;gap:9px;align-items:flex-start;margin-top:10px;padding:10px 11px;border:1px solid #fecaca;border-radius:11px;background:#fff1f2;color:#991b1b}
.utl-source-test-report-error strong,.utl-source-test-report-error span{display:block}
.utl-source-test-report-error span{font-size:.72rem;margin-top:2px}
@media(max-width:767.98px){.utl-source-test-report-toggle{grid-template-columns:40px minmax(0,1fr) 18px}.utl-source-test-report-badges{grid-column:1/-1;justify-content:flex-start;padding-inline-start:51px}.utl-source-test-report-heading small{white-space:normal}.utl-source-test-report-icon{width:38px;height:38px}.utl-source-test-results{gap:12px}}

/* PATCH-003 — exact test timestamps and concise expandable stage summaries */
.utl-source-test-report-datetime{display:inline-flex;align-items:center;gap:5px;border-radius:999px;padding:5px 8px;background:#f8fafc;color:#334155;font-size:.68rem;font-weight:800;white-space:nowrap}
.utl-source-test-report-datetime b{font:inherit;color:#0f172a}
.utl-log-summary{margin-top:9px;border:1px solid #dbeafe;border-radius:10px;background:#f8fbff;overflow:hidden}
.utl-log-summary>summary{display:flex;align-items:center;gap:8px;cursor:pointer;padding:8px 10px;color:#1d4ed8;font-size:.72rem;font-weight:900;list-style:none}
.utl-log-summary>summary::-webkit-details-marker{display:none}.utl-log-summary>summary>i:last-child{margin-inline-start:auto;transition:.18s}.utl-log-summary[open]>summary>i:last-child{transform:rotate(180deg)}
.utl-log-summary-grid{display:flex;flex-wrap:wrap;gap:7px;padding:0 10px 10px}
.utl-log-summary-grid>span{display:inline-flex;align-items:center;gap:5px;max-width:100%;padding:5px 7px;border:1px solid #e2e8f0;border-radius:8px;background:#fff;font-size:.69rem}
.utl-log-summary-grid b{color:#64748b}.utl-log-summary-grid em{font-style:normal;font-weight:800;color:#0f172a;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:320px}
@media(max-width:767.98px){.utl-source-test-report-datetime{white-space:normal}.utl-log-summary-grid{display:grid;grid-template-columns:1fr}.utl-log-summary-grid>span{justify-content:space-between}.utl-log-summary-grid em{max-width:65%;text-align:left}}

/* PATCH-004: persistent stage summaries and fallback/dry-run states */
.utl-closeable-box.is-success{border-color:#86efac;box-shadow:0 8px 22px rgba(22,163,74,.08)}
.utl-closeable-box.is-success>header{background:#f0fdf4}
.utl-closeable-box.is-warning{border-color:#fbbf24;box-shadow:0 8px 22px rgba(217,119,6,.10)}
.utl-closeable-box.is-warning>header{background:linear-gradient(135deg,#fffbeb,#fff7ed)}
.utl-closeable-box.is-warning>header>[data-box-toggle]{color:#92400e}
.utl-stage-useful-data{display:flex;flex-direction:column;gap:8px;margin-top:10px}
.utl-stage-useful-row{border:1px solid #e2e8f0;border-radius:11px;background:#fbfdff;padding:9px 10px;display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;font-size:.72rem}
.utl-stage-useful-row>strong{min-width:110px;color:#0f172a;font-size:.76rem}
.utl-stage-useful-row>span{display:inline-flex;gap:5px;align-items:center;min-width:0;color:#475569}
.utl-stage-useful-row code{max-width:100%;white-space:normal;word-break:break-all;color:#0f4c81;background:#eff6ff;border-radius:6px;padding:2px 5px}
.utl-stage-final-status{color:#15803d}
.utl-closeable-box.is-warning .utl-stage-final-status{color:#b45309}
.utl-closeable-box.is-error .utl-stage-final-status{color:#b91c1c}
.utl-fallback-note{color:#166534!important;background:#ecfdf5;border:1px solid #bbf7d0;border-radius:999px;padding:3px 8px}
.utl-webhook-dry-badge{color:#b45309;background:#fffbeb;border:1px solid #fcd34d;border-radius:999px;padding:2px 8px}
@media(max-width:767.98px){.utl-stage-useful-row{align-items:flex-start;flex-direction:column}.utl-stage-useful-row>strong{min-width:0}}

/* PATCH-029 — Global Source Purge Center */
.settings-source-list-head,
.site-priority-grid{
  grid-template-columns:minmax(210px,1.05fr) minmax(300px,1.35fr) 82px 82px minmax(190px,.9fr) 104px 92px 68px;
}
.site-priority-count,.site-priority-purge{display:flex;align-items:center;justify-content:center}
.site-priority-version-selector{display:flex;flex-direction:column;gap:.28rem;min-width:0}
.site-version-selector-fields{display:grid;grid-template-columns:86px minmax(150px,1fr) auto;gap:.35rem;align-items:center;direction:ltr}
.site-priority-version-selector small{color:#64748b;font-size:.58rem;line-height:1.45}
.site-version-selector-fields .form-control{min-width:0}
.site-post-count{display:inline-flex;align-items:center;justify-content:center;min-width:70px;padding:.3rem .5rem;border-radius:999px;background:#eefbf5;color:#047857;border:1px solid #bbf7d0;font-size:.66rem;font-weight:900;white-space:nowrap}
.site-post-count.is-loading{min-width:42px;background:#f8fafc;color:#64748b;border-color:#e2e8f0}
.site-post-count.is-unknown{background:#fff7ed;color:#9a3412;border-color:#fed7aa}
.site-priority-purge .btn{display:inline-flex;align-items:center;justify-content:center;gap:.3rem;min-width:86px}

.source-purge-modal .modal-content{border:0;border-radius:20px;overflow:hidden;box-shadow:0 28px 80px rgba(15,23,42,.28)}
.source-purge-modal-header{align-items:flex-start;background:linear-gradient(135deg,#fff1f2,#fff 75%);border-bottom:1px solid #fecdd3;padding:1rem 1.15rem}
.source-purge-modal-header p{margin-top:.25rem;color:#64748b;font-size:.72rem}
.source-purge-kicker{display:inline-flex;align-items:center;gap:.35rem;margin-bottom:.25rem;color:#be123c;font-size:.66rem;font-weight:900}
.source-purge-domain-box{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.72rem .82rem;margin-bottom:.9rem;border:1px solid #e2e8f0;border-radius:12px;background:#f8fafc}
.source-purge-domain-box span{font-size:.72rem;font-weight:850;color:#64748b}.source-purge-domain-box code{direction:ltr;color:#e11d48;font-size:.82rem}
.source-purge-loading{display:flex;align-items:center;justify-content:center;gap:.55rem;min-height:130px;color:#64748b;font-size:.78rem}
.source-purge-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.65rem;margin-bottom:.9rem}
.source-purge-summary-grid article{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:84px;padding:.65rem;border:1px solid #e2e8f0;border-radius:13px;background:#fbfdff;text-align:center}
.source-purge-summary-grid strong{font-size:1.2rem;color:#0f172a}.source-purge-summary-grid span{margin-top:.15rem;color:#64748b;font-size:.64rem;font-weight:800}
.source-purge-subdomains,.source-purge-table-wrap{padding:.78rem;margin-bottom:.8rem;border:1px solid #e2e8f0;border-radius:13px;background:#fff}
.source-purge-subdomains>strong,.source-purge-table-wrap>strong{display:block;margin-bottom:.55rem;color:#334155;font-size:.72rem}
.source-purge-hosts{display:flex;flex-wrap:wrap;gap:.4rem}.source-purge-hosts code{padding:.25rem .42rem;border-radius:8px;background:#f1f5f9;color:#be123c;font-size:.65rem;direction:ltr}
.source-purge-table-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.4rem}.source-purge-table-list>div{display:flex;align-items:center;justify-content:space-between;gap:.6rem;padding:.48rem .58rem;border-radius:9px;background:#f8fafc;color:#475569;font-size:.67rem}.source-purge-table-list strong{color:#0f172a}
.source-purge-danger-box{display:flex;align-items:flex-start;gap:.75rem;padding:.85rem;margin:.9rem 0;border:1px solid #fecaca;border-radius:14px;background:#fff7f7;color:#991b1b}
.source-purge-danger-icon{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;border-radius:12px;background:#fff;color:#dc2626;box-shadow:0 4px 14px rgba(220,38,38,.08)}
.source-purge-danger-box strong{font-size:.76rem}.source-purge-danger-box p{margin:.22rem 0 0;font-size:.67rem;line-height:1.9;color:#7f1d1d}
.source-purge-confirm{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono",monospace;text-align:left}
.source-purge-success{display:flex;align-items:flex-start;gap:.7rem;padding:1rem;border:1px solid #bbf7d0;border-radius:14px;background:#f0fdf4;color:#166534}.source-purge-success>i{font-size:1.35rem;margin-top:.1rem}.source-purge-success strong{font-size:.82rem}.source-purge-success p{margin:.2rem 0 0;font-size:.7rem;line-height:1.8}

@media(max-width:991.98px){
  .settings-source-list-head{display:none}
  .site-priority-grid{grid-template-columns:1fr auto auto auto;gap:.65rem .55rem}
  .site-priority-grid>[data-label]::before{display:block;margin-bottom:.24rem;color:#94a3b8;font-size:.58rem;font-weight:800;content:attr(data-label)}
  .site-priority-domain{grid-column:1/-1;padding-bottom:.55rem;border-bottom:1px dashed #dbe4ef}
  .site-priority-version-selector{grid-column:1/-1}
  .site-priority-count{grid-column:1/2;justify-content:flex-start}
  .site-priority-status{grid-column:2/3}.site-priority-freeze{grid-column:3/4}.site-priority-purge{grid-column:4/5}
  .site-priority-reason-wrap{grid-column:1/-1}.site-priority-remove{grid-column:4/5}
}
@media(max-width:575.98px){
  .source-purge-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .source-purge-table-list{grid-template-columns:1fr}
  .site-priority-grid{grid-template-columns:1fr auto auto}
  .site-version-selector-fields{grid-template-columns:1fr}
  .site-priority-count{grid-column:1/2}.site-priority-status{grid-column:2/3}.site-priority-freeze{grid-column:3/4}
  .site-priority-purge{grid-column:1/3;justify-content:flex-start}.site-priority-remove{grid-column:3/4}
  .site-priority-purge .btn{min-width:120px}
}

/* PATCH-053 — Adapter provenance in link tests and Test Lab */
.vs-adapter-provenance{display:flex;align-items:center;gap:.55rem;padding:.55rem .7rem;border:1px solid #bfdbfe;border-radius:10px;background:#eff6ff;color:#1e3a8a;font-size:.75rem;line-height:1.7}.vs-adapter-provenance>i{color:#2563eb}.vs-adapter-provenance code{direction:ltr;display:inline-block;color:#0f172a;background:#fff;border:1px solid #dbeafe;border-radius:6px;padding:.08rem .35rem}
.utl-adapter-provenance{border-color:#c7d2fe;background:#f8f7ff}.utl-adapter-provenance>header{background:#eef2ff;color:#4338ca}.utl-adapter-provenance-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:10px}.utl-adapter-provenance-grid>span{display:flex;flex-direction:column;gap:4px;min-width:0;padding:8px 9px;border:1px solid #e0e7ff;border-radius:9px;background:#fff;color:#475569;font-size:.71rem}.utl-adapter-provenance-grid b{color:#64748b;font-size:.65rem}.utl-adapter-provenance-grid code{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#312e81}.utl-stage-adapter-provenance code{color:#312e81}.utl-stage-adapter-provenance em{font-style:normal;padding:2px 5px;border-radius:999px;background:#fef3c7;color:#92400e;font-size:.62rem;font-weight:850}
@media(max-width:767.98px){.utl-adapter-provenance-grid{grid-template-columns:1fr 1fr}.vs-adapter-provenance{align-items:flex-start;flex-wrap:wrap}}
@media(max-width:480px){.utl-adapter-provenance-grid{grid-template-columns:1fr}}

/* PATCH-054: Android File Intelligence */
.afi-settings-panel .afi-callout,.afi-post-intro{display:flex;gap:.6rem;align-items:flex-start;padding:.8rem 1rem;border:1px solid #c7d2fe;background:#eef2ff;border-radius:12px;color:#3730a3}.afi-callout span{color:#475569}.afi-settings-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.afi-field-group{border:1px solid #e2e8f0;border-radius:14px;overflow:hidden;background:#fff}.afi-field-group.afi-heavy{border-color:#fed7aa}.afi-field-head{display:flex;justify-content:space-between;gap:10px;padding:12px 14px;background:#f8fafc;border-bottom:1px solid #e2e8f0}.afi-heavy .afi-field-head{background:#fff7ed}.afi-field-head span{font-size:.78rem;color:#64748b}.afi-field-row{display:grid;grid-template-columns:minmax(0,1fr) 140px;align-items:center;gap:10px;padding:9px 14px;border-bottom:1px solid #f1f5f9}.afi-field-row:last-child{border-bottom:0}.afi-field-row label{display:flex;align-items:center;gap:.5rem;margin:0}.afi-advanced>summary{cursor:pointer;font-weight:700;color:#334155}.afi-post-panel{border:1px solid #d1fae5;border-radius:14px;background:#fff;overflow:hidden}.afi-post-summary{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 16px;cursor:pointer;background:linear-gradient(180deg,#ecfdf5,#fff);font-weight:800;color:#065f46}.afi-post-body{padding:14px}.afi-post-controls{display:flex;justify-content:space-between;gap:12px;align-items:center;flex-wrap:wrap;margin-top:12px}.afi-group-select{display:flex;gap:12px;flex-wrap:wrap}.afi-group-select label{display:flex;gap:5px;align-items:center}.afi-post-files{display:grid;gap:10px}.afi-file-card{border:1px solid #e2e8f0;border-radius:12px;padding:12px;background:#fcfcfd}.afi-file-head{display:flex;justify-content:space-between;gap:12px;align-items:start}.afi-file-head strong{overflow-wrap:anywhere}.afi-file-head small{display:block;color:#64748b;margin-top:3px}.afi-metadata-grid{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}.afi-meta-chip{border:1px solid #e2e8f0;background:#f8fafc;border-radius:999px;padding:3px 8px;font-size:.76rem;max-width:100%;overflow-wrap:anywhere}.afi-meta-icon{width:42px;height:42px;border-radius:9px;overflow:hidden;border:1px solid #e2e8f0;background:#fff}.afi-meta-icon img{width:100%;height:100%;object-fit:contain}.afi-status-line{font-size:.72rem;color:#64748b;margin-top:7px}.afi-active-jobs{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px;font-size:.75rem;color:#334155}.afi-card-metadata{margin-top:7px;padding-top:6px;border-top:1px dashed #e2e8f0}.afi-card-metadata .afi-status-line{display:none}.afi-card-run{margin-top:6px}.btn-xs{padding:.15rem .4rem;font-size:.7rem}
.afi-log-status{display:inline-flex;align-items:center;border-radius:999px;padding:.2rem .55rem;font-size:.75rem;background:#f1f5f9}.afi-log-status.running{background:#dbeafe;color:#1d4ed8}.afi-log-status.completed{background:#dcfce7;color:#166534}.afi-log-status.failed{background:#fee2e2;color:#991b1b}.afi-log-status.cancelled{background:#f3f4f6;color:#4b5563}.afi-log-card{border:1px solid #e2e8f0;border-radius:14px;background:#fff;box-shadow:0 4px 16px rgba(15,23,42,.05)}
@media(max-width:900px){.afi-settings-groups{grid-template-columns:1fr}}@media(max-width:640px){.afi-field-row{grid-template-columns:1fr}.afi-post-controls,.afi-file-head{align-items:stretch;flex-direction:column}.afi-file-head .d-flex .btn{flex:1}}
.afi-log-dialog{width:min(860px,calc(100vw - 32px));max-height:82vh;padding:0;border:0;border-radius:18px;box-shadow:0 28px 90px rgba(15,23,42,.3);overflow:hidden}.afi-log-dialog::backdrop{background:rgba(15,23,42,.55);backdrop-filter:blur(2px)}.afi-log-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;border-bottom:1px solid #e2e8f0;background:#f8fafc}.afi-log-timeline{display:grid;gap:10px;padding:14px;max-height:68vh;overflow:auto}.afi-log-step{border:1px solid #e2e8f0;border-inline-start:4px solid #94a3b8;border-radius:12px;padding:10px 12px;background:#fff}.afi-log-step.info{border-inline-start-color:#3b82f6}.afi-log-step.warning{border-inline-start-color:#f59e0b}.afi-log-step.error{border-inline-start-color:#ef4444}.afi-log-step>div{display:flex;align-items:center;justify-content:space-between;gap:10px}.afi-log-step p{margin:.4rem 0;line-height:1.8}.afi-log-step small{color:#64748b}.afi-log-step pre{max-height:220px;overflow:auto;margin:.6rem 0 0;padding:.65rem;border-radius:9px;background:#0f172a;color:#dbeafe;font-size:.7rem;white-space:pre-wrap;overflow-wrap:anywhere}

/* PATCH-055 — Android Intelligence queue/source policies, manual preview/save and live progress */
.afi-source-policy-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.afi-source-policy-grid .settings-field{border:1px solid #dbeafe;background:#f8fbff;border-radius:12px;padding:12px}.afi-source-policy-grid small{display:block;color:#64748b;margin-top:5px;line-height:1.7}.afi-field-picker{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px}.afi-field-picker.compact{margin-top:8px}.afi-picker-group{border:1px solid #dbeafe;border-radius:12px;background:#fff;overflow:hidden}.afi-picker-group.afi-picker-heavy{border-color:#fed7aa}.afi-picker-group>summary{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;cursor:pointer;background:#f8fafc;list-style:none}.afi-picker-group.afi-picker-heavy>summary{background:#fff7ed}.afi-picker-group>summary::-webkit-details-marker{display:none}.afi-picker-group>summary label{display:flex;align-items:center;gap:7px;margin:0;font-weight:800;cursor:pointer}.afi-picker-group>summary>span{font-size:.72rem;color:#64748b}.afi-picker-children{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;padding:10px 12px}.afi-picker-children label{display:flex;align-items:center;gap:6px;margin:0;padding:6px 8px;border:1px solid #eef2f7;border-radius:8px;background:#fff;font-size:.78rem}.afi-picker-children.afi-disabled-children{opacity:.48}.afi-file-picker{margin-top:10px;border:1px dashed #cbd5e1;border-radius:10px;padding:0 9px 9px}.afi-file-picker>summary{cursor:pointer;padding:8px 2px;font-size:.78rem;font-weight:700;color:#334155}.afi-source-policy-hint{display:flex;gap:8px;flex-wrap:wrap;font-size:.72rem;color:#475569}.afi-source-policy-hint span{padding:4px 7px;background:#f1f5f9;border-radius:999px}.afi-ajax-message{min-height:1.3rem}.afi-batch-progress{border:1px solid #bfdbfe;background:#eff6ff;border-radius:10px;padding:9px 11px}.afi-batch-progress>div:first-child{display:flex;justify-content:space-between;gap:10px;font-size:.78rem;margin-bottom:6px}.afi-active-jobs{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:9px;margin-top:10px}.afi-job-card{border:1px solid #dbeafe;border-radius:12px;padding:10px;background:#fff;min-width:0}.afi-job-top,.afi-job-stage{display:flex;justify-content:space-between;gap:8px;align-items:center}.afi-job-top strong{font-size:.78rem;overflow-wrap:anywhere}.afi-job-status{font-size:.68rem;border-radius:999px;padding:2px 7px;background:#f1f5f9}.afi-job-status.status-running{background:#dbeafe;color:#1d4ed8}.afi-job-status.status-preview_ready{background:#fef3c7;color:#92400e}.afi-job-status.status-cancelling{background:#ffedd5;color:#9a3412}.afi-job-stage{font-size:.7rem;color:#64748b;margin:7px 0}.afi-job-progress{height:15px}.afi-job-progress .progress-bar{font-size:.62rem}.afi-job-message{font-size:.72rem;line-height:1.7;color:#475569;margin-top:6px}.afi-job-actions{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}.afi-preview-result{border:1px solid #fde68a;background:#fffbeb;border-radius:9px;padding:8px;margin-top:8px}.afi-preview-result>strong{display:block;font-size:.72rem;color:#92400e}.afi-preview-result .afi-metadata-grid{margin-top:6px}.afi-last-result{margin-top:7px;font-size:.7rem}.afi-mono span{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;overflow-wrap:anywhere}.afi-card-metadata .afi-metadata-grid{max-width:100%}.afi-card-metadata .afi-meta-chip{white-space:normal}.afi-card-metadata .afi-card-run{display:inline-flex;margin-top:7px}.afi-post-intro{line-height:1.85}
@media(max-width:900px){.afi-source-policy-grid,.afi-field-picker{grid-template-columns:1fr}}
@media(max-width:640px){.afi-picker-children{grid-template-columns:1fr}.afi-job-top,.afi-job-stage,.afi-batch-progress>div:first-child{align-items:flex-start;flex-direction:column}.afi-active-jobs{grid-template-columns:1fr}}
.afi-log-status.preview_ready{background:#fef3c7;color:#92400e}.afi-log-status.cancelling{background:#ffedd5;color:#9a3412}.afi-log-status.retry_wait{background:#e0e7ff;color:#3730a3}

/* PATCH-056 — Android Intelligence reliability / destructive-action UX */
.afi-permissions{width:100%;border:1px solid #dbeafe;border-radius:10px;background:#f8fbff;overflow:hidden}.afi-permissions>summary{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:7px 10px;cursor:pointer;font-size:.76rem;color:#334155}.afi-permissions>summary span{color:#64748b;font-size:.7rem}.afi-permissions-list{display:flex;flex-wrap:wrap;gap:5px;padding:8px 10px;border-top:1px solid #dbeafe;max-height:210px;overflow:auto}.afi-permissions-list code{font-size:.68rem;padding:3px 6px;border-radius:7px;background:#fff;border:1px solid #e2e8f0;overflow-wrap:anywhere;word-break:break-word}.afi-confirm-dialog{width:min(560px,calc(100vw - 28px));padding:0;border:0;border-radius:20px;box-shadow:0 28px 90px rgba(15,23,42,.34);overflow:hidden}.afi-confirm-dialog::backdrop{background:rgba(15,23,42,.62);backdrop-filter:blur(3px)}.afi-confirm-card{display:grid;grid-template-columns:auto 1fr;gap:14px;padding:20px;background:#fff}.afi-confirm-icon{width:48px;height:48px;border-radius:14px;display:flex;align-items:center;justify-content:center;background:#fee2e2;color:#b91c1c;font-size:1.25rem}.afi-confirm-card h4{font-size:1.05rem;margin:2px 0 8px;color:#7f1d1d}.afi-confirm-card p{margin:0;color:#475569;line-height:1.8}.afi-confirm-warning{display:grid;gap:4px;margin-top:12px;padding:10px 12px;border:1px solid #fecaca;border-radius:12px;background:#fff7f7;color:#7f1d1d;font-size:.78rem;line-height:1.75}.afi-confirm-file{margin-top:10px;padding:7px 10px;border-radius:9px;background:#f8fafc;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;direction:ltr;text-align:left;overflow-wrap:anywhere}.afi-confirm-actions{grid-column:1/-1;display:flex;justify-content:flex-end;gap:8px;padding-top:4px;border-top:1px solid #f1f5f9}.afi-file-delete-metadata{white-space:nowrap}@media(max-width:640px){.afi-confirm-card{grid-template-columns:1fr}.afi-confirm-icon{width:42px;height:42px}.afi-confirm-actions{flex-direction:column-reverse}.afi-confirm-actions .btn{width:100%}}

/* PATCH-057 — Android Intelligence history management */
.afi-history-tools{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:12px 0;padding:11px 12px;border:1px solid #dbeafe;border-radius:13px;background:linear-gradient(135deg,#f8fbff,#fff)}
.afi-history-tools .afi-history-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.afi-history-tools .afi-history-counts{display:flex;align-items:center;gap:7px;flex-wrap:wrap;color:#64748b;font-size:.72rem}.afi-history-tools .afi-history-counts span{display:inline-flex;align-items:center;gap:5px;padding:4px 8px;border:1px solid #e2e8f0;border-radius:999px;background:#fff}.afi-history-cleanup-row{display:flex;align-items:end;gap:8px;flex-wrap:wrap}.afi-history-cleanup-row label{display:grid;gap:4px;margin:0;color:#475569;font-size:.68rem;font-weight:800}.afi-history-cleanup-row input{min-width:150px}.afi-history-select{width:34px;text-align:center}.afi-history-post{display:grid;grid-template-columns:44px minmax(0,1fr);align-items:center;gap:9px;min-width:180px}.afi-post-thumb{width:44px;height:44px;display:block;object-fit:cover;border:1px solid #e2e8f0;border-radius:11px;background:#f8fafc;box-shadow:0 3px 10px rgba(15,23,42,.06)}.afi-history-post-copy{min-width:0}.afi-history-post-copy strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#0f172a;font-size:.76rem}.afi-history-post-copy small{display:block;margin-top:2px;color:#64748b;font-size:.64rem}.afi-history-row.is-terminal{background:#fff}.afi-history-row.is-active{background:#f8fbff}.afi-history-row .afi-history-delete-one{white-space:nowrap}.afi-error-history-row.is-resolved{opacity:.82}.afi-history-modal .modal-content{border:0;border-radius:20px;overflow:hidden;box-shadow:0 30px 90px rgba(15,23,42,.28)}.afi-history-modal .modal-header{background:linear-gradient(135deg,#fff1f2,#fff);border-bottom:1px solid #fecdd3}.afi-history-confirm-note{padding:10px 12px;border:1px solid #fecaca;border-radius:12px;background:#fff7f7;color:#7f1d1d;font-size:.72rem;line-height:1.8}.afi-history-confirm-input{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;direction:ltr;text-align:left}
@media(max-width:767.98px){.afi-history-tools{align-items:stretch;flex-direction:column}.afi-history-tools .afi-history-actions,.afi-history-cleanup-row{width:100%}.afi-history-cleanup-row label{flex:1}.afi-history-cleanup-row input{width:100%;min-width:0}.afi-history-post{grid-template-columns:38px minmax(0,1fr);min-width:150px}.afi-post-thumb{width:38px;height:38px;border-radius:9px}}

/* PATCH-061 — global site version selectors + effective selector visibility */
.settings-source-list-head,.settings-source-list{max-width:1500px}
.vs-effective-selector{margin-top:.32rem;padding:.25rem .38rem;border-radius:7px;font-size:.6rem;line-height:1.55;direction:rtl;text-align:right;overflow-wrap:anywhere}
.vs-effective-selector.is-specific{background:#fff7ed;color:#9a3412;border:1px solid #fed7aa}
.vs-effective-selector.is-global{background:#eff6ff;color:#1d4ed8;border:1px solid #bfdbfe}
.vs-effective-selector.is-default{background:#f8fafc;color:#64748b;border:1px solid #e2e8f0}
@media(max-width:991.98px){.site-version-selector-fields{grid-template-columns:96px minmax(0,1fr) auto}}
@media(max-width:575.98px){.site-version-selector-fields{grid-template-columns:1fr}}


/* PATCH-062 — comprehensive admin responsive/UI hardening */
/* Fixture/runtime parity guard: Bootstrap already applies border-box in production, but these responsive surfaces are self-contained too. */
:where(.settings-page-v2,.posts-management-page,.update-test-lab,#afiErrorsPage,#afiLogsPage,#cronHistoryPage,#cronUploadHistoryPage,#cronErrorsPage,#cronUploadErrorsPage,#activeErrorsPage),
:where(.settings-page-v2,.posts-management-page,.update-test-lab,#afiErrorsPage,#afiLogsPage,#cronHistoryPage,#cronUploadHistoryPage,#cronErrorsPage,#cronUploadErrorsPage,#activeErrorsPage) *,
:where(.settings-page-v2,.posts-management-page,.update-test-lab,#afiErrorsPage,#afiLogsPage,#cronHistoryPage,#cronUploadHistoryPage,#cronErrorsPage,#cronUploadErrorsPage,#activeErrorsPage) *::before,
:where(.settings-page-v2,.posts-management-page,.update-test-lab,#afiErrorsPage,#afiLogsPage,#cronHistoryPage,#cronUploadHistoryPage,#cronErrorsPage,#cronUploadErrorsPage,#activeErrorsPage) *::after{box-sizing:border-box}
:where(main.container,main.container-fluid,div.container[id],.settings-page-v2,.posts-management-page,.update-test-lab){min-width:0;max-width:100%}
:where(.card,.settings-panel-v2,.utl-card,.afi-log-card,.afi-file-card,.active-error-card,.error-cleanup-card){min-width:0;max-width:100%}
:where(.card,.settings-panel-v2,.utl-card,.afi-log-card,.afi-file-card,.active-error-card) :where(code,pre,a,span,strong,small,p){overflow-wrap:anywhere;word-break:normal}
:where(#afiErrorsPage,#afiLogsPage,#cronHistoryPage,#cronUploadHistoryPage,#cronErrorsPage,#cronUploadErrorsPage,#activeErrorsPage) pre{max-width:100%;white-space:pre-wrap;overflow:auto;overflow-wrap:anywhere;word-break:break-word}
:where(#afiErrorsPage,#afiLogsPage,#cronHistoryPage,#cronUploadHistoryPage,#cronErrorsPage,#cronUploadErrorsPage,#activeErrorsPage) .table-responsive{width:100%;max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-gutter:stable}

/* Source priority: two-dimensional card grid instead of a squeezed pseudo-table. */
.settings-source-list-head{display:none!important}
.settings-source-list{width:100%;max-width:none!important;display:grid;gap:.75rem;margin:0;padding:0;list-style:none}
.site-priority-item{border:1.5px solid #d7e1ed!important;border-radius:16px!important;padding:.85rem!important;box-shadow:0 5px 18px rgba(15,23,42,.035);overflow:visible}
.site-priority-grid{display:grid!important;grid-template-columns:minmax(210px,1.05fr) minmax(320px,1.7fr) minmax(170px,.8fr) minmax(180px,.9fr)!important;grid-template-areas:"domain selector selector order" "count status freeze order" "reason reason purge remove";align-items:stretch;gap:.7rem .8rem!important}
.site-priority-grid>[data-label]{min-width:0;padding:.5rem .6rem;border:1px solid #e4ebf3;border-radius:11px;background:#fbfdff}
.site-priority-grid>[data-label]::before{display:block;margin-bottom:.32rem;color:#7c8ba0;font-size:.6rem;font-weight:850;content:attr(data-label)}
.site-priority-domain{grid-area:domain;align-items:center!important;padding-bottom:.5rem!important;border-bottom:0!important;direction:ltr;text-align:left}
.site-priority-version-selector{grid-area:selector}
.site-priority-count{grid-area:count;justify-content:flex-start!important}
.site-priority-status{grid-area:status;justify-content:flex-start!important}
.site-priority-freeze{grid-area:freeze;justify-content:flex-start!important}
.site-priority-order{grid-area:order;display:flex;align-items:center;justify-content:center;gap:.4rem;flex-wrap:wrap}
.site-priority-reason-wrap{grid-area:reason}
.site-priority-purge{grid-area:purge;justify-content:flex-start!important}
.site-priority-remove{grid-area:remove;justify-content:flex-start!important}
.site-priority-index{width:30px;height:30px;flex-basis:30px;font-size:.72rem}
.site-priority-domain code{font-size:.82rem;font-weight:800;line-height:1.6}
.site-version-selector-fields{display:grid!important;grid-template-columns:minmax(82px,.4fr) minmax(180px,1fr)!important;gap:.5rem!important;align-items:center}
.site-version-selector-meta{display:flex;align-items:center;justify-content:space-between;gap:.5rem;flex-wrap:wrap;margin-top:.35rem}
.site-version-selector-state{display:inline-flex;align-items:center;justify-content:center;min-height:24px;padding:.2rem .48rem;border:1px solid #e2e8f0;border-radius:999px;background:#f8fafc;color:#64748b;font-size:.6rem;font-weight:800;white-space:nowrap}
.site-version-selector-state.is-pending{border-color:#fde68a;background:#fffbeb;color:#a16207}.site-version-selector-state.is-saving{border-color:#bfdbfe;background:#eff6ff;color:#1d4ed8}.site-version-selector-state.is-saved{border-color:#bbf7d0;background:#f0fdf4;color:#166534}.site-version-selector-state.is-error{border-color:#fecaca;background:#fff1f2;color:#b91c1c}
.site-priority-move{width:40px;height:40px;display:inline-grid;place-items:center;border-width:1.5px}.site-priority-move:disabled{opacity:.35}
.site-priority-item .form-control,.settings-inline-add .form-control{border-width:1.5px;border-color:#b9c8da;background:#fff;box-shadow:inset 0 1px 0 rgba(15,23,42,.02)}
.site-priority-item .form-control:focus,.settings-inline-add .form-control:focus{border-color:#3b82f6;box-shadow:0 0 0 .18rem rgba(59,130,246,.12)}
.site-priority-item .form-control::placeholder,.settings-inline-add .form-control::placeholder{color:#a7b4c5;font-weight:400;opacity:.62}
.site-priority-item .btn{border-width:1.5px}

/* Adapter/Android/Test Lab/list pages: prevent internal overlap and page-level shifting. */
.afi-file-card,.afi-job-card,.afi-log-card,.afi-error-history-row{overflow:hidden}
.afi-file-head,.afi-job-top,.afi-job-stage,.afi-metadata-grid,.afi-card-metadata,.afi-job-actions{min-width:0;max-width:100%}
.afi-file-head>*,.afi-job-top>*,.afi-job-stage>*,.afi-error-history-row>*{min-width:0}
.afi-meta-chip{white-space:normal!important;overflow-wrap:anywhere;word-break:break-word}
.afi-error-history-row>.d-flex{min-width:0;max-width:100%}.afi-error-history-row>.d-flex>.flex-grow-1{min-width:0}.afi-error-history-row h6,.afi-error-history-row code{max-width:100%;overflow-wrap:anywhere;word-break:break-word}
.afi-history-table{min-width:980px}.afi-history-table th,.afi-history-table td{vertical-align:middle}
.afi-history-table td:last-child{min-width:180px}

/* Posts: desktop remains a table; smaller screens become readable cards instead of a 980px-wide table. */
.posts-table-shell{max-width:100%;min-width:0;overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-gutter:stable}
.posts-management-table{max-width:100%}.posts-management-table td,.posts-management-table th{min-width:0}
.post-title-wrap,.post-title-wrap>div{min-width:0}.posts-row-actions{flex-wrap:wrap}

/* History/cron filter controls get stable wrapping and touch-friendly actions. */
:where(#cronHistoryPage,#cronUploadHistoryPage,#cronErrorsPage,#cronUploadErrorsPage,#afiLogsPage,#afiErrorsPage) :where(form.d-flex,.card-header.d-flex,.d-flex.flex-wrap){min-width:0}
:where(#cronHistoryPage,#cronUploadHistoryPage,#cronErrorsPage,#cronUploadErrorsPage,#afiLogsPage,#afiErrorsPage) .form-control,
:where(#cronHistoryPage,#cronUploadHistoryPage,#cronErrorsPage,#cronUploadErrorsPage,#afiLogsPage,#afiErrorsPage) .form-select{max-width:100%}
.pagination{flex-wrap:wrap;gap:.2rem}

@media(max-width:1199.98px){
  .site-priority-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;grid-template-areas:"domain domain" "selector selector" "count status" "freeze order" "reason reason" "purge remove"}
  .site-priority-order{justify-content:flex-start}
  .utl-layout{grid-template-columns:1fr!important}.utl-sidebar{position:static!important}.utl-side-nav{display:flex!important;max-width:100%;overflow-x:auto;scrollbar-width:thin}.utl-side-nav a{flex:0 0 auto;white-space:nowrap}.utl-side-note{display:none}
  .afi-history-table{min-width:900px}
}
@media(max-width:991.98px){
  .settings-panel-body{padding:.85rem}.settings-inline-add{align-items:stretch}.settings-inline-add .form-control{flex-basis:100%;max-width:none}.settings-inline-add .btn{min-height:44px}
  .utl-hero{padding:22px!important}.utl-safety-strip{grid-template-columns:1fr!important}.utl-card-header{align-items:flex-start;flex-wrap:wrap}.utl-source-row{grid-template-columns:1fr!important}.utl-source-priority{min-height:auto!important;flex-direction:row!important;justify-content:flex-start!important;border-left:0!important;border-bottom:1px dashed #d6dfeb;padding-bottom:.5rem}.utl-source-options{grid-column:auto!important;justify-content:flex-start!important}
  .afi-settings-groups,.afi-source-policy-grid,.afi-field-picker{grid-template-columns:1fr!important}
}
@media(max-width:767.98px){
  .site-priority-item{padding:.7rem!important}.site-priority-grid{grid-template-columns:1fr!important;grid-template-areas:"domain" "selector" "count" "status" "freeze" "order" "reason" "purge" "remove";gap:.55rem!important}.site-priority-grid>[data-label]{padding:.55rem}.site-version-selector-fields{grid-template-columns:1fr!important}.site-priority-purge .btn,.site-priority-remove .btn{width:100%;min-height:42px}.site-priority-order{justify-content:stretch}.site-priority-move{flex:1;width:auto;min-height:42px}
  .settings-hero-v2{padding:1rem}.settings-hero-v2 h1{font-size:1.25rem}.settings-panel-header{padding:.8rem}.settings-panel-icon{width:38px;height:38px;flex-basis:38px}
  .utl-hero-actions{width:100%;flex-direction:column!important}.utl-hero-actions .btn{width:100%}.utl-card-body{padding:13px!important}.utl-source-fields{grid-template-columns:1fr!important}.utl-source-field--url{grid-column:auto!important}.utl-pipeline-buttons,.utl-stage-progress,.utl-test-report-grid,.utl-stage-mini-grid,.utl-stage-kind-summary{grid-template-columns:1fr!important}.utl-run-status{grid-template-columns:1fr}.utl-status-meta{align-items:flex-start;flex-direction:row;flex-wrap:wrap}
  .afi-file-head,.afi-job-top,.afi-job-stage,.afi-batch-progress>div:first-child{align-items:flex-start!important;flex-direction:column!important}.afi-file-head>.d-flex,.afi-job-actions{width:100%}.afi-file-head>.d-flex .btn,.afi-job-actions .btn,.afi-job-actions a.btn{flex:1 1 140px}.afi-history-tools{padding:.8rem!important}.afi-history-cleanup-row{display:grid!important;grid-template-columns:1fr 1fr;align-items:stretch!important}.afi-history-cleanup-row>div{grid-column:1/-1}.afi-history-cleanup-row input{width:100%;min-width:0}.afi-history-cleanup-row .btn{min-height:42px}.afi-error-history-row>.d-flex{display:grid!important;grid-template-columns:auto 42px minmax(0,1fr);gap:.65rem!important}.afi-error-history-row>.d-flex>.flex-grow-1{grid-column:3}.afi-error-history-row .afi-post-thumb{width:42px;height:42px}

  /* Dense history/log tables become semantic cards on phones; wide content never shifts the page. */
  #afiLogsPage .table-responsive,:where(#cronHistoryPage,#cronUploadHistoryPage,#cronErrorsPage,#cronUploadErrorsPage) .table-responsive{overflow:visible!important}
  #afiLogsPage .afi-history-table,#afiLogsPage .afi-history-table tbody,#afiLogsPage .afi-history-table tr,#afiLogsPage .afi-history-table td,
  :where(#cronHistoryPage,#cronUploadHistoryPage,#cronErrorsPage,#cronUploadErrorsPage) table,:where(#cronHistoryPage,#cronUploadHistoryPage,#cronErrorsPage,#cronUploadErrorsPage) tbody,:where(#cronHistoryPage,#cronUploadHistoryPage,#cronErrorsPage,#cronUploadErrorsPage) tr,:where(#cronHistoryPage,#cronUploadHistoryPage,#cronErrorsPage,#cronUploadErrorsPage) td{display:block;width:100%;min-width:0!important;max-width:100%}
  #afiLogsPage .afi-history-table,:where(#cronHistoryPage,#cronUploadHistoryPage,#cronErrorsPage,#cronUploadErrorsPage) table{min-width:0!important;background:transparent}
  #afiLogsPage .afi-history-table thead,:where(#cronHistoryPage,#cronUploadHistoryPage,#cronErrorsPage,#cronUploadErrorsPage) thead{display:none}
  #afiLogsPage .afi-history-table tbody,:where(#cronHistoryPage,#cronUploadHistoryPage,#cronErrorsPage,#cronUploadErrorsPage) tbody{display:grid;gap:.75rem}
  #afiLogsPage .afi-history-table tbody tr,:where(#cronHistoryPage,#cronUploadHistoryPage,#cronErrorsPage,#cronUploadErrorsPage) tbody tr{overflow:hidden;border:1px solid #dbe5f0;border-radius:14px;background:#fff;box-shadow:0 5px 18px rgba(15,23,42,.04)}
  #afiLogsPage .afi-history-table tbody td,:where(#cronHistoryPage,#cronUploadHistoryPage,#cronErrorsPage,#cronUploadErrorsPage) tbody td{display:grid;grid-template-columns:minmax(104px,.34fr) minmax(0,1fr);align-items:start;gap:.55rem;padding:.58rem .7rem!important;border:0;border-bottom:1px solid #eef2f7;white-space:normal!important;text-overflow:clip!important;overflow:visible!important}
  #afiLogsPage .afi-history-table tbody td:last-child,:where(#cronHistoryPage,#cronUploadHistoryPage,#cronErrorsPage,#cronUploadErrorsPage) tbody td:last-child{border-bottom:0}
  #afiLogsPage .afi-history-table tbody td::before,:where(#cronHistoryPage,#cronUploadHistoryPage,#cronErrorsPage,#cronUploadErrorsPage) tbody td[data-label]::before{content:attr(data-label);color:#7c8ba0;font-size:.64rem;font-weight:850;line-height:1.7}
  #afiLogsPage .afi-history-table tbody td[colspan],:where(#cronHistoryPage,#cronUploadHistoryPage,#cronErrorsPage,#cronUploadErrorsPage) tbody td[colspan]{display:block;text-align:center}
  #afiLogsPage .afi-history-table tbody td[colspan]::before,:where(#cronHistoryPage,#cronUploadHistoryPage,#cronErrorsPage,#cronUploadErrorsPage) tbody td[colspan]::before{display:none}
  #afiLogsPage .afi-history-post{min-width:0;width:100%}
    .posts-table-shell{overflow:visible;border:0;background:transparent;box-shadow:none}.posts-management-table,.posts-management-table tbody,.posts-management-table tr,.posts-management-table td{display:block;width:100%;min-width:0!important}.posts-management-table{min-width:0!important}.posts-management-table thead{display:none}.posts-management-table tbody{display:grid;gap:.8rem}.posts-management-table tbody tr{overflow:hidden;border:1px solid #dbe5f0;border-radius:15px;background:#fff!important;box-shadow:0 7px 20px rgba(15,23,42,.045)}.posts-management-table td{display:grid;grid-template-columns:minmax(105px,.36fr) minmax(0,1fr);align-items:start;gap:.6rem;padding:.65rem .75rem!important;border-bottom:1px solid #eef2f7}.posts-management-table td:last-child{border-bottom:0}.posts-management-table td::before{color:#7c8ba0;font-size:.67rem;font-weight:850}.posts-management-table td[data-column="title"]::before{content:"عنوان"}.posts-management-table td[data-column="categories"]::before{content:"دسته‌ها"}.posts-management-table td[data-column="slug"]::before{content:"اسلاگ"}.posts-management-table td[data-column="status"]::before{content:"وضعیت"}.posts-management-table td[data-column="published_at"]::before{content:"تاریخ انتشار"}.posts-management-table td[data-column="update_success_count"]::before{content:"بروزرسانی موفق"}.posts-management-table td[data-column="upload_success_count"]::before{content:"فایل آپلودشده"}.posts-management-table td[data-column="error_count"]::before{content:"خطاهای یکتا"}.posts-management-table td[data-column="active_error_count"]::before{content:"خطاهای فعال"}.posts-management-table td[data-column="wordpress_mapping"]::before{content:"WordPress"}.posts-management-table td[data-column="actions"]::before{content:"عملیات"}.post-title-wrap{min-width:0}.post-title-wrap strong{max-width:none}.posts-row-actions{justify-content:flex-start}
  :where(#cronHistoryPage,#cronUploadHistoryPage) form.d-flex{display:grid!important;grid-template-columns:1fr 1fr;align-items:end!important}:where(#cronHistoryPage,#cronUploadHistoryPage) form.d-flex>div{min-width:0}:where(#cronHistoryPage,#cronUploadHistoryPage) form.d-flex .btn{min-height:42px}
}
@media(max-width:479.98px){
  .settings-page-v2,.update-test-lab,.posts-management-page{padding-inline:.6rem!important}.settings-panel-v2,.utl-card,.posts-filter-card{border-radius:14px}.settings-panel-body{padding:.65rem}
  .afi-history-cleanup-row{grid-template-columns:1fr}.afi-history-cleanup-row>div{grid-column:auto}.afi-error-history-row>.d-flex{grid-template-columns:auto minmax(0,1fr)}.afi-error-history-row>.d-flex>a{grid-column:1}.afi-error-history-row>.d-flex>.flex-grow-1{grid-column:2}.afi-error-history-row .d-flex.justify-content-between{align-items:flex-start;flex-direction:column}
  #afiLogsPage .afi-history-table tbody td,:where(#cronHistoryPage,#cronUploadHistoryPage,#cronErrorsPage,#cronUploadErrorsPage) tbody td{grid-template-columns:1fr;gap:.22rem}  .posts-management-table td{grid-template-columns:1fr;gap:.25rem}.posts-management-table td::before{padding-bottom:.15rem}.post-title-wrap{align-items:flex-start}.post-title-wrap img{width:38px;height:38px}.post-stat-badge{min-width:0;width:100%}.posts-row-actions .btn,.posts-row-actions form{flex:1}.posts-row-actions form .btn{width:100%}
  :where(#cronHistoryPage,#cronUploadHistoryPage) form.d-flex{grid-template-columns:1fr!important}:where(#cronHistoryPage,#cronUploadHistoryPage) form.d-flex .btn{width:100%}
  .pagination .page-link{padding:.38rem .55rem}
}
@media(prefers-reduced-motion:reduce){.site-priority-item,.utl-source-row,.post-stat-badge{transition:none!important}.post-stat-badge:hover{transform:none}}

/* PATCH-063 — compact source-priority restoration + production-grade admin responsiveness */
/* Keep the PATCH-061/PATCH-062 behavior, but restore the dense one-row visual language on desktop. */
.settings-source-list-head{
  display:grid!important;
  grid-template-columns:minmax(150px,1.05fr) minmax(285px,1.9fr) 82px 82px 78px minmax(175px,1.15fr) 86px 92px 72px!important;
  gap:.45rem;
  align-items:center;
  width:100%;
  max-width:none!important;
  margin:0;
  padding:.48rem .62rem;
  border:1px solid #d9e3ef;
  border-bottom:0;
  border-radius:12px 12px 0 0;
  background:#f7f9fc;
  color:#607087;
  font-size:.62rem;
  font-weight:850;
}
.settings-source-list{display:block!important;width:100%;max-width:none!important;margin:0!important;padding:0!important;list-style:none!important;border:1px solid #d9e3ef;border-radius:0 0 12px 12px;background:#fff;overflow:hidden}
.site-priority-item{margin:0!important;padding:.52rem .62rem!important;border:0!important;border-bottom:1px solid #e6edf5!important;border-radius:0!important;background:#fff!important;box-shadow:none!important;overflow:visible!important}
.site-priority-item:nth-child(even){background:#fbfcfe!important}.site-priority-item:last-child{border-bottom:0!important}.site-priority-item.is-frozen{background:#f8fafc!important}
.site-priority-grid{
  display:grid!important;
  grid-template-columns:minmax(150px,1.05fr) minmax(285px,1.9fr) 82px 82px 78px minmax(175px,1.15fr) 86px 92px 72px!important;
  grid-template-areas:none!important;
  gap:.45rem!important;
  align-items:center!important;
}
.site-priority-grid>[data-label]{grid-area:auto!important;min-width:0!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important}
.site-priority-grid>[data-label]::before{display:none!important}
.site-priority-domain{grid-area:auto!important;padding:0!important;border:0!important;gap:.45rem!important;direction:ltr;text-align:left;white-space:normal}
.site-priority-domain code{display:block;min-width:0;max-width:100%;font-size:.74rem!important;font-weight:750!important;line-height:1.55!important;overflow-wrap:anywhere;word-break:break-word}
.site-priority-index{width:25px!important;height:25px!important;flex:0 0 25px!important;font-size:.63rem!important}
.site-priority-version-selector{grid-area:auto!important;gap:.22rem!important}
.site-version-selector-fields{display:grid!important;grid-template-columns:86px minmax(0,1fr)!important;gap:.35rem!important;align-items:center!important;direction:ltr}
.site-version-selector-fields .form-control{min-width:0;height:36px;padding:.35rem .5rem;font-size:.72rem}
.site-version-selector-meta{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:.35rem!important;min-height:18px;margin:.18rem 0 0!important}
.site-version-selector-meta>small{display:none!important}.site-version-selector-state{min-height:18px!important;padding:.08rem .36rem!important;font-size:.55rem!important}
.site-priority-count,.site-priority-status,.site-priority-freeze,.site-priority-purge,.site-priority-remove{grid-area:auto!important;justify-content:center!important;min-width:0}
.site-priority-order{grid-area:auto!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:.25rem!important;flex-wrap:nowrap!important}
.site-priority-move{width:32px!important;height:32px!important;min-height:32px!important;padding:0!important;border-radius:8px!important}
.site-priority-reason-wrap{grid-area:auto!important;gap:.15rem!important}.site-priority-reason-wrap .form-control{height:36px;min-width:0;font-size:.72rem}.site-freeze-reason-help{display:none!important}
.site-priority-freeze .form-check{display:flex;align-items:center;justify-content:center;gap:.35rem;padding:0!important}.site-priority-freeze .form-check-input{float:none!important;margin:0!important}.site-priority-freeze .form-check-label{font-size:.64rem}
.site-priority-purge .btn,.site-priority-remove .btn{width:auto!important;min-width:0!important;min-height:34px!important;padding:.28rem .48rem!important;font-size:.67rem!important;white-space:nowrap}
.site-priority-purge .btn span,.site-priority-remove .btn span{display:none}
.site-priority-item .form-control,.settings-inline-add .form-control{border-width:1.5px;border-color:#b7c5d8}.site-priority-item .form-control::placeholder,.settings-inline-add .form-control::placeholder{color:#b0bbc9;font-weight:350;opacity:.58}
.site-freeze-tip{max-width:100%;overflow-wrap:anywhere}

/* Shared production admin containment: fix the child that overflows, never hide the whole page. */
:where(.update-test-lab,.adapter-admin,#afiErrorsPage,#afiLogsPage,.posts-management-page,#cronHistoryPage,#cronUploadHistoryPage,#cronErrorsPage,#cronUploadErrorsPage,.active-error-center) :where(.row,[class*="grid"],[class*="card"],[class*="item"],[class*="row"],[class*="head"],[class*="body"],[class*="actions"],[class*="fields"]){min-width:0;max-width:100%}
:where(.update-test-lab,#afiErrorsPage,#afiLogsPage,.posts-management-page,#cronHistoryPage,#cronUploadHistoryPage,#cronErrorsPage,#cronUploadErrorsPage,.active-error-center) :where(input,select,textarea,button,a,pre,code){max-width:100%}
:where(#afiErrorsPage,#afiLogsPage,.active-error-center) :where(code,.afi-mono,pre,.active-error-source){overflow-wrap:anywhere;word-break:break-word}

/* Update Test Lab: every composite owns its width and collapses progressively, not abruptly. */
.update-test-lab{width:100%;max-width:100%;overflow:visible}.utl-main,.utl-card,.utl-card-body,.utl-card-header>div,.utl-source-row,.utl-source-fields,.utl-source-field,.utl-source-options,.utl-run-btn,.utl-run-btn>*,.utl-run-status>*,.utl-test-post-picker-grid>*,.utl-webhook-target-fields>*{min-width:0;max-width:100%}
.utl-source-fields{grid-template-columns:minmax(0,2fr) repeat(3,minmax(0,1fr))!important}.utl-source-field input,.utl-source-field select{width:100%;min-width:0}.utl-source-options{justify-content:flex-end}.utl-pipeline-buttons{grid-template-columns:repeat(4,minmax(0,1fr))}.utl-run-btn{overflow:hidden}.utl-run-btn strong,.utl-run-btn small,.utl-card-header p,.utl-safety-strip span{overflow-wrap:anywhere}
.utl-live-log,.utl-timing-table-wrap,.utl-waterfall{max-width:100%;overflow:auto;overscroll-behavior:contain}.utl-live-log pre{max-width:100%;white-space:pre-wrap;overflow-wrap:anywhere}

/* Android file/report cards: stable information hierarchy with actions that wrap independently. */
.afi-post-files,.afi-file-card,.afi-card-metadata,.afi-preview-result,.afi-job-card{min-width:0;max-width:100%}.afi-file-card{display:grid;gap:.55rem;padding:12px 13px}.afi-file-head{display:grid!important;grid-template-columns:minmax(0,1fr) auto;align-items:start!important;gap:.7rem!important}.afi-file-head>div:first-child{min-width:0}.afi-file-head>.d-flex{min-width:0;max-width:100%;justify-content:flex-end;flex-wrap:wrap!important}.afi-file-head>.d-flex .btn{white-space:normal}.afi-metadata-grid{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(155px,100%),1fr));gap:.42rem!important}.afi-meta-chip{display:flex;align-items:center;min-width:0;min-height:32px;border-radius:9px!important;line-height:1.55}.afi-meta-chip>*{min-width:0;max-width:100%}.afi-card-metadata :where(code,a,span,strong,small),.afi-preview-result :where(code,a,span,strong,small),.afi-job-card :where(code,a,span,strong,small){overflow-wrap:anywhere;word-break:break-word}.afi-job-actions{align-items:stretch}.afi-job-actions :where(.btn,a.btn){display:inline-flex;align-items:center;justify-content:center;white-space:normal}
.afi-error-history-row{width:100%;max-width:100%;overflow:hidden}.afi-error-history-row>.d-flex{width:100%;max-width:100%}.afi-error-history-row pre{width:100%;max-width:100%;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word}.afi-error-history-row code{white-space:normal}

/* Post management and history/log tables become cards already at tablet width. */
.posts-table-shell{width:100%;max-width:100%}.posts-management-table{width:100%}.posts-row-actions{min-width:0}.posts-row-actions :where(.btn,form){min-width:0}
:where(#afiLogsPage,#cronHistoryPage,#cronUploadHistoryPage,#cronErrorsPage,#cronUploadErrorsPage) .table-responsive{max-width:100%}
:where(#cronHistoryPage,#cronUploadHistoryPage,#cronErrorsPage,#cronUploadErrorsPage) :where(td,th,code,a,pre){overflow-wrap:anywhere;word-break:break-word}
.active-error-item,.active-error-item-head,.active-error-entity-grid,.active-error-actions,.active-error-post,.active-error-post-names{min-width:0;max-width:100%}.active-error-item-head>*,.active-error-entity-grid>div{min-width:0}.active-error-details pre{max-width:100%;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere}.active-error-actions .btn{white-space:normal}

@media(max-width:1279.98px){
  .settings-source-list-head{display:none!important}
  .settings-source-list{border-radius:12px}
  .site-priority-grid{grid-template-columns:minmax(170px,1fr) minmax(280px,1.7fr) 90px 86px 90px minmax(190px,1.1fr)!important;grid-template-areas:"domain selector count order status freeze" "reason reason reason reason purge remove"!important;gap:.5rem .6rem!important}
  .site-priority-grid>[data-label]{grid-area:auto!important}.site-priority-domain{grid-area:domain!important}.site-priority-version-selector{grid-area:selector!important}.site-priority-count{grid-area:count!important}.site-priority-order{grid-area:order!important}.site-priority-status{grid-area:status!important}.site-priority-freeze{grid-area:freeze!important}.site-priority-reason-wrap{grid-area:reason!important}.site-priority-purge{grid-area:purge!important}.site-priority-remove{grid-area:remove!important}
  .site-priority-grid>[data-label]::before{display:block!important;margin-bottom:.18rem;color:#8a98aa;font-size:.54rem;font-weight:800;content:attr(data-label)}
}
@media(max-width:1199.98px){
  .utl-pipeline-buttons{grid-template-columns:repeat(2,minmax(0,1fr))!important}.utl-source-fields{grid-template-columns:minmax(0,1.6fr) minmax(0,1fr)!important}.utl-source-field--url{grid-column:1/-1}.utl-source-options{justify-content:flex-start}
  .afi-metadata-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:991.98px){
  .site-priority-item{padding:.62rem!important}.site-priority-grid{grid-template-columns:minmax(0,1.4fr) minmax(0,1fr) auto auto!important;grid-template-areas:"domain domain order status" "selector selector selector selector" "count freeze purge remove" "reason reason reason reason"!important}.site-version-selector-fields{grid-template-columns:92px minmax(0,1fr)!important}.site-priority-purge .btn span,.site-priority-remove .btn span{display:inline}.site-priority-purge .btn,.site-priority-remove .btn{padding-inline:.6rem!important}
  .utl-layout{grid-template-columns:1fr!important}.utl-sidebar{position:static!important}.utl-side-nav{display:flex!important;gap:.25rem;max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-width:thin}.utl-side-nav a{flex:0 0 auto;white-space:nowrap}.utl-side-note{display:none}.utl-hero{align-items:flex-start!important;flex-direction:column!important}.utl-hero-actions{width:100%;min-width:0!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))}.utl-safety-strip{grid-template-columns:repeat(2,minmax(0,1fr))!important}.utl-source-row{grid-template-columns:1fr!important}.utl-source-priority{min-height:auto!important;flex-direction:row!important;justify-content:flex-start!important;border-left:0!important;border-bottom:1px dashed #d6dfeb;padding-bottom:.5rem}.utl-source-fields{grid-template-columns:repeat(2,minmax(0,1fr))!important}.utl-source-field--url{grid-column:1/-1}

  /* tablet cardification for dense operational tables */
  #afiLogsPage .table-responsive,:where(#cronHistoryPage,#cronUploadHistoryPage,#cronErrorsPage,#cronUploadErrorsPage) .table-responsive{overflow:visible!important}
  #afiLogsPage .afi-history-table,#afiLogsPage .afi-history-table tbody,#afiLogsPage .afi-history-table tr,#afiLogsPage .afi-history-table td,
  :where(#cronHistoryPage,#cronUploadHistoryPage,#cronErrorsPage,#cronUploadErrorsPage) table,:where(#cronHistoryPage,#cronUploadHistoryPage,#cronErrorsPage,#cronUploadErrorsPage) tbody,:where(#cronHistoryPage,#cronUploadHistoryPage,#cronErrorsPage,#cronUploadErrorsPage) tr,:where(#cronHistoryPage,#cronUploadHistoryPage,#cronErrorsPage,#cronUploadErrorsPage) td{display:block;width:100%;min-width:0!important;max-width:100%}
  #afiLogsPage .afi-history-table,:where(#cronHistoryPage,#cronUploadHistoryPage,#cronErrorsPage,#cronUploadErrorsPage) table{min-width:0!important;background:transparent}
  #afiLogsPage .afi-history-table thead,:where(#cronHistoryPage,#cronUploadHistoryPage,#cronErrorsPage,#cronUploadErrorsPage) thead{display:none}
  #afiLogsPage .afi-history-table tbody,:where(#cronHistoryPage,#cronUploadHistoryPage,#cronErrorsPage,#cronUploadErrorsPage) tbody{display:grid;gap:.7rem}
  #afiLogsPage .afi-history-table tbody tr,:where(#cronHistoryPage,#cronUploadHistoryPage,#cronErrorsPage,#cronUploadErrorsPage) tbody tr{overflow:hidden;border:1px solid #dbe5f0;border-radius:13px;background:#fff;box-shadow:0 4px 14px rgba(15,23,42,.035)}
  #afiLogsPage .afi-history-table tbody td,:where(#cronHistoryPage,#cronUploadHistoryPage,#cronErrorsPage,#cronUploadErrorsPage) tbody td{display:grid;grid-template-columns:minmax(112px,.34fr) minmax(0,1fr);gap:.55rem;padding:.58rem .7rem!important;border:0;border-bottom:1px solid #eef2f7;white-space:normal!important;overflow:visible!important}
  #afiLogsPage .afi-history-table tbody td:last-child,:where(#cronHistoryPage,#cronUploadHistoryPage,#cronErrorsPage,#cronUploadErrorsPage) tbody td:last-child{border-bottom:0}
  #afiLogsPage .afi-history-table tbody td::before,:where(#cronHistoryPage,#cronUploadHistoryPage,#cronErrorsPage,#cronUploadErrorsPage) tbody td[data-label]::before{content:attr(data-label);color:#7b899b;font-size:.63rem;font-weight:850}

  .posts-table-shell{overflow:visible;border:0;background:transparent;box-shadow:none}.posts-management-table,.posts-management-table tbody,.posts-management-table tr,.posts-management-table td{display:block;width:100%;min-width:0!important;max-width:100%}.posts-management-table{min-width:0!important}.posts-management-table thead{display:none}.posts-management-table tbody{display:grid;gap:.7rem}.posts-management-table tbody tr{overflow:hidden;border:1px solid #dbe5f0;border-radius:13px;background:#fff!important;box-shadow:0 4px 14px rgba(15,23,42,.035)}.posts-management-table td{display:grid;grid-template-columns:minmax(115px,.34fr) minmax(0,1fr);gap:.55rem;padding:.58rem .7rem!important;border-bottom:1px solid #eef2f7}.posts-management-table td:last-child{border-bottom:0}
}
@media(max-width:767.98px){
  .site-priority-grid{grid-template-columns:minmax(0,1fr) auto auto!important;grid-template-areas:"domain order status" "selector selector selector" "count freeze freeze" "reason reason reason" "purge purge remove"!important}.site-version-selector-fields{grid-template-columns:1fr!important}.site-priority-order{justify-content:flex-end!important}.site-priority-purge{justify-content:flex-start!important}.site-priority-remove{justify-content:flex-end!important}.site-priority-purge .btn{width:auto!important}.site-priority-remove .btn{width:auto!important}
  .utl-hero{padding:18px!important}.utl-hero-actions{grid-template-columns:1fr}.utl-safety-strip{grid-template-columns:1fr!important}.utl-card-header{align-items:flex-start!important;flex-direction:column!important}.utl-card-header>div:first-child{align-items:flex-start!important}.utl-source-fields,.utl-pipeline-buttons,.utl-summary-grid,.utl-process-metrics,.utl-stage-progress,.utl-test-post-picker-grid,.utl-webhook-target-fields{grid-template-columns:1fr!important}.utl-source-field--url{grid-column:auto}.utl-run-status{grid-template-columns:auto minmax(0,1fr)!important}.utl-status-meta{grid-column:1/-1}.utl-run-btn{grid-template-columns:34px minmax(0,1fr) auto;padding:11px}
  .afi-file-head{grid-template-columns:1fr!important}.afi-file-head>.d-flex{justify-content:flex-start!important}.afi-metadata-grid{grid-template-columns:1fr!important}.afi-job-top,.afi-job-stage,.afi-batch-progress>div:first-child{align-items:flex-start!important;flex-direction:column!important}.afi-job-actions{width:100%}.afi-job-actions :where(.btn,a.btn){flex:1 1 140px}.afi-history-tools{align-items:stretch!important;flex-direction:column!important}
  .active-error-item{padding:.8rem}.active-error-item-head{align-items:flex-start;flex-direction:column}.active-error-entity-grid{grid-template-columns:1fr}.active-error-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.active-error-actions .btn{width:100%}
}
@media(max-width:479.98px){
  .site-priority-grid{grid-template-columns:1fr auto!important;grid-template-areas:"domain order" "selector selector" "count status" "freeze freeze" "reason reason" "purge remove"!important}.site-priority-grid>[data-label]::before{font-size:.52rem}.site-priority-order{align-self:start}.site-priority-purge .btn span,.site-priority-remove .btn span{display:none}.site-priority-purge .btn,.site-priority-remove .btn{width:38px!important;height:36px!important;padding:0!important}.site-priority-purge{justify-content:flex-start!important}.site-priority-remove{justify-content:flex-end!important}
  #afiLogsPage .afi-history-table tbody td,:where(#cronHistoryPage,#cronUploadHistoryPage,#cronErrorsPage,#cronUploadErrorsPage) tbody td,.posts-management-table td{grid-template-columns:1fr;gap:.2rem}.utl-run-status{grid-template-columns:1fr!important}.utl-status-indicator{justify-self:start}.active-error-actions{grid-template-columns:1fr}
}
@media(prefers-reduced-motion:reduce){.site-priority-item,.utl-run-btn,.afi-file-card,.afi-job-card{transition:none!important}}

/* PATCH-064 — responsive Test Lab, blur-save source priorities and aligned post source rows */
.settings-source-help-note{max-width:860px;margin:.35rem 0 1rem auto;padding:.62rem .78rem;border:1px solid #c7d2fe;border-radius:12px;background:linear-gradient(135deg,#eef2ff 0%,#f8fbff 62%,#ecfeff 100%);color:#334155;box-shadow:0 5px 16px rgba(37,99,235,.055);font-size:.74rem;line-height:1.85}.settings-source-help-note>i{color:#4f46e5;margin-top:.28rem}.settings-source-list-head{border:1px solid #dce5ef!important;border-bottom:0!important;border-radius:13px 13px 0 0!important;background:linear-gradient(180deg,#f8fbff,#f1f6fb)!important;box-shadow:0 4px 14px rgba(15,23,42,.035)}.settings-source-list{border-radius:0 0 13px 13px;overflow:hidden;border:1px solid #dce5ef;border-top:0}.site-priority-item{transition:background-color .16s ease,border-color .16s ease}.site-priority-item:hover{background:#fbfdff!important}.site-priority-item.has-selector-dirty .site-priority-version-selector{box-shadow:inset 0 0 0 1px #f59e0b;background:#fffdf5}.site-version-selector-meta{justify-content:flex-start!important}.site-version-selector-meta small{display:flex;align-items:flex-start;gap:.3rem;color:#64748b!important}.site-version-selector-meta small i{color:#10b981;margin-top:.18rem}.site-priority-grid :where(.form-control,.btn,.form-check-input){transition:border-color .15s ease,box-shadow .15s ease,background-color .15s ease}.site-priority-version-selector :where(.site-version-tag,.site-version-css):focus{border-color:#6366f1;box-shadow:0 0 0 3px rgba(99,102,241,.11)}

/* Test Lab: every panel owns its width; operational output scrolls internally instead of widening the page. */
.update-test-lab{width:100%;max-width:100%;min-width:0;overflow-x:clip}.update-test-lab *{min-width:0}.utl-hero{display:grid!important;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:1.1rem}.utl-hero-copy,.utl-hero-actions,.utl-hero-badges{max-width:100%;min-width:0}.utl-hero-copy :where(h1,p,span),.utl-card :where(h2,h3,p,small,label,strong,span),.utl-side-note,.utl-webhook-warning-inline{overflow-wrap:anywhere}.utl-layout{width:100%;max-width:100%;grid-template-columns:minmax(210px,250px) minmax(0,1fr)!important}.utl-sidebar,.utl-main,.utl-card,.utl-card-body,.utl-source-list,.utl-source-row,.utl-source-fields,.utl-test-post-picker,.utl-test-post-results,.utl-webhook-targets,.utl-webhook-target{width:100%;max-width:100%;min-width:0}.utl-card{overflow:hidden}.utl-card-body{overflow:visible}.utl-source-row{grid-template-columns:42px minmax(0,1fr) minmax(190px,.42fr)!important}.utl-source-fields{grid-template-columns:minmax(0,2.1fr) repeat(3,minmax(120px,.72fr))!important}.utl-source-field :where(input,select,textarea),.utl-test-post-picker :where(input,select,button),.utl-webhook-target :where(input,select,textarea,button){width:100%;max-width:100%}.utl-pipeline-buttons{grid-template-columns:repeat(4,minmax(0,1fr))!important}.utl-summary-grid,.utl-process-metrics,.utl-maintenance-grid,.utl-stage-progress,.utl-stage-summary-boxes{grid-template-columns:repeat(auto-fit,minmax(min(190px,100%),1fr))!important}.utl-run-btn,.utl-card-header,.utl-kind-toolbar,.utl-test-post-picker-head,.utl-webhook-target-head{max-width:100%}.utl-live-log,.utl-live-log pre,.utl-timing-table-wrap,.utl-waterfall,.utl-test-post-results{max-width:100%;overscroll-behavior:contain}.utl-live-log,.utl-timing-table-wrap,.utl-waterfall{overflow:auto}.utl-live-log pre{white-space:pre-wrap;word-break:break-word}.utl-timing-table{width:100%;min-width:680px}.utl-modal,.utl-webhook-confirm-modal{max-width:calc(100vw - 1rem)!important}

/* Desktop: every first-line source control starts at the same vertical coordinate. */
@media(min-width:992px){#postEditForm .version-source-card .vs-table td{vertical-align:top!important;padding-top:.52rem!important;padding-bottom:.52rem!important}#postEditForm .version-source-card .vs-table td> :first-child{margin-top:0!important}#postEditForm .version-source-card .vs-table :where(.form-control,.form-select){min-height:38px}#postEditForm .version-source-card :where(.vs-actions-group,.vs-order-controls,.vs-freeze-cell .form-switch,.vs-result-cell){min-height:38px;align-items:center}#postEditForm .version-source-card .vs-puppeteer-cell{padding-top:.52rem!important}#postEditForm .version-source-card .vs-puppeteer-cell .form-check-input{margin-top:0!important}#postEditForm .version-source-card .vs-result-cell>span{display:inline-flex;align-items:center;min-height:38px}#postEditForm .version-source-card .vs-effective-selector{margin-top:.35rem}}

@media(max-width:1199.98px){.utl-layout{grid-template-columns:1fr!important}.utl-sidebar{position:static!important}.utl-side-nav{display:flex!important;gap:.35rem;overflow-x:auto;overscroll-behavior-inline:contain;scroll-snap-type:x proximity;padding-bottom:.3rem}.utl-side-nav a{flex:0 0 auto;scroll-snap-align:start}.utl-side-note{display:none}.utl-source-fields{grid-template-columns:repeat(2,minmax(0,1fr))!important}.utl-source-field--url{grid-column:1/-1}.utl-pipeline-buttons{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:991.98px){.utl-hero{grid-template-columns:1fr!important;padding:1.15rem!important}.utl-hero-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}.utl-hero-actions .btn{width:100%;min-height:42px}.utl-safety-strip{grid-template-columns:1fr!important}.utl-source-row{display:grid!important;grid-template-columns:1fr!important;gap:.7rem!important;padding:.8rem!important;border:1px solid #dbe5ef;border-radius:14px;background:#fff;box-shadow:0 5px 18px rgba(15,23,42,.035)}.utl-source-priority{min-height:0!important;display:flex!important;flex-direction:row!important;justify-content:flex-start!important;border:0!important;border-bottom:1px dashed #dbe5ef!important;padding:0 0 .55rem!important}.utl-source-options{grid-column:auto!important;justify-content:flex-start!important;flex-wrap:wrap}.utl-card-header{align-items:flex-start!important;flex-wrap:wrap}.utl-kind-toolbar{width:100%;justify-content:flex-start!important;flex-wrap:wrap}}
@media(max-width:767.98px){.update-test-lab{padding-inline:.55rem!important}.utl-hero{border-radius:16px!important;padding:1rem!important}.utl-hero h1{font-size:clamp(1.15rem,5.7vw,1.55rem)}.utl-hero-actions{grid-template-columns:1fr!important}.utl-hero-badges{display:flex!important;flex-wrap:wrap!important}.utl-card{border-radius:15px}.utl-card-header,.utl-card-body{padding:.78rem!important}.utl-source-fields,.utl-pipeline-buttons,.utl-summary-grid,.utl-process-metrics,.utl-maintenance-grid,.utl-stage-progress,.utl-stage-summary-boxes,.utl-test-post-picker-grid,.utl-webhook-target-fields{grid-template-columns:1fr!important}.utl-source-field--url{grid-column:auto!important}.utl-run-btn{grid-template-columns:34px minmax(0,1fr) auto!important;width:100%;padding:.68rem!important}.utl-run-status{grid-template-columns:1fr!important}.utl-status-indicator{justify-self:start}.utl-status-meta{display:flex!important;flex-wrap:wrap;align-items:flex-start!important}.utl-test-post-picker-head,.utl-webhook-target-head,.utl-kind-toolbar{align-items:stretch!important;flex-direction:column!important}.utl-test-post-picker-head .btn,.utl-webhook-target-head .btn,.utl-kind-toolbar .btn{width:100%}.utl-timing-table-wrap{border-radius:10px}.utl-timing-table{min-width:600px}.utl-cleanup-options{display:grid!important;grid-template-columns:1fr!important}.utl-live-actions{display:grid!important;grid-template-columns:1fr 1fr;width:100%}.utl-live-actions .btn{width:100%}}
@media(max-width:575.98px){.settings-source-help-note{max-width:100%;margin:.35rem 0 .85rem;padding:.62rem .68rem;border-radius:11px;font-size:.71rem}.settings-source-list-head{display:none!important}.settings-source-list{border:0!important;border-radius:0!important;overflow:visible!important;background:transparent}.site-priority-item{margin:0 0 .85rem!important;padding:.72rem!important;border:1px solid #d8e2ec!important;border-radius:17px!important;background:linear-gradient(155deg,#fff 0%,#f8fbff 100%)!important;box-shadow:0 9px 26px rgba(15,23,42,.065)!important}.site-priority-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-template-areas:"domain domain" "selector selector" "status count" "order freeze" "reason reason" "purge remove"!important;gap:.55rem!important}.site-priority-grid>[data-label]{position:relative;min-width:0;padding:.55rem!important;border:1px solid #e6edf5;border-radius:11px;background:rgba(255,255,255,.78)}.site-priority-grid>[data-label]::before{display:block!important;margin-bottom:.3rem;color:#7c8ba0;font-size:.62rem;font-weight:850;letter-spacing:.01em}.site-priority-domain{grid-area:domain;display:flex!important;align-items:center!important;gap:.55rem;border-color:#c7d2fe!important;background:linear-gradient(135deg,#eef2ff,#fff)!important}.site-priority-domain code{font-size:.83rem!important}.site-priority-version-selector{grid-area:selector;border-color:#bfdbfe!important;background:#f8fbff!important}.site-version-selector-fields{display:grid!important;grid-template-columns:1fr!important;gap:.45rem!important}.site-version-selector-fields .form-control{min-height:44px;border-radius:10px}.site-version-selector-meta{margin-top:.4rem}.site-priority-status{grid-area:status}.site-priority-count{grid-area:count}.site-priority-order{grid-area:order;display:grid!important;grid-template-columns:1fr 1fr;gap:.4rem}.site-priority-move{width:100%!important;min-height:42px;border-radius:10px!important}.site-priority-freeze{grid-area:freeze}.site-priority-freeze .form-switch{min-height:42px;display:flex!important;align-items:center;justify-content:space-between;margin:0;padding:.4rem .5rem!important}.site-priority-reason-wrap{grid-area:reason}.site-priority-purge{grid-area:purge}.site-priority-remove{grid-area:remove}.site-priority-purge .btn,.site-priority-remove .btn{width:100%;min-height:42px;border-radius:10px}.site-freeze-tip{border-radius:10px}.utl-live-actions{grid-template-columns:1fr}.utl-card-header .btn,.utl-config-actions .btn{width:100%}.utl-timing-table{min-width:540px}}
@media(max-width:390px){.site-priority-grid{grid-template-columns:1fr!important;grid-template-areas:"domain" "selector" "status" "count" "order" "freeze" "reason" "purge" "remove"!important}.utl-run-btn{grid-template-columns:30px minmax(0,1fr)!important}.utl-run-btn> :last-child{grid-column:1/-1}.utl-card-header,.utl-card-body{padding:.68rem!important}.utl-side-nav a{font-size:.72rem}}

/* PATCH-073 — persisted post navigation, aligned publication controls and live Cron activity dock */
.post-editor-quicknav-content{display:grid;grid-template-columns:minmax(0,1fr);max-height:420px;overflow:visible;opacity:1;transition:max-height .28s ease,opacity .2s ease,transform .28s ease;transform-origin:top}
.post-editor-quicknav-toggle{display:grid;grid-template-columns:auto auto;align-items:center;justify-content:center;gap:.18rem .42rem;width:max-content;max-width:calc(100% - 1rem);min-height:28px;margin:0 auto -.92rem;padding:.28rem .75rem;border:1px solid #cbd5e1;border-radius:0 0 999px 999px;background:linear-gradient(180deg,#fff,#eef4fa);color:#475569;box-shadow:0 5px 13px rgba(15,23,42,.1);font-size:.65rem;font-weight:850;line-height:1.2;transition:border-color .18s ease,background .18s ease,color .18s ease,transform .18s ease}
.post-editor-quicknav-toggle i{grid-row:1/3;color:#2563eb;font-size:.62rem}.post-editor-quicknav-toggle span{white-space:nowrap}.post-editor-quicknav-toggle small{color:#94a3b8;font-size:.52rem;font-weight:650;white-space:nowrap}
.post-editor-quicknav-toggle:hover,.post-editor-quicknav-toggle:focus-visible{border-color:#93c5fd;background:#eff6ff;color:#1d4ed8;outline:0;transform:translateY(1px)}
.post-editor-quicknav-toggle[data-state="saving"] i{animation:post-nav-toggle-spin .75s linear infinite}.post-editor-quicknav-toggle[data-state="success"] small{color:#15803d}.post-editor-quicknav-toggle[data-state="error"]{border-color:#fca5a5;background:#fff1f2;color:#b91c1c}.post-editor-quicknav-toggle[data-state="error"] small{color:#b91c1c}
.post-editor-quicknav.is-collapsed{border-color:transparent;background:transparent;box-shadow:none;backdrop-filter:none;pointer-events:none}
.post-editor-quicknav.is-collapsed .post-editor-quicknav-content{max-height:0;overflow:hidden;opacity:0;transform:translateY(-10px);pointer-events:none}
.post-editor-quicknav.is-collapsed .post-editor-quicknav-toggle{pointer-events:auto;margin-bottom:-.25rem;border-radius:999px;background:#fff;box-shadow:0 8px 22px rgba(15,23,42,.12)}
@keyframes post-nav-toggle-spin{to{transform:rotate(360deg)}}

.publication-schedule-grid{display:grid;grid-template-columns:minmax(260px,1.25fr) minmax(170px,.72fr) minmax(280px,1fr);align-items:start;gap:1rem}
.publication-schedule-field{display:grid;grid-template-rows:auto auto 1fr;align-content:start;min-width:0}
.publication-schedule-field>.form-label{display:flex;align-items:end;min-height:25px}.publication-schedule-field :is(.form-control,.publication-now-check){width:100%;min-height:44px}
.publication-now-column .publication-now-help{margin-top:.35rem}

.cron-run-activity{position:fixed;right:72px;bottom:calc(18px + var(--cron-run-activity-stack-offset,0px));z-index:1120;width:min(430px,calc(100vw - 20px));overflow:hidden;border:1px solid rgba(96,165,250,.7);border-radius:17px;background:rgba(255,255,255,.97);box-shadow:0 18px 48px rgba(15,23,42,.24),0 0 0 4px rgba(59,130,246,.1);backdrop-filter:blur(12px);direction:rtl;animation:cron-run-activity-enter .24s ease-out}
.cron-run-activity[hidden]{display:none!important}.cron-run-activity.is-dragging{cursor:grabbing;user-select:none;box-shadow:0 22px 60px rgba(15,23,42,.32),0 0 0 4px rgba(59,130,246,.18)}
.cron-run-activity-handle{display:flex;align-items:center;gap:.42rem;width:100%;min-height:29px;padding:.32rem .65rem;border:0;border-bottom:1px solid #dbeafe;background:linear-gradient(90deg,#eff6ff,#f8fafc);color:#64748b;cursor:grab;font-size:.62rem;font-weight:800;text-align:right;touch-action:none}.cron-run-activity-handle:active{cursor:grabbing}.cron-run-activity-handle i{color:#3b82f6}.cron-run-activity-handle:focus-visible{outline:2px solid #60a5fa;outline-offset:-2px}
.cron-run-activity-main{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:.65rem;padding:.7rem .8rem .55rem}.cron-run-activity-pulse{width:14px;height:14px;border-radius:999px;background:#22c55e;box-shadow:0 0 0 0 rgba(34,197,94,.48);animation:cron-run-activity-pulse 1.25s infinite}.cron-run-activity-copy{display:flex;flex-direction:column;min-width:0}.cron-run-activity-copy strong{overflow:hidden;color:#14532d;font-size:.82rem;font-weight:900;text-overflow:ellipsis;white-space:nowrap}.cron-run-activity-copy small{overflow:hidden;margin-top:.18rem;color:#64748b;font-size:.64rem;text-overflow:ellipsis;white-space:nowrap}
.cron-run-activity-times{display:grid;grid-template-columns:1fr 1fr;gap:.45rem;padding:0 .8rem .75rem}.cron-run-activity-times>span{display:flex;align-items:center;justify-content:space-between;gap:.5rem;min-width:0;padding:.45rem .55rem;border:1px solid #dbe7f3;border-radius:10px;background:#f8fafc}.cron-run-activity-times small{color:#7c8ba0;font-size:.57rem;white-space:nowrap}.cron-run-activity-times bdi{color:#1e3a8a;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.78rem;font-weight:900;font-variant-numeric:tabular-nums;white-space:nowrap}
@keyframes cron-run-activity-pulse{70%{box-shadow:0 0 0 9px rgba(34,197,94,0)}}@keyframes cron-run-activity-enter{from{opacity:0;transform:translateY(12px) scale(.97)}}
@media(max-width:991.98px){.publication-schedule-grid{grid-template-columns:minmax(0,1.15fr) minmax(150px,.65fr)}.publication-now-column{grid-column:1/-1}}
@media(max-width:767.98px){.post-editor-quicknav-toggle small{display:none}.post-editor-quicknav-toggle{grid-template-columns:auto auto;padding:.35rem .65rem}.publication-schedule-grid{grid-template-columns:1fr}.publication-now-column{grid-column:auto}.cron-run-activity{right:10px;bottom:calc(64px + var(--cron-run-activity-stack-offset,0px));width:min(350px,calc(100vw - 20px))}}
@media(max-width:479.98px){.cron-run-activity-times{grid-template-columns:1fr}.cron-run-activity-copy strong{font-size:.75rem}}
@media(prefers-reduced-motion:reduce){.post-editor-quicknav-content,.post-editor-quicknav-toggle{transition:none}.post-editor-quicknav-toggle[data-state="saving"] i,.cron-run-activity,.cron-run-activity-pulse{animation:none}}

/* PATCH-074 — navbar quick access and user-dismissed Cron activity */
.admin-topbar-actions .post-editor-quicknav-toggle.is-navbar-control{display:flex;align-items:center;gap:.48rem;flex:0 0 auto;width:auto;max-width:240px;min-height:42px;margin:0;padding:.3rem .48rem;border:1px solid rgba(191,219,254,.42);border-radius:13px;background:rgba(255,255,255,.09);color:#fff;box-shadow:none;line-height:1.15;transform:none}
.admin-topbar-actions .post-editor-quicknav-toggle.is-navbar-control:hover,.admin-topbar-actions .post-editor-quicknav-toggle.is-navbar-control:focus-visible{border-color:rgba(147,197,253,.85);background:rgba(255,255,255,.16);color:#fff;transform:none}
.post-editor-quicknav-toggle-icon{display:grid;place-items:center;flex:0 0 30px;width:30px;height:30px;border-radius:9px;background:rgba(219,234,254,.16)}.post-editor-quicknav-toggle-icon i{color:#bfdbfe;font-size:.75rem}
.post-editor-quicknav-toggle-copy{display:flex;flex-direction:column;min-width:0;text-align:right}.post-editor-quicknav-toggle-copy b{overflow:hidden;color:#fff;font-size:.65rem;font-weight:900;text-overflow:ellipsis;white-space:nowrap}.post-editor-quicknav-toggle-copy small{margin-top:.12rem;color:#bfdbfe;font-size:.5rem;white-space:nowrap}
.post-editor-quicknav-toggle-switch{position:relative;flex:0 0 31px;width:31px;height:18px;border:1px solid rgba(134,239,172,.72);border-radius:999px;background:#16a34a;transition:background .18s ease,border-color .18s ease}.post-editor-quicknav-toggle-switch i{position:absolute;top:2px;right:15px;width:12px;height:12px;border-radius:50%;background:#fff;box-shadow:0 1px 4px rgba(15,23,42,.35);transition:right .18s ease}.post-editor-quicknav-toggle.is-collapsed .post-editor-quicknav-toggle-switch{border-color:rgba(203,213,225,.65);background:#64748b}.post-editor-quicknav-toggle.is-collapsed .post-editor-quicknav-toggle-switch i{right:2px}
.post-editor-quicknav.is-collapsed{margin-bottom:0;padding:0;border:0}
.cron-run-activity-head{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:stretch;border-bottom:1px solid #dbeafe;background:linear-gradient(90deg,#eff6ff,#f8fafc)}
.cron-run-activity-head .cron-run-activity-handle{border-bottom:0;background:transparent}
.cron-run-activity-close{display:grid;place-items:center;width:34px;margin:.24rem;border:1px solid transparent;border-radius:9px;background:transparent;color:#64748b}.cron-run-activity-close:hover,.cron-run-activity-close:focus-visible{border-color:#fecaca;background:#fff1f2;color:#b91c1c;outline:0}
.cron-run-activity.is-complete{border-color:rgba(34,197,94,.55);box-shadow:0 18px 48px rgba(15,23,42,.2),0 0 0 4px rgba(34,197,94,.08)}.cron-run-activity.is-complete .cron-run-activity-pulse{background:#22c55e;box-shadow:none;animation:none}.cron-run-activity.is-complete .cron-run-activity-copy strong{color:#166534}.cron-run-activity.is-failed{border-color:rgba(239,68,68,.55)}.cron-run-activity.is-failed .cron-run-activity-pulse{background:#ef4444}.cron-run-activity.is-failed .cron-run-activity-copy strong{color:#991b1b}
@media(max-width:1199.98px){.post-editor-quicknav-toggle-copy small{display:none}.admin-topbar-actions .post-editor-quicknav-toggle.is-navbar-control{max-width:180px}}
@media(max-width:767.98px){.post-editor-quicknav-toggle-copy{display:none}.admin-topbar-actions .post-editor-quicknav-toggle.is-navbar-control{gap:.3rem;padding:.28rem}.post-editor-quicknav-toggle-icon{display:none}}

/* PATCH-065 — source-priority Puppeteer control, non-overlapping row toasts, polished responsive layout */
.settings-source-help-note{max-width:720px!important;margin:.35rem 0 1rem auto!important}
.settings-source-list,.site-priority-item{overflow:visible!important}
.settings-source-list-head{
  grid-template-columns:minmax(135px,1.05fr) minmax(250px,1.8fr) minmax(86px,.72fr) minmax(64px,.48fr) minmax(74px,.56fr) minmax(70px,.55fr) minmax(140px,1fr) minmax(76px,.58fr) minmax(82px,.62fr) minmax(58px,.44fr)!important;
  gap:.38rem!important;padding:.58rem .62rem!important;border-color:#cddbeb!important;background:linear-gradient(180deg,#f8fbff,#edf4fb)!important;color:#52657c!important
}
.site-priority-item{position:relative!important;padding:.62rem!important;background:linear-gradient(180deg,#fff,#fbfdff)!important;transition:box-shadow .18s ease,transform .18s ease,background .18s ease!important}
.site-priority-item:hover,.site-priority-item.has-row-tip{z-index:45;background:#fff!important;box-shadow:0 8px 24px rgba(15,23,42,.07)!important}
.site-priority-grid{
  grid-template-columns:minmax(135px,1.05fr) minmax(250px,1.8fr) minmax(86px,.72fr) minmax(64px,.48fr) minmax(74px,.56fr) minmax(70px,.55fr) minmax(140px,1fr) minmax(76px,.58fr) minmax(82px,.62fr) minmax(58px,.44fr)!important;
  gap:.38rem!important;align-items:center!important
}
.site-priority-puppeteer{display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:.2rem;min-width:0}
.site-puppeteer-control{display:flex;align-items:center;justify-content:center;gap:.34rem;min-height:34px;padding:.2rem .42rem;border:1px solid #dbe7f3;border-radius:10px;background:linear-gradient(180deg,#f8fbff,#f2f7fc)}
.site-puppeteer-control .form-check{padding:0!important;min-height:0}.site-puppeteer-control .form-check-input{float:none!important;margin:0!important}
.site-puppeteer-label{color:#52657c;font-size:.61rem;font-weight:850;white-space:nowrap}.site-priority-puppeteer>small{display:none}
.site-priority-version-selector{padding:.28rem!important;border-radius:10px!important}.site-version-selector-fields{grid-template-columns:82px minmax(0,1fr)!important}
.site-priority-reason-wrap .form-control{min-width:0}.site-priority-order{gap:.18rem!important}
.site-freeze-tip{
  position:absolute!important;z-index:40!important;top:auto!important;right:auto!important;bottom:calc(100% + 8px)!important;left:50%!important;
  width:max-content!important;max-width:min(280px,calc(100% - 24px))!important;min-width:0!important;padding:.48rem .68rem!important;border-radius:10px!important;
  transform:translate(-50%,6px)!important;text-align:center!important;line-height:1.65!important;font-size:.68rem!important;box-shadow:0 10px 28px rgba(15,23,42,.2)!important;pointer-events:none!important
}
.site-freeze-tip.is-visible{transform:translate(-50%,0)!important}
.site-priority-item.has-selector-dirty{z-index:3}.site-priority-item.has-selector-dirty .site-priority-version-selector{box-shadow:0 0 0 2px rgba(245,158,11,.15),inset 0 0 0 1px #f59e0b!important}

@media(max-width:1199.98px) and (min-width:768px){
  .settings-source-list-head{display:none!important}
  .settings-source-list{border:0!important;background:transparent!important}
  .site-priority-item{margin:0 0 .75rem!important;border:1px solid #d7e3ef!important;border-radius:16px!important;box-shadow:0 7px 22px rgba(15,23,42,.055)!important}
  .site-priority-grid{grid-template-columns:minmax(0,1.25fr) minmax(0,1fr) minmax(88px,.42fr) minmax(88px,.42fr)!important;grid-template-areas:"domain domain order status" "selector selector selector selector" "puppeteer count freeze freeze" "reason reason purge remove"!important;gap:.55rem!important}
  .site-priority-grid>[data-label]{position:relative!important;min-width:0!important;padding:.5rem!important;border:1px solid #e3ebf4!important;border-radius:11px!important;background:rgba(255,255,255,.86)!important}
  .site-priority-grid>[data-label]::before{display:block!important;margin-bottom:.25rem;color:#8190a3;font-size:.58rem;font-weight:850;content:attr(data-label)!important}
  .site-priority-domain{grid-area:domain!important}.site-priority-version-selector{grid-area:selector!important}.site-priority-puppeteer{grid-area:puppeteer!important}.site-priority-count{grid-area:count!important}.site-priority-order{grid-area:order!important}.site-priority-status{grid-area:status!important}.site-priority-reason-wrap{grid-area:reason!important}.site-priority-freeze{grid-area:freeze!important}.site-priority-purge{grid-area:purge!important}.site-priority-remove{grid-area:remove!important}
  .site-priority-puppeteer>small{display:block;color:#8492a5;font-size:.55rem;line-height:1.5;text-align:center}
}

@media(max-width:767.98px){
  .settings-source-help-note{max-width:100%!important;margin:.3rem 0 .9rem!important;border-radius:14px!important;background:linear-gradient(145deg,#eef2ff,#f0fdfa)!important;box-shadow:0 8px 24px rgba(79,70,229,.07)!important}
  .settings-source-list-head{display:none!important}.settings-source-list{border:0!important;background:transparent!important}
  .site-priority-item{margin:0 0 1rem!important;padding:.78rem!important;border:1px solid #d7e3ef!important;border-radius:20px!important;background:linear-gradient(150deg,#fff 0%,#f8fbff 58%,#f5f3ff 100%)!important;box-shadow:0 12px 32px rgba(15,23,42,.075)!important}
  .site-priority-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-template-areas:"domain domain" "selector selector" "puppeteer status" "count freeze" "order order" "reason reason" "purge remove"!important;gap:.62rem!important}
  .site-priority-grid>[data-label]{position:relative!important;min-width:0!important;padding:.62rem!important;border:1px solid #e1eaf4!important;border-radius:13px!important;background:rgba(255,255,255,.88)!important;box-shadow:0 3px 10px rgba(15,23,42,.025)}
  .site-priority-grid>[data-label]::before{display:block!important;margin-bottom:.34rem;color:#76869b;font-size:.62rem;font-weight:900;content:attr(data-label)!important}
  .site-priority-domain{grid-area:domain!important;padding:.72rem!important;border-color:#c7d2fe!important;background:linear-gradient(135deg,#eef2ff,#fff)!important}.site-priority-domain code{font-size:.88rem!important}
  .site-priority-version-selector{grid-area:selector!important;border-color:#bfdbfe!important;background:linear-gradient(180deg,#f8fbff,#fff)!important}.site-version-selector-fields{grid-template-columns:1fr!important;gap:.5rem!important}.site-version-selector-fields .form-control{min-height:44px!important;border-radius:10px!important}
  .site-priority-puppeteer{grid-area:puppeteer!important;align-items:stretch!important}.site-puppeteer-control{justify-content:space-between;min-height:42px;padding:.45rem .55rem}.site-priority-puppeteer>small{display:block;margin-top:.25rem;color:#7d8da2;font-size:.56rem;line-height:1.55;text-align:right}
  .site-priority-status{grid-area:status!important}.site-priority-count{grid-area:count!important}.site-priority-freeze{grid-area:freeze!important}.site-priority-order{grid-area:order!important;display:grid!important;grid-template-columns:1fr 1fr!important;gap:.5rem!important}.site-priority-move{width:100%!important;min-height:43px!important;border-radius:11px!important}.site-priority-reason-wrap{grid-area:reason!important}.site-priority-purge{grid-area:purge!important}.site-priority-remove{grid-area:remove!important}.site-priority-purge .btn,.site-priority-remove .btn{width:100%!important;min-height:43px!important;border-radius:11px!important}
  .site-freeze-tip{max-width:min(260px,calc(100% - 18px))!important;font-size:.66rem!important}
}
@media(max-width:420px){
  .site-priority-grid{grid-template-columns:1fr!important;grid-template-areas:"domain" "selector" "puppeteer" "status" "count" "freeze" "order" "reason" "purge" "remove"!important}.site-priority-purge .btn,.site-priority-remove .btn{width:100%!important}.site-priority-puppeteer>small{display:block}
}

/* PATCH-065 — post source definition never needs horizontal page/table scrolling. */
#postEditForm .version-source-card,#postEditForm .version-source-card .card-body,#postEditForm .version-source-card .table-responsive{width:100%;max-width:100%;min-width:0;overflow-x:clip!important}
@media(min-width:1200px){
  #postEditForm .version-source-card .vs-table{width:100%!important;min-width:0!important;table-layout:fixed!important}
  #postEditForm .version-source-card .vs-table :where(th,td){min-width:0!important;max-width:none!important;white-space:normal!important;overflow-wrap:anywhere}
  #postEditForm .version-source-card .vs-table :where(input,select,button){max-width:100%}
  #postEditForm .version-source-card .vs-actions-group{display:flex!important;flex-wrap:wrap!important;gap:.3rem!important}
  #postEditForm .version-source-card .vs-actions-group .btn{min-width:0!important;flex:1 1 58px!important;padding-inline:.42rem!important}
  #postEditForm .version-source-card .vs-col-order{width:7%}#postEditForm .version-source-card .vs-col-result{width:8%}#postEditForm .version-source-card .vs-col-actions{width:15%}#postEditForm .version-source-card .vs-col-puppeteer{width:7%}#postEditForm .version-source-card .vs-col-css{width:13%}#postEditForm .version-source-card .vs-col-tag{width:9%}#postEditForm .version-source-card .vs-col-url{width:34%}#postEditForm .version-source-card .vs-col-freeze{width:7%}
}
@media(max-width:1199.98px){
  #postEditForm .version-source-card .table-responsive{overflow:visible!important;border:0!important;background:transparent!important}
  #postEditForm .version-source-card .vs-table{display:block!important;width:100%!important;min-width:0!important;background:transparent!important}
  #postEditForm .version-source-card .vs-table colgroup,#postEditForm .version-source-card .vs-table thead{display:none!important}
  #postEditForm .version-source-card .vs-table tbody{display:grid!important;gap:.8rem!important;width:100%!important}
  #postEditForm .version-source-card .vs-table .vs-row{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:.65rem!important;width:100%!important;padding:.72rem!important;border:1px solid rgba(var(--version-accent-rgb),.24)!important;border-radius:14px!important;background:linear-gradient(180deg,#fff,var(--version-soft))!important;box-shadow:0 6px 18px rgba(15,23,42,.06)!important}
  #postEditForm .version-source-card .vs-table .vs-row td{display:flex!important;flex-direction:column!important;align-items:stretch!important;justify-content:flex-start!important;gap:.32rem!important;width:auto!important;height:auto!important;min-width:0!important;max-width:100%!important;padding:0!important;border:0!important;background:transparent!important;text-align:initial!important;white-space:normal!important;overflow-wrap:anywhere!important}
  #postEditForm .version-source-card .vs-table .vs-row td::before{content:attr(data-label)!important;display:block!important;color:#64748b!important;font-size:.62rem!important;font-weight:850!important;line-height:1.4!important}
  #postEditForm .version-source-card .vs-order-cell,#postEditForm .version-source-card .vs-url-cell,#postEditForm .version-source-card .vs-actions-cell,#postEditForm .version-source-card .vs-freeze-cell{grid-column:1/-1!important}
  #postEditForm .version-source-card .vs-actions-group{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;width:100%!important;gap:.4rem!important}
}
@media(max-width:575.98px){#postEditForm .version-source-card .vs-table .vs-row{grid-template-columns:1fr!important}#postEditForm .version-source-card .vs-table .vs-row td{grid-column:1!important}#postEditForm .version-source-card .vs-actions-group{grid-template-columns:1fr!important}}
/* PATCH-065 row feedback: remain readable for 4s then fade without covering controls. */
.site-freeze-tip{transition:opacity .22s ease,transform .22s ease,visibility 0s linear .22s!important}
.site-freeze-tip.is-visible{visibility:visible!important;transition-delay:0s!important}

/* PATCH-065 — Android permission language as an explicit Persian/English switch. */
.afi-permission-language-switch{display:flex;align-items:center;justify-content:center;gap:.6rem;min-height:42px;padding:.42rem .7rem;border:1px solid #dbe7f3;border-radius:12px;background:linear-gradient(135deg,#f8fbff,#fff);box-shadow:inset 0 1px 0 rgba(255,255,255,.9)}
.afi-permission-language-switch .form-check-input{width:2.65rem;height:1.35rem;margin:0;cursor:pointer}.afi-permission-language-option{font-size:.76rem;font-weight:850;color:#52647a}.afi-permission-language-option[lang="en"]{font-family:system-ui,-apple-system,"Segoe UI",sans-serif}
@media(max-width:575.98px){.afi-permission-language-switch{justify-content:space-between;width:100%;padding-inline:.8rem}}


/* PATCH-066 / UI-SET-001 — premium ranked source cards, semantic desktop/tablet/mobile layout */
#settings-sources .settings-panel-body{background:linear-gradient(180deg,#fff 0%,#fbfdff 100%)}
#settings-sources .settings-inline-add{position:relative;padding:.78rem;border:1px solid #dbe7f3;border-radius:16px;background:linear-gradient(135deg,#f8fbff,#f5f3ff 58%,#f0fdfa);box-shadow:0 8px 24px rgba(15,23,42,.045)}
#settings-sources .settings-inline-add .form-control{min-height:44px;border-radius:12px}
#settings-sources .settings-inline-add .btn{min-height:44px;border-radius:12px;font-weight:850;box-shadow:0 7px 18px rgba(37,99,235,.14)}
#settings-sources .settings-source-help-note{max-width:none!important;margin:.7rem 0 1rem!important;border:1px solid #c7d2fe!important;border-radius:15px!important;background:linear-gradient(135deg,#eef2ff 0%,#f8fbff 48%,#ecfeff 100%)!important;box-shadow:0 8px 22px rgba(79,70,229,.06)!important}
#settings-sources .settings-source-list-head{display:none!important}
#settings-sources .settings-source-list{display:grid!important;gap:.9rem!important;width:100%!important;max-width:none!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;overflow:visible!important}
#settings-sources .site-priority-item{--site-accent:#4f46e5;--site-accent-soft:#eef2ff;--site-accent-deep:#312e81;position:relative!important;margin:0!important;padding:.9rem!important;border:1px solid color-mix(in srgb,var(--site-accent) 22%,#dbe5ef 78%)!important;border-radius:21px!important;background:linear-gradient(145deg,#fff 0%,color-mix(in srgb,var(--site-accent-soft) 62%,#fff 38%) 100%)!important;box-shadow:0 13px 34px rgba(15,23,42,.07)!important;overflow:visible!important;isolation:isolate;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease!important}
#settings-sources .site-priority-item::before{content:"";position:absolute;z-index:-1;inset:0 auto 0 0;width:5px;border-radius:21px 0 0 21px;background:linear-gradient(180deg,var(--site-accent),color-mix(in srgb,var(--site-accent) 45%,#22d3ee 55%));box-shadow:0 0 18px color-mix(in srgb,var(--site-accent) 25%,transparent)}
#settings-sources .site-priority-item::after{content:"";position:absolute;z-index:-2;inset:0;border-radius:inherit;background:radial-gradient(circle at 96% 0,color-mix(in srgb,var(--site-accent) 11%,transparent),transparent 34%);pointer-events:none}
#settings-sources .site-priority-item.site-priority-tone-0{--site-accent:#4f46e5;--site-accent-soft:#eef2ff;--site-accent-deep:#312e81}
#settings-sources .site-priority-item.site-priority-tone-1{--site-accent:#0891b2;--site-accent-soft:#ecfeff;--site-accent-deep:#155e75}
#settings-sources .site-priority-item.site-priority-tone-2{--site-accent:#7c3aed;--site-accent-soft:#f5f3ff;--site-accent-deep:#5b21b6}
#settings-sources .site-priority-item.site-priority-tone-3{--site-accent:#059669;--site-accent-soft:#ecfdf5;--site-accent-deep:#065f46}
#settings-sources .site-priority-item.is-top-rank{border-color:color-mix(in srgb,var(--site-accent) 34%,#dbe5ef 66%)!important;box-shadow:0 15px 38px color-mix(in srgb,var(--site-accent) 10%,rgba(15,23,42,.08))!important}
#settings-sources .site-priority-item:hover,#settings-sources .site-priority-item.has-row-tip{z-index:45;transform:translateY(-2px);border-color:color-mix(in srgb,var(--site-accent) 40%,#cbd5e1 60%)!important;box-shadow:0 18px 42px rgba(15,23,42,.105)!important}
#settings-sources .site-priority-item.is-frozen{--site-accent:#64748b;--site-accent-soft:#f1f5f9;--site-accent-deep:#334155;filter:saturate(.7)}
#settings-sources .site-priority-grid{display:grid!important;grid-template-columns:repeat(12,minmax(0,1fr))!important;grid-template-areas:"domain domain domain domain selector selector selector selector selector selector order order" "puppeteer puppeteer count count status status freeze freeze purge purge remove remove" "reason reason reason reason reason reason reason reason reason reason reason reason"!important;gap:.68rem!important;align-items:stretch!important}
#settings-sources .site-priority-grid>[data-label]{min-width:0!important;padding:.7rem!important;border:1px solid color-mix(in srgb,var(--site-accent) 12%,#e5edf5 88%)!important;border-radius:14px!important;background:rgba(255,255,255,.78)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.85),0 4px 12px rgba(15,23,42,.025)}
#settings-sources .site-priority-grid>[data-label]::before{display:block!important;margin-bottom:.36rem;color:#8290a2;font-size:.58rem;font-weight:900;letter-spacing:.015em;content:attr(data-label)!important}
#settings-sources .site-priority-domain{grid-area:domain!important;display:flex!important;align-items:center!important;gap:.8rem!important;padding:.62rem .75rem!important;border-color:color-mix(in srgb,var(--site-accent) 28%,#dce7f2 72%)!important;background:linear-gradient(135deg,color-mix(in srgb,var(--site-accent-soft) 84%,#fff 16%),#fff)!important}
#settings-sources .site-priority-domain::before{display:none!important}
#settings-sources .site-priority-rank{display:grid;place-items:center;align-content:center;gap:.12rem;flex:0 0 70px;min-height:62px;padding:.38rem .5rem;border-radius:14px;background:linear-gradient(145deg,var(--site-accent),var(--site-accent-deep));color:#fff;box-shadow:0 8px 18px color-mix(in srgb,var(--site-accent) 26%,transparent)}
#settings-sources .site-priority-index{display:flex;align-items:center;gap:.32rem;color:#fff!important;font-size:1.05rem!important;font-weight:950!important}
#settings-sources .site-priority-index i{font-size:.78rem;opacity:.95}
#settings-sources .site-priority-rank small{color:rgba(255,255,255,.78);font-size:.53rem;font-weight:800;white-space:nowrap}
#settings-sources .site-priority-identity{display:flex;flex-direction:column;gap:.22rem;min-width:0;flex:1}
#settings-sources .site-priority-domain-kicker{color:var(--site-accent-deep);font-size:.6rem;font-weight:900}
#settings-sources .site-priority-domain code{display:block;max-width:100%;padding:0!important;background:transparent!important;color:#172033!important;font-size:.9rem!important;font-weight:850;direction:ltr;text-align:left;overflow-wrap:anywhere}
#settings-sources .site-priority-version-selector{grid-area:selector!important;background:linear-gradient(180deg,#fff,#fbfdff)!important}
#settings-sources .site-version-selector-fields{display:grid!important;grid-template-columns:96px minmax(0,1fr)!important;gap:.5rem!important}
#settings-sources .site-version-selector-fields .form-control{min-height:40px;border-radius:10px!important;border-color:#c8d6e5!important}
#settings-sources .site-version-selector-meta{margin-top:.42rem!important}
#settings-sources .site-version-selector-meta small{font-size:.58rem!important;line-height:1.6!important}
#settings-sources .site-priority-puppeteer{grid-area:puppeteer!important;display:flex!important;flex-direction:column;align-items:stretch!important;justify-content:center!important;gap:.25rem!important}
#settings-sources .site-puppeteer-control{min-height:42px!important;justify-content:space-between!important;padding:.46rem .58rem!important;border-color:color-mix(in srgb,var(--site-accent) 15%,#dbe7f3 85%)!important;background:linear-gradient(180deg,#fff,var(--site-accent-soft))!important}
#settings-sources .site-puppeteer-label{color:var(--site-accent-deep)!important;font-weight:900!important}
#settings-sources .site-priority-puppeteer>small{display:block!important;color:#8390a2!important;font-size:.54rem!important;line-height:1.45;text-align:right}
#settings-sources .site-priority-count{grid-area:count!important;display:grid!important;place-items:center!important;text-align:center}
#settings-sources .site-post-count{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:.35rem .6rem;border-radius:999px;background:var(--site-accent-soft);color:var(--site-accent-deep);font-size:.69rem;font-weight:900}
#settings-sources .site-priority-status{grid-area:status!important;display:grid!important;place-items:center!important}.site-priority-status .badge{min-width:72px;padding:.45rem .58rem;border-radius:999px}
#settings-sources .site-priority-freeze{grid-area:freeze!important;display:flex!important;align-items:center!important}.site-priority-freeze .form-check{width:100%;display:flex!important;align-items:center;justify-content:space-between;gap:.5rem;margin:0!important;padding:.28rem .42rem!important}.site-priority-freeze .form-check-label{font-weight:850;color:#475569}
#settings-sources .site-priority-order{grid-area:order!important;display:grid!important;grid-template-columns:1fr 1fr;gap:.4rem!important;align-content:center}.site-priority-move{width:100%!important;min-height:42px;border-radius:11px!important;background:#fff!important}.site-priority-move:not(:disabled):hover{border-color:var(--site-accent)!important;color:var(--site-accent-deep)!important;background:var(--site-accent-soft)!important}
#settings-sources .site-priority-reason-wrap{grid-area:reason!important}.site-priority-reason-wrap .form-control{min-height:42px;border-radius:11px!important}.site-priority-reason-help{font-size:.58rem!important;color:#8492a5!important}
#settings-sources .site-priority-purge{grid-area:purge!important;display:flex!important;align-items:center!important}.site-priority-remove{grid-area:remove!important;display:flex!important;align-items:center!important}.site-priority-purge .btn,.site-priority-remove .btn{width:100%;min-height:42px;border-radius:11px!important;font-weight:850}
#settings-sources .site-priority-item.has-selector-dirty .site-priority-version-selector{border-color:#f59e0b!important;background:linear-gradient(180deg,#fffdf4,#fff)!important;box-shadow:0 0 0 3px rgba(245,158,11,.09)!important}
#settings-sources .site-freeze-tip{bottom:calc(100% + 10px)!important;border-radius:12px!important;border:1px solid rgba(255,255,255,.18);backdrop-filter:blur(6px)}
@media(max-width:1199.98px){
 #settings-sources .site-priority-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;grid-template-areas:"domain domain order status" "selector selector selector selector" "puppeteer count freeze freeze" "reason reason purge remove"!important}
 #settings-sources .site-priority-grid>[data-label]::before{font-size:.58rem!important}
 #settings-sources .site-version-selector-fields{grid-template-columns:92px minmax(0,1fr)!important}
}
@media(max-width:767.98px){
 #settings-sources .settings-inline-add{padding:.65rem;border-radius:14px}#settings-sources .settings-inline-add>*{flex:1 1 100%;max-width:none!important}
 #settings-sources .site-priority-item{padding:.75rem!important;border-radius:20px!important;box-shadow:0 12px 30px rgba(15,23,42,.075)!important}
 #settings-sources .site-priority-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-template-areas:"domain domain" "selector selector" "puppeteer status" "count freeze" "order order" "reason reason" "purge remove"!important;gap:.58rem!important}
 #settings-sources .site-priority-grid>[data-label]{padding:.58rem!important;border-radius:12px!important}
 #settings-sources .site-priority-domain{padding:.58rem!important}.site-priority-rank{flex-basis:64px!important;min-height:58px!important}
 #settings-sources .site-version-selector-fields{grid-template-columns:1fr!important}.site-version-selector-fields .form-control{min-height:44px!important}
 #settings-sources .site-priority-order{grid-template-columns:1fr 1fr!important}.site-priority-move,#settings-sources .site-priority-purge .btn,#settings-sources .site-priority-remove .btn{min-height:44px!important}
}
@media(max-width:390px){
 #settings-sources .site-priority-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-template-areas:"domain domain" "selector selector" "puppeteer status" "count freeze" "order order" "reason reason" "purge remove"!important}
 #settings-sources .site-priority-domain{align-items:flex-start!important}.site-priority-rank{flex-basis:58px!important;min-height:56px!important}.site-priority-domain code{font-size:.78rem!important}.site-priority-rank small{font-size:.48rem!important}
 #settings-sources .site-priority-puppeteer>small,#settings-sources .site-priority-reason-help{font-size:.52rem!important}
}
@media(prefers-reduced-motion:reduce){#settings-sources .site-priority-item{transition:none!important}#settings-sources .site-priority-item:hover{transform:none!important}}

/* PATCH-067 / UI-SET-002 — one site = one compact desktop row. */
@media (min-width:1200px){
  #settings-sources .settings-source-list{overflow:visible!important}
  #settings-sources .site-priority-item{padding:.42rem .52rem!important;min-height:50px}
  #settings-sources .site-priority-grid{
    display:grid!important;
    grid-template-columns:minmax(145px,1.05fr) minmax(230px,1.7fr) 78px 68px 68px 62px minmax(120px,.9fr) 70px 38px 38px!important;
    grid-template-areas:none!important;
    gap:.32rem!important;
    align-items:center!important;
  }
  #settings-sources .site-priority-grid>[data-label]{grid-area:auto!important;min-width:0!important;padding:0!important;margin:0!important;border:0!important;background:transparent!important}
  #settings-sources .site-priority-grid>[data-label]::before{display:none!important}
  #settings-sources .site-priority-domain{display:flex!important;align-items:center!important;gap:.35rem!important;min-width:0!important;white-space:nowrap!important}
  #settings-sources .site-priority-rank small,#settings-sources .site-priority-domain-kicker,#settings-sources .site-version-selector-meta,#settings-sources .site-priority-puppeteer>small,#settings-sources .site-freeze-reason-help{display:none!important}
  #settings-sources .site-priority-index{width:24px!important;height:24px!important;flex:0 0 24px!important;font-size:.58rem!important}
  #settings-sources .site-priority-domain code{font-size:.7rem!important;line-height:1.2!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  #settings-sources .site-version-selector-fields{display:grid!important;grid-template-columns:66px minmax(0,1fr)!important;gap:.25rem!important}
  #settings-sources .site-version-selector-fields .form-control,#settings-sources .site-priority-reason-wrap .form-control{height:30px!important;min-height:30px!important;padding:.2rem .4rem!important;font-size:.66rem!important}
  #settings-sources .site-priority-puppeteer{display:flex!important;align-items:center!important;justify-content:center!important;min-width:0!important}
  #settings-sources .site-puppeteer-control{display:flex!important;align-items:center!important;gap:.25rem!important}
  #settings-sources .site-puppeteer-label{font-size:.58rem!important}
  #settings-sources .site-priority-count,#settings-sources .site-priority-status,#settings-sources .site-priority-freeze,#settings-sources .site-priority-purge,#settings-sources .site-priority-remove{display:flex!important;align-items:center!important;justify-content:center!important;min-width:0!important}
  #settings-sources .site-priority-order{display:flex!important;align-items:center!important;justify-content:center!important;gap:.2rem!important;flex-wrap:nowrap!important}
  #settings-sources .site-priority-move{width:29px!important;height:29px!important;min-height:29px!important;padding:0!important}
  #settings-sources .site-priority-freeze .form-check-label{display:none!important}
  #settings-sources .site-priority-purge .btn,#settings-sources .site-priority-remove .btn{width:31px!important;height:31px!important;min-width:31px!important;min-height:31px!important;padding:0!important;display:grid!important;place-items:center!important}
  #settings-sources .site-priority-purge .btn span,#settings-sources .site-priority-remove .btn span{display:none!important}
  #settings-sources .site-post-count,#settings-sources .site-freeze-badge{font-size:.58rem!important;white-space:nowrap!important}
}

/* PATCH-096 — shared operation progress dock and centisecond Cron timings */
.cron-run-activity-head{grid-template-columns:minmax(0,1fr) auto auto}
.cron-run-activity-scroll-toggle{display:grid;place-items:center;width:34px;margin:.24rem 0 .24rem .1rem;border:1px solid #bfdbfe;border-radius:9px;background:#eff6ff;color:#1d4ed8;transition:background .16s ease,border-color .16s ease,color .16s ease,transform .16s ease}
.cron-run-activity-scroll-toggle:hover,.cron-run-activity-scroll-toggle:focus-visible{border-color:#93c5fd;background:#dbeafe;color:#1e40af;outline:0;transform:translateY(-1px)}
.cron-run-activity-scroll-toggle.is-paused{border-color:#fde68a;background:#fffbeb;color:#a16207}
.cron-run-activity-scroll-toggle[hidden]{display:none!important}
.cron-run-activity-main{grid-template-columns:auto minmax(0,1fr) auto}
.cron-run-activity-stage-clock{display:flex;flex-direction:column;align-items:flex-end;justify-content:center;min-width:62px;padding:.32rem .46rem;border:1px solid #dbeafe;border-radius:10px;background:linear-gradient(180deg,#f8fbff,#eff6ff)}
.cron-run-activity-stage-clock small{color:#64748b;font-size:.52rem;white-space:nowrap}.cron-run-activity-stage-clock bdi{color:#1d4ed8;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.75rem;font-weight:900;font-variant-numeric:tabular-nums;white-space:nowrap}
.cron-run-activity-stage-history{display:block;max-height:min(330px,42vh);overflow-y:auto;overflow-x:hidden;padding:0 .8rem .78rem;scrollbar-width:thin;overscroll-behavior:contain}
.cron-run-activity-stage-history[hidden]{display:none!important}
.cron-run-activity-details-head{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:.6rem;padding:.48rem .1rem .42rem;background:linear-gradient(180deg,rgba(255,255,255,.98) 72%,rgba(255,255,255,.75));border-top:1px solid #eef2f7}
.cron-run-activity-details-head strong{color:#334155;font-size:.68rem;font-weight:900}.cron-run-activity-details-head small{color:#94a3b8;font-size:.53rem;text-align:left}
.cron-run-activity-detail-list{display:grid;gap:.38rem}
.cron-run-activity-stage-row{display:grid;grid-template-columns:25px minmax(0,1fr) auto;align-items:center;gap:.48rem;padding:.42rem .48rem;border:1px solid #e2e8f0;border-radius:10px;background:#fff;color:#475569}
.cron-run-activity-stage-row.is-current{border-color:#93c5fd;background:#eff6ff;box-shadow:inset 0 0 0 1px rgba(59,130,246,.08)}
.cron-run-activity-stage-row.is-failed{border-color:#fecaca;background:#fff7f7}.cron-run-activity-stage-index{display:grid;place-items:center;width:23px;height:23px;border-radius:7px;background:#f1f5f9;color:#64748b;font-size:.58rem;font-weight:900}
.cron-run-activity-stage-copy{display:flex;min-width:0;flex-direction:column;gap:.12rem}.cron-run-activity-stage-copy strong{overflow:hidden;color:#334155;font-size:.63rem;font-weight:900;text-overflow:ellipsis;white-space:nowrap}.cron-run-activity-stage-copy small{overflow:hidden;color:#94a3b8;font-size:.52rem;text-overflow:ellipsis;white-space:nowrap}
.cron-run-activity-stage-flags{display:grid;grid-template-columns:auto auto;align-items:center;gap:.3rem}.cron-run-activity-stage-flags em{padding:.12rem .28rem;border-radius:999px;background:#dbeafe;color:#1d4ed8;font-size:.48rem;font-style:normal;font-weight:900}.cron-run-activity-stage-flags em.is-observed{background:#f1f5f9;color:#64748b}.cron-run-activity-stage-flags bdi{min-width:47px;color:#0f172a;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.64rem;font-weight:900;font-variant-numeric:tabular-nums;text-align:left}
.cron-run-activity--generic{border-color:rgba(139,92,246,.55);box-shadow:0 18px 48px rgba(15,23,42,.2),0 0 0 4px rgba(139,92,246,.08)}
.cron-run-activity--generic .cron-run-activity-handle i,.cron-run-activity--generic .cron-run-activity-stage-clock bdi{color:#7c3aed}.cron-run-activity--generic .cron-run-activity-stage-clock{border-color:#ede9fe;background:linear-gradient(180deg,#faf9ff,#f5f3ff)}
.cron-run-activity--generic .cron-run-activity-pulse{background:#8b5cf6;box-shadow:0 0 0 0 rgba(139,92,246,.4)}
.cron-run-activity{min-width:300px;min-height:210px;max-width:calc(100vw - 20px);max-height:calc(100vh - 20px);resize:both}
.cron-run-activity-head{grid-template-columns:minmax(0,1fr) repeat(4,auto)}
.cron-run-activity-tool{display:grid;place-items:center;width:34px;margin:.24rem 0 .24rem .1rem;border:1px solid #dbeafe;border-radius:9px;background:#f8fafc;color:#475569}
.cron-run-activity-tool:hover,.cron-run-activity-tool:focus-visible{border-color:#93c5fd;background:#eff6ff;color:#1d4ed8;outline:0}
.cron-run-activity-stage-history{max-height:calc(100% - 170px)}
.cron-run-activity-stage-row{margin-inline-start:calc(var(--trace-depth,0) * 14px)}
.cron-run-activity-stage-index.is-toggle{border:0;cursor:pointer}.cron-run-activity-stage-index.is-toggle:hover,.cron-run-activity-stage-index.is-toggle:focus-visible{background:#dbeafe;color:#1d4ed8;outline:0}
.cron-run-activity-json-panel{position:absolute;inset:40px 8px 8px;z-index:8;display:grid;grid-template-rows:auto minmax(0,1fr);overflow:hidden;border:1px solid #cbd5e1;border-radius:12px;background:#0f172a;box-shadow:0 18px 45px rgba(15,23,42,.36);direction:ltr}
.cron-run-activity-json-panel[hidden]{display:none!important}.cron-run-activity-json-panel>div{display:flex;align-items:center;justify-content:space-between;padding:.45rem .6rem;border-bottom:1px solid #334155;color:#e2e8f0;direction:rtl}.cron-run-activity-json-panel>div span{display:flex;gap:.35rem}.cron-run-activity-json-panel button{border:1px solid #475569;border-radius:7px;background:#1e293b;color:#e2e8f0;font-size:.62rem}.cron-run-activity-json-panel pre{min-height:0;margin:0;overflow:auto;padding:.7rem;color:#bfdbfe;font:11px/1.65 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;white-space:pre-wrap;word-break:break-word;text-align:left}
.cron-run-activity.is-collapsed{height:auto!important;min-height:0;resize:horizontal}.cron-run-activity.is-collapsed>.cron-run-activity-main,.cron-run-activity.is-collapsed>.cron-run-activity-times,.cron-run-activity.is-collapsed>.cron-run-activity-stage-history,.cron-run-activity.is-collapsed>.cron-run-activity-json-panel{display:none!important}
.utl-source-timing-row,.cron-report-deep-timing-row{margin-inline-start:calc(var(--trace-depth,0) * 14px)}

.cron-report-log-duration{display:inline-flex;align-items:center;gap:.28rem;flex:0 0 auto;padding:.18rem .42rem;border:1px solid #dbe7f3;border-radius:999px;background:#f8fafc;color:#64748b;font-size:.68rem;font-weight:800}
.cron-report-log-duration.is-exact{border-color:#bfdbfe;background:#eff6ff;color:#1d4ed8}.cron-report-log-duration bdi{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-variant-numeric:tabular-nums}
.cron-report-timing-stack{display:grid;gap:.55rem;margin-top:.65rem}.cron-report-timing-details{overflow:hidden;border:1px solid #dbeafe;border-radius:12px;background:linear-gradient(180deg,#f8fbff,#fff)}
.cron-report-timing-details>summary{display:flex;align-items:center;justify-content:space-between;gap:.7rem;cursor:pointer;padding:.58rem .68rem;list-style:none;color:#1e3a8a;font-size:.76rem;font-weight:900}.cron-report-timing-details>summary::-webkit-details-marker{display:none}.cron-report-timing-details>summary>span{display:flex;align-items:center;gap:.4rem;min-width:0}.cron-report-timing-details>summary bdi{padding:.2rem .42rem;border-radius:8px;background:#dbeafe;color:#1e40af;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.7rem;font-variant-numeric:tabular-nums}
.cron-report-timing-grid{display:grid;gap:.38rem;padding:.1rem .68rem .68rem}.cron-report-timing-row{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.6rem;overflow:hidden;padding:.4rem .5rem;border:1px solid #e2e8f0;border-radius:9px;background:#fff;font-size:.7rem}.cron-report-timing-row>span:first-child,.cron-report-timing-row>bdi{position:relative;z-index:1}.cron-report-timing-row>bdi{color:#0f172a;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-weight:900;font-variant-numeric:tabular-nums}.cron-report-timing-bar{position:absolute;inset-block:0;right:0;width:var(--timing-ratio,0%);background:linear-gradient(90deg,rgba(219,234,254,.22),rgba(191,219,254,.58));pointer-events:none}

@media(max-width:767.98px){.cron-run-activity--generic{right:10px}.cron-run-activity-main{grid-template-columns:auto minmax(0,1fr)}.cron-run-activity-stage-clock{grid-column:2;justify-self:start;align-items:flex-start;margin-top:.2rem}.cron-report-timing-row{grid-template-columns:1fr auto}}
@media(max-width:479.98px){.cron-run-activity-head{grid-template-columns:minmax(0,1fr) auto auto}.cron-run-activity-stage-row{grid-template-columns:23px minmax(0,1fr)}.cron-run-activity-stage-flags{grid-column:2;justify-self:start}.cron-run-activity-details-head{align-items:flex-start;flex-direction:column}.cron-report-source-field{grid-template-columns:1fr}.cron-report-log-duration{font-size:.62rem}}
.cron-report-file-timing-list{display:grid;gap:.55rem;padding:.1rem .68rem .72rem}.cron-report-file-timing-card{overflow:hidden;border:1px solid #e2e8f0;border-radius:10px;background:#fff}.cron-report-file-timing-card>header{display:flex;align-items:center;justify-content:space-between;gap:.7rem;padding:.5rem .58rem;border-bottom:1px solid #eef2f7;background:#f8fafc}.cron-report-file-timing-card>header strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#334155;font-size:.72rem}.cron-report-file-timing-card>header bdi{flex:0 0 auto;color:#1d4ed8;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.68rem;font-weight:900}.cron-report-file-timing-card .cron-report-timing-grid{padding:.5rem}

/* PATCH-096 manual-acceptance correction: vertical detailed timing UX */
.cron-report-deep-timings,.cron-report-run-timing-overview{margin-top:.65rem;border:1px solid #dbeafe;border-radius:12px;background:#f8fbff;overflow:hidden}
.cron-report-deep-timings>summary,.cron-report-run-timing-overview>summary{display:flex;align-items:center;justify-content:space-between;gap:.65rem;padding:.62rem .72rem;cursor:pointer;color:#1e3a5f;font-size:.72rem;font-weight:850;background:linear-gradient(135deg,#eff6ff,#f8fafc)}
.cron-report-deep-timings>summary span,.cron-report-run-timing-overview>summary span{display:flex;align-items:center;gap:.42rem}.cron-report-deep-timing-list{display:grid;grid-template-columns:1fr;gap:.4rem;padding:.55rem;max-height:520px;overflow-y:auto;overflow-x:hidden}
.cron-report-deep-timing-row{display:grid;grid-template-columns:25px minmax(0,1fr) auto;gap:.5rem;align-items:center;padding:.46rem .52rem;border:1px solid #e2e8f0;border-radius:9px;background:#fff;min-width:0}.cron-report-deep-timing-row.is-failed{border-color:#fecaca;background:#fff7f7}.cron-report-deep-index{display:grid;place-items:center;width:23px;height:23px;border-radius:7px;background:#eef2ff;color:#475569;font-size:.6rem;font-weight:900}.cron-report-deep-timing-row>div{display:grid;gap:.14rem;min-width:0}.cron-report-deep-timing-row strong{font-size:.69rem;color:#334155;overflow-wrap:anywhere}.cron-report-deep-timing-row small{font-size:.61rem;color:#64748b;overflow-wrap:anywhere}.cron-report-deep-timing-row code{font-size:.59rem;color:#b91c1c;overflow-wrap:anywhere}.cron-report-deep-timing-row>bdi{font-size:.7rem;font-weight:900;color:#1d4ed8;white-space:nowrap}
.cron-report-source-card .cron-report-deep-timings{margin:.2rem 0 0}.cron-report-source-card .cron-report-deep-timing-list{max-height:300px}
.utl-source-timing-section>header,.utl-adapter-attempts>header{display:flex;align-items:center;gap:.48rem}.utl-source-timing-section>header span,.utl-adapter-attempts>header span{margin-inline-start:auto}.utl-source-timing-list,.utl-adapter-attempt-list{display:grid;grid-template-columns:1fr;gap:7px;padding:10px}.utl-source-timing-row,.utl-adapter-attempt-row{display:grid;grid-template-columns:26px minmax(0,1fr) auto;gap:9px;align-items:center;padding:9px 10px;border:1px solid #e2e8f0;border-radius:10px;background:#fff;min-width:0}.utl-source-timing-row.is-failed,.utl-adapter-attempt-row.is-failed{border-color:#fecaca;background:#fff7f7}.utl-adapter-attempt-row.is-success{border-color:#bbf7d0;background:#f7fff9}.utl-source-timing-index{display:grid;place-items:center;width:24px;height:24px;border-radius:7px;background:#f1f5f9;color:#64748b;font-size:.61rem;font-weight:900}.utl-source-timing-row>div,.utl-adapter-attempt-row>div{display:grid;gap:3px;min-width:0}.utl-source-timing-row strong,.utl-adapter-attempt-row strong{font-size:.71rem;color:#334155;overflow-wrap:anywhere}.utl-source-timing-row small,.utl-adapter-attempt-row small{font-size:.63rem;color:#64748b;overflow-wrap:anywhere}.utl-source-timing-row code,.utl-adapter-attempt-row code{font-size:.61rem;color:#b91c1c;overflow-wrap:anywhere}.utl-source-timing-row>bdi,.utl-adapter-attempt-times>bdi{font-weight:900;color:#1d4ed8;white-space:nowrap}.utl-adapter-attempt-times{display:grid!important;justify-items:end;gap:2px!important}.utl-adapter-attempt-times small{white-space:nowrap}
@media(max-width:600px){.cron-report-deep-timing-row,.utl-source-timing-row,.utl-adapter-attempt-row{grid-template-columns:24px minmax(0,1fr)}.cron-report-deep-timing-row>bdi,.utl-source-timing-row>bdi,.utl-adapter-attempt-times{grid-column:2;justify-self:start}.utl-adapter-attempt-times{justify-items:start}}

/* Opt-in operation indicator settings */
.operation-indicator-settings{margin:0 0 1.25rem;overflow:hidden;border:1px solid #c4b5fd;border-radius:22px;background:linear-gradient(145deg,#fff 0%,#f8f7ff 100%);box-shadow:0 18px 42px rgba(76,29,149,.1)}
.operation-indicator-settings>summary{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;align-items:center;gap:.85rem;padding:1rem 1.15rem;cursor:pointer;list-style:none;background:linear-gradient(115deg,#312e81,#6d28d9 58%,#7c3aed);color:#fff}.operation-indicator-settings>summary::-webkit-details-marker,.operation-indicator-page>summary::-webkit-details-marker{display:none}
.operation-indicator-summary-icon{display:grid;place-items:center;width:46px;height:46px;border:1px solid rgba(255,255,255,.25);border-radius:15px;background:rgba(255,255,255,.14);font-size:1.15rem}.operation-indicator-settings>summary>span:nth-child(2){display:flex;min-width:0;flex-direction:column;gap:.18rem}.operation-indicator-settings>summary strong{font-size:1rem;font-weight:950}.operation-indicator-settings>summary small{color:#ddd6fe;font-size:.72rem}.operation-indicator-summary-state{padding:.42rem .7rem;border:1px solid rgba(255,255,255,.22);border-radius:999px;background:rgba(15,23,42,.22);font-size:.66rem;font-weight:850;white-space:nowrap}.operation-indicator-chevron{transition:transform .22s ease}.operation-indicator-settings[open]>summary .operation-indicator-chevron{transform:rotate(180deg)}
.operation-indicator-settings-body{display:grid;gap:1rem;padding:1rem}.operation-indicator-intro{display:flex;gap:.8rem;padding:.85rem 1rem;border:1px solid #ddd6fe;border-radius:15px;background:#f5f3ff;color:#4c1d95}.operation-indicator-intro>i{margin-top:.18rem}.operation-indicator-intro strong{font-size:.82rem}.operation-indicator-intro p{margin:.18rem 0 0;color:#6b7280;font-size:.69rem;line-height:1.9}
.operation-indicator-page-list{display:grid;gap:.65rem}.operation-indicator-page{overflow:hidden;border:1px solid #e2e8f0;border-radius:15px;background:#fff;transition:border-color .18s ease,box-shadow .18s ease}.operation-indicator-page[open]{border-color:#c4b5fd;box-shadow:0 10px 25px rgba(76,29,149,.07)}.operation-indicator-page>summary{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;align-items:center;gap:.7rem;padding:.75rem .85rem;cursor:pointer;list-style:none}.operation-indicator-page-icon{display:grid;place-items:center;width:36px;height:36px;border-radius:11px;background:#ede9fe;color:#6d28d9}.operation-indicator-page>summary>span:nth-child(2){display:flex;min-width:0;flex-direction:column;gap:.12rem}.operation-indicator-page>summary strong{color:#1e293b;font-size:.77rem;font-weight:900}.operation-indicator-page>summary code{overflow:hidden;color:#7c3aed;font-size:.57rem;text-overflow:ellipsis;white-space:nowrap}.operation-indicator-count{padding:.25rem .52rem;border-radius:999px;background:#f1f5f9;color:#64748b;font-size:.58rem;font-weight:900;white-space:nowrap}.operation-indicator-page>summary>i{color:#94a3b8;transition:transform .18s ease}.operation-indicator-page[open]>summary>i{transform:rotate(180deg)}
.operation-indicator-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.55rem;padding:.75rem;border-top:1px solid #eef2f7;background:#fafafa}.operation-indicator-option{display:flex;align-items:center;justify-content:space-between;gap:.8rem;min-width:0;padding:.7rem .75rem;border:1px solid #e2e8f0;border-radius:12px;background:#fff;cursor:pointer;transition:border-color .16s ease,transform .16s ease,opacity .16s ease}.operation-indicator-option:hover{border-color:#c4b5fd;transform:translateY(-1px)}.operation-indicator-option.is-saving{opacity:.62}.operation-indicator-option-copy{display:flex;min-width:0;flex-direction:column;gap:.15rem}.operation-indicator-option-copy strong{color:#334155;font-size:.68rem;font-weight:900}.operation-indicator-option-copy small{color:#94a3b8;font-size:.55rem;line-height:1.55}
.operation-indicator-switch{position:relative;flex:0 0 auto;width:42px;height:24px}.operation-indicator-switch input{position:absolute;opacity:0;pointer-events:none}.operation-indicator-switch span{position:absolute;inset:0;border-radius:999px;background:#cbd5e1;box-shadow:inset 0 1px 3px rgba(15,23,42,.15);transition:background .18s ease}.operation-indicator-switch span::after{position:absolute;top:3px;right:3px;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 2px 5px rgba(15,23,42,.25);content:'';transition:transform .18s ease}.operation-indicator-switch input:checked+span{background:linear-gradient(90deg,#7c3aed,#4f46e5)}.operation-indicator-switch input:checked+span::after{transform:translateX(-18px)}.operation-indicator-switch input:focus-visible+span{outline:3px solid rgba(124,58,237,.25);outline-offset:2px}
.operation-indicator-save-message{display:flex;align-items:center;gap:.6rem;padding:.75rem .9rem;border:1px solid;border-radius:13px;font-size:.68rem;font-weight:800;opacity:1;transform:translateY(0);transition:opacity .28s ease,transform .28s ease,visibility .28s ease}.operation-indicator-save-message.is-hidden{visibility:hidden;opacity:0;transform:translateY(6px)}.operation-indicator-save-message.is-info{border-color:#bfdbfe;background:#eff6ff;color:#1e40af}.operation-indicator-save-message.is-success{border-color:#bbf7d0;background:#f0fdf4;color:#166534}.operation-indicator-save-message.is-danger{border-color:#fecaca;background:#fef2f2;color:#991b1b}
@media(max-width:767.98px){.operation-indicator-settings>summary{grid-template-columns:auto minmax(0,1fr) auto}.operation-indicator-summary-state{display:none}.operation-indicator-options{grid-template-columns:1fr}.operation-indicator-page>summary{grid-template-columns:auto minmax(0,1fr) auto}.operation-indicator-count{display:none}}


/* PATCH-103 — compact mobile source cards, safe operation dock and Test Lab FTP layout */
.cron-run-activity{max-height:calc(100vh - 104px);max-height:calc(100dvh - 104px)}
.utl-ftp-path-note{display:flex;align-items:flex-start;gap:.5rem;margin-top:.48rem;padding:.52rem .62rem;border:1px solid #dbeafe;border-radius:11px;background:linear-gradient(135deg,#f8fbff,#eff6ff);color:#52657c;font-size:.7rem;line-height:1.75}
.utl-ftp-path-note>i{flex:0 0 auto;margin-top:.22rem;color:#2563eb}.utl-ftp-path-note>span{min-width:0}.utl-ftp-path-note code{display:inline-block;padding:.05rem .28rem;border-radius:6px;background:#fff;color:#be185d;font-size:.68rem;white-space:nowrap}

@media(max-width:767.98px){
  /* Keep the operation header (especially ×) below the sticky admin navbar. */
  .cron-run-activity{max-height:calc(100vh - 142px)!important;max-height:calc(100dvh - 142px)!important}
  .cron-run-activity-head{position:relative;z-index:12;background:linear-gradient(90deg,#eff6ff,#f8fafc)}

  /* Source priority: compact two-column control deck instead of tall scattered boxes. */
  #settings-sources .site-priority-item{margin:0 0 .62rem!important;padding:.55rem!important;border-radius:16px!important;box-shadow:0 7px 20px rgba(15,23,42,.06)!important}
  #settings-sources .site-priority-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-template-areas:"domain domain" "selector selector" "status count" "puppeteer freeze" "order order" "reason reason" "purge remove"!important;gap:.42rem!important}
  #settings-sources .site-priority-domain{grid-area:domain!important}#settings-sources .site-priority-version-selector{grid-area:selector!important}#settings-sources .site-priority-status{grid-area:status!important}#settings-sources .site-priority-count{grid-area:count!important}#settings-sources .site-priority-puppeteer{grid-area:puppeteer!important}#settings-sources .site-priority-freeze{grid-area:freeze!important}#settings-sources .site-priority-order{grid-area:order!important}#settings-sources .site-priority-reason-wrap{grid-area:reason!important}#settings-sources .site-priority-purge{grid-area:purge!important}#settings-sources .site-priority-remove{grid-area:remove!important}
  #settings-sources .site-priority-grid>[data-label]{padding:.45rem .5rem!important;border-radius:10px!important;box-shadow:none!important}
  #settings-sources .site-priority-grid>[data-label]::before{margin-bottom:.2rem!important;font-size:.54rem!important;line-height:1.25}
  #settings-sources .site-priority-domain{align-items:center!important;gap:.55rem!important;padding:.45rem .5rem!important}
  #settings-sources .site-priority-rank{flex:0 0 56px!important;min-height:50px!important;padding:.28rem .34rem!important;border-radius:11px!important;box-shadow:0 5px 12px color-mix(in srgb,var(--site-accent) 20%,transparent)!important}
  #settings-sources .site-priority-index{font-size:.88rem!important}.site-priority-rank small{font-size:.46rem!important}
  #settings-sources .site-priority-domain-kicker{font-size:.54rem!important}.site-priority-domain code{font-size:.78rem!important;line-height:1.35!important}
  #settings-sources .site-version-selector-fields{grid-template-columns:1fr!important;gap:.34rem!important}
  #settings-sources .site-version-selector-fields .form-control{min-height:38px!important;height:38px!important;padding:.3rem .5rem!important;font-size:.72rem!important;border-radius:9px!important}
  #settings-sources .site-version-selector-meta{display:none!important}
  #settings-sources .site-priority-status,#settings-sources .site-priority-count{min-height:40px!important}
  #settings-sources .site-priority-status .badge,#settings-sources .site-post-count{min-width:0!important;min-height:30px!important;padding:.3rem .48rem!important;font-size:.61rem!important}
  #settings-sources .site-priority-puppeteer{min-height:42px!important;justify-content:center!important}
  #settings-sources .site-priority-puppeteer>small{display:none!important}
  #settings-sources .site-puppeteer-control{min-height:34px!important;padding:.28rem .42rem!important;border-radius:9px!important}
  #settings-sources .site-puppeteer-label{font-size:.61rem!important}
  #settings-sources .site-priority-freeze{min-height:42px!important}
  #settings-sources .site-priority-freeze .form-check{min-height:34px!important;padding:.25rem .35rem!important;gap:.3rem!important}
  #settings-sources .site-priority-freeze .form-check-label{font-size:.62rem!important;white-space:nowrap}
  #settings-sources .site-priority-order{grid-template-columns:1fr 1fr!important;gap:.32rem!important}
  #settings-sources .site-priority-grid>.site-priority-order[data-label]::before,#settings-sources .site-priority-grid>.site-priority-purge[data-label]::before,#settings-sources .site-priority-grid>.site-priority-remove[data-label]::before{display:none!important}
  #settings-sources .site-priority-move{min-height:38px!important;height:38px!important;border-radius:9px!important}
  #settings-sources .site-priority-reason-wrap .form-control{min-height:38px!important;height:38px!important;padding:.3rem .5rem!important;font-size:.7rem!important;border-radius:9px!important}
  #settings-sources .site-priority-reason-help{display:none!important}
  #settings-sources .site-priority-item:not(.is-frozen) .site-priority-reason-wrap{display:none!important}
  #settings-sources .site-priority-purge .btn,#settings-sources .site-priority-remove .btn{min-height:38px!important;height:38px!important;padding:.3rem .45rem!important;border-radius:9px!important;font-size:.65rem!important}

  /* Test Lab: never squeeze the explanatory switch into a 5/12 phone column. */
  .utl-retained-runs-field,.utl-row-priority-field{width:100%}
  .utl-row-priority-box{min-height:0!important;padding:.65rem .72rem!important;gap:.7rem!important}
  .utl-row-priority-box>div:first-child{min-width:0;flex:1}
  .utl-row-priority-box strong{font-size:.76rem;line-height:1.65}.utl-row-priority-box small{margin-top:.18rem;font-size:.66rem!important;line-height:1.75}
  .utl-ftp-path-note{margin-top:.42rem;padding:.48rem .55rem;font-size:.67rem}
}

@media(max-width:479.98px){
  /* There can be JSON, collapse, auto-scroll and close tools; reserve all four slots. */
  .cron-run-activity-head{grid-template-columns:minmax(0,1fr) repeat(4,30px)!important;gap:0!important}
  .cron-run-activity-tool,.cron-run-activity-scroll-toggle,.cron-run-activity-close{width:30px!important;height:30px!important;min-height:30px!important;margin:.18rem 0 .18rem .08rem!important;padding:0!important}
  .cron-run-activity-handle{min-width:0!important;padding:.3rem .45rem!important}.cron-run-activity-handle span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  #settings-sources .settings-source-help-note{font-size:.66rem!important;line-height:1.75!important}
  #settings-sources .site-priority-grid{gap:.36rem!important}
  #settings-sources .site-priority-grid>[data-label]{padding:.4rem .44rem!important}
  #settings-sources .site-priority-rank{flex-basis:52px!important;min-height:48px!important}
  #settings-sources .site-priority-domain code{font-size:.74rem!important}
  .utl-row-priority-box{align-items:flex-start!important}.utl-row-priority-box .form-switch{margin-top:.12rem!important;flex:0 0 auto}
}

/* PATCH-106 — training metadata in the System Guide */
.system-guide-learning-meta{display:flex;flex-wrap:wrap;gap:.42rem;margin:.55rem 0 .75rem}.system-guide-learning-meta>span{display:inline-flex;align-items:center;gap:.32rem;padding:.32rem .52rem;border:1px solid #dbe7f5;border-radius:999px;background:linear-gradient(135deg,#fff,#f8fbff);color:#334155}.system-guide-learning-meta small{font-size:.62rem;color:#7c8da3}.system-guide-learning-meta strong{font-size:.68rem;color:#1d4ed8}
@media(max-width:575.98px){.system-guide-learning-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.system-guide-learning-meta>span{justify-content:space-between;border-radius:10px}.system-guide-learning-meta small,.system-guide-learning-meta strong{min-width:0;overflow-wrap:anywhere}}

/* PATCH-106-R1: System Guide educational content uses true RTL; technical values remain LTR. */
.system-guide-item-body,
.system-guide-description-block,
.system-guide-subdetail,
.system-guide-subdetail>summary,
.system-guide-subdetail>div,
.system-guide-learning-meta{
  direction:rtl;
  text-align:right;
}
.system-guide-description-block :where(h3,p),
.system-guide-subdetail>summary :where(span,strong),
.system-guide-subdetail li>span,
.system-guide-subdetail li>b,
.system-guide-learning-meta :where(span,small,strong){
  direction:rtl;
  text-align:right;
  unicode-bidi:isolate;
}
.system-guide-subdetail ul,
.system-guide-subdetail ol{
  direction:rtl;
  text-align:right;
  padding-inline-start:0;
  padding-inline-end:0;
}
.system-guide-subdetail li{
  direction:rtl;
  text-align:right;
  justify-content:flex-start;
}
.system-guide-subdetail li>span{flex:1 1 auto;min-width:0}
.system-guide-item-body :where(code,pre,[dir="ltr"],.system-guide-real-target a){
  direction:ltr!important;
  text-align:left!important;
  unicode-bidi:isolate!important;
}
.system-guide-item.is-deep-linked{
  border-color:#60a5fa;
  box-shadow:0 0 0 3px rgba(59,130,246,.13),0 10px 30px rgba(30,64,175,.08);
}

/* PATCH-107: Google Play foundation */
.google-play-foundation-note{display:flex;gap:12px;align-items:flex-start;padding:14px;border:1px solid #bbf7d0;border-radius:14px;background:linear-gradient(135deg,#f0fdf4,#f8fafc);color:#166534}.google-play-foundation-note strong{white-space:nowrap}.google-play-foundation-note span{color:#475569}
.google-play-policy-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.google-play-policy-grid>article{border:1px solid #e2e8f0;border-radius:14px;padding:13px;background:#fff}.google-play-advanced>summary{cursor:pointer;font-weight:800;color:#334155}.google-play-identity-grid{display:grid;grid-template-columns:minmax(180px,.7fr) minmax(280px,1.3fr);gap:12px}.google-play-effective{border:1px solid #dbeafe;border-radius:14px;padding:13px;background:#f8fbff}.google-play-effective-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:10px}.google-play-effective-grid>div{display:flex;flex-direction:column;min-width:0;border:1px solid #e2e8f0;border-radius:10px;padding:8px;background:#fff}.google-play-effective-grid span{font-size:.68rem;color:#64748b;overflow:hidden;text-overflow:ellipsis}.google-play-effective-grid b{font-size:.78rem;color:#0f172a;overflow-wrap:anywhere}.google-play-effective-grid small{font-size:.62rem;color:#2563eb}.google-play-post-overrides>small{display:block;color:#64748b;margin-top:3px}
@media(max-width:991.98px){.google-play-policy-grid{grid-template-columns:1fr}.google-play-effective-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:575.98px){.google-play-identity-grid,.google-play-effective-grid{grid-template-columns:1fr}.google-play-foundation-note{display:block}.google-play-foundation-note strong{display:block;margin-bottom:5px}}
