:root {
  color-scheme: dark;
  --mdf-bg: #0f1524;
  --mdf-sidebar: #0b1220;
  --mdf-panel: #172238;
  --mdf-panel-2: #111b2d;
  --mdf-border: #2b3951;
  --mdf-text: #e9eef8;
  --mdf-muted: #9cadc5;
  --mdf-accent: #6d5dfc;
  --mdf-accent-hover: #7d70ff;
  --mdf-ok: #65d79a;
  --mdf-warn: #f2bd63;
  --mdf-bad: #ff7e8c;
  --mdf-blue: #7eb6ff;
  --mdf-sidebar-width: 264px;
}

html, body { min-height: 100%; }
body {
  margin: 0;
  background: var(--mdf-bg);
  color: var(--mdf-text);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
}

[data-bs-theme="dark"] {
  --bs-body-bg: var(--mdf-bg);
  --bs-body-color: var(--mdf-text);
  --bs-border-color: var(--mdf-border);
  --bs-secondary-color: var(--mdf-muted);
  --bs-primary: var(--mdf-accent);
  --bs-primary-rgb: 109, 93, 252;
  --bs-link-color: #c3bcff;
  --bs-link-hover-color: #d7d2ff;
}

.admin-shell { min-height: 100vh; }

.admin-sidebar {
  --bs-offcanvas-width: var(--mdf-sidebar-width);
  width: var(--mdf-sidebar-width);
  flex: 0 0 var(--mdf-sidebar-width);
  background: linear-gradient(180deg, #0b1220 0%, #0d1526 100%);
  border-right: 1px solid var(--mdf-border);
  color: var(--mdf-text);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--mdf-accent), #8f7cff);
  color: white;
  font-weight: 800;
  letter-spacing: -.04em;
  box-shadow: 0 8px 24px rgba(109,93,252,.28);
}

.sidebar-title { font-weight: 750; line-height: 1.1; }
.sidebar-subtitle { color: var(--mdf-muted); font-size: 11px; margin-top: 3px; }

.sidebar-nav { padding: 14px 12px; }
.sidebar-nav .nav-link {
  color: #b7c4d8;
  border-radius: 9px;
  padding: 10px 12px;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  border: 1px solid transparent;
}
.sidebar-nav .nav-link:hover {
  color: white;
  background: rgba(255,255,255,.045);
}
.sidebar-nav .nav-link.active {
  color: white;
  background: rgba(109,93,252,.18);
  border-color: rgba(109,93,252,.35);
}
.nav-glyph {
  width: 20px;
  text-align: center;
  color: #9aa8bf;
  font-size: 13px;
  font-weight: 800;
}
.sidebar-nav .active .nav-glyph { color: #bfb7ff; }

.sidebar-footer {
  margin-top: auto;
  padding: 14px 14px 16px;
  border-top: 1px solid rgba(255,255,255,.06);
}

.admin-main { min-width: 0; flex: 1 1 auto; }
.admin-topbar {
  min-height: 66px;
  position: sticky;
  top: 0;
  z-index: 1010;
  background: rgba(15,21,36,.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--mdf-border);
}

.admin-content { padding: 22px 24px 44px; max-width: 1700px; }
.admin-section { display: none; }
.admin-section.active { display: block; }

.page-title { font-size: 24px; font-weight: 750; margin: 0; }
.page-subtitle { color: var(--mdf-muted); font-size: 12px; margin-top: 4px; }

.card {
  --bs-card-bg: var(--mdf-panel);
  --bs-card-border-color: var(--mdf-border);
  --bs-card-cap-bg: transparent;
  box-shadow: 0 8px 28px rgba(0,0,0,.08);
}
.card-header { border-bottom-color: var(--mdf-border); }

.stat-card .card-body { padding: 16px 18px; }
.stat-label { color: var(--mdf-muted); font-size: 12px; }
.stat-value { font-size: 27px; font-weight: 800; margin-top: 4px; line-height: 1; }

.text-ok { color: var(--mdf-ok) !important; }
.text-warn { color: var(--mdf-warn) !important; }
.text-bad { color: var(--mdf-bad) !important; }
.text-blue { color: var(--mdf-blue) !important; }
.text-muted-mdf { color: var(--mdf-muted) !important; }

.form-control, .form-select {
  background-color: #0f192a;
  border-color: #3a4b68;
  color: #eef3fb;
}
.form-control:focus, .form-select:focus {
  background-color: #101c30;
  color: white;
  border-color: var(--mdf-accent);
  box-shadow: 0 0 0 .2rem rgba(109,93,252,.15);
}
.form-control::placeholder { color: #718198; }

.btn-primary {
  --bs-btn-bg: var(--mdf-accent);
  --bs-btn-border-color: var(--mdf-accent);
  --bs-btn-hover-bg: var(--mdf-accent-hover);
  --bs-btn-hover-border-color: var(--mdf-accent-hover);
}
.btn-outline-secondary {
  --bs-btn-color: #c7d0df;
  --bs-btn-border-color: #3a4b68;
  --bs-btn-hover-bg: #25334a;
  --bs-btn-hover-border-color: #4a5e7d;
}

.table {
  --bs-table-bg: transparent;
  --bs-table-color: #e8eef8;
  --bs-table-border-color: #2a3850;
  --bs-table-hover-bg: rgba(255,255,255,.025);
  --bs-table-hover-color: white;
  font-size: 12.5px;
  margin-bottom: 0;
}
.table thead th {
  color: #bdc9dc;
  font-weight: 650;
  white-space: nowrap;
  background: #111b2d;
  position: sticky;
  top: 0;
  z-index: 1;
}
.table > :not(caption) > * > * { padding: .65rem .7rem; }
.table-wrap {
  overflow: auto;
  max-height: calc(100vh - 250px);
  border: 1px solid #27364d;
  border-radius: 10px;
}

.badge-status {
  display: inline-flex;
  border-radius: 999px;
  padding: .3rem .55rem;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid transparent;
}
.status-Active { color:#75e1a5; background:#123c30; border-color:#1f674f; }
.status-Suspended { color:#f7cc7b; background:#493714; border-color:#76581d; }
.status-Compromised { color:#ffb37b; background:#4a2c18; border-color:#794a29; }
.status-Refunded,.status-Revoked { color:#ff9ba5; background:#4b2028; border-color:#7a3440; }

.accordion {
  --bs-accordion-bg: var(--mdf-panel);
  --bs-accordion-border-color: var(--mdf-border);
  --bs-accordion-btn-bg: var(--mdf-panel);
  --bs-accordion-btn-color: var(--mdf-text);
  --bs-accordion-active-bg: #1c2940;
  --bs-accordion-active-color: white;
  --bs-accordion-btn-focus-box-shadow: 0 0 0 .18rem rgba(109,93,252,.12);
  --bs-accordion-btn-icon-filter: invert(1) brightness(1.7);
  --bs-accordion-btn-active-icon-filter: invert(1) brightness(1.7);
}
.accordion-item { overflow: hidden; border-radius: 12px !important; margin-bottom: 10px; }
.accordion-button { padding: 14px 16px; }
.license-summary {
  width: 100%;
  display: grid;
  grid-template-columns: 1.15fr .55fr .55fr 1fr .7fr;
  gap: 12px;
  align-items: center;
  min-width: 0;
}
.license-key { font-size: 16px; font-weight: 750; color: #c6ceff; }
.license-id { color: #8e9eb6; font-size: 11px; word-break: break-all; }
.subpanel {
  background: var(--mdf-panel-2);
  border: 1px solid #27364d;
  border-radius: 10px;
  padding: 14px;
}

.empty-state { color: var(--mdf-muted); text-align: center; padding: 24px 16px; }
code { color: #c9c2ff; }

.section-toolbar { gap: 8px; }
.section-toolbar .form-control, .section-toolbar .form-select { min-width: 145px; }

#health { font-size: 12px; line-height: 1.45; }
.health-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #2d405e;
  background: #101a2c;
  border-radius: 9px;
  padding: 8px 10px;
}
.health-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mdf-ok); box-shadow: 0 0 0 4px rgba(101,215,154,.08); }

.admin-toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 2000;
  min-width: 280px;
  max-width: 460px;
  background: #202d45;
  border: 1px solid #405474;
  border-radius: 10px;
  padding: 12px 14px;
  box-shadow: 0 14px 38px rgba(0,0,0,.35);
  display: none;
}

.small-note { color: var(--mdf-muted); font-size: 11px; }

@media (max-width: 1199.98px) {
  .license-summary { grid-template-columns: 1fr 1fr 1fr; }
  .license-summary > div:nth-child(4), .license-summary > div:nth-child(5) { grid-column: span 1; }
}

@media (max-width: 991.98px) {
  .admin-sidebar { width: min(86vw, 300px); }
  .admin-content { padding: 18px 14px 36px; }
  .admin-topbar { min-height: 58px; }
  .license-summary { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 575.98px) {
  .license-summary { grid-template-columns: 1fr; }
  .stat-value { font-size: 23px; }
}

.bg-panel{background:#192337!important}
.modal-content{background:#192337;color:#eef3fb;border-color:#34445f}
.modal-header,.modal-footer{border-color:#34445f!important}

/* v0.15.37 CMS */
.sidebar-group-label {
  color: #6f809a;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
  padding: 13px 11px 5px;
}
.cms-site-select { min-width: 220px; max-width: 320px; }
.cms-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
}
.cms-media-card {
  overflow: visible;
  border: 1px solid #2c3b54;
  border-radius: 10px;
  background: #111b2d;
}
.cms-media-card > img {
  width: 100%;
  height: 145px;
  object-fit: cover;
  display: block;
  background: #0b1220;
  border-radius: 9px 9px 0 0;
}
.cms-media-usage {
  position: relative;
}
.cms-media-usage-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 9px;
  border: 1px solid #2c3b54;
  border-radius: 8px;
  background: #0e1829;
  color: #b9c7dc;
  font-size: 12px;
  text-align: left;
}
.cms-media-usage-toggle:hover,
.cms-media-usage-toggle:focus,
.cms-media-usage-toggle.show {
  border-color: #445979;
  background: #142139;
  color: #fff;
}
.cms-media-usage-toggle::after {
  margin-left: auto;
}
.cms-media-usage-menu {
  --bs-dropdown-min-width: 0;
  width: min(380px, calc(100vw - 32px));
  max-height: 280px;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 4px;
  border: 1px solid #3b4e6d;
  border-radius: 9px;
  background: #0e1829;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .38);
  z-index: 1080;
}
.cms-media-usage-item {
  display: grid;
  gap: 2px;
  padding: 8px 9px;
  border-radius: 6px;
  color: #dce6f5;
  font-size: 12px;
  line-height: 1.35;
  text-decoration: none;
  white-space: normal;
  background: transparent;
}
.cms-media-usage-item + .cms-media-usage-item {
  border-top: 1px solid #24344c;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}
.cms-media-usage-item:hover,
.cms-media-usage-item:focus {
  background: #182640;
  color: #fff;
}
.cms-media-usage-item span:last-child { color: #8fa2bf; font-size: 11px; }
.cms-blocks { display: grid; gap: 10px; }
.cms-block {
  border: 1px solid #31425e;
  background: #111b2d;
  border-radius: 10px;
  padding: 12px;
}
.cms-divider { height: 1px; background: #40506a; margin: 12px 0; }
.cms-preview {
  max-width: 860px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.72;
}
.cms-preview h1 { font-size: 38px; margin-bottom: 18px; }
.cms-preview h2 { font-size: 28px; margin-top: 32px; }
.cms-preview h3 { font-size: 22px; margin-top: 26px; }
.cms-preview img { max-width: 100%; height: auto; border-radius: 12px; display: block; margin: 20px auto; }
.cms-preview figure { margin: 24px 0; }
.cms-preview figcaption { color: var(--mdf-muted); font-size: 13px; text-align: center; margin-top: -12px; }
.cms-preview blockquote { border-left: 4px solid var(--mdf-accent); padding: 10px 18px; color: #ced7e5; background: #121d30; }
.cms-preview-excerpt { font-size: 20px; color: #b8c4d8; }
@media (max-width: 767.98px) {
  .cms-media-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .cms-preview h1 { font-size: 30px; }
}

/* Public Website preview. Shared typography lives in site-content.css. */
.cms-preview-frame { background: #0e1321; border: 1px solid #303c55; border-radius: 12px; margin: 16px auto; padding: 36px; width: 100%; container-type: inline-size; container-name: article-preview; }
.cms-preview-frame .mdf-article { max-width: 800px; margin: 0 auto; }
.cms-preview-frame[data-size="mobile"] { max-width: 390px; padding: 20px; }
.cms-preview-frame[data-size="mobile"] h1 { font-size: 30px; }
.cms-preview-frame[data-size="mobile"] .mdf-article { font-size: 17px; }
.cms-preview-frame[data-size="mobile"] .article-lead { font-size: 19px; }
.cms-preview-frame[data-size="mobile"] h2 { font-size: 26px; }
.cms-preview-frame[data-size="mobile"] .content-button { width: 100%; justify-content: center; }
.cms-publish-note { padding: 12px 14px; border: 1px solid #364158; border-radius: 8px; }

/* Persistent publication state, not a transient toast. */
.publication-banner{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.9rem 1rem;border:1px solid #36425a;border-left:4px solid #8873ed;border-radius:.55rem;background:#172236;font-size:.9rem;line-height:1.55;}
.publication-banner span{flex:1;}.publication-banner .btn{flex:none;}
.publication-error{border-left-color:#ff7a83;background:#301e2b;}.publication-pending{border-left-color:#e6b856;background:#2b2630;}.publication-ok{border-left-color:#55ceaf;}
#publicationDetails p:last-child{margin-bottom:0;}#publicationJobs .small-note{max-width:32rem;white-space:normal;}
@media(max-width:600px){.publication-banner{align-items:flex-start;flex-direction:column;}}

/* Media Library: detailed image preview without changing the card layout. */
.cms-media-thumb {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 10px 10px 0 0;
  background: #0a111e;
  cursor: zoom-in;
}
.cms-media-thumb img {
  display: block;
  width: 100%;
  height: 145px;
  object-fit: cover;
  transition: transform .18s ease, opacity .18s ease;
}
.cms-media-thumb-hint {
  position: absolute;
  right: 9px;
  bottom: 9px;
  padding: 4px 8px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  color: #f4f7fb;
  background: rgba(7,12,22,.82);
  font-size: 10px;
  font-weight: 700;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .18s ease, transform .18s ease;
}
.cms-media-thumb:hover img,
.cms-media-thumb:focus-visible img { transform: scale(1.025); opacity: .9; }
.cms-media-thumb:hover .cms-media-thumb-hint,
.cms-media-thumb:focus-visible .cms-media-thumb-hint { opacity: 1; transform: none; }
.cms-media-preview-modal { max-height: calc(100vh - 32px); }
.cms-media-preview-body {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 18px;
  align-items: center;
  overflow: auto;
}
.cms-media-preview-image {
  display: block;
  width: 100%;
  max-height: calc(100vh - 180px);
  object-fit: contain;
  border: 1px solid #2d3c53;
  border-radius: 12px;
  background: #080e18;
}
.cms-media-preview-meta {
  align-self: stretch;
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 4px 0;
  overflow-wrap: anywhere;
}
@media (max-width: 767.98px) {
  .cms-media-preview-body { grid-template-columns: 1fr; }
  .cms-media-preview-image { max-height: 68vh; }
}

/* Media Library video support. */
.cms-media-thumb video {
  display: block;
  width: 100%;
  height: 145px;
  object-fit: cover;
  background: #070d16;
}
.cms-media-thumb.is-video { cursor: pointer; }
.cms-media-kind-badge {
  position: absolute;
  left: 9px;
  top: 9px;
  padding: 4px 7px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: rgba(7,12,22,.82);
  color: #f4f7fb;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
}
.cms-media-preview-video {
  display: block;
  width: 100%;
  max-height: calc(100vh - 180px);
  border: 1px solid #2d3c53;
  border-radius: 12px;
  background: #050912;
}
@media (max-width: 767.98px) {
  .cms-media-preview-video { max-height: 68vh; }
}

/* Video cards stay traffic-light: the actual media is loaded only in preview/player. */
.cms-media-video-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 145px;
  background: radial-gradient(circle at 50% 45%, #25334b 0, #111a2a 52%, #080e18 100%);
}
.cms-media-video-play {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding-left: 3px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  background: rgba(8,14,24,.72);
  color: #fff;
  font-size: 18px;
  box-shadow: 0 10px 24px rgba(0,0,0,.25);
}
.cms-media-thumb:hover .cms-media-video-play,
.cms-media-thumb:focus-visible .cms-media-video-play { transform: scale(1.04); background: rgba(31,43,67,.94); }
.cms-upload-progress-track {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #0c1422;
  box-shadow: inset 0 0 0 1px #2c3b54;
}
.cms-upload-progress-track > span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg,#6f5df7,#8d7dff);
  transition: width .12s linear;
}

/* Video Library 2.0: lightweight thumbnails and technical metadata. */
.cms-media-video-thumbnail {
  display: block;
  width: 100%;
  height: 145px;
  object-fit: cover;
  background: #070d16;
}
.cms-media-video-play-overlay {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding-left: 3px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 50%;
  background: rgba(8,14,24,.76);
  color: #fff;
  font-size: 18px;
  box-shadow: 0 10px 24px rgba(0,0,0,.3);
  transform: translate(-50%, -50%);
  transition: transform .18s ease, background .18s ease;
  pointer-events: none;
}
.cms-media-thumb:hover .cms-media-video-play-overlay,
.cms-media-thumb:focus-visible .cms-media-video-play-overlay {
  transform: translate(-50%, -50%) scale(1.06);
  background: rgba(31,43,67,.96);
}
.cms-media-duration-badge {
  position: absolute;
  right: 9px;
  top: 9px;
  padding: 4px 7px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: rgba(7,12,22,.86);
  color: #f4f7fb;
  font-size: 9px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

/* v0.15.80 — compact cover thumbnails in Article/Page lists. */
.cms-cover-col{width:88px}
.cms-cover-cell{width:88px;padding-top:7px!important;padding-bottom:7px!important}
.cms-content-cover-thumb{position:relative;display:block;width:72px;height:44px;padding:0;overflow:hidden;border:1px solid #33445f;border-radius:8px;background:#0a111e;cursor:zoom-in}
.cms-content-cover-thumb img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .18s ease,opacity .18s ease}
.cms-content-cover-thumb>span{position:absolute;right:4px;bottom:3px;display:grid;place-items:center;width:17px;height:17px;border-radius:50%;background:rgba(7,12,22,.78);color:#fff;font-size:12px;line-height:1;opacity:0;transition:opacity .18s ease}
.cms-content-cover-thumb:hover img,.cms-content-cover-thumb:focus-visible img{transform:scale(1.04);opacity:.88}
.cms-content-cover-thumb:hover>span,.cms-content-cover-thumb:focus-visible>span{opacity:1}
.cms-content-cover-empty{display:grid;place-items:center;width:72px;height:44px;border:1px dashed #344760;border-radius:8px;color:#6f809b;background:rgba(9,16,29,.28);font-size:12px}
@media(max-width:700px){.cms-cover-col,.cms-cover-cell{width:74px}.cms-content-cover-thumb,.cms-content-cover-empty{width:62px;height:38px}}

/* v0.15.81 — content-first article/page lists and archived delete action. */
.cms-content-row>td{vertical-align:middle}
.cms-content-main-cell{min-width:280px;max-width:620px}
.cms-content-title{color:#eef3fb;line-height:1.3}
.cms-content-path{margin-top:2px;color:#7f93b2;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}
.cms-content-excerpt{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;max-width:580px;margin-top:5px;color:#9eabc0;font-size:12px;line-height:1.4}
.cms-content-status-line{display:flex;align-items:center;flex-wrap:wrap;gap:6px}
.cms-content-version{display:inline-flex;align-items:center;min-height:20px;padding:1px 7px;border:1px solid #34465f;border-radius:999px;background:#111c2e;color:#aebcd1;font-size:11px;font-weight:700;font-variant-numeric:tabular-nums}
.cms-content-publication-note{margin-top:4px;max-width:190px}
.cms-content-updated{white-space:nowrap;color:#b8c4d6;font-size:12px}
.cms-content-actions{display:flex;align-items:center;justify-content:flex-end;gap:6px;white-space:nowrap}
@media(max-width:900px){.cms-content-main-cell{min-width:220px}.cms-content-excerpt{max-width:360px}.cms-content-actions{flex-direction:column;align-items:stretch}}

/* v0.15.82 — CMS pagination, settings and PostgreSQL operations. */
.cms-pager{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:12px 14px;border-top:1px solid #27364b;background:rgba(8,14,24,.28)}
.cms-pager .btn{min-width:34px}
.cms-pager-summary{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.cms-page-size-label{display:inline-flex;align-items:center;gap:7px;margin:0;color:#8fa0b8;font-size:12px;white-space:nowrap}
.cms-page-size-select{width:auto;min-width:70px;padding-top:3px;padding-bottom:3px}
.cms-pager-gap{padding:0 3px;color:#6f809b}
.cms-retention-preview{padding:12px 14px;border:1px solid #33445f;border-radius:10px;background:rgba(9,16,29,.4);color:#dce5f3;line-height:1.5}
#section-postgres .table td,#section-postgres .table th{white-space:nowrap}
#section-postgres .table td:first-child,#section-postgres .table th:first-child{white-space:normal}
@media(max-width:700px){.cms-pager{align-items:flex-start;flex-direction:column}.cms-pager-summary{width:100%;justify-content:space-between}}


/* v0.15.84 — dashboard analytics. */
.dashboard-charts-card .card-body { padding: 16px; }
.dashboard-chart-summary { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.dashboard-chart-summary-item { border:1px solid #2a3a53; background:#111b2d; border-radius:10px; padding:10px 12px; min-width:0; }
.dashboard-chart-summary-item span { display:block; color:var(--mdf-muted); font-size:11px; }
.dashboard-chart-summary-item strong { display:block; margin-top:4px; font-size:18px; }
.dashboard-chart-panel { border:1px solid #2a3a53; background:#111b2d; border-radius:12px; padding:14px; min-width:0; }
.dashboard-chart-head { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin-bottom:8px; }
.dashboard-chart-legend { display:flex; flex-wrap:wrap; gap:8px 12px; color:#aebbd0; font-size:11px; align-items:center; }
.legend-dot { width:8px; height:8px; border-radius:50%; display:inline-block; margin-right:-5px; }
.legend-orders { background:#7eb6ff; }.legend-paid { background:#65d79a; }.legend-downloads { background:#b39cff; }.legend-activations { background:#66d7d1; }.legend-devices { background:#f2bd63; }.legend-api-ok { background:#65d79a; }.legend-api-bad { background:#ff7e8c; }
.admin-chart-host { min-height:230px; width:100%; overflow:hidden; }
.admin-chart-host-small { min-height:180px; }
.admin-chart-svg { width:100%; height:auto; display:block; }
.admin-chart-grid { stroke:#2b3951; stroke-width:1; vector-effect:non-scaling-stroke; }
.admin-chart-axis { fill:#8494aa; font-size:11px; }
.admin-chart-line { fill:none; stroke-width:2.3; vector-effect:non-scaling-stroke; }
.admin-chart-point { stroke:#0f192a; stroke-width:1.5; vector-effect:non-scaling-stroke; }
.admin-chart-line.series-orders,.admin-chart-point.series-orders { stroke:#7eb6ff; fill:#7eb6ff; }
.admin-chart-line.series-paid,.admin-chart-point.series-paid { stroke:#65d79a; fill:#65d79a; }
.admin-chart-line.series-downloads,.admin-chart-point.series-downloads { stroke:#b39cff; fill:#b39cff; }
.admin-chart-line.series-activations,.admin-chart-point.series-activations { stroke:#66d7d1; fill:#66d7d1; }
.admin-chart-line.series-devices,.admin-chart-point.series-devices { stroke:#f2bd63; fill:#f2bd63; }
.admin-chart-line.series-api-ok,.admin-chart-point.series-api-ok { stroke:#65d79a; fill:#65d79a; }
.admin-chart-line.series-api-bad,.admin-chart-point.series-api-bad { stroke:#ff7e8c; fill:#ff7e8c; }
.admin-chart-bar { fill:#6d5dfc; opacity:.85; }
.dashboard-chart-subtitle { color:#bdc9dc; font-size:12px; font-weight:650; margin:6px 0 -4px; }
.admin-chart-empty { min-height:180px; display:grid; place-items:center; color:var(--mdf-muted); font-size:12px; }
.admin-funnel { display:grid; gap:14px; padding-top:10px; }
.admin-funnel-row { min-width:0; }
.admin-funnel-head { display:flex; justify-content:space-between; gap:10px; color:#c9d3e3; font-size:12px; margin-bottom:6px; }
.admin-funnel-track { height:11px; border-radius:99px; background:#0f192a; border:1px solid #2b3951; overflow:hidden; }
.admin-funnel-fill { height:100%; border-radius:inherit; background:#6d5dfc; transition:width .25s ease; }
.admin-funnel-fill.funnel-1 { background:#65d79a; }.admin-funnel-fill.funnel-2 { background:#7eb6ff; }.admin-funnel-fill.funnel-3 { background:#b39cff; }
@media(max-width:900px){.dashboard-chart-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-chart-head{display:block}.dashboard-chart-legend{margin-top:8px}.admin-chart-host{min-height:190px}}
@media(max-width:520px){.dashboard-chart-summary{grid-template-columns:1fr 1fr}.dashboard-chart-summary-item strong{font-size:16px}.dashboard-chart-panel{padding:10px}}

/* v0.15.86 — dashboard polish: comparisons, conversion KPI and pointer tooltips. */
.dashboard-charts-card .card-body,.dashboard-charts-card .dashboard-chart-panel{transition:opacity .18s ease}
.dashboard-charts-card.is-loading .card-body{opacity:.72}
.dashboard-compare-range{margin-top:4px;color:#8293ab;font-size:11px}
.dashboard-summary-value-row,.dashboard-conversion-value{display:flex;align-items:baseline;justify-content:space-between;gap:8px;min-width:0}
.dashboard-delta{display:inline-flex;align-items:center;white-space:nowrap;border-radius:999px;padding:2px 7px;font-size:10px;font-weight:700;background:#1a2740;color:#9cafc8}
.dashboard-delta.is-up{background:rgba(65,184,125,.13);color:#65d79a}
.dashboard-delta.is-down{background:rgba(255,126,140,.12);color:#ff9aa6}
.dashboard-delta.is-flat{background:#182338;color:#8999b0}
.dashboard-conversion-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.dashboard-conversion-kpi{border:1px solid #293a54;background:#0f192a;border-radius:10px;padding:9px 11px;min-width:0}
.dashboard-conversion-kpi>span{display:block;color:#aab8cc;font-size:11px;margin-bottom:3px}
.dashboard-conversion-kpi strong{font-size:16px;color:#eef3fb}
.dashboard-conversion-kpi small{display:block;margin-top:3px;color:#7587a1;font-size:10px}
.admin-chart-host{position:relative}
.admin-chart-hit{fill:transparent;pointer-events:all;cursor:crosshair}
.admin-chart-tooltip{position:absolute;z-index:5;min-width:150px;max-width:230px;padding:9px 10px;border:1px solid #3a4e6c;border-radius:9px;background:#0b1423;box-shadow:0 10px 30px rgba(0,0,0,.38);color:#dfe8f6;font-size:11px;line-height:1.35;pointer-events:none}
.admin-chart-tooltip[hidden]{display:none}
.admin-chart-tooltip>strong{display:block;margin-bottom:6px;color:#fff;font-size:11px}
.admin-chart-tooltip-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:4px}
.admin-chart-tooltip-label{display:flex;align-items:center;gap:6px;min-width:0;color:#aebbd0}
.admin-chart-tooltip-row b{color:#fff;font-variant-numeric:tabular-nums;white-space:nowrap}
.admin-chart-tooltip-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#7eb6ff;flex:0 0 auto}
.admin-chart-tooltip-dot.series-orders{background:#7eb6ff}.admin-chart-tooltip-dot.series-paid{background:#65d79a}.admin-chart-tooltip-dot.series-revenue{background:#6d5dfc}.admin-chart-tooltip-dot.series-downloads{background:#b39cff}.admin-chart-tooltip-dot.series-activations{background:#66d7d1}.admin-chart-tooltip-dot.series-devices{background:#f2bd63}.admin-chart-tooltip-dot.series-api-ok{background:#65d79a}.admin-chart-tooltip-dot.series-api-bad{background:#ff7e8c}
@media(max-width:900px){.dashboard-conversion-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.dashboard-conversion-kpis{grid-template-columns:1fr 1fr}.dashboard-delta{font-size:9px;padding:2px 5px}.dashboard-summary-value-row{align-items:flex-start;flex-direction:column;gap:4px}}


/* v0.15.87 — dedicated revenue analytics. */
.legend-revenue{background:#6d5dfc}
.dashboard-revenue-panel{padding-bottom:16px}
.dashboard-revenue-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:10px}
.dashboard-revenue-kpi{border:1px solid #293a54;background:#0f192a;border-radius:10px;padding:9px 11px;min-width:0}
.dashboard-revenue-kpi>span{display:block;color:#aab8cc;font-size:11px;margin-bottom:3px}
.dashboard-revenue-kpi-value{display:flex;align-items:baseline;justify-content:space-between;gap:8px}
.dashboard-revenue-kpi strong{font-size:17px;color:#eef3fb}
.dashboard-revenue-chart{min-height:260px}
.admin-chart-tooltip-dot.series-average-order{background:#7eb6ff}
@media(max-width:760px){.dashboard-revenue-kpis{grid-template-columns:1fr}.dashboard-revenue-kpi-value{align-items:flex-start}}
