:root {
  color-scheme: dark !important;
  --admin-bg: #060f22;
  --admin-bg-deep: #040b19;
  --admin-panel: rgba(12, 30, 59, 0.88);
  --admin-panel-strong: #0c1e3b;
  --admin-panel-raised: #12284a;
  --admin-panel-hover: #17365d;
  --admin-border: rgba(83, 116, 158, 0.48);
  --admin-border-strong: #2f4f79;
  --admin-text: #edf3ff;
  --admin-text-soft: #d2def5;
  --admin-text-muted: #9ab0d1;
  --admin-accent: #ff9f3f;
  --admin-accent-soft: #ffb96b;
  --admin-accent-deep: #d8781f;
  --admin-success: #55d88a;
  --admin-warning: #ffbd66;
  --admin-danger: #ff7d86;
  --admin-info: #77b7ff;
  --admin-shadow: 0 22px 55px rgba(0, 6, 20, 0.36);
  --admin-shadow-soft: 0 12px 34px rgba(0, 6, 20, 0.24);
  --admin-radius-card: 20px;
  --admin-radius-control: 13px;
  --admin-sidebar-width: clamp(228px, 16vw, 264px);
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--admin-bg-deep);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--admin-text);
  background:
    radial-gradient(
      circle at 14% -8%,
      rgba(35, 91, 156, 0.28),
      transparent 34rem
    ),
    radial-gradient(
      circle at 92% 4%,
      rgba(255, 159, 63, 0.12),
      transparent 28rem
    ),
    linear-gradient(
      145deg,
      var(--admin-bg-deep) 0%,
      var(--admin-bg) 40%,
      #0b1d3a 100%
    );
  background-attachment: fixed;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.42;
  background-image:
    linear-gradient(rgba(129, 167, 214, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(129, 167, 214, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

::selection {
  color: #09152a;
  background: var(--admin-accent-soft);
}

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

::-webkit-scrollbar-track {
  background: rgba(4, 11, 25, 0.65);
}

::-webkit-scrollbar-thumb {
  border: 2px solid rgba(4, 11, 25, 0.65);
  border-radius: 999px;
  background: #2f4f79;
}

::-webkit-scrollbar-thumb:hover {
  background: #436993;
}

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

button,
a.button-interactive {
  transition:
    transform 100ms ease,
    box-shadow 180ms ease,
    color 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    opacity 180ms ease;
}

button:not(:disabled),
a.button-interactive {
  cursor: pointer;
}

button:hover:not(:disabled),
a.button-interactive:hover {
  border-color: rgba(255, 185, 107, 0.58) !important;
  box-shadow: 0 10px 26px rgba(0, 6, 20, 0.28);
}

button:active:not(:disabled),
a.button-interactive:active {
  transform: translateY(1px) scale(0.985);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

:where(button, a, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid rgba(255, 159, 63, 0.42) !important;
  outline-offset: 3px;
}

.hidden {
  display: none !important;
}

/* Dark design-system bridge for the utility classes emitted by admin.js. */
[class*="bg-white"] {
  background-color: var(--admin-panel-strong) !important;
}

[class*="bg-slate-50"] {
  background-color: rgba(18, 40, 74, 0.78) !important;
}

[class*="bg-slate-100"] {
  background-color: rgba(23, 54, 93, 0.82) !important;
}

[class*="border-slate-"],
[class*="border-white"] {
  border-color: var(--admin-border) !important;
}

[class*="text-slate-900"],
[class*="text-slate-800"],
[class*="text-slate-700"] {
  color: var(--admin-text) !important;
}

[class*="text-slate-600"],
[class*="text-slate-500"],
[class*="text-slate-400"] {
  color: var(--admin-text-muted) !important;
}

[class*="bg-brand-600"] {
  color: #111b2d !important;
  background: linear-gradient(
    135deg,
    var(--admin-accent-soft),
    var(--admin-accent)
  ) !important;
}

[class*="bg-brand-700"] {
  background-color: var(--admin-accent-deep) !important;
}

[class*="bg-brand-50"],
[class*="bg-brand-100"] {
  background-color: rgba(255, 159, 63, 0.13) !important;
}

[class*="border-brand-"] {
  border-color: rgba(255, 159, 63, 0.68) !important;
}

[class*="text-brand-"] {
  color: var(--admin-accent-soft) !important;
}

[class*="bg-emerald-50"] {
  background-color: rgba(41, 142, 91, 0.16) !important;
}

[class*="border-emerald-"] {
  border-color: rgba(85, 216, 138, 0.48) !important;
}

[class*="text-emerald-"] {
  color: #8ce7b1 !important;
}

[class*="bg-red-50"] {
  background-color: rgba(188, 52, 66, 0.16) !important;
}

[class*="border-red-"] {
  border-color: rgba(255, 125, 134, 0.5) !important;
}

[class*="text-red-"] {
  color: #ffadb3 !important;
}

[class*="bg-amber-50"],
[class*="bg-orange-50"] {
  background-color: rgba(255, 159, 63, 0.14) !important;
}

[class*="border-amber-"],
[class*="border-orange-"] {
  border-color: rgba(255, 185, 107, 0.52) !important;
}

[class*="text-amber-"],
[class*="text-orange-"] {
  color: #ffd09c !important;
}

/* Authentication gate */
.auth-gate {
  position: relative;
  display: grid;
  min-height: 100vh;
  place-items: center;
  overflow: hidden;
  padding: 40px 24px;
}

.auth-gate::before,
.auth-gate::after {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  pointer-events: none;
  content: "";
  filter: blur(1px);
}

.auth-gate::before {
  top: -170px;
  left: -110px;
  border: 1px solid rgba(119, 183, 255, 0.18);
  box-shadow: 0 0 120px rgba(37, 100, 173, 0.25);
}

.auth-gate::after {
  right: -170px;
  bottom: -190px;
  border: 1px solid rgba(255, 159, 63, 0.18);
  box-shadow: 0 0 140px rgba(255, 159, 63, 0.16);
}

.auth-card {
  position: relative;
  z-index: 1;
  width: min(100%, 460px);
  overflow: hidden;
  border: 1px solid var(--admin-border);
  border-radius: 28px;
  padding: 38px;
  background:
    linear-gradient(145deg, rgba(18, 40, 74, 0.92), rgba(7, 21, 43, 0.96)),
    var(--admin-panel-strong);
  box-shadow:
    var(--admin-shadow),
    inset 0 1px rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(22px);
}

.auth-card::before {
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  content: "";
  background: linear-gradient(
    90deg,
    transparent,
    var(--admin-accent),
    transparent
  );
}

.auth-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 28px;
}

.auth-brand-copy strong,
.sidebar-brand-copy strong {
  display: block;
  color: var(--admin-text);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.auth-brand-copy span,
.sidebar-brand-copy span {
  display: block;
  margin-top: 3px;
  color: var(--admin-text-muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.21em;
  text-transform: uppercase;
}

.auth-heading {
  margin: 0;
  text-align: center;
  color: var(--admin-text);
  font-size: clamp(28px, 6vw, 38px);
  font-weight: 800;
  letter-spacing: -0.035em;
}

.auth-copy {
  margin: 10px 0 0;
  text-align: center;
  color: var(--admin-text-muted);
  font-size: 14px;
}

.auth-login-button {
  display: inline-flex;
  width: 100%;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
  border: 1px solid rgba(255, 185, 107, 0.55);
  border-radius: 15px;
  padding: 12px 18px;
  color: #111b2d;
  background: linear-gradient(
    135deg,
    var(--admin-accent-soft),
    var(--admin-accent)
  );
  box-shadow: 0 12px 32px rgba(216, 120, 31, 0.22);
  font-size: 14px;
  font-weight: 800;
}

.auth-login-button:hover:not(:disabled) {
  background: linear-gradient(135deg, #ffc887, #ffad5c);
  box-shadow: 0 15px 38px rgba(216, 120, 31, 0.3);
}

.auth-footnote {
  margin: 16px 0 0;
  text-align: center;
  color: var(--admin-text-muted);
  font-size: 12px;
  line-height: 1.6;
}

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

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(83, 116, 158, 0.28);
  background: rgba(4, 14, 31, 0.8);
  box-shadow: 0 12px 30px rgba(0, 6, 20, 0.15);
  backdrop-filter: blur(20px) saturate(125%);
}

.admin-topbar-inner {
  display: grid;
  max-width: 1760px;
  min-height: 78px;
  grid-template-columns:
    minmax(220px, var(--admin-sidebar-width)) minmax(280px, 1fr)
    auto;
  align-items: center;
  gap: 22px;
  margin: 0 auto;
  padding: 12px 24px;
}

.mobile-menu-button,
.icon-button,
.profile-action,
.sidebar-close-button {
  display: inline-grid;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--admin-border);
  border-radius: 13px;
  color: var(--admin-text-soft);
  background: rgba(12, 30, 59, 0.78);
}

.mobile-menu-button {
  display: none;
}

.mobile-menu-button svg,
.icon-button svg,
.profile-action svg,
.sidebar-close-button svg {
  width: 19px;
  height: 19px;
}

.topbar-context {
  min-width: 0;
}

.topbar-eyebrow {
  margin: 0;
  color: var(--admin-accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.topbar-title {
  overflow: hidden;
  margin: 4px 0 0;
  color: var(--admin-text);
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-search-shell {
  position: relative;
  width: min(100%, 620px);
  justify-self: center;
}

.admin-search {
  position: relative;
  display: flex;
  width: 100%;
  align-items: center;
}

.admin-search svg {
  position: absolute;
  left: 16px;
  width: 18px;
  height: 18px;
  color: var(--admin-text-muted);
  pointer-events: none;
}

.admin-search input {
  width: 100%;
  height: 46px;
  border: 1px solid var(--admin-border);
  border-radius: 14px;
  padding: 0 18px 0 46px;
  color: var(--admin-text);
  background: rgba(12, 30, 59, 0.72);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.025);
}

.admin-search input::placeholder {
  color: var(--admin-text-muted);
}

.admin-search-hint {
  position: absolute;
  right: 10px;
  display: inline-flex;
  height: 26px;
  align-items: center;
  border: 1px solid rgba(83, 116, 158, 0.38);
  border-radius: 8px;
  padding: 0 8px;
  color: var(--admin-text-muted);
  background: rgba(4, 14, 31, 0.45);
  font-size: 10px;
  font-weight: 700;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.notification-center {
  position: relative;
}

.notification-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 7px;
  height: 7px;
  border: 2px solid #0a1930;
  border-radius: 50%;
  background: var(--admin-accent);
}

.admin-search-results,
.notification-panel {
  position: absolute;
  z-index: 80;
  overflow: hidden;
  border: 1px solid rgba(83, 116, 158, 0.54);
  border-radius: 16px;
  background: rgba(7, 22, 45, 0.98);
  box-shadow:
    0 22px 55px rgba(0, 5, 18, 0.48),
    inset 0 1px rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(22px);
}

.admin-search-results {
  top: calc(100% + 9px);
  right: 0;
  left: 0;
  max-height: min(460px, calc(100vh - 110px));
  overflow-y: auto;
  padding: 7px;
}

.admin-search-result {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 11px;
  border: 1px solid transparent;
  border-radius: 11px;
  padding: 10px;
  color: var(--admin-text-soft);
  background: transparent;
  text-align: left;
}

.admin-search-result:hover,
.admin-search-result.is-active {
  border-color: rgba(255, 159, 63, 0.3);
  background: rgba(28, 61, 101, 0.72);
  box-shadow: none;
}

.admin-search-result-icon {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  place-items: center;
  border-radius: 9px;
  color: var(--admin-accent-soft);
  background: rgba(255, 159, 63, 0.09);
  font-weight: 800;
}

.admin-search-result-copy {
  min-width: 0;
}

.admin-search-result-copy strong,
.admin-search-result-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-search-result-copy strong {
  color: var(--admin-text);
  font-size: 12px;
}

.admin-search-result-copy small {
  margin-top: 3px;
  color: var(--admin-text-muted);
  font-size: 10px;
}

.admin-search-empty,
.notification-empty {
  margin: 0;
  padding: 14px;
  color: var(--admin-text-muted);
  font-size: 11px;
  line-height: 1.5;
}

.notification-panel {
  top: calc(100% + 10px);
  right: 0;
  z-index: 120;
  width: min(360px, calc(100vw - 24px));
}

.notification-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(83, 116, 158, 0.3);
  padding: 14px 15px;
}

.notification-panel-head h2 {
  margin: 3px 0 0;
  color: var(--admin-text);
  font-size: 14px;
}

.notification-panel-head button {
  width: 30px;
  height: 30px;
  border: 1px solid var(--admin-border);
  border-radius: 9px;
  color: var(--admin-text-muted);
  background: rgba(12, 30, 59, 0.75);
}

.notification-list {
  max-height: 350px;
  overflow-y: auto;
  padding: 6px;
}

.notification-item {
  display: flex;
  gap: 10px;
  border-radius: 11px;
  padding: 10px;
}

.notification-item + .notification-item {
  border-top: 1px solid rgba(83, 116, 158, 0.2);
}

.notification-item-mark {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--admin-info);
}

.notification-item--success .notification-item-mark {
  background: var(--admin-success);
}
.notification-item--error .notification-item-mark {
  background: var(--admin-danger);
}

.notification-item strong,
.notification-item small {
  display: block;
}

.notification-item strong {
  color: var(--admin-text-soft);
  font-size: 11px;
  line-height: 1.45;
}

.notification-item small {
  margin-top: 3px;
  color: var(--admin-text-muted);
  font-size: 9px;
}

.admin-profile {
  display: flex;
  min-width: 210px;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--admin-border);
  border-radius: 15px;
  padding: 7px 8px 7px 9px;
  background: rgba(12, 30, 59, 0.72);
}

.profile-avatar {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(255, 185, 107, 0.45);
  border-radius: 11px;
  color: var(--admin-accent-soft);
  background: linear-gradient(
    145deg,
    rgba(255, 159, 63, 0.18),
    rgba(18, 40, 74, 0.6)
  );
  font-size: 13px;
  font-weight: 800;
}

.profile-copy {
  min-width: 0;
  flex: 1;
}

.profile-name {
  overflow: hidden;
  color: var(--admin-text);
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-role {
  margin-top: 2px;
  color: var(--admin-text-muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-mode-button {
  min-height: 32px;
  border: 1px solid rgba(83, 116, 158, 0.4);
  border-radius: 9px;
  padding: 0 9px;
  color: var(--admin-text-muted);
  background: rgba(4, 14, 31, 0.38);
  font-size: 9px;
  font-weight: 750;
  white-space: nowrap;
}

.profile-action {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.mobile-tabs-wrap {
  display: none;
  border-top: 1px solid rgba(83, 116, 158, 0.22);
  padding: 8px 16px;
}

.mobile-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.mobile-tabs::-webkit-scrollbar {
  display: none;
}

.admin-layout {
  display: grid;
  max-width: 1760px;
  grid-template-columns: var(--admin-sidebar-width) minmax(0, 1fr);
  align-items: start;
  gap: 24px;
  margin: 0 auto;
  padding: 24px;
}

.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: rgba(1, 6, 16, 0.72);
  backdrop-filter: blur(4px);
}

.admin-sidebar {
  position: sticky;
  top: 102px;
  z-index: 50;
  display: flex;
  min-height: calc(100vh - 126px);
  max-height: calc(100vh - 126px);
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(83, 116, 158, 0.34);
  border-radius: var(--admin-radius-card);
  padding: 18px;
  background:
    linear-gradient(165deg, rgba(14, 35, 67, 0.95), rgba(6, 21, 43, 0.96)),
    var(--admin-panel-strong);
  box-shadow:
    var(--admin-shadow-soft),
    inset 0 1px rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(18px);
}

.sidebar-head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 2px 2px 20px;
}

.sidebar-brand-copy strong {
  font-size: 13px;
}

.sidebar-brand-copy span {
  font-size: 9px;
}

.sidebar-close-button {
  display: none;
  margin-left: auto;
}

.sidebar-access-badge {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 159, 63, 0.5);
  border-radius: 13px;
  padding: 10px 12px;
  color: var(--admin-accent-soft);
  background: rgba(255, 159, 63, 0.055);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sidebar-access-badge svg {
  width: 15px;
  height: 15px;
}

.sidebar-label {
  margin: 0 8px 8px;
  color: #7892b7;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.desktop-tab-nav {
  display: grid;
  gap: 6px;
  overflow-y: auto;
  padding: 2px 0 14px;
}

.desktop-tab-nav button,
.mobile-tabs button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 43px;
  border: 1px solid transparent !important;
  color: var(--admin-text-soft) !important;
  background: transparent !important;
  box-shadow: none;
}

.desktop-tab-nav button::before,
.mobile-tabs button::before {
  display: none;
}

.nav-tab-icon {
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
  color: var(--admin-text-muted);
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.desktop-tab-nav button:hover .nav-tab-icon,
.mobile-tabs button:hover .nav-tab-icon,
.desktop-tab-nav button.bg-brand-600 .nav-tab-icon,
.mobile-tabs button.bg-brand-600 .nav-tab-icon {
  color: var(--admin-accent-soft);
  transform: translateX(1px);
}

.desktop-tab-nav button[data-tab="dashboard"]::before,
.mobile-tabs button[data-tab="dashboard"]::before {
  content: "⌂";
}
.desktop-tab-nav button[data-tab="media"]::before,
.mobile-tabs button[data-tab="media"]::before {
  content: "▶";
  font-size: 10px;
}
.desktop-tab-nav button[data-tab="library"]::before,
.mobile-tabs button[data-tab="library"]::before {
  content: "▣";
}
.desktop-tab-nav button[data-tab="plans"]::before,
.mobile-tabs button[data-tab="plans"]::before {
  content: "□";
}
.desktop-tab-nav button[data-tab="notes"]::before,
.mobile-tabs button[data-tab="notes"]::before {
  content: "✎";
}
.desktop-tab-nav button[data-tab="credentials"]::before,
.mobile-tabs button[data-tab="credentials"]::before {
  content: "⌘";
}
.desktop-tab-nav button[data-tab="config"]::before,
.mobile-tabs button[data-tab="config"]::before {
  content: "⚙";
}

.desktop-tab-nav button:hover,
.mobile-tabs button:hover {
  border-color: rgba(83, 116, 158, 0.38) !important;
  background: rgba(23, 54, 93, 0.48) !important;
}

.desktop-tab-nav button.bg-brand-600,
.mobile-tabs button.bg-brand-600 {
  border-color: rgba(104, 151, 206, 0.24) !important;
  color: var(--admin-text) !important;
  background: linear-gradient(
    100deg,
    rgba(25, 65, 113, 0.94),
    rgba(23, 54, 93, 0.74)
  ) !important;
  box-shadow:
    inset 3px 0 var(--admin-accent),
    0 10px 24px rgba(0, 8, 24, 0.17);
}

.desktop-tab-nav button.bg-brand-600::before,
.mobile-tabs button.bg-brand-600::before {
  color: var(--admin-accent-soft);
  background: rgba(255, 159, 63, 0.1);
}

.sidebar-status {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: auto;
  border: 1px solid rgba(83, 116, 158, 0.34);
  border-radius: 14px;
  padding: 12px;
  background: rgba(6, 20, 42, 0.62);
}

.sidebar-status-icon {
  position: relative;
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border-radius: 11px;
  color: var(--admin-success);
  background: rgba(85, 216, 138, 0.1);
}

.sidebar-status-icon::after {
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 7px;
  height: 7px;
  border: 2px solid #091a34;
  border-radius: 50%;
  background: var(--admin-success);
  content: "";
}

.sidebar-status-icon svg {
  width: 18px;
  height: 18px;
}

.sidebar-status-copy strong {
  display: block;
  color: var(--admin-text-soft);
  font-size: 10px;
  font-weight: 750;
}

.sidebar-status-copy span {
  display: block;
  margin-top: 3px;
  color: var(--admin-success);
  font-size: 9px;
  font-weight: 650;
}

.panel-stage {
  min-width: 0;
  min-height: calc(100vh - 126px);
}

.panel {
  min-width: 0;
}

/* Production dashboard */
.dashboard-overview {
  display: grid;
  gap: 22px;
}

.dashboard-eyebrow {
  margin: 0;
  color: var(--admin-accent) !important;
  font-size: 9px !important;
  font-weight: 800 !important;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.dashboard-refresh-action,
.dashboard-primary-action,
.dashboard-secondary-action {
  min-height: 42px;
  border-radius: 12px;
  padding: 0 16px;
  font-size: 11px;
  font-weight: 750;
}

.dashboard-refresh-action,
.dashboard-secondary-action {
  border: 1px solid var(--admin-border);
  color: var(--admin-text-soft);
  background: rgba(12, 30, 59, 0.76);
}

.dashboard-refresh-action {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.dashboard-refresh-action span {
  color: var(--admin-accent-soft);
  font-size: 16px;
}

.dashboard-refresh-action--compact {
  min-height: 30px;
  padding: 0 10px;
  font-size: 9px;
}

.dashboard-primary-action {
  border: 1px solid rgba(255, 185, 107, 0.55);
  color: #111a2b;
  background: linear-gradient(
    135deg,
    var(--admin-accent-soft),
    var(--admin-accent)
  );
  box-shadow: 0 12px 28px rgba(216, 120, 31, 0.22);
}

.dashboard-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(290px, 0.72fr);
  align-items: start;
  gap: 16px;
}

.dashboard-main-column,
.dashboard-right-rail {
  display: grid;
  min-width: 0;
  gap: 16px;
}

.dashboard-right-rail {
  position: sticky;
  top: 102px;
}

.dashboard-card,
.dashboard-hero {
  border: 1px solid var(--admin-border);
  background: linear-gradient(
    145deg,
    rgba(18, 40, 74, 0.82),
    rgba(8, 25, 50, 0.92)
  );
  box-shadow:
    var(--admin-shadow-soft),
    inset 0 1px rgba(255, 255, 255, 0.03);
}

.dashboard-card {
  overflow: hidden;
  border-radius: 18px;
  padding: 18px;
}

.dashboard-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.dashboard-card-head h2,
.dashboard-quick-card h2 {
  margin: 4px 0 0;
  color: var(--admin-text);
  font-size: 15px;
  font-weight: 730;
}

.dashboard-card-head > button {
  border: 0;
  padding: 7px 0;
  color: var(--admin-accent-soft);
  background: transparent;
  box-shadow: none !important;
  font-size: 10px;
  font-weight: 750;
}

.dashboard-card-head > button:hover {
  color: var(--admin-accent);
}

.dashboard-hero {
  position: relative;
  display: grid;
  min-height: 330px;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 31%);
  overflow: hidden;
  border-radius: 22px;
  background:
    radial-gradient(
      circle at 84% 44%,
      rgba(255, 159, 63, 0.18),
      transparent 21rem
    ),
    linear-gradient(135deg, rgba(9, 31, 61, 0.98), rgba(14, 44, 81, 0.88));
}

.dashboard-hero-content {
  position: relative;
  z-index: 2;
  padding: clamp(24px, 4vw, 38px);
}

.dashboard-hero-topline,
.dashboard-hero-top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dashboard-hero-topline {
  justify-content: space-between;
}

.dashboard-hero-top-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.dashboard-status-badge {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border: 1px solid var(--admin-border);
  border-radius: 10px;
  padding: 0 10px;
  color: var(--admin-text-soft);
  background: rgba(6, 20, 42, 0.66);
  font-size: 9px;
  font-weight: 800;
}

.dashboard-status-badge--warning {
  border-color: rgba(255, 189, 102, 0.5);
  color: var(--admin-warning);
}
.dashboard-status-badge--success {
  border-color: rgba(85, 216, 138, 0.45);
  color: var(--admin-success);
}
.dashboard-status-badge--info {
  border-color: rgba(119, 183, 255, 0.45);
  color: var(--admin-info);
}

.dashboard-hero-episode {
  display: block;
  margin-top: 20px;
  color: var(--admin-accent);
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 820;
  letter-spacing: -0.04em;
}

.dashboard-hero h2 {
  max-width: 760px;
  margin: 6px 0 0;
  color: var(--admin-text);
  font-size: clamp(27px, 4vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.045em !important;
}

.dashboard-hero-lead {
  max-width: 650px;
  margin: 14px 0 0;
  color: var(--admin-text-muted);
  font-size: 13px;
  line-height: 1.65;
}

.dashboard-hero-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 26px 0 0;
}

.dashboard-hero-meta > div {
  min-width: 0;
  border-left: 1px solid rgba(83, 116, 158, 0.36);
  padding: 0 13px;
}

.dashboard-hero-meta > div:first-child {
  border-left: 0;
  padding-left: 0;
}

.dashboard-hero-meta dt {
  color: var(--admin-text-muted);
  font-size: 9px;
  font-weight: 700;
}

.dashboard-hero-meta dd {
  overflow: hidden;
  margin: 5px 0 0;
  color: var(--admin-text-soft);
  font-size: 11px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.dashboard-platform-badge {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border: 1px solid rgba(83, 116, 158, 0.42);
  border-radius: 999px;
  padding: 0 11px;
  color: var(--admin-text-soft);
  background: rgba(5, 20, 43, 0.66);
  font-size: 9px;
  font-weight: 800;
  text-decoration: none;
}

.dashboard-platform-badge--youtube {
  border-color: rgba(255, 125, 134, 0.44);
  color: #ffabb1;
}

.dashboard-platform-badge--spotify {
  border-color: rgba(85, 216, 138, 0.42);
  color: var(--admin-success);
}

.dashboard-platform-badge.is-unavailable {
  color: var(--admin-text-muted);
  border-style: dashed;
}

.dashboard-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 20px;
}

.dashboard-hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  color: rgba(255, 185, 107, 0.78);
}

.dashboard-hero-visual::before {
  position: absolute;
  inset: 18% -20% 0 -15%;
  background: radial-gradient(
    circle,
    rgba(255, 159, 63, 0.22),
    transparent 65%
  );
  content: "";
  filter: blur(10px);
}

.dashboard-hero-visual svg,
.dashboard-hero-visual img {
  position: relative;
  z-index: 2;
  width: min(82%, 220px);
  filter: drop-shadow(0 14px 26px rgba(255, 128, 30, 0.2));
}

.dashboard-hero-visual svg {
  opacity: 0.9;
  stroke-width: 2.2;
}

.dashboard-hero-visual img {
  aspect-ratio: 16 / 10;
  border: 1px solid rgba(255, 185, 107, 0.32);
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 22px 48px rgba(0, 6, 20, 0.36);
}

.dashboard-orbit {
  position: absolute;
  width: 290px;
  height: 90px;
  border: 1px solid rgba(255, 159, 63, 0.2);
  border-radius: 50%;
  transform: rotate(-18deg);
}

.dashboard-orbit--two {
  width: 360px;
  height: 120px;
  border-color: rgba(119, 183, 255, 0.14);
  transform: rotate(14deg);
}

.dashboard-hero--empty {
  min-height: 280px;
  grid-template-columns: 1fr;
}

.dashboard-episode-table-wrap {
  overflow-x: auto;
}

.dashboard-episode-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
}

.dashboard-episode-table th,
.dashboard-episode-table td {
  border-bottom: 1px solid rgba(83, 116, 158, 0.24);
  padding: 12px 9px;
  color: var(--admin-text-muted);
  font-size: 10px;
  text-align: left;
}

.dashboard-episode-table th {
  padding-top: 3px;
  color: var(--admin-text-muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-episode-table tbody tr:last-child td {
  border-bottom: 0;
}

.dashboard-episode-label {
  color: var(--admin-accent-soft);
  font-weight: 850;
}

.dashboard-episode-open {
  border: 0;
  padding: 0;
  color: var(--admin-text-soft);
  background: transparent;
  box-shadow: none !important;
  font-size: 11px;
  font-weight: 720;
  text-align: left;
}

.dashboard-episode-open:hover {
  color: var(--admin-accent-soft);
}

.dashboard-list,
.dashboard-note-grid,
.dashboard-system-grid {
  display: grid;
  gap: 6px;
}

.dashboard-list-row,
.dashboard-note {
  display: flex;
  width: 100%;
  min-width: 0;
  align-items: center;
  gap: 11px;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 9px;
  color: var(--admin-text-soft);
  background: rgba(5, 20, 43, 0.42);
  text-align: left;
}

.dashboard-list-row:hover,
.dashboard-note:hover {
  border-color: rgba(83, 116, 158, 0.42) !important;
  background: rgba(23, 54, 93, 0.52);
  box-shadow: none;
}

.dashboard-date-tile,
.dashboard-note-icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border: 1px solid rgba(83, 116, 158, 0.32);
  border-radius: 11px;
  color: var(--admin-accent-soft);
  background: rgba(18, 40, 74, 0.8);
}

.dashboard-date-tile strong,
.dashboard-date-tile small {
  display: block;
  line-height: 1;
  text-align: center;
}

.dashboard-date-tile strong {
  font-size: 13px;
}
.dashboard-date-tile small {
  margin-top: 3px;
  color: var(--admin-text-muted);
  font-size: 8px;
  text-transform: uppercase;
}
.dashboard-note-icon {
  color: var(--admin-info);
  font-size: 14px;
}

.dashboard-list-copy,
.dashboard-note-copy {
  min-width: 0;
  flex: 1;
}

.dashboard-list-copy strong,
.dashboard-list-copy small,
.dashboard-note strong,
.dashboard-note small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-list-copy strong,
.dashboard-note strong {
  color: var(--admin-text-soft);
  font-size: 11px;
}

.dashboard-list-copy small,
.dashboard-note small {
  margin-top: 4px;
  color: var(--admin-text-muted);
  font-size: 9px;
}

.dashboard-row-arrow {
  color: var(--admin-text-muted);
  font-size: 18px;
}

.dashboard-note-grid {
  grid-template-columns: minmax(0, 1fr);
}

.dashboard-note {
  align-items: flex-start;
}

.dashboard-note-copy p {
  display: -webkit-box;
  overflow: hidden;
  margin: 8px 0 0;
  color: var(--admin-text-muted);
  font-size: 10px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.dashboard-note-action {
  flex: 0 0 auto;
  border: 1px solid rgba(83, 116, 158, 0.38);
  border-radius: 9px;
  padding: 7px 9px;
  color: var(--admin-accent-soft);
  background: rgba(12, 30, 59, 0.72);
  font-size: 9px;
  font-weight: 780;
}

.dashboard-card-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dashboard-card-actions > button {
  border: 0;
  padding: 7px 0;
  color: var(--admin-accent-soft);
  background: transparent;
  box-shadow: none !important;
  font-size: 10px;
  font-weight: 750;
}

.dashboard-empty {
  margin: 0;
  border: 1px dashed rgba(83, 116, 158, 0.38);
  border-radius: 12px;
  padding: 16px;
  color: var(--admin-text-muted);
  font-size: 10px;
  line-height: 1.55;
}

.dashboard-rail-card {
  padding: 16px;
}

.dashboard-system-card {
  display: flex;
  gap: 10px;
  border: 1px solid rgba(83, 116, 158, 0.3);
  border-radius: 12px;
  padding: 10px;
  background: rgba(5, 20, 43, 0.45);
}

.dashboard-system-icon {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  place-items: center;
  border-radius: 9px;
  color: var(--admin-text-muted);
  background: rgba(83, 116, 158, 0.13);
  font-size: 8px;
  font-weight: 850;
}

.dashboard-system-card > span:last-child {
  min-width: 0;
}

.dashboard-system-card small,
.dashboard-system-card strong,
.dashboard-system-card > span:last-child > span {
  display: block;
}

.dashboard-system-card small {
  color: var(--admin-text-muted);
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dashboard-system-card strong {
  margin-top: 2px;
  color: var(--admin-text-soft);
  font-size: 10px;
}

.dashboard-system-card > span:last-child > span {
  overflow: hidden;
  margin-top: 3px;
  color: var(--admin-text-muted);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-system-card--ok .dashboard-system-icon {
  color: var(--admin-success);
  background: rgba(85, 216, 138, 0.1);
}

.dashboard-system-card--problem .dashboard-system-icon {
  color: var(--admin-warning);
  background: rgba(255, 189, 102, 0.1);
}

.dashboard-runtime-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}

.dashboard-runtime-actions button {
  min-height: 36px;
  border: 1px solid var(--admin-border);
  border-radius: 10px;
  color: var(--admin-text-soft);
  background: rgba(12, 30, 59, 0.75);
  font-size: 9px;
  font-weight: 750;
}

.dashboard-runtime-actions #restartRuntimeBtn {
  border-color: rgba(255, 185, 107, 0.46);
  color: #111a2b;
  background: linear-gradient(
    135deg,
    var(--admin-accent-soft),
    var(--admin-accent)
  );
}

.dashboard-quick-card > button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  border: 1px solid rgba(83, 116, 158, 0.3);
  border-radius: 11px;
  padding: 11px 12px;
  color: var(--admin-text-soft);
  background: rgba(5, 20, 43, 0.45);
  font-size: 10px;
  font-weight: 700;
}

.dashboard-quick-card > button:hover {
  border-color: rgba(255, 159, 63, 0.35) !important;
  background: rgba(23, 54, 93, 0.56);
  box-shadow: none;
}

.dashboard-quick-card b {
  color: var(--admin-accent-soft);
}

.podcast-metrics-source {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.podcast-metrics-source small {
  color: var(--admin-text-muted);
  font-size: 8px;
  text-align: right;
}

.dashboard-podcast-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid rgba(83, 116, 158, 0.3);
  border-radius: 13px;
}

.dashboard-podcast-metric {
  min-width: 0;
  padding: 13px;
  border-right: 1px solid rgba(83, 116, 158, 0.24);
  border-bottom: 1px solid rgba(83, 116, 158, 0.24);
  background: rgba(5, 20, 43, 0.46);
}

.dashboard-podcast-metric:nth-child(2) {
  border-right: 0;
}

.dashboard-podcast-metric:nth-child(3) {
  grid-column: 1 / -1;
  border-right: 0;
  border-bottom: 0;
}

.dashboard-podcast-metric small,
.dashboard-podcast-metric strong,
.dashboard-podcast-metric span {
  display: block;
}

.dashboard-podcast-metric small {
  color: var(--admin-text-muted);
  font-size: 8px;
  font-weight: 780;
  line-height: 1.35;
}

.dashboard-podcast-metric strong {
  overflow: hidden;
  margin-top: 7px;
  color: var(--admin-text);
  font-size: 18px;
  line-height: 1.1;
  text-overflow: ellipsis;
}

.dashboard-podcast-metric span {
  margin-top: 6px;
  font-size: 8px;
  line-height: 1.4;
}

.dashboard-metric-growth {
  color: var(--admin-success);
}

.dashboard-metric-unavailable {
  color: var(--admin-text-muted);
}

.dashboard-spotify-unavailable,
.podcast-metrics-state {
  margin-top: 10px;
  border: 1px dashed rgba(83, 116, 158, 0.38);
  border-radius: 12px;
  padding: 11px 12px;
  color: var(--admin-text-muted);
  background: rgba(5, 20, 43, 0.36);
  font-size: 9px;
  line-height: 1.5;
}

.dashboard-spotify-unavailable {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dashboard-spotify-unavailable strong,
.podcast-metrics-state strong,
.podcast-metrics-state span {
  display: block;
}

.dashboard-spotify-unavailable strong {
  color: var(--admin-text-soft);
}

.dashboard-spotify-unavailable span {
  text-align: right;
}

.podcast-metrics-state strong {
  color: var(--admin-warning);
}

.podcast-metrics-state span {
  margin-top: 4px;
}

.sidebar-status--problem .sidebar-status-icon {
  color: var(--admin-warning);
  background: rgba(255, 189, 102, 0.1);
}

.sidebar-status--problem .sidebar-status-icon::after {
  background: var(--admin-warning);
}

.sidebar-status--problem .sidebar-status-copy span {
  color: var(--admin-warning);
}

.sidebar-status--pending .sidebar-status-icon,
.sidebar-status--pending .sidebar-status-copy span {
  color: var(--admin-text-muted);
}

.sidebar-status--pending .sidebar-status-icon::after {
  background: var(--admin-text-muted);
}

/* Reusable content surfaces used by current and upcoming panel renderers. */
.glass-card,
.panel > article,
.panel > section,
.panel
  > div:not([class*="grid"]):not([class*="flex"]):not(
    .dashboard-overview
  ):not(.subpage-shell),
.panel details {
  border-color: var(--admin-border) !important;
  border-radius: var(--admin-radius-card) !important;
  background: linear-gradient(
    145deg,
    rgba(18, 40, 74, 0.78),
    rgba(9, 27, 53, 0.88)
  ) !important;
  box-shadow:
    var(--admin-shadow-soft),
    inset 0 1px rgba(255, 255, 255, 0.025);
}

article,
details,
.panel [class*="rounded-2xl"],
.panel [class*="rounded-3xl"] {
  border-color: var(--admin-border) !important;
}

.panel h1,
.panel h2,
.panel h3,
dialog h1,
dialog h2,
dialog h3 {
  color: var(--admin-text) !important;
  letter-spacing: -0.018em;
}

.panel a:not(.button-interactive) {
  color: var(--admin-accent-soft);
}

.status-card {
  border: 1px solid var(--admin-border);
  border-radius: 16px;
  padding: 16px;
  background: rgba(12, 30, 59, 0.72);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.025);
}

.status-card--ok {
  border-color: rgba(85, 216, 138, 0.34);
  background: linear-gradient(
    145deg,
    rgba(36, 112, 73, 0.19),
    rgba(12, 30, 59, 0.82)
  );
}

.status-card--problem {
  border-color: rgba(255, 159, 63, 0.42);
  background: linear-gradient(
    145deg,
    rgba(154, 78, 26, 0.2),
    rgba(12, 30, 59, 0.82)
  );
}

.status-card-label {
  color: var(--admin-text-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.status-card-state {
  margin-top: 5px;
  color: var(--admin-text);
  font-size: 18px;
  font-weight: 750;
}

.status-card-detail {
  margin-top: 4px;
  color: var(--admin-text-muted);
  font-size: 11px;
}

/* Forms, controls, buttons, and tables */
input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
  border-color: var(--admin-border) !important;
  border-radius: var(--admin-radius-control) !important;
  color: var(--admin-text) !important;
  background: rgba(5, 20, 43, 0.82) !important;
  box-shadow: inset 0 1px 1px rgba(0, 6, 20, 0.32);
}

input::placeholder,
textarea::placeholder {
  color: #7892b7 !important;
  opacity: 1;
}

select {
  color-scheme: dark;
}

input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--admin-accent);
}

label {
  color: var(--admin-text-soft) !important;
}

button[class*="border-slate-"],
a[class*="border-slate-"] {
  color: var(--admin-text-soft) !important;
  background: rgba(12, 30, 59, 0.74) !important;
}

button[class*="bg-brand-600"],
a[class*="bg-brand-600"] {
  border-color: rgba(255, 185, 107, 0.48) !important;
  color: #101a2b !important;
  box-shadow: 0 9px 24px rgba(216, 120, 31, 0.19);
}

button[class*="bg-brand-600"]:hover,
a[class*="bg-brand-600"]:hover {
  background: linear-gradient(135deg, #ffc680, #ffac57) !important;
}

button[class*="border-red-"] {
  color: #ffadb3 !important;
  background: rgba(117, 30, 43, 0.15) !important;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  color: var(--admin-text-soft);
}

thead {
  color: var(--admin-text-muted);
  background: rgba(6, 20, 42, 0.54);
}

th {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
}

th,
td {
  border-color: rgba(83, 116, 158, 0.28) !important;
}

tbody tr {
  transition: background-color 160ms ease;
}

tbody tr:hover {
  background: rgba(23, 54, 93, 0.36);
}

/* Premium dialogs and editor surfaces */
dialog {
  width: calc(100% - 32px) !important;
  max-height: calc(100dvh - 32px);
  overflow: visible;
  border: 1px solid rgba(99, 137, 184, 0.52) !important;
  border-radius: 20px !important;
  color: var(--admin-text);
  background: transparent !important;
  box-shadow: 0 30px 90px rgba(0, 4, 15, 0.72) !important;
}

dialog::backdrop {
  background: rgba(1, 6, 16, 0.78) !important;
  backdrop-filter: blur(7px);
}

dialog form {
  border-radius: 19px !important;
  color: var(--admin-text) !important;
  background:
    radial-gradient(
      circle at 100% 0%,
      rgba(255, 159, 63, 0.08),
      transparent 20rem
    ),
    linear-gradient(145deg, #102746, #091a34) !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.045);
}

dialog form > div:first-child h3,
dialog form > h3:first-child {
  font-size: 17px;
  font-weight: 750;
}

.plans-export-fields {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.plans-export-fields label {
  display: grid;
  gap: 7px;
  color: var(--admin-text-soft);
  font-size: 12px;
  font-weight: 700;
}

.plans-export-fields input:not([type="checkbox"]),
.plans-export-fields select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--admin-border);
  border-radius: 10px;
  padding: 0 12px;
  color: var(--admin-text);
  background: rgba(5, 20, 43, 0.82);
}

.plans-export-custom-range {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.plans-export-custom-range.hidden {
  display: none;
}

.plans-export-types {
  min-width: 0;
  margin: 0;
  border: 0;
  padding: 0;
}

.plans-export-types legend {
  margin-bottom: 8px;
  color: var(--admin-text-soft);
  font-size: 12px;
  font-weight: 700;
}

.plans-export-type-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.plans-export-type-grid label {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(83, 116, 158, 0.34);
  border-radius: 9px;
  padding: 9px 10px;
  color: var(--admin-text);
  background: rgba(6, 24, 47, 0.62);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.plans-export-type-grid input[type="checkbox"] {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  margin: 0;
  accent-color: var(--admin-accent);
}

.plans-export-error {
  margin: 12px 0 0;
  color: var(--admin-danger);
  font-size: 12px;
  font-weight: 650;
}

dialog .sticky {
  border-color: var(--admin-border) !important;
  background: rgba(9, 26, 52, 0.94) !important;
}

.ql-toolbar.ql-snow,
.ql-container.ql-snow {
  border-color: var(--admin-border) !important;
}

.ql-toolbar.ql-snow {
  border-radius: 12px 12px 0 0;
  background: rgba(18, 40, 74, 0.9);
}

.ql-container.ql-snow,
.ql-editor {
  color: var(--admin-text);
  background: rgba(5, 20, 43, 0.82);
}

.ql-container.ql-snow {
  border-radius: 0 0 12px 12px;
}

.ql-editor {
  min-height: 240px;
}

.ql-editor.ql-blank::before {
  color: var(--admin-text-muted);
}

.ql-snow .ql-stroke {
  stroke: var(--admin-text-soft);
}

.ql-snow .ql-fill {
  fill: var(--admin-text-soft);
}

.ql-snow .ql-picker,
.ql-snow .ql-picker-label {
  color: var(--admin-text-soft);
}

.ql-toolbar button,
.ql-toolbar button:hover,
.ql-toolbar button:active {
  box-shadow: none !important;
  transform: none !important;
}

#planModal .ql-container {
  min-height: 220px;
  height: auto;
}

#planModal .ql-editor {
  min-height: 220px;
  max-height: 360px;
  overflow-y: auto;
}

.note-dragging {
  opacity: 0.55;
}

.note-drag-over {
  border-color: var(--admin-accent) !important;
  background-color: rgba(255, 159, 63, 0.12) !important;
}

.plans-calendar-day--today {
  border-color: rgba(255, 185, 107, 0.74) !important;
  background: linear-gradient(
    180deg,
    rgba(255, 159, 63, 0.2),
    rgba(128, 65, 22, 0.28)
  ) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 185, 107, 0.4);
}

.plans-calendar-day--today .plans-calendar-day-number,
.plans-calendar-day--today .plans-calendar-day-count {
  color: #fff0df !important;
}

#libraryImagePreview {
  background: rgba(4, 14, 31, 0.72) !important;
}

#libraryUploadProgressBar {
  background: linear-gradient(
    90deg,
    var(--admin-accent-deep),
    var(--admin-accent-soft)
  ) !important;
}

#reloadBar {
  border-color: rgba(255, 159, 63, 0.5) !important;
  color: var(--admin-text);
  background: rgba(11, 29, 58, 0.96) !important;
  box-shadow: 0 -14px 38px rgba(0, 6, 20, 0.34);
}

#toastHost > * {
  border: 1px solid var(--admin-border) !important;
  color: var(--admin-text) !important;
  background: rgba(11, 29, 58, 0.96) !important;
  box-shadow: var(--admin-shadow-soft) !important;
  backdrop-filter: blur(18px);
}

/* Premium active subpages */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.panel > .subpage-shell {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.subpage-shell {
  display: grid;
  min-width: 0;
  gap: 22px;
}

.subpage-page-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 18px 0;
}

.subpage-page-head h1 {
  margin: 5px 0 0;
  color: var(--admin-text);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 780;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.subpage-page-head > div:first-child > p:last-child {
  max-width: 720px;
  margin: 9px 0 0;
  color: var(--admin-text-muted);
  font-size: 13px;
  line-height: 1.65;
}

.subpage-eyebrow,
.subpage-card-kicker {
  margin: 0;
  color: var(--admin-accent) !important;
  font-size: 9px !important;
  font-weight: 850 !important;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.subpage-card {
  min-width: 0;
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius-card);
  background:
    radial-gradient(
      circle at 100% 0%,
      rgba(255, 159, 63, 0.055),
      transparent 21rem
    ),
    linear-gradient(145deg, rgba(18, 40, 74, 0.8), rgba(9, 27, 53, 0.9));
  box-shadow:
    var(--admin-shadow-soft),
    inset 0 1px rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(18px);
}

.subpage-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px 17px;
  border-bottom: 1px solid rgba(83, 116, 158, 0.3);
}

.subpage-card-head--compact {
  padding: 18px;
}

.subpage-card-head h2 {
  margin: 4px 0 0;
  color: var(--admin-text);
  font-size: 17px;
  font-weight: 740;
}

.subpage-card-note,
.technical-note,
.permission-note {
  color: var(--admin-text-muted);
  font-size: 11px;
}

.subpage-toolbar,
.table-action-group,
.detail-action-bar,
.config-action-bar,
.plan-card-actions,
.library-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.admin-button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 8px 14px;
  color: var(--admin-text-soft);
  font-size: 12px;
  font-weight: 720;
  line-height: 1;
  text-decoration: none;
}

.admin-button--primary {
  border-color: rgba(255, 185, 107, 0.5);
  color: #101a2b;
  background: linear-gradient(
    135deg,
    var(--admin-accent),
    var(--admin-accent-soft)
  );
  box-shadow: 0 9px 24px rgba(216, 120, 31, 0.2);
}

.admin-button--primary:hover:not(:disabled) {
  color: #081326;
  background: linear-gradient(135deg, #ffad5a, #ffc987);
}

.admin-button--secondary,
.admin-button--icon {
  border-color: var(--admin-border);
  color: var(--admin-text-soft);
  background: rgba(12, 30, 59, 0.76);
}

.admin-button--danger {
  border-color: rgba(255, 125, 134, 0.4);
  color: #ffadb3;
  background: rgba(117, 30, 43, 0.16);
}

.admin-button--small {
  min-height: 31px;
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 10px;
}

.admin-button--icon {
  width: 38px;
  flex: 0 0 38px;
  padding: 0;
  font-size: 16px;
}

.admin-button.is-disabled {
  opacity: 0.48;
}

.ui-state {
  display: flex;
  min-height: 96px;
  flex-direction: column;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px dashed rgba(83, 116, 158, 0.48);
  border-radius: 15px;
  padding: 18px;
  color: var(--admin-text-muted);
  background: rgba(6, 20, 42, 0.45);
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}

.ui-state strong {
  color: var(--admin-text-soft);
  font-size: 12px;
}

.ui-state--loading::before {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(154, 176, 209, 0.28);
  border-top-color: var(--admin-accent);
  border-radius: 50%;
  content: "";
  animation: admin-state-spin 800ms linear infinite;
}

.ui-state--error {
  border-color: rgba(255, 125, 134, 0.4);
  color: #ffadb3;
  background: rgba(117, 30, 43, 0.12);
}

.ui-state--restricted {
  min-height: 220px;
  border-style: solid;
  border-color: rgba(255, 189, 102, 0.36);
  background: linear-gradient(
    145deg,
    rgba(113, 64, 25, 0.18),
    rgba(9, 27, 53, 0.9)
  );
}

@keyframes admin-state-spin {
  to {
    transform: rotate(360deg);
  }
}

.status-badge,
.plan-type-badge {
  display: inline-flex;
  width: max-content;
  align-items: center;
  border: 1px solid var(--admin-border);
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--admin-text-muted);
  background: rgba(18, 40, 74, 0.68);
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.045em;
  white-space: nowrap;
  text-transform: uppercase;
}

.status-badge--success {
  border-color: rgba(85, 216, 138, 0.36);
  color: #76e6a3;
  background: rgba(36, 112, 73, 0.16);
}

.status-badge--warning,
.status-badge--accent {
  border-color: rgba(255, 185, 107, 0.42);
  color: var(--admin-accent-soft);
  background: rgba(154, 78, 26, 0.16);
}

.status-badge--danger {
  border-color: rgba(255, 125, 134, 0.38);
  color: #ffadb3;
  background: rgba(117, 30, 43, 0.16);
}

.status-badge--info {
  border-color: rgba(119, 183, 255, 0.38);
  color: #9bcaff;
  background: rgba(33, 89, 150, 0.16);
}

.premium-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  padding: 0 6px 8px;
}

.premium-table {
  min-width: 720px;
}

.premium-table th {
  padding: 13px 16px;
  border-bottom: 1px solid rgba(83, 116, 158, 0.32);
}

.premium-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(83, 116, 158, 0.22);
  color: var(--admin-text-soft);
  font-size: 11px;
  vertical-align: middle;
}

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

.premium-table td .ui-state {
  min-height: 124px;
}

.release-title {
  display: block;
  max-width: 480px;
  color: var(--admin-text);
  font-size: 12px;
  font-weight: 720;
}

.release-date,
.private-channel-last-post {
  color: var(--admin-text-muted) !important;
  white-space: nowrap;
}

.release-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.release-links a,
.plan-platform-links a {
  border: 1px solid rgba(255, 185, 107, 0.28);
  border-radius: 999px;
  padding: 4px 8px;
  color: var(--admin-accent-soft) !important;
  background: rgba(216, 120, 31, 0.09);
  font-size: 9px;
  font-weight: 750;
  text-decoration: none;
}

.table-actions {
  text-align: right;
}

.table-action-group {
  justify-content: flex-end;
  flex-wrap: nowrap;
}

.private-channel-create {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 1fr auto auto;
  gap: 10px;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(83, 116, 158, 0.24);
}

.private-channel-create input,
.private-channel-table input {
  min-width: 130px;
  padding: 9px 11px;
  font-size: 11px;
}

.permission-note {
  margin: 0;
  padding: 10px 22px;
  color: var(--admin-warning);
  background: rgba(154, 78, 26, 0.09);
}

.toggle-field {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  padding: 8px 12px;
  color: var(--admin-text-soft) !important;
  background: rgba(12, 30, 59, 0.72);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.toggle-field--compact {
  min-height: 32px;
  border: 0;
  padding: 4px 0;
  background: transparent;
}

/* Library */
.library-workspace {
  display: grid;
  min-height: 68vh;
  grid-template-columns: 260px minmax(0, 1fr);
  overflow: hidden;
}

.library-folder-rail {
  min-width: 0;
  border-right: 1px solid rgba(83, 116, 158, 0.34);
  background: rgba(5, 20, 43, 0.32);
}

.library-tree,
.selection-list {
  max-height: 64vh;
  overflow: auto;
  padding: 10px;
}

.library-tree-branch {
  min-width: 0;
}

.library-tree-row {
  display: flex;
  width: 100%;
  min-height: 35px;
  align-items: center;
  gap: 7px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 7px 8px;
  color: var(--admin-text-muted);
  background: transparent;
  font-size: 10px;
  text-align: left;
}

.library-tree-row:hover,
.library-tree-row.is-active {
  border-color: rgba(255, 185, 107, 0.28) !important;
  color: var(--admin-text);
  background: linear-gradient(
    90deg,
    rgba(216, 120, 31, 0.18),
    rgba(18, 40, 74, 0.72)
  );
}

.library-tree-caret {
  width: 10px;
  flex: 0 0 10px;
  color: var(--admin-text-muted);
}

.library-tree-icon {
  color: var(--admin-accent-soft);
  font-size: 9px;
}

.library-tree-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.library-asset-stage {
  min-width: 0;
}

.library-path-bar {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(10, 29, 56, 0.9);
  backdrop-filter: blur(14px);
}

.path-chip {
  max-width: min(58vw, 520px);
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--admin-border);
  border-radius: 10px;
  padding: 7px 10px;
  color: var(--admin-text-muted);
  background: rgba(5, 20, 43, 0.72);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.library-asset-grid {
  display: grid;
  max-height: 64vh;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  overflow: auto;
  padding: 16px;
}

.library-asset-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 10px;
  align-self: start;
  border: 1px solid rgba(83, 116, 158, 0.38) !important;
  border-radius: 15px;
  padding: 12px;
  background: linear-gradient(
    145deg,
    rgba(18, 40, 74, 0.64),
    rgba(7, 23, 47, 0.82)
  ) !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.025);
  transition:
    transform 140ms ease,
    border-color 160ms ease;
}

.library-asset-card:hover {
  border-color: rgba(255, 185, 107, 0.4) !important;
  transform: translateY(-1px);
}

.library-asset-card--parent {
  min-height: 110px;
  justify-content: center;
  border-style: dashed !important;
}

.library-parent-link,
.library-folder-open {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 9px;
  border: 0;
  padding: 0;
  color: var(--admin-text-soft);
  background: transparent;
  font-size: 11px;
  font-weight: 720;
  text-align: left;
}

.library-folder-glyph {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border-radius: 11px;
  color: var(--admin-accent-soft);
  background: rgba(216, 120, 31, 0.12);
}

.library-asset-preview {
  display: block;
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(83, 116, 158, 0.38);
  border-radius: 12px;
  padding: 0;
  background: rgba(4, 14, 31, 0.72);
  aspect-ratio: 16 / 9;
}

.library-asset-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.library-file-placeholder {
  display: grid;
  min-height: 126px;
  place-items: center;
  align-content: center;
  gap: 7px;
  border: 1px solid rgba(83, 116, 158, 0.34);
  border-radius: 12px;
  color: var(--admin-text-muted);
  background: rgba(5, 20, 43, 0.54);
}

.library-file-placeholder span {
  color: var(--admin-accent-soft);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.library-file-placeholder small {
  font-size: 9px;
  text-transform: uppercase;
}

.library-asset-copy {
  min-width: 0;
}

.library-asset-title,
.library-asset-meta {
  overflow: hidden;
  margin: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.library-asset-title {
  color: var(--admin-text);
  font-size: 11px;
  font-weight: 720;
}

.library-asset-meta {
  margin-top: 4px;
  color: var(--admin-text-muted);
  font-size: 9px;
}

.library-card-actions {
  margin-top: auto;
}

/* Notes and credentials */
.split-workspace {
  display: grid;
  min-height: 68vh;
  grid-template-columns: minmax(250px, 310px) minmax(0, 1fr);
  overflow: hidden;
}

.split-workspace-rail {
  min-width: 0;
  border-right: 1px solid rgba(83, 116, 158, 0.34);
  background: rgba(5, 20, 43, 0.3);
}

.selection-list {
  display: grid;
  align-content: start;
  gap: 8px;
}

.selection-list-item {
  display: flex;
  width: 100%;
  min-width: 0;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(83, 116, 158, 0.34);
  border-radius: 13px;
  padding: 11px 12px;
  color: var(--admin-text-soft);
  background: rgba(12, 30, 59, 0.54);
  text-align: left;
}

.selection-list-item:hover,
.selection-list-item.is-active {
  border-color: rgba(255, 185, 107, 0.42) !important;
  background: linear-gradient(
    100deg,
    rgba(216, 120, 31, 0.17),
    rgba(18, 40, 74, 0.82)
  );
}

.selection-list-item.is-active {
  box-shadow: inset 3px 0 var(--admin-accent);
}

.selection-drag-handle,
.selection-list-arrow {
  flex: 0 0 auto;
  color: var(--admin-text-muted);
  font-size: 12px;
}

.selection-drag-handle {
  cursor: grab;
}

.selection-list-arrow {
  margin-left: auto;
  color: var(--admin-accent-soft);
  font-size: 18px;
}

.selection-list-copy {
  min-width: 0;
  flex: 1;
}

.selection-list-title,
.selection-list-meta {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.selection-list-title {
  color: var(--admin-text);
  font-size: 11px;
  font-weight: 720;
}

.selection-list-meta {
  margin-top: 5px;
  color: var(--admin-text-muted);
  font-size: 9px;
}

.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 5px;
  border-radius: 50%;
  background: var(--admin-text-muted);
}

.status-dot--success {
  background: var(--admin-success);
}
.status-dot--muted {
  background: #587294;
}

.credential-list-icon {
  display: grid;
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
  place-items: center;
  border-radius: 10px;
  color: var(--admin-accent-soft);
  background: rgba(216, 120, 31, 0.12);
}

.split-workspace-detail {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 24px;
}

.detail-heading-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
}

.detail-label {
  margin: 0;
  color: var(--admin-text-muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.split-workspace-detail h2 {
  margin: 6px 0 0;
  font-size: 20px;
}

.detail-meta,
.detail-owner {
  color: var(--admin-text-muted);
  font-size: 10px;
}

.detail-meta {
  margin: 7px 0 0;
}

.detail-owner {
  margin: 14px 0 0;
  padding-bottom: 13px;
  border-bottom: 1px solid rgba(83, 116, 158, 0.26);
}

.rich-preview {
  min-height: 40vh;
  margin-top: 16px;
  overflow: auto;
  border: 1px solid rgba(83, 116, 158, 0.34);
  border-radius: 15px;
  padding: 18px;
  color: var(--admin-text-soft);
  background: rgba(5, 20, 43, 0.58);
  font-size: 12px;
  line-height: 1.7;
}

.rich-preview--compact {
  min-height: 88px;
  margin-top: 7px;
}

.detail-action-bar {
  justify-content: flex-end;
  margin-top: 16px;
  padding-top: 15px;
  border-top: 1px solid rgba(83, 116, 158, 0.24);
}

.credential-url-block,
.credential-note-block {
  margin-top: 20px;
}

.credential-url-block a {
  display: inline-block;
  max-width: 100%;
  margin-top: 7px;
  overflow-wrap: anywhere;
  color: var(--admin-accent-soft) !important;
  font-size: 11px;
}

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

.secret-control {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 7px;
}

.secret-mask {
  min-width: 0;
  flex: 1;
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--admin-text-soft);
  background: rgba(5, 20, 43, 0.78);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  user-select: none;
  pointer-events: none;
}

.secret-safety-note {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  border: 1px solid rgba(255, 189, 102, 0.32);
  border-radius: 13px;
  padding: 11px 13px;
  color: #ffd29d;
  background: rgba(154, 78, 26, 0.11);
  font-size: 9px;
  line-height: 1.55;
}

.secret-safety-note strong {
  flex: 0 0 auto;
  color: var(--admin-accent-soft);
}

/* Recording plans */
.plans-calendar-card {
  overflow: hidden;
}

.plans-calendar-head {
  align-items: center;
}

.month-switcher {
  display: grid;
  grid-template-columns: 38px minmax(150px, auto) 38px;
  align-items: center;
  gap: 8px;
}

.month-label {
  color: var(--admin-text-soft);
  font-size: 12px;
  font-weight: 720;
  text-align: center;
  text-transform: capitalize;
}

.plans-calendar-scroll {
  max-width: 100%;
  overflow-x: auto;
  padding: 16px;
}

.plans-calendar-grid {
  display: grid;
  min-width: 760px;
  grid-template-columns: repeat(7, minmax(96px, 1fr));
  gap: 7px;
}

.plans-calendar-grid > .ui-state {
  min-height: 300px;
}

.plans-calendar-weekday {
  padding: 7px 8px;
  color: var(--admin-text-muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.plans-calendar-blank,
.plans-calendar-day {
  min-height: 112px;
  border-radius: 12px;
}

.plans-calendar-day {
  overflow: hidden;
  border: 1px solid rgba(83, 116, 158, 0.32);
  padding: 8px;
  color: var(--admin-text-soft);
  background: rgba(7, 23, 47, 0.62);
  text-align: left;
}

.plans-calendar-day:hover {
  border-color: rgba(255, 185, 107, 0.42) !important;
  background: rgba(18, 40, 74, 0.78);
}

.plans-calendar-day-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
}

.plans-calendar-day-number {
  color: var(--admin-text-soft);
  font-size: 11px;
  font-weight: 800;
}

.plans-calendar-day-count {
  color: var(--admin-text-muted);
  font-size: 7px;
}

.plans-calendar-events {
  display: grid;
  gap: 4px;
  margin-top: 7px;
}

.calendar-event {
  overflow: hidden;
  border-left: 2px solid var(--admin-border-strong);
  border-radius: 4px;
  padding: 4px 5px;
  color: var(--admin-text-soft);
  background: rgba(18, 40, 74, 0.72);
  font-size: 9px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-event--recording {
  border-left-color: var(--admin-accent);
}
.calendar-event--planning {
  border-left-color: #a99bff;
  background: rgba(79, 65, 148, 0.22);
}
.calendar-event--gaming {
  border-left-color: #64d6e8;
  background: rgba(30, 115, 133, 0.2);
}
.calendar-event--vacation {
  border-left-color: var(--admin-success);
  background: rgba(36, 112, 73, 0.19);
}
.calendar-event--start {
  border-radius: 6px 0 0 6px;
}
.calendar-event--middle {
  border-radius: 0;
}
.calendar-event--end {
  border-radius: 0 6px 6px 0;
}
.calendar-event-more {
  color: var(--admin-text-muted);
  font-size: 7px;
  text-align: right;
}

.plans-board {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(360px, 1.2fr);
  gap: 18px;
}

.plans-board--single {
  grid-template-columns: minmax(0, 1fr);
}

.plans-list-card {
  overflow: hidden;
}

.plans-card-list {
  display: grid;
  max-height: 64vh;
  align-content: start;
  gap: 11px;
  overflow: auto;
  padding: 14px;
}

.plan-card {
  border: 1px solid rgba(83, 116, 158, 0.34) !important;
  border-radius: 15px;
  padding: 14px;
  background: linear-gradient(
    145deg,
    rgba(18, 40, 74, 0.64),
    rgba(7, 23, 47, 0.82)
  ) !important;
}

.plan-card:hover {
  border-color: rgba(255, 185, 107, 0.38) !important;
}

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

.plan-card-heading {
  min-width: 0;
}

.plan-card h3 {
  margin: 8px 0 0;
  color: var(--admin-text);
  font-size: 13px;
  line-height: 1.35;
}

.plan-card-date {
  margin: 4px 0 0;
  color: var(--admin-text-muted);
  font-size: 9px;
}

.plan-type-badge--recording {
  border-color: rgba(255, 185, 107, 0.38);
  color: var(--admin-accent-soft);
}

.plan-type-badge--planning {
  border-color: rgba(169, 155, 255, 0.38);
  color: #c1b7ff;
}

.plan-card-meta {
  display: grid;
  gap: 7px;
  margin-top: 13px;
}

.plan-card-meta p {
  margin: 0;
  color: var(--admin-text-soft);
  font-size: 10px;
  line-height: 1.5;
}

.plan-card-meta p span {
  display: block;
  margin-bottom: 2px;
  color: var(--admin-text-muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.plan-release-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 13px;
  padding-top: 12px;
  border-top: 1px solid rgba(83, 116, 158, 0.24);
}

.plan-platform-links {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  color: var(--admin-text-muted);
  font-size: 9px;
}

.plan-release-strip .status-badge {
  max-width: 100%;
  line-height: 1.3;
  white-space: normal;
}

/* Configuration */
.settings-subnav {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  gap: 6px;
  border: 1px solid rgba(83, 116, 158, 0.38);
  border-radius: 14px;
  padding: 5px;
  background: rgba(5, 20, 43, 0.58);
}

.settings-subnav button {
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0 15px;
  color: var(--admin-text-muted);
  background: transparent;
  font-size: 10px;
  font-weight: 780;
}

.settings-subnav button.is-active {
  border-color: rgba(255, 185, 107, 0.42);
  color: #111a2b;
  background: linear-gradient(
    135deg,
    var(--admin-accent-soft),
    var(--admin-accent)
  );
  box-shadow: 0 9px 22px rgba(216, 120, 31, 0.18);
}

.settings-section {
  min-width: 0;
}

.settings-system-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(420px, 1.15fr);
  align-items: start;
  gap: 18px;
}

.settings-status-body {
  display: grid;
  gap: 12px;
  padding: 18px 22px 22px;
}

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

.settings-runtime-grid {
  grid-template-columns: minmax(0, 1fr);
}

.settings-operation-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 18px 22px 0;
}

.settings-deploy-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin: 18px 22px;
  border: 1px solid rgba(83, 116, 158, 0.34);
  border-radius: 14px;
  background: rgba(83, 116, 158, 0.25);
}

.settings-deploy-meta > div {
  min-width: 0;
  padding: 12px;
  background: rgba(5, 20, 43, 0.78);
}

.settings-deploy-meta dt {
  color: var(--admin-text-muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.settings-deploy-meta dd {
  overflow-wrap: anywhere;
  margin: 5px 0 0;
  color: var(--admin-text-soft);
  font-size: 10px;
  line-height: 1.45;
}

.settings-operation-error {
  margin: 14px 22px 0;
  border: 1px solid rgba(255, 189, 102, 0.38);
  border-radius: 11px;
  padding: 10px 12px;
  color: var(--admin-warning);
  background: rgba(255, 189, 102, 0.07);
  font-size: 9px;
}

.settings-terminal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 22px;
  color: var(--admin-text-muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.settings-terminal-head span:last-child {
  color: var(--admin-success);
}

.settings-terminal-log {
  width: calc(100% - 44px);
  min-height: 250px;
  max-height: 440px;
  overflow: auto;
  margin: 9px 22px 22px;
  border: 1px solid rgba(83, 116, 158, 0.44);
  border-radius: 14px;
  padding: 15px;
  color: #cfe1ff;
  background: #030b18;
  box-shadow: inset 0 1px 18px rgba(0, 0, 0, 0.38);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 9px;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.settings-restricted-card {
  min-height: 180px;
  padding: 22px;
}

.config-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  gap: 18px;
  align-items: start;
}

.config-quick-card,
.config-json-card {
  overflow: hidden;
}

.config-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
  padding: 18px 22px;
}

.config-group {
  display: grid;
  min-width: 0;
  gap: 11px;
  margin: 0;
  border: 1px solid rgba(83, 116, 158, 0.34);
  border-radius: 15px;
  padding: 14px;
  background: rgba(5, 20, 43, 0.46);
}

.config-group legend {
  padding: 0 6px;
  color: var(--admin-accent-soft);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.config-group label:not(.toggle-field) {
  display: grid;
  gap: 6px;
  color: var(--admin-text-muted) !important;
  font-size: 9px;
  font-weight: 720;
}

.config-group input:not([type="checkbox"]) {
  width: 100%;
  padding: 10px 11px;
  font-size: 11px;
}

.metrics-settings-help {
  margin: -2px 0 0;
  color: var(--admin-text-muted);
  font-size: 10px;
  line-height: 1.55;
}

.metrics-settings-status {
  border: 1px solid rgba(83, 116, 158, 0.36);
  border-radius: 12px;
  padding: 10px 11px;
  color: var(--admin-text-muted);
  background: rgba(4, 17, 36, 0.6);
  font-size: 10px;
  line-height: 1.5;
}

.metrics-settings-status--success {
  border-color: rgba(85, 216, 138, 0.36);
  color: #9aebba;
  background: rgba(36, 112, 73, 0.14);
}

.metrics-settings-status--warning {
  border-color: rgba(255, 185, 107, 0.42);
  color: var(--admin-accent-soft);
  background: rgba(154, 78, 26, 0.14);
}

.metrics-settings-status--error {
  border-color: rgba(255, 125, 134, 0.4);
  color: #ffadb3;
  background: rgba(117, 30, 43, 0.14);
}

.metrics-settings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.metrics-settings-actions .admin-button {
  flex: 1 1 150px;
}

.config-action-bar {
  justify-content: flex-end;
  padding: 0 22px 20px;
}

.technical-note {
  margin: 0;
  padding: 14px 22px;
  border-bottom: 1px solid rgba(83, 116, 158, 0.24);
  line-height: 1.6;
}

.config-json-editor {
  width: calc(100% - 36px);
  min-height: 510px;
  margin: 18px;
  resize: vertical;
  border-color: rgba(83, 116, 158, 0.45) !important;
  border-radius: 14px !important;
  padding: 16px;
  color: #d9e7ff !important;
  background: #05142b !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  line-height: 1.65;
  tab-size: 2;
}

@media (max-width: 1280px) {
  .library-asset-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .config-layout,
  .settings-system-layout,
  .plans-board {
    grid-template-columns: minmax(0, 1fr);
  }

  .plans-card-list {
    max-height: none;
  }
}

@media (max-width: 900px) {
  .subpage-page-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .library-workspace,
  .split-workspace {
    grid-template-columns: minmax(0, 1fr);
  }

  .library-folder-rail,
  .split-workspace-rail {
    border-right: 0;
    border-bottom: 1px solid rgba(83, 116, 158, 0.34);
  }

  .library-tree,
  .selection-list {
    max-height: 260px;
  }

  .private-channel-create {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .private-channel-create .admin-button {
    width: 100%;
  }

  .settings-status-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 620px) {
  .subpage-shell {
    gap: 16px;
  }

  .subpage-card-head,
  .plans-calendar-head {
    align-items: flex-start;
    flex-direction: column;
    padding: 17px;
  }

  .subpage-toolbar,
  .subpage-page-head > .admin-button {
    width: 100%;
  }

  .subpage-toolbar .admin-button,
  .subpage-page-head > .admin-button {
    flex: 1;
  }

  .library-asset-grid,
  .config-groups,
  .credential-secret-grid,
  .private-channel-create,
  .detail-heading-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .split-workspace-detail {
    padding: 18px;
  }

  .month-switcher {
    width: 100%;
    grid-template-columns: 38px minmax(0, 1fr) 38px;
  }

  .plans-export-custom-range,
  .plans-export-type-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .plan-card-head,
  .plan-release-strip,
  .secret-safety-note {
    align-items: flex-start;
    flex-direction: column;
  }

  .plan-card-actions,
  .plan-card-actions .admin-button {
    width: 100%;
  }

  .path-chip {
    max-width: 100%;
  }

  .settings-subnav {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr 1fr;
  }

  .settings-subnav button {
    padding: 0 10px;
  }

  .settings-operation-controls,
  .settings-operation-controls .admin-button {
    width: 100%;
  }

  .settings-deploy-meta {
    grid-template-columns: minmax(0, 1fr);
  }

  .settings-deploy-meta,
  .settings-terminal-head,
  .settings-operation-error {
    margin-right: 14px;
    margin-left: 14px;
  }

  .settings-terminal-log {
    width: calc(100% - 28px);
    margin: 9px 14px 14px;
  }

  .config-json-editor {
    width: calc(100% - 24px);
    min-height: 420px;
    margin: 12px;
  }

  .media-release-table,
  .media-release-table tbody,
  .media-release-table tr,
  .media-release-table td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .media-release-table thead {
    display: none;
  }

  .media-release-table tbody {
    padding: 10px;
  }

  .media-release-table .release-row {
    display: grid;
    gap: 10px;
    margin-bottom: 10px;
    border: 1px solid rgba(83, 116, 158, 0.36);
    border-radius: 14px;
    padding: 13px;
    background: rgba(7, 23, 47, 0.68);
  }

  .media-release-table .release-row td {
    border: 0 !important;
    padding: 0;
  }

  .media-release-table .release-row td::before {
    display: block;
    margin-bottom: 4px;
    color: var(--admin-text-muted);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .media-release-table .release-row td:nth-child(1)::before {
    content: "Zeit";
  }
  .media-release-table .release-row td:nth-child(2)::before {
    content: "Titel";
  }
  .media-release-table .release-row td:nth-child(3)::before {
    content: "Plattformen";
  }
  .media-release-table .release-row td:nth-child(4)::before {
    content: "Status";
  }
  .media-release-table .table-actions {
    text-align: left;
  }
}

/* Final alignment with the approved KLANGWEIT dashboard mockup. */
.dashboard-eyebrow {
  font-size: 11px !important;
}

.dashboard-refresh-action,
.dashboard-primary-action,
.dashboard-secondary-action {
  min-height: 44px;
  padding: 0 18px;
  font-size: 13px;
}

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

.dashboard-main-column,
.dashboard-right-rail {
  gap: 18px;
}

.dashboard-card {
  border-radius: 20px;
  padding: 22px;
}

.dashboard-card-head {
  margin-bottom: 18px;
}

.dashboard-card-head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.dashboard-card-head > button,
.dashboard-card-actions > button {
  font-size: 12px;
}

.dashboard-hero {
  min-height: 360px;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 34%);
  border-radius: 22px;
}

.dashboard-hero-content {
  padding: 30px;
}

.dashboard-status-badge {
  min-height: 32px;
  padding: 0 12px;
  font-size: 11px;
}

.dashboard-hero-episode {
  margin-top: 22px;
  font-size: clamp(27px, 3vw, 36px);
}

.dashboard-hero h2 {
  margin-top: 8px;
  font-size: clamp(31px, 3.25vw, 42px);
}

.dashboard-hero-lead {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.6;
}

.dashboard-hero-meta {
  margin-top: 28px;
}

.dashboard-hero-meta > div {
  padding: 0 16px;
}

.dashboard-hero-meta dt {
  font-size: 11px;
}

.dashboard-hero-meta dd {
  margin-top: 7px;
  font-size: 13px;
}

.dashboard-platform-badge {
  min-height: 32px;
  padding: 0 13px;
  font-size: 11px;
}

.dashboard-hero-actions {
  gap: 12px;
  margin-top: 24px;
}

.dashboard-hero-visual svg,
.dashboard-hero-visual img {
  width: min(86%, 270px);
}

.dashboard-episode-table th,
.dashboard-episode-table td {
  padding: 15px 10px;
  font-size: 13px;
}

.dashboard-episode-table th {
  padding-top: 4px;
  font-size: 11px;
}

.dashboard-episode-open {
  font-size: 13px;
}

.dashboard-list,
.dashboard-note-grid {
  gap: 8px;
}

.dashboard-list-row,
.dashboard-note {
  gap: 13px;
  border-radius: 14px;
  padding: 12px;
}

.dashboard-date-tile,
.dashboard-note-icon {
  width: 44px;
  height: 44px;
  flex-basis: 44px;
  border-radius: 12px;
}

.dashboard-date-tile strong {
  font-size: 15px;
}

.dashboard-date-tile small {
  font-size: 9px;
}

.dashboard-list-copy strong,
.dashboard-note strong {
  font-size: 13px;
}

.dashboard-list-copy small,
.dashboard-note small {
  font-size: 11px;
}

.dashboard-note-copy p {
  font-size: 12px;
  line-height: 1.6;
}

.dashboard-note-action {
  padding: 8px 11px;
  font-size: 11px;
}

.dashboard-next-days-card .dashboard-list {
  gap: 3px;
}

.dashboard-next-days-card .dashboard-list-row {
  min-height: 48px;
  gap: 10px;
  border-width: 0 0 1px;
  border-radius: 0;
  padding: 6px 2px;
  background: transparent;
}

.dashboard-next-days-card .dashboard-list-row:last-child {
  border-bottom-color: transparent;
}

.dashboard-next-days-card .dashboard-date-tile {
  width: 36px;
  height: 36px;
  flex-basis: 36px;
  border: 0;
  background: transparent;
}

.dashboard-next-days-card .dashboard-date-tile strong {
  font-size: 13px;
}

.dashboard-next-days-card .dashboard-list-copy strong {
  font-size: 12px;
}

.dashboard-next-days-card .dashboard-list-copy small {
  margin-top: 3px;
  font-size: 10px;
}

.dashboard-empty {
  padding: 18px;
  font-size: 12px;
}

.dashboard-rail-card {
  padding: 20px;
}

.podcast-metrics-source small {
  font-size: 10px;
}

.dashboard-podcast-metric {
  padding: 16px;
}

.dashboard-podcast-metric small {
  font-size: 10px;
}

.dashboard-podcast-metric strong {
  margin-top: 9px;
  font-size: 25px;
}

.dashboard-podcast-metric span {
  font-size: 10px;
}

.dashboard-spotify-unavailable,
.podcast-metrics-state {
  padding: 13px 14px;
  font-size: 11px;
}

@media (min-width: 1024px) {
  .admin-shell {
    display: grid;
    max-width: 1920px;
    min-height: 100vh;
    grid-template-columns: var(--admin-sidebar-width) minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    column-gap: 8px;
    margin: 0 auto;
    padding: 14px 20px 18px 14px;
  }

  .admin-topbar {
    position: sticky;
    top: 0;
    grid-column: 2;
    grid-row: 1;
    border: 0;
    background: rgba(4, 14, 31, 0.72);
    box-shadow: none;
  }

  .admin-topbar-inner {
    max-width: none;
    min-height: 72px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px;
    padding: 10px 0 12px;
  }

  .admin-topbar-inner > div:first-child {
    display: none;
  }

  .admin-search-shell {
    width: min(100%, 640px);
    justify-self: start;
  }

  .admin-search input {
    height: 48px;
    font-size: 14px;
  }

  .admin-layout {
    display: contents;
  }

  .admin-sidebar {
    display: flex !important;
    position: sticky;
    top: 14px;
    grid-column: 1;
    grid-row: 1 / span 2;
    min-height: calc(100vh - 32px);
    max-height: calc(100vh - 32px);
    padding: 20px;
  }

  .sidebar-brand-copy strong {
    font-size: 14px;
  }

  .sidebar-access-badge {
    min-height: 42px;
    font-size: 11px;
  }

  .desktop-tab-nav button {
    min-height: 48px;
    padding-right: 14px !important;
    padding-left: 14px !important;
    font-size: 13px;
  }

  .sidebar-status-copy strong {
    font-size: 12px;
  }

  .sidebar-status-copy span {
    font-size: 10px;
  }

  .panel-stage {
    grid-column: 2;
    grid-row: 2;
    min-height: calc(100vh - 104px);
    padding-bottom: 24px;
  }
}

@media (max-width: 1180px) {
  .dashboard-content-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .dashboard-right-rail {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
  }
}

@media (max-width: 1180px) {
  .admin-topbar-inner {
    grid-template-columns: minmax(260px, 1fr) auto;
  }

  .topbar-context {
    display: none;
  }

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

  .profile-copy {
    max-width: 118px;
  }

  .dashboard-right-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-quick-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1023.98px) {
  .admin-topbar-inner {
    min-height: 68px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    padding: 10px 16px;
  }

  .mobile-menu-button {
    display: inline-grid;
  }

  .admin-search-shell {
    width: 100%;
    justify-self: stretch;
  }

  .admin-search-hint {
    display: none;
  }

  .admin-search input {
    padding-right: 14px;
  }

  .mobile-tabs-wrap {
    display: block;
  }

  .admin-layout {
    display: block;
    padding: 16px;
  }

  .admin-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    top: 0;
    width: min(86vw, 310px);
    min-height: 100dvh;
    max-height: 100dvh;
    border-width: 0 1px 0 0;
    border-radius: 0 22px 22px 0;
    padding: 20px;
    box-shadow: 24px 0 70px rgba(0, 4, 15, 0.54);
  }

  .sidebar-close-button {
    display: inline-grid;
  }

  .desktop-tab-nav {
    flex: 1;
  }

  .panel-stage {
    min-height: calc(100vh - 118px);
  }

  .dashboard-right-rail {
    grid-template-columns: 1fr;
  }

  .dashboard-hero-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 700px) {
  .auth-card {
    padding: 30px 24px;
  }

  .admin-search-shell {
    display: block;
    min-width: 0;
  }

  .admin-search input {
    height: 40px;
    padding-left: 38px;
    font-size: 13px;
  }

  .admin-search svg {
    left: 12px;
    width: 16px;
    height: 16px;
  }

  .admin-search-results {
    position: fixed;
    top: 58px;
    right: 8px;
    left: 8px;
    max-height: min(62dvh, 460px);
  }

  .admin-topbar-inner {
    grid-template-columns: auto minmax(44px, 1fr) auto;
    gap: 8px;
    padding: 8px;
  }

  .topbar-context {
    display: none;
  }

  .topbar-eyebrow {
    display: none;
  }

  .topbar-title {
    margin: 0;
    font-size: 15px;
  }

  .notification-center,
  .profile-role,
  #themeToggleBtn {
    display: none;
  }

  .admin-profile {
    border: 0;
    padding: 0;
    background: transparent;
  }

  .profile-copy {
    display: none;
  }

  .profile-avatar {
    display: none;
  }

  .admin-layout {
    padding: 12px;
  }

  .dashboard-hero {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .dashboard-hero-content {
    padding: 22px;
  }

  .dashboard-hero-visual {
    display: none;
  }

  .dashboard-hero-meta {
    grid-template-columns: 1fr 1fr;
    row-gap: 16px;
  }

  .dashboard-hero-meta > div:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }

  .dashboard-card-head,
  .dashboard-card-actions,
  .dashboard-note,
  .dashboard-spotify-unavailable {
    align-items: stretch;
    flex-direction: column;
  }

  .dashboard-note-action {
    width: 100%;
  }

  .dashboard-episode-table {
    min-width: 0;
  }

  .dashboard-episode-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .dashboard-episode-table tbody {
    display: grid;
    gap: 12px;
  }

  .dashboard-episode-table tr {
    display: grid;
    overflow: hidden;
    border: 1px solid rgba(83, 116, 158, 0.3);
    border-radius: 14px;
    padding: 5px 13px;
    background: rgba(5, 20, 43, 0.46);
  }

  .dashboard-episode-table td {
    display: grid;
    grid-template-columns: minmax(96px, 0.42fr) minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(83, 116, 158, 0.22);
    padding: 10px 0;
  }

  .dashboard-episode-table td:last-child {
    border-bottom: 0;
  }

  .dashboard-episode-table td::before {
    color: var(--admin-text-muted);
    content: attr(data-label);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .dashboard-episode-table td[colspan] {
    display: block;
    border-bottom: 0;
  }

  .dashboard-episode-table td[colspan]::before {
    display: none;
  }

  .dashboard-podcast-metrics-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .dashboard-podcast-metric,
  .dashboard-podcast-metric:nth-child(2),
  .dashboard-podcast-metric:nth-child(3) {
    grid-column: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(83, 116, 158, 0.24);
  }

  .dashboard-podcast-metric:last-child {
    border-bottom: 0;
  }

  dialog {
    width: calc(100% - 16px) !important;
    max-height: calc(100dvh - 16px);
  }

  dialog form {
    padding: 18px !important;
  }

  table {
    min-width: 640px;
  }
}

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

@media (forced-colors: active) {
  .auth-card,
  .admin-sidebar,
  .admin-profile,
  .sidebar-status,
  dialog form {
    border: 1px solid CanvasText;
  }

  :where(button, a, input, select, textarea):focus-visible {
    outline-color: Highlight !important;
  }
}

/* Pixel-accurate dashboard alignment with docs/Mockup.png. */
:root {
  --admin-bg: #031020;
  --admin-bg-deep: #010812;
  --admin-panel: rgba(5, 22, 43, 0.96);
  --admin-panel-strong: #071a32;
  --admin-panel-raised: #0b2342;
  --admin-panel-hover: #102e53;
  --admin-border: rgba(58, 100, 147, 0.52);
  --admin-border-strong: #28517e;
  --admin-text: #f2f5fb;
  --admin-text-soft: #cad6e8;
  --admin-text-muted: #8297b4;
  --admin-accent: #ff8a1f;
  --admin-accent-soft: #ffa54b;
  --admin-accent-deep: #d96a0a;
}

body {
  background:
    radial-gradient(
      circle at 74% -18%,
      rgba(15, 58, 103, 0.24),
      transparent 42rem
    ),
    radial-gradient(circle at 8% 26%, rgba(9, 42, 78, 0.2), transparent 34rem),
    linear-gradient(145deg, #010812 0%, #031020 45%, #041326 100%);
}

body::before {
  opacity: 0.7;
  background:
    radial-gradient(
      circle at 50% -28%,
      rgba(31, 75, 124, 0.2),
      transparent 46rem
    ),
    linear-gradient(
      90deg,
      rgba(1, 8, 18, 0.38),
      transparent 24%,
      transparent 76%,
      rgba(1, 8, 18, 0.34)
    );
  mask-image: none;
}

.admin-sidebar {
  border-color: rgba(44, 84, 130, 0.46);
  background: linear-gradient(
    170deg,
    rgba(4, 19, 38, 0.99),
    rgba(3, 15, 31, 0.99)
  );
  box-shadow:
    0 18px 44px rgba(0, 4, 13, 0.34),
    inset 0 1px rgba(182, 215, 255, 0.035);
}

.sidebar-access-badge {
  border-color: rgba(255, 138, 31, 0.66);
  color: var(--admin-accent);
  background: rgba(255, 138, 31, 0.035);
}

.desktop-tab-nav button.bg-brand-600,
.mobile-tabs button.bg-brand-600 {
  border-color: rgba(53, 100, 154, 0.34) !important;
  background: linear-gradient(
    100deg,
    rgba(17, 54, 96, 0.98),
    rgba(11, 39, 74, 0.94)
  ) !important;
  box-shadow: inset 3px 0 var(--admin-accent);
}

.sidebar-status,
.admin-profile,
.admin-search input {
  border-color: rgba(52, 92, 139, 0.52);
  background: rgba(5, 22, 43, 0.94);
}

.dashboard-card,
.dashboard-hero {
  border-color: rgba(47, 88, 136, 0.58);
  background: linear-gradient(
    145deg,
    rgba(7, 27, 52, 0.98),
    rgba(4, 19, 39, 0.99)
  );
  box-shadow:
    0 13px 34px rgba(0, 4, 14, 0.24),
    inset 0 1px rgba(196, 222, 255, 0.035);
}

.dashboard-hero {
  min-height: 338px;
  background:
    radial-gradient(
      circle at 86% 55%,
      rgba(255, 116, 21, 0.19),
      transparent 19rem
    ),
    radial-gradient(
      circle at 76% 38%,
      rgba(31, 85, 145, 0.24),
      transparent 22rem
    ),
    linear-gradient(135deg, #071c37 0%, #08213f 58%, #0b2748 100%);
}

.dashboard-hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      118deg,
      transparent 58%,
      rgba(255, 138, 31, 0.06) 74%,
      transparent 92%
    ),
    radial-gradient(
      ellipse at 78% 86%,
      rgba(255, 138, 31, 0.15),
      transparent 38%
    );
}

.dashboard-hero-content {
  padding: 26px 30px 28px;
}

.dashboard-hero-episode {
  margin-top: 18px;
  font-size: clamp(27px, 2.6vw, 34px);
}

.dashboard-hero h2 {
  max-width: 660px;
  margin-top: 5px;
  font-size: clamp(31px, 3.1vw, 40px);
  line-height: 1.08;
}

.dashboard-hero-meta {
  grid-template-columns:
    minmax(150px, 1.35fr) minmax(100px, 0.82fr) minmax(112px, 0.95fr)
    minmax(126px, 1.05fr);
  margin-top: 25px;
}

.dashboard-hero-meta > div {
  padding: 0 14px;
}

.dashboard-hero-meta dt {
  font-size: 10px;
  font-weight: 650;
}

.dashboard-hero-meta dd {
  margin-top: 7px;
  font-size: 12px;
}

.dashboard-hero-people dd {
  display: grid;
  gap: 5px;
  white-space: normal;
}

.dashboard-meta-role {
  display: block;
  overflow: hidden;
  color: var(--admin-text-soft);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-meta-role b {
  margin-right: 5px;
  color: var(--admin-text-muted);
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dashboard-meta-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  overflow: visible !important;
  white-space: normal !important;
}

.dashboard-meta-platforms .dashboard-platform-badge {
  min-height: 25px;
  padding: 0 8px;
  font-size: 9px;
}

.dashboard-hero-actions {
  margin-top: 24px;
}

.dashboard-hero .dashboard-status-badge {
  border-color: rgba(255, 138, 31, 0.68);
  color: var(--admin-accent-soft);
  background: rgba(35, 20, 12, 0.55);
}

.dashboard-hero .dashboard-status-badge::after {
  width: 6px;
  height: 6px;
  margin-left: 8px;
  border-radius: 50%;
  background: currentColor;
  content: "";
  box-shadow: 0 0 9px currentColor;
}

.dashboard-hero-visual {
  overflow: hidden;
}

.dashboard-hero-visual::before {
  inset: 5% -45% -8% -55%;
  background: radial-gradient(
    circle,
    rgba(255, 125, 24, 0.25),
    transparent 62%
  );
  filter: blur(14px);
}

.dashboard-hero-visual img {
  width: 112%;
  height: 100%;
  max-width: none;
  border: 0;
  border-radius: 0;
  object-fit: cover;
  opacity: 0.76;
  filter: saturate(0.9) contrast(1.08)
    drop-shadow(0 18px 30px rgba(0, 0, 0, 0.28));
  mask-image: radial-gradient(
    ellipse 78% 78% at 54% 52%,
    #000 54%,
    transparent 100%
  );
}

.dashboard-hero-visual svg {
  width: min(74%, 230px);
  filter: drop-shadow(0 18px 34px rgba(255, 104, 14, 0.26));
}

.dashboard-orbit {
  width: 420px;
  height: 142px;
  border-color: rgba(255, 127, 28, 0.24);
  transform: rotate(-14deg);
}

.dashboard-orbit--two {
  width: 510px;
  height: 184px;
  border-color: rgba(69, 127, 190, 0.18);
  transform: rotate(12deg);
}

.dashboard-card-head h2 {
  color: #edf3fc;
}

.dashboard-episode-table th,
.dashboard-episode-table td {
  border-color: rgba(49, 87, 132, 0.34);
}

.dashboard-list-row,
.dashboard-note,
.dashboard-podcast-metric {
  background: rgba(3, 17, 35, 0.5);
}

.dashboard-next-days-card .dashboard-list-row {
  border-bottom-color: rgba(49, 87, 132, 0.34);
}

.dashboard-podcast-metrics-grid {
  border-color: rgba(49, 87, 132, 0.5);
  background: rgba(3, 17, 35, 0.42);
}

.dashboard-podcast-metric {
  border-color: rgba(49, 87, 132, 0.34);
}

@media (min-width: 1024px) {
  .admin-topbar {
    overflow: visible;
    border: 1px solid rgba(47, 88, 136, 0.48);
    border-radius: 15px;
    background: linear-gradient(
      145deg,
      rgba(5, 22, 43, 0.97),
      rgba(4, 18, 36, 0.98)
    );
    box-shadow:
      0 13px 32px rgba(0, 4, 14, 0.22),
      inset 0 1px rgba(196, 222, 255, 0.03);
  }

  .admin-topbar-inner {
    min-height: 60px;
    padding: 7px 12px;
  }
}

@media (min-width: 1181px) {
  .dashboard-content-grid {
    grid-template-columns: minmax(0, 2.2fr) minmax(320px, 1fr);
    grid-template-rows: 338px auto auto;
    gap: 12px 14px;
    align-items: stretch;
  }

  .dashboard-main-column,
  .dashboard-right-rail {
    display: contents;
  }

  .dashboard-hero {
    grid-column: 1;
    grid-row: 1;
    min-height: 0;
    height: 100%;
  }

  .dashboard-next-days-card {
    grid-column: 2;
    grid-row: 1;
  }

  .dashboard-episodes-card {
    grid-column: 1;
    grid-row: 2;
  }

  .dashboard-podcast-card {
    grid-column: 2;
    grid-row: 2;
  }

  .dashboard-notes-card {
    grid-column: 1;
    grid-row: 3;
  }

  .dashboard-next-days-card,
  .dashboard-episodes-card,
  .dashboard-podcast-card {
    height: 100%;
  }

  .dashboard-next-days-card {
    display: flex;
    min-height: 0;
    flex-direction: column;
    overflow: hidden;
  }

  .dashboard-next-days-card .dashboard-list {
    min-height: 0;
    flex: 1;
  }
}

@media (max-width: 1180px) {
  .dashboard-hero-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 18px;
  }

  .dashboard-hero-meta > div:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }
}

@media (max-width: 700px) {
  .dashboard-hero-meta {
    grid-template-columns: 1fr;
  }

  .dashboard-hero-meta > div,
  .dashboard-hero-meta > div:nth-child(3) {
    border-left: 0;
    padding: 0;
  }
}

/* Mockup-accurate workspace, Hero, profile and dashboard details. */
body {
  background:
    radial-gradient(
      circle at 78% -16%,
      rgba(18, 60, 108, 0.24),
      transparent 44rem
    ),
    radial-gradient(circle at 2% 46%, rgba(6, 40, 76, 0.18), transparent 34rem),
    linear-gradient(145deg, #010812 0%, #020d1b 52%, #031326 100%);
}

.admin-profile {
  min-width: 0;
  border: 0;
  padding: 4px 0 4px 6px;
  background: transparent;
}

.profile-avatar {
  width: 38px;
  height: 38px;
  overflow: hidden;
  border: 1px solid rgba(255, 159, 63, 0.48);
  border-radius: 50%;
  padding: 0;
  color: #fff;
  background: linear-gradient(145deg, #15355a, #07182e);
  box-shadow: 0 0 0 3px rgba(255, 132, 25, 0.06);
}

.profile-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-profile .profile-mode-button {
  display: none;
}

.admin-profile .profile-action,
.topbar-actions .icon-button {
  border: 0;
  color: var(--admin-text-soft);
  background: transparent;
  box-shadow: none;
}

.admin-profile .profile-action:hover,
.topbar-actions .icon-button:hover {
  color: var(--admin-accent);
  background: transparent;
}

.panel > .dashboard-overview {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.dashboard-card,
.dashboard-hero {
  border-color: rgba(50, 91, 139, 0.58);
  border-radius: 15px;
  background: linear-gradient(
    145deg,
    rgba(6, 25, 49, 0.97),
    rgba(4, 18, 37, 0.99)
  );
  box-shadow:
    0 12px 30px rgba(0, 3, 12, 0.22),
    inset 0 1px rgba(195, 221, 255, 0.035);
}

.dashboard-content-grid {
  gap: 14px;
}

.dashboard-hero {
  isolation: isolate;
  grid-template-columns: minmax(0, 1fr);
  overflow: hidden;
  background:
    radial-gradient(
      circle at 88% 52%,
      rgba(255, 111, 17, 0.17),
      transparent 20rem
    ),
    radial-gradient(
      circle at 71% 38%,
      rgba(25, 89, 160, 0.22),
      transparent 23rem
    ),
    linear-gradient(135deg, #061a33 0%, #08213f 61%, #0a294b 100%);
}

.dashboard-hero-content {
  position: relative;
  z-index: 2;
  padding: 26px clamp(220px, 30%, 280px) 40px 30px;
}

.dashboard-hero h2 {
  max-width: 680px;
}

.dashboard-hero-meta {
  width: min(100%, 680px);
  grid-template-columns:
    minmax(150px, 1.3fr) minmax(100px, 0.86fr) minmax(115px, 1fr)
    minmax(105px, 0.94fr);
  margin-top: 26px;
}

.dashboard-hero-meta > div {
  padding-right: 12px;
  padding-left: 12px;
}

.dashboard-hero-meta dd {
  overflow: visible;
  line-height: 1.45;
  text-overflow: clip;
  white-space: normal;
}

.dashboard-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 9px;
  margin-top: 30px;
}

.dashboard-hero-actions > button {
  width: auto;
  max-width: 100%;
  flex: 0 1 auto;
}

.dashboard-primary-action,
.dashboard-secondary-action {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 10px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.dashboard-primary-action {
  border-color: rgba(255, 181, 94, 0.74);
  color: #fff;
  background: linear-gradient(135deg, #ff6509 0%, #ff861c 62%, #ff9c3b 100%);
  box-shadow:
    0 13px 27px rgba(255, 101, 9, 0.25),
    inset 0 1px rgba(255, 255, 255, 0.26);
}

.dashboard-primary-action:hover {
  background: linear-gradient(135deg, #ff7516, #ff942d);
  box-shadow: 0 15px 32px rgba(255, 101, 9, 0.32);
}

.dashboard-secondary-action {
  border-color: rgba(72, 117, 169, 0.62);
  color: #edf3fc;
  background: linear-gradient(
    145deg,
    rgba(7, 27, 52, 0.96),
    rgba(8, 31, 59, 0.9)
  );
  box-shadow: inset 0 1px rgba(197, 222, 255, 0.045);
}

.dashboard-secondary-action:hover {
  border-color: rgba(112, 159, 211, 0.76);
  background: rgba(13, 44, 80, 0.96);
}

.dashboard-primary-action svg,
.dashboard-secondary-action svg {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
}

.dashboard-hero-visual {
  position: absolute;
  z-index: 1;
  right: 8px;
  bottom: -2px;
  display: flex;
  width: clamp(220px, 31%, 286px);
  height: 96%;
  align-items: flex-end;
  justify-content: center;
  overflow: visible;
  pointer-events: none;
}

.dashboard-hero-visual::before {
  position: absolute;
  inset: 10% -32% -8% -54%;
  border-radius: 50%;
  background:
    radial-gradient(
      ellipse at 62% 56%,
      rgba(255, 116, 18, 0.24),
      transparent 48%
    ),
    radial-gradient(
      ellipse at 36% 50%,
      rgba(26, 103, 196, 0.2),
      transparent 58%
    );
  content: "";
  filter: blur(18px);
}

.dashboard-hero-waves,
.dashboard-hero-waves::before,
.dashboard-hero-waves::after {
  position: absolute;
  content: "";
}

.dashboard-hero-waves {
  z-index: 0;
  inset: 20% -20% 7% -72%;
  overflow: hidden;
  opacity: 0.86;
  filter: drop-shadow(0 0 7px rgba(255, 117, 20, 0.24));
  mask-image: radial-gradient(ellipse, #000 38%, transparent 78%);
}

.dashboard-hero-waves::before,
.dashboard-hero-waves::after {
  inset: 3% -8% -28% 4%;
  border-radius: 50%;
  background: repeating-radial-gradient(
    ellipse at 54% 66%,
    transparent 0 19px,
    rgba(255, 120, 24, 0.72) 20px 21px,
    transparent 22px 35px
  );
  transform: rotate(-9deg) scale(1.14, 0.72);
}

.dashboard-hero-waves::after {
  inset: 9% 2% -20% -12%;
  background: repeating-radial-gradient(
    ellipse at 48% 60%,
    transparent 0 24px,
    rgba(45, 118, 210, 0.5) 25px 26px,
    transparent 27px 42px
  );
  filter: blur(0.35px);
  transform: rotate(8deg) scale(1.05, 0.78);
}

.dashboard-hero-visual img {
  position: relative;
  z-index: 2;
  width: auto;
  height: min(98%, 326px);
  max-width: none;
  border: 0;
  border-radius: 0;
  object-fit: contain;
  object-position: center bottom;
  opacity: 1;
  filter: drop-shadow(0 20px 28px rgba(0, 3, 12, 0.48));
  mask-image: none;
  transform: none;
}

.dashboard-card-head > button,
.dashboard-card-actions > button:not(.dashboard-new-note-action),
.dashboard-card-footer > button,
.dashboard-note-action,
.dashboard-episode-open:hover {
  color: #ff861c;
}

.dashboard-card-head > button:hover,
.dashboard-card-actions > button:not(.dashboard-new-note-action):hover,
.dashboard-card-footer > button:hover {
  color: #ffa24e;
}

.dashboard-new-note-action {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(70, 114, 165, 0.62) !important;
  border-radius: 9px;
  padding: 0 14px !important;
  color: var(--admin-text-soft) !important;
  background: rgba(5, 22, 43, 0.7) !important;
}

.dashboard-new-note-action span {
  color: #ff861c;
  font-size: 19px;
  font-weight: 400;
  line-height: 1;
}

.dashboard-card-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}

.dashboard-card-footer > button {
  border: 0;
  padding: 6px 0;
  background: transparent;
  box-shadow: none !important;
  font-size: 12px;
  font-weight: 650;
}

.dashboard-note-grid {
  gap: 0;
}

.dashboard-note {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  border: 0;
  border-radius: 10px;
  padding: 4px 2px 2px;
  color: var(--admin-text-soft);
  background: transparent;
  box-shadow: none;
}

.dashboard-note:hover {
  border-color: transparent !important;
  background: rgba(15, 46, 80, 0.38);
}

.dashboard-note-avatar {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(77, 125, 178, 0.54);
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, #244f7d, #0a203b);
  font-size: 11px;
  font-weight: 750;
}

.dashboard-note-meta {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.dashboard-note-meta strong {
  color: #edf3fc;
  font-size: 12px;
  font-weight: 650;
}

.dashboard-note-meta small {
  overflow: visible;
  margin: 0;
  color: var(--admin-text-muted);
  font-size: 10px;
  text-overflow: clip;
  white-space: normal;
}

.dashboard-note-title {
  display: block;
  margin-top: 9px;
  color: var(--admin-text-soft);
  font-size: 12px;
  font-weight: 650;
}

.dashboard-note-copy p {
  display: block;
  overflow: visible;
  margin: 5px 0 0;
  color: #aebed4;
  font-size: 12px;
  line-height: 1.55;
  -webkit-line-clamp: unset;
}

@media (min-width: 1024px) {
  .admin-shell {
    position: relative;
    isolation: isolate;
  }

  .admin-shell::before {
    z-index: 0;
    grid-column: 2;
    grid-row: 1 / span 2;
    border: 0;
    border-radius: 19px;
    background: linear-gradient(
      155deg,
      rgba(4, 19, 38, 0.98),
      rgba(3, 15, 31, 0.985)
    );
    box-shadow:
      0 18px 48px rgba(0, 3, 12, 0.32),
      inset 0 1px rgba(192, 220, 255, 0.035);
    content: "";
    pointer-events: none;
  }

  .admin-topbar,
  .panel-stage {
    position: relative;
  }

  .admin-topbar {
    z-index: 30;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .admin-topbar-inner {
    min-height: 72px;
    padding: 10px 14px 12px;
  }

  .panel-stage {
    z-index: 1;
    padding: 0 12px 18px;
  }

  .admin-search input {
    border-color: rgba(54, 96, 145, 0.56);
    background: rgba(5, 22, 43, 0.78);
  }
}

@media (min-width: 1181px) {
  .dashboard-content-grid {
    grid-template-rows: minmax(350px, auto) auto auto;
    gap: 14px;
  }
}

@media (max-width: 1180px) {
  .dashboard-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .dashboard-hero-content {
    padding-right: 30px;
  }

  .dashboard-hero-visual {
    display: none;
  }

  .dashboard-hero-meta {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
  }
}

/* Studio overview and server-authoritative Hero action */
.dashboard-primary-action:disabled,
.admin-button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
  box-shadow: none;
}

.studio-overview-page {
  padding-bottom: 24px;
}

.studio-overview-head-actions,
.studio-create-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.studio-create-panel {
  overflow: hidden;
}

.studio-create-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 14px;
  padding: 18px 20px 20px;
}

.studio-create-field {
  display: grid;
  min-width: 0;
  gap: 7px;
}

.studio-create-field > span {
  color: var(--admin-text-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.studio-create-field select {
  width: 100%;
  min-height: 42px;
  padding: 8px 12px;
}

.studio-overview-section {
  overflow: hidden;
}

.studio-overview-count {
  display: inline-grid;
  min-width: 28px;
  min-height: 28px;
  place-items: center;
  border: 1px solid var(--admin-border);
  border-radius: 999px;
  color: var(--admin-text-soft);
  background: rgba(7, 24, 48, 0.72);
  font-size: 11px;
  font-weight: 800;
}

.studio-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 18px 20px 20px;
}

.studio-overview-grid > .ui-state {
  grid-column: 1 / -1;
}

.studio-overview-card {
  display: grid;
  min-width: 0;
  gap: 10px;
  border: 1px solid rgba(83, 116, 158, 0.42);
  border-radius: 15px;
  padding: 16px;
  background: linear-gradient(145deg, rgba(12, 35, 68, 0.9), rgba(7, 23, 46, 0.96));
}

.studio-overview-card--live,
.studio-overview-card--open,
.studio-overview-card--paused {
  border-color: rgba(87, 208, 149, 0.46);
}

.studio-overview-card__head {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--admin-text-muted);
  font-size: 10px;
  font-weight: 780;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.studio-overview-signal {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #7f9bbd;
  box-shadow: 0 0 0 4px rgba(127, 155, 189, 0.12);
}

.studio-overview-card--live .studio-overview-signal,
.studio-overview-card--open .studio-overview-signal,
.studio-overview-card--paused .studio-overview-signal {
  background: var(--admin-success);
  box-shadow: 0 0 0 4px rgba(85, 216, 138, 0.12);
}

.studio-overview-card h2 {
  overflow-wrap: anywhere;
  margin: 0;
  color: var(--admin-text);
  font-size: 16px;
  line-height: 1.3;
}

.studio-overview-card > p {
  margin: 0;
  color: var(--admin-text-muted);
  font-size: 12px;
}

.studio-overview-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 6px;
}

@media (max-width: 1040px) {
  .studio-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .studio-overview-head-actions,
  .studio-create-actions,
  .studio-create-actions .admin-button {
    width: 100%;
  }

  .studio-create-form {
    grid-template-columns: minmax(0, 1fr);
    padding: 15px;
  }

  .studio-overview-grid {
    grid-template-columns: minmax(0, 1fr);
    padding: 15px;
  }

  .studio-overview-card__actions .admin-button {
    width: 100%;
  }
  .dashboard-hero-visual {
    margin-left: 0;
  }

  .dashboard-hero-visual img {
    width: min(94%, 380px);
  }

  .dashboard-hero-actions {
    gap: 10px;
    margin-top: 24px;
  }

  .dashboard-hero-actions > button {
    width: 100%;
    flex-basis: 100%;
  }

  .dashboard-note-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }
}
