:root {
  --mh-bg: #0b0503;
  --mh-bg-soft: #140907;
  --mh-panel: rgba(255, 255, 255, 0.05);
  --mh-panel-border: rgba(255, 255, 255, 0.12);
  --mh-text: #ffffff;
  --mh-text-soft: rgba(255, 255, 255, 0.72);
  --mh-burgundy: #8f1d2c;
  --mh-burgundy-hover: #a32638;
  --mh-burgundy-active: #b12b3f;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--mh-text);
  background:
    radial-gradient(circle at top, rgba(179, 38, 58, 0.16), transparent 30%),
    linear-gradient(135deg, var(--mh-bg) 0%, var(--mh-bg-soft) 100%);
}

a {
  color: var(--mh-burgundy-active);
}

a:hover,
a:focus {
  color: #ca4053;
}

.site-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.site-card {
  width: min(100%, 860px);
  padding: 2rem;
  border: 1px solid var(--mh-panel-border);
  border-radius: 1.5rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.03));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
}

.site-kicker {
  margin: 0 0 0.75rem;
  color: var(--mh-text-soft);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.site-title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.04em;
}

.site-copy {
  color: var(--mh-text-soft);
  line-height: 1.7;
}

.site-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.mh-alert {
  margin-bottom: 1rem;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.06);
  color: var(--mh-text);
}

.mh-alert--error {
  border-color: rgba(179, 38, 58, 0.45);
  background: rgba(143, 29, 44, 0.18);
}

.mh-alert--success {
  border-color: rgba(86, 192, 126, 0.35);
  background: rgba(86, 192, 126, 0.12);
}

.mh-btn,
.mh-btn:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.85rem 1.4rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--mh-burgundy);
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
}

.mh-btn:hover,
.mh-btn:focus {
  background: var(--mh-burgundy-hover);
  color: #ffffff;
}

.mh-btn--ghost,
.mh-btn--ghost:visited {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
}

.mh-btn--ghost:hover,
.mh-btn--ghost:focus {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.cookie-banner {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1040;
  width: min(100%, 420px);
  padding: 1rem;
  border: 1px solid var(--mh-panel-border);
  border-radius: 1.25rem;
  background: rgba(11, 5, 3, 0.96);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
}

.cookie-banner__title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.cookie-banner__text {
  margin: 0 0 1rem;
  color: var(--mh-text-soft);
  line-height: 1.6;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cookie-banner__link {
  color: var(--mh-text-soft);
  text-decoration: underline;
}

@media (max-width: 640px) {
  .site-card {
    padding: 1.5rem;
  }

  .cookie-banner {
    left: 1rem;
    width: auto;
  }
}

.co-body {
  background:
    radial-gradient(circle at top left, rgba(179, 38, 58, 0.12), transparent 24%),
    linear-gradient(180deg, #090403 0%, #130806 52%, #1a0c09 100%);
}

.co-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  min-height: 100vh;
}

.co-sidebar {
  padding: 1.75rem 1.5rem;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.72)),
    radial-gradient(circle at top left, rgba(143, 29, 44, 0.34), transparent 32%);
}

.co-sidebar__brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
}

.sidebar-logo-icon {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.co-sidebar__brand-text {
  color: #ffffff;
  font-size: 1.9rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.co-sidebar__nav {
  display: grid;
  gap: 0.65rem;
  margin-top: 2.25rem;
}

.co-sidebar__link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.co-sidebar__link:hover,
.co-sidebar__link:focus,
.co-sidebar__link.is-active {
  border-color: rgba(179, 38, 58, 0.42);
  background: rgba(143, 29, 44, 0.18);
  color: #ffffff;
}

.co-sidebar__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  color: currentColor;
}

.co-sidebar__icon-svg {
  width: 20px;
  height: 20px;
  display: block;
}

.co-sidebar__label {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  line-height: 1.3;
}

.co-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100vh;
}

.co-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.75rem 2rem 1.25rem;
}

.co-topbar__title {
  margin: 0;
  font-size: clamp(1.65rem, 2.4vw, 2.2rem);
  letter-spacing: -0.04em;
}

.co-topbar__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-left: auto;
}

.user-dropdown {
  position: relative;
}

.user-dropdown__trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.user-dropdown__avatar,
.user-dropdown__hero-avatar {
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background:
    radial-gradient(circle at top, rgba(179, 38, 58, 0.3), transparent 58%),
    rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

.user-dropdown__avatar {
  width: 54px;
  height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
}

.user-dropdown__hero-avatar {
  width: 68px;
  height: 68px;
  flex: 0 0 68px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.user-dropdown__avatar-image,
.user-dropdown__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-dropdown__avatar-initial,
.user-dropdown__hero-initial,
.user-dropdown__avatar-icon,
.user-dropdown__hero-icon {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

.user-dropdown__avatar-initial {
  font-size: 1.15rem;
  font-weight: 700;
}

.user-dropdown__hero-initial {
  font-size: 1.55rem;
  font-weight: 700;
}

.user-dropdown__menu {
  position: absolute;
  top: calc(100% + 1rem);
  right: 0;
  z-index: 1050;
  width: min(92vw, 340px);
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.4rem;
  background: linear-gradient(180deg, rgba(25, 12, 10, 0.98), rgba(14, 7, 6, 0.98));
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.38);
}

.user-dropdown__arrow {
  position: absolute;
  top: -8px;
  right: 20px;
  width: 16px;
  height: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(25, 12, 10, 0.98);
  transform: rotate(45deg);
}

.user-dropdown__header,
.user-dropdown__theme-row {
  display: flex;
  align-items: center;
  gap: 0.95rem;
}

.user-dropdown__header {
  margin-bottom: 0.85rem;
}

.user-dropdown__identity {
  min-width: 0;
}

.user-dropdown__name,
.user-dropdown__email,
.user-dropdown__role,
.user-dropdown__section-title,
.user-dropdown__theme-copy {
  margin: 0;
}

.user-dropdown__name {
  font-weight: 700;
  line-height: 1.2;
}

.user-dropdown__email,
.user-dropdown__role,
.user-dropdown__section-title,
.user-dropdown__theme-copy {
  color: var(--mh-text-soft);
}

.user-dropdown__email,
.user-dropdown__role,
.user-dropdown__theme-copy {
  font-size: 0.9rem;
}

.user-dropdown__role {
  margin-top: 0.2rem;
}

.user-dropdown__section {
  padding-top: 0.85rem;
  margin-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.user-dropdown__item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 0.9rem;
  border-radius: 0.9rem;
  color: #ffffff;
  text-decoration: none;
}

.user-dropdown__item:hover,
.user-dropdown__item:focus {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.user-dropdown__item-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: currentColor;
}

.user-dropdown__icon-svg {
  width: 20px;
  height: 20px;
  display: block;
}

.user-dropdown__item-label {
  min-width: 0;
  line-height: 1.3;
}

.user-dropdown__badge {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 0.45rem;
  border-radius: 999px;
  background: var(--mh-burgundy);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
}

.user-dropdown__language .form-select {
  min-height: 2.8rem;
}

.user-dropdown__theme-row {
  justify-content: space-between;
}

.user-dropdown__theme-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.user-dropdown__theme-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.user-dropdown__theme-slider {
  position: relative;
  display: inline-flex;
  width: 56px;
  height: 32px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  transition: background-color 0.2s ease;
}

.user-dropdown__theme-slider::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

.user-dropdown__theme-input:checked + .user-dropdown__theme-slider {
  background: var(--mh-burgundy);
}

.user-dropdown__theme-input:checked + .user-dropdown__theme-slider::after {
  transform: translateX(24px);
}

.user-dropdown__item--logout {
  color: #ffffff;
}

.co-content {
  flex: 1 1 auto;
  padding: 0 2rem 2rem;
}

.co-card {
  border-radius: 1.4rem;
}

.co-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.co-section-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
}

.co-content .form-label,
.co-content .form-check-label {
  color: #ffffff;
}

.co-content .form-control,
.co-content .form-select {
  min-height: 3.1rem;
  border-color: rgba(255, 255, 255, 0.1);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.co-content textarea.form-control {
  min-height: auto;
}

.co-content .form-control:focus,
.co-content .form-select:focus {
  border-color: rgba(179, 38, 58, 0.68);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 0.2rem rgba(179, 38, 58, 0.18);
  color: #ffffff;
}

.co-content .form-select option {
  color: #ffffff;
  background: #211411;
}

.co-content .form-text {
  color: rgba(255, 255, 255, 0.56);
}

.co-profile-card {
  text-align: center;
}

.co-avatar {
  display: grid;
  place-items: center;
  width: 140px;
  height: 140px;
  margin: 0 auto 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background:
    radial-gradient(circle at top, rgba(179, 38, 58, 0.3), transparent 58%),
    rgba(255, 255, 255, 0.05);
  font-size: 2.8rem;
  font-weight: 700;
  overflow: hidden;
}

.co-avatar.has-photo {
  background: rgba(255, 255, 255, 0.04);
}

.co-avatar__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.co-avatar__initial,
.co-avatar__icon {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

.co-avatar__svg {
  width: 56px;
  height: 56px;
  color: rgba(255, 255, 255, 0.82);
}

.theme-light {
  --mh-bg: #f3ece8;
  --mh-bg-soft: #fff8f4;
  --mh-panel-border: rgba(64, 36, 31, 0.12);
  --mh-text: #241311;
  --mh-text-soft: rgba(36, 19, 17, 0.7);
}

.co-body.theme-light {
  color: var(--mh-text);
  background:
    radial-gradient(circle at top left, rgba(179, 38, 58, 0.08), transparent 22%),
    linear-gradient(180deg, #f6f0eb 0%, #fffaf7 100%);
}

.theme-light .site-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(250, 245, 241, 0.92));
  box-shadow: 0 22px 50px rgba(88, 57, 48, 0.08);
}

.theme-light .co-sidebar {
  border-right-color: rgba(64, 36, 31, 0.1);
  background:
    linear-gradient(rgba(255, 250, 247, 0.98), rgba(248, 238, 233, 0.98)),
    radial-gradient(circle at top left, rgba(143, 29, 44, 0.12), transparent 28%);
}

.theme-light .sidebar-logo-icon {
  filter: brightness(0);
}

.theme-light .co-sidebar__brand-text {
  color: #241311;
}

.theme-light .co-sidebar__link {
  border-color: rgba(64, 36, 31, 0.08);
  background: rgba(64, 36, 31, 0.03);
  color: rgba(36, 19, 17, 0.78);
}

.theme-light .co-sidebar__link:hover,
.theme-light .co-sidebar__link:focus,
.theme-light .co-sidebar__link.is-active {
  color: #241311;
  background: rgba(143, 29, 44, 0.08);
}

.theme-light .co-content .form-label,
.theme-light .co-content .form-check-label,
.theme-light .co-section-title,
.theme-light .co-topbar__title,
.theme-light .co-footer__copy,
.theme-light .site-title {
  color: #241311;
}

.theme-light .co-content .form-control,
.theme-light .co-content .form-select {
  border-color: rgba(64, 36, 31, 0.12);
  background: rgba(255, 255, 255, 0.88);
  color: #241311;
}

.theme-light .co-content .form-select option {
  background: #ffffff;
  color: #241311;
}

.theme-light .co-content .form-control:focus,
.theme-light .co-content .form-select:focus {
  background: #ffffff;
  color: #241311;
}

.theme-light .mh-alert {
  border-color: rgba(64, 36, 31, 0.1);
  background: rgba(255, 255, 255, 0.78);
  color: #241311;
}

.theme-light .mh-btn--ghost,
.theme-light .mh-btn--ghost:visited {
  border-color: rgba(64, 36, 31, 0.14);
  background: rgba(64, 36, 31, 0.04);
  color: #241311;
}

.theme-light .mh-btn--ghost:hover,
.theme-light .mh-btn--ghost:focus {
  color: #241311;
}

.theme-light .co-avatar {
  border-color: rgba(64, 36, 31, 0.12);
  background:
    radial-gradient(circle at top, rgba(179, 38, 58, 0.18), transparent 58%),
    rgba(64, 36, 31, 0.04);
}

.theme-light .co-avatar__svg {
  color: rgba(64, 36, 31, 0.72);
}

.import-movies-hero-card {
  min-height: 0 !important;
  height: auto !important;
  padding-bottom: 1.5rem !important;
}

.import-movies-hero-card .site-copy {
  max-width: 760px;
}

.import-movies-stepper {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.03);
}

.import-movies-stepper__item {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.75rem 1rem;
  background: transparent;
  color: var(--mh-text-soft);
  font-weight: 700;
}

.import-movies-stepper__item.is-active {
  border-color: rgba(179, 38, 58, 0.35);
  background: rgba(143, 29, 44, 0.14);
  color: var(--mh-text);
  box-shadow: inset 0 -2px 0 rgba(179, 38, 58, 0.85);
}

.import-movies-step-panel[hidden] {
  display: none !important;
}

.import-movies-results-toolbar,
.import-movies-results-pagination {
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.03);
}

.theme-light .import-movies-stepper,
.theme-light .import-movies-results-toolbar,
.theme-light .import-movies-results-pagination {
  border-color: rgba(64, 36, 31, 0.1);
  background: rgba(255, 255, 255, 0.72);
}

.theme-light .import-movies-stepper__item.is-active {
  color: #241311;
}

@media (max-width: 991px) {
  .import-movies-results-toolbar .justify-content-lg-end,
  .import-movies-results-pagination {
    justify-content: flex-start !important;
  }
}

.theme-light .user-dropdown__avatar,
.theme-light .user-dropdown__hero-avatar {
  border-color: rgba(64, 36, 31, 0.12);
  background:
    radial-gradient(circle at top, rgba(179, 38, 58, 0.18), transparent 58%),
    rgba(64, 36, 31, 0.04);
  color: #241311;
}

.theme-light .user-dropdown__menu {
  border-color: rgba(64, 36, 31, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 240, 235, 0.98));
  box-shadow: 0 20px 52px rgba(88, 57, 48, 0.14);
}

.theme-light .user-dropdown__arrow {
  border-top-color: rgba(64, 36, 31, 0.12);
  border-left-color: rgba(64, 36, 31, 0.12);
  background: rgba(255, 255, 255, 0.98);
}

.theme-light .user-dropdown__item,
.theme-light .user-dropdown__item--logout {
  color: #241311;
}

.theme-light .user-dropdown__item:hover,
.theme-light .user-dropdown__item:focus {
  background: rgba(64, 36, 31, 0.05);
  color: #241311;
}

.theme-light .user-dropdown__section {
  border-top-color: rgba(64, 36, 31, 0.08);
}

.theme-light .user-dropdown__email,
.theme-light .user-dropdown__role,
.theme-light .user-dropdown__section-title,
.theme-light .user-dropdown__theme-copy {
  color: rgba(36, 19, 17, 0.68);
}

.theme-light .user-dropdown__theme-slider {
  background: rgba(64, 36, 31, 0.14);
}

.theme-light .admin-table-wrap,
.theme-light .admin-summary-grid,
.theme-light .admin-security-card {
  border-color: rgba(64, 36, 31, 0.1);
  background: rgba(64, 36, 31, 0.02);
}

.theme-light .movies-table-wrap {
  border-color: rgba(64, 36, 31, 0.1);
  background: rgba(64, 36, 31, 0.02);
}

.theme-light .admin-table {
  color: #241311;
}

.theme-light .movies-table {
  color: #241311;
}

.theme-light .admin-table > :not(caption) > * > * {
  border-bottom-color: rgba(64, 36, 31, 0.08);
}

.theme-light .movies-table > :not(caption) > * > * {
  border-bottom-color: rgba(64, 36, 31, 0.08);
}

.theme-light .admin-table thead th,
.theme-light .admin-subcopy,
.theme-light .admin-inline-copy,
.theme-light .admin-pagination__meta,
.theme-light .admin-pagination__page {
  color: rgba(36, 19, 17, 0.68);
}

.theme-light .form-error {
  color: #8f1d2c;
}

.theme-light .movies-table thead th,
.theme-light .movies-poster-thumb {
  color: rgba(36, 19, 17, 0.68);
}

.theme-light .movies-poster-thumb {
  border-color: rgba(64, 36, 31, 0.1);
  background: rgba(64, 36, 31, 0.04);
}

.theme-light .movie-step-indicator__item {
  border-color: rgba(64, 36, 31, 0.1);
  background: rgba(64, 36, 31, 0.04);
  color: rgba(36, 19, 17, 0.72);
}

.theme-light .movie-step-indicator__item.is-active {
  border-color: rgba(143, 29, 44, 0.24);
  background: rgba(143, 29, 44, 0.1);
  color: #241311;
}

.theme-light .movie-step-indicator__link:hover,
.theme-light .movie-step-indicator__link:focus {
  border-color: rgba(143, 29, 44, 0.22);
  background: rgba(143, 29, 44, 0.08);
  color: #241311;
}

.theme-light .movie-contact-section + .movie-contact-section {
  border-top-color: rgba(64, 36, 31, 0.1);
}

.theme-light .movie-contact-section__title {
  color: #241311;
}

.theme-light .movie-dynamic-section + .movie-dynamic-section {
  border-top-color: rgba(64, 36, 31, 0.1);
}

.theme-light .movie-dynamic-row {
  border-color: rgba(64, 36, 31, 0.1);
  background: rgba(64, 36, 31, 0.03);
}

.theme-light .movie-poster-upload__image,
.theme-light .movie-review-poster {
  border-color: rgba(64, 36, 31, 0.1);
  background: rgba(64, 36, 31, 0.04);
}

.theme-light .movie-poster-upload__placeholder,
.theme-light .movie-review-poster--placeholder {
  color: rgba(36, 19, 17, 0.68);
}

.theme-light .movie-upload-progress__track {
  background: rgba(64, 36, 31, 0.1);
}

.theme-light .movie-upload-progress span {
  color: rgba(36, 19, 17, 0.68);
}

.theme-light .movie-review-copy p,
.theme-light .movie-review-contact-list dd,
.theme-light .movie-review-table tbody td,
.theme-light .movie-review-summary__item strong,
.theme-light .movie-review-section__title {
  color: #241311;
}

.theme-light .movie-review-subtitle,
.theme-light .movie-review-contact-list dt,
.theme-light .movie-review-summary__item span,
.theme-light .movie-review-table thead th {
  color: rgba(36, 19, 17, 0.64);
}

.theme-light .movie-review-summary__item,
.theme-light .movie-review-contact-list div {
  border-color: rgba(64, 36, 31, 0.1);
  background: rgba(64, 36, 31, 0.03);
}

.theme-light .movie-review-table {
  --bs-table-bg: transparent;
  --bs-table-color: rgba(36, 19, 17, 0.88);
  --bs-table-border-color: rgba(64, 36, 31, 0.1);
  --bs-table-striped-bg: rgba(64, 36, 31, 0.03);
  --bs-table-hover-bg: rgba(64, 36, 31, 0.05);
  background: transparent;
}

.theme-light .movie-review-table-wrap {
  border-color: rgba(64, 36, 31, 0.1);
  background: rgba(64, 36, 31, 0.02);
}

.theme-light .movie-review-table thead,
.theme-light .movie-review-table tbody,
.theme-light .movie-review-table tr,
.theme-light .movie-review-table tbody td {
  background: transparent !important;
}

.theme-light .movie-review-table thead th {
  background: rgba(64, 36, 31, 0.05) !important;
  border-bottom-color: rgba(64, 36, 31, 0.1);
}

.theme-light .movie-review-table tbody td {
  border-bottom-color: rgba(64, 36, 31, 0.1);
}

.theme-light .movie-review-table tbody tr:hover {
  background: rgba(64, 36, 31, 0.04) !important;
}

.theme-light .contract-preview-toolbar__item {
  border-color: rgba(64, 36, 31, 0.1);
  background: rgba(64, 36, 31, 0.03);
}

.theme-light .contract-preview-toolbar__item span {
  color: rgba(36, 19, 17, 0.64);
}

.theme-light .contract-preview-toolbar__item strong {
  color: #241311;
}

.theme-light .admin-badge.is-active {
  color: #2c6c46;
}

.theme-light .admin-badge.is-inactive {
  color: #8f1d2c;
}

.theme-light .admin-badge.is-pending {
  color: #9a6a0f;
}

.theme-light .admin-modal {
  border-color: rgba(64, 36, 31, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 240, 235, 0.98));
  color: #241311;
}

.theme-light .admin-modal .modal-header,
.theme-light .admin-modal .modal-footer {
  border-color: rgba(64, 36, 31, 0.1);
}

.theme-light .admin-modal .form-label,
.theme-light .admin-modal .form-check-label,
.theme-light .admin-modal .nav-link,
.theme-light .admin-tabs .nav-link.active {
  color: #241311;
}

.theme-light .admin-modal .btn-close {
  filter: brightness(0);
}

.theme-light .admin-tabs .nav-link {
  color: rgba(36, 19, 17, 0.68);
}

.theme-light .admin-switch {
  background: rgba(64, 36, 31, 0.14);
}

.theme-light .contract-placeholder-panel,
.theme-light .contract-placeholder-chip,
.theme-light .contract-html-toolbar button {
  border-color: rgba(64, 36, 31, 0.1);
  background: rgba(64, 36, 31, 0.03);
  color: #241311;
}

.theme-light .contract-editor-tabs__button {
  border-color: rgba(64, 36, 31, 0.1);
  background: rgba(64, 36, 31, 0.04);
  color: rgba(36, 19, 17, 0.68);
}

.theme-light .contract-editor-tabs__button.is-active {
  border-color: rgba(143, 29, 44, 0.24);
  background: rgba(143, 29, 44, 0.1);
  color: #241311;
}

.theme-light .admin-contract-preview-pane,
.theme-light .admin-contract-editor-pane,
.theme-light .contract-editor-general,
.theme-light .contract-placeholder-category {
  border-color: rgba(64, 36, 31, 0.1);
  background: rgba(64, 36, 31, 0.03);
}

.theme-light .contract-wysiwyg-toolbar__button,
.theme-light .contract-editor-mode-switch__button,
.theme-light .contract-placeholder-token,
.theme-light .contract-wysiwyg-content,
.theme-light .contract-html-mode-textarea {
  border-color: rgba(64, 36, 31, 0.1);
  background: rgba(255, 255, 255, 0.82);
  color: #241311;
}

.theme-light .contract-editor-mode-switch__button.is-active {
  border-color: rgba(143, 29, 44, 0.24);
  background: rgba(143, 29, 44, 0.1);
  color: #241311;
}

.co-footer {
  padding: 0 2rem 1.5rem;
}

.co-footer__copy {
  margin: 0;
  color: var(--mh-text-soft);
  font-size: 0.9rem;
  line-height: 1.5;
  text-align: center;
}

.admin-page {
  display: grid;
  gap: 1.25rem;
  width: 100%;
}

/* Admin dark-mode readability guardrails */
.co-body:not(.theme-light) .admin-page,
.co-body:not(.theme-light) .admin-page .site-card,
.co-body:not(.theme-light) .admin-page .co-card,
.co-body:not(.theme-light) .admin-page .admin-card,
.co-body:not(.theme-light) .admin-page .admin-toolbar-card,
.co-body:not(.theme-light) .admin-page .admin-table-card,
.co-body:not(.theme-light) .admin-page .card,
.co-body:not(.theme-light) .admin-page .card-body {
  color: var(--mh-text);
}

.co-body:not(.theme-light) .admin-page p,
.co-body:not(.theme-light) .admin-page span,
.co-body:not(.theme-light) .admin-page small,
.co-body:not(.theme-light) .admin-page li,
.co-body:not(.theme-light) .admin-page dt,
.co-body:not(.theme-light) .admin-page dd,
.co-body:not(.theme-light) .admin-page strong,
.co-body:not(.theme-light) .admin-page label,
.co-body:not(.theme-light) .admin-page td,
.co-body:not(.theme-light) .admin-page th {
  color: inherit;
}

.co-body:not(.theme-light) .admin-page .admin-subcopy,
.co-body:not(.theme-light) .admin-page .admin-inline-copy,
.co-body:not(.theme-light) .admin-page .admin-pagination__meta,
.co-body:not(.theme-light) .admin-page .admin-pagination__page,
.co-body:not(.theme-light) .admin-page .form-text,
.co-body:not(.theme-light) .admin-page .text-muted {
  color: var(--mh-text-soft) !important;
}

.co-body:not(.theme-light) .admin-page .admin-table,
.co-body:not(.theme-light) .admin-page .table {
  color: var(--mh-text);
}

.co-body:not(.theme-light) .admin-page .admin-table tbody td,
.co-body:not(.theme-light) .admin-page .table tbody td {
  color: rgba(255, 255, 255, 0.88);
}

.co-body:not(.theme-light) .admin-page .admin-table thead th,
.co-body:not(.theme-light) .admin-page .table thead th {
  color: rgba(255, 255, 255, 0.66);
}

.co-body:not(.theme-light) .admin-page .form-label,
.co-body:not(.theme-light) .admin-page .form-check-label {
  color: var(--mh-text);
}

.co-body:not(.theme-light) .admin-page .form-control,
.co-body:not(.theme-light) .admin-page .form-select {
  background: rgba(255, 255, 255, 0.06);
  color: var(--mh-text);
  border-color: rgba(255, 255, 255, 0.12);
}

.co-body:not(.theme-light) .admin-page .form-control:focus,
.co-body:not(.theme-light) .admin-page .form-select:focus {
  color: var(--mh-text);
}

.co-body:not(.theme-light) .admin-page .form-select option {
  background: #211411;
  color: #ffffff;
}

.co-body:not(.theme-light) .admin-page .nav-link,
.co-body:not(.theme-light) .admin-page a,
.co-body:not(.theme-light) .admin-page .text-body,
.co-body:not(.theme-light) .admin-page .text-dark {
  color: inherit;
}

.admin-card,
.admin-toolbar-card,
.admin-table-card {
  width: 100%;
  max-width: none;
}

.admin-toolbar {
  width: 100%;
}

.admin-toolbar__form {
  display: grid;
  gap: 1rem;
  align-items: end;
}

.admin-toolbar__form--users {
  grid-template-columns: minmax(240px, 2fr) repeat(5, minmax(120px, 1fr)) auto;
}

.admin-toolbar__form--navigation {
  grid-template-columns: minmax(240px, 2fr) repeat(4, minmax(120px, 1fr)) auto;
}

.admin-toolbar__form--contracts {
  grid-template-columns: minmax(260px, 2fr) repeat(2, minmax(140px, 1fr)) auto;
}

.admin-filter {
  min-width: 0;
}

.admin-filter .form-control,
.admin-filter .form-select {
  width: 100%;
}

.admin-toolbar__actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
  align-self: end;
}

.admin-toolbar__actions .mh-btn {
  white-space: nowrap;
}

.admin-filter--search {
  min-width: 0;
}

.admin-table-wrap {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  margin-bottom: 0;
  color: var(--mh-text);
  vertical-align: middle;
}

.admin-table > :not(caption) > * > * {
  padding: 1rem 0.95rem;
  background: transparent;
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.admin-table thead th {
  color: var(--mh-text-soft);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-subcopy,
.admin-inline-copy {
  color: var(--mh-text-soft);
  font-size: 0.92rem;
}

.form-error {
  margin-top: 0.4rem;
  color: #ffb2bd;
  font-size: 0.85rem;
}

.admin-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.78rem;
  font-weight: 700;
}

.admin-badge.is-active {
  border-color: rgba(86, 192, 126, 0.28);
  background: rgba(86, 192, 126, 0.12);
  color: #9de3b5;
}

.admin-badge.is-inactive {
  border-color: rgba(179, 38, 58, 0.32);
  background: rgba(179, 38, 58, 0.14);
  color: #ffb2bd;
}

.admin-badge.is-pending {
  border-color: rgba(245, 192, 90, 0.28);
  background: rgba(245, 192, 90, 0.12);
  color: #ffd98f;
}

.admin-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.admin-btn-sm {
  min-height: 2.4rem;
  padding: 0.6rem 0.95rem;
  font-size: 0.86rem;
}

.admin-switch {
  position: relative;
  width: 54px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.admin-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffffff;
  transition: transform 0.2s ease;
}

.admin-switch.is-on {
  background: var(--mh-burgundy);
}

.admin-switch.is-on::after {
  transform: translateX(24px);
}

.admin-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

.admin-pagination__controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.admin-pagination__meta,
.admin-pagination__page {
  color: var(--mh-text-soft);
}

.admin-modal {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.4rem;
  background: linear-gradient(180deg, rgba(25, 12, 10, 0.98), rgba(14, 7, 6, 0.98));
  color: var(--mh-text);
}

.admin-modal .modal-header,
.admin-modal .modal-footer {
  border-color: rgba(255, 255, 255, 0.08);
}

.admin-modal .form-label,
.admin-modal .form-check-label,
.admin-modal .nav-link {
  color: var(--mh-text);
}

.admin-modal .btn-close {
  filter: brightness(0) invert(1);
}

.admin-tabs .nav-link {
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--mh-text-soft);
}

.admin-tabs .nav-link.active {
  border-bottom-color: var(--mh-burgundy);
  color: #ffffff;
}

.co-body:not(.theme-light) .admin-tabs .nav-link {
  color: rgba(255, 255, 255, 0.72);
  background: transparent !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

.co-body:not(.theme-light) .admin-tabs .nav-link:hover,
.co-body:not(.theme-light) .admin-tabs .nav-link:focus {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
}

.co-body:not(.theme-light) .admin-tabs .nav-link.active,
.co-body:not(.theme-light) .admin-tabs .nav-item.show .nav-link {
  color: #ffffff !important;
  background: rgba(143, 29, 44, 0.32) !important;
  border-color: rgba(179, 38, 58, 0.65) !important;
  border-bottom-color: rgba(179, 38, 58, 0.8) !important;
}

.co-body:not(.theme-light) .admin-page .site-copy,
.co-body:not(.theme-light) .admin-page .co-section-title,
.co-body:not(.theme-light) .admin-page .admin-table-wrap code {
  color: var(--mh-text) !important;
}

.co-body:not(.theme-light) .admin-page .admin-table tbody td a,
.co-body:not(.theme-light) .admin-page .table tbody td a {
  color: #f8fafc !important;
  text-decoration-color: rgba(248, 250, 252, 0.55);
}

.co-body:not(.theme-light) .admin-page .admin-table tbody td a:hover,
.co-body:not(.theme-light) .admin-page .table tbody td a:hover {
  color: #ffffff !important;
}

.co-body:not(.theme-light) .admin-page input::placeholder,
.co-body:not(.theme-light) .admin-page textarea::placeholder {
  color: rgba(255, 255, 255, 0.52);
}

.admin-icon-preview {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
}

.admin-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.03);
}

.admin-security-card {
  height: 100%;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.03);
}

.admin-contract-editor {
  width: 100%;
  max-width: none;
}

.contract-editor-grid {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.contract-placeholder-panel {
  position: sticky;
  top: 1.5rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.03);
}

.contract-placeholder-panel__group + .contract-placeholder-panel__group {
  margin-top: 0.9rem;
}

.contract-placeholder-chip {
  display: block;
  width: 100%;
  margin-bottom: 0.55rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.03);
  color: var(--mh-text);
  text-align: left;
}

.contract-placeholder-chip code {
  color: inherit;
  word-break: break-all;
}

.contract-editor-tabs {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.contract-editor-tabs__button {
  min-height: 2.3rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--mh-text-soft);
  font-size: 0.84rem;
  font-weight: 600;
}

.contract-editor-tabs__button.is-active {
  border-color: rgba(179, 38, 58, 0.36);
  background: rgba(179, 38, 58, 0.14);
  color: #ffffff;
}

.contract-editor-section {
  display: none;
}

.contract-editor-section.is-active {
  display: block;
}

.contract-html-editor + .contract-html-editor {
  margin-top: 1.4rem;
}

.contract-html-editor__header {
  margin-bottom: 0.8rem;
}

.contract-html-toolbar {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.contract-html-toolbar button {
  min-height: 2.1rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.04);
  color: var(--mh-text);
}

.contract-html-editor__textarea {
  min-height: 280px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.92rem;
}

.contract-html-preview {
  max-width: none;
  min-height: 360px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  background: #fffdf8;
  color: #111111;
  line-height: 1.7;
}

.contract-html-preview h1,
.contract-html-preview h2,
.contract-html-preview h3 {
  color: #121212;
  line-height: 1.25;
}

.contract-html-preview table {
  width: 100%;
  margin: 1rem 0;
  border-collapse: collapse;
}

.contract-html-preview th,
.contract-html-preview td {
  padding: 0.75rem;
  border: 1px solid #d8d0c7;
  vertical-align: top;
}

.contract-html-preview th {
  background: #f3eee6;
}

.admin-contract-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(340px, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.admin-contract-preview-pane,
.admin-contract-editor-pane {
  min-height: min(78vh, 1100px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.admin-contract-pane__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1rem 0;
}

.admin-contract-preview-pane .contract-document--admin-preview {
  max-width: none;
  height: calc(78vh - 56px);
  margin: 0;
  padding: 1rem;
  overflow-y: auto;
  background: #fffdf8;
}

.admin-contract-editor-pane {
  position: relative;
  display: grid;
  align-content: start;
  gap: 1rem;
  max-height: calc(78vh - 56px);
  overflow-y: auto;
}

.contract-editor-sticky-actions {
  position: sticky;
  top: 0;
  z-index: 12;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(18, 9, 8, 0.96);
  backdrop-filter: blur(10px);
}

.contract-editor-sticky-actions__title {
  display: grid;
  gap: 0.2rem;
}

.contract-editor-sticky-actions__title strong {
  font-size: 1rem;
}

.contract-editor-sticky-actions__buttons {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.contract-placeholder-toggle {
  white-space: nowrap;
}

.contract-placeholder-drawer {
  position: absolute;
  top: 5.5rem;
  left: 1rem;
  right: 1rem;
  z-index: 14;
  display: none;
  flex-direction: column;
  max-height: min(56vh, 620px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  background: rgba(22, 11, 10, 0.985);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.contract-placeholder-drawer.is-open {
  display: flex;
}

.contract-placeholder-drawer__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1rem 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.contract-placeholder-drawer__body {
  padding: 1rem;
  overflow-y: auto;
}

.contract-placeholder-drawer__close {
  flex-shrink: 0;
}

.contract-admin-preview-block {
  position: relative;
  margin-bottom: 1rem;
  border: 1px solid transparent;
  border-radius: 1rem;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.contract-admin-preview-block:hover {
  border-color: rgba(143, 29, 44, 0.24);
  box-shadow: 0 0 0 1px rgba(143, 29, 44, 0.1);
  transform: translateY(-1px);
}

.contract-admin-preview-block.is-active {
  border-color: rgba(143, 29, 44, 0.42);
  box-shadow: 0 0 0 2px rgba(143, 29, 44, 0.12);
}

.contract-admin-preview-block__header {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 0.55rem 0.8rem;
  border-bottom: 1px dashed rgba(64, 36, 31, 0.12);
  border-radius: 1rem 1rem 0 0;
  background: rgba(243, 238, 230, 0.94);
  color: #6b4b45;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.contract-admin-preview-block__body {
  padding: 0.9rem 0.95rem 1rem;
}

.contract-admin-preview-empty {
  min-height: 64px;
  padding: 1rem;
  border: 1px dashed rgba(64, 36, 31, 0.22);
  border-radius: 0.85rem;
  background: rgba(243, 238, 230, 0.45);
  color: #6b4b45;
}

.contract-editor-general {
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.03);
}

.contract-wysiwyg-editor {
  padding: 1rem;
}

.contract-wysiwyg-toolbar {
  position: sticky;
  top: 5.25rem;
  z-index: 11;
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin-bottom: 0.9rem;
  padding: 0.9rem 0 0.85rem;
  background: rgba(18, 9, 8, 0.97);
  backdrop-filter: blur(10px);
}

.contract-wysiwyg-toolbar__button,
.contract-editor-mode-switch__button,
.contract-placeholder-token {
  min-height: 2.2rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.04);
  color: var(--mh-text);
}

.contract-editor-mode-switch {
  display: flex;
  gap: 0.45rem;
}

.contract-editor-mode-switch__button.is-active {
  border-color: rgba(179, 38, 58, 0.36);
  background: rgba(179, 38, 58, 0.14);
  color: #ffffff;
}

.contract-wysiwyg-content,
.contract-html-mode-textarea {
  min-height: min(33vh, 420px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  background: rgba(14, 7, 6, 0.42);
  color: var(--mh-text);
}

.contract-wysiwyg-content {
  padding: 1rem;
  overflow-y: auto;
  line-height: 1.6;
}

.contract-html-mode-textarea {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.92rem;
}

.contract-placeholder-browser {
  overflow-y: auto;
}

.contract-placeholder-search {
  width: 100%;
}

.contract-placeholder-category {
  margin-bottom: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.025);
  overflow: hidden;
}

.contract-placeholder-category summary {
  padding: 0.8rem 0.9rem;
  cursor: pointer;
  font-weight: 700;
}

.contract-placeholder-category__list {
  display: grid;
  gap: 0.5rem;
  padding: 0 0.9rem 0.9rem;
}

.contract-placeholder-token {
  text-align: left;
}

.contract-placeholder-token code {
  color: inherit;
  word-break: break-all;
}

.theme-light .contract-editor-sticky-actions {
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: rgba(64, 36, 31, 0.08);
}

.theme-light .contract-wysiwyg-toolbar {
  background: rgba(255, 255, 255, 0.97);
}

.theme-light .contract-placeholder-drawer {
  border-color: rgba(64, 36, 31, 0.1);
  background: rgba(255, 255, 255, 0.985);
  box-shadow: 0 24px 56px rgba(52, 32, 26, 0.12);
}

.theme-light .contract-placeholder-drawer__header {
  border-bottom-color: rgba(64, 36, 31, 0.08);
}

.contract-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: none;
}

.contract-preview-modal.is-open {
  display: block;
}

.contract-preview-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 7, 7, 0.62);
}

.contract-preview-modal__dialog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(1200px, calc(100vw - 2rem));
  height: 90vh;
  margin: 5vh auto;
  border-radius: 1.1rem;
  overflow: hidden;
  background: #f4efe8;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.34);
}

.contract-preview-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(64, 36, 31, 0.1);
  background: rgba(255, 255, 255, 0.9);
}

.contract-preview-modal__body {
  overflow-y: auto;
  padding: 1.25rem;
}

.contract-document--modal-preview {
  max-width: 920px;
  min-height: 100%;
  margin: 0 auto;
  background: #fffdf8;
  color: #18110f;
}

.contract-document--modal-preview h1,
.contract-document--modal-preview h2,
.contract-document--modal-preview h3,
.contract-document--modal-preview p,
.contract-document--modal-preview li,
.contract-document--modal-preview th,
.contract-document--modal-preview td {
  color: #18110f;
}

.contract-document--modal-preview table {
  width: 100%;
  border-collapse: collapse;
}

.contract-document ul,
.contract-document ol {
  margin: 0 0 1rem 1.5rem;
  padding-left: 0.5rem;
}

.contract-document li {
  margin-bottom: 0.4rem;
}

.contract-document blockquote {
  margin: 0 0 1rem 1.5rem;
  padding: 0.4rem 0 0.4rem 1rem;
  border-left: 3px solid rgba(143, 29, 44, 0.35);
}

.contract-document--modal-preview th,
.contract-document--modal-preview td {
  border: 1px solid rgba(64, 36, 31, 0.16);
}

.theme-light .contract-preview-modal__backdrop {
  background: rgba(26, 18, 16, 0.4);
}

.movies-page {
  width: 100%;
  display: grid;
  gap: 1.25rem;
}

.movies-page--wide {
  width: 100%;
}

.movies-toolbar-card,
.movies-table-card {
  width: 100%;
  max-width: none;
}

.movies-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.movies-index-page {
  align-content: start;
  grid-auto-rows: max-content;
  gap: 1rem;
}

.movies-index-page .movies-toolbar-card--compact {
  padding: 1rem 1.25rem !important;
  min-height: 0 !important;
  height: auto !important;
}

.movies-index-page .movies-toolbar-card--compact .movies-toolbar {
  align-items: center;
}

.movies-index-page .movies-toolbar-card--compact .site-title {
  font-size: clamp(1.45rem, 2vw, 1.9rem);
  line-height: 1.1;
  margin: 0;
}

.movies-toolbar-help {
  max-width: 880px;
  margin: 0.45rem 0 0;
  line-height: 1.45;
}

.movies-disclaimer-card {
  max-width: none;
}

.movies-table-wrap {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  overflow-x: auto;
}

.movies-table {
  width: 100%;
  min-width: 900px;
  margin-bottom: 0;
  color: var(--mh-text);
  vertical-align: middle;
}

.movies-table > :not(caption) > * > * {
  padding: 1rem 0.95rem;
  background: transparent;
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.movies-table thead th {
  color: var(--mh-text-soft);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.theme-dark .movies-table tbody td {
  color: rgba(255, 255, 255, 0.72);
}

.theme-dark .movies-table tbody td strong {
  color: rgba(255, 255, 255, 0.92);
}

.theme-dark .movies-table tbody td code {
  color: #d98a96;
}

.theme-dark .movies-table tbody tr {
  transition: background-color 0.18s ease;
}

.theme-dark .movies-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.movies-poster-thumb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 78px;
  border-radius: 0.75rem;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--mh-text-soft);
  font-size: 0.72rem;
  text-align: center;
  line-height: 1.2;
}

.movies-poster-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  text-decoration: none;
  cursor: pointer;
}

.movies-poster-link:hover .movies-poster-thumb,
.movies-poster-link:focus-visible .movies-poster-thumb {
  border-color: rgba(219, 39, 119, 0.42);
  box-shadow: 0 0 0 2px rgba(219, 39, 119, 0.12);
}

.movies-poster-thumb--placeholder {
  padding: 0.5rem;
}

.movie-edit-page {
  display: grid;
  gap: 1.25rem;
}

.movie-step-card {
  width: 100%;
  max-width: none;
}

.movie-step-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem 1rem;
}

.movie-step-grid__full {
  grid-column: 1 / -1;
}

.movie-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.movie-character-counter {
  color: var(--mh-text-soft);
  font-size: 0.82rem;
}

.movie-contact-section + .movie-contact-section {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.movie-contact-section__title {
  margin: 0 0 1rem;
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
}

.movie-dynamic-section + .movie-dynamic-section {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.movie-dynamic-section__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.movie-dynamic-section__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.movie-dynamic-list {
  display: grid;
  gap: 0.9rem;
}

.movie-dynamic-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  gap: 0.9rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.03);
}

.movie-dynamic-row--music {
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
}

.movie-dynamic-actions {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

.movie-row-remove,
.movie-row-add {
  white-space: nowrap;
}

.movie-poster-upload {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.movie-poster-upload__preview {
  width: 100%;
}

.movie-poster-upload__image,
.movie-review-poster {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.movie-poster-upload__placeholder,
.movie-review-poster--placeholder {
  display: grid;
  place-items: center;
  padding: 1rem;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 600;
  text-align: center;
}

.movie-poster-upload__fields {
  display: grid;
  gap: 0.65rem;
}

.movie-upload-progress {
  display: grid;
  gap: 0.45rem;
}

.movie-upload-progress__track {
  height: 0.55rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.movie-upload-progress__bar {
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(179, 38, 58, 0.65), rgba(233, 143, 156, 0.9));
  animation: movie-upload-progress-slide 1.1s ease-in-out infinite;
}

.movie-upload-progress span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
  font-weight: 600;
}

.movie-review-page {
  display: grid;
  gap: 1.25rem;
}

.series-management-page {
  align-content: start;
  align-items: start;
}

.series-management-page .movie-step-indicator {
  margin-bottom: 0.25rem;
}

.series-management-page .series-episodes-help {
  padding: 1rem 1.1rem;
  border-radius: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.series-management-page .series-episodes-help__title {
  margin: 0 0 0.55rem;
  font-size: 1rem;
  font-weight: 700;
}

.series-management-page .series-episodes-help__list {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.45rem;
}

.theme-light .series-management-page .series-episodes-help {
  border-color: rgba(64, 36, 31, 0.12);
  background: rgba(64, 36, 31, 0.035);
}

.series-final-review-page .series-final-review-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.series-final-review-page .series-final-review-summary > div {
  display: grid;
  gap: 0.2rem;
  padding: 0.75rem 0.85rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.03);
}

.series-final-review-page .series-final-review-summary span {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.68);
}

.series-final-review-page .series-final-review-summary strong {
  font-size: 1.05rem;
}

.series-final-review-page .series-final-review-table-wrap {
  overflow-x: auto;
}

.series-final-review-page .series-final-review-table {
  min-width: 980px;
}

.series-final-review-page .series-final-review-season + .series-final-review-season {
  margin-top: 1rem;
}

.theme-light .series-final-review-page .series-final-review-summary > div {
  border-color: rgba(64, 36, 31, 0.12);
  background: rgba(64, 36, 31, 0.03);
}

.theme-light .series-final-review-page .series-final-review-summary span {
  color: rgba(36, 19, 17, 0.67);
}

.series-episode-materials-page .series-episode-materials-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
}

.series-episode-materials-page .series-episode-material-card {
  width: 100%;
  max-width: none;
  padding: 1.55rem;
  border-radius: 1.2rem;
  gap: 1rem;
}

.series-episode-materials-page .series-episode-material-card--wide {
  grid-column: 1 / -1;
}

.series-episode-materials-page .series-episode-material-card .materials-delivery-card__header {
  align-items: flex-start;
}

.series-episode-materials-page .series-episode-material-card .materials-delivery-card__main {
  min-width: 0;
}

.series-episode-materials-page .series-episode-material-card .materials-delivery-card__title {
  margin: 0;
  font-size: 1.6rem;
}

.series-episode-materials-page .series-episode-material-card .materials-delivery-card__description {
  margin: 0.35rem 0 0;
}

.series-episode-materials-page .series-episode-material-card .materials-delivery-card__status-row {
  padding-top: 0.15rem;
  margin-bottom: 0.2rem;
}

.series-episode-materials-page .series-episode-material-card__badge-optional {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.86);
}

.theme-light .series-episode-materials-page .series-episode-material-card__badge-optional {
  background: rgba(64, 36, 31, 0.06);
  border-color: rgba(64, 36, 31, 0.14);
  color: rgba(36, 19, 17, 0.85);
}

.series-episode-materials-page .series-episode-material-help {
  margin-top: 0.25rem;
}

.series-episode-materials-page .series-episode-select {
  max-width: 220px;
}

.series-episode-materials-page .materials-file-picker {
  border-style: solid;
  border-color: rgba(103, 210, 138, 0.22);
  background: rgba(103, 210, 138, 0.06);
  padding: 1.05rem;
}

.series-episode-materials-page .materials-trailer-history {
  padding: 1.05rem;
}

.series-episode-materials-page .materials-existing-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

.series-episode-materials-page .materials-existing-table th,
.series-episode-materials-page .materials-existing-table td {
  padding: 0.7rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  vertical-align: middle;
  text-align: left;
}

.series-episode-materials-page .materials-existing-table th {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.series-episode-materials-page .materials-existing-table .file-name {
  overflow-wrap: anywhere;
  word-break: break-word;
  font-weight: 700;
}

.series-episode-materials-page .materials-existing-table .action-cell {
  width: 1%;
  white-space: nowrap;
}

.theme-light .series-episode-materials-page .materials-existing-table th,
.theme-light .series-episode-materials-page .materials-existing-table td {
  border-bottom-color: rgba(64, 36, 31, 0.09);
}

.theme-light .series-episode-materials-page .materials-existing-table th {
  color: rgba(36, 19, 17, 0.62);
}

.series-episode-materials-page .materials-existing-file__meta {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.series-episode-materials-page code {
  white-space: normal;
  overflow-wrap: anywhere;
}

.series-episode-materials-page .materials-existing-file strong {
  white-space: normal;
  overflow-wrap: anywhere;
}

@media (max-width: 900px) {
  .series-final-review-page .series-final-review-summary {
    grid-template-columns: 1fr;
  }

  .series-episode-materials-page .series-episode-materials-grid {
    grid-template-columns: 1fr;
  }
}

.movie-review-page--wide,
.movie-review-page--wide .movie-review-hero,
.movie-review-page--wide .movie-review-section,
.movie-review-page--wide .movie-review-footer {
  width: 100%;
  max-width: none;
}

.movie-review-hero {
  display: grid;
  grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
  gap: 1.75rem;
}

.movie-review-hero__poster {
  align-self: start;
}

.movie-review-hero__content {
  display: grid;
  gap: 1.25rem;
}

.movie-review-hero__header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.movie-review-edit-actions,
.movie-review-footer__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.movie-review-copy {
  display: grid;
  gap: 1rem;
}

.movie-review-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.65;
}

.movie-review-subtitle {
  margin: 0 0 0.35rem;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.movie-review-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 0.9rem 1rem;
}

dialog#modal-main,
dialog#modal-director,
dialog#modal-producer,
dialog#modal-credits,
dialog#modal-cast,
dialog#modal-music-cues {
  width: min(960px, calc(100vw - 2rem));
  max-width: 960px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  background: #ffffff;
  color: #0f172a;
}

dialog#modal-main::backdrop,
dialog#modal-director::backdrop,
dialog#modal-producer::backdrop,
dialog#modal-credits::backdrop,
dialog#modal-cast::backdrop,
dialog#modal-music-cues::backdrop {
  background: rgba(15, 23, 42, 0.45);
}

.theme-dark dialog#modal-main,
.theme-dark dialog#modal-director,
.theme-dark dialog#modal-producer,
.theme-dark dialog#modal-credits,
.theme-dark dialog#modal-cast,
.theme-dark dialog#modal-music-cues {
  background: #0f172a;
  color: #e2e8f0;
}

dialog#modal-main .form-control,
dialog#modal-main .form-select,
dialog#modal-director .form-control,
dialog#modal-director .form-select,
dialog#modal-producer .form-control,
dialog#modal-producer .form-select,
dialog#modal-credits .form-control,
dialog#modal-credits .form-select,
dialog#modal-cast .form-control,
dialog#modal-cast .form-select,
dialog#modal-music-cues .form-control,
dialog#modal-music-cues .form-select {
  background: #ffffff;
  color: #0f172a;
  border-color: rgba(148, 163, 184, 0.45);
}

.theme-dark dialog#modal-main .form-control,
.theme-dark dialog#modal-main .form-select,
.theme-dark dialog#modal-director .form-control,
.theme-dark dialog#modal-director .form-select,
.theme-dark dialog#modal-producer .form-control,
.theme-dark dialog#modal-producer .form-select,
.theme-dark dialog#modal-credits .form-control,
.theme-dark dialog#modal-credits .form-select,
.theme-dark dialog#modal-cast .form-control,
.theme-dark dialog#modal-cast .form-select,
.theme-dark dialog#modal-music-cues .form-control,
.theme-dark dialog#modal-music-cues .form-select {
  background: #111827;
  color: #f8fafc;
  border-color: rgba(148, 163, 184, 0.45);
}

.movie-info-modal__title {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
}

.movie-info-modal__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.movie-info-modal__field--full {
  grid-column: 1 / -1;
}

.movie-info-modal__actions {
  margin-top: 1rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
}

@media (max-width: 900px) {
  .movie-info-modal__grid {
    grid-template-columns: 1fr;
  }
}

.movie-review-summary__item {
  display: grid;
  grid-template-columns: minmax(132px, 170px) minmax(0, 1fr);
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.025);
}

.movie-review-summary__item span {
  display: block;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.movie-review-summary__item strong {
  color: rgba(255, 255, 255, 0.94);
  font-size: 0.95rem;
}

.movie-review-summary__item--full {
  grid-column: 1 / -1;
}

.movie-review-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.movie-review-section {
  display: grid;
  gap: 1rem;
}

.movie-review-section--full {
  width: 100%;
}

.movie-review-section__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}

.series-finalize-btn {
  background: #15803d;
  border-color: #15803d;
  color: #f5fff8;
}

.series-finalize-btn:hover,
.series-finalize-btn:focus-visible {
  background: #166534;
  border-color: #166534;
  color: #f5fff8;
}

.series-seasons-page .series-seasons-help {
  margin-top: 1rem;
  border: 1px solid rgba(21, 128, 61, 0.28);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  background: rgba(21, 128, 61, 0.07);
}

.series-seasons-page .series-seasons-help__title {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 700;
}

.series-seasons-page .series-seasons-help__list {
  margin: 0 0 0.5rem 1.15rem;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.movie-review-section__title {
  margin: 0;
  color: #ffffff;
  font-size: 1.08rem;
  font-weight: 700;
}

.movie-review-contact-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin: 0;
}

.movie-review-contact-list div {
  padding: 0.9rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.03);
}

.movie-review-contact-list dt {
  margin: 0 0 0.25rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.movie-review-contact-list dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
}

.movie-review-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.movie-review-table {
  --bs-table-bg: transparent;
  --bs-table-color: rgba(255, 255, 255, 0.9);
  --bs-table-border-color: rgba(255, 255, 255, 0.08);
  --bs-table-striped-bg: rgba(255, 255, 255, 0.03);
  --bs-table-hover-bg: rgba(255, 255, 255, 0.04);
  width: 100%;
  min-width: 760px;
  margin-bottom: 0;
  background: transparent;
}

.movie-review-table-wrap {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.02);
}

.movie-review-table thead,
.movie-review-table tbody,
.movie-review-table tr {
  background: transparent !important;
}

.movie-review-table thead th {
  background: rgba(255, 255, 255, 0.04) !important;
  color: rgba(255, 255, 255, 0.64);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.movie-review-table tbody td {
  background: transparent !important;
  color: rgba(255, 255, 255, 0.88);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.movie-review-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.04) !important;
}

.movie-review-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.movie-review-footer__status {
  display: grid;
  gap: 0.6rem;
}

.contract-page {
  display: grid;
  gap: 1.25rem;
}

.contract-preview-toolbar {
  display: grid;
  gap: 1rem;
}

.contract-preview-toolbar__meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.contract-preview-toolbar__item {
  padding: 0.95rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.025);
}

.contract-preview-toolbar__item span {
  display: block;
  margin-bottom: 0.35rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.contract-preview-toolbar__item strong {
  color: rgba(255, 255, 255, 0.94);
}

.contract-preview-toolbar__hash {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.8rem;
  word-break: break-all;
}

.contract-document-card {
  padding: 0;
  overflow: hidden;
}

.contract-document {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem;
  background: #fffdf8;
  color: #111111;
  line-height: 1.7;
}

.contract-document h1,
.contract-document h2,
.contract-document h3 {
  color: #121212;
  line-height: 1.25;
}

.contract-document h1 {
  margin: 0 0 1rem;
  font-size: 2rem;
}

.contract-document h2 {
  margin: 1.75rem 0 0.8rem;
  font-size: 1.3rem;
}

.contract-document h3 {
  margin: 1.35rem 0 0.65rem;
  font-size: 1.05rem;
}

.contract-document p,
.contract-document li {
  color: #202020;
}

.contract-document table {
  width: 100%;
  margin: 1rem 0;
  border-collapse: collapse;
}

.contract-document th,
.contract-document td {
  padding: 0.75rem;
  border: 1px solid #d8d0c7;
  vertical-align: top;
}

.contract-document th {
  background: #f3eee6;
  font-weight: 700;
}

.contract-status-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.contract-status-active {
  color: #67d28a;
}

.contract-sign-page {
  display: grid;
  gap: 1.25rem;
}

.contract-signature-card,
.contract-sign-form {
  display: grid;
  gap: 1rem;
}

.contract-sign-summary {
  display: grid;
  gap: 1.1rem;
}

.contract-sign-form form {
  display: grid;
  gap: 1.25rem;
}

.contract-sign-legal-copy {
  display: grid;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.03);
}

.contract-sign-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
  line-height: 1.55;
}

.contract-sign-checkbox input {
  margin-top: 0.2rem;
  flex: 0 0 auto;
}

.theme-light .contract-sign-page .contract-sign-checkbox,
.theme-light .contract-sign-page .contract-sign-checkbox span {
  color: #2a1a18;
}

.theme-dark .contract-sign-page .contract-sign-checkbox,
.theme-dark .contract-sign-page .contract-sign-checkbox span {
  color: rgba(255, 255, 255, 0.92);
}

.materials-intro-page {
  display: grid;
  gap: 1.25rem;
  width: 100%;
  max-width: none;
}

.materials-intro-page--wide {
  width: 100%;
  max-width: none;
}

.materials-intro-page .site-card,
.materials-intro-page .co-card,
.materials-intro-hero,
.materials-contract-summary,
.materials-warning-card,
.materials-intro-actions-card {
  width: 100%;
  max-width: none;
}

.materials-intro-hero {
  display: grid;
  grid-template-columns: minmax(320px, 0.85fr) minmax(420px, 1.15fr);
  gap: 2rem;
  align-items: center;
}

.materials-intro-hero__content {
  display: grid;
  gap: 0.75rem;
}

.materials-intro-hero__art {
  display: block;
  width: 100%;
}

.materials-hero-img {
  display: block;
  width: 100%;
  max-width: 620px;
  height: auto;
  border-radius: 1.2rem;
}

.materials-hero-img--dark {
  display: none;
}

.theme-dark .materials-hero-img--light {
  display: none;
}

.theme-dark .materials-hero-img--dark {
  display: block;
}

.theme-light .materials-hero-img--light {
  display: block;
}

.theme-light .materials-hero-img--dark {
  display: none;
}

.materials-intro-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  width: 100%;
}

.materials-requirement-card {
  height: 100%;
}

.materials-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.materials-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.materials-requirement-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.2rem;
}

.materials-requirement-card__icon {
  display: inline-grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  flex: 0 0 auto;
  border-radius: 1rem;
  background: rgba(255, 82, 104, 0.12);
  color: #ff6b7d;
}

.materials-requirement-card__icon svg {
  width: 1.45rem;
  height: 1.45rem;
  display: block;
}

.materials-card__title {
  margin-top: 1.1rem;
  min-height: 2.6rem;
  line-height: 1.3;
}

.materials-card__body {
  margin-top: 1rem;
  min-height: 7.5rem;
  display: grid;
  align-content: start;
  gap: 1rem;
}

.materials-requirement-card__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 2rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(179, 38, 58, 0.14);
  border: 1px solid rgba(179, 38, 58, 0.22);
  color: #ffd6dc;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.materials-format-list {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
  line-height: 1.7;
}

.materials-format-list li + li {
  margin-top: 0.15rem;
}

.materials-card-note {
  color: rgba(255, 214, 220, 0.92);
  font-size: 0.95rem;
  line-height: 1.65;
}

.materials-card__note {
  margin-top: 0;
}

.materials-formats-block {
  display: grid;
  gap: 0.1rem;
}

.materials-card__formats {
  margin-top: auto;
  padding-top: 1.25rem;
}

.materials-formats-title {
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.materials-card__formats-title {
  margin-bottom: 0.7rem;
}

.materials-card__formats-list {
  margin: 0;
  padding-left: 1.1rem;
}

.materials-warning-card {
  border-color: rgba(245, 192, 90, 0.22);
  background: linear-gradient(180deg, rgba(245, 192, 90, 0.08), rgba(255, 255, 255, 0.03));
}

.materials-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.theme-light .materials-intro-page .materials-confirmation,
.theme-light .materials-intro-page .materials-confirmation label,
.theme-light .materials-intro-page .materials-confirmation .form-check-label,
.theme-light .materials-intro-page .materials-confirmation .contract-sign-checkbox,
.theme-light .materials-intro-page .materials-confirmation .contract-sign-checkbox span {
  color: #2a1a18;
}

.theme-dark .materials-intro-page .materials-confirmation,
.theme-dark .materials-intro-page .materials-confirmation label,
.theme-dark .materials-intro-page .materials-confirmation .form-check-label,
.theme-dark .materials-intro-page .materials-confirmation .contract-sign-checkbox,
.theme-dark .materials-intro-page .materials-confirmation .contract-sign-checkbox span {
  color: rgba(255, 255, 255, 0.88);
}

.theme-light .materials-requirement-card__icon {
  background: rgba(143, 29, 44, 0.1);
  color: #8f1d2c;
}

.theme-light .materials-requirement-card__badge {
  background: rgba(143, 29, 44, 0.1);
  border-color: rgba(143, 29, 44, 0.16);
  color: #8f1d2c;
}

.theme-light .materials-card-note {
  color: #6a2f33;
}

.theme-light .materials-formats-title {
  color: rgba(36, 19, 17, 0.62);
}

.theme-light .materials-warning-card {
  border-color: rgba(154, 106, 15, 0.18);
  background: linear-gradient(180deg, rgba(245, 192, 90, 0.14), rgba(64, 36, 31, 0.03));
}

.materials-page {
  display: grid;
  gap: 1.25rem;
  width: 100%;
  max-width: none;
}

.materials-page .site-card,
.materials-page .co-card {
  width: 100%;
  max-width: none;
}

.materials-status-summary {
  display: grid;
  gap: 1.25rem;
}

.materials-status-summary__intro,
.materials-status-summary__meta {
  display: grid;
  gap: 1rem;
}

.materials-status-summary__meta {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.materials-progress-card {
  display: grid;
  gap: 1rem;
}

.materials-progress-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.materials-progress-bar {
  position: relative;
  width: 100%;
  height: 0.85rem;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.materials-progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff6b7d 0%, #ffb089 100%);
}

.materials-delivery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.materials-delivery-card {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  height: 100%;
}

.materials-delivery-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.materials-delivery-card__icon {
  display: inline-grid;
  place-items: center;
  width: 3.35rem;
  height: 3.35rem;
  flex: 0 0 auto;
  border-radius: 1rem;
  background: rgba(255, 82, 104, 0.12);
  color: #ff6b7d;
}

.materials-delivery-card__icon svg {
  width: 1.45rem;
  height: 1.45rem;
  display: block;
}

.materials-delivery-card__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(179, 38, 58, 0.14);
  border: 1px solid rgba(179, 38, 58, 0.22);
  color: #ffd6dc;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.materials-delivery-card__main {
  display: grid;
  gap: 1rem;
  flex: 1 1 auto;
}

.materials-delivery-card__title {
  line-height: 1.3;
}

.materials-delivery-card__description {
  line-height: 1.65;
}

.materials-delivery-card__status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.materials-delivery-card__status {
  width: fit-content;
}

.materials-delivery-card__formats,
.materials-delivery-card__rules,
.materials-existing-files,
.materials-trailer-history,
.materials-language-placeholder {
  display: grid;
  gap: 0.7rem;
}

.materials-file-picker {
  display: grid;
  gap: 0.8rem;
  padding: 1rem;
  border-radius: 1rem;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
}

.materials-file-picker__button {
  position: relative;
  width: fit-content;
  overflow: hidden;
}

.materials-file-picker__controls {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.materials-file-picker--secure-trailer {
  border-style: solid;
  border-color: rgba(103, 210, 138, 0.22);
  background: rgba(103, 210, 138, 0.06);
}

.materials-secure-upload-button {
  width: fit-content;
}

.materials-file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.materials-upload-progress {
  display: grid;
  gap: 0.55rem;
  padding: 0.85rem 0.95rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.materials-upload-progress__bar {
  height: 0.55rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.materials-upload-progress__bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #67d28a, #72c6ff);
  transition: width 160ms ease;
}

.materials-upload-progress--success {
  border-color: rgba(103, 210, 138, 0.28);
  background: rgba(103, 210, 138, 0.08);
}

.materials-upload-progress--error {
  border-color: rgba(255, 107, 125, 0.3);
  background: rgba(255, 107, 125, 0.08);
}

.materials-file-precheck {
  display: grid;
  gap: 0.75rem;
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.materials-file-precheck strong {
  font-size: 0.95rem;
}

.materials-file-precheck--success {
  border-color: rgba(103, 210, 138, 0.24);
  background: rgba(103, 210, 138, 0.08);
}

.materials-file-precheck--warning {
  border-color: rgba(245, 192, 90, 0.26);
  background: rgba(245, 192, 90, 0.1);
}

.materials-file-precheck--error {
  border-color: rgba(255, 107, 125, 0.3);
  background: rgba(255, 107, 125, 0.08);
}

.materials-existing-file {
  display: grid;
  gap: 0.8rem;
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.materials-existing-file__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.materials-existing-file__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0;
}

.materials-existing-file__meta dt {
  margin: 0 0 0.2rem;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.materials-existing-file__meta dd {
  margin: 0;
}

.materials-trailer-history {
  padding: 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.materials-trailer-history__table-wrap {
  overflow-x: auto;
}

.materials-trailer-history__table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.materials-trailer-history__table th,
.materials-trailer-history__table td {
  padding: 0.75rem 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  text-align: left;
  vertical-align: middle;
}

.materials-trailer-history__table th {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.materials-trailer-history__action {
  width: max-content;
}

.materials-inline-meta {
  margin-top: 0.45rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.8rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.72);
}

.materials-file-type-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  margin-right: 0.45rem;
  padding: 0.18rem 0.45rem;
  border-radius: 0.4rem;
  background: rgba(125, 211, 252, 0.12);
  color: #bae6fd;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.materials-photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.9rem;
}

.materials-photo-card {
  position: relative;
  overflow: hidden;
  border-radius: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
}

.materials-photo-card__thumb {
  position: relative;
  z-index: 1;
  aspect-ratio: 4 / 3;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, rgba(96, 165, 250, 0.14), rgba(16, 185, 129, 0.1));
}

.materials-photo-card__thumb--placeholder {
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.62), rgba(51, 65, 85, 0.52));
}

.materials-photo-card__image {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.materials-photo-card .materials-photo-card__delete {
  position: absolute;
  left: 50%;
  bottom: 0.75rem;
  transform: translateX(-50%);
  z-index: 20;
  min-width: 84px;
  padding: 0.32rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: #a71930;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
  opacity: 1;
}

.materials-photo-card .materials-photo-card__delete:hover,
.materials-photo-card .materials-photo-card__delete:focus {
  background: #c21f3a;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.75);
}

.materials-local-photo-preview {
  display: block;
  width: min(320px, 100%);
  max-height: 180px;
  object-fit: cover;
  border-radius: 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.materials-trailer-history--gallery .materials-trailer-history__table {
  min-width: 0;
}

.materials-trailer-history--gallery .materials-trailer-history__table thead {
  display: none;
}

.materials-trailer-history--gallery .materials-trailer-history__table tbody {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.85rem;
}

.materials-trailer-history--gallery .materials-trailer-history__table tr {
  display: grid;
  gap: 0.5rem;
  padding: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.025);
}

.materials-trailer-history--gallery .materials-trailer-history__table td {
  display: block;
  padding: 0;
  border-bottom: 0;
}

.materials-technical-note {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.93rem;
  line-height: 1.6;
}

.materials-delivery-card .admin-badge.is-approved,
.materials-existing-file .admin-badge.is-approved {
  background: rgba(103, 210, 138, 0.14);
  border: 1px solid rgba(103, 210, 138, 0.22);
  color: #88f0ab;
}

.materials-delivery-card .admin-badge.is-review,
.materials-existing-file .admin-badge.is-review {
  background: rgba(116, 183, 255, 0.12);
  border: 1px solid rgba(116, 183, 255, 0.18);
  color: #acd4ff;
}

.materials-delivery-card .admin-badge.is-warning,
.materials-existing-file .admin-badge.is-warning {
  background: rgba(245, 192, 90, 0.14);
  border: 1px solid rgba(245, 192, 90, 0.22);
  color: #ffd88b;
}

.materials-delivery-card .admin-badge.is-rejected,
.materials-existing-file .admin-badge.is-rejected {
  background: rgba(255, 107, 125, 0.12);
  border: 1px solid rgba(255, 107, 125, 0.18);
  color: #ffc0cb;
}

.materials-delivery-card .admin-badge.is-selected,
.materials-existing-file .admin-badge.is-selected {
  background: rgba(183, 129, 255, 0.12);
  border: 1px solid rgba(183, 129, 255, 0.18);
  color: #dcc2ff;
}

.theme-light .materials-progress-bar {
  background: rgba(64, 36, 31, 0.08);
}

.theme-light .materials-delivery-card__icon {
  background: rgba(143, 29, 44, 0.1);
  color: #8f1d2c;
}

.theme-light .materials-delivery-card__badge {
  background: rgba(143, 29, 44, 0.1);
  border-color: rgba(143, 29, 44, 0.16);
  color: #8f1d2c;
}

.theme-light .materials-file-picker,
.theme-light .materials-existing-file,
.theme-light .materials-trailer-history,
.theme-light .materials-file-precheck {
  border-color: rgba(64, 36, 31, 0.09);
  background: rgba(64, 36, 31, 0.03);
}

.theme-light .materials-file-picker--secure-trailer {
  border-color: rgba(59, 152, 92, 0.22);
  background: rgba(59, 152, 92, 0.07);
}

.theme-light .materials-upload-progress {
  border-color: rgba(64, 36, 31, 0.09);
  background: rgba(64, 36, 31, 0.03);
}

.theme-light .materials-upload-progress__bar {
  background: rgba(64, 36, 31, 0.1);
}

.theme-light .materials-file-type-badge {
  background: rgba(143, 29, 44, 0.09);
  color: #8f1d2c;
}

.theme-light .materials-inline-meta {
  color: rgba(36, 19, 17, 0.67);
}

.theme-light .materials-photo-card {
  border-color: rgba(64, 36, 31, 0.1);
  background: rgba(64, 36, 31, 0.03);
}

.theme-light .materials-photo-card__thumb {
  background: linear-gradient(160deg, rgba(143, 29, 44, 0.12), rgba(64, 36, 31, 0.08));
}

.theme-light .materials-local-photo-preview {
  border-color: rgba(64, 36, 31, 0.18);
}

.theme-light .materials-trailer-history--gallery .materials-trailer-history__table tr {
  border-color: rgba(64, 36, 31, 0.09);
  background: rgba(64, 36, 31, 0.025);
}

.theme-light .materials-existing-file__meta dt,
.theme-light .materials-trailer-history__table th,
.theme-light .materials-technical-note {
  color: rgba(36, 19, 17, 0.66);
}

.theme-light .materials-trailer-history__table th,
.theme-light .materials-trailer-history__table td {
  border-bottom-color: rgba(64, 36, 31, 0.08);
}

.theme-light .materials-file-precheck--success {
  border-color: rgba(59, 152, 92, 0.26);
  background: rgba(59, 152, 92, 0.08);
}

.theme-light .materials-file-precheck--warning {
  border-color: rgba(181, 132, 34, 0.22);
  background: rgba(245, 192, 90, 0.14);
}

.theme-light .materials-file-precheck--error {
  border-color: rgba(190, 53, 76, 0.22);
  background: rgba(255, 107, 125, 0.1);
}

.theme-light .materials-delivery-card .admin-badge.is-approved,
.theme-light .materials-existing-file .admin-badge.is-approved {
  background: rgba(59, 152, 92, 0.12);
  border-color: rgba(59, 152, 92, 0.18);
  color: #2d7c4a;
}

.theme-light .materials-delivery-card .admin-badge.is-review,
.theme-light .materials-existing-file .admin-badge.is-review {
  background: rgba(69, 125, 206, 0.1);
  border-color: rgba(69, 125, 206, 0.16);
  color: #2f5f9c;
}

.theme-light .materials-delivery-card .admin-badge.is-warning,
.theme-light .materials-existing-file .admin-badge.is-warning {
  background: rgba(201, 152, 52, 0.12);
  border-color: rgba(201, 152, 52, 0.18);
  color: #8a6114;
}

.theme-light .materials-delivery-card .admin-badge.is-rejected,
.theme-light .materials-existing-file .admin-badge.is-rejected {
  background: rgba(190, 53, 76, 0.1);
  border-color: rgba(190, 53, 76, 0.16);
  color: #8e2234;
}

.theme-light .materials-delivery-card .admin-badge.is-selected,
.theme-light .materials-existing-file .admin-badge.is-selected {
  background: rgba(128, 84, 194, 0.1);
  border-color: rgba(128, 84, 194, 0.16);
  color: #69439f;
}

.google-drive-status-card,
.google-drive-actions-card {
  display: grid;
  gap: 1rem;
}

.google-drive-status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.google-drive-status-note {
  padding-top: 0.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.google-drive-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.materials-drive-card {
  gap: 1.2rem;
}

.materials-drive-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.materials-drive-tree {
  display: grid;
  gap: 0.7rem;
}

.materials-drive-tree__item {
  display: grid;
  gap: 0.35rem;
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.materials-drive-tree__item.is-root {
  padding: 1rem 1.1rem;
  background: rgba(42, 157, 143, 0.12);
  border-color: rgba(42, 157, 143, 0.28);
}

.materials-drive-tree__item.is-child {
  margin-left: 1.35rem;
}

.materials-drive-tree__item.is-grandchild {
  margin-left: 2.7rem;
}

.materials-drive-tree__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.materials-drive-tree__name {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.materials-drive-tree__check {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  color: #d8fff2;
  background: rgba(42, 157, 143, 0.72);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
}

.materials-drive-tree__item.is-root .materials-drive-tree__name strong {
  font-size: 1rem;
}

.theme-light .google-drive-status-note {
  border-top-color: rgba(64, 36, 31, 0.08);
}

.theme-light .materials-drive-tree__item {
  border-color: rgba(64, 36, 31, 0.09);
  background: rgba(64, 36, 31, 0.03);
}

.theme-light .materials-drive-tree__item.is-root {
  background: rgba(42, 157, 143, 0.1);
  border-color: rgba(42, 157, 143, 0.24);
}

.theme-light .materials-drive-tree__check {
  color: #f7fffb;
}

@media (max-width: 1200px) {
  .materials-intro-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .materials-card__body {
    min-height: 8.5rem;
  }

  .materials-delivery-grid {
    grid-template-columns: 1fr;
  }

  .google-drive-status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .materials-drive-meta {
    grid-template-columns: 1fr;
  }

  .materials-drive-tree__item.is-child,
  .materials-drive-tree__item.is-grandchild {
    margin-left: 0.85rem;
  }
}

@media (max-width: 991px) {
  .contract-preview-toolbar__meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contract-document {
    padding: 1.5rem;
  }

  .materials-status-summary__meta,
  .materials-existing-file__meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .materials-intro-hero,
  .materials-intro-grid {
    grid-template-columns: 1fr;
  }

  .materials-card__title,
  .materials-card__body {
    min-height: 0;
  }

  .materials-status-summary__meta,
  .materials-existing-file__meta {
    grid-template-columns: 1fr;
  }

  .google-drive-status-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575px) {
  .contract-preview-toolbar__meta {
    grid-template-columns: 1fr;
  }

  .contract-document {
    padding: 1.1rem;
  }

  .contract-status-card__footer {
    justify-content: stretch;
  }

  .contract-status-card__footer .mh-btn {
    width: 100%;
  }

  .materials-actions {
    justify-content: stretch;
  }

  .materials-actions .mh-btn {
    width: 100%;
  }
}

@keyframes movie-upload-progress-slide {
  0% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(280%);
  }
}

.movie-step-indicator {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.movie-step-indicator__item {
  display: inline-flex;
  align-items: center;
  align-self: auto;
  min-height: 2.3rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--mh-text-soft);
  font-size: 0.84rem;
  font-weight: 600;
}

.movie-step-indicator__link {
  display: inline-flex;
  align-items: center;
  line-height: 1.15;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.movie-step-indicator__link:hover,
.movie-step-indicator__link:focus {
  border-color: rgba(179, 38, 58, 0.28);
  background: rgba(179, 38, 58, 0.08);
  color: #ffffff;
  transform: translateY(-1px);
}

.movie-step-indicator__item.is-active {
  border-color: rgba(179, 38, 58, 0.36);
  background: rgba(179, 38, 58, 0.14);
  color: #ffffff;
}

.movie-step-indicator__item.is-disabled {
  opacity: 0.52;
  cursor: default;
}

@media (max-width: 991.98px) {
  .movie-poster-upload,
  .movie-review-hero,
  .movie-review-grid,
  .movie-review-contact-list {
    grid-template-columns: 1fr;
  }

  .movie-review-summary {
    grid-template-columns: 1fr;
  }

  .movie-dynamic-row,
  .movie-dynamic-row--music {
    grid-template-columns: 1fr;
  }

  .movie-dynamic-actions {
    justify-content: flex-start;
  }

  .co-layout {
    grid-template-columns: 1fr;
  }

  .co-sidebar {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .co-sidebar__brand-text {
    font-size: 1.7rem;
  }

  .admin-toolbar__form--users,
  .admin-toolbar__form--navigation,
  .admin-toolbar__form--contracts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-toolbar__actions {
    justify-content: flex-start;
  }

  .admin-summary-grid {
    grid-template-columns: 1fr;
  }

  .movies-toolbar {
    align-items: stretch;
  }

  .movie-step-grid {
    grid-template-columns: 1fr;
  }

  .contract-editor-grid {
    grid-template-columns: 1fr;
  }

  .contract-placeholder-panel {
    position: static;
  }

  .admin-contract-workspace {
    grid-template-columns: 1fr;
  }

  .admin-contract-preview-pane .contract-document--admin-preview {
    height: auto;
    max-height: 48vh;
  }

  .admin-contract-editor-pane {
    max-height: none;
    overflow: visible;
  }

  .contract-editor-sticky-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .contract-editor-sticky-actions__buttons {
    justify-content: flex-start;
  }

  .contract-wysiwyg-toolbar {
    top: 7.5rem;
  }

  .contract-placeholder-drawer {
    position: static;
    max-height: 50vh;
  }

  .contract-preview-modal__dialog {
    width: calc(100vw - 1rem);
    height: 92vh;
    margin: 4vh auto;
  }
}

@media (max-width: 767.98px) {
  .co-topbar,
  .co-content,
  .co-footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .co-topbar {
    padding-top: 1.25rem;
  }

  .user-dropdown__menu {
    right: 0;
    width: min(92vw, 320px);
  }

  .admin-toolbar__form--users,
  .admin-toolbar__form--navigation,
  .admin-toolbar__form--contracts {
    grid-template-columns: 1fr;
  }

  .admin-pagination {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 575.98px) {
  .movie-review-summary {
    grid-template-columns: 1fr;
  }

  .admin-contract-pane__header {
    flex-direction: column;
    align-items: flex-start;
  }
}

.admin-catalog-layout {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.admin-catalog-filter-form .mh-btn {
  min-height: 2.5rem;
}

.admin-catalog-type-tabs {
  display: inline-flex;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  overflow: hidden;
}

.admin-catalog-tab {
  padding: 0.45rem 0.8rem;
  text-decoration: none;
  color: inherit;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.admin-catalog-tab:last-child {
  border-right: 0;
}

.admin-catalog-tab.is-active {
  background: rgba(143, 29, 44, 0.28);
  font-weight: 700;
}

.import-movies-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.45rem;
  border: 1px solid rgba(143, 29, 44, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 24px rgba(36, 19, 17, 0.05);
}

.import-movies-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid transparent;
  color: var(--mh-text-soft);
  text-decoration: none;
  font-weight: 600;
  line-height: 1.2;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.import-movies-tab:hover,
.import-movies-tab:focus {
  color: var(--mh-burgundy);
  text-decoration: none;
  background: rgba(143, 29, 44, 0.06);
  border-color: rgba(143, 29, 44, 0.14);
}

.import-movies-tab.is-active {
  color: var(--mh-burgundy);
  background: rgba(143, 29, 44, 0.1);
  border-color: rgba(143, 29, 44, 0.22);
  box-shadow: inset 0 -2px 0 var(--mh-burgundy);
}

.import-movies-intro-card {
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.import-movies-intro-card .site-title {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
}

.import-movies-intro-card .site-copy {
  max-width: 70ch;
}

.import-movies-hero-card {
  min-height: 0 !important;
  height: auto !important;
  padding-bottom: 1.5rem !important;
}

.import-movies-hero-card .site-title,
.import-movies-hero-card .site-copy {
  max-width: 760px;
}

.co-body:not(.theme-light) .import-movies-tabs {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(10, 10, 10, 0.24);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.co-body:not(.theme-light) .import-movies-tab {
  color: rgba(255, 255, 255, 0.74);
}

.co-body:not(.theme-light) .import-movies-tab:hover,
.co-body:not(.theme-light) .import-movies-tab:focus {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.co-body:not(.theme-light) .import-movies-tab.is-active {
  color: #ffffff;
  background: rgba(143, 29, 44, 0.34);
  border-color: rgba(179, 38, 58, 0.6);
  box-shadow: inset 0 -2px 0 rgba(255, 255, 255, 0.9);
}

.theme-light .import-movies-tabs {
  border-color: rgba(64, 36, 31, 0.12);
  background: rgba(255, 255, 255, 0.88);
}

.import-movies-legacy-shell {
  display: grid;
  gap: 1rem;
}

.import-movies-legacy-shell__note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.import-movies-legacy-shell__frame-wrap {
  overflow: hidden;
  border: 1px solid rgba(143, 29, 44, 0.14);
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.import-movies-legacy-shell__frame {
  display: block;
  width: 100%;
  min-height: 1200px;
  border: 0;
  background: transparent;
}

.co-body:not(.theme-light) .import-movies-legacy-shell__frame-wrap {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.theme-light .import-movies-legacy-shell__frame-wrap {
  border-color: rgba(64, 36, 31, 0.12);
  background: rgba(255, 255, 255, 0.92);
}

.admin-catalog-item {
  display: grid;
  grid-template-columns: 36px 170px minmax(0, 1fr);
  gap: 1rem;
}

.admin-catalog-item__select {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 0.35rem;
}

.admin-catalog-item__poster-wrap {
  position: relative;
  width: 170px;
}

.admin-catalog-item__poster-wrap--lg {
  width: 220px;
}

.admin-catalog-item__poster {
  width: 100%;
  aspect-ratio: 170/261;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: block;
}

.admin-catalog-item__poster--placeholder {
  background: rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.76);
  font-weight: 600;
}

.admin-catalog-item__type-badge {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: lowercase;
  background: rgba(255, 255, 255, 0.16);
  color: var(--mh-text);
  border-radius: 6px 6px 0 0;
  z-index: 2;
}

.admin-catalog-item__view-btn {
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  background: var(--mh-burgundy);
  color: #fff !important;
  padding: 0.2rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  z-index: 2;
}

.admin-catalog-item__view-btn:hover,
.admin-catalog-item__view-btn:focus {
  background: var(--mh-burgundy-hover);
}

.theme-light .admin-catalog-item__type-badge {
  background: rgba(17, 24, 39, 0.9);
  color: #fff;
}

.admin-catalog-item__title {
  margin: 0;
  font-size: 1.2rem;
}

.admin-catalog-item__title span {
  font-size: 1rem;
  opacity: 0.8;
}

.admin-catalog-item__meta {
  margin: 0.2rem 0 0.7rem;
  opacity: 0.82;
}

.admin-catalog-item__copy {
  margin: 0 0 0.9rem;
  line-height: 1.5;
}

.admin-catalog-item__details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem 0.9rem;
  font-size: 0.95rem;
}

.admin-catalog-item__status-row {
  margin-top: 0.9rem;
  display: flex;
  gap: 0.65rem;
  align-items: center;
  flex-wrap: wrap;
}

.admin-catalog-actions__form {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.admin-catalog-actions__left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.admin-catalog-actions__right {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.admin-catalog-item__actions {
  margin-top: 0.9rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.admin-catalog-view-header {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 1rem;
}

.admin-catalog-view-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem 1rem;
}

.admin-catalog-view-grid p {
  margin: 0.2rem 0 0;
}

@media (max-width: 1080px) {
  .admin-catalog-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .admin-catalog-item {
    grid-template-columns: 1fr;
  }

  .admin-catalog-item__poster-wrap {
    width: 100%;
    max-width: 220px;
  }

  .admin-catalog-item__select {
    justify-content: flex-start;
    padding-top: 0;
  }

  .admin-catalog-view-header {
    grid-template-columns: 1fr;
  }

  .admin-catalog-view-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.admin-dashboard-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.admin-dashboard-kpi {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.admin-dashboard-kpi small {
  color: inherit;
  opacity: 0.75;
}

.admin-dashboard-kpi strong {
  font-size: 2rem;
  line-height: 1;
}

.admin-dashboard-recent-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 0.75rem;
}

.admin-dashboard-recent-card {
  text-decoration: none;
  color: inherit;
}

.admin-dashboard-recent-card__poster-wrap {
  position: relative;
}

.admin-dashboard-recent-card__type {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  text-align: center;
  background: rgba(255, 255, 255, 0.16);
  color: var(--mh-text);
  font-weight: 700;
  text-transform: lowercase;
  border-radius: 6px 6px 0 0;
  z-index: 2;
}

.admin-dashboard-recent-card__poster {
  width: 100%;
  aspect-ratio: 170/261;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.admin-dashboard-recent-card__poster--placeholder {
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
}

.admin-dashboard-recent-card__meta {
  margin-top: 0.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.admin-dashboard-recent-card__meta strong {
  font-size: 0.95rem;
}

.admin-dashboard-recent-card__meta small {
  opacity: 0.75;
}

.admin-dashboard-genre-bars {
  display: grid;
  gap: 0.6rem;
}

.admin-dashboard-genre-row__labels {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.admin-dashboard-genre-row__track {
  height: 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.admin-dashboard-genre-row__bar {
  height: 100%;
  border-radius: 999px;
  background: var(--mh-burgundy);
}

.admin-dashboard-grid-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.admin-dashboard-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.admin-dashboard-list li {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
  display: grid;
  gap: 0.15rem;
}

.admin-dashboard-list strong {
  font-size: 0.98rem;
}

.admin-dashboard-list span,
.admin-dashboard-list small {
  opacity: 0.8;
}

.theme-light .admin-dashboard-recent-card__type {
  background: rgba(17, 24, 39, 0.9);
  color: #fff;
}

@media (max-width: 1100px) {
  .admin-dashboard-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-dashboard-grid-two {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .admin-dashboard-kpis {
    grid-template-columns: 1fr;
  }
}

/* Admin dashboard visual refresh */
.role-administracion .co-topbar {
  position: relative;
  z-index: 120;
}

.role-administracion .co-topbar__actions {
  position: relative;
  z-index: 130;
}

.role-administracion .user-dropdown {
  position: relative;
  z-index: 150;
}

.role-administracion .user-dropdown__menu {
  right: 0;
  z-index: 2200;
  width: min(92vw, 348px);
  max-width: 348px;
}

.role-administracion .admin-dashboard-page .site-card.co-card {
  width: 100%;
  max-width: none;
}

.role-administracion .admin-dashboard-page .admin-widget {
  position: relative;
  overflow: hidden;
  border-radius: 1.15rem;
  border-color: rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.03));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

.role-administracion .admin-dashboard-page .admin-widget__title {
  font-weight: 700;
  letter-spacing: -0.01em;
}

.role-administracion .admin-dashboard-page .admin-widget--accent-blue::before,
.role-administracion .admin-dashboard-page .admin-widget--accent-gold::before,
.role-administracion .admin-dashboard-page .admin-widget--accent-violet::before,
.role-administracion .admin-dashboard-page .admin-widget--accent-red::before,
.role-administracion .admin-dashboard-page .admin-widget--accent-orange::before {
  content: "";
  position: absolute;
  top: 0.6rem;
  left: 0.75rem;
  width: 54px;
  height: 4px;
  border-radius: 999px;
  opacity: 0.95;
}

.role-administracion .admin-dashboard-page .admin-widget--accent-blue::before {
  background: rgba(70, 146, 227, 0.9);
}

.role-administracion .admin-dashboard-page .admin-widget--accent-gold::before {
  background: rgba(219, 180, 72, 0.92);
}

.role-administracion .admin-dashboard-page .admin-widget--accent-violet::before {
  background: rgba(132, 92, 206, 0.9);
}

.role-administracion .admin-dashboard-page .admin-widget--accent-red::before {
  background: rgba(184, 64, 82, 0.9);
}

.role-administracion .admin-dashboard-page .admin-widget--accent-orange::before {
  background: rgba(228, 143, 57, 0.9);
}

.role-administracion .admin-dashboard-page .admin-hero-panel {
  padding: 1.4rem 1.45rem;
}

.role-administracion .admin-dashboard-page .admin-hero-panel__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 330px);
  gap: 1.25rem;
  align-items: center;
}

.role-administracion .admin-dashboard-page .admin-hero-panel__intro {
  min-width: 0;
}

.role-administracion .admin-dashboard-page .admin-hero-panel .site-title {
  font-size: clamp(2.05rem, 3.3vw, 3.2rem);
  line-height: 1.03;
  letter-spacing: -0.03em;
  margin-right: 0.3rem;
  white-space: nowrap;
}

.role-administracion .admin-dashboard-page .admin-hero-panel .site-copy {
  max-width: 64ch;
}

.role-administracion .admin-dashboard-page .admin-quick-links {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.025);
  padding: 0.95rem;
  display: grid;
  gap: 0.72rem;
}

.role-administracion .admin-dashboard-page .admin-quick-links__title {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--mh-text-soft);
}

.role-administracion .admin-dashboard-page .admin-quick-links__actions {
  display: grid;
  gap: 0.5rem;
}

.role-administracion .admin-dashboard-page .admin-dashboard-kpi-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.role-administracion .admin-dashboard-page .admin-dashboard-kpi {
  position: relative;
  isolation: isolate;
  min-height: 148px;
  align-content: end;
  gap: 0.2rem;
  padding: 1rem 1.15rem 1rem;
  border-width: 1px;
  transition: transform 0.2s ease, box-shadow 0.22s ease, border-color 0.22s ease, background-color 0.22s ease;
}

.role-administracion .admin-dashboard-page .admin-dashboard-kpi::after {
  content: "";
  position: absolute;
  inset: auto -1.8rem -1.8rem auto;
  width: 8.2rem;
  height: 8.2rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--admin-accent-rgb, 70, 146, 227), 0.34), transparent 72%);
  opacity: 0.78;
  pointer-events: none;
}

.role-administracion .admin-dashboard-page .admin-dashboard-kpi strong {
  margin-top: 0.35rem;
  font-size: clamp(2rem, 2.5vw, 2.55rem);
}

.role-administracion .admin-dashboard-page .admin-dashboard-kpi small {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.role-administracion .admin-dashboard-page .admin-dashboard-kpi__icon {
  position: absolute;
  top: 0.7rem;
  right: 0.8rem;
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.88rem;
  border: 1px solid rgba(var(--admin-accent-rgb, 70, 146, 227), 0.35);
  background: rgba(var(--admin-accent-rgb, 70, 146, 227), 0.18);
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 8px 22px rgba(var(--admin-accent-rgb, 70, 146, 227), 0.2);
}

.role-administracion .admin-dashboard-page .admin-dashboard-kpi--blue {
  --admin-accent-rgb: 70, 146, 227;
}

.role-administracion .admin-dashboard-page .admin-dashboard-kpi--red {
  --admin-accent-rgb: 184, 64, 82;
}

.role-administracion .admin-dashboard-page .admin-dashboard-kpi--green {
  --admin-accent-rgb: 67, 154, 93;
}

.role-administracion .admin-dashboard-page .admin-dashboard-kpi--violet {
  --admin-accent-rgb: 132, 92, 206;
}

.role-administracion .admin-dashboard-page .admin-dashboard-kpi:hover,
.role-administracion .admin-dashboard-page .admin-dashboard-kpi:focus-within {
  transform: translateY(-3px);
  border-color: rgba(var(--admin-accent-rgb, 70, 146, 227), 0.4);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.26), 0 0 0 1px rgba(var(--admin-accent-rgb, 70, 146, 227), 0.22) inset;
}

.role-administracion .admin-dashboard-page .admin-dashboard-recent-strip {
  grid-template-columns: repeat(auto-fill, minmax(154px, 1fr));
  gap: 0.9rem;
}

.role-administracion .admin-dashboard-page .admin-dashboard-recent-card {
  border-radius: 0.95rem;
  padding: 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.role-administracion .admin-dashboard-page .admin-dashboard-recent-card:hover,
.role-administracion .admin-dashboard-page .admin-dashboard-recent-card:focus {
  transform: translateY(-2px);
  border-color: rgba(179, 38, 58, 0.3);
  background: rgba(255, 255, 255, 0.04);
}

.role-administracion .admin-dashboard-page .admin-dashboard-recent-card__type {
  top: 0.4rem;
  left: 0.4rem;
  right: 0.4rem;
  border-radius: 0.52rem;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  background: rgba(11, 5, 3, 0.68);
}

.role-administracion .admin-dashboard-page .admin-dashboard-recent-card__poster {
  border-radius: 0.72rem;
}

.role-administracion .admin-dashboard-page .admin-dashboard-genre-row__track {
  height: 0.84rem;
  background: rgba(255, 255, 255, 0.1);
}

.role-administracion .admin-dashboard-page .admin-dashboard-genre-row__bar {
  background: linear-gradient(90deg, rgba(70, 146, 227, 0.95), rgba(184, 64, 82, 0.95));
}

.role-administracion .admin-dashboard-page .admin-dashboard-list li {
  border-radius: 0.92rem;
  padding: 0.72rem 0.78rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
  transition: background-color 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.role-administracion .admin-dashboard-page .admin-dashboard-list li:hover {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}

.role-administracion .admin-dashboard-page .mh-btn,
.role-administracion .admin-dashboard-page .mh-btn:visited {
  min-height: 2.65rem;
  padding: 0.64rem 1.08rem;
  border-radius: 0.84rem;
  box-shadow: 0 8px 18px rgba(143, 29, 44, 0.24);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background-color 0.16s ease;
}

.role-administracion .admin-dashboard-page .mh-btn:hover,
.role-administracion .admin-dashboard-page .mh-btn:focus {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(143, 29, 44, 0.28);
}

.role-administracion .admin-dashboard-page .mh-btn--ghost,
.role-administracion .admin-dashboard-page .mh-btn--ghost:visited {
  box-shadow: none;
  border-color: rgba(255, 255, 255, 0.16);
}

.role-administracion .admin-dashboard-page .mh-btn--ghost:hover,
.role-administracion .admin-dashboard-page .mh-btn--ghost:focus {
  box-shadow: none;
  border-color: rgba(255, 255, 255, 0.25);
}

.role-administracion .admin-dashboard-page .admin-btn-sm {
  min-height: 2.2rem;
  padding: 0.52rem 0.85rem;
  font-size: 0.8rem;
}

.theme-light.role-administracion .admin-dashboard-page .admin-widget {
  border-color: rgba(64, 36, 31, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(251, 247, 244, 0.96));
  box-shadow: 0 14px 32px rgba(88, 57, 48, 0.1);
}

.theme-light.role-administracion .admin-dashboard-page .admin-quick-links {
  border-color: rgba(64, 36, 31, 0.1);
  background: rgba(64, 36, 31, 0.03);
}

.theme-light.role-administracion .admin-dashboard-page .admin-quick-links__title,
.theme-light.role-administracion .admin-dashboard-page .admin-dashboard-kpi small {
  color: rgba(36, 19, 17, 0.72);
}

.theme-light.role-administracion .admin-dashboard-page .admin-dashboard-kpi__icon {
  color: rgba(36, 19, 17, 0.84);
}

.theme-light.role-administracion .admin-dashboard-page .admin-dashboard-kpi {
  box-shadow: 0 12px 28px rgba(88, 57, 48, 0.12);
}

.theme-light.role-administracion .admin-dashboard-page .admin-dashboard-kpi:hover,
.theme-light.role-administracion .admin-dashboard-page .admin-dashboard-kpi:focus-within {
  box-shadow: 0 16px 34px rgba(88, 57, 48, 0.16);
}

.theme-light.role-administracion .admin-dashboard-page .admin-dashboard-recent-card,
.theme-light.role-administracion .admin-dashboard-page .admin-dashboard-list li {
  border-color: rgba(64, 36, 31, 0.1);
  background: rgba(64, 36, 31, 0.03);
}

.theme-light.role-administracion .admin-dashboard-page .admin-dashboard-recent-card__type {
  background: rgba(36, 19, 17, 0.78);
}

@media (max-width: 1200px) {
  .role-administracion .admin-dashboard-page .admin-hero-panel__layout {
    grid-template-columns: 1fr;
  }

  .role-administracion .admin-dashboard-page .admin-hero-panel .site-title {
    white-space: normal;
  }

  .role-administracion .admin-dashboard-page .admin-dashboard-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .role-administracion .admin-dashboard-page .admin-quick-links__actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .role-administracion .admin-dashboard-page .admin-hero-panel,
  .role-administracion .admin-dashboard-page .admin-widget {
    padding: 1rem;
  }

  .role-administracion .admin-dashboard-page .admin-dashboard-kpi-grid {
    grid-template-columns: 1fr;
  }

  .role-administracion .admin-dashboard-page .admin-dashboard-kpi {
    min-height: 132px;
  }

  .role-administracion .admin-dashboard-page .admin-quick-links__actions {
    grid-template-columns: 1fr;
  }
}

.co-dashboard-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.co-dashboard-kpi {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.co-dashboard-kpi small {
  opacity: 0.75;
}

.co-dashboard-kpi strong {
  font-size: 2rem;
  line-height: 1;
}

.co-dashboard-recent-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(144px, 1fr));
  gap: 0.75rem;
}

.co-dashboard-recent-card {
  text-decoration: none;
  color: inherit;
}

.co-dashboard-recent-card__poster-wrap {
  position: relative;
}

.co-dashboard-recent-card__type {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  text-align: center;
  background: rgba(255, 255, 255, 0.16);
  color: var(--mh-text);
  font-weight: 700;
  text-transform: lowercase;
  border-radius: 6px 6px 0 0;
  z-index: 2;
}

.co-dashboard-recent-card__poster {
  width: 100%;
  aspect-ratio: 170/261;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.co-dashboard-recent-card__poster--placeholder {
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
}

.co-dashboard-recent-card__meta {
  margin-top: 0.4rem;
  display: grid;
  gap: 0.15rem;
}

.co-dashboard-recent-card__meta strong {
  font-size: 0.95rem;
}

.co-dashboard-recent-card__meta small {
  opacity: 0.75;
}

.co-dashboard-grid-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.co-dashboard-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.co-dashboard-list li {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
  display: grid;
  gap: 0.15rem;
}

.co-dashboard-list span,
.co-dashboard-list small {
  opacity: 0.8;
}

.co-dashboard-advice-list {
  margin: 0;
  padding-left: 1rem;
  display: grid;
  gap: 0.35rem;
}

.theme-light .co-dashboard-recent-card__type {
  background: rgba(17, 24, 39, 0.9);
  color: #fff;
}

@media (max-width: 1100px) {
  .co-dashboard-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .co-dashboard-grid-two {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .co-dashboard-kpis {
    grid-template-columns: 1fr;
  }
}

/* Content owner visual refresh */
.role-content-owner .co-content {
  width: 100%;
  position: relative;
  z-index: 1;
  gap: 1.35rem;
}

.role-content-owner .co-topbar {
  position: relative;
  z-index: 120;
  margin: 1rem 1.25rem 0;
  padding: 1.05rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.15rem;
  background: rgba(11, 5, 3, 0.46);
  backdrop-filter: blur(8px);
}

.role-content-owner .co-topbar__title {
  font-size: clamp(1.45rem, 2.2vw, 1.95rem);
}

.role-content-owner .co-topbar__actions {
  position: relative;
  z-index: 130;
}

.role-content-owner .user-dropdown {
  position: relative;
  z-index: 150;
}

.role-content-owner .user-dropdown__menu {
  right: 0;
  z-index: 2200;
  width: min(92vw, 348px);
  max-width: 348px;
}

.role-content-owner .co-dashboard-page > .site-card.co-card {
  width: 100%;
  max-width: none;
}

.role-content-owner .co-sidebar {
  padding: 1.45rem 1.2rem;
  background:
    linear-gradient(rgba(6, 4, 3, 0.72), rgba(6, 4, 3, 0.84)),
    radial-gradient(circle at top left, rgba(143, 29, 44, 0.28), transparent 34%);
}

.role-content-owner .co-sidebar__nav {
  margin-top: 1.6rem;
  gap: 0.5rem;
}

.role-content-owner .co-sidebar__link {
  border-radius: 0.92rem;
}

.role-content-owner .co-sidebar__link.is-active {
  box-shadow: inset 0 0 0 1px rgba(179, 38, 58, 0.36), 0 8px 20px rgba(0, 0, 0, 0.22);
}

.role-content-owner .site-card.co-card {
  border-radius: 1.15rem;
  border-color: rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.028));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

.role-content-owner .co-widget__title {
  font-weight: 700;
  letter-spacing: -0.01em;
}

.role-content-owner .co-hero-panel {
  padding: 1.4rem 1.45rem;
}

.role-content-owner .co-hero-panel__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 330px);
  gap: 1.25rem;
  align-items: center;
}

.role-content-owner .co-hero-panel__intro {
  min-width: 0;
}

.role-content-owner .co-hero-panel .site-title {
  font-size: clamp(2.15rem, 3.5vw, 3.45rem);
  line-height: 1.03;
  letter-spacing: -0.03em;
  margin-right: 0.3rem;
  white-space: nowrap;
  text-wrap: pretty;
}

.role-content-owner .co-hero-panel .site-copy {
  max-width: 66ch;
}

.role-content-owner .co-hero-panel__aside {
  min-width: 260px;
}

.role-content-owner .co-action-card {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.025);
  padding: 0.95rem;
  display: grid;
  gap: 0.72rem;
}

.role-content-owner .co-action-card__title {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--mh-text-soft);
}

.role-content-owner .co-action-card__actions {
  display: grid;
  gap: 0.5rem;
}

.role-content-owner .co-dashboard-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 0.85rem;
}

.role-content-owner .co-stat-card {
  position: relative;
  isolation: isolate;
  padding: 1rem 1.15rem 1rem;
  min-height: 148px;
  border-width: 1px;
  display: grid;
  align-content: end;
  gap: 0.2rem;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.22s ease, border-color 0.22s ease, background-color 0.22s ease;
}

.role-content-owner .co-stat-card::after {
  content: "";
  position: absolute;
  inset: auto -1.8rem -1.8rem auto;
  width: 8.3rem;
  height: 8.3rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--co-accent-rgb, 179, 38, 58), 0.34), transparent 72%);
  opacity: 0.78;
  pointer-events: none;
}

.role-content-owner .co-stat-card__label {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mh-text-soft);
}

.role-content-owner .co-stat-card__value {
  margin-top: 0.35rem;
  font-size: clamp(2rem, 2.5vw, 2.55rem);
  line-height: 1;
}

.role-content-owner .co-stat-card__icon {
  position: absolute;
  top: 0.7rem;
  right: 0.8rem;
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.88rem;
  border: 1px solid rgba(var(--co-accent-rgb, 179, 38, 58), 0.35);
  background: rgba(var(--co-accent-rgb, 179, 38, 58), 0.18);
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 8px 22px rgba(var(--co-accent-rgb, 179, 38, 58), 0.2);
}

.role-content-owner .co-stat-card--distributed {
  --co-accent-rgb: 54, 132, 214;
}

.role-content-owner .co-stat-card--pending {
  --co-accent-rgb: 216, 125, 42;
}

.role-content-owner .co-stat-card--incomplete {
  --co-accent-rgb: 167, 46, 65;
}

.role-content-owner .co-stat-card--support {
  --co-accent-rgb: 122, 84, 191;
}

.role-content-owner .co-stat-card:hover,
.role-content-owner .co-stat-card:focus-within {
  transform: translateY(-3px);
  border-color: rgba(var(--co-accent-rgb, 179, 38, 58), 0.4);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.26), 0 0 0 1px rgba(var(--co-accent-rgb, 179, 38, 58), 0.22) inset;
}

.role-content-owner .co-stat-card:focus-within {
  outline: none;
}

.role-content-owner .co-list-widget {
  padding: 1.1rem 1.2rem;
}

.role-content-owner .co-dashboard-recent-strip {
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.95rem;
}

.role-content-owner .co-dashboard-recent-card {
  border-radius: 0.95rem;
  padding: 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.role-content-owner .co-dashboard-recent-card:hover,
.role-content-owner .co-dashboard-recent-card:focus {
  transform: translateY(-2px);
  border-color: rgba(179, 38, 58, 0.3);
  background: rgba(255, 255, 255, 0.04);
}

.role-content-owner .co-dashboard-recent-card__type {
  top: 0.4rem;
  left: 0.4rem;
  right: 0.4rem;
  border-radius: 0.52rem;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  background: rgba(11, 5, 3, 0.68);
}

.role-content-owner .co-dashboard-recent-card__poster {
  border-radius: 0.72rem;
}

.role-content-owner .co-modern-list li {
  border-radius: 0.92rem;
  padding: 0.72rem 0.78rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
}

.role-content-owner .co-widget--accent-blue,
.role-content-owner .co-widget--accent-orange,
.role-content-owner .co-widget--accent-red,
.role-content-owner .co-widget--accent-violet,
.role-content-owner .co-widget--accent-gold {
  position: relative;
}

.role-content-owner .co-widget--accent-blue::before,
.role-content-owner .co-widget--accent-orange::before,
.role-content-owner .co-widget--accent-red::before,
.role-content-owner .co-widget--accent-violet::before,
.role-content-owner .co-widget--accent-gold::before {
  content: "";
  position: absolute;
  top: 0.6rem;
  left: 0.75rem;
  width: 52px;
  height: 4px;
  border-radius: 999px;
  opacity: 0.95;
}

.role-content-owner .co-widget--accent-blue::before {
  background: rgba(70, 146, 227, 0.9);
}

.role-content-owner .co-widget--accent-orange::before {
  background: rgba(228, 143, 57, 0.9);
}

.role-content-owner .co-widget--accent-red::before {
  background: rgba(184, 64, 82, 0.9);
}

.role-content-owner .co-widget--accent-violet::before {
  background: rgba(132, 92, 206, 0.9);
}

.role-content-owner .co-widget--accent-gold::before {
  background: rgba(219, 180, 72, 0.92);
}

.role-content-owner .co-list-widget__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.7rem;
}

.role-content-owner .co-list-widget__meta {
  color: rgba(255, 255, 255, 0.72);
}

.role-content-owner .co-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.6rem;
  padding: 0.2rem 0.58rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.84);
}

.role-content-owner .mh-btn,
.role-content-owner .mh-btn:visited {
  min-height: 2.65rem;
  padding: 0.64rem 1.08rem;
  border-radius: 0.84rem;
  box-shadow: 0 8px 18px rgba(143, 29, 44, 0.24);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background-color 0.16s ease;
}

.role-content-owner .mh-btn:hover,
.role-content-owner .mh-btn:focus {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(143, 29, 44, 0.28);
}

.role-content-owner .mh-btn--ghost,
.role-content-owner .mh-btn--ghost:visited {
  box-shadow: none;
  border-color: rgba(255, 255, 255, 0.16);
}

.role-content-owner .mh-btn--ghost:hover,
.role-content-owner .mh-btn--ghost:focus {
  box-shadow: none;
  border-color: rgba(255, 255, 255, 0.25);
}

.role-content-owner .mh-btn:disabled,
.role-content-owner .mh-btn[disabled] {
  opacity: 0.62;
}

.role-content-owner .admin-btn-sm {
  min-height: 2.2rem;
  padding: 0.52rem 0.85rem;
  font-size: 0.8rem;
}

.role-content-owner .movies-table-wrap,
.role-content-owner .movie-review-table-wrap,
.role-content-owner .materials-trailer-history__table-wrap {
  border-radius: 1rem;
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.role-content-owner .co-modern-table,
.role-content-owner .movies-table,
.role-content-owner .movie-review-table,
.role-content-owner .materials-trailer-history__table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.role-content-owner .co-modern-table > :not(caption) > * > *,
.role-content-owner .movies-table > :not(caption) > * > *,
.role-content-owner .movie-review-table > :not(caption) > * > *,
.role-content-owner .materials-trailer-history__table th,
.role-content-owner .materials-trailer-history__table td {
  padding: 0.86rem 0.9rem;
}

.role-content-owner .co-modern-table thead th,
.role-content-owner .movies-table thead th,
.role-content-owner .movie-review-table thead th,
.role-content-owner .materials-trailer-history__table th {
  font-size: 0.76rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.03);
}

.role-content-owner .movies-table tbody tr,
.role-content-owner .movie-review-table tbody tr,
.role-content-owner .materials-trailer-history__table tr {
  transition: background-color 0.16s ease;
}

.role-content-owner .movies-table tbody tr:hover,
.role-content-owner .movie-review-table tbody tr:hover,
.role-content-owner .materials-trailer-history__table tr:hover {
  background: rgba(255, 255, 255, 0.035) !important;
}

.role-content-owner .movies-table td:last-child .d-flex {
  justify-content: flex-end;
}

.role-content-owner .admin-badge {
  border-radius: 999px;
}

.theme-light.role-content-owner .co-topbar {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(64, 36, 31, 0.1);
}

.theme-light.role-content-owner .co-stat-card__icon {
  color: rgba(36, 19, 17, 0.84);
}

.theme-light.role-content-owner .co-sidebar {
  background:
    linear-gradient(rgba(255, 250, 247, 0.94), rgba(247, 238, 233, 0.95)),
    radial-gradient(circle at top left, rgba(143, 29, 44, 0.1), transparent 28%);
}

.theme-light.role-content-owner .site-card.co-card {
  border-color: rgba(64, 36, 31, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(251, 247, 244, 0.96));
  box-shadow: 0 14px 32px rgba(88, 57, 48, 0.1);
}

.theme-light.role-content-owner .co-action-card,
.theme-light.role-content-owner .co-dashboard-recent-card,
.theme-light.role-content-owner .co-modern-list li {
  border-color: rgba(64, 36, 31, 0.1);
  background: rgba(64, 36, 31, 0.03);
}

.theme-light.role-content-owner .co-dashboard-recent-card__type {
  background: rgba(36, 19, 17, 0.78);
  color: #fff;
}

.theme-light.role-content-owner .co-list-widget__meta,
.theme-light.role-content-owner .co-action-card__title,
.theme-light.role-content-owner .co-stat-card__label {
  color: rgba(36, 19, 17, 0.7);
}

.theme-light.role-content-owner .co-status-badge {
  border-color: rgba(64, 36, 31, 0.15);
  background: rgba(64, 36, 31, 0.05);
  color: rgba(36, 19, 17, 0.82);
}

.theme-light.role-content-owner .co-stat-card {
  box-shadow: 0 12px 28px rgba(88, 57, 48, 0.12);
}

.theme-light.role-content-owner .co-stat-card:hover,
.theme-light.role-content-owner .co-stat-card:focus-within {
  box-shadow: 0 16px 34px rgba(88, 57, 48, 0.16);
}

.theme-light.role-content-owner .mh-btn--ghost,
.theme-light.role-content-owner .mh-btn--ghost:visited {
  border-color: rgba(64, 36, 31, 0.18);
  background: rgba(64, 36, 31, 0.05);
}

.theme-light.role-content-owner .co-modern-table thead th,
.theme-light.role-content-owner .movies-table thead th,
.theme-light.role-content-owner .movie-review-table thead th,
.theme-light.role-content-owner .materials-trailer-history__table th {
  color: rgba(36, 19, 17, 0.64);
  background: rgba(64, 36, 31, 0.04);
}

@media (max-width: 1200px) {
  .role-content-owner .co-hero-panel__layout {
    grid-template-columns: 1fr;
  }

  .role-content-owner .co-hero-panel__aside {
    min-width: 0;
  }

  .role-content-owner .co-hero-panel .site-title {
    white-space: normal;
  }

  .role-content-owner .co-dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .role-content-owner .co-action-card__actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .role-content-owner .co-topbar {
    margin: 0.75rem 1rem 0;
  }

  .role-content-owner .movies-table td:last-child .d-flex {
    justify-content: flex-start;
  }
}

@media (max-width: 767.98px) {
  .role-content-owner .co-topbar {
    margin: 0.45rem 0.8rem 0;
    padding: 0.8rem 0.95rem;
  }

  .role-content-owner .co-content {
    gap: 1rem;
  }

  .role-content-owner .co-list-widget,
  .role-content-owner .co-hero-panel {
    padding: 1rem;
  }

  .role-content-owner .co-action-card__actions {
    grid-template-columns: 1fr;
  }

  .role-content-owner .co-dashboard-recent-strip {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  }

  .role-content-owner .co-status-badge {
    font-size: 0.68rem;
  }

  .role-content-owner .co-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .role-content-owner .co-stat-card {
    min-height: 132px;
  }
}
.legacy-mapping-preview .tiny {
  font-size: 0.75rem;
}

.legacy-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.legacy-table-wrap {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(122, 23, 54, 0.16);
}

.legacy-staging-table {
  margin-bottom: 0;
  --bs-table-bg: transparent;
}

.legacy-staging-table > :not(caption) > * > * {
  padding: 0.78rem 0.7rem;
  vertical-align: middle;
}

.legacy-staging-table thead th {
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom-width: 1px;
}

.legacy-staging-table tbody tr {
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.legacy-staging-table code {
  font-size: 0.75rem;
}

.co-body.theme-light .legacy-table-wrap {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(251, 245, 242, 0.98) 100%);
  border-color: rgba(122, 23, 54, 0.18);
  box-shadow: 0 14px 32px rgba(32, 12, 24, 0.08);
}

.co-body.theme-light .legacy-staging-table {
  --bs-table-color: rgba(42, 20, 29, 0.92);
  --bs-table-border-color: rgba(122, 23, 54, 0.14);
  --bs-table-striped-bg: rgba(122, 23, 54, 0.04);
  --bs-table-hover-bg: rgba(122, 23, 54, 0.07);
}

.co-body.theme-light .legacy-staging-table thead th {
  background: rgba(122, 23, 54, 0.07);
  color: rgba(74, 24, 41, 0.92);
  border-bottom-color: rgba(122, 23, 54, 0.2);
}

.co-body.theme-light .legacy-staging-table tbody td {
  color: rgba(42, 20, 29, 0.9);
  border-color: rgba(122, 23, 54, 0.11);
}

.co-body.theme-light .legacy-staging-table tbody tr:hover {
  background: rgba(122, 23, 54, 0.05);
}

.co-body.theme-light .legacy-staging-table a {
  color: rgba(122, 23, 54, 0.92);
}

.co-body.theme-light .legacy-staging-table .form-check-input {
  border-color: rgba(122, 23, 54, 0.38);
}

.co-body.theme-light .legacy-toolbar-card__summary {
  border: 1px solid rgba(122, 23, 54, 0.16);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(247, 238, 243, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.co-body.theme-light .legacy-pagination-nav .is-disabled {
  opacity: 0.55;
  pointer-events: none;
}

.co-body:not(.theme-light) .legacy-table-wrap {
  background: linear-gradient(180deg, rgba(18, 23, 34, 0.98) 0%, rgba(14, 18, 28, 0.98) 100%);
  border-color: rgba(122, 23, 54, 0.34);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
}

.co-body:not(.theme-light) .legacy-staging-table {
  --bs-table-color: rgba(233, 236, 248, 0.9);
  --bs-table-border-color: rgba(255, 255, 255, 0.11);
  --bs-table-striped-bg: rgba(255, 255, 255, 0.02);
  --bs-table-hover-bg: rgba(122, 23, 54, 0.12);
}

.co-body:not(.theme-light) .legacy-staging-table thead th {
  background: rgba(24, 30, 45, 0.95);
  color: rgba(233, 236, 248, 0.9);
  border-bottom-color: rgba(255, 255, 255, 0.14);
}

.co-body:not(.theme-light) .legacy-staging-table tbody td {
  color: rgba(233, 236, 248, 0.88);
  border-color: rgba(255, 255, 255, 0.08);
}

.co-body:not(.theme-light) .legacy-staging-table tbody tr:hover {
  background: rgba(122, 23, 54, 0.13);
}

.co-body:not(.theme-light) .legacy-staging-table a {
  color: rgba(255, 187, 208, 0.92);
}

.co-body:not(.theme-light) .legacy-toolbar-card__summary {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(28, 34, 48, 0.95), rgba(16, 22, 34, 0.95));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.co-body:not(.theme-light) .legacy-pagination-nav .is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.legacy-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.legacy-toolbar-card__header,
.legacy-table-head,
.legacy-pagination-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.legacy-toolbar-card__summary {
  display: grid;
  gap: 0.15rem;
  min-width: 120px;
  padding: 0.85rem 1rem;
  border-radius: 1rem;
  text-align: center;
}

.legacy-toolbar-card__summary strong {
  font-size: 1.4rem;
  line-height: 1;
}

.legacy-toolbar-card__summary span,
.legacy-pagination-summary span {
  font-size: 0.84rem;
}

.legacy-toolbar-form {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.legacy-toolbar-grid {
  display: grid;
  grid-template-columns: minmax(220px, 2fr) repeat(4, minmax(140px, 1fr));
  gap: 0.9rem;
}

.legacy-toolbar-field {
  min-width: 0;
}

.legacy-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: flex-end;
}

.legacy-pagination-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
  justify-content: flex-end;
}

.legacy-pagination-nav__status {
  font-size: 0.9rem;
  font-weight: 700;
}

.legacy-row-create-btn {
  border-color: rgba(122, 23, 54, 0.28);
}

.legacy-row-delete-btn {
  min-width: 88px;
}

.legacy-row-status-badge,
.legacy-row-action-state {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.34rem 0.62rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.1;
  white-space: nowrap;
}

.co-body.theme-light .legacy-staging-table tbody tr.legacy-row--imported > * {
  background: rgba(61, 153, 96, 0.12);
}

.co-body.theme-light .legacy-staging-table tbody tr.legacy-row--duplicate > * {
  background: rgba(192, 55, 76, 0.12);
}

.co-body.theme-light .legacy-staging-table tbody tr.legacy-row--error > * {
  background: rgba(185, 48, 48, 0.14);
}

.co-body.theme-light .legacy-staging-table tbody tr.legacy-row--needs-review > * {
  background: rgba(214, 157, 39, 0.16);
}

.co-body.theme-light .legacy-staging-table tbody tr.legacy-row--pending > * {
  background: rgba(110, 118, 132, 0.11);
}

.co-body.theme-light .legacy-staging-table tbody tr.legacy-row--imported .legacy-row-status-badge,
.co-body.theme-light .legacy-staging-table tbody tr.legacy-row--imported .legacy-row-action-state {
  background: rgba(61, 153, 96, 0.18);
  color: rgba(28, 74, 42, 0.96);
}

.co-body.theme-light .legacy-staging-table tbody tr.legacy-row--duplicate .legacy-row-status-badge,
.co-body.theme-light .legacy-staging-table tbody tr.legacy-row--duplicate .legacy-row-action-state,
.co-body.theme-light .legacy-staging-table tbody tr.legacy-row--error .legacy-row-status-badge,
.co-body.theme-light .legacy-staging-table tbody tr.legacy-row--error .legacy-row-action-state {
  background: rgba(192, 55, 76, 0.16);
  color: rgba(105, 25, 39, 0.96);
}

.co-body.theme-light .legacy-staging-table tbody tr.legacy-row--needs-review .legacy-row-status-badge,
.co-body.theme-light .legacy-staging-table tbody tr.legacy-row--needs-review .legacy-row-action-state {
  background: rgba(214, 157, 39, 0.18);
  color: rgba(95, 68, 12, 0.96);
}

.co-body.theme-light .legacy-staging-table tbody tr.legacy-row--pending .legacy-row-status-badge,
.co-body.theme-light .legacy-staging-table tbody tr.legacy-row--pending .legacy-row-action-state {
  background: rgba(110, 118, 132, 0.14);
  color: rgba(52, 60, 71, 0.96);
}

.co-body:not(.theme-light) .legacy-staging-table tbody tr.legacy-row--imported > * {
  background: rgba(61, 153, 96, 0.18);
}

.co-body:not(.theme-light) .legacy-staging-table tbody tr.legacy-row--duplicate > * {
  background: rgba(192, 55, 76, 0.2);
}

.co-body:not(.theme-light) .legacy-staging-table tbody tr.legacy-row--error > * {
  background: rgba(185, 48, 48, 0.22);
}

.co-body:not(.theme-light) .legacy-staging-table tbody tr.legacy-row--needs-review > * {
  background: rgba(214, 157, 39, 0.18);
}

.co-body:not(.theme-light) .legacy-staging-table tbody tr.legacy-row--pending > * {
  background: rgba(110, 118, 132, 0.16);
}

.co-body:not(.theme-light) .legacy-staging-table tbody tr.legacy-row--imported .legacy-row-status-badge,
.co-body:not(.theme-light) .legacy-staging-table tbody tr.legacy-row--imported .legacy-row-action-state {
  background: rgba(61, 153, 96, 0.24);
  color: rgba(203, 245, 213, 0.98);
}

.co-body:not(.theme-light) .legacy-staging-table tbody tr.legacy-row--duplicate .legacy-row-status-badge,
.co-body:not(.theme-light) .legacy-staging-table tbody tr.legacy-row--duplicate .legacy-row-action-state,
.co-body:not(.theme-light) .legacy-staging-table tbody tr.legacy-row--error .legacy-row-status-badge,
.co-body:not(.theme-light) .legacy-staging-table tbody tr.legacy-row--error .legacy-row-action-state {
  background: rgba(192, 55, 76, 0.24);
  color: rgba(255, 214, 224, 0.98);
}

.co-body:not(.theme-light) .legacy-staging-table tbody tr.legacy-row--needs-review .legacy-row-status-badge,
.co-body:not(.theme-light) .legacy-staging-table tbody tr.legacy-row--needs-review .legacy-row-action-state {
  background: rgba(214, 157, 39, 0.22);
  color: rgba(255, 236, 194, 0.98);
}

.co-body:not(.theme-light) .legacy-staging-table tbody tr.legacy-row--pending .legacy-row-status-badge,
.co-body:not(.theme-light) .legacy-staging-table tbody tr.legacy-row--pending .legacy-row-action-state {
  background: rgba(110, 118, 132, 0.22);
  color: rgba(228, 232, 241, 0.98);
}

@media (max-width: 991px) {
  .legacy-toolbar-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .legacy-toolbar-field--search {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .legacy-toolbar-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .legacy-toolbar-actions,
  .legacy-pagination-summary,
  .legacy-pagination-nav,
  .legacy-table-head {
    justify-content: flex-start;
  }

  .legacy-row-actions {
    flex-direction: column;
    align-items: stretch;
  }
}
.co-body .admin-page .import-movies-hero-card {
  min-height: unset !important;
  height: auto !important;
  padding-top: 1.5rem !important;
  padding-bottom: 1.5rem !important;
  display: block !important;
}

.co-body .admin-page .import-movies-hero-card::before,
.co-body .admin-page .import-movies-hero-card::after {
  display: none !important;
}

.co-body .admin-page .import-movies-hero-card .site-copy {
  max-width: 720px;
  margin-bottom: 0 !important;
}
