:root {
  --bg: #eef5ff;
  --surface: #ffffff;
  --surface-soft: #eaf2ff;
  --text: #172033;
  --muted: #64748b;
  --line: #d7e2f3;
  --brand: #2563eb;
  --brand-dark: #1d4ed8;
  --brand-soft: #dbeafe;
  --accent: #0ea5e9;
  --warning: #b7791f;
  --danger: #dc2626;
  --success: #0f766e;
  --sidebar: #0f1f3d;
  --sidebar-soft: #18325f;
  --sidebar-width: 348px;
  --sidebar-collapsed-width: 84px;
  --admin-preview-toolbar-height: 58px;
  --shadow: 0 16px 40px rgba(37, 99, 235, 0.11);
  --shadow-strong: 0 24px 60px rgba(15, 31, 61, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-color: rgba(35, 214, 255, 0.58) rgba(9, 12, 18, 0.72);
  scrollbar-width: thin;
}

body {
  margin: 0;
  min-height: 100vh;
  padding-top: var(--admin-preview-toolbar-height);
  background:
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.18), transparent 34vw),
    linear-gradient(180deg, #f7fbff 0%, var(--bg) 46%, #f8fbff 100%);
  color: var(--text);
  font-family: "Malgun Gothic", "Apple SD Gothic Neo", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
  overflow-y: auto;
}

.admin-preview-toolbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  min-height: var(--admin-preview-toolbar-height);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  border-bottom: 1px solid #cbd8eb;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 26px rgba(15, 31, 61, 0.12);
  backdrop-filter: blur(10px);
}

.admin-preview-toolbar strong {
  color: #142033;
  font-size: 15px;
  font-weight: 900;
  white-space: nowrap;
}

.admin-preview-toolbar span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.admin-preview-toolbar nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: auto;
}

.admin-preview-toolbar a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border: 1px solid #bfd4f2;
  border-radius: 8px;
  padding: 7px 11px;
  color: #1d4ed8;
  background: #f8fbff;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.admin-preview-toolbar a:hover {
  border-color: #60a5fa;
  background: #eff6ff;
}

.embedded-preview .admin-preview-toolbar {
  display: none;
}

.embedded-preview body {
  padding-top: 0;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button,
.primary-button,
.secondary-button,
.ghost-button,
.nav-group-button,
.nav-link,
.sidebar-toggle,
.icon-button,
.profile-button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transform: translateY(0) scale(1);
  transition:
    transform 180ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 180ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 180ms cubic-bezier(0.22, 1, 0.36, 1),
    background-color 180ms cubic-bezier(0.22, 1, 0.36, 1),
    color 180ms cubic-bezier(0.22, 1, 0.36, 1);
  -webkit-tap-highlight-color: transparent;
}

button::after,
.primary-button::after,
.secondary-button::after,
.ghost-button::after,
.nav-group-button::after,
.nav-link::after,
.sidebar-toggle::after,
.icon-button::after,
.profile-button::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(120deg, transparent 14%, rgba(255, 255, 255, 0.34) 46%, transparent 78%);
  opacity: 0;
  transform: translateX(-130%);
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1), opacity 220ms ease;
  pointer-events: none;
}

button:hover,
.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.nav-group-button:hover,
.nav-link:hover,
.sidebar-toggle:hover,
.icon-button:hover,
.profile-button:hover {
  transform: translateY(-2px);
}

button:hover::after,
.primary-button:hover::after,
.secondary-button:hover::after,
.ghost-button:hover::after,
.nav-group-button:hover::after,
.nav-link:hover::after,
.sidebar-toggle:hover::after,
.icon-button:hover::after,
.profile-button:hover::after {
  opacity: 1;
  transform: translateX(130%);
}

button:active,
.primary-button:active,
.secondary-button:active,
.ghost-button:active,
.nav-group-button:active,
.nav-link:active,
.sidebar-toggle:active,
.icon-button:active,
.profile-button:active {
  transform: translateY(0) scale(0.98);
  transition-duration: 90ms;
}

button:focus-visible,
.primary-button:focus-visible,
.secondary-button:focus-visible,
.ghost-button:focus-visible,
.nav-group-button:focus-visible,
.nav-link:focus-visible,
.sidebar-toggle:focus-visible,
.icon-button:focus-visible,
.profile-button:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.28);
  outline-offset: 3px;
}

button:disabled,
.primary-button:disabled,
.secondary-button:disabled,
.ghost-button:disabled {
  cursor: default;
  transform: none;
  opacity: 0.72;
  box-shadow: none;
}

button:disabled::after,
.primary-button:disabled::after,
.secondary-button:disabled::after,
.ghost-button:disabled::after {
  display: none;
}

.admin-action-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(7, 13, 25, 0.34);
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(5px);
  transition: opacity 180ms ease;
}

.admin-action-loader.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.admin-action-loader__panel {
  width: min(420px, 100%);
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  align-items: center;
  border: 1px solid rgba(147, 197, 253, 0.46);
  border-radius: 18px;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(239, 246, 255, 0.94));
  box-shadow: 0 28px 80px rgba(15, 31, 61, 0.28);
}

.admin-action-loader__panel strong {
  display: block;
  margin-bottom: 6px;
  color: #0f1f3d;
  font-size: 18px;
  font-weight: 900;
}

.admin-action-loader__panel p {
  margin: 0;
  color: #475569;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.55;
}

.admin-action-loader__spinner {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 4px solid rgba(37, 99, 235, 0.14);
  border-top-color: var(--brand);
  box-shadow: 0 0 0 8px rgba(37, 99, 235, 0.07);
  animation: adminActionSpin 820ms linear infinite;
}

.admin-action-loading {
  cursor: wait;
}

@keyframes adminActionSpin {
  to {
    transform: rotate(360deg);
  }
}

.sidebar {
  position: fixed;
  inset: var(--admin-preview-toolbar-height) auto 0 0;
  width: var(--sidebar-width);
  height: calc(100vh - var(--admin-preview-toolbar-height));
  background:
    linear-gradient(180deg, rgba(37, 99, 235, 0.14), transparent 34%),
    var(--sidebar);
  color: #f6fbfa;
  display: flex;
  flex-direction: column;
  padding: 22px 16px;
  transition: width 180ms ease;
  z-index: 10;
}

.embedded-preview .sidebar {
  inset: 0 auto 0 0;
  height: 100vh;
}

.sidebar.collapsed {
  width: var(--sidebar-collapsed-width);
}

.brand {
  display: grid;
  grid-template-columns: 42px 1fr 38px;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  margin-bottom: 16px;
}

.brand-mark,
.avatar {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, #2563eb, #38bdf8);
  color: #fff;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 18px;
}

.brand small {
  color: #b7c8ea;
}

.sidebar-toggle,
.icon-button {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  display: inline-grid;
  place-items: center;
  box-shadow: 0 8px 20px rgba(15, 31, 61, 0.12);
}

.sidebar-toggle:hover,
.icon-button:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.13);
  box-shadow: 0 14px 28px rgba(15, 31, 61, 0.22);
}

.nav-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 34px;
  margin-bottom: 10px;
  color: #b7c8ea;
  font-size: 12px;
  font-weight: 800;
}

.nav-caption strong {
  border: 1px solid rgba(147, 197, 253, 0.35);
  border-radius: 999px;
  padding: 4px 8px;
  color: #eff6ff;
  background: rgba(37, 99, 235, 0.18);
}

.sidebar.collapsed .brand {
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 10px;
  min-height: 92px;
}

.sidebar.collapsed .brand-text,
.sidebar.collapsed .sidebar-label,
.sidebar.collapsed .nav-caption,
.sidebar.collapsed .group-panel,
.sidebar.collapsed .nav-text,
.sidebar.collapsed .group-number,
.sidebar.collapsed .chevron {
  display: none;
}

.sidebar.collapsed .sidebar-toggle {
  position: static;
}

.nav {
  display: grid;
  gap: 8px;
  overflow-y: auto;
  padding-right: 2px;
  overscroll-behavior: contain;
}

.nav-group {
  border-radius: 8px;
  padding: 3px;
  background: rgba(255, 255, 255, 0.025);
}

.nav-group-button,
.nav-link {
  width: 100%;
  min-height: 42px;
  border: 0;
  color: #dbe7ff;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 8px;
  text-align: left;
}

.nav-group-button {
  display: grid;
  grid-template-columns: 30px 32px minmax(0, 1fr) 18px;
  min-height: 58px;
  padding: 0 12px;
  font-weight: 800;
}

.nav-link {
  padding: 0 12px 0 20px;
  font-size: 14px;
}

.group-number {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  color: #bfdbfe;
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-weight: 900;
}

.group-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  color: #dbeafe;
  background: rgba(96, 165, 250, 0.14);
}

.nav-text {
  min-width: 0;
}

.nav-group-button .nav-text strong,
.nav-group-button .nav-text small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-text strong,
.nav-text small {
  display: block;
}

.nav-text small {
  margin-top: 2px;
  color: #a9bee4;
  font-size: 11px;
  font-weight: 800;
}

.nav-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #60a5fa;
  box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.1);
  flex: 0 0 auto;
}

.nav-group-button:hover,
.nav-link:hover,
.nav-link.active {
  background: var(--sidebar-soft);
  color: #fff;
}

.nav-group-button:hover,
.nav-link:hover {
  box-shadow: inset 0 0 0 1px rgba(147, 197, 253, 0.16), 0 10px 22px rgba(0, 0, 0, 0.16);
}

.nav-link.active {
  box-shadow: inset 3px 0 0 #60a5fa, 0 10px 22px rgba(0, 0, 0, 0.12);
}

.nav-group.open > .nav-group-button {
  background: linear-gradient(135deg, #1d4ed8, #0ea5e9);
  color: #fff;
  box-shadow: 0 14px 28px rgba(14, 165, 233, 0.18);
}

.nav-group.open > .nav-group-button:hover {
  box-shadow: 0 18px 36px rgba(14, 165, 233, 0.28);
}

.nav-group.open > .nav-group-button .group-number,
.nav-group.open > .nav-group-button .group-icon {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.nav-group.open > .nav-group-button .nav-text small {
  color: #dbeafe;
}

.group-panel {
  display: none;
  padding: 6px 0 8px;
}

.nav-group.open > .group-panel {
  display: grid;
  gap: 4px;
}

.chevron {
  margin-left: auto;
  transition: transform 160ms ease;
}

.nav-group.open .chevron {
  transform: rotate(90deg);
}

.sidebar svg,
.topbar svg,
.primary-button svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.sidebar-footer {
  margin-top: auto;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #c7d7f5;
  font-size: 14px;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #38bdf8;
  box-shadow: 0 0 0 5px rgba(56, 189, 248, 0.16);
}

.main {
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  padding: 28px 28px 72px;
  transition: margin-left 180ms ease;
}

body.sidebar-collapsed .main {
  margin-left: var(--sidebar-collapsed-width);
}

.topbar,
.panel-head,
.topbar-actions,
.form-row,
.upload-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.form-row {
  flex-wrap: wrap;
}

.form-row > div {
  min-width: 0;
  flex: 1 1 280px;
}

.form-row > button,
.form-row > .pill {
  flex: 0 0 auto;
}

.topbar {
  margin-bottom: 22px;
}

.hero-bar {
  display: none;
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: clamp(27px, 3vw, 38px);
  line-height: 1.2;
}

.hero-copy {
  max-width: 680px;
  margin-top: 10px;
  color: #475569;
  line-height: 1.55;
}

h2 {
  font-size: 19px;
  line-height: 1.3;
}

h3 {
  font-size: 16px;
}

.panel-head p,
.metric p,
.helper,
.table-note {
  color: var(--muted);
}

.panel-head p {
  margin-top: 5px;
  font-size: 14px;
}

.search {
  min-width: min(380px, 42vw);
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
}

.search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.topbar .icon-button {
  position: relative;
  border-color: var(--line);
  background: var(--surface);
  color: var(--text);
}

.topbar .icon-button:hover {
  border-color: #93c5fd;
  color: var(--brand-dark);
  background: #f8fbff;
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.14);
}

.badge {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--danger);
  border: 2px solid #fff;
}

.profile-button,
.primary-button,
.secondary-button {
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  font-weight: 800;
}

.profile-button .avatar {
  width: 28px;
  height: 28px;
  font-size: 13px;
}

.primary-button {
  border-color: var(--brand);
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff;
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.22);
}

.primary-button:hover {
  border-color: #1d4ed8;
  box-shadow: 0 18px 38px rgba(37, 99, 235, 0.3);
}

.secondary-button {
  color: var(--brand-dark);
  border-color: #bfdbfe;
  background: #f8fbff;
}

.profile-button:hover,
.secondary-button:hover {
  border-color: #93c5fd;
  color: var(--brand-dark);
  background: #f8fbff;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.14);
}

.ghost-button {
  min-height: 34px;
  border: 1px solid #d7e2f3;
  border-radius: 8px;
  background: #fff;
  color: #dc2626;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 800;
}

.ghost-button:hover {
  border-color: rgba(220, 38, 38, 0.28);
  background: #fff5f5;
  box-shadow: 0 12px 24px rgba(220, 38, 38, 0.1);
}

.overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
  margin-top: 6px;
}

.metric,
.panel,
.category-card,
.upload-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.metric {
  min-height: 112px;
  padding: 18px;
  border-top: 3px solid #60a5fa;
  position: relative;
  overflow: hidden;
}

.metric::after {
  content: "";
  position: absolute;
  inset: auto -24px -42px auto;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(96, 165, 250, 0.12);
}

.primary-metric {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
  background: linear-gradient(135deg, #1d4ed8, #0ea5e9);
}

.primary-metric span,
.primary-metric p {
  color: #dbeafe;
}

.metric span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.metric strong {
  display: block;
  margin: 8px 0 6px;
  font-size: 28px;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.panel {
  padding: 20px;
  background:
    linear-gradient(180deg, rgba(219, 234, 254, 0.38), transparent 160px),
    #fff;
}

.compact {
  align-items: flex-start;
}

.pill {
  border-radius: 999px;
  padding: 7px 11px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.workbench {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.category-card,
.upload-card {
  padding: 16px;
}

.category-card {
  display: grid;
  gap: 10px;
  border-top: 3px solid #93c5fd;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.category-card:hover,
.upload-card:hover {
  transform: translateY(-2px);
  border-color: #93c5fd;
  box-shadow: 0 18px 44px rgba(37, 99, 235, 0.16);
}

.category-card button {
  justify-self: start;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.category-card:hover .secondary-button,
.upload-card:hover .secondary-button {
  transform: translateY(-2px);
}

.video-save-button:hover {
  animation: buttonPulse 1.15s ease-in-out infinite;
}

.card-kicker {
  justify-self: start;
  border-radius: 999px;
  padding: 4px 8px;
  color: #1d4ed8;
  background: #dbeafe;
  font-size: 12px;
  font-weight: 900;
}

.trash-head-panel {
  border-left: 4px solid #64748b;
}

.trash-list {
  display: grid;
  gap: 12px;
}

.trash-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-left: 4px solid #64748b;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.trash-card h3 {
  margin: 8px 0 4px;
}

.trash-card small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.trash-button {
  border-color: rgba(220, 38, 38, 0.28);
  color: #991b1b;
  background: #fff7f7;
}

.trash-button:hover {
  border-color: rgba(220, 38, 38, 0.44);
  box-shadow: 0 12px 28px rgba(220, 38, 38, 0.12);
}

.form-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #f8fbff;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.field {
  display: grid;
  gap: 7px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  color: #3a474a;
  font-size: 13px;
  font-weight: 800;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px 12px;
  outline: 0;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.18);
}

.field textarea {
  min-height: 104px;
  resize: vertical;
}

.upload-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.video-category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.subcategory-note {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, #eff6ff, #f8fbff);
  padding: 14px;
  color: #3a474a;
  font-weight: 700;
}

.upload-card {
  min-height: 142px;
  display: grid;
  align-content: space-between;
  gap: 14px;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.video-manager-card {
  display: grid;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(219, 234, 254, 0.55), transparent 120px),
    #fff;
  box-shadow: var(--shadow);
  padding: 16px;
}

.video-card-head,
.registered-video {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.video-count {
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.compact-form {
  grid-template-columns: 1fr;
  margin-top: 0;
}

.source-field {
  max-width: 340px;
}

.video-manager-card[data-source="link"] .file-field,
.video-manager-card[data-source="file"] .link-field {
  display: none;
}

.video-save-button {
  justify-self: start;
}

.registered-list {
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.registered-list h4 {
  margin: 0;
  color: #334155;
  font-size: 14px;
}

.registered-video {
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #f8fbff;
  padding: 10px;
  transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1), border-color 180ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.registered-video:hover {
    transform: translateY(-1px);
    border-color: #bfdbfe;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.1);
}

.meme-admin-toolbar,
.meme-page-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 14px 0;
}

.meme-admin-toolbar .secondary-button {
  min-width: auto;
  padding: 0 12px;
}

.meme-search-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  gap: 10px;
  align-items: end;
  margin: 10px 0 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(239, 246, 255, 0.72);
}

.meme-search-panel label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.meme-search-panel input {
  width: 100%;
  min-height: 42px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0 12px;
  color: var(--text);
  background: #ffffff;
  font: inherit;
}

.meme-search-panel input:focus {
  outline: 2px solid rgba(37, 99, 235, 0.24);
  border-color: #60a5fa;
}

.meme-search-panel .helper {
  grid-column: 1 / -1;
  margin: -2px 0 0;
}

.empty-list-panel {
  display: grid;
  gap: 8px;
  min-height: 120px;
  place-items: center;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  color: var(--muted);
  background: rgba(248, 250, 252, 0.78);
  text-align: center;
}

.empty-list-panel strong {
  color: var(--text);
}

.secondary-button.is-active {
  color: #ffffff;
  border-color: #2563eb;
  background: #2563eb;
}

.meme-page-controls {
  justify-content: center;
}

.meme-page-controls span {
  min-width: 72px;
  text-align: center;
  color: var(--muted);
  font-weight: 900;
}

.meme-page-controls button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.approval-board {
  display: grid;
  gap: 16px;
}

.approval-head-panel {
  display: grid;
  gap: 16px;
}

.approval-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.approval-summary article {
  min-height: 82px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #fff;
  padding: 12px 14px;
}

.approval-summary span,
.approval-summary small {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.approval-summary strong {
  display: block;
  margin: 6px 0 3px;
  color: var(--brand-dark);
  font-size: 25px;
}

.onboarding-search-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  align-items: end;
  gap: 8px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(219, 234, 254, 0.72), rgba(248, 251, 255, 0.96)),
    #fff;
  padding: 12px;
}

.onboarding-search-panel label {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.onboarding-search-panel label span {
  color: #334155;
  font-size: 13px;
  font-weight: 900;
}

.onboarding-search-panel input {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 0 12px;
  outline: 0;
}

.onboarding-search-panel input:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.18);
}

.onboarding-search-panel .helper {
  align-self: center;
  min-width: 150px;
  text-align: right;
  font-size: 13px;
  font-weight: 900;
}

.application-list {
  display: grid;
  gap: 10px;
}

.application-card {
  display: grid;
  grid-template-columns: minmax(190px, 0.55fr) minmax(520px, 1.45fr);
  gap: 14px 18px;
  align-items: start;
  border: 1px solid var(--line);
  border-left: 4px solid #93c5fd;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 16px;
  transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1), border-color 180ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.compact-admin-card {
  gap: 8px 10px;
  padding: 10px 12px;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.08);
}

.onboarding-application-card {
  grid-template-columns: minmax(132px, 0.24fr) minmax(390px, 1fr) auto;
  align-items: center;
}

.application-card[hidden] {
  display: none !important;
}

.application-card:hover {
  transform: translateY(-2px);
  border-color: #bfdbfe;
  box-shadow: 0 18px 38px rgba(37, 99, 235, 0.13);
}

.application-card.approved {
  border-left-color: var(--success);
}

.application-card.rejected {
  border-left-color: var(--danger);
}

.work-check-request-card {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  padding: 12px 14px;
}

.work-check-compact-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(150px, 0.42fr) minmax(330px, 1.58fr);
  gap: 10px;
  align-items: stretch;
}

.work-check-request-main {
  display: grid;
  align-content: start;
  gap: 6px;
}

.work-check-request-main h3 {
  margin-top: 2px;
  font-size: 18px;
}

.work-check-request-main small {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.5;
}

.application-main {
  min-width: 0;
}

.application-main h3 {
  margin-top: 6px;
  font-size: 16px;
}

.application-main p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.approval-status {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  border-radius: 999px;
  background: #dbeafe;
  color: var(--brand-dark);
  padding: 0 9px;
  font-size: 11px;
  font-weight: 900;
}

.approved .approval-status {
  background: #ccfbf1;
  color: var(--success);
}

.rejected .approval-status {
  background: #fee2e2;
  color: var(--danger);
}

.application-card dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.application-card .work-check-detail-grid {
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 8px;
}

.work-check-detail-grid div {
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid #e3ecfb;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.work-check-detail-grid .wide {
  grid-column: span 1;
}

.work-check-capture {
  min-width: 0;
  margin-top: 10px;
}

.work-check-capture-button {
  display: grid;
  width: min(240px, 100%);
  gap: 8px;
  padding: 8px;
  border: 1px solid #dbe7f8;
  border-radius: 8px;
  background: #f8fbff;
  color: var(--brand-dark);
  text-align: left;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.08);
}

.work-check-capture-button img {
  width: min(210px, 100%);
  max-height: 120px;
  display: block;
  border: 1px solid #dbe7f8;
  border-radius: 8px;
  object-fit: cover;
  background: #ffffff;
}

.work-check-capture-button span {
  font-size: 12px;
  font-weight: 900;
}

.work-check-capture-button:hover {
  border-color: #93c5fd;
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.14);
}

.work-check-fold {
  grid-column: 1 / -1;
  min-width: 0;
  border-top: 1px solid #e8f0fb;
  padding-top: 4px;
}

.work-check-fold summary {
  width: fit-content;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  color: #1d4ed8;
  background: #eff6ff;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.work-check-fold[open] summary {
  color: #0f766e;
  border-color: #99f6e4;
  background: #ecfeff;
}

.settlement-finance-list {
  display: grid;
  gap: 10px;
}

.settlement-finance-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #dbeafe;
  border-left: 4px solid #2563eb;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(239, 246, 255, 0.86), rgba(255, 255, 255, 0.98)),
    #fff;
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.08);
}

.settlement-finance-head {
  display: flex;
  gap: 10px;
  align-items: center;
}

.settlement-finance-head h3 {
  margin: 0;
  font-size: 18px;
}

.settlement-finance-head p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.settlement-finance-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.settlement-finance-grid div {
  min-width: 0;
  padding: 10px;
  border: 1px solid #e3ecfb;
  border-radius: 8px;
  background: #fff;
}

.settlement-finance-grid dt {
  color: #466182;
  font-size: 12px;
  font-weight: 900;
}

.settlement-finance-grid dd {
  margin: 5px 0 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.settlement-finance-note {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  color: #1e3a8a;
  background: #eff6ff;
  font-size: 12px;
  font-weight: 800;
}

.settlement-finance-note strong {
  color: #1d4ed8;
  font-weight: 900;
}

.settlement-select-all,
.settlement-row-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.settlement-select-all {
  justify-self: end;
  padding: 10px 12px;
  border: 1px solid rgba(35, 214, 255, 0.34);
  border-radius: 8px;
  background: rgba(35, 214, 255, 0.08);
}

.settlement-select-all input,
.settlement-row-check input {
  width: 16px;
  height: 16px;
  accent-color: #23d6ff;
}

.settlement-rate-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.settlement-rate-strip span {
  min-height: 54px;
  padding: 11px 12px;
  border: 1px solid rgba(116, 142, 176, 0.28);
  border-radius: 8px;
  background: rgba(12, 15, 20, 0.58);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
}

.settlement-rate-strip strong {
  color: #8cecff;
  font-size: 15px;
}

.settlement-ledger-card {
  gap: 10px;
}

.settlement-ledger-card .settlement-finance-head {
  display: grid;
  grid-template-columns: auto auto minmax(180px, 1fr);
  align-items: center;
}

.settlement-ledger-detail {
  border-top: 1px solid rgba(116, 142, 176, 0.22);
  padding-top: 10px;
}

.settlement-ledger-detail summary {
  width: fit-content;
  padding: 8px 12px;
  border: 1px solid rgba(35, 214, 255, 0.34);
  border-radius: 8px;
  background: rgba(35, 214, 255, 0.08);
  color: #dff7ff;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.settlement-ledger-table-wrap {
  overflow-x: auto;
  margin-top: 10px;
  border: 1px solid rgba(116, 142, 176, 0.26);
  border-radius: 8px;
}

.settlement-ledger-table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
  background: rgba(9, 12, 17, 0.5);
}

.settlement-ledger-table th,
.settlement-ledger-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(116, 142, 176, 0.18);
  text-align: left;
  font-size: 13px;
  font-weight: 800;
}

.settlement-ledger-table th {
  color: #b9d8ff;
  background: rgba(35, 214, 255, 0.08);
}

.settlement-ledger-table td {
  color: var(--text);
}

.payment-status {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border-radius: 8px;
  color: #334155;
  background: #e2e8f0;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.payment-status.waiting {
  color: #92400e;
  background: #fef3c7;
}

.payment-status.paid {
  color: #065f46;
  background: #dcfce7;
}

.small-action {
  min-height: 32px;
  padding: 0 10px;
  font-size: 12px;
}

.application-card dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.application-card dd {
  margin: 4px 0 0;
  color: var(--text);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.application-table-wrap {
  min-width: 0;
  overflow-x: auto;
}

.application-detail-table {
  width: 100%;
  min-width: 480px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid #dbe7f8;
  border-radius: 8px;
  background: #fff;
  table-layout: fixed;
}

.application-detail-table th,
.application-detail-table td {
  width: 33.333%;
  border-right: 1px solid #e5eefb;
  border-bottom: 1px solid #e5eefb;
  padding: 7px 9px;
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
  word-break: keep-all;
  white-space: normal;
}

.application-detail-table th:nth-child(3n),
.application-detail-table td:nth-child(3n) {
  border-right: 0;
}

.application-detail-table tr:last-child td {
  border-bottom: 0;
}

.application-detail-table th {
  color: #466182;
  background: #f4f8ff;
  font-size: 11px;
  font-weight: 900;
}

.application-detail-table td {
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.45;
}

.consent-helper {
  margin-top: 12px;
}

.consent-detail {
  grid-column: 1 / -1;
  border: 1px solid #dbe7f8;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.onboarding-application-card .consent-detail {
  grid-column: 1 / -1;
}

.onboarding-application-card .approval-actions {
  min-width: 0;
  justify-content: flex-end;
}

.onboarding-application-card .approved-complete-message,
.onboarding-application-card .pending-complete-message,
.onboarding-application-card .rejected-complete-message {
  min-height: 36px;
  padding: 0 11px;
  font-size: 12px;
  box-shadow: 0 7px 16px rgba(15, 23, 42, 0.08);
}

.onboarding-application-card .secondary-button,
.onboarding-application-card .primary-button,
.onboarding-application-card .ghost-button {
  min-height: 36px;
  padding-inline: 12px;
}

.consent-detail summary {
  min-height: 38px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  color: #1e40af;
  background: #f4f8ff;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.consent-detail pre {
  max-height: 260px;
  margin: 0;
  overflow: auto;
  padding: 14px;
  color: #172033;
  background: #fbfdff;
  border-top: 1px solid #e5eefb;
  font: 12px/1.6 "Pretendard", "Noto Sans KR", system-ui, sans-serif;
  white-space: pre-wrap;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.approval-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-self: center;
  justify-content: flex-end;
}

.approved-complete-message {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(15, 118, 110, 0.35);
  border-radius: 8px;
  padding: 0 12px;
  color: #065f46;
  background: linear-gradient(135deg, #d1fae5, #ecfdf5);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(15, 118, 110, 0.1);
}

.pending-complete-message {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(37, 99, 235, 0.3);
  border-radius: 8px;
  background: #eff6ff;
  color: var(--brand-dark);
  padding: 0 12px;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.08);
}

.rejected-complete-message {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(220, 38, 38, 0.28);
  border-radius: 8px;
  padding: 0 12px;
  color: #991b1b;
  background: linear-gradient(135deg, #fee2e2, #fff1f2);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(220, 38, 38, 0.08);
}

.image-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 28px;
}

.image-preview-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(8px);
}

.image-preview-panel {
  position: relative;
  z-index: 1;
  width: min(920px, calc(100vw - 40px));
  max-height: calc(100vh - 48px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(191, 219, 254, 0.5);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.38);
}

.image-preview-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid #e2e8f0;
  background: linear-gradient(135deg, #eff6ff, #ffffff);
}

.image-preview-panel header span {
  display: block;
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
}

.image-preview-panel header strong {
  display: block;
  margin-top: 4px;
  color: var(--text);
  overflow-wrap: anywhere;
}

.image-preview-panel img {
  width: 100%;
  max-height: calc(100vh - 150px);
  object-fit: contain;
  background: #0f172a;
}

.registered-video strong,
.registered-video span,
.registered-video small {
  display: block;
}

.registered-video strong {
  color: #172033;
  font-size: 14px;
}

.registered-video span,
.registered-video small,
.empty-copy {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.registered-video span {
  margin-top: 4px;
}

.upload-drop {
  min-height: 78px;
  border: 1px dashed #93c5fd;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: #f8fbff;
  text-align: center;
  padding: 12px;
}

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

table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 14px;
  white-space: nowrap;
}

th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.empty-state {
  border: 1px dashed #93c5fd;
  border-radius: 8px;
  min-height: 180px;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
  padding: 24px;
}

/* Dark neon admin theme */
:root {
  --bg: #15171b;
  --surface: #20242a;
  --surface-soft: #292f37;
  --text: #f4f7fb;
  --muted: #a6b1c0;
  --line: rgba(132, 157, 188, 0.28);
  --brand: #5ea7ff;
  --brand-dark: #8cc5ff;
  --brand-soft: rgba(94, 167, 255, 0.18);
  --accent: #23d6ff;
  --warning: #f5c542;
  --danger: #ff5d7d;
  --success: #4dffc4;
  --sidebar: #11151b;
  --sidebar-soft: rgba(94, 167, 255, 0.14);
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
  --shadow-strong: 0 26px 68px rgba(0, 0, 0, 0.46);
  --neon-blue: 0 0 0 1px rgba(94, 167, 255, 0.24), 0 0 26px rgba(35, 214, 255, 0.16);
  --neon-blue-strong: 0 0 0 1px rgba(94, 167, 255, 0.42), 0 0 34px rgba(35, 214, 255, 0.28);
}

body {
  background:
    radial-gradient(circle at top right, rgba(35, 214, 255, 0.13), transparent 36vw),
    radial-gradient(circle at 12% 18%, rgba(94, 167, 255, 0.11), transparent 28vw),
    linear-gradient(180deg, #191c21 0%, #14171b 48%, #101216 100%);
  color: var(--text);
}

.admin-preview-toolbar {
  border-bottom-color: rgba(94, 167, 255, 0.22);
  background: rgba(22, 25, 30, 0.92);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.36);
}

.admin-preview-toolbar strong,
.admin-preview-toolbar a {
  color: var(--text);
}

.admin-preview-toolbar span {
  color: var(--muted);
}

.admin-preview-toolbar a {
  border-color: rgba(94, 167, 255, 0.24);
  background: rgba(32, 36, 42, 0.86);
}

.admin-preview-toolbar a:hover {
  border-color: rgba(35, 214, 255, 0.58);
  background: rgba(35, 214, 255, 0.1);
  box-shadow: var(--neon-blue);
}

.sidebar {
  background:
    radial-gradient(circle at 25% 5%, rgba(94, 167, 255, 0.18), transparent 34%),
    linear-gradient(180deg, #171b22, #101319 68%, #0d1015);
  border-right: 1px solid rgba(94, 167, 255, 0.18);
  box-shadow: 18px 0 38px rgba(0, 0, 0, 0.26);
}

.brand-mark,
.avatar {
  background: linear-gradient(135deg, #2563eb, #23d6ff);
  box-shadow: 0 0 24px rgba(35, 214, 255, 0.25);
}

.nav-group {
  border: 1px solid rgba(94, 167, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
}

.group-panel {
  display: grid;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding: 0;
  transition: max-height 260ms cubic-bezier(0.22, 1, 0.36, 1), opacity 180ms ease, padding 220ms ease;
}

.nav-group.open > .group-panel {
  display: grid;
  max-height: 360px;
  gap: 4px;
  opacity: 1;
  padding: 6px 0 8px;
}

.nav-group-button:hover,
.nav-link:hover,
.nav-link.active {
  background: rgba(94, 167, 255, 0.14);
  box-shadow: var(--neon-blue);
}

.nav-group.open > .nav-group-button {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.92), rgba(35, 214, 255, 0.72));
  box-shadow: var(--neon-blue-strong);
}

.main {
  background: transparent;
}

.panel,
.metric,
.category-card,
.upload-card,
.form-panel,
.video-manager-card,
.registered-video,
.application-card,
.approval-summary article,
.trash-card,
.settlement-finance-card,
.work-check-detail-grid div,
.settlement-finance-grid div,
.application-detail-table,
.consent-detail,
.onboarding-search-panel,
.empty-state {
  border-color: var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.018)),
    var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
}

.panel,
.form-panel,
.video-manager-card {
  background:
    linear-gradient(180deg, rgba(94, 167, 255, 0.08), transparent 140px),
    var(--surface);
}

.panel:hover,
.metric:hover,
.category-card:hover,
.upload-card:hover,
.application-card:hover,
.trash-card:hover,
.settlement-finance-card:hover,
.registered-video:hover {
  border-color: rgba(35, 214, 255, 0.52);
  box-shadow: var(--neon-blue-strong);
}

.panel-head p,
.metric p,
.helper,
.table-note,
.application-main p,
.settlement-finance-head p,
.settlement-finance-grid dt,
.application-card dt,
.approval-summary span,
.approval-summary small,
.trash-card small,
th {
  color: var(--muted);
}

.card-kicker,
.pill,
.video-count,
.approval-status {
  color: #dff7ff;
  background: rgba(35, 214, 255, 0.14);
  border: 1px solid rgba(35, 214, 255, 0.24);
  box-shadow: 0 0 18px rgba(35, 214, 255, 0.1);
}

.primary-button {
  border-color: rgba(35, 214, 255, 0.72);
  background: linear-gradient(135deg, #2563eb, #23d6ff);
  color: #ffffff;
  box-shadow: 0 0 26px rgba(35, 214, 255, 0.22);
}

.primary-button:hover {
  border-color: rgba(35, 214, 255, 0.95);
  box-shadow: 0 0 0 1px rgba(35, 214, 255, 0.42), 0 0 38px rgba(35, 214, 255, 0.34);
  animation: neonPulse 1.4s ease-in-out infinite;
}

.secondary-button,
.profile-button,
.sidebar-toggle,
.icon-button {
  color: #dcefff;
  border-color: rgba(94, 167, 255, 0.3);
  background: rgba(255, 255, 255, 0.045);
}

.secondary-button:hover,
.profile-button:hover,
.sidebar-toggle:hover,
.icon-button:hover {
  color: #ffffff;
  border-color: rgba(35, 214, 255, 0.58);
  background: rgba(35, 214, 255, 0.1);
  box-shadow: var(--neon-blue);
}

.secondary-button.is-active {
  color: #ffffff;
  border-color: rgba(35, 214, 255, 0.72);
  background: rgba(35, 214, 255, 0.18);
  box-shadow: var(--neon-blue);
}

.ghost-button {
  color: #ff9eb0;
  border-color: rgba(255, 93, 125, 0.34);
  background: rgba(255, 93, 125, 0.055);
}

.ghost-button:hover,
.trash-button:hover {
  border-color: rgba(255, 93, 125, 0.58);
  background: rgba(255, 93, 125, 0.1);
  box-shadow: 0 0 0 1px rgba(255, 93, 125, 0.18), 0 0 26px rgba(255, 93, 125, 0.16);
}

.trash-button {
  color: #ff9eb0;
  background: rgba(255, 93, 125, 0.06);
}

.field input,
.field textarea,
.field select,
.search,
.onboarding-search-panel input,
.application-detail-table th,
.application-detail-table td,
.consent-detail summary,
.consent-detail pre,
.settlement-finance-note,
.subcategory-note,
.dropzone {
  color: var(--text);
  border-color: var(--line);
  background: rgba(13, 16, 21, 0.58);
}

.field input:focus,
.field textarea:focus,
.field select:focus,
.onboarding-search-panel input:focus {
  border-color: rgba(35, 214, 255, 0.78);
  box-shadow: 0 0 0 3px rgba(35, 214, 255, 0.14), 0 0 24px rgba(35, 214, 255, 0.12);
}

.application-detail-table th {
  color: #b8d9ff;
  background: rgba(94, 167, 255, 0.08);
}

.approved .approval-status,
.approved-complete-message {
  color: #d8fff3;
  border-color: rgba(77, 255, 196, 0.34);
  background: rgba(77, 255, 196, 0.11);
  box-shadow: 0 0 22px rgba(77, 255, 196, 0.12);
}

.rejected .approval-status,
.rejected-complete-message {
  color: #ffdbe3;
  border-color: rgba(255, 93, 125, 0.36);
  background: rgba(255, 93, 125, 0.1);
}

.pending-complete-message {
  color: #dcefff;
  border-color: rgba(94, 167, 255, 0.34);
  background: rgba(94, 167, 255, 0.11);
}

.settlement-finance-note {
  color: #dcefff;
}

.settlement-finance-note strong {
  color: #8cecff;
}

.image-preview-panel {
  background: #171b22;
}

.image-preview-panel header {
  border-bottom-color: var(--line);
  background: rgba(32, 36, 42, 0.96);
}

@keyframes neonPulse {
  0%, 100% {
    box-shadow: 0 0 0 1px rgba(35, 214, 255, 0.28), 0 0 24px rgba(35, 214, 255, 0.22);
  }

  50% {
    box-shadow: 0 0 0 1px rgba(35, 214, 255, 0.48), 0 0 42px rgba(35, 214, 255, 0.38);
  }
}

@keyframes buttonPulse {
  0%, 100% {
    box-shadow: 0 18px 38px rgba(37, 99, 235, 0.28);
  }

  50% {
    box-shadow: 0 20px 46px rgba(14, 165, 233, 0.42);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

@media (max-width: 1180px) {
  :root {
    --sidebar-width: 300px;
  }

  .main {
    padding-inline: 20px;
  }

  .hero-bar {
    padding: 22px;
  }

  .overview,
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .secondary-button {
    min-width: 136px;
    white-space: normal;
  }
}

@media (max-width: 980px) {
  .work-check-request-card,
  .work-check-compact-row,
  .onboarding-application-card {
    grid-template-columns: 1fr;
  }

  .application-card .work-check-detail-grid {
    grid-template-columns: 1fr;
  }

  .settlement-finance-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .settlement-rate-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .approval-actions {
    justify-content: flex-start;
  }

  .trash-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .admin-preview-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-preview-toolbar nav {
    width: 100%;
    margin-left: 0;
  }

  .admin-preview-toolbar a {
    flex: 1 1 auto;
  }

  .sidebar,
  .sidebar.collapsed {
    position: static;
    width: 100%;
    min-height: auto;
  }

  .sidebar.collapsed .brand-text,
  .sidebar.collapsed .sidebar-toggle,
  .sidebar.collapsed .sidebar-label,
  .sidebar.collapsed .nav-caption,
  .sidebar.collapsed .group-panel,
  .sidebar.collapsed .nav-text,
  .sidebar.collapsed .group-number,
  .sidebar.collapsed .chevron {
    display: initial;
  }

  .sidebar.collapsed .group-panel {
    display: none;
  }

  .sidebar.collapsed .nav-group.open > .group-panel {
    display: grid;
  }

  .brand,
  .sidebar.collapsed .brand {
    grid-template-columns: 42px 1fr 38px;
  }

  .main,
  body.sidebar-collapsed .main {
    margin-left: 0;
    padding: 18px;
  }

  .topbar,
  .topbar-actions,
  .form-row,
  .upload-row {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-bar {
    min-height: auto;
    padding: 18px;
  }

  .search {
    min-width: 100%;
  }

  .overview,
  .category-grid,
  .form-grid,
  .upload-grid,
  .video-category-grid,
  .compact-form,
  .approval-summary,
  .onboarding-search-panel,
  .settlement-rate-strip,
  .settlement-finance-grid,
  .application-card,
  .application-card dl {
    grid-template-columns: 1fr;
  }

  .settlement-ledger-card .settlement-finance-head {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .onboarding-search-panel .helper {
    text-align: left;
  }

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

  .approval-actions button {
    flex: 1;
  }
}

.admin-locked .sidebar,
.admin-locked .main {
  filter: blur(8px);
  pointer-events: none;
  user-select: none;
}

.admin-login-layer {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 22px;
  background:
    radial-gradient(circle at 70% 10%, rgba(14, 165, 233, 0.2), transparent 34%),
    rgba(7, 16, 34, 0.72);
  backdrop-filter: blur(12px);
}

.admin-login-card {
  width: min(420px, 100%);
  display: grid;
  gap: 15px;
  padding: 24px;
  border: 1px solid rgba(147, 197, 253, 0.52);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(239, 246, 255, 0.94));
  box-shadow:
    0 26px 70px rgba(15, 31, 61, 0.28),
    0 0 0 1px rgba(14, 165, 233, 0.1),
    0 0 34px rgba(14, 165, 233, 0.16);
}

.admin-login-card h1 {
  font-size: 26px;
}

.admin-login-card p {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.55;
}

.admin-login-card label {
  display: grid;
  gap: 7px;
  color: #334155;
  font-size: 13px;
  font-weight: 900;
}

.admin-login-card input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  outline: 0;
  background: #fff;
}

.admin-login-card input:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.18);
}

.admin-login-message {
  min-height: 20px;
  margin: 0 !important;
  font-size: 13px;
  font-weight: 800;
}

/* Final dark gray neon polish */
body,
.main {
  background-color: #121418;
}

.topbar,
.panel,
.metric,
.category-card,
.upload-card,
.form-panel,
.video-manager-card,
.registered-video,
.application-card,
.approval-summary article,
.trash-card,
.settlement-finance-card,
.work-check-request-card,
.work-check-compact-row,
.work-check-state-card,
.work-check-detail-grid div,
.settlement-finance-grid div,
.application-detail-table,
.consent-detail,
.onboarding-search-panel,
.empty-state,
.admin-login-card {
  border-color: rgba(116, 142, 176, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.016)),
    #1f2329;
  color: var(--text);
}

.panel,
.form-panel,
.video-manager-card,
.admin-login-card {
  background:
    linear-gradient(180deg, rgba(35, 214, 255, 0.08), transparent 150px),
    linear-gradient(135deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)),
    #1d2127;
}

.panel,
.metric,
.category-card,
.upload-card,
.form-panel,
.video-manager-card,
.registered-video,
.application-card,
.trash-card,
.settlement-finance-card,
.work-check-request-card,
.work-check-compact-row,
.work-check-state-card,
.admin-login-card {
  transition:
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 220ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 220ms cubic-bezier(0.22, 1, 0.36, 1),
    background-color 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.panel:hover,
.metric:hover,
.category-card:hover,
.upload-card:hover,
.form-panel:hover,
.video-manager-card:hover,
.registered-video:hover,
.application-card:hover,
.trash-card:hover,
.settlement-finance-card:hover,
.work-check-request-card:hover,
.work-check-compact-row:hover,
.work-check-state-card:hover {
  border-color: rgba(35, 214, 255, 0.52);
  box-shadow:
    0 18px 46px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(35, 214, 255, 0.18),
    0 0 34px rgba(35, 214, 255, 0.16);
}

.hero-copy,
.panel-head p,
.metric p,
.helper,
.table-note,
.application-main p,
.settlement-finance-head p,
.settlement-finance-grid dt,
.application-card dt,
.approval-summary span,
.approval-summary small,
.trash-card small,
.registered-video span,
.registered-video small,
.empty-copy,
.admin-login-card p {
  color: var(--muted);
}

.field label,
.admin-login-card label,
.registered-list h4,
.application-detail-table th,
.settlement-finance-grid dt {
  color: #b9d8ff;
}

.field input,
.field textarea,
.field select,
.search,
.admin-login-card input,
.onboarding-search-panel input,
.application-detail-table th,
.application-detail-table td,
.consent-detail summary,
.consent-detail pre,
.settlement-finance-note,
.subcategory-note,
.upload-drop,
.dropzone {
  color: var(--text);
  border-color: rgba(116, 142, 176, 0.32);
  background: rgba(12, 15, 20, 0.72);
}

.field input::placeholder,
.field textarea::placeholder,
.search input::placeholder,
.admin-login-card input::placeholder {
  color: #687487;
}

.field input:focus,
.field textarea:focus,
.field select:focus,
.admin-login-card input:focus,
.onboarding-search-panel input:focus {
  border-color: rgba(35, 214, 255, 0.78);
  box-shadow:
    0 0 0 3px rgba(35, 214, 255, 0.13),
    0 0 24px rgba(35, 214, 255, 0.14);
}

.application-detail-table,
table {
  background: rgba(18, 21, 27, 0.86);
}

.application-detail-table th,
th {
  color: #b8d9ff;
  background: rgba(94, 167, 255, 0.08);
}

.application-detail-table td,
td,
.registered-video strong,
.image-preview-panel header strong,
.settlement-finance-grid dd {
  color: var(--text);
}

th,
td,
.application-detail-table th,
.application-detail-table td,
.consent-detail pre,
.work-check-fold,
.registered-list {
  border-color: rgba(116, 142, 176, 0.24);
}

.consent-detail summary,
.work-check-fold summary {
  color: #dff7ff;
  background: rgba(35, 214, 255, 0.1);
}

.consent-detail pre {
  background: rgba(8, 11, 16, 0.78);
}

.card-kicker,
.pill,
.video-count,
.approval-status,
.work-check-fold summary {
  color: #e4fbff;
  border: 1px solid rgba(35, 214, 255, 0.28);
  background: rgba(35, 214, 255, 0.14);
  box-shadow: 0 0 22px rgba(35, 214, 255, 0.12);
}

.primary-button,
.secondary-button.is-active {
  animation: neonPulse 2.4s ease-in-out infinite;
}

.approved .approval-status,
.approved-complete-message {
  color: #d9fff3;
  border-color: rgba(77, 255, 196, 0.42);
  background: rgba(77, 255, 196, 0.12);
  box-shadow: 0 0 0 1px rgba(77, 255, 196, 0.12), 0 0 26px rgba(77, 255, 196, 0.16);
}

.pending-complete-message {
  color: #dcefff;
  border-color: rgba(94, 167, 255, 0.38);
  background: rgba(94, 167, 255, 0.12);
  box-shadow: 0 0 0 1px rgba(94, 167, 255, 0.12), 0 0 22px rgba(94, 167, 255, 0.14);
}

.rejected .approval-status,
.rejected-complete-message {
  color: #ffe1e8;
  border-color: rgba(255, 93, 125, 0.42);
  background: rgba(255, 93, 125, 0.1);
  box-shadow: 0 0 0 1px rgba(255, 93, 125, 0.12), 0 0 24px rgba(255, 93, 125, 0.14);
}

.image-preview-backdrop,
.admin-login-layer {
  background:
    radial-gradient(circle at 70% 10%, rgba(35, 214, 255, 0.15), transparent 34%),
    rgba(7, 9, 13, 0.82);
}

.image-preview-panel {
  border-color: rgba(35, 214, 255, 0.38);
  background: #171b22;
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.52),
    0 0 44px rgba(35, 214, 255, 0.16);
}

.image-preview-panel header {
  border-bottom-color: rgba(116, 142, 176, 0.24);
  background: #20242a;
}

.image-preview-panel img {
  background: #0b0d12;
}

.group-panel {
  display: grid;
  gap: 4px;
  max-height: 0;
  padding: 0;
  opacity: 0;
  transform: translateY(-4px);
  overflow: hidden;
  transition:
    max-height 280ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 180ms ease,
    transform 240ms cubic-bezier(0.22, 1, 0.36, 1),
    padding 220ms ease;
}

.nav-group.open > .group-panel,
.sidebar.collapsed .nav-group.open > .group-panel {
  display: grid;
  max-height: 380px;
  padding: 6px 0 8px;
  opacity: 1;
  transform: translateY(0);
}

.sidebar.collapsed .group-panel {
  max-height: 0;
  padding: 0;
  opacity: 0;
}

.chevron {
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* Profile approval cards */
.profile-request-list {
  display: grid;
  gap: 10px;
}

.profile-request-card {
  grid-template-columns: minmax(150px, 0.25fr) minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
}

.profile-request-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px 12px;
  margin: 0;
}

.profile-request-grid div {
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.profile-request-grid dt {
  color: #b9d8ff;
  font-size: 11px;
  font-weight: 900;
}

.profile-request-grid dd {
  margin: 4px 0 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.profile-request-card .approval-actions {
  grid-column: 1 / -1;
  padding-top: 10px;
  border-top: 1px solid rgba(116, 142, 176, 0.22);
}

/* Compact onboarding action row */
.onboarding-application-card .approval-actions.onboarding-actions {
  grid-column: 1 / -1;
  width: 100%;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(116, 142, 176, 0.22);
}

.onboarding-application-card .approval-actions.onboarding-actions > * {
  flex: 0 0 auto;
}

.onboarding-application-card .approval-actions.onboarding-actions .onboarding-delete-button {
  margin-left: auto;
}

.onboarding-application-card .approval-actions.onboarding-actions .approved-complete-message,
.onboarding-application-card .approval-actions.onboarding-actions .pending-complete-message,
.onboarding-application-card .approval-actions.onboarding-actions .rejected-complete-message {
  min-width: 0;
}

.consent-action {
  flex: 0 1 auto;
  min-width: 150px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(35, 214, 255, 0.34);
  border-radius: 8px;
  color: #dff7ff;
  background: rgba(35, 214, 255, 0.1);
  box-shadow: none;
}

.consent-action.is-open {
  border-color: rgba(35, 214, 255, 0.58);
  background: rgba(35, 214, 255, 0.16);
}

.consent-panel {
  grid-column: 1 / -1;
  width: 100%;
  max-height: 220px;
  margin: 10px 0 0;
  overflow: auto;
  padding: 14px;
  border: 1px solid rgba(116, 142, 176, 0.24);
  border-radius: 8px;
  color: #f3fbff;
  background: rgba(4, 10, 18, 0.62);
  font: 12px/1.6 "Pretendard", "Noto Sans KR", system-ui, sans-serif;
  white-space: pre-wrap;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

/* Remove unintended nested-card feel */
.editor-panel {
  padding: 0;
  border: 0;
  background: transparent !important;
  box-shadow: none !important;
}

.editor-panel:hover {
  border-color: transparent;
  box-shadow: none !important;
}

.editor-panel > .panel-head {
  display: none;
}

.workbench {
  margin-top: 0;
}

.work-check-compact-row {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  grid-template-columns: minmax(150px, 0.48fr) minmax(320px, 1.52fr);
  align-items: center;
}

.work-check-compact-row:hover {
  border-color: transparent;
  box-shadow: none !important;
}

.application-card .work-check-detail-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
}

.work-check-detail-grid div {
  min-width: 96px;
  padding: 0;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
}

.work-check-detail-grid dt {
  color: #b9d8ff;
  font-size: 11px;
  font-weight: 900;
}

.work-check-detail-grid dd {
  margin: 4px 0 0;
  color: var(--text);
  font-size: 15px;
  font-weight: 900;
}

.approval-board > .form-panel:first-child {
  padding: 0;
  border: 0;
  background: transparent !important;
  box-shadow: none !important;
}

.approval-board > .form-panel:first-child:hover {
  box-shadow: none !important;
}

.approval-board > .form-panel:first-child .form-row {
  padding: 10px 12px;
  border: 1px solid rgba(35, 214, 255, 0.22);
  border-radius: 8px;
  background: rgba(35, 214, 255, 0.055);
}

/* 2026-06-17: keep work-check cards from colliding with action buttons. */
.work-check-request-card.compact-admin-card {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "summary"
    "actions"
    "capture";
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
  overflow: hidden;
}

.work-check-request-card .work-check-compact-row {
  grid-area: summary;
  min-width: 0;
  width: 100%;
  display: grid !important;
  grid-template-columns: minmax(128px, 0.45fr) minmax(360px, 1.55fr);
  gap: 12px;
  align-items: start;
}

.work-check-request-card .work-check-request-main,
.work-check-request-card .work-check-detail-grid,
.work-check-request-card .approval-actions,
.work-check-request-card .work-check-fold {
  min-width: 0;
}

.work-check-request-card .application-main h3,
.work-check-request-card .application-main p,
.work-check-request-card .work-check-detail-grid dd {
  overflow-wrap: anywhere;
}

.work-check-request-card .work-check-detail-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(116px, 1fr));
  gap: 12px;
  align-items: start;
}

.work-check-request-card .work-check-detail-grid div {
  min-width: 0;
}

.work-check-request-card .approval-actions {
  grid-area: actions;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  max-width: 100%;
  border-top: 1px solid rgba(116, 142, 176, 0.2);
  padding-top: 12px;
}

.work-check-request-card .approval-actions > span {
  min-width: 0;
  max-width: 190px;
  white-space: normal;
  text-align: center;
  line-height: 1.35;
}

.work-check-request-card .approval-actions .approved-complete-message,
.work-check-request-card .approval-actions .pending-complete-message,
.work-check-request-card .approval-actions .rejected-complete-message,
.work-check-request-card .approval-actions .payment-status {
  min-height: 40px;
  padding: 0 10px;
}

.work-check-request-card .approval-actions button {
  min-width: 74px;
  min-height: 40px;
  padding: 0 12px;
  white-space: nowrap;
}

.work-check-request-card .approval-actions .trash-button {
  min-width: 58px;
}

.traffic-board {
  display: grid;
  gap: 18px;
}

.traffic-head-panel {
  border-color: rgba(34, 211, 238, 0.28);
  background: linear-gradient(135deg, rgba(8, 47, 73, 0.42), rgba(15, 23, 42, 0.92));
}

.traffic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.traffic-panel {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 18px 46px rgba(2, 6, 23, 0.22);
}

.traffic-panel h3 {
  margin: 0;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  color: #eff6ff;
  font-size: 17px;
}

.traffic-table-wrap {
  overflow-x: auto;
}

.traffic-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
}

.traffic-table th,
.traffic-table td {
  padding: 13px 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  color: #dbeafe;
  text-align: left;
  vertical-align: top;
}

.traffic-table th {
  color: #93c5fd;
  font-size: 13px;
  font-weight: 800;
}

.traffic-table tr:last-child td {
  border-bottom: 0;
}

.settlement-finance-head .trash-button {
  margin-left: auto;
  white-space: nowrap;
}

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

  .traffic-table {
    min-width: 460px;
  }
}

.work-check-request-card .work-check-fold {
  grid-area: capture;
  margin-top: 0;
  border-top: 1px solid rgba(116, 142, 176, 0.2);
  padding-top: 10px;
}

@media (max-width: 1180px) {
  .work-check-request-card .approval-actions {
    justify-content: start;
  }
}

@media (max-width: 760px) {
  .work-check-request-card .work-check-compact-row,
  .work-check-request-card .work-check-detail-grid {
    grid-template-columns: 1fr !important;
  }

  .work-check-request-card .approval-actions > span,
  .work-check-request-card .approval-actions button {
    width: 100%;
    max-width: none;
  }
}

.meme-search-panel {
  border-color: rgba(35, 214, 255, 0.34);
  background: rgba(10, 15, 22, 0.9);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.meme-search-panel label {
  color: #dbeafe;
}

.meme-search-panel input {
  border-color: rgba(148, 163, 184, 0.48);
  background: rgba(4, 8, 14, 0.94);
  color: #f8fafc;
}

.meme-search-panel input::placeholder {
  color: #93a4bb;
  opacity: 1;
}

.meme-search-panel input:focus {
  border-color: rgba(35, 214, 255, 0.88);
  outline: 2px solid rgba(35, 214, 255, 0.24);
}

.meme-search-panel .helper {
  color: #cbd5e1;
}

.meme-bulk-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(35, 214, 255, 0.3);
  border-radius: 10px;
  background: rgba(10, 15, 22, 0.88);
}

.meme-bulk-actions strong,
.meme-bulk-actions span {
  display: block;
}

.meme-bulk-actions strong {
  color: #f8fafc;
  font-size: 14px;
}

.meme-bulk-actions span {
  margin-top: 4px;
  color: #cbd5e1;
  font-size: 13px;
}

.meme-bulk-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.meme-review-heading-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.meme-review-panel {
  display: grid;
  gap: 12px;
  margin: 14px 0;
  padding: 14px;
  border: 1px solid rgba(35, 214, 255, 0.34);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(8, 18, 30, 0.94), rgba(12, 23, 38, 0.88));
  box-shadow: 0 16px 36px rgba(15, 31, 61, 0.14);
}

.meme-review-summary strong,
.meme-review-summary span {
  display: block;
}

.meme-review-summary strong {
  color: #f8fafc;
  font-size: 15px;
}

.meme-review-summary span {
  margin-top: 5px;
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 700;
}

.meme-review-panel ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.meme-review-panel li {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.72);
}

.meme-review-panel li strong {
  color: #f8fafc;
  font-size: 13px;
}

.meme-review-panel li span {
  color: #cbd5e1;
  font-size: 12px;
  line-height: 1.45;
}

.meme-review-panel li.is-ok {
  border-color: rgba(20, 184, 166, 0.36);
}

.meme-review-panel li.is-warning {
  border-color: rgba(245, 158, 11, 0.46);
}

.meme-review-panel li.is-error {
  border-color: rgba(239, 68, 68, 0.5);
}

.meme-row-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 74px;
  color: #dbeafe;
  font-size: 13px;
  font-weight: 700;
}

.meme-row-check input {
  width: 18px;
  height: 18px;
  accent-color: #23d6ff;
}

.meme-row-category-select {
  min-width: 116px;
  min-height: 38px;
  border: 1px solid rgba(56, 189, 248, 0.34);
  border-radius: 8px;
  color: #e5f4ff;
  background: rgba(15, 23, 42, 0.78);
  font-weight: 800;
}

.meme-row-category-select:focus {
  outline: none;
  border-color: rgba(34, 211, 238, 0.82);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.18);
}

.registered-video.is-selected {
  border-color: rgba(35, 214, 255, 0.82);
  box-shadow: 0 0 0 1px rgba(35, 214, 255, 0.26), 0 16px 34px rgba(35, 214, 255, 0.12);
}

.empty-list-panel {
  border-color: rgba(148, 163, 184, 0.34);
  background: rgba(10, 15, 22, 0.88);
  color: #cbd5e1;
}

.empty-list-panel strong {
  color: #f8fafc;
}

.empty-list-panel span {
  color: #cbd5e1;
}

/* 2026-06-26 admin shell viewport and scrollbar polish */
* {
  scrollbar-color: rgba(35, 214, 255, 0.58) rgba(9, 12, 18, 0.72);
  scrollbar-width: thin;
}

*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-track {
  background: rgba(9, 12, 18, 0.72);
  border-radius: 999px;
}

*::-webkit-scrollbar-thumb {
  border: 2px solid rgba(9, 12, 18, 0.72);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(94, 167, 255, 0.92), rgba(35, 214, 255, 0.72));
  box-shadow: 0 0 16px rgba(35, 214, 255, 0.22);
}

*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(125, 190, 255, 1), rgba(35, 214, 255, 0.94));
}

body:not(.sidebar-collapsed) .sidebar {
  overflow-x: hidden;
}

.sidebar {
  overflow-x: hidden;
  overscroll-behavior: contain;
}

.main {
  min-width: 0;
  overflow-x: clip;
}

.admin-preview-toolbar {
  height: var(--admin-preview-toolbar-height);
}

.sidebar.collapsed {
  padding: 18px 10px;
  overflow-x: hidden;
}

.sidebar.collapsed .brand {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  align-content: start;
  min-height: 114px;
  margin-bottom: 14px;
}

.sidebar.collapsed .brand-mark {
  width: 40px;
  height: 40px;
}

.sidebar.collapsed .sidebar-toggle {
  width: 40px;
  height: 40px;
}

.sidebar.collapsed .nav {
  gap: 10px;
  padding: 0;
  overflow-x: hidden;
}

.sidebar.collapsed .nav-group {
  padding: 0;
  border: 0;
  background: transparent;
}

.sidebar.collapsed .nav-group-button {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  min-height: 58px;
  padding: 0;
}

.sidebar.collapsed .nav-group.open > .group-panel,
.sidebar.collapsed .group-panel {
  display: none !important;
  max-height: 0 !important;
  padding: 0 !important;
  opacity: 0 !important;
  transform: none !important;
}

.sidebar.collapsed .group-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
}

.sidebar.collapsed .nav-group.open > .nav-group-button {
  box-shadow:
    0 12px 26px rgba(0, 0, 0, 0.24),
    0 0 0 1px rgba(35, 214, 255, 0.22),
    0 0 24px rgba(35, 214, 255, 0.16);
}

@media (max-width: 760px) {
  body {
    padding-top: 0;
  }

  .admin-preview-toolbar {
    position: static;
    height: auto;
  }
}
