/* ===== media.css ===== */
/* ═══════════════════════════════════════════════════════
   Android TV Control Centre
   ═══════════════════════════════════════════════════════ */
.android-tv-control{display:block;padding:14px;border-radius:18px;background:linear-gradient(180deg,#f8fbfc 0%,#eef6f8 100%);border:1px solid rgba(44,92,113,.18);box-shadow:0 8px 22px rgba(15,23,42,.05)}
.screen-android-tv-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:12px}.screen-android-tv-head>div{display:flex;flex-direction:column;gap:4px}.screen-android-tv-head span{display:flex;align-items:center;gap:8px;font-weight:600;color:#21485A}.screen-android-tv-head code{background:#fff;border:1px solid rgba(44,92,113,.16);border-radius:8px;padding:2px 7px;color:#1e293b}.android-tv-token-ok{color:#047857;font-weight:700}.android-tv-token-missing{color:#b45309;font-weight:700}.android-tv-status-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:10px;margin:10px 0 12px}.android-tv-status-grid span{display:grid;grid-template-columns:22px 1fr;gap:2px 8px;align-items:center;padding:10px;background:#fff;border:1px solid rgba(15,23,42,.07);border-radius:13px}.android-tv-status-grid .icon{grid-row:1/3;color:#2C5C71}.android-tv-status-grid b{font-size:.72rem;color:#64748b;text-transform:uppercase;letter-spacing:.04em}.android-tv-status-grid em{font-style:normal;font-weight:700;color:#0f172a;word-break:break-word}.android-tv-control-actions{display:flex;flex-wrap:wrap;gap:8px}.android-tv-error{margin-top:10px;border:1px solid rgba(239,68,68,.2);background:#fff1f2;color:#991b1b;border-radius:12px;padding:9px 11px;display:flex;align-items:center;gap:8px;font-weight:700}.android-tv-last-command{display:block;margin-top:9px;color:#64748b}.android-tv-screenshot-modal{display:flex;flex-direction:column;gap:14px}.android-tv-screenshot-frame{background:#020617;border-radius:18px;min-height:260px;display:grid;place-items:center;overflow:hidden;border:1px solid rgba(15,23,42,.12)}.android-tv-screenshot-frame img{width:100%;height:auto;display:block}.android-tv-schedule-modal{min-width:min(760px,calc(100vw - 48px));display:flex;flex-direction:column;gap:14px}.android-tv-schedule-grid{display:grid;gap:9px}.android-tv-schedule-row{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:10px;align-items:center;padding:10px;border:1px solid rgba(44,92,113,.14);background:#f8fbfc;border-radius:14px}.android-tv-schedule-day{display:flex;align-items:center;gap:10px;font-weight:600;color:#21485A}.android-tv-schedule-day input{width:18px;height:18px;accent-color:#2C5C71}.android-tv-schedule-row .form-row{margin:0}.android-tv-schedule-row label:not(.android-tv-schedule-day){font-size:.72rem;color:#64748b;font-weight:700;text-transform:uppercase;letter-spacing:.04em}@media(max-width:720px){.screen-android-tv-head,.android-tv-schedule-row{grid-template-columns:1fr;display:grid}.android-tv-control-actions .btn,.dashboard-android-tv-actions .btn{width:100%;justify-content:center}}


.android-tv-screenshot-modal{max-width:min(920px,calc(100vw - 42px));}
.android-tv-screenshot-frame{width:100%;max-height:72vh;min-height:220px;display:flex;align-items:center;justify-content:center;padding:10px;}
.android-tv-screenshot-frame img{width:100%;height:100%;max-height:70vh;object-fit:contain;border-radius:12px;background:#020617;}
.android-tv-control-actions .btn.warning{background:#fff7ed;border-color:rgba(245,158,11,.28);color:#92400e;}
.android-tv-status-grid em:empty::after{content:"Not checked";color:#64748b;}
.android-tv-schedule-modal{max-height:calc(100vh - 120px);overflow:auto;}
.android-tv-schedule-row{grid-template-columns:minmax(150px,1.2fr) minmax(120px,1fr) minmax(120px,1fr);}
@media(max-width:720px){.android-tv-screenshot-frame{max-height:60vh}.android-tv-screenshot-frame img{max-height:58vh}}

/* Android TV control refinements */
.android-tv-screenshot-modal{max-width:min(980px,calc(100vw - 44px));}
.android-tv-screenshot-frame{max-height:70vh;min-height:220px;}
.android-tv-screenshot-frame img{width:100%;max-height:70vh;object-fit:contain;background:#020617;}
.android-tv-volume-modal{min-width:min(520px,calc(100vw - 48px));display:flex;flex-direction:column;gap:16px;}
.android-tv-volume-card{border:1px solid rgba(44,92,113,.14);background:linear-gradient(180deg,#f8fbfc,#ffffff);border-radius:18px;padding:18px;box-shadow:0 8px 24px rgba(15,23,42,.06);}
.android-tv-volume-value{display:flex;align-items:flex-end;justify-content:center;gap:4px;color:#21485A;font-weight:600;margin-bottom:14px;}
.android-tv-volume-value span{font-size:2.4rem;line-height:1;}
.android-tv-volume-value small{font-size:1rem;margin-bottom:4px;color:#64748b;}
.android-tv-volume-range{width:100%;accent-color:#2C5C71;cursor:pointer;}
.android-tv-volume-scale{display:flex;justify-content:space-between;margin-top:8px;color:#64748b;font-size:.78rem;font-weight:600;}

/* TV Screens popup create flow and modern upsert UI */
.screens-hero { align-items: stretch; }
.screens-hero-actions { display:flex; flex-direction:column; gap:12px; min-width:min(360px,100%); }
.screens-create-btn { min-height:46px; justify-content:center; box-shadow:0 12px 26px rgba(44,92,113,.20); }
.screens-toolbar { display:flex; align-items:stretch; justify-content:space-between; gap:12px; margin-top:14px; }
.screens-toolbar .btn { align-self:stretch; min-width:160px; justify-content:center; }
.screens-tip { margin:0; flex:1; }
.empty-state .btn { margin-top:10px; }
.modal:has(.screen-upsert-form) { width:min(1040px, calc(100vw - 28px)); padding:0; overflow:hidden; }
.modal:has(.screen-upsert-form) .edit-screen-url { margin:0 20px 14px; }
.screen-upsert-head { margin:0; padding:20px 22px; border-bottom:1px solid rgba(44,92,113,.12); background:radial-gradient(circle at 0 0, rgba(44,92,113,.18), transparent 38%), linear-gradient(135deg,#f8fbfc,#eef6f8); }
.screen-upsert-head h2 { color:#21485A; font-size:20px; font-weight:600; }
.screen-upsert-intro { display:flex; gap:13px; align-items:flex-start; margin:18px 20px 14px; padding:16px; border-radius:20px; background:linear-gradient(135deg, rgba(44,92,113,.10), rgba(62,120,144,.05)); border:1px solid rgba(44,92,113,.14); }
.screen-upsert-intro > span { width:44px; height:44px; border-radius:16px; display:grid; place-items:center; color:#fff; background:linear-gradient(135deg,#2C5C71,#3E7890); box-shadow:0 10px 24px rgba(44,92,113,.20); flex:0 0 auto; }
.screen-upsert-intro b { display:block; color:#0f172a; font-weight:600; font-size:15px; }
.screen-upsert-intro small { display:block; margin-top:3px; color:#64748b; line-height:1.45; }
.screen-upsert-form { display:grid; gap:14px; padding:0 20px 20px; }
.screen-upsert-section { border:1px solid rgba(15,23,42,.08); background:#fff; border-radius:20px; padding:15px; box-shadow:0 10px 24px rgba(15,23,42,.045); }
.screen-upsert-section-title { display:flex; align-items:center; gap:8px; color:#21485A; font-weight:600; font-size:13px; text-transform:uppercase; letter-spacing:.05em; margin-bottom:12px; }
.screen-upsert-section-title .icon { width:17px; height:17px; }
.screen-upsert-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.screen-upsert-grid.two { grid-template-columns:1fr 1fr; }
.screen-token-field { grid-column:1 / -1; }
.screen-upsert-form .form-row { margin:0; }
.screen-upsert-form .form-row label { font-weight:600; color:#334155; }
.screen-upsert-form .input,
.screen-upsert-form .select,
.screen-upsert-form .textarea { border-radius:13px; background:#f8fafc; }
.screen-upsert-form .textarea { min-height:76px; resize:vertical; }
.required-dot { color:#dc2626; }
.screen-upsert-actions { display:flex; justify-content:flex-end; gap:10px; flex-wrap:wrap; padding-top:2px; }
.screen-upsert-actions .btn { min-height:42px; }
@media(max-width:860px){
  .screens-hero-actions,
  .screens-toolbar { flex-direction:column; }
  .screens-toolbar .btn { width:100%; }
  .screen-upsert-grid,
  .screen-upsert-grid.two { grid-template-columns:1fr; }
  .screen-token-field { grid-column:auto; }
  .screen-upsert-actions .btn { width:100%; justify-content:center; }
}


/* Compact TV Screens cards and always-visible popup footer */
.modal:has(.screen-upsert-form){
  width:min(860px, calc(100vw - 28px));
  max-height:calc(100vh - 34px);
  display:flex;
  flex-direction:column;
  overflow:hidden;
  border-radius:22px;
}
.modal:has(.screen-upsert-form) .screen-upsert-head{
  flex:0 0 auto;
  padding:14px 18px;
}
.modal:has(.screen-upsert-form) .edit-screen-url{
  flex:0 0 auto;
  margin:10px 16px 0;
  padding:9px 11px;
  border-radius:14px;
}
.screen-upsert-intro{
  margin:12px 16px 8px;
  padding:11px 12px;
  border-radius:16px;
}
.screen-upsert-intro > span{
  width:34px;
  height:34px;
  border-radius:12px;
}
.screen-upsert-form{
  overflow:auto;
  padding:0 16px 0;
  gap:9px;
}
.screen-upsert-section{
  padding:11px;
  border-radius:16px;
  box-shadow:0 6px 14px rgba(15,23,42,.035);
}
.screen-upsert-section-title{
  margin-bottom:8px;
  font-size:11px;
}
.screen-upsert-grid{
  gap:9px;
}
.screen-upsert-form .input,
.screen-upsert-form .select{
  min-height:38px;
  padding-top:8px;
  padding-bottom:8px;
}
.screen-upsert-form .textarea{
  min-height:52px;
}
.screen-upsert-form .field-help,
.screen-upsert-form small{
  font-size:11px;
  line-height:1.3;
}
.screen-upsert-actions{
  position:sticky;
  bottom:0;
  z-index:3;
  margin:10px -16px 0;
  padding:12px 16px;
  background:rgba(255,255,255,.96);
  backdrop-filter:blur(12px);
  border-top:1px solid rgba(15,23,42,.08);
  box-shadow:0 -10px 22px rgba(15,23,42,.06);
}
.screen-upsert-actions .btn{
  min-height:38px;
}
.screen-cards-grid{
  gap:12px;
}
.screen-card{
  padding:14px;
  border-radius:18px;
  box-shadow:0 8px 20px rgba(15,23,42,.055);
}
.screen-card .screen-card-header{
  gap:10px;
  margin-bottom:10px;
}
.screen-card .screen-card-title b{
  font-size:15px;
}
.screen-card .screen-card-location{
  font-size:12px;
}
.screen-url-preview{
  display:grid;
  grid-template-columns:auto 1fr;
  gap:8px;
  align-items:center;
  padding:8px 10px;
  border-radius:13px;
  margin:8px 0;
}
.screen-url-preview code{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:11px;
}
.screen-card-meta{
  grid-template-columns:repeat(auto-fit,minmax(160px,1fr));
  gap:8px;
  margin-top:8px;
}
.screen-card-meta span{
  padding:8px 9px;
  border-radius:12px;
  background:#f8fbfc;
  border:1px solid rgba(44,92,113,.10);
  font-size:12px;
}
.screen-compact-details{
  margin-top:9px;
  border:1px solid rgba(44,92,113,.12);
  border-radius:14px;
  background:#fff;
  overflow:hidden;
}
.screen-compact-details > summary{
  list-style:none;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:10px 12px;
  font-weight:600;
  color:#21485A;
  background:linear-gradient(135deg,#f8fbfc,#eef6f8);
}
.screen-compact-details > summary::-webkit-details-marker{display:none;}
.screen-compact-details > summary .icon{color:#2C5C71;}
.screen-compact-details > summary span{
  margin-left:auto;
  font-size:11px;
  color:#64748b;
  font-weight:600;
}
.screen-compact-details[open] > summary span::before{content:"Close";}
.screen-compact-details[open] > summary span{font-size:0;}
.screen-compact-details[open] > summary span::before{font-size:11px;}
.screen-compact-details .android-tv-control,
.screen-compact-details .screen-health-panel{
  margin:0;
  border:0;
  border-radius:0;
  box-shadow:none;
}
.screen-card-actions{
  gap:7px;
  margin-top:12px;
}
.screen-card-actions .btn{
  min-height:34px;
  padding:7px 10px;
  font-size:12px;
}
@media(max-width:720px){
  .modal:has(.screen-upsert-form){width:calc(100vw - 16px);max-height:calc(100vh - 18px);}
  .screen-upsert-grid,.screen-upsert-grid.two{grid-template-columns:1fr;}
  .screen-upsert-actions .btn{width:100%;justify-content:center;}
  .screen-card-actions .btn{flex:1 1 140px;justify-content:center;}
}

/* ═══════════════════════════════════════════════════════
   TV Screens popup controls
   ═══════════════════════════════════════════════════════ */
.screen-card{padding:13px;border-radius:18px;box-shadow:0 8px 22px rgba(15,23,42,.055);border:1px solid rgba(44,92,113,.12);background:linear-gradient(180deg,#fff,#fbfdfe);}
.screen-card-top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;}
.screen-card-title{display:flex;align-items:flex-start;gap:10px;min-width:0;}
.screen-card-title b{display:block;font-size:15px;color:#0f172a;line-height:1.2;}
.screen-card-title small{display:block;font-size:12px;color:#64748b;margin-top:2px;}
.screen-card-url{display:grid;grid-template-columns:22px 1fr;align-items:center;gap:8px;margin:10px 0;padding:8px 10px;border-radius:13px;background:#f1f7f9;border:1px solid rgba(44,92,113,.12);color:#2C5C71;}
.screen-card-url code{font-size:11px;color:#334155;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.screen-card-info-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(155px,1fr));gap:8px;}
.screen-card-info-grid span{display:grid;grid-template-columns:22px 1fr;gap:1px 8px;align-items:center;padding:8px 9px;background:#fff;border:1px solid rgba(15,23,42,.07);border-radius:12px;min-width:0;}
.screen-card-info-grid .icon{grid-row:1/3;color:#2C5C71;}
.screen-card-info-grid b{font-size:10px;text-transform:uppercase;letter-spacing:.05em;color:#64748b;}
.screen-card-info-grid em{font-style:normal;font-size:12px;font-weight:600;color:#0f172a;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.screen-card-action-row{display:flex;flex-wrap:wrap;gap:7px;margin-top:12px;padding-top:10px;border-top:1px solid rgba(44,92,113,.10);}
.screen-card-action-row .btn{min-height:32px;padding:7px 10px;font-size:12px;}

.android-tv-modal-head{position:sticky;top:0;z-index:5;background:#fff;padding-bottom:10px;border-bottom:1px solid rgba(15,23,42,.08);}
.android-tv-control-modal,.screen-health-modal{width:min(860px,calc(100vw - 36px));max-height:calc(100vh - 100px);overflow:auto;padding-right:2px;}
.android-tv-control-title{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:10px 12px;margin-bottom:10px;border:1px solid rgba(44,92,113,.12);border-radius:14px;background:#f8fbfc;}
.android-tv-control-title b{color:#0f172a;font-size:15px;}
.android-tv-control-title small{color:#64748b;font-size:12px;}
.android-tv-control{box-shadow:none;padding:13px;border-radius:16px;}
.screen-android-tv-head{align-items:center;}
.android-tv-status-grid{grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:8px;}
.android-tv-status-grid span{padding:9px;border-radius:12px;}
.android-tv-status-grid b{font-size:10px;}
.android-tv-status-grid em{font-size:12px;}
.android-tv-control-actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(122px,1fr));gap:8px;margin-top:12px;}
.android-tv-control-actions .btn{justify-content:center;min-height:34px;}
.android-tv-set-url-card{margin:12px 0;padding:12px;border-radius:16px;border:1px solid rgba(44,92,113,.14);background:#fff;display:grid;gap:10px;}
.android-tv-set-url-card b{display:flex;align-items:center;gap:8px;color:#21485A;font-size:13px;}
.android-tv-set-url-card small{display:block;color:#64748b;margin-top:3px;font-size:12px;}
.android-tv-set-url-card code{background:#eef6f8;border-radius:6px;padding:1px 5px;color:#21485A;}
.android-tv-set-url-row{display:grid;grid-template-columns:1fr auto;gap:8px;}

.android-tv-schedule-modal{width:min(680px,calc(100vw - 36px));max-height:calc(100vh - 120px);overflow:auto;gap:10px;}
.android-tv-schedule-grid{gap:7px;}
.android-tv-schedule-modal .help{font-size:12px;margin-bottom:2px;}
.android-tv-schedule-row{grid-template-columns:minmax(126px,1fr) 110px 110px;padding:8px 10px;border-radius:12px;gap:8px;}
.android-tv-schedule-day{font-size:13px;}
.android-tv-schedule-day input{width:16px;height:16px;}
.android-tv-schedule-row .input{height:34px;padding:6px 9px;font-size:12px;}
.android-tv-schedule-row label:not(.android-tv-schedule-day){font-size:10px;}
.android-tv-schedule-modal .btn-row{position:sticky;bottom:0;background:#fff;padding-top:10px;border-top:1px solid rgba(15,23,42,.08);}

@media(max-width:760px){
  .dashboard-tv-main{grid-template-columns:auto 1fr;}
  .dashboard-tv-state{grid-column:1 / -1;justify-self:start;}
  .dashboard-android-tv-preview-frame{max-height:140px;}
  .android-tv-set-url-row{grid-template-columns:1fr;}
  .android-tv-schedule-row{grid-template-columns:1fr 1fr;}
  .android-tv-schedule-day{grid-column:1 / -1;}
  .screen-card-action-row .btn{flex:1 1 130px;justify-content:center;}
}

@media (max-width: 900px) {


/* ===== playlists.css ===== */
.dashboard-tv-main { grid-template-columns: 38px minmax(0,1fr); }
  .dashboard-tv-state { grid-column: 1 / -1; justify-items: start; }
  .dashboard-tv-state em { text-align: left; }
  .screen-card-info-grid { grid-template-columns: 1fr; }
  .android-tv-status-grid,
  .android-tv-control-actions,
  .screen-health-modal .screen-health-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .android-tv-schedule-grid { grid-template-columns: 1fr; }
  .modal:has(.android-tv-control-modal),
  .modal:has(.screen-health-modal),
  .modal:has(.android-tv-schedule-modal) { overflow: auto; }
}

.media-cleanup-page { display: grid; gap: 14px; width: 100%; }
.cleanup-hero { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; }
.cleanup-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.cleanup-panel { display: flex; flex-direction: column; gap: 10px; min-height: 280px; padding: 16px; }
.cleanup-list { display: grid; gap: 8px; }
.cleanup-asset-row { display: grid; grid-template-columns: 48px minmax(0,1fr) auto; gap: 10px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); min-width: 0; }
.cleanup-thumb { width: 48px; height: 40px; border-radius: 10px; overflow: hidden; background: var(--surface-3); display: grid; place-items: center; }
.cleanup-thumb img, .cleanup-thumb video { width: 100%; height: 100%; object-fit: cover; }
.cleanup-copy { min-width:0; display:grid; gap:4px; }
.cleanup-title-row { display:flex; align-items:center; gap:8px; min-width:0; }
.cleanup-asset-row b { font-size: 12.5px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cleanup-type-badge { display:inline-flex; align-items:center; gap:5px; padding:4px 8px; border-radius:999px; background:#eef6f8; color:#21485A; font-size:10.5px; font-weight:600; white-space:nowrap; }
.cleanup-type-badge .icon { width:12px; height:12px; }
.cleanup-asset-row small { font-size: 11px; color: var(--muted); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cleanup-actions { display:flex; gap:6px; align-items:center; flex-wrap:wrap; justify-content:flex-end; }
.cleanup-dup-group { border: 1px solid var(--line); border-radius: 16px; padding: 10px; background: var(--surface); display: grid; gap: 8px; box-shadow: var(--shadow-xs); }
.cleanup-dup-group > b { font-size: 13px; }
@media (max-width: 1050px) { .cleanup-grid { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .cleanup-hero { flex-direction: column; align-items: stretch; } .cleanup-asset-row { grid-template-columns: 42px 1fr; } .cleanup-actions { grid-column: 2; justify-content:flex-start; } .cleanup-title-row { flex-wrap:wrap; } }


.cleanup-panel .btn-row { margin-top: auto; justify-content: flex-end; }
.cleanup-asset-row {
  grid-template-columns: 52px minmax(0,1fr) minmax(156px, 176px);
  padding: 12px;
  border-radius: 16px;
}
.cleanup-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-self: stretch;
  min-width: 156px;
}
.cleanup-actions .btn,
.cleanup-action-btn {
  width: 100%;
  justify-content: center;
  min-height: 34px;
  padding: 7px 12px;
  white-space: nowrap;
}
.cleanup-action-btn .icon { flex: 0 0 auto; }
.cleanup-list { gap: 10px; }
.cleanup-dup-group .cleanup-asset-row { background: #fbfdfe; }
@media (max-width: 920px) {
  .cleanup-asset-row {
    grid-template-columns: 48px minmax(0,1fr);
    align-items: start;
  }
  .cleanup-actions {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-width: 0;
    width: 100%;
  }
}
@media (max-width: 560px) {
  .cleanup-actions {
    grid-template-columns: 1fr;
  }
}


.cleanup-asset-row {
  grid-template-columns: 52px minmax(0, 1fr) minmax(224px, 260px) !important;
  align-items: center;
}
.cleanup-actions {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(108px, 1fr)) !important;
  gap: 8px !important;
  min-width: 224px !important;
  width: 100%;
  justify-content: stretch !important;
  align-items: stretch !important;
}
.cleanup-actions .btn,
.cleanup-action-btn {
  width: 100% !important;
  min-width: 108px !important;
  min-height: 36px !important;
  padding: 8px 12px !important;
  border-radius: 12px !important;
  font-size: 12px !important;
  line-height: 1.1 !important;
  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: clip !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
}
.cleanup-actions .btn .icon,
.cleanup-action-btn .icon {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}
.cleanup-dup-group .cleanup-actions {
  min-width: 224px !important;
}
@media (max-width: 1180px) {
  .cleanup-asset-row {
    grid-template-columns: 52px minmax(0, 1fr) !important;
    align-items: start;
  }
  .cleanup-actions {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(150px, 1fr)) !important;
    min-width: 0 !important;
  }
}
@media (max-width: 560px) {
  .cleanup-actions {
    grid-template-columns: 1fr !important;
  }
  .cleanup-actions .btn,
  .cleanup-action-btn {
    min-width: 0 !important;
  }
}


.media-analytics-page { display:grid; gap:14px; width: 100%; }
.analytics-hero { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:18px 20px; }
.analytics-table-card { display:grid; gap:12px; }
.analytics-toolbar { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.analytics-list { display:grid; gap:9px; }
.analytics-row { display:grid; grid-template-columns:minmax(220px,1.5fr) repeat(4,minmax(120px,1fr)); gap:10px; align-items:center; padding:11px 12px; border:1px solid var(--line); border-radius:16px; background:var(--surface); box-shadow:var(--shadow-xs); }
.analytics-row > div { min-width:0; display:grid; gap:2px; }
.analytics-row span { color:var(--muted); font-size:11px; font-weight:600; text-transform:uppercase; letter-spacing:.04em; }
.analytics-row b { color:var(--text); font-size:13px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.analytics-row small { color:var(--muted); font-size:11px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.analytics-media-cell { display:flex !important; align-items:center; gap:10px; }
.analytics-media-cell > span { width:36px; height:36px; border-radius:12px; display:grid; place-items:center; background:#eef6f8; color:#2C5C71; flex:0 0 auto; }
@media (max-width: 980px) { .analytics-row { grid-template-columns:1fr 1fr; } }
@media (max-width: 640px) { .analytics-hero { flex-direction:column; align-items:stretch; } .analytics-row { grid-template-columns:1fr; } }


.analytics-page-ui { display:grid; gap:16px; }
.analytics-hero-ui { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:18px; padding:22px; overflow:hidden; position:relative; }
.analytics-hero-ui::after { content:""; position:absolute; inset:auto -80px -130px auto; width:280px; height:280px; border-radius:999px; background:radial-gradient(circle, rgba(44,92,113,.16), transparent 70%); pointer-events:none; }
.analytics-hero-copy { display:grid; gap:8px; position:relative; z-index:1; }
.analytics-hero-copy h2 { margin:0; font-size:clamp(22px, 3vw, 34px); letter-spacing:-.015em; color:var(--text); }
.analytics-hero-copy p { margin:0; color:var(--muted); max-width:900px; line-height:1.55; }
.analytics-health-strip { display:flex; flex-wrap:wrap; gap:8px; margin-top:8px; }
.analytics-health-strip span { display:inline-flex; align-items:center; gap:7px; padding:7px 10px; border:1px solid var(--line); border-radius:999px; background:rgba(255,255,255,.72); color:var(--muted); font-size:12px; font-weight:600; }
.analytics-health-strip svg { width:15px; height:15px; color:#2C5C71; }
.analytics-hero-actions { position:relative; z-index:1; display:flex; flex-wrap:wrap; gap:8px; justify-content:flex-end; }
.analytics-stat-grid-ui .metric { min-height:110px; }
.analytics-insight-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
.analytics-insight-card { display:flex; align-items:center; gap:12px; padding:14px; min-width:0; }
.analytics-insight-card.empty { opacity:.75; }
.analytics-insight-icon { width:44px; height:44px; border-radius:16px; display:grid; place-items:center; color:#2C5C71; background:linear-gradient(135deg,#eef6f8,#ffffff); border:1px solid rgba(44,92,113,.12); flex:0 0 auto; }
.analytics-insight-icon svg { width:21px; height:21px; }
.analytics-insight-card div:last-child { display:grid; gap:3px; min-width:0; }
.analytics-insight-card span { color:var(--muted); font-size:11px; font-weight:600; text-transform:uppercase; letter-spacing:.06em; }
.analytics-insight-card b { color:var(--text); font-size:14px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.analytics-insight-card small { color:var(--muted); font-size:12px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.analytics-table-card-ui { display:grid; gap:14px; padding:16px; }
.analytics-table-head { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.analytics-table-head .section-title h2 { margin:0; }
.analytics-table-meta { color:var(--muted); font-size:12px; font-weight:600; padding-top:4px; }
.analytics-controls { display:grid; grid-template-columns:minmax(260px,1.7fr) repeat(3,minmax(150px,.7fr)); gap:10px; align-items:end; }
.analytics-control { display:grid; gap:5px; min-width:0; }
.analytics-control > span:not(.icon) { font-size:11px; font-weight:600; text-transform:uppercase; letter-spacing:.06em; color:var(--muted); }
.analytics-control.search-wrap { display:flex; align-items:center; gap:8px; padding:0 11px; border:1px solid var(--line); border-radius:14px; background:var(--surface); }
.analytics-control.search-wrap .input { border:0; background:transparent; padding-left:0; }
.analytics-control.search-wrap svg { width:17px; height:17px; color:var(--muted); flex:0 0 auto; }
.analytics-note { display:flex; align-items:center; gap:8px; padding:10px 12px; border-radius:14px; font-size:13px; font-weight:600; border:1px solid var(--line); }
.analytics-note.ok { color:#166534; background:#ecfdf3; border-color:#bbf7d0; }
.analytics-note.warn { color:#92400e; background:#fffbeb; border-color:#fde68a; }
.analytics-note svg { width:17px; height:17px; }
.analytics-table-wrap { display:grid; gap:8px; overflow:auto; }
.analytics-row { display:grid; grid-template-columns:minmax(220px,1.55fr) minmax(130px,.85fr) minmax(110px,.65fr) minmax(140px,.8fr) minmax(150px,.9fr) minmax(150px,.9fr); gap:10px; align-items:center; padding:12px; border:1px solid var(--line); border-radius:18px; background:var(--surface); box-shadow:var(--shadow-xs); min-width:920px; }
.analytics-row-head { padding:8px 12px; border:0; box-shadow:none; background:transparent; color:var(--muted); font-size:11px; font-weight:600; text-transform:uppercase; letter-spacing:.06em; }
.analytics-row > div { min-width:0; display:grid; gap:3px; }
.analytics-row span { color:var(--muted); font-size:11px; font-weight:600; text-transform:uppercase; letter-spacing:.04em; }
.analytics-row b { color:var(--text); font-size:13px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.analytics-row small { color:var(--muted); font-size:11px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.analytics-media-cell { display:flex !important; align-items:center; gap:10px; }
.analytics-media-cell > span { width:40px; height:40px; border-radius:14px; display:grid; place-items:center; background:#eef6f8; color:#2C5C71; flex:0 0 auto; }
.analytics-media-cell > span svg { width:20px; height:20px; }
.analytics-status-pill { width:max-content; max-width:100%; padding:5px 9px; border-radius:999px; font-size:12px !important; line-height:1.1; }
.analytics-status-pill.live { background:#dcfce7; color:#166534; }
.analytics-status-pill.shown { background:#e0f2fe; color:#075985; }
.analytics-status-pill.never { background:#f1f5f9; color:#64748b; }
.analytics-bar { width:100%; height:7px; border-radius:999px; overflow:hidden; background:#e2e8f0; margin-top:2px; }
.analytics-bar i { display:block; height:100%; border-radius:inherit; background:linear-gradient(90deg,#2C5C71,#68a1b7); min-width:4px; }
.analytics-empty { min-width:0; }
@media (max-width: 1180px) {
  .analytics-hero-ui { grid-template-columns:1fr; }
  .analytics-hero-actions { justify-content:flex-start; }
  .analytics-insight-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .analytics-controls { grid-template-columns:1fr 1fr; }
}
@media (max-width: 760px) {
  .analytics-insight-grid { grid-template-columns:1fr; }
  .analytics-controls { grid-template-columns:1fr; }
  .analytics-row { min-width:0; grid-template-columns:1fr; }
  .analytics-row-head { display:none; }
}


.smart-slide-grid { align-items: stretch; }
.smart-slide-card {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  gap: 16px;
  align-items: center;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(44, 92, 113, .16);
  background: linear-gradient(135deg, rgba(44,92,113,.08), rgba(255,255,255,.96));
}
.smart-slide-card::after {
  content: '';
  position: absolute;
  inset: auto -30px -45px auto;
  width: 140px;
  height: 140px;
  border-radius: 999px;
  background: rgba(44,92,113,.08);
}
.smart-slide-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #2C5C71, #3f7c95);
  box-shadow: 0 14px 30px rgba(44,92,113,.2);
}
.smart-slide-icon .icon { width: 30px; height: 30px; }
.smart-slide-card h3 { margin: 0 0 4px; font-size: 1.05rem; }
.smart-slide-card p { margin: 0; color: var(--muted, #64748b); line-height: 1.45; }
.smart-form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, .95fr);
  gap: 18px;
  align-items: stretch;
}
.smart-form-fields { display: grid; gap: 12px; align-content: start; }
.compact-color-grid .form-row { gap: 6px; }
.qr-slide-admin-preview,
.dashboard-slide-admin-preview {
  min-height: 440px;
  border-radius: 26px;
  border: 1px solid rgba(15,23,42,.1);
  background: #f8fafc;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 18px;
}
.qr-preview-card {
  width: 100%;
  max-width: 420px;
  min-height: 390px;
  border-radius: 28px;
  background: linear-gradient(145deg, #fff, color-mix(in srgb, var(--qr-accent, #2C5C71) 8%, #ffffff));
  border: 1px solid color-mix(in srgb, var(--qr-accent, #2C5C71) 24%, transparent);
  box-shadow: 0 24px 70px rgba(15,23,42,.12);
  padding: 26px;
  display: grid;
  gap: 14px;
  text-align: center;
}
.qr-preview-badge {
  justify-self: center;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  border-radius: 999px;
  padding: 8px 12px;
  background: color-mix(in srgb, var(--qr-accent, #2C5C71) 12%, #ffffff);
  color: var(--qr-accent, #2C5C71);
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .08em;
}
.qr-preview-card h3 { margin: 0; font-size: 1.6rem; color: #0f172a; }
.qr-preview-card p { margin: 0; color: #334155; font-size: 1rem; }
.qr-preview-card small { color: #64748b; overflow-wrap: anywhere; }
.qr-preview-image {
  width: 180px;
  height: 180px;
  margin: 2px auto;
  border-radius: 22px;
  background: #fff;
  display: grid;
  place-items: center;
  padding: 12px;
  box-shadow: inset 0 0 0 1px rgba(15,23,42,.08), 0 16px 34px rgba(15,23,42,.1);
}
.qr-preview-image img { width: 100%; height: 100%; object-fit: contain; }
.dashboard-preview-card {
  width: 100%;
  border-radius: 26px;
  background: #0f172a;
  color: #f8fafc;
  box-shadow: 0 24px 70px rgba(15,23,42,.16);
  padding: 16px;
  display: grid;
  gap: 12px;
}
.dashboard-preview-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  font-size: .82rem;
  color: #cbd5e1;
}
.dashboard-preview-top span { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: #fff; }
.dashboard-preview-screen {
  overflow: hidden;
  min-height: 300px;
  border-radius: 20px;
  background: #e2e8f0;
  border: 1px solid rgba(255,255,255,.15);
}
.fake-browser-bar {
  height: 38px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  background: #f8fafc;
  color: #475569;
  font-size: .75rem;
}
.fake-browser-bar i { width: 9px; height: 9px; border-radius: 999px; background: #94a3b8; }
.fake-browser-bar span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fake-dashboard-canvas {
  height: 262px;
  padding: 22px;
  background: linear-gradient(135deg, #f8fafc, #dbeafe);
  color: #0f172a;
  transform: scale(var(--fake-zoom, 1));
  transform-origin: top left;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  grid-auto-rows: minmax(54px, auto);
  gap: 12px;
}
.fake-dashboard-canvas strong { font-size: 1.3rem; }
.fake-dashboard-canvas span { color: #475569; }
.fake-dashboard-canvas div { border-radius: 16px; background: rgba(44,92,113,.16); }
.asset-qr-preview,
.asset-dashboard-preview {
  height: 100%;
  min-height: 150px;
  display: grid;
  place-items: center;
  text-align: center;
  gap: 8px;
  padding: 14px;
  background: linear-gradient(135deg, rgba(44,92,113,.08), rgba(255,255,255,.95));
}
.asset-qr-preview img {
  width: 84px;
  height: 84px;
  padding: 8px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(15,23,42,.1);
}
.asset-qr-preview b,
.asset-dashboard-preview b { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.asset-qr-preview small,
.asset-dashboard-preview small { max-width: 100%; color: var(--muted, #64748b); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.asset-dashboard-preview .icon { width: 42px; height: 42px; color: #2C5C71; }
.asset-dashboard-preview span { font-size: .75rem; color: #475569; font-weight: 600; }
@media (max-width: 1000px) {
  .smart-form-layout,
  .smart-slide-card { grid-template-columns: 1fr; }
  .smart-slide-card .btn { justify-self: start; }
}


.smart-slide-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.smart-designer-head h2 { display:flex; align-items:center; gap:10px; color:#21485A; }
.smart-designer-layout { grid-template-columns: minmax(420px, 1fr) minmax(420px, .95fr); }
.smart-slide-admin-preview {
  min-height: 560px;
  border-radius: 28px;
  border: 1px solid rgba(15,23,42,.10);
  background: linear-gradient(135deg, #f8fafc, #e8f1f4);
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 18px;
}
.smart-admin-slide {
  position: relative;
  width: 100%;
  min-height: 500px;
  overflow: hidden;
  border-radius: 30px;
  background: var(--smart-bg, #0f172a);
  color: var(--smart-text, #ffffff);
  box-shadow: 0 28px 80px rgba(15,23,42,.18);
  padding: 32px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  isolation: isolate;
}
.smart-admin-slide.layout-split,
.smart-admin-slide.layout-image-left,
.smart-admin-slide.layout-image-right { grid-template-columns: minmax(0, 1.15fr) minmax(220px, .85fr); align-items:center; }
.smart-admin-slide.layout-image-left .smart-admin-image { grid-column: 1; grid-row: 1; }
.smart-admin-slide.layout-image-left .smart-admin-content { grid-column: 2; grid-row: 1; }
.smart-admin-slide.layout-notice { place-items:center; text-align:center; }
.smart-admin-slide.layout-metric,
.smart-admin-slide.layout-countdown { place-items:center; text-align:center; }
.smart-admin-bg-glow {
  position:absolute; inset:-25%; z-index:-1;
  background: radial-gradient(circle at 85% 12%, color-mix(in srgb, var(--smart-accent, #2C5C71) 48%, transparent), transparent 34%), radial-gradient(circle at 10% 90%, rgba(255,255,255,.16), transparent 30%);
}
.smart-admin-content { align-self:center; display:grid; gap:12px; min-width:0; transform:scale(var(--smart-scale, 1)); transform-origin:center left; }
.smart-admin-slide.layout-notice .smart-admin-content,
.smart-admin-slide.layout-metric .smart-admin-content,
.smart-admin-slide.layout-countdown .smart-admin-content { transform-origin:center; }
.smart-admin-badge { width:max-content; max-width:100%; padding:8px 13px; border-radius:999px; background:color-mix(in srgb, var(--smart-accent, #2C5C71) 88%, #ffffff); color:#fff; font-weight:600; letter-spacing:.1em; font-size:.76rem; text-transform:uppercase; }
.smart-admin-slide.layout-notice .smart-admin-badge,
.smart-admin-slide.layout-metric .smart-admin-badge,
.smart-admin-slide.layout-countdown .smart-admin-badge { justify-self:center; }
.smart-admin-slide h1 { margin:0; font-size:clamp(2rem, 4.8vw, 4.7rem); line-height:.96; letter-spacing:-.06em; max-width:100%; }
.smart-admin-slide h2 { margin:0; font-size:clamp(1.05rem, 2vw, 1.8rem); opacity:.88; font-weight:600; }
.smart-admin-slide p { margin:0; font-size:clamp(1rem, 1.8vw, 1.45rem); line-height:1.24; font-weight:650; white-space:pre-line; opacity:.92; }
.smart-admin-image { align-self:stretch; min-height:240px; border-radius:26px; overflow:hidden; background:rgba(255,255,255,.14); border:1px solid rgba(255,255,255,.18); display:grid; place-items:center; }
.smart-admin-image img { width:100%; height:100%; object-fit:cover; }
.smart-admin-qr { position:absolute; right:24px; bottom:24px; width:126px; padding:10px; border-radius:20px; display:grid; gap:7px; place-items:center; background:rgba(255,255,255,.96); color:#0f172a; box-shadow:0 16px 38px rgba(15,23,42,.22); text-align:center; }
.smart-admin-qr img { width:88px; height:88px; object-fit:contain; }
.smart-admin-qr span { font-size:.68rem; font-weight:600; }
.smart-admin-metric { width:max-content; min-width:180px; margin-top:4px; padding:14px 18px; border-radius:22px; background:rgba(255,255,255,.16); border:1px solid rgba(255,255,255,.18); display:grid; gap:2px; }
.smart-admin-slide.layout-metric .smart-admin-metric { justify-self:center; }
.smart-admin-metric span { font-size:.75rem; text-transform:uppercase; letter-spacing:.1em; opacity:.8; font-weight:600; }
.smart-admin-metric b { font-size:clamp(1.8rem, 4vw, 3.8rem); letter-spacing:-.07em; }
.smart-admin-countdown { width:max-content; justify-self:start; padding:12px 18px; border-radius:999px; background:rgba(255,255,255,.18); font-weight:600; font-size:clamp(1rem, 2vw, 1.8rem); }
.smart-admin-slide.layout-countdown .smart-admin-countdown { justify-self:center; }
.smart-admin-expiry { position:absolute; left:24px; bottom:24px; padding:8px 12px; border-radius:999px; background:rgba(15,23,42,.45); color:rgba(255,255,255,.86); font-weight:600; font-size:.78rem; }
.asset-smart-preview { position:relative; height:100%; min-height:150px; overflow:hidden; display:grid; place-items:center; gap:8px; text-align:center; padding:14px; background:var(--smart-bg, #0f172a); color:var(--smart-text, #fff); }
.asset-smart-preview::before { content:''; position:absolute; inset:-40%; background:radial-gradient(circle at 80% 10%, color-mix(in srgb, var(--smart-accent, #2C5C71) 55%, transparent), transparent 34%); opacity:.9; }
.asset-smart-preview > * { position:relative; z-index:1; }
.asset-smart-preview img { width:72px; height:72px; border-radius:18px; object-fit:cover; border:2px solid rgba(255,255,255,.28); }
.smart-preview-icon { width:58px; height:58px; display:grid; place-items:center; border-radius:18px; background:rgba(255,255,255,.16); }
.smart-preview-icon .icon { width:30px; height:30px; }
.asset-smart-preview div { max-width:100%; display:grid; gap:4px; }
.asset-smart-preview small { text-transform:uppercase; font-size:.66rem; letter-spacing:.08em; font-weight:600; opacity:.78; }
.asset-smart-preview b { max-width:100%; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; font-size:.98rem; }
.asset-smart-preview em { max-width:100%; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; font-style:normal; font-size:.78rem; opacity:.82; }
.smart-preview-qr { position:absolute; right:9px; top:9px; width:30px; height:30px; display:grid; place-items:center; border-radius:10px; background:rgba(255,255,255,.92); color:#0f172a; }
.smart-expired-pill { position:absolute; left:9px; top:9px; padding:4px 8px; border-radius:999px; background:#fee2e2; color:#991b1b; font-size:.66rem; text-transform:uppercase; letter-spacing:.08em; }
.asset-expired-text { color:#b91c1c !important; font-weight:600; }
.smart-qr-toggle { margin-top:4px; }
@media (max-width: 1200px) { .smart-slide-grid { grid-template-columns:1fr; } .smart-designer-layout { grid-template-columns:1fr; } }
@media (max-width: 760px) { .smart-admin-slide.layout-split, .smart-admin-slide.layout-image-left, .smart-admin-slide.layout-image-right { grid-template-columns:1fr; } .smart-admin-qr, .smart-admin-expiry { position:static; justify-self:start; } }


body:not(.tv-body) .smart-slide-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  align-items: stretch !important;
  gap: 18px !important;
}
body:not(.tv-body) .smart-slide-card {
  height: 100% !important;
  min-height: 210px !important;
  display: grid !important;
  grid-template-columns: 58px minmax(0, 1fr) !important;
  grid-template-rows: auto 1fr auto !important;
  align-items: start !important;
  gap: 14px 16px !important;
  padding: 18px !important;
}
body:not(.tv-body) .smart-slide-card .smart-slide-icon {
  grid-column: 1;
  grid-row: 1 / span 2;
}
body:not(.tv-body) .smart-slide-card > div:not(.smart-slide-icon) {
  grid-column: 2;
  min-width: 0;
  align-self: stretch;
}
body:not(.tv-body) .smart-slide-card h3 {
  min-height: 1.35em;
  line-height: 1.25;
}
body:not(.tv-body) .smart-slide-card p {
  min-height: 4.4em;
}
body:not(.tv-body) .smart-slide-card .btn {
  grid-column: 1 / -1;
  grid-row: 3;
  justify-self: start;
  align-self: end;
  margin-top: 4px;
  z-index: 1;
}
@media (max-width: 1200px) {
  body:not(.tv-body) .smart-slide-grid { grid-template-columns: 1fr !important; }
  body:not(.tv-body) .smart-slide-card { min-height: 170px !important; }
  body:not(.tv-body) .smart-slide-card p { min-height: auto; }
}
@media (max-width: 640px) {
  body:not(.tv-body) .smart-slide-card {
    grid-template-columns: 1fr !important;
  }
  body:not(.tv-body) .smart-slide-card .smart-slide-icon,
  body:not(.tv-body) .smart-slide-card > div:not(.smart-slide-icon),
  body:not(.tv-body) .smart-slide-card .btn {
    grid-column: 1 !important;
    grid-row: auto !important;
  }
}


body:not(.tv-body) .smart-designer-modern-head {
  align-items: flex-start;
  border-bottom: 1px solid rgba(44,92,113,.12);
  padding-bottom: 14px;
}
body:not(.tv-body) .smart-designer-modern-head p {
  margin: 5px 0 0;
  color: var(--muted, #64748b);
  font-weight: 700;
}
body:not(.tv-body) .advanced-smart-designer-layout {
  grid-template-columns: minmax(430px, 1fr) minmax(430px, .92fr) !important;
  gap: 20px;
  align-items: start;
}
body:not(.tv-body) .smart-designer-scroll-fields {
  max-height: min(74vh, 790px);
  overflow-y: auto;
  padding-right: 6px;
  align-content: start;
}
body:not(.tv-body) .smart-editor-section {
  border: 1px solid rgba(44,92,113,.13);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.92));
  box-shadow: 0 14px 34px rgba(15,23,42,.055);
  padding: 15px;
  display: grid;
  gap: 13px;
}
body:not(.tv-body) .smart-section-title {
  display: flex;
  align-items: center;
  gap: 11px;
}
body:not(.tv-body) .smart-section-title > span {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #2C5C71, #3E7890);
  box-shadow: 0 12px 25px rgba(44,92,113,.16);
}
body:not(.tv-body) .smart-section-title b { color: #16394a; font-size: .98rem; }
body:not(.tv-body) .smart-section-title small { display: block; color: var(--muted, #64748b); font-weight: 700; font-size: .78rem; margin-top: 1px; }
body:not(.tv-body) .smart-big-title-input { font-size: 1.05rem; font-weight: 600; }
body:not(.tv-body) .smart-rich-editor-shell {
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15,23,42,.045);
}
body:not(.tv-body) .smart-rich-toolbar {
  background: linear-gradient(180deg, #f8fafc, #eef6f8);
  border-bottom: 1px solid rgba(44,92,113,.12);
  padding: 8px;
}
body:not(.tv-body) .smart-rich-toolbar button { min-height: 30px; }
body:not(.tv-body) .smart-message-rich-editor {
  min-height: 150px;
  max-height: 280px;
  font-size: 1rem;
  line-height: 1.45;
}
body:not(.tv-body) .smart-image-picker {
  display: grid;
  gap: 10px;
}
body:not(.tv-body) .smart-image-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
}
body:not(.tv-body) .smart-upload-btn {
  cursor: pointer;
  border: 1px dashed rgba(44,92,113,.35) !important;
  background: rgba(44,92,113,.07) !important;
  color: #21485A !important;
}
body:not(.tv-body) .smart-upload-status {
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid rgba(15,23,42,.07);
  color: var(--muted, #64748b);
  padding: 9px 11px;
  font-size: .78rem;
  font-weight: 600;
}
body:not(.tv-body) .smart-colour-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
body:not(.tv-body) .smart-quick-date-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
body:not(.tv-body) .smart-qr-panel {
  background: linear-gradient(135deg, rgba(15,23,42,.035), rgba(44,92,113,.08));
}
body:not(.tv-body) .smart-qr-switch {
  margin: 0;
}
body:not(.tv-body) .smart-qr-fields {
  opacity: .45;
  pointer-events: none;
  transition: opacity .18s ease;
}
body:not(.tv-body) .smart-qr-panel.qr-enabled .smart-qr-fields {
  opacity: 1;
  pointer-events: auto;
}
body:not(.tv-body) .smart-preview-panel {
  position: sticky;
  top: 12px;
  display: grid;
  gap: 10px;
}
body:not(.tv-body) .smart-preview-toolbar {
  margin: 0;
  padding: 0 2px;
}
body:not(.tv-body) .smart-slide-admin-preview {
  aspect-ratio: 16 / 9;
  min-height: 0 !important;
  height: auto !important;
  width: 100%;
  padding: 12px !important;
  border-radius: 24px;
}
body:not(.tv-body) .smart-admin-slide {
  aspect-ratio: 16 / 9;
  min-height: 0 !important;
  height: auto !important;
  padding: clamp(20px, 3.1vw, 34px) !important;
  border-radius: 24px;
  max-width: 100%;
  max-height: 100%;
}
body:not(.tv-body) .smart-admin-slide.safe-compact { padding: clamp(16px, 2.4vw, 28px) !important; }
body:not(.tv-body) .smart-admin-slide.safe-safe { padding: clamp(28px, 4.2vw, 44px) !important; }
body:not(.tv-body) .smart-admin-slide.has-qr { padding-bottom: clamp(72px, 9vw, 110px) !important; }
body:not(.tv-body) .smart-admin-content {
  transform: scale(min(var(--smart-scale, 1), 1.25));
  max-width: calc(100% / min(var(--smart-scale, 1), 1.25));
}
body:not(.tv-body) .smart-admin-slide h1 {
  font-size: clamp(1.75rem, 4vw, 4rem) !important;
  overflow-wrap: anywhere;
}
body:not(.tv-body) .smart-admin-message {
  margin: 0;
  font-size: clamp(.98rem, 1.7vw, 1.38rem);
  line-height: 1.22;
  font-weight: 650;
  opacity: .93;
  max-height: 11em;
  overflow: hidden;
}
body:not(.tv-body) .smart-admin-message p,
body:not(.tv-body) .smart-admin-message div { margin: .18em 0; }
body:not(.tv-body) .smart-admin-message ul,
body:not(.tv-body) .smart-admin-message ol { margin: .25em 0 .25em 1.25em; padding-left: 1em; text-align: left; }
body:not(.tv-body) .smart-admin-image { min-height: 0 !important; height: 100%; }
body:not(.tv-body) .smart-admin-slide.image-fit-contain .smart-admin-image img { object-fit: contain; background: rgba(255,255,255,.09); }
body:not(.tv-body) .smart-admin-slide.image-fit-logo .smart-admin-image { background: rgba(255,255,255,.92); padding: 16px; }
body:not(.tv-body) .smart-admin-slide.image-fit-logo .smart-admin-image img { object-fit: contain; }
body:not(.tv-body) .smart-admin-qr {
  width: clamp(92px, 11vw, 126px);
  right: clamp(14px, 2.2vw, 24px);
  bottom: clamp(14px, 2.2vw, 24px);
}
body:not(.tv-body) .smart-admin-qr img { width: min(82px, 100%); height: auto; }
body:not(.tv-body) .smart-designer-actions {
  border-top: 1px solid rgba(44,92,113,.12);
  padding-top: 12px;
  margin-top: 12px;
}
@media (max-width: 1200px) {
  body:not(.tv-body) .advanced-smart-designer-layout { grid-template-columns: 1fr !important; }
  body:not(.tv-body) .smart-preview-panel { position: static; }
  body:not(.tv-body) .smart-designer-scroll-fields { max-height: none; overflow: visible; }
}
@media (max-width: 760px) {
  body:not(.tv-body) .smart-colour-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


body:not(.tv-body) .smart-designer-ui-head {
  border-bottom: 1px solid rgba(44,92,113,.12);
  padding-bottom: 14px;
}
body:not(.tv-body) .smart-ui-layout {
  grid-template-columns: minmax(390px, .82fr) minmax(560px, 1.18fr) !important;
  gap: 18px !important;
  align-items: start !important;
}
body:not(.tv-body) .smart-ui-fields {
  max-height: min(78vh, 860px);
  overflow: auto;
  padding-right: 4px;
}
body:not(.tv-body) .smart-ui-preview-panel {
  position: sticky;
  top: 14px;
  display: grid;
  gap: 10px;
  align-self: start;
}
body:not(.tv-body) .smart-preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
body:not(.tv-body) .smart-preview-help {
  padding: 9px 11px;
  border-radius: 14px;
  background: rgba(44,92,113,.07);
  color: #536878;
  font-size: 12px;
  font-weight: 600;
}
body:not(.tv-body) .smart-ui-canvas-wrap {
  min-height: auto !important;
  padding: 14px !important;
  background: linear-gradient(135deg, #f8fafc, #dfecef) !important;
  aspect-ratio: 16 / 9;
  width: 100%;
}
body:not(.tv-body) .smart-admin-slide.smart-render-canvas {
  position: relative !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  aspect-ratio: 16 / 9 !important;
  display: block !important;
  padding: 0 !important;
  overflow: hidden !important;
  border-radius: 24px !important;
  background: var(--smart-bg, #0f172a) !important;
  color: var(--smart-text, #fff) !important;
  box-shadow: 0 22px 60px rgba(15,23,42,.20) !important;
  isolation: isolate;
}
.smart-render-bg-glow {
  position: absolute;
  inset: -20%;
  z-index: 0;
  background:
    radial-gradient(circle at 82% 10%, color-mix(in srgb, var(--smart-accent, #2C5C71) 50%, transparent), transparent 34%),
    radial-gradient(circle at 12% 92%, rgba(255,255,255,.14), transparent 32%);
  pointer-events: none;
}
.smart-render-bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .38;
  z-index: 0;
  filter: saturate(1.05) contrast(1.05);
}
.smart-render-safe-guide {
  position: absolute;
  inset: 4%;
  border: 1px dashed rgba(255,255,255,.28);
  border-radius: 18px;
  pointer-events: none;
  z-index: 1;
}
.smart-admin-slide.safe-compact .smart-render-safe-guide { inset: 2.5%; }
.smart-admin-slide.safe-safe .smart-render-safe-guide { inset: 6%; }
.smart-design-item {
  position: absolute;
  z-index: 2;
  min-width: 24px;
  min-height: 18px;
  box-sizing: border-box;
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: grab;
  touch-action: none;
}
.smart-design-item.active,
.smart-design-item:hover {
  border-color: rgba(255,255,255,.62);
  box-shadow: 0 0 0 2px rgba(44,92,113,.35), 0 12px 28px rgba(0,0,0,.16);
}
.smart-design-item:active { cursor: grabbing; }
.smart-design-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  color: var(--smart-text, #fff);
  font-size: calc(16px * var(--smart-scale, 1));
}
.smart-item-badge .smart-design-inner {
  width: max-content;
  max-width: 100%;
  height: auto;
  min-height: 100%;
  padding: .52em .85em;
  border-radius: 999px;
  background: color-mix(in srgb, var(--smart-accent, #2C5C71) 88%, #ffffff);
  color: #fff;
  font-weight: 600;
  letter-spacing: .11em;
  text-transform: uppercase;
  font-size: calc(12px * var(--smart-scale, 1));
}
.smart-item-title .smart-design-inner {
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: .95;
  font-size: calc(52px * var(--smart-scale, 1));
}
.smart-item-subtitle .smart-design-inner {
  font-weight: 600;
  line-height: 1.08;
  opacity: .94;
  font-size: calc(25px * var(--smart-scale, 1));
}
.smart-item-message .smart-design-inner {
  display: block;
  line-height: 1.2;
  font-weight: 650;
  font-size: calc(20px * var(--smart-scale, 1));
  padding: 2px;
}
.smart-item-message p,
.smart-item-message div { margin: 0 0 .25em; }
.smart-item-message ul,
.smart-item-message ol { margin: 0; padding-left: 1.3em; }
.smart-item-image {
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.18);
}
.smart-item-image .smart-design-inner { display: grid; place-items: center; }
.smart-item-image img { width: 100%; height: 100%; object-fit: cover; }
.smart-admin-slide.image-fit-contain .smart-item-image img { object-fit: contain; padding: 10px; }
.smart-admin-slide.image-fit-logo .smart-item-image img { object-fit: contain; padding: 16px; }
.smart-item-countdown .smart-design-inner {
  width: max-content;
  max-width: 100%;
  height: auto;
  min-height: 100%;
  padding: .45em .8em;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  color: #fff;
  font-weight: 600;
  font-size: calc(26px * var(--smart-scale, 1));
}
.smart-item-qr {
  background: rgba(255,255,255,.97);
  color: #0f172a;
  border-radius: 20px;
  box-shadow: 0 16px 42px rgba(15,23,42,.24);
}
.smart-item-qr .smart-design-inner {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  justify-items: center;
  align-items: center;
  gap: 5px;
  padding: 8px;
  color: #0f172a;
}
.smart-qr-square {
  width: min(100%, 22vh);
  max-width: 100%;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  background: #fff;
  border-radius: 6px;
}
.smart-qr-square img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.smart-item-qr span {
  color: #0f172a;
  font-weight: 600;
  font-size: calc(12px * var(--smart-scale, 1));
  text-align: center;
  line-height: 1.1;
}
.smart-resize-handle {
  position: absolute;
  right: -7px;
  bottom: -7px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #ffffff;
  border: 2px solid #2C5C71;
  box-shadow: 0 4px 12px rgba(15,23,42,.25);
  cursor: nwse-resize;
  opacity: 0;
}
.smart-design-item.active .smart-resize-handle,
.smart-design-item:hover .smart-resize-handle { opacity: 1; }
.smart-editor-colour-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  padding: 0 9px;
  border: 1px solid rgba(44,92,113,.16);
  border-radius: 10px;
  background: #fff;
  color: #21485A;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.smart-editor-colour-btn span { display: inline-flex; align-items: center; gap: 6px; }
.smart-editor-colour-btn input { width: 24px; height: 24px; padding: 0; border: 0; background: transparent; }
body:not(.tv-body) .smart-admin-expiry {
  z-index: 5;
  left: auto !important;
  right: 12px;
  bottom: 10px;
}
@media (max-width: 1280px) {
  body:not(.tv-body) .smart-ui-layout { grid-template-columns: 1fr !important; }
  body:not(.tv-body) .smart-ui-preview-panel { position: static; }
}
@media (max-width: 760px) {
  .smart-item-title .smart-design-inner { font-size: calc(34px * var(--smart-scale, 1)); }
  .smart-item-subtitle .smart-design-inner { font-size: calc(18px * var(--smart-scale, 1)); }
  .smart-item-message .smart-design-inner { font-size: calc(15px * var(--smart-scale, 1)); }
}


body:not(.tv-body) .smart-colour-grid-ui {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}
body:not(.tv-body) .smart-time-picker-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}
body:not(.tv-body) .smart-preview-toolbar small::after {
  content: '  • 8 resize handles • centre snapping';
}
.smart-design-item {
  container-type: size;
  outline: 0 solid transparent;
}
.smart-design-item.active,
.smart-design-item:hover {
  outline: 1px dashed rgba(255,255,255,.58);
  outline-offset: 2px;
}
.smart-design-inner {
  align-items: center !important;
  overflow: hidden !important;
}
.smart-item-title .smart-design-inner {
  font-size: clamp(16px, min(70cqh, 9cqw), 96px) !important;
  line-height: .94 !important;
  text-wrap: balance;
}
.smart-item-subtitle .smart-design-inner {
  font-size: clamp(11px, min(56cqh, 6.2cqw), 56px) !important;
  line-height: 1.05 !important;
  text-wrap: balance;
}
.smart-item-message .smart-design-inner {
  font-size: clamp(9px, min(28cqh, 4.7cqw), 42px) !important;
  line-height: 1.18 !important;
}
.smart-item-badge .smart-design-inner {
  font-size: clamp(8px, min(45cqh, 5.4cqw), 26px) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.smart-item-countdown .smart-design-inner {
  font-size: clamp(10px, min(52cqh, 7cqw), 58px) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.smart-admin-slide.image-role-floating .smart-item-image,
.smart-admin-slide.image-role-left .smart-item-image,
.smart-admin-slide.image-role-right .smart-item-image {
  background: rgba(255,255,255,.08) !important;
}
.smart-admin-slide.image-role-floating .smart-item-image img,
.smart-admin-slide.image-role-left .smart-item-image img,
.smart-admin-slide.image-role-right .smart-item-image img,
.smart-admin-slide.image-fit-contain .smart-item-image img,
.smart-admin-slide.image-fit-logo .smart-item-image img {
  object-fit: contain !important;
  padding: 0 !important;
}
.smart-item-image .smart-design-inner {
  display: grid !important;
  place-items: center !important;
}
.smart-item-image img {
  width: 100% !important;
  height: 100% !important;
  object-position: center center !important;
}
.smart-item-qr {
  overflow: hidden !important;
}
.smart-item-qr .smart-design-inner {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: min(7cqh, 8px) !important;
  padding: min(8cqh, 12px) !important;
  text-align: center !important;
}
.smart-qr-square {
  width: min(84cqw, 68cqh) !important;
  height: min(84cqw, 68cqh) !important;
  max-width: 100% !important;
  max-height: 100% !important;
  margin: 0 auto !important;
}
.smart-item-qr span {
  font-size: clamp(7px, min(11cqh, 5cqw), 18px) !important;
  width: 100%;
  text-align: center !important;
}
.smart-resize-handle {
  position: absolute;
  width: 15px;
  height: 15px;
  border-radius: 999px;
  background: #fff;
  border: 2px solid #2C5C71;
  box-shadow: 0 4px 12px rgba(15,23,42,.28);
  opacity: 0;
  z-index: 5;
}
.smart-design-item.active .smart-resize-handle,
.smart-design-item:hover .smart-resize-handle { opacity: 1; }
.smart-resize-handle.handle-nw { left: -8px; top: -8px; cursor: nwse-resize; }
.smart-resize-handle.handle-n { left: 50%; top: -8px; transform: translateX(-50%); cursor: ns-resize; }
.smart-resize-handle.handle-ne { right: -8px; top: -8px; cursor: nesw-resize; }
.smart-resize-handle.handle-e { right: -8px; top: 50%; transform: translateY(-50%); cursor: ew-resize; }
.smart-resize-handle.handle-se { right: -8px; bottom: -8px; cursor: nwse-resize; }
.smart-resize-handle.handle-s { left: 50%; bottom: -8px; transform: translateX(-50%); cursor: ns-resize; }
.smart-resize-handle.handle-sw { left: -8px; bottom: -8px; cursor: nesw-resize; }
.smart-resize-handle.handle-w { left: -8px; top: 50%; transform: translateY(-50%); cursor: ew-resize; }
@media (max-width: 760px) {
  body:not(.tv-body) .smart-colour-grid-ui { grid-template-columns: 1fr !important; }
}


body:not(.tv-body) .smart-designer-ui-head {
  background: linear-gradient(135deg, #0f2d3a, #183d50 48%, #2C5C71);
  color: #fff;
  border-radius: 22px 22px 0 0;
  padding: 18px 22px;
}
body:not(.tv-body) .smart-designer-ui-head p { color: rgba(255,255,255,.82) !important; }
body:not(.tv-body) .smart-ui-fields {
  gap: 14px;
}
body:not(.tv-body) .smart-editor-section {
  border-radius: 20px;
  border: 1px solid rgba(44,92,113,.12);
  box-shadow: 0 12px 34px rgba(15,23,42,.05);
}
body:not(.tv-body) .smart-section-mini-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
  color: #12313e;
}
body:not(.tv-body) .smart-section-mini-title .icon { width: 18px; height: 18px; color: #2C5C71; }
body:not(.tv-body) .smart-section-mini-title small {
  display: block;
  margin-left: auto;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}
body:not(.tv-body) .smart-title-style-card {
  padding: 12px;
  border: 1px solid rgba(44,92,113,.13);
  border-radius: 16px;
  background: linear-gradient(180deg, #f8fafc, #ffffff);
  margin: 10px 0 12px;
}
body:not(.tv-body) .smart-title-style-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  align-items: end;
}
body:not(.tv-body) .smart-title-bg-switch {
  min-height: 48px;
  padding: 8px 10px;
  align-self: end;
}
body:not(.tv-body) .smart-image-primary-grid { grid-template-columns: 1fr 1fr !important; }
body:not(.tv-body) .smart-advanced-details {
  margin-top: 10px;
  border: 1px dashed rgba(44,92,113,.24);
  border-radius: 14px;
  padding: 10px 12px;
  background: #f8fafc;
}
body:not(.tv-body) .smart-advanced-details summary {
  cursor: pointer;
  font-weight: 600;
  color: #21485A;
  display: flex;
  align-items: center;
  gap: 8px;
}
body:not(.tv-body) .smart-advanced-details summary .icon { width: 17px; height: 17px; }
body:not(.tv-body) .smart-advanced-details .form-row { margin-top: 10px; }
body:not(.tv-body) .field-hint { color: #64748b; font-size: 12px; margin-top: 5px; display: block; }
body:not(.tv-body) .smart-preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
body:not(.tv-body) .smart-design-item.active,
body:not(.tv-body) .smart-design-item:hover {
  outline: 1.5px dashed rgba(255,255,255,.78);
  outline-offset: 3px;
  box-shadow: 0 0 0 1px rgba(44,92,113,.24);
}
.smart-item-title .smart-design-inner {
  color: var(--smart-title-color, var(--smart-text, #fff)) !important;
  background: var(--smart-title-bg, transparent) !important;
  border-radius: .28em;
  padding: .06em .14em;
  width: fit-content !important;
  max-width: 100% !important;
}
.smart-item-title .smart-design-inner {
  font-size: clamp(16px, calc(min(70cqh, 9cqw) * var(--smart-title-size, 1)), 120px) !important;
}
.smart-item-subtitle .smart-design-inner,
.smart-item-badge .smart-design-inner,
.smart-item-countdown .smart-design-inner {
  width: fit-content !important;
  max-width: 100% !important;
}
.smart-item-message .smart-design-inner { width: 100% !important; max-width: 100% !important; }
.smart-item-image .smart-design-inner {
  width: 100% !important;
  height: 100% !important;
  border-radius: inherit;
  overflow: hidden !important;
}
.smart-admin-slide.image-role-floating .smart-item-image,
.smart-admin-slide.image-role-left .smart-item-image,
.smart-admin-slide.image-role-right .smart-item-image {
  border-radius: 18px;
}
.smart-item-qr {
  border-radius: 18px !important;
  overflow: visible !important;
  aspect-ratio: 1 / 1;
}
.smart-item-qr .smart-design-inner {
  width: 100% !important;
  height: 100% !important;
  box-sizing: border-box !important;
  display: grid !important;
  grid-template-rows: minmax(0, 1fr) auto !important;
  place-items: center !important;
  align-content: center !important;
  justify-content: center !important;
  padding: clamp(6px, 7cqh, 14px) !important;
  gap: clamp(2px, 3cqh, 8px) !important;
}
.smart-qr-square {
  width: min(78cqw, 60cqh) !important;
  height: min(78cqw, 60cqh) !important;
  min-width: 28px;
  min-height: 28px;
  display: grid !important;
  place-items: center !important;
}
.smart-qr-square img {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  object-fit: contain !important;
}
.smart-item-qr span {
  line-height: 1.05 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  display: block !important;
  max-width: 100% !important;
}
@media (max-width: 1060px) {
  body:not(.tv-body) .smart-title-style-grid,
  body:not(.tv-body) .smart-image-primary-grid { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 760px) {
  body:not(.tv-body) .smart-title-style-grid,
  body:not(.tv-body) .smart-image-primary-grid { grid-template-columns: 1fr !important; }
}
.smart-render-canvas.title-font-85 .smart-item-title .smart-design-inner { font-size: clamp(14px, min(60cqh, 7.7cqw), 96px) !important; }
.smart-render-canvas.title-font-100 .smart-item-title .smart-design-inner { font-size: clamp(16px, min(70cqh, 9cqw), 120px) !important; }
.smart-render-canvas.title-font-115 .smart-item-title .smart-design-inner { font-size: clamp(18px, min(78cqh, 10.4cqw), 136px) !important; }
.smart-render-canvas.title-font-130 .smart-item-title .smart-design-inner { font-size: clamp(20px, min(86cqh, 11.7cqw), 150px) !important; }


body:not(.tv-body) .smart-template-grid,
body:not(.tv-body) .smart-image-primary-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
}
body:not(.tv-body) .smart-custom-slide-name-row {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(44,92,113,.12);
  border-radius: 14px;
  background: #f8fafc;
}
body:not(.tv-body) .smart-style-card-clean {
  overflow: hidden;
}
body:not(.tv-body) .smart-style-grid-clean {
  display: grid !important;
  grid-template-columns: minmax(130px, .9fr) minmax(130px, .9fr) minmax(150px, 1fr) minmax(170px, 1.15fr) !important;
  gap: 10px !important;
  align-items: stretch !important;
}
body:not(.tv-body) .smart-style-grid-clean .form-row,
body:not(.tv-body) .smart-style-grid-clean .switch-card {
  min-width: 0;
}
body:not(.tv-body) .smart-font-size-row .input {
  min-height: 40px;
}
body:not(.tv-body) .smart-colour-grid-ui {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(118px, 1fr)) !important;
  gap: 10px !important;
  margin-bottom: 12px;
}
body:not(.tv-body) .smart-color-chip-field {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 42px;
  padding: 9px 10px 9px 12px;
  border: 1px solid rgba(44,92,113,.13);
  border-radius: 14px;
  background: #ffffff;
  color: #12313e;
  font-size: 12px;
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}
body:not(.tv-body) .smart-color-chip-field span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body:not(.tv-body) .smart-color-chip-field input[type="color"],
body:not(.tv-body) .smart-editor-colour-btn input[type="color"] {
  appearance: none;
  -webkit-appearance: none;
  width: 26px !important;
  height: 26px !important;
  min-width: 26px !important;
  padding: 0 !important;
  border: 2px solid #ffffff !important;
  border-radius: 999px !important;
  background: transparent !important;
  box-shadow: 0 0 0 1px rgba(44,92,113,.22), 0 3px 8px rgba(15,23,42,.15);
  cursor: pointer;
  overflow: hidden;
}
body:not(.tv-body) .smart-color-chip-field input[type="color"]::-webkit-color-swatch-wrapper,
body:not(.tv-body) .smart-editor-colour-btn input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; border-radius: 999px; }
body:not(.tv-body) .smart-color-chip-field input[type="color"]::-webkit-color-swatch,
body:not(.tv-body) .smart-editor-colour-btn input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 999px; }
body:not(.tv-body) .smart-color-chip-field input[type="color"]::-moz-color-swatch,
body:not(.tv-body) .smart-editor-colour-btn input[type="color"]::-moz-color-swatch { border: 0; border-radius: 999px; }
body:not(.tv-body) .smart-title-bg-switch {
  min-height: 42px !important;
  height: 100%;
  margin: 0;
}
body:not(.tv-body) .smart-advanced-details { display: none !important; }
.smart-item-badge .smart-design-inner {
  background: color-mix(in srgb, var(--smart-badge-bg, var(--smart-accent, #2C5C71)) 88%, #ffffff) !important;
}
.smart-design-item {
  box-sizing: border-box !important;
}
.smart-design-item.active,
.smart-design-item:hover {
  outline: 1.5px dashed rgba(255,255,255,.88) !important;
  outline-offset: 2px !important;
}
.smart-item-title .smart-design-inner,
.smart-item-subtitle .smart-design-inner,
.smart-item-badge .smart-design-inner,
.smart-item-countdown .smart-design-inner {
  max-width: 100% !important;
  max-height: 100% !important;
}
.smart-item-image,
.smart-item-qr {
  border: 1px solid rgba(255,255,255,.22) !important;
}
.smart-item-image .smart-design-inner,
.smart-item-image img {
  width: 100% !important;
  height: 100% !important;
}
.smart-admin-slide.image-role-floating .smart-item-image img,
.smart-admin-slide.image-role-left .smart-item-image img,
.smart-admin-slide.image-role-right .smart-item-image img,
.smart-admin-slide.image-fit-contain .smart-item-image img,
.smart-admin-slide.image-fit-logo .smart-item-image img {
  object-fit: contain !important;
  object-position: center center !important;
  padding: 0 !important;
}
.smart-item-qr {
  aspect-ratio: auto !important;
  overflow: visible !important;
  background: rgba(255,255,255,.98) !important;
  border-radius: 16px !important;
}
.smart-item-qr .smart-design-inner {
  width: 100% !important;
  height: 100% !important;
  box-sizing: border-box !important;
  display: grid !important;
  grid-template-rows: minmax(0, 1fr) auto !important;
  place-items: center !important;
  align-content: center !important;
  justify-content: center !important;
  padding: clamp(5px, 6cqh, 13px) !important;
  gap: clamp(2px, 3cqh, 7px) !important;
}
.smart-qr-square {
  width: min(82cqw, 66cqh) !important;
  height: min(82cqw, 66cqh) !important;
  max-width: 100% !important;
  max-height: 100% !important;
  margin: 0 auto !important;
  display: grid !important;
  place-items: center !important;
  background: #fff !important;
  border-radius: 6px !important;
}
.smart-qr-square img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  display: block !important;
}
.smart-item-qr span {
  width: 100% !important;
  text-align: center !important;
  line-height: 1.05 !important;
  font-size: clamp(7px, min(10cqh, 4.8cqw), 16px) !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
@media (max-width: 1180px) {
  body:not(.tv-body) .smart-style-grid-clean,
  body:not(.tv-body) .smart-colour-grid-ui { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 720px) {
  body:not(.tv-body) .smart-template-grid,
  body:not(.tv-body) .smart-image-primary-grid,
  body:not(.tv-body) .smart-style-grid-clean,
  body:not(.tv-body) .smart-colour-grid-ui { grid-template-columns: 1fr !important; }
}
body:not(.tv-body) .smart-rich-toolbar button[data-smart-colour] {
  width: 26px !important;
  height: 26px !important;
  min-width: 26px !important;
  padding: 0 !important;
  border-radius: 999px !important;
  font-size: 0 !important;
  background: var(--smart-quick-colour, #fff) !important;
  border: 2px solid #fff !important;
  box-shadow: 0 0 0 1px rgba(44,92,113,.22), 0 3px 8px rgba(15,23,42,.15) !important;
}
body:not(.tv-body) .smart-rich-toolbar button[data-smart-colour="#ffffff"] { --smart-quick-colour: #ffffff; }
body:not(.tv-body) .smart-rich-toolbar button[data-smart-colour="#fbbf24"] { --smart-quick-colour: #fbbf24; }
body:not(.tv-body) .smart-rich-toolbar button[data-smart-colour="#60a5fa"] { --smart-quick-colour: #60a5fa; }
body:not(.tv-body) .smart-rich-toolbar button[data-smart-colour="#22c55e"] { --smart-quick-colour: #22c55e; }
body:not(.tv-body) .smart-rich-toolbar button[data-smart-colour="#ef4444"] { --smart-quick-colour: #ef4444; }


body:not(.tv-body) .smart-designer-ui-form,
body:not(.tv-body) .advanced-smart-designer-form {
  max-width: 100% !important;
  overflow: hidden !important;
}
body:not(.tv-body) .smart-ui-layout,
body:not(.tv-body) .smart-designer-layout {
  width: 100% !important;
  max-width: 100% !important;
  grid-template-columns: minmax(0, 1fr) minmax(420px, .92fr) !important;
  gap: 16px !important;
  align-items: start !important;
  overflow: hidden !important;
}
body:not(.tv-body) .smart-form-fields.smart-ui-fields,
body:not(.tv-body) .smart-designer-scroll-fields {
  min-width: 0 !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
  padding-right: 6px !important;
  box-sizing: border-box !important;
}
body:not(.tv-body) .smart-ui-preview-panel,
body:not(.tv-body) .smart-preview-panel {
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}
body:not(.tv-body) .smart-editor-section {
  min-width: 0 !important;
  box-sizing: border-box !important;
}
body:not(.tv-body) .smart-template-grid,
body:not(.tv-body) .smart-image-primary-grid,
body:not(.tv-body) .smart-colour-grid-ui {
  min-width: 0 !important;
}
body:not(.tv-body) .smart-badge-style-card {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(44,92,113,.12);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  display: grid;
  gap: 12px;
}
body:not(.tv-body) .smart-badge-style-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
body:not(.tv-body) .smart-style-grid-clean {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
}
body:not(.tv-body) .smart-title-bg-switch {
  grid-column: span 2;
  min-height: 46px !important;
}
body:not(.tv-body) .smart-colour-grid-ui {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}
body:not(.tv-body) .smart-color-chip-field {
  height: 46px !important;
  min-height: 46px !important;
  max-height: 46px !important;
  padding: 8px 10px 8px 12px !important;
  border-radius: 13px !important;
  overflow: hidden !important;
}
body:not(.tv-body) .smart-color-chip-field span {
  min-width: 0 !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  line-height: 1.08 !important;
  font-size: 11.5px !important;
}
body:not(.tv-body) .smart-color-chip-field input[type="color"],
body:not(.tv-body) .smart-editor-colour-btn input[type="color"] {
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  border-radius: 50% !important;
}
body:not(.tv-body) .smart-help-tip {
  display: inline-grid;
  place-items: center;
  width: 17px;
  height: 17px;
  margin-left: 4px;
  border-radius: 999px;
  background: rgba(44,92,113,.12);
  color: #2C5C71;
  font-size: 11px;
  font-weight: 600;
  cursor: help;
  vertical-align: middle;
}
body:not(.tv-body) .smart-help-tip:hover {
  background: #2C5C71;
  color: #fff;
}
.smart-item-badge .smart-design-inner,
.tv-smart-slide .smart-item-badge .smart-design-inner {
  background: color-mix(in srgb, var(--smart-badge-bg, var(--smart-accent, #2C5C71)) 88%, #ffffff) !important;
  color: var(--smart-badge-color, #ffffff) !important;
}
/* Critical: only style the visible QR label, not the resize-handle spans. */
.smart-item-qr .smart-design-inner > span {
  width: 100% !important;
  max-width: 100% !important;
  text-align: center !important;
  line-height: 1.05 !important;
  font-size: clamp(7px, min(10cqh, 4.6cqw), 16px) !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  color: #0f172a !important;
  font-weight: 600 !important;
}
.smart-item-qr .smart-resize-handle {
  position: absolute !important;
  width: 15px !important;
  height: 15px !important;
  min-width: 15px !important;
  min-height: 15px !important;
  max-width: 15px !important;
  max-height: 15px !important;
  padding: 0 !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  border: 2px solid #2C5C71 !important;
  box-shadow: 0 4px 12px rgba(15,23,42,.28) !important;
  font-size: 0 !important;
  line-height: 0 !important;
  text-align: initial !important;
  z-index: 10 !important;
}
.smart-item-qr .smart-design-inner {
  overflow: hidden !important;
  border-radius: inherit !important;
  box-sizing: border-box !important;
}
.smart-item-qr {
  container-type: size !important;
  overflow: visible !important;
  outline-offset: 3px !important;
}
.smart-item-qr .smart-qr-square {
  width: min(78cqw, 62cqh) !important;
  height: min(78cqw, 62cqh) !important;
}
@media (max-width: 1260px) {
  body:not(.tv-body) .smart-ui-layout,
  body:not(.tv-body) .smart-designer-layout {
    grid-template-columns: 1fr !important;
    overflow: visible !important;
  }
  body:not(.tv-body) .smart-form-fields.smart-ui-fields,
  body:not(.tv-body) .smart-designer-scroll-fields { overflow-x: visible !important; }
}
@media (max-width: 760px) {
  body:not(.tv-body) .smart-style-grid-clean,
  body:not(.tv-body) .smart-badge-style-grid,
  body:not(.tv-body) .smart-colour-grid-ui {
    grid-template-columns: 1fr !important;
  }
  body:not(.tv-body) .smart-title-bg-switch { grid-column: auto; }
}


body:not(.tv-body) .smart-message-header-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  margin: 2px 0 -2px;
}
body:not(.tv-body) .smart-message-size-row {
  max-width: 260px;
}
body:not(.tv-body) .smart-message-size-row .input {
  min-height: 46px;
}
body:not(.tv-body) .smart-form-fields.smart-ui-fields,
body:not(.tv-body) .smart-designer-scroll-fields {
  padding-bottom: 120px !important;
  scroll-padding-bottom: 130px !important;
}
body:not(.tv-body) .smart-qr-panel {
  margin-bottom: 18px !important;
  scroll-margin-bottom: 130px !important;
}
body:not(.tv-body) .smart-designer-actions {
  position: sticky;
  bottom: 0;
  z-index: 20;
  background: linear-gradient(180deg, rgba(255,255,255,.82), #ffffff 35%);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(44,92,113,.14) !important;
  padding: 12px 0 4px !important;
}
.smart-admin-slide .smart-item-message .smart-design-inner {
  font-size: calc(clamp(10px, min(46cqh, 7.2cqw), 76px) * var(--smart-message-size, 1)) !important;
  line-height: 1.14 !important;
}
.smart-admin-slide .smart-item-message .smart-design-inner p,
.smart-admin-slide .smart-item-message .smart-design-inner div,
.smart-admin-slide .smart-item-message .smart-design-inner li,
.smart-admin-slide .smart-item-message .smart-design-inner span {
  font-size: inherit !important;
  line-height: inherit !important;
}
.smart-admin-slide .smart-item-message.active .smart-design-inner,
.smart-admin-slide .smart-item-message:hover .smart-design-inner {
  outline: 1px solid rgba(255,255,255,.18);
}
.smart-admin-slide .smart-item-qr {
  background: #ffffff !important;
  color: #0f172a !important;
  border-radius: clamp(12px, 8cqh, 24px) !important;
  box-shadow: 0 18px 46px rgba(15,23,42,.28) !important;
}
.smart-admin-slide .smart-item-qr .smart-design-inner {
  background: #ffffff !important;
  padding: clamp(4px, 4cqh, 12px) !important;
  gap: clamp(1px, 2cqh, 6px) !important;
  grid-template-rows: minmax(0, 1fr) auto !important;
}
.smart-admin-slide .smart-item-qr .smart-qr-square {
  width: min(90cqw, 74cqh) !important;
  height: min(90cqw, 74cqh) !important;
  background: #ffffff !important;
  border-radius: clamp(4px, 2cqh, 8px) !important;
}
.smart-admin-slide .smart-item-qr .smart-design-inner > span {
  display: block !important;
  width: 100% !important;
  color: #0f172a !important;
  font-size: clamp(6px, min(9cqh, 4.2cqw), 17px) !important;
  line-height: 1.02 !important;
  font-weight: 600 !important;
  text-align: center !important;
  white-space: normal !important;
  overflow: hidden !important;
  text-overflow: clip !important;
  max-height: 2.2em !important;
}
.smart-admin-slide .smart-item-qr .smart-resize-handle {
  width: 14px !important;
  height: 14px !important;
  min-width: 14px !important;
  min-height: 14px !important;
  max-width: 14px !important;
  max-height: 14px !important;
  transform: translate(-50%, -50%);
}
.smart-admin-slide .smart-item-qr .handle-e,
.smart-admin-slide .smart-item-qr .handle-w {
  transform: translate(-50%, -50%);
}
.smart-admin-slide .smart-item-qr .handle-s,
.smart-admin-slide .smart-item-qr .handle-n {
  transform: translate(-50%, -50%);
}
@media (max-width: 1260px) {
  body:not(.tv-body) .smart-message-size-row { max-width: none; }
  body:not(.tv-body) .smart-form-fields.smart-ui-fields,
  body:not(.tv-body) .smart-designer-scroll-fields { padding-bottom: 32px !important; }
}

.smart-admin-slide .smart-item-qr .smart-resize-handle.handle-nw { left: -7px !important; top: -7px !important; right: auto !important; bottom: auto !important; transform: none !important; cursor: nwse-resize !important; }
.smart-admin-slide .smart-item-qr .smart-resize-handle.handle-n { left: 50% !important; top: -7px !important; right: auto !important; bottom: auto !important; transform: translateX(-50%) !important; cursor: ns-resize !important; }
.smart-admin-slide .smart-item-qr .smart-resize-handle.handle-ne { right: -7px !important; top: -7px !important; left: auto !important; bottom: auto !important; transform: none !important; cursor: nesw-resize !important; }
.smart-admin-slide .smart-item-qr .smart-resize-handle.handle-e { right: -7px !important; top: 50% !important; left: auto !important; bottom: auto !important; transform: translateY(-50%) !important; cursor: ew-resize !important; }
.smart-admin-slide .smart-item-qr .smart-resize-handle.handle-se { right: -7px !important; bottom: -7px !important; left: auto !important; top: auto !important; transform: none !important; cursor: nwse-resize !important; }
.smart-admin-slide .smart-item-qr .smart-resize-handle.handle-s { left: 50% !important; bottom: -7px !important; right: auto !important; top: auto !important; transform: translateX(-50%) !important; cursor: ns-resize !important; }
.smart-admin-slide .smart-item-qr .smart-resize-handle.handle-sw { left: -7px !important; bottom: -7px !important; right: auto !important; top: auto !important; transform: none !important; cursor: nesw-resize !important; }
.smart-admin-slide .smart-item-qr .smart-resize-handle.handle-w { left: -7px !important; top: 50% !important; right: auto !important; bottom: auto !important; transform: translateY(-50%) !important; cursor: ew-resize !important; }


body:not(.tv-body) .smart-slide-grid {
  gap: 12px !important;
  margin-top: 12px !important;
}
body:not(.tv-body) .smart-slide-card {
  min-height: 128px !important;
  grid-template-columns: 42px minmax(0, 1fr) auto !important;
  grid-template-rows: auto auto !important;
  align-items: center !important;
  gap: 8px 12px !important;
  padding: 12px 14px !important;
  border-radius: 18px !important;
}
body:not(.tv-body) .smart-slide-card .smart-slide-icon {
  width: 42px !important;
  height: 42px !important;
  border-radius: 14px !important;
  grid-row: 1 / span 2 !important;
}
body:not(.tv-body) .smart-slide-card .smart-slide-icon .icon {
  width: 22px !important;
  height: 22px !important;
}
body:not(.tv-body) .smart-slide-card > div:not(.smart-slide-icon) {
  grid-column: 2 !important;
  grid-row: 1 / span 2 !important;
}
body:not(.tv-body) .smart-slide-card h3 {
  margin: 0 0 2px !important;
  font-size: .96rem !important;
  min-height: 0 !important;
}
body:not(.tv-body) .smart-slide-card p {
  min-height: 0 !important;
  margin: 0 !important;
  font-size: .78rem !important;
  line-height: 1.32 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}
body:not(.tv-body) .smart-slide-card .btn {
  grid-column: 3 !important;
  grid-row: 1 / span 2 !important;
  align-self: center !important;
  justify-self: end !important;
  margin: 0 !important;
  min-height: 36px !important;
  padding: 8px 12px !important;
  white-space: nowrap !important;
}
body:not(.tv-body) .smart-slide-card::after {
  width: 86px !important;
  height: 86px !important;
  inset: auto -22px -34px auto !important;
}
body:not(.tv-body) .delete-usage-warning {
  display: grid;
  gap: 10px;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid rgba(185, 28, 28, .18);
  border-radius: 14px;
  background: #fff7ed;
  color: #7c2d12;
}
body:not(.tv-body) .delete-usage-warning p { margin: 0; }
body:not(.tv-body) .usage-warning-group {
  display: grid;
  gap: 5px;
  padding: 8px 9px;
  border-radius: 12px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(124,45,18,.12);
}
body:not(.tv-body) .usage-warning-group b { font-size: 12px; color: #9a3412; }
body:not(.tv-body) .usage-warning-group ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 2px;
  font-size: 12px;
}
body:not(.tv-body) .selected-delete-warning { margin: 8px 0; }
@media (max-width: 1100px) {
  body:not(.tv-body) .smart-slide-card {
    grid-template-columns: 42px minmax(0, 1fr) !important;
  }
  body:not(.tv-body) .smart-slide-card .btn {
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
    justify-self: stretch !important;
  }
}


body:not(.tv-body) .smart-slide-card {
  min-height: 148px !important;
  align-items: center;
}
body:not(.tv-body) .smart-slide-card p {
  -webkit-line-clamp: 3 !important;
  min-height: auto !important;
  overflow: hidden;
}
body:not(.tv-body) .smart-slide-card h3,
body:not(.tv-body) .smart-slide-card p { overflow-wrap: anywhere; }

/* ── PDF thumbnail in asset grid ─────────────────────────────── */
.asset-pdf-thumb-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e8eef3;
  overflow: hidden;
}
/* JS sets canvas.style.width/height explicitly (logical CSS pixels at ~140px tall).
   max-width/max-height are still kept so oversized canvases clip gracefully,
   but the primary sizing is done by JS so no browser rescaling occurs. */
.asset-pdf-thumb-canvas {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.asset-pdf-page-badge {
  position: absolute;
  bottom: 5px;
  right: 5px;
  background: rgba(15,23,42,.78);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  border-radius: 6px;
  padding: 3px 7px;
  display: flex;
  align-items: center;
  gap: 4px;
  letter-spacing: .02em;
  line-height: 1;
}
.asset-pdf-page-badge svg { flex: 0 0 auto; }
