.admin-shell {
  --primary: #1d62df;
  --ink: #202939;
  --muted: #697586;
  --line: #e4e8ee;
  min-height: 100vh;
  background: #fff;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0;
}
.admin-shell [hidden] {
  display: none !important;
}
.admin-shell .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.admin-shell button,
.admin-shell .link-button {
  gap: 8px;
  border-radius: 6px;
  min-height: 38px;
  color: #344054;
  font-weight: 500;
}
.admin-shell button.primary,
.admin-shell .link-button.primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.admin-shell button.primary:hover,
.admin-shell .link-button.primary:hover {
  background: #174eaf;
}
.admin-shell button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.admin-shell :is(button, a, input, select, textarea):focus-visible {
  outline: 3px solid #bfd7ff;
  outline-offset: 2px;
}
.admin-shell :is(input, select, textarea) {
  border-radius: 6px;
  font-size: 13px;
  min-width: 0;
  font-weight: 400;
}
.admin-shell input[type="checkbox"] {
  width: 17px;
  height: 17px;
  min-height: 17px;
  margin: 0;
  accent-color: var(--primary);
  cursor: pointer;
  flex: 0 0 17px;
}
.admin-shell label {
  font-weight: 500;
}
.admin-shell h1,
.admin-shell h2,
.admin-shell p {
  overflow-wrap: anywhere;
}
.admin-shell .ui-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.admin-shell .icon-button {
  position: relative;
  width: 34px;
  min-height: 34px;
  height: 34px;
  padding: 7px;
  border-color: transparent;
  background: transparent;
  flex: 0 0 34px;
}
.admin-shell .icon-button:hover {
  border-color: #d8e2f3;
  background: #f0f5fe;
  color: var(--primary);
}
.admin-shell [data-tooltip]::after {
  content: attr(data-tooltip);
  pointer-events: none;
  position: absolute;
  z-index: 50;
  right: 0;
  top: calc(100% + 5px);
  width: max-content;
  max-width: 230px;
  padding: 5px 8px;
  background: #202939;
  color: white;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 400;
  white-space: normal;
  visibility: hidden;
  opacity: 0;
}
.admin-shell [data-tooltip]:is(:hover, :focus-visible)::after {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.15s 0.35s;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  width: 226px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: #fff;
  padding: 22px 14px 14px;
}
.sidebar-brand {
  width: 196px;
  height: 88px;
  overflow: hidden;
  margin: 0 0 20px;
  display: block;
}
.sidebar-brand .brand-logo {
  width: 196px;
  height: auto;
  max-width: none;
  transform: translateY(-15%);
}
.sidebar nav {
  display: grid;
  gap: 5px;
}
.admin-shell .nav-item {
  justify-content: flex-start;
  width: 100%;
  min-height: 43px;
  border: 0;
  padding: 10px 12px;
  font-size: 13px;
  background: transparent;
  color: #475467;
  white-space: normal;
  text-align: left;
}
.admin-shell .nav-item.active {
  color: #1557c0;
  background: #eaf2ff;
  font-weight: 600;
}
.admin-shell .nav-item:hover {
  background: #f1f5fa;
}
.sidebar-user {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 30px;
  gap: 8px;
  align-items: center;
}
.sidebar-user strong {
  font-size: 12px;
  display: block;
  overflow-wrap: anywhere;
}
.sidebar-user small {
  font-size: 11px;
}
.avatar {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: #edf1f7;
  color: #52677f;
  font-weight: 600;
  flex: 0 0 32px;
}
.admin-main {
  margin-left: 226px;
  min-width: 0;
}
.admin-topbar {
  min-height: 58px;
  padding: 12px 32px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fafbfd;
  color: var(--muted);
  font-size: 12px;
}
.admin-topbar strong {
  font-weight: 500;
  color: #344054;
}
.admin-topbar .ui-icon {
  width: 14px;
  height: 14px;
  flex-basis: 14px;
}
.admin-topbar [data-menu] {
  display: none;
}
.updated-at {
  margin-left: auto;
  font-size: 11px;
}
.admin-workspace {
  max-width: 1720px;
  margin: 0 auto;
  padding: 28px 32px 40px;
}
.page-title {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin: 0 0 24px;
}
.page-title > div:first-child {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
}
.page-title h1 {
  font-size: 25px;
  line-height: 1.2;
  color: #17223b;
  margin: 0;
  font-weight: 600;
}
.page-count {
  min-width: 28px;
  padding: 1px 7px;
  text-align: center;
  color: #667085;
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 12px;
}
.admin-shell .actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.metrics-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 6px 0 30px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.metrics-strip article {
  padding: 0 24px;
  border-right: 1px solid var(--line);
}
.metrics-strip article:first-child {
  padding-left: 0;
}
.metrics-strip article:last-child {
  border: 0;
}
.metrics-strip strong {
  font-size: 32px;
  line-height: 1.4;
  font-weight: 600;
  color: #152245;
}
.metric-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: #475467;
}
.metric-label i,
.status-badge i {
  display: inline-block;
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: currentColor;
}
.metric-label.neutral i {
  display: none;
}
.metric-label.success i {
  background: #17885c;
}
.metric-label.danger i {
  background: #c13c36;
}
.metric-label.warning i {
  background: #c18415;
}
.toolbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin: 0 0 18px;
}
.search-control {
  display: flex;
  align-items: center;
  position: relative;
  width: min(360px, 100%);
  min-width: 150px;
}
.search-control > .ui-icon {
  position: absolute;
  left: 11px;
  color: #8190a5;
  width: 17px;
  height: 17px;
  pointer-events: none;
}
.search-control input {
  padding-left: 36px;
  height: 38px;
  font-weight: 400;
}
.filter-control {
  max-width: 260px;
  min-width: 180px;
}
.admin-shell .filter-tabs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  border-bottom: 1px solid var(--line);
}
.admin-shell .filter-tabs button {
  border: 0;
  border-radius: 0;
  border-bottom: 2px solid transparent;
  min-height: 42px;
  background: transparent;
  padding: 8px 10px;
  font-size: 12px;
  color: #667085;
}
.admin-shell .filter-tabs button.active {
  color: #1458cc;
  border-bottom-color: var(--primary);
  background: transparent;
}
.filter-tabs button > span {
  font-size: 10px;
  padding: 0 5px;
  border-radius: 3px;
  background: #edf1f7;
  color: #52677f;
}
.bulk-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 16px;
  padding: 8px 12px;
  background: #eef4fe;
  border-bottom: 1px solid #d5e3fa;
  color: #204f97;
  font-size: 12px;
}
.admin-shell [data-bulk-delete] {
  color: #b42318;
  background: transparent;
  border-color: #e7c5c1;
}
.responsive-table {
  width: 100%;
}
.admin-shell .data-table {
  width: 100%;
  min-width: 0;
  table-layout: auto;
  border-collapse: collapse;
  font-size: 12px;
}
.data-table th {
  background: #f8f9fb;
  font-size: 11px;
  font-weight: 500;
  text-transform: none;
  color: #667085;
  padding: 11px 12px;
  white-space: normal;
}
.data-table td {
  padding: 15px 12px;
  overflow-wrap: anywhere;
  color: #475467;
}
.data-table td strong {
  color: #273449;
  font-weight: 500;
  display: block;
}
.data-table td small {
  margin-top: 3px;
  font-size: 11px;
}
.data-table tbody tr:hover {
  background: #fbfcff;
}
.data-table tbody tr.selected {
  background: #f1f6ff;
}
.data-table .check-cell {
  width: 34px;
  padding-left: 8px;
  padding-right: 4px;
}
.data-table .row-actions {
  width: 86px;
}
.row-actions {
  text-align: right;
  white-space: nowrap;
}
.row-actions > .ui-icon {
  color: #8a98aa;
}
.code-label {
  font-variant-numeric: tabular-nums;
}
.orientation-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.orientation-label .ui-icon {
  width: 16px;
  flex-basis: 16px;
}
.orientation-label.inverted .ui-icon {
  transform: rotate(180deg);
}
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 7px;
  border-radius: 4px;
  font-size: 10px;
  line-height: 1.4;
  font-weight: 500;
  color: #667085;
  background: #f0f2f5;
  white-space: nowrap;
}
.status-badge.success {
  color: #14764b;
  background: #e9f7ef;
}
.status-badge.danger {
  color: #b3322b;
  background: #fff0ee;
}
.status-badge.warning {
  color: #956413;
  background: #fff6e3;
}
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  font-size: 11px;
  color: #667085;
}
.pagination > div {
  display: flex;
  align-items: center;
  gap: 8px;
}
.page-number {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  background: #f0f5ff;
  border: 1px solid #d1e1ff;
  color: #195bc5;
  border-radius: 4px;
}
.view-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}
.view-toolbar .filter-tabs {
  border: 0;
  margin: 0;
}
.view-switch {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 5px;
  margin-bottom: 8px;
}
.admin-shell .view-switch .icon-button[aria-pressed="true"] {
  background: #eaf2ff;
  color: #1d62df;
}
.media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px 20px;
}
.media-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  min-width: 0;
  overflow: hidden;
  background: #fff;
}
.media-card.selected {
  border-color: #528bed;
  box-shadow: 0 0 0 1px #528bed;
}
.media-art {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  background: #f3f5f7;
}
.admin-shell .media-preview {
  width: 76px;
  height: 48px;
  min-width: 0;
  border: 0;
  border-radius: 4px;
  background: #f1f3f6;
  object-fit: contain;
  display: block;
  flex: 0 0 76px;
}
.media-art > .media-preview {
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: contain;
}
.media-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 48px;
  place-items: center;
  color: #a2aebc;
}
.media-placeholder .ui-icon {
  width: 32px;
  height: 32px;
}
.media-art > input {
  position: absolute;
  z-index: 2;
  top: 10px;
  left: 10px;
  box-shadow: 0 0 0 4px #fff;
  border-radius: 2px;
}
.admin-shell .preview-trigger {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: #fff;
  opacity: 0;
}
.preview-trigger .ui-icon {
  width: 36px;
  height: 36px;
  padding: 7px;
  flex-basis: 36px;
  border-radius: 50%;
  background: #202939b8;
}
.media-art:hover .preview-trigger,
.preview-trigger:focus-visible {
  opacity: 1;
}
.video-duration {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.media-art > .video-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  border-radius: 3px;
  padding: 2px 5px;
  color: #fff;
  background: #202939dc;
  pointer-events: none;
  font-size: 10px;
}
.media-card-info {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 6px;
  padding: 10px 12px 12px;
  align-items: start;
}
.media-card-info > strong {
  padding-top: 4px;
  min-width: 0;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.media-caption {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  grid-column: 1/-1;
  color: #697586;
  font-size: 10px;
}
.media-caption > [data-media-status-id] {
  flex-basis: 100%;
}
.media-card-info .error-text {
  grid-column: 1/-1;
}
.error-text {
  color: #b42318;
  overflow-wrap: anywhere;
}
.content-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.content-cell > div,
.content-cell > strong {
  min-width: 0;
  overflow-wrap: anywhere;
}
.content-cell strong {
  font-weight: 500;
  display: block;
  font-size: 12px;
}
.content-cell small {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
}
.content-cell small .ui-icon {
  width: 12px;
  height: 12px;
  flex-basis: 12px;
}
.content-cell .media-placeholder,
.content-cell .group-mosaic {
  flex: 0 0 76px;
  width: 76px;
  height: 48px;
}
.media-group-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.media-group-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 16px;
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 14px;
}
.media-group-card h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
}
.media-group-card p {
  font-size: 12px;
  color: #697586;
  margin: 5px 0 10px;
}
.media-group-card > .actions {
  grid-column: 1/-1;
  justify-content: flex-end;
  padding-top: 6px;
  border-top: 1px solid var(--line);
}
.group-mosaic {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(0, 1fr);
  gap: 2px;
  width: 100px;
  height: 72px;
  overflow: hidden;
  border-radius: 4px;
  background: #edf1f6;
  color: #8597ad;
}
.group-mosaic.single {
  grid-template-columns: 1fr;
  place-items: center;
}
.admin-shell .group-mosaic .media-preview {
  width: 100%;
  height: 100%;
  border-radius: 0;
}
.group-details {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: #697586;
}
.user-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}
.user-cell > div {
  min-width: 0;
}
.protected-label {
  display: flex;
  align-items: center;
  gap: 5px;
}
.protected-label .ui-icon {
  width: 12px;
  height: 12px;
  flex-basis: 12px;
}
.group-context {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.group-context h2 {
  font-size: 15px;
  font-weight: 500;
  margin: 0;
}
.group-context > span {
  color: #697586;
  font-size: 11px;
}
.playlist-list-head,
.playlist-row {
  display: grid;
  grid-template-columns: 34px minmax(160px, 1fr) 78px 128px 100px 128px;
  gap: 12px;
  align-items: center;
}
.playlist-list-head {
  padding: 10px 8px;
  background: #f8f9fb;
  color: #697586;
  font-size: 10px;
}
.playlist-row {
  padding: 16px 8px;
  border-bottom: 1px solid var(--line);
}
.playlist-row:hover {
  background: #fcfdff;
}
.playlist-order {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  color: #8593a6;
}
.playlist-order > .ui-icon {
  width: 14px;
  flex-basis: 14px;
}
.drag-grip {
  display: inline-grid;
  place-items: center;
  cursor: grab;
}
.drag-grip:active {
  cursor: grabbing;
}
.playlist-row.dragging {
  opacity: 0.4;
}
.playlist-row.drag-over {
  box-shadow: inset 0 2px var(--primary);
}
.playlist-duration {
  font-size: 12px;
}
.playlist-duration > .ui-icon {
  width: 12px;
  height: 12px;
  vertical-align: middle;
  margin-right: 4px;
}
.playlist-duration small {
  font-size: 10px;
}
.validity {
  display: grid;
  font-size: 10px;
  color: #667085;
  line-height: 1.8;
}
.playlist-state {
  display: grid;
  gap: 6px;
  justify-items: start;
}
.playlist-state .status-badge {
  font-size: 9px;
  padding: 1px 4px;
}
.order-buttons {
  display: inline-flex;
  flex-direction: column;
  vertical-align: middle;
}
.admin-shell .order-buttons .icon-button {
  height: 22px;
  min-height: 22px;
  padding: 3px;
}
.order-buttons .ui-icon {
  width: 13px;
  height: 13px;
}
.switch {
  display: inline-flex;
  position: relative;
  width: 30px;
  height: 18px;
}
.admin-shell .switch input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  z-index: 1;
}
.switch > span {
  display: block;
  width: 30px;
  height: 18px;
  border-radius: 12px;
  background: #b2bdcb;
}
.switch > span::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  top: 2px;
  left: 2px;
  background: #fff;
  border-radius: 50%;
}
.switch input:checked + span {
  background: #13845b;
}
.switch input:checked + span::after {
  transform: translateX(12px);
}
.switch input:focus-visible + span {
  outline: 3px solid #b3d0ff;
  outline-offset: 3px;
}
.empty-state {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 14px;
  min-height: 220px;
  text-align: center;
  padding: 28px;
  color: #8693a6;
}
.empty-state > .ui-icon {
  width: 32px;
  height: 32px;
}
.empty-state h2 {
  font-size: 15px;
  font-weight: 400;
  margin: 0;
  color: #697586;
}
.admin-shell .toast {
  max-width: min(460px, calc(100vw - 32px));
  z-index: 60;
  font-size: 13px;
  background: #185b40;
  color: #fff;
  border-radius: 6px;
  box-shadow: 0 4px 18px #1522451a;
  overflow-wrap: anywhere;
}
.admin-shell .toast-error {
  background: #a93229;
}
.editor-dialog {
  position: fixed;
  inset: 0 0 0 auto;
  margin: 0;
  width: 430px;
  max-width: 100%;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  border: 0;
  border-left: 1px solid var(--line);
  padding: 0;
  background: #fff;
  color: var(--ink);
  box-shadow: -10px 0 40px #17223b12;
  overflow: auto;
}
.editor-dialog::backdrop {
  background: #17223b3b;
}
.editor-dialog > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 19px 22px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 3;
}
.editor-dialog h2 {
  font-size: 17px;
  line-height: 1.5;
  font-weight: 500;
  margin: 0;
  min-width: 0;
}
.drawer-content {
  padding: 24px;
}
.drawer-form {
  display: grid;
  gap: 21px;
}
.drawer-form label {
  font-size: 12px;
}
.drawer-form textarea {
  resize: vertical;
}
.drawer-form > button[type="submit"] {
  margin-top: 8px;
}
.drawer-summary {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 26px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}
.drawer-summary strong {
  font-size: 13px;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.date-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 100px;
  gap: 10px;
  padding: 0;
  margin: 0;
  border: 0;
  min-width: 0;
}
.date-fields legend {
  font-size: 12px;
  font-weight: 500;
  padding: 0 0 8px;
}
.date-fields label {
  font-size: 10px;
  color: #697586;
}
.drawer-form input[readonly] {
  background: #f7f8fa;
  color: #697586;
  cursor: default;
}
.save-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #13845b;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.detail-list {
  margin: 0;
  font-size: 12px;
}
.detail-list dt {
  color: #697586;
}
.detail-list dd {
  margin: 4px 0 0;
}
.member-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 10px;
}
.member-heading span {
  color: #195bc5;
  background: #edf4ff;
  padding: 1px 7px;
  border-radius: 4px;
}
.member-list {
  display: grid;
  max-height: 360px;
  overflow-y: auto;
  margin-top: 12px;
}
.admin-shell .member-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}
.member-row > span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.admin-shell .member-row .media-preview {
  width: 48px;
  height: 36px;
  flex-basis: 48px;
}
.upload-picker {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 26px 16px;
  background: #f9fbff;
  border: 1px dashed #a7bee2;
  border-radius: 6px;
  color: #25528e;
}
.upload-picker > .ui-icon {
  width: 30px;
  height: 30px;
}
.upload-picker input {
  font-size: 11px;
  background: #fff;
}
.upload-picker small {
  color: #697586;
  font-size: 10px;
}
.upload-files {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.upload-files li {
  display: flex;
  gap: 8px;
  align-items: center;
  min-width: 0;
  font-size: 11px;
}
.upload-files li > span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.upload-files small {
  margin-left: auto;
  white-space: nowrap;
  font-size: 10px;
}
.media-jobs-panel,
.upload-state {
  min-width: 0;
  border: 1px solid #e4e8ee;
  border-radius: 8px;
  padding: 14px;
  background: #fbfcfe;
}
.media-jobs-panel {
  margin: 0 0 20px;
}
.media-jobs-panel > header,
.upload-state > strong {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
  color: #344054;
  font-size: 12px;
  font-weight: 600;
}
.media-jobs-panel > header small {
  color: #697586;
  font-size: 10px;
  font-weight: 400;
}
.upload-state > p {
  margin: 6px 0 0;
  color: #697586;
  font-size: 11px;
}
.upload-jobs-list {
  display: grid;
  gap: 10px;
  max-height: 360px;
  overflow: auto;
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
}
.upload-job {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 10px;
  border: 1px solid #e8ecf2;
  border-radius: 6px;
  background: #fff;
}
.upload-job-heading,
.media-progress-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  font-size: 11px;
}
.upload-job-heading > strong {
  min-width: 0;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.upload-job-heading > span:not(.status-badge) {
  flex: 0 0 auto;
  color: #697586;
  font-size: 10px;
}
.upload-job > small,
.media-progress > small {
  color: #697586;
  font-size: 10px;
  overflow-wrap: anywhere;
}
.upload-job progress,
.media-progress progress {
  display: block;
  width: 100%;
  height: 8px;
  overflow: hidden;
  border: 0;
  border-radius: 99px;
  color: #1d62df;
  background: #e8edf5;
  accent-color: #1d62df;
}
.upload-job progress::-webkit-progress-bar,
.media-progress progress::-webkit-progress-bar {
  border-radius: 99px;
  background: #e8edf5;
}
.upload-job progress::-webkit-progress-value,
.media-progress progress::-webkit-progress-value {
  border-radius: 99px;
  background: #1d62df;
}
.upload-job progress::-moz-progress-bar,
.media-progress progress::-moz-progress-bar {
  border-radius: 99px;
  background: #1d62df;
}
.media-progress {
  display: grid;
  gap: 4px;
  width: min(250px, 100%);
  min-width: 120px;
}
.media-progress-label > span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.media-progress-label > strong {
  flex: 0 0 auto;
  font-variant-numeric: tabular-nums;
  font-size: 10px;
}
.progress-indeterminate {
  position: relative;
  display: block;
  width: 100%;
  height: 8px;
  overflow: hidden;
  border-radius: 99px;
  background: #e8edf5;
}
.progress-indeterminate::after {
  position: absolute;
  inset: 0 auto 0 0;
  width: 36%;
  border-radius: inherit;
  background: #1d62df;
  content: "";
  animation: upload-progress 1.4s ease-in-out infinite alternate;
}
@keyframes upload-progress {
  from { transform: translateX(0); }
  to { transform: translateX(180%); }
}
.upload-job > .icon-button {
  justify-self: end;
  min-height: 30px;
  width: 30px;
  flex-basis: 30px;
  color: #25528e;
}
.upload-state .form-error {
  margin: 0;
}
.preview-dialog {
  width: min(960px, 100vw);
}
.preview-stage {
  display: grid;
  place-items: center;
  width: 100%;
  height: min(65vh, 680px);
  background: #101820;
}
.preview-stage > :is(img, video) {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}
.preview-details {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  font-size: 12px;
  color: #697586;
}
.pairing-symbol {
  display: grid;
  place-items: center;
  padding: 26px 0 40px;
  color: #2563d8;
}
.pairing-symbol .ui-icon {
  width: 64px;
  height: 64px;
  stroke-width: 1;
}
.pairing-actions {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}
.nav-backdrop {
  display: none;
}
@media (min-width: 1700px) {
  .media-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 1250px) {
  .admin-workspace {
    padding: 24px;
  }
  .playlist-list-head,
  .playlist-row {
    grid-template-columns: 28px minmax(130px, 1fr) 60px 112px 82px 100px;
    gap: 8px;
  }
  .playlist-row .content-cell {
    gap: 8px;
  }
  .playlist-row .media-preview,
  .playlist-row .group-mosaic {
    width: 52px;
    height: 38px;
    flex-basis: 52px;
  }
  .admin-shell .playlist-row .icon-button {
    width: 29px;
    flex-basis: 29px;
  }
  .data-table th,
  .data-table td {
    padding-left: 8px;
    padding-right: 8px;
  }
}
@media (max-width: 1050px) {
  .media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .media-group-grid {
    grid-template-columns: 1fr;
  }
  .playlist-list-head {
    display: none;
  }
  .playlist-row {
    position: relative;
    grid-template-columns: 26px minmax(0, 1fr) 110px;
    gap: 12px;
  }
  .playlist-row > .content-cell {
    grid-column: 2/3;
  }
  .playlist-row > .row-actions {
    grid-column: 3;
    grid-row: 1;
  }
  .playlist-row > .playlist-duration {
    grid-column: 2;
    grid-row: 2;
  }
  .playlist-row > .validity {
    grid-column: 2;
    grid-row: 3;
  }
  .playlist-row > .playlist-state {
    grid-column: 3;
    grid-row: 2/4;
    justify-self: end;
  }
  .playlist-row .media-preview,
  .playlist-row .group-mosaic {
    width: 72px;
    height: 48px;
    flex-basis: 72px;
  }
  .playlist-duration::before {
    content: attr(data-label) ": ";
    font-size: 10px;
    color: #697586;
  }
  .metrics-strip article {
    padding: 0 12px;
  }
  .admin-topbar {
    padding: 12px 24px;
  }
}
@media (max-width: 760px) {
  .admin-main {
    margin-left: 0;
  }
  .sidebar {
    transform: translateX(-100%);
    visibility: hidden;
    transition: transform 0.18s ease;
    width: 240px;
  }
  .nav-open .sidebar {
    transform: translateX(0);
    visibility: visible;
  }
  .nav-open .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #17223b55;
    border: 0;
    border-radius: 0;
    z-index: 29;
  }
  .admin-topbar {
    padding: 10px 16px;
    gap: 8px;
  }
  .admin-topbar [data-menu] {
    display: inline-flex;
  }
  .admin-topbar > span:first-of-type,
  .admin-topbar > .ui-icon,
  .updated-at {
    display: none;
  }
  .admin-workspace {
    padding: 22px 16px 30px;
  }
  .page-title {
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 24px;
  }
  .page-title h1 {
    font-size: 22px;
  }
  .page-title .actions {
    justify-content: flex-end;
  }
  .page-title .actions > .icon-button {
    display: none;
  }
  .page-title .actions > button {
    font-size: 11px;
    padding: 8px 10px;
    white-space: normal;
  }
  .page-title > div:first-child {
    gap: 7px;
  }
  .page-count {
    min-width: 23px;
    font-size: 10px;
  }
  .toolbar {
    gap: 10px;
  }
  .toolbar > .search-control {
    flex: 1 1 220px;
    width: auto;
  }
  .filter-control {
    max-width: none;
    flex: 1 1 160px;
  }
  .metrics-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 0;
  }
  .metrics-strip article:nth-child(3) {
    padding-left: 0;
  }
  .metrics-strip article:nth-child(2) {
    border: 0;
  }
  .metrics-strip strong {
    font-size: 29px;
  }
  .admin-shell .filter-tabs {
    gap: 3px;
  }
  .admin-shell .filter-tabs button {
    padding: 8px 7px;
    font-size: 11px;
    gap: 4px;
  }
  .data-table,
  .data-table tbody {
    display: block;
  }
  .data-table thead {
    display: none;
  }
  .data-table tr {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    padding: 16px 0 16px 28px;
    border-bottom: 1px solid var(--line);
    gap: 12px 14px;
  }
  .data-table td {
    display: block;
    border: 0;
    padding: 0;
    width: auto;
    min-width: 0;
  }
  .data-table td[data-label]::before {
    display: block;
    content: attr(data-label);
    color: #8591a3;
    font-size: 10px;
    margin-bottom: 3px;
  }
  .data-table td[data-label]:first-of-type::before {
    display: none;
  }
  .data-table td[data-label="Pantalla"],
  .data-table td[data-label="Medio"],
  .data-table td[data-label="Usuario"],
  .data-table td[data-label="Grupo"] {
    grid-column: 1/-1;
    padding-right: 80px;
  }
  .data-table .check-cell {
    position: absolute;
    top: 19px;
    left: 0;
    width: 20px;
    padding: 0;
  }
  .data-table .row-actions {
    width: auto;
    position: absolute;
    top: 17px;
    right: 0;
  }
  .data-table td[data-label="Grupo"] ~ td {
    grid-column: auto;
  }
  .audit-table td[data-label="Evento"] {
    grid-column: 1/-1;
  }
  .data-table .content-cell {
    align-items: start;
  }
  .media-card-info {
    padding: 8px;
    gap: 2px;
  }
  .media-grid {
    gap: 14px 12px;
  }
  .media-card-info > strong {
    font-size: 11px;
  }
  .admin-shell .media-card-info .icon-button {
    width: 26px;
    flex-basis: 26px;
    padding: 4px;
  }
  .media-art {
    aspect-ratio: 4/3;
  }
  .media-art .preview-trigger {
    opacity: 1;
  }
  .media-caption {
    gap: 5px;
  }
  .playlist-row {
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 12px 8px;
    padding: 16px 0;
  }
  .playlist-row > .row-actions {
    grid-column: 2;
    grid-row: 4;
    justify-self: end;
  }
  .playlist-row > .playlist-state {
    grid-column: 2;
    grid-row: 4;
    justify-self: start;
  }
  .playlist-row > .content-cell {
    grid-column: 2;
    grid-row: 1;
  }
  .playlist-row .row-actions .order-buttons {
    flex-direction: row;
  }
  .playlist-row .content-cell > div {
    flex: 1;
  }
  .admin-shell .playlist-row .content-cell .media-preview,
  .playlist-row .content-cell .group-mosaic {
    width: 64px;
    height: 44px;
    flex-basis: 64px;
  }
  .drawer-content {
    padding: 22px 20px;
  }
  .editor-dialog > header {
    padding: 17px 20px;
  }
  .bulk-bar {
    flex-wrap: wrap;
  }
}
@media (max-width: 360px) {
  .media-grid {
    grid-template-columns: 1fr;
  }
  .page-title {
    flex-wrap: wrap;
  }
  .page-title > .actions {
    margin-left: auto;
  }
  .date-fields {
    grid-template-columns: minmax(0, 1fr) 86px;
    gap: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sidebar {
    transition: none;
  }
}
