:root {
  color-scheme: dark;
  --bg: #09111c;
  --bg-subtle: #0c1623;
  --surface: #101b2a;
  --surface-raised: #142235;
  --surface-hover: #18283d;
  --surface-active: #1b2c42;
  --border: #24344a;
  --border-strong: #31445e;
  --text: #edf2f7;
  --text-secondary: #b3bfce;
  --muted: #8491a3;
  --primary: #e3a62b;
  --primary-hover: #efb541;
  --primary-pressed: #cd8d1d;
  --primary-soft: rgba(227, 166, 43, .12);
  --success: #47b881;
  --success-soft: rgba(71, 184, 129, .13);
  --warning: #e3a62b;
  --warning-soft: rgba(227, 166, 43, .13);
  --danger: #ef6b73;
  --danger-soft: rgba(239, 107, 115, .12);
  --info: #75a7d8;
  --info-soft: rgba(117, 167, 216, .13);
  --sidebar-width: 276px;
  --sidebar-collapsed: 84px;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 15px;
  --shadow-card: 0 10px 30px rgba(0, 0, 0, .14);
  --shadow-menu: 8px 0 28px rgba(0, 0, 0, .16);
  --transition: 160ms ease;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100%; }
html { background: var(--bg); }
body {
  min-height: 100vh;
  overflow-x: clip;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary-hover); text-decoration: none; }
a:hover { color: #f5c768; text-decoration: none; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Authentication */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: var(--bg);
}
.login-card {
  width: 100%;
  max-width: 390px;
  padding: 28px 32px 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.login-language {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
}
.login-language a {
  min-width: 30px;
  padding: 4px 6px;
  border-radius: 6px;
  color: var(--muted);
  text-align: center;
  transition: color var(--transition), background var(--transition);
}
.login-language a:hover { color: var(--text); background: var(--surface-hover); }
.login-language a.active { color: var(--primary-hover); background: var(--primary-soft); }
.brand { margin-bottom: 22px; text-align: center; }
.brand-image {
  display: block;
  width: 210px;
  max-width: 78%;
  height: auto;
  margin: 0 auto 16px;
  object-fit: contain;
}
.brand-logo { color: var(--text); font-size: 25px; font-weight: 750; letter-spacing: -.02em; }
.login-title { margin: 0 0 5px; color: #fff; font-size: 22px; line-height: 1.3; text-align: center; }
.login-subtitle { margin: 0 0 24px; color: var(--muted); font-size: 14px; text-align: center; }

/* Application shell */
.shell { display: flex; min-height: 100vh; }
.sidebar {
  position: sticky;
  top: 0;
  z-index: 999;
  display: flex;
  flex: 0 0 var(--sidebar-width);
  flex-direction: column;
  width: var(--sidebar-width);
  height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  border-right: 1px solid var(--border);
  background: #0d1826;
  box-shadow: var(--shadow-menu);
  transition: width 220ms ease, flex-basis 220ms ease, transform 220ms ease;
}
.sidebar-brand {
  display: flex;
  min-height: 102px;
  align-items: center;
  padding: 22px 22px 18px;
  border-bottom: 1px solid rgba(49, 68, 94, .62);
}
.sidebar-brand-link {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 13px;
  color: var(--text);
}
.sidebar-brand-link:hover { color: var(--text); }
.sidebar-brand-mark {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
}
.sidebar-brand-copy { min-width: 0; line-height: 1.22; white-space: nowrap; }
.sidebar-brand-name { display: block; color: #fff; font-size: 18px; font-weight: 750; letter-spacing: -.02em; }
.sidebar-brand-product { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; }
.sidebar-nav {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 5px;
  padding: 20px 13px;
}
.sidebar-link {
  position: relative;
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 14px;
  padding: 11px 14px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 580;
  white-space: nowrap;
  transition: color var(--transition), background var(--transition), border-color var(--transition);
}
.sidebar-link::before {
  position: absolute;
  top: 9px;
  bottom: 9px;
  left: -14px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: transparent;
  content: "";
}
.sidebar-link:hover { border-color: rgba(49, 68, 94, .68); background: var(--surface-hover); color: #fff; }
.sidebar-link.active { border-color: rgba(227, 166, 43, .2); background: var(--primary-soft); color: #fff; }
.sidebar-link.active::before { background: var(--primary); }
.sidebar-icon {
  display: inline-flex;
  width: 23px;
  height: 23px;
  flex: 0 0 23px;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}
.sidebar-icon svg { width: 22px; height: 22px; }
.sidebar-link:hover .sidebar-icon { color: var(--text-secondary); }
.sidebar-link.active .sidebar-icon { color: var(--primary-hover); }
.sidebar-label { overflow: hidden; text-overflow: ellipsis; }
.sidebar-footer { padding: 4px 13px 22px; }
.sidebar-divider { height: 1px; margin: 5px 8px 15px; border: 0; background: var(--border); }
.sidebar.closed { width: var(--sidebar-collapsed); flex-basis: var(--sidebar-collapsed); }
.sidebar.closed .sidebar-brand { justify-content: center; padding-right: 18px; padding-left: 18px; }
.sidebar.closed .sidebar-brand-copy,
.sidebar.closed .sidebar-label { width: 0; opacity: 0; pointer-events: none; }
.sidebar.closed .sidebar-brand-link { gap: 0; }
.sidebar.closed .sidebar-nav,
.sidebar.closed .sidebar-footer { padding-right: 12px; padding-left: 12px; }
.sidebar.closed .sidebar-link { justify-content: center; gap: 0; padding-right: 12px; padding-left: 12px; }
.sidebar.closed .sidebar-link::before { left: -12px; }

.main { min-width: 0; flex: 1; padding: 30px clamp(22px, 3vw, 42px) 44px; }
.topbar {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}
.left-top { display: flex; min-width: 0; align-items: center; gap: 14px; }
.topbar h1 { margin: 0; overflow: hidden; color: #fff; font-size: 26px; font-weight: 720; letter-spacing: -.025em; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.menu-toggle {
  display: inline-flex;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text-secondary);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), color var(--transition);
}
.menu-toggle svg { width: 21px; height: 21px; }
.menu-toggle:hover { border-color: var(--border-strong); background: var(--surface-hover); color: #fff; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.language-link {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 7px 11px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: var(--primary-hover);
  font-size: 13px;
  font-weight: 680;
  transition: background var(--transition), border-color var(--transition);
}
.language-link:hover { border-color: rgba(227, 166, 43, .2); background: var(--primary-soft); color: #f5c768; }
.user-chip {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 9px;
  padding: 7px 12px 7px 9px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 13px;
}
.user-chip-icon {
  display: inline-flex;
  width: 26px;
  height: 26px;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: var(--surface-raised);
  color: var(--muted);
}
.user-chip-icon svg { width: 16px; height: 16px; }
.user-chip b { max-width: 180px; overflow: hidden; color: #fff; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.overlay { position: fixed; inset: 0; z-index: 998; background: rgba(2, 7, 13, .68); opacity: 0; pointer-events: none; transition: opacity 220ms ease; }
.overlay.show { opacity: 1; pointer-events: auto; }

/* Layout and cards */
.card {
  margin: 0 0 24px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.card h2 { margin: 0 0 16px; color: #fff; font-size: 18px; font-weight: 690; letter-spacing: -.015em; line-height: 1.35; }
.card h2 + .muted { margin-top: -8px; margin-bottom: 18px; }
.card p { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.section-form { margin-top: 18px; }
.page-back { margin-bottom: 18px; }
.grid-full { grid-column: 1 / -1; }
.form-action-row { display: flex; align-self: end; gap: 10px; flex-wrap: wrap; }
.action-row { display: flex; align-items: center; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.toolbar { display: flex; align-items: center; gap: 12px; margin: 16px 0 18px; flex-wrap: wrap; }
.toolbar .muted { flex: 1 1 320px; }
.control-sm { max-width: 120px; }
.control-md { max-width: 200px; }
.control-lg { max-width: 280px; }
.code-block { display: block; margin: 12px 0; padding: 12px 14px; word-break: break-all; }
.inline-form { display: inline-flex; align-items: center; gap: 8px; }
.table-actions { white-space: nowrap; }
.table-actions > * { margin: 2px 0 2px 5px; }
.center { text-align: center; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.stat-icon {
  display: inline-flex;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(227, 166, 43, .22);
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary-hover);
}
.stat-icon svg { width: 21px; height: 21px; }
.stat-title { color: var(--text-secondary); font-size: 13px; font-weight: 620; }
.stat-value { margin-top: 3px; color: #fff; font-size: 21px; font-weight: 720; line-height: 1.15; }
.stat-meta { margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.35; }

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}
.metric-card {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 22px;
}
.metric-card-head { display: flex; align-items: center; gap: 13px; }
.metric-icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(227, 166, 43, .22);
  border-radius: 11px;
  background: var(--primary-soft);
  color: var(--primary-hover);
}
.metric-icon svg { width: 22px; height: 22px; }
.metric-title { color: var(--text-secondary); font-size: 15px; font-weight: 650; }
.metric-value-row { display: flex; align-items: baseline; gap: 9px; margin-top: 20px; }
.metric-value { color: #fff; font-size: 38px; font-weight: 740; letter-spacing: -.04em; line-height: 1; }
.metric-unit { color: var(--muted); font-size: 14px; font-weight: 560; }
.metric-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 18px; color: var(--muted); font-size: 13px; }
.metric-link { display: inline-flex; align-items: center; gap: 5px; color: var(--primary-hover); font-weight: 650; }
.metric-link:hover { color: #f5c768; }

/* Forms */
label { display: block; margin-bottom: 7px; color: var(--text-secondary); font-size: 13px; font-weight: 620; line-height: 1.35; }
input[type=text],
input[type=password],
input[type=number],
input[type=url],
input[type=email],
input[type=datetime-local],
input[type=search],
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 13px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  outline: none;
  background: var(--bg-subtle);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}
input::placeholder, textarea::placeholder { color: #647287; opacity: 1; }
input:hover, select:hover, textarea:hover { border-color: #405675; }
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(227, 166, 43, .13); background: #0b1522; }
input:disabled, select:disabled, textarea:disabled { cursor: not-allowed; opacity: .58; }
input[readonly] { border-style: dashed; color: var(--text-secondary); }
input[type=checkbox], input[type=radio] { width: 17px; height: 17px; accent-color: var(--primary); }
textarea { min-height: 112px; resize: vertical; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.form-row { margin-bottom: 18px; }
.form-grid, .form-grid-3 { display: grid; gap: 18px 20px; }
.form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid .form-row, .form-grid-3 .form-row { margin-bottom: 0; }
.provider-credential-section { margin: 24px 0; padding: 20px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-subtle); transition: opacity var(--transition), border-color var(--transition); }
.provider-credential-section h3 { margin: 0 0 18px; color: #fff; font-size: 15px; font-weight: 680; }
.provider-credential-section.is-disabled { opacity: .52; }
.provider-meta { display: block; margin: 6px 0; color: var(--muted); font-size: 12px; white-space: nowrap; }
.capacity-summary { display: flex; align-items: center; gap: 18px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); color: var(--text-secondary); font-size: 13px; flex-wrap: wrap; }
.capacity-summary b { color: #fff; }
.capacity-summary.capacity-warning { color: #f1c464; }
.sync-account-readonly { display: flex; min-height: 44px; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-subtle); color: var(--text-secondary); flex-wrap: wrap; }
.provider-stack { display: grid; min-width: 250px; gap: 10px; }
.provider-stack-item { padding-bottom: 9px; border-bottom: 1px solid rgba(49, 68, 94, .48); }
.provider-stack-item:last-child { padding-bottom: 0; border-bottom: 0; }
.provider-stack-item > .badge { margin-left: 8px; }

/* Buttons */
.btn {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 16px;
  border: 1px solid var(--primary);
  border-radius: 9px;
  background: var(--primary);
  box-shadow: none;
  color: #171108;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: background var(--transition), border-color var(--transition), color var(--transition), transform 80ms ease;
}
.btn:hover { border-color: var(--primary-hover); background: var(--primary-hover); color: #171108; }
.btn:active { transform: translateY(1px); background: var(--primary-pressed); }
.btn:disabled { cursor: not-allowed; opacity: .48; transform: none; }
.btn-block { display: flex; width: 100%; }
.btn-secondary { border-color: var(--border-strong); background: var(--surface-raised); color: var(--text); }
.btn-secondary:hover { border-color: #465d7d; background: var(--surface-hover); color: #fff; }
.btn-danger, .danger-btn { border-color: rgba(239, 107, 115, .45); background: var(--danger-soft); color: #ffb3b8; }
.btn-danger:hover, .danger-btn:hover { border-color: rgba(239, 107, 115, .72); background: rgba(239, 107, 115, .19); color: #ffd3d6; }
.btn-sm { min-height: 34px; padding: 7px 11px; border-radius: 8px; font-size: 12.5px; }

/* Tables */
.table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-subtle); }
.persistent-x-scroll { display: none; position: fixed; bottom: 6px; z-index: 1200; height: 18px; overflow-x: auto; overflow-y: hidden; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--surface); box-shadow: 0 6px 20px rgba(0, 0, 0, .55); }
.persistent-x-scroll.is-visible { display: block; }
.persistent-x-scroll__spacer { height: 1px; }
.persistent-x-scroll::-webkit-scrollbar { height: 14px; }
.persistent-x-scroll::-webkit-scrollbar-track { background: var(--bg); border-radius: 7px; }
.persistent-x-scroll::-webkit-scrollbar-thumb { background: #52667f; border: 2px solid var(--bg); border-radius: 7px; }
.persistent-x-scroll::-webkit-scrollbar-thumb:hover { background: #7188a4; }
.persistent-table-head { display: none; position: fixed; z-index: 1100; overflow: hidden; pointer-events: none; border: 1px solid var(--border-strong); border-radius: 8px 8px 0 0; background: var(--surface-raised); box-shadow: 0 8px 18px rgba(0, 0, 0, .42); }
.persistent-table-head.is-visible { display: block; }
.persistent-table-head table { margin: 0; border-collapse: separate; border-spacing: 0; background: var(--surface-raised); will-change: transform; }
.persistent-table-head thead, .persistent-table-head tr, .persistent-table-head th { background: var(--surface-raised); }
table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
th, td { padding: 13px 15px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; }
th {
  background: var(--surface-raised);
  color: var(--text-secondary);
  font-size: 11.5px;
  font-weight: 720;
  letter-spacing: .055em;
  line-height: 1.35;
  text-transform: uppercase;
  white-space: nowrap;
}
tbody tr { transition: background var(--transition); }
tbody tr:hover { background: var(--surface-hover); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr.row-hidden { opacity: .58; }
td b { color: #fff; font-weight: 650; }
td .thumb { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; background: var(--surface-raised); }
.table-code { font-size: 12px; }
.right { text-align: right; }

.badge, .badge-custom {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  justify-content: center;
  padding: 3px 9px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .015em;
  line-height: 1.15;
  white-space: nowrap;
}
.badge-active, .badge-ok { border-color: rgba(71, 184, 129, .25); background: var(--success-soft); color: #7dd9aa; }
.badge-suspended { border-color: rgba(239, 107, 115, .25); background: var(--danger-soft); color: #ff9da3; }
.badge-warn { border-color: rgba(227, 166, 43, .25); background: var(--warning-soft); color: #f1c464; }
.badge-custom { margin-left: 6px; border-color: rgba(117, 167, 216, .28); background: var(--info-soft); color: #a9c9e7; }

/* Feedback and helpers */
.alert { margin-bottom: 20px; padding: 13px 15px; border: 1px solid; border-radius: 10px; font-size: 14px; }
.alert-error { border-color: rgba(239, 107, 115, .28); background: var(--danger-soft); color: #ffb0b5; }
.alert-success { border-color: rgba(71, 184, 129, .28); background: var(--success-soft); color: #91dfba; }
.alert-warn { border-color: rgba(227, 166, 43, .28); background: var(--warning-soft); color: #f1c464; }
.muted { color: var(--muted); }
.flex-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 14px; }
.mt-4 { margin-top: 22px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 14px; }
code { padding: 3px 7px; border: 1px solid rgba(49, 68, 94, .68); border-radius: 6px; background: var(--bg-subtle); color: #c9d3df; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; }

/* Xtream Preview */
.preview-heading h2 { margin-bottom: 10px; }
.preview-heading .muted { margin-bottom: 0; }
.preview-filters { margin-top: 20px; }
.content-availability-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.availability-card { display: flex; min-height: 92px; flex-direction: column; justify-content: center; gap: 5px; margin: 0; }
.availability-card strong { color: #fff; font-size: 17px; }
.availability-card span { color: var(--muted); font-size: 13px; }
.availability-card.is-active { border-color: rgba(71, 184, 129, .28); }
.availability-card.is-disabled { opacity: .58; }
.preview-table { min-width: 1180px; }
.preview-logo { display: block; width: 54px; height: 42px; padding: 3px; border: 1px solid var(--border); border-radius: 7px; background: var(--bg); object-fit: contain; }
.preview-indicators { display: flex; gap: 5px; margin-top: 7px; flex-wrap: wrap; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 18px; color: var(--muted); font-size: 13px; }
.raw-response summary { color: #fff; cursor: pointer; font-size: 16px; font-weight: 680; }
.raw-response[open] summary { margin-bottom: 16px; }
.raw-json { max-height: 560px; overflow: auto; margin: 18px 0 0; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); background: #07101a; color: #ced8e4; font: 12px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre; }

/* Curator components shared by Categories and Content */
.bulk-box {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 16px;
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-subtle);
  flex-wrap: wrap;
}
.bulk-box select { max-width: 290px; }
.checkline { display: inline-flex; align-items: center; gap: 8px; margin: 0; color: var(--text-secondary); font-size: 13px; font-weight: 600; }
.select-col { width: 46px; text-align: center; }
.move-col { width: 66px; text-align: center; }
.order-col { width: 82px; min-width: 82px; text-align: center; }
.status-col { width: 82px; text-align: center; }
.id-col { width: 86px; white-space: nowrap; }
.logo-col { width: 90px; text-align: center; }
.order-input {
  width: 60px !important;
  min-width: 60px !important;
  max-width: 60px !important;
  min-height: 36px !important;
  height: 36px !important;
  padding: 5px !important;
  border-color: var(--border-strong) !important;
  background: #09121e !important;
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 720 !important;
  line-height: 1.15;
  text-align: center !important;
  appearance: textfield;
  -moz-appearance: textfield;
}
.order-input::-webkit-outer-spin-button, .order-input::-webkit-inner-spin-button { margin: 0; -webkit-appearance: none; }
.drag-handle {
  display: inline-flex;
  width: 42px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  background: var(--surface-raised);
  color: var(--text-secondary);
  cursor: grab;
  font-size: 19px;
  font-weight: 750;
  touch-action: none;
  user-select: none;
}
.drag-handle:hover { border-color: #465d7d; background: var(--surface-hover); color: #fff; }
.drag-handle:active { cursor: grabbing; }
.cat-row.dragging, .chan-row.dragging { opacity: .45; background: var(--primary-soft); }
.cat-row.row-hidden, .chan-row.row-hidden { opacity: .58; }
.cat-row.row-hidden .order-input, .chan-row.row-hidden .order-input { color: var(--muted) !important; }
.chan-row:has(.row-select:checked), .cat-row:has(.category-select:checked) { background: var(--primary-soft); box-shadow: inset 3px 0 0 var(--primary); }
.cat-row.drag-over, .chan-row.drag-over { outline: 2px solid rgba(227, 166, 43, .65); outline-offset: -2px; }
.cat-row.drag-before, .chan-row.drag-before { box-shadow: inset 0 3px 0 var(--primary); }
.cat-row.drag-after, .chan-row.drag-after { box-shadow: inset 0 -3px 0 var(--primary); }
.content-table th, .content-table td { vertical-align: middle; }
.curation-table th, .curation-table td,
.content-table th, .content-table td { padding: 8px 9px; }
.curation-table { font-size: 15px; }
.curation-table input[type=text],
.content-table input[type=text],
.content-table input[type=url] { min-height: 44px; height: 44px; padding: 8px 11px; border-radius: 6px; font-size: 15px; }
.channel-editor-table { min-width: 1420px; font-size: 14px; }
.channel-editor-table th { padding-top: 8px; padding-bottom: 8px; font-size: 11px; letter-spacing: .025em; white-space: nowrap; }
.channel-editor-table td { padding-top: 7px; padding-bottom: 7px; line-height: 1.2; }
.name-original-col, .name-original-cell { min-width: 145px; }
.name-original-cell { max-width: 220px; line-height: 1.2; }
.custom-logo-cell { display: flex; min-width: 245px; align-items: center; gap: 6px; flex-wrap: nowrap; }
.logo-url-input { min-width: 175px !important; max-width: 205px; }
.upload-mini {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 8px 11px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--surface-raised);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 12px;
  font-weight: 680;
  white-space: nowrap;
}
.upload-mini input { display: none; }
.upload-mini:hover { border-color: #465d7d; background: var(--surface-hover); color: #fff; }
.bulk-logo-upload { min-height: 42px; }
.curator-toolbar { position: sticky; top: 8px; z-index: 40; box-shadow: 0 10px 24px rgba(0, 0, 0, .24); }
.fusion-sticky-toolbar {
  gap: 9px;
  border: 1px solid var(--border-strong);
  background: rgba(12, 25, 42, .98);
  backdrop-filter: blur(10px);
}
.fusion-sticky-toolbar input[type=search] { min-width: 210px; flex: 1 1 240px; }
.fusion-sticky-toolbar select { max-width: 250px; }
.fusion-scope-note { margin: 12px 0; }
.fusion-edit-table { min-width: 1420px; }
.category-edit-table { min-width: 1500px; }
.fusion-edit-table td { vertical-align: middle; }
.fusion-edit-table input[type=text] { min-width: 205px; }
.fusion-name-cell { min-width: 455px; }
.fusion-name-editor {
  display: grid;
  grid-template-columns: minmax(260px, .9fr) minmax(320px, 1.1fr);
  align-items: center;
  gap: 10px;
}
.fusion-source-name { color: #fff; font-weight: 700; line-height: 1.2; }
.fusion-published-field { min-width: 0; }
.fusion-published-field input { min-width: 260px !important; }
.fusion-published-field .provider-meta { display: none; }
.fusion-url-input { min-width: 270px !important; }
.fusion-logo-preview {
  display: block;
  width: 58px;
  height: 36px;
  margin-top: 7px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--bg);
  object-fit: contain;
}
.fusion-logo-controls { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; margin: 10px 0; }
.fusion-row-upload { margin-top: 7px; margin-left: 7px; }
.save-status { min-width: 74px; font-size: 12px; font-weight: 680; }
.save-status-ok { color: #7dd9aa; }
.save-status-error { color: #ff9da3; }
.logo-preview { width: 48px; max-width: 48px; height: 34px; max-height: 34px; padding: 2px; border: 1px solid var(--border); border-radius: 5px; background: var(--bg); object-fit: contain; }

@media (max-width: 1100px) {
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .content-availability-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .stats-grid { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(var(--sidebar-width), 86vw);
    max-width: 310px;
    transform: translateX(-100%);
  }
  .sidebar.mobile-open { transform: translateX(0); }
  .sidebar.closed { width: min(var(--sidebar-width), 86vw); }
  .sidebar.closed .sidebar-brand { justify-content: flex-start; padding-right: 22px; padding-left: 22px; }
  .sidebar.closed .sidebar-brand-copy, .sidebar.closed .sidebar-label { width: auto; opacity: 1; pointer-events: auto; }
  .sidebar.closed .sidebar-brand-link { gap: 13px; }
  .sidebar.closed .sidebar-nav, .sidebar.closed .sidebar-footer { padding-right: 13px; padding-left: 13px; }
  .sidebar.closed .sidebar-link { justify-content: flex-start; gap: 14px; padding-right: 14px; padding-left: 14px; }
  .sidebar.closed .sidebar-link::before { left: -14px; }
  .main { width: 100%; padding: 22px 18px 36px; }
  .topbar { margin-bottom: 22px; }
  .topbar h1 { font-size: 22px; }
  .form-grid, .form-grid-3 { grid-template-columns: 1fr; }
  .fusion-name-editor { display: block; }
  .fusion-published-field { margin-top: 7px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .metric-card { min-height: 172px; }
}

@media (max-width: 520px) {
  .login-wrap { padding: 16px; }
  .login-card { padding: 24px 22px 28px; }
  .brand-image { width: 190px; }
  .brand-logo { font-size: 23px; }
  .login-title { font-size: 20px; }
  .main { padding: 16px 13px 30px; }
  .topbar { align-items: flex-start; }
  .topbar-actions { gap: 5px; }
  .language-link { min-height: 36px; padding: 6px 8px; }
  .user-chip { padding: 6px; }
  .user-chip b { display: none; }
  .card { padding: 19px; }
  .toolbar { align-items: stretch; }
  .toolbar input[type=search] { max-width: none; }
  .btn { width: 100%; }
  .table-actions .btn, .inline-form .btn, .bulk-box .btn, .form-action-row .btn { width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* Live channel curation preview */
.preview-col { width: 76px; min-width: 76px; text-align: center; }
.channel-preview-btn { min-width: 42px; padding-right: 11px; padding-left: 11px; }
/* Keep page scroll enabled while the floating preview is open. */
body.preview-open { overflow: auto; }
.channel-preview-modal {
  position: fixed;
  top: 78px;
  right: 18px;
  bottom: auto;
  left: auto;
  z-index: 3000;
  display: block;
  width: min(460px, calc(100vw - 36px));
  padding: 0;
  background: transparent;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity var(--transition), transform var(--transition);
}
.channel-preview-modal[hidden] { display: none; }
.channel-preview-modal.is-open {
  opacity: 1;
  transform: translateY(0);
}
.channel-preview-dialog {
  width: 100%;
  max-height: calc(100vh - 96px);
  overflow: auto;
  padding: 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 18px 55px rgba(0, 0, 0, .55);
  pointer-events: auto;
}
.channel-preview-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.channel-preview-header h2 {
  margin: 2px 0 0;
  font-size: 17px;
  line-height: 1.2;
}
.channel-preview-kicker {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 720;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.channel-preview-close { flex: 0 0 auto; min-width: 36px; }
.channel-preview-video-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #03070c;
  aspect-ratio: 16 / 9;
}
.channel-preview-video {
  display: block;
  width: 100%;
  height: 100%;
  background: #03070c;
  object-fit: contain;
}
.channel-preview-overlay {
  position: absolute;
  top: 9px;
  right: 9px;
  left: 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  pointer-events: none;
}
.channel-preview-overlay #channelPreviewStatus {
  min-width: 0;
  max-width: calc(100% - 66px);
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.25;
}
.channel-preview-timer {
  padding: 4px 8px;
  border: 1px solid var(--border-strong);
  border-radius: 7px;
  background: rgba(9, 17, 28, .88);
  color: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.2;
}
.channel-preview-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 10px;
}
.channel-preview-meta > div {
  min-width: 0;
  padding: 7px 9px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-subtle);
}
.channel-preview-meta span {
  display: block;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
}
.channel-preview-meta strong {
  display: block;
  overflow: hidden;
  color: #fff;
  font-size: 12.5px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.channel-preview-actions {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 10px;
  flex-wrap: nowrap;
}
.channel-preview-actions .btn {
  flex: 1 1 0;
  min-width: 0;
  padding-right: 8px;
  padding-left: 8px;
  white-space: nowrap;
}
/* This explanation is useful in documentation, but wastes space in a floating curation window. */
.channel-preview-note { display: none; }

@media (max-width: 768px) {
  .channel-preview-modal {
    top: auto;
    right: 10px;
    bottom: 10px;
    left: 10px;
    width: auto;
  }
  .channel-preview-dialog {
    width: 100%;
    max-height: calc(100vh - 20px);
    padding: 11px;
  }
  .channel-preview-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .channel-preview-actions { gap: 5px; }
  .channel-preview-actions .btn { font-size: 12px; }
}

@media (max-width: 480px) {
  .channel-preview-meta { grid-template-columns: 1fr; }
}

/* Live channel health curation */
.channel-main-toolbar { position: relative; align-items: center; }
.channel-main-toolbar .health-check-category-btn { white-space: nowrap; }
.channel-toolbar-hint { min-width: 260px; }
.status-col { width: 64px; min-width: 64px; text-align: center; }
.status-lights { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-width: 34px; }
.status-light {
  display: inline-block;
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  box-shadow: 0 0 0 2px rgba(255,255,255,.035);
  vertical-align: middle;
}
.status-light.catalog-active { background: #4169e1; box-shadow: 0 0 8px rgba(65,105,225,.42); }
.status-light.catalog-missing { background: #586575; }
.status-light.health-online { background: #47b881; box-shadow: 0 0 8px rgba(71,184,129,.38); }
.status-light.health-slow { background: #e5ae3d; box-shadow: 0 0 8px rgba(229,174,61,.32); }
.status-light.health-offline { background: #ef6b73; box-shadow: 0 0 8px rgba(239,107,115,.34); }
.status-light.health-unknown { background: #7f8b99; opacity: .72; }
.duplicate-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  margin-left: 6px;
  padding: 2px 6px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--bg-subtle);
  color: var(--muted);
  font-size: 10px;
  font-weight: 760;
  line-height: 1.25;
  vertical-align: middle;
}
.channel-health-legend { position: relative; flex: 0 0 auto; }
.channel-health-legend > summary {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.channel-health-legend > summary::-webkit-details-marker { display: none; }
.channel-health-legend[open] > summary { border-color: var(--border-strong); }
.channel-health-legend-panel {
  position: absolute;
  top: calc(100% + 7px);
  right: 0;
  z-index: 120;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  width: 310px;
  padding: 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 16px 38px rgba(0,0,0,.42);
}
.channel-health-legend-panel > span { display: flex; align-items: center; gap: 9px; color: var(--text-soft); font-size: 12px; }
.channel-health-legend-panel .duplicate-badge { margin-left: 0; }
.legend-preview-symbol { min-width: 10px; color: var(--text); font-size: 11px; }
.channel-health-progress {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 2900;
  width: min(340px, calc(100vw - 36px));
  padding: 13px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: rgba(12,25,42,.98);
  box-shadow: 0 18px 46px rgba(0,0,0,.46);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--transition), transform var(--transition);
}
.channel-health-progress[hidden] { display: none; }
.channel-health-progress.is-open { opacity: 1; transform: translateY(0); }
.channel-health-progress-head,
.channel-health-progress-line,
.channel-health-progress-stats { display: flex; align-items: center; gap: 10px; }
.channel-health-progress-head { justify-content: space-between; margin-bottom: 9px; }
.channel-health-progress-head strong { font-size: 13px; }
.channel-health-progress-line { justify-content: space-between; color: var(--text-soft); font-size: 12px; }
.channel-health-progress-line strong { color: #fff; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.channel-health-progress-stats { margin-top: 9px; font-size: 12px; flex-wrap: wrap; }
.health-stat-online { color: #7dd9aa; }
.health-stat-slow { color: #f0c56b; }
.health-stat-offline { color: #ff9da3; }
.channel-health-progress-stats .muted { margin-left: auto; font-size: 11px; }

@media (max-width: 768px) {
  .channel-health-legend-panel { right: auto; left: 0; width: min(310px, calc(100vw - 48px)); }
  .channel-health-progress { right: 10px; bottom: 10px; width: min(340px, calc(100vw - 20px)); }
}

/* Live category compare + auto-order */
.category-order-modal {
  position: fixed;
  inset: 0;
  z-index: 3100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(3, 8, 14, .72);
  opacity: 0;
  transition: opacity var(--transition);
}
.category-order-modal[hidden] { display: none; }
.category-order-modal.is-open { opacity: 1; }
.category-order-dialog {
  width: min(940px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 18px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 22px 64px rgba(0,0,0,.52);
}
.category-order-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}
.category-order-header h2 { margin: 2px 0 0; }
.category-order-kicker {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 760;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.category-order-target { margin: 0 0 6px; }
.category-order-scope { margin: 0 0 14px; font-size: 11px; }
.category-order-target strong { color: var(--text); }
.category-order-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.category-order-controls .form-row { margin: 0; }
.category-order-options {
  display: flex;
  gap: 18px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.category-order-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
}
.category-order-results { margin-top: 16px; }
.category-order-summary {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}
.category-order-stat {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
}
.category-order-stat strong {
  display: block;
  color: #fff;
  font-size: 18px;
  line-height: 1.1;
}
.category-order-stat span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.25;
}
.category-order-note { margin: 10px 0; }
.category-order-preview-wrap {
  max-height: 340px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.category-order-preview-table { min-width: 720px; }
.category-order-preview-table th:first-child,
.category-order-preview-table td:first-child { width: 54px; text-align: center; }
.category-order-preview-table td:nth-child(4),
.category-order-preview-table td:nth-child(5) { white-space: nowrap; }
.category-order-row-changed td:first-child { color: var(--accent); font-weight: 800; }
.category-order-status { min-height: 20px; margin-top: 10px; }

@media (max-width: 900px) {
  .category-order-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .category-order-modal { padding: 10px; }
  .category-order-dialog { width: 100%; max-height: calc(100vh - 20px); padding: 13px; }
  .category-order-controls { grid-template-columns: 1fr; }
  .category-order-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-order-actions { justify-content: stretch; }
  .category-order-actions .btn { flex: 1 1 0; }
}

/* Shared name tools: Smart Title Case companion + symbol/flag palette */
.name-tools-dialog { width: min(760px, calc(100vw - 48px)); }
.name-tools-note { margin: 0 0 14px; font-size: 12px; line-height: 1.45; }
.name-tools-section { margin-top: 14px; }
.name-tools-section > strong { display: block; margin-bottom: 7px; color: var(--text-secondary); font-size: 12px; }
.name-tools-palette { display: flex; flex-wrap: wrap; gap: 7px; }
.name-token {
  min-width: 42px;
  min-height: 38px;
  padding: 6px 10px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--surface-raised);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 18px;
  line-height: 1;
}
.name-token:hover,
.name-token.is-selected { border-color: var(--primary); background: var(--primary-soft); }
.name-token-tag { min-width: 54px; font-size: 13px; font-weight: 760; }
.name-tools-token-row { display: grid; grid-template-columns: minmax(150px, .6fr) minmax(180px, 1fr); align-items: center; gap: 10px; margin-top: 16px; }
.name-tools-token-row label { margin: 0; color: var(--text-secondary); font-size: 12px; font-weight: 680; }
.name-tools-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.name-tools-status { min-height: 20px; margin-top: 10px; font-size: 12px; }
@media (max-width: 680px) {
  .name-tools-dialog { width: 100%; }
  .name-tools-token-row { grid-template-columns: 1fr; }
  .name-tools-actions .btn { flex: 1 1 46%; }
}

/* v1.6.24 consolidated server-side name token tools */
.name-token-tools {
  position: relative;
  display: inline-block;
  vertical-align: middle;
}
.name-token-tools > summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-raised);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}
.name-token-tools > summary::-webkit-details-marker { display: none; }
.name-token-tools[open] > summary { border-color: var(--primary); background: var(--primary-soft); }
.name-token-tools-panel {
  position: absolute;
  z-index: 3600;
  top: calc(100% + 7px);
  left: 0;
  width: min(560px, calc(100vw - 44px));
  padding: 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface-raised);
  box-shadow: 0 18px 48px rgba(0,0,0,.35);
}
.name-token-tools-note { margin: 0 0 12px; font-size: 11px; line-height: 1.45; }
.name-token-tools-grid {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr);
  gap: 10px;
}
.name-token-tools-grid .form-row { margin: 0; }
.name-token-tools-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.name-token-tools-actions .btn { flex: 1 1 auto; }
.category-order-page { max-width: 1180px; margin-inline: auto; }
@media (max-width: 680px) {
  .name-token-tools { position: static; }
  .name-token-tools-panel { left: 12px; right: 12px; width: auto; }
  .name-token-tools-grid { grid-template-columns: 1fr; }
}


/* Catalog Control consolidation */
.fusion-edit-table{min-width:1420px}
.category-edit-table{min-width:1500px}
.fusion-edit-table th,.fusion-edit-table td,.category-edit-table th,.category-edit-table td{padding:5px 7px;vertical-align:middle;line-height:1.15}
.fusion-edit-table input[type=text],.category-edit-table input[type=text]{min-height:34px!important;height:34px!important;padding:5px 9px!important;border-radius:5px!important;font-size:15px}
.fusion-edit-table .fusion-name-cell,.category-edit-table .fusion-name-cell{min-width:455px}
.fusion-edit-table .fusion-name-editor,.category-edit-table .fusion-name-editor{grid-template-columns:minmax(260px,.9fr) minmax(320px,1.1fr);gap:10px}
.fusion-edit-table .fusion-published-field input,.category-edit-table .fusion-published-field input{min-width:260px!important}
.fusion-edit-table .fusion-url-input{min-width:235px!important}
.fusion-edit-table .provider-meta{font-size:10px;line-height:1.1;margin-top:2px;max-width:190px}
.fusion-edit-table .fusion-published-field .provider-meta,.category-edit-table .fusion-published-field .provider-meta{display:none}
.fusion-edit-table .fusion-logo-preview{width:44px;height:28px;margin-top:3px;padding:2px;border-radius:4px}
.category-edit-table .fusion-name-cell{min-width:720px}

