:root {
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  --factory-bg: #020307;
  --factory-ink: #f6f8ff;
  --factory-muted: rgba(231, 236, 250, 0.66);
  --factory-dim: rgba(231, 236, 250, 0.44);
  --factory-line: rgba(220, 230, 255, 0.16);
  --factory-panel: rgba(8, 11, 20, 0.78);
  --factory-panel-strong: rgba(12, 16, 29, 0.9);
  --factory-accent: rgba(196, 219, 255, 0.92);
  --factory-gold: rgba(255, 232, 177, 0.9);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

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

body {
  position: relative;
  font-family: "Noto Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 50% -12%, rgba(41, 57, 91, 0.66), transparent 36rem),
    radial-gradient(circle at 92% 8%, rgba(84, 101, 147, 0.22), transparent 32rem),
    linear-gradient(180deg, #070a12 0%, var(--factory-bg) 52%, #000 100%);
  color: var(--factory-ink);
  overflow-x: hidden;
}

body[data-dashboard-role="loading"] {
  overflow: hidden;
}

.dashboard-stars-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100vw;
  height: 100vh;
  opacity: 0.72;
  pointer-events: none;
}

html[data-preview-quality="low"] *,
html[data-preview-quality="low"] *::before,
html[data-preview-quality="low"] *::after {
  animation-duration: 0.001s !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001s !important;
  scroll-behavior: auto !important;
}

html[data-preview-quality="low"] .dashboard-stars-canvas {
  display: none !important;
}

html[data-preview-quality="medium"] .dashboard-stars-canvas {
  opacity: 0.25 !important;
}

.dashboard-initial-loader {
  position: fixed;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: clamp(22px, 5vw, 56px);
  background:
    radial-gradient(circle at 50% 24%, rgba(196, 219, 255, 0.12), transparent 36rem),
    linear-gradient(180deg, rgba(2, 3, 7, 0.38), rgba(0, 0, 0, 0.74));
  opacity: 1;
  visibility: visible;
  transition: opacity 220ms ease, visibility 220ms ease;
  animation: dashboard-loader-fade-in 260ms ease both;
}

.dashboard-initial-loader-card {
  width: min(100%, 520px);
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid rgba(196, 219, 255, 0.24);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(18, 24, 40, 0.9), rgba(5, 8, 16, 0.94)),
    rgba(0, 0, 0, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 28px 70px rgba(0, 0, 0, 0.42),
    0 0 46px rgba(196, 219, 255, 0.11);
  text-align: center;
}

.dashboard-initial-loader-card strong {
  color: rgba(246, 248, 255, 0.96);
  font-size: clamp(1.65rem, 3.2vw, 2.75rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.08;
}

.dashboard-initial-loader-card small {
  max-width: 420px;
  color: rgba(231, 236, 250, 0.62);
  font-size: clamp(0.92rem, 1.4vw, 1rem);
  font-weight: 700;
  line-height: 1.45;
}

.dashboard-initial-loader-orbit {
  width: 54px;
  height: 54px;
  border: 3px solid rgba(196, 219, 255, 0.2);
  border-top-color: rgba(166, 255, 199, 0.92);
  border-right-color: rgba(152, 231, 255, 0.82);
  border-radius: 999px;
  box-shadow: 0 0 28px rgba(152, 231, 255, 0.2);
  animation: dashboard-loader-spin 860ms linear infinite;
}

body[data-dashboard-role="loading"] .factory-dashboard {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

body:not([data-dashboard-role="loading"]) .dashboard-initial-loader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.dashboard-panel.is-section-loading,
.dashboard-customer-panel.is-section-loading {
  position: relative;
  contain: paint;
  overflow: hidden;
}

.dashboard-panel.is-section-loading::before,
.dashboard-customer-panel.is-section-loading::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 30;
  border-radius: inherit;
  background:
    radial-gradient(circle at 50% 0%, rgba(196, 219, 255, 0.12), transparent 40%),
    linear-gradient(135deg, rgba(6, 10, 20, 0.74), rgba(2, 4, 10, 0.8)),
    rgba(2, 4, 10, 0.72);
  pointer-events: all;
}

.dashboard-panel.is-section-loading::after,
.dashboard-customer-panel.is-section-loading::after {
  content: attr(data-dashboard-loading-message);
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 31;
  min-width: min(82%, 360px);
  max-width: min(82%, 520px);
  padding: 14px 20px;
  border: 1px solid rgba(196, 219, 255, 0.22);
  border-radius: 999px;
  background:
    radial-gradient(circle at 18px 50%, rgba(143, 245, 233, 0.9) 0 4px, rgba(143, 245, 233, 0.18) 5px 9px, transparent 10px),
    linear-gradient(135deg, rgba(17, 24, 40, 0.92), rgba(4, 7, 15, 0.94));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 20px 52px rgba(0, 0, 0, 0.34),
    0 0 28px rgba(143, 245, 233, 0.16);
  color: rgba(246, 248, 255, 0.94);
  font-size: clamp(0.78rem, 1vw, 0.92rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.18;
  text-align: center;
  text-transform: uppercase;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

@keyframes dashboard-loader-fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes dashboard-loader-spin {
  to {
    transform: rotate(360deg);
  }
}

body:not([data-dashboard-role="admin"]) .dashboard-admin-panel,
body:not([data-dashboard-role="admin"]) [data-edit-factory],
body:not([data-dashboard-role="admin"]) [data-run-factory],
body:not([data-dashboard-role="admin"]) [data-run-factory-growth] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

a {
  color: inherit;
}

.factory-dashboard {
  position: relative;
  isolation: isolate;
  z-index: 1;
  width: min(100%, 1440px);
  min-height: 100vh;
  margin: 0 auto;
  padding:
    calc(env(safe-area-inset-top, 0px) + 30px)
    clamp(18px, 4vw, 64px)
    calc(env(safe-area-inset-bottom, 0px) + 48px);
}

.factory-dashboard::before {
  content: none;
}

.factory-dashboard::after {
  content: "";
  position: fixed;
  inset: auto 0 0;
  height: 32vh;
  z-index: -2;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.88));
  pointer-events: none;
}

.dashboard-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(34px, 6vw, 72px);
}

.dashboard-back,
.dashboard-badge {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--factory-line);
  border-radius: 999px;
  background: rgba(6, 8, 15, 0.58);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 16px 38px rgba(0, 0, 0, 0.32);
  color: rgba(246, 248, 255, 0.82);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-back {
  padding: 0 17px 0 13px;
  text-decoration: none;
  transition: border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.dashboard-back:hover,
.dashboard-back:focus-visible {
  color: #fff;
  border-color: rgba(246, 248, 255, 0.38);
  transform: translateY(-1px);
}

.dashboard-back:focus-visible {
  outline: 2px solid rgba(246, 248, 255, 0.72);
  outline-offset: 3px;
}

.dashboard-back-icon {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
}

.dashboard-back-icon svg {
  width: 100%;
  height: 100%;
}

.dashboard-badge {
  margin: 0;
  padding: 0 18px;
  color: rgba(255, 232, 177, 0.82);
}

.dashboard-access-status {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.dashboard-badge.is-locked {
  color: rgba(255, 185, 185, 0.88);
  border-color: rgba(255, 120, 120, 0.28);
}

.dashboard-subscription-timer {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(220, 230, 255, 0.14);
  border-radius: 999px;
  padding: 0 14px;
  background: rgba(6, 8, 15, 0.42);
  color: rgba(231, 236, 250, 0.76);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.dashboard-plan-actions {
  display: grid;
  gap: 8px;
  justify-items: stretch;
}

.dashboard-plan-btn {
  min-height: 38px;
}

.dashboard-add-factory-btn {
  min-height: 38px;
  color: rgba(205, 255, 234, 0.9);
  border-color: rgba(110, 255, 196, 0.3);
  background:
    linear-gradient(135deg, rgba(110, 255, 196, 0.1), rgba(196, 219, 255, 0.07)),
    rgba(6, 8, 15, 0.5);
}

.dashboard-add-factory-btn:hover,
.dashboard-add-factory-btn:focus-visible {
  color: rgba(255, 255, 255, 0.95);
  border-color: rgba(154, 255, 218, 0.52);
  background:
    linear-gradient(135deg, rgba(110, 255, 196, 0.16), rgba(196, 219, 255, 0.1)),
    rgba(6, 8, 15, 0.62);
}

.dashboard-unlimited-disable-btn {
  min-height: 38px;
  color: rgba(255, 195, 195, 0.9);
  border-color: rgba(255, 120, 120, 0.28);
  background: rgba(255, 80, 80, 0.07);
}

.dashboard-unlimited-disable-btn:hover,
.dashboard-unlimited-disable-btn:focus-visible {
  color: #fff;
  border-color: rgba(255, 150, 150, 0.48);
  background: rgba(255, 80, 80, 0.14);
}

.dashboard-hero {
  width: min(100%, 1180px);
  margin: 0 auto clamp(24px, 4vw, 42px);
  text-align: center;
}

.dashboard-hero-logo {
  display: block;
  width: clamp(100px, 9.5vw, 162px);
  height: clamp(100px, 9.5vw, 162px);
  margin: 0 auto clamp(12px, 1.4vw, 18px);
  object-fit: contain;
  opacity: 0.82;
  filter:
    drop-shadow(0 0 14px rgba(196, 219, 255, 0.16))
    drop-shadow(0 0 26px rgba(141, 243, 255, 0.08));
  pointer-events: none;
  user-select: none;
}

.dashboard-kicker,
.dashboard-panel-kicker {
  margin: 0;
  color: var(--factory-dim);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1.2;
  text-transform: uppercase;
}

.dashboard-hero h1 {
  margin: 13px 0 0;
  font-family: "Cinzel", "Noto Serif", serif;
  font-size: clamp(1.3rem, 3.5vw, 3.1rem);
  font-weight: 600;
  line-height: 0.96;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 0 0 34px rgba(196, 219, 255, 0.18);
}

.dashboard-hero-title-base,
.dashboard-hero-title-factory {
  display: inline;
}

.dashboard-hero-title-factory {
  font-family: "Noto Sans", "Cinzel", sans-serif;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.015em;
  background:
    linear-gradient(
      115deg,
      #dfeaff 0%,
      #8df3ff 18%,
      #c8a5ff 42%,
      #ffe8a6 62%,
      #86efd8 82%,
      #f6f8ff 100%
    );
  background-size: 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  text-shadow:
    0 0 20px rgba(141, 243, 255, 0.28),
    0 0 34px rgba(200, 165, 255, 0.22),
    0 0 52px rgba(255, 232, 166, 0.12);
  animation: dashboardFactoryTitleHolo 5.2s ease-in-out infinite;
}

@keyframes dashboardFactoryTitleHolo {
  0%,
  100% {
    background-position: 0% 50%;
    filter: drop-shadow(0 0 10px rgba(141, 243, 255, 0.18));
  }

  50% {
    background-position: 100% 50%;
    filter: drop-shadow(0 0 16px rgba(200, 165, 255, 0.22));
  }
}

@media (prefers-reduced-motion: reduce) {
  .dashboard-hero-title-factory {
    animation: none;
    background-position: 55% 50%;
  }
}

.dashboard-lead {
  width: min(100%, 760px);
  margin: 20px auto 0;
  color: var(--factory-muted);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.6;
}

.dashboard-hero .dashboard-customer-actions {
  position: relative;
  margin: clamp(34px, 4vw, 48px) auto 0;
  padding-top: clamp(24px, 2.8vw, 34px);
}

.dashboard-hero .dashboard-customer-actions::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(100%, 820px);
  height: 1px;
  transform: translateX(-50%);
  background:
    linear-gradient(
      90deg,
      transparent 0%,
      rgba(141, 243, 255, 0.5) 18%,
      rgba(200, 165, 255, 0.46) 48%,
      rgba(255, 232, 166, 0.42) 74%,
      transparent 100%
    );
  box-shadow:
    0 0 18px rgba(141, 243, 255, 0.18),
    0 0 34px rgba(200, 165, 255, 0.12);
  pointer-events: none;
}

.dashboard-hero .dashboard-customer-actions::after {
  content: "";
  position: absolute;
  top: -2px;
  left: 50%;
  width: min(22vw, 180px);
  height: 5px;
  border-radius: 999px;
  transform: translateX(-50%);
  background:
    linear-gradient(
      90deg,
      rgba(141, 243, 255, 0),
      rgba(246, 248, 255, 0.58),
      rgba(200, 165, 255, 0)
    );
  filter: blur(2px);
  opacity: 0.7;
  pointer-events: none;
}

.dashboard-hero .dashboard-refresh-network-panel > span {
  padding: 0 18px;
  background:
    linear-gradient(
      90deg,
      rgba(5, 8, 17, 0),
      rgba(5, 8, 17, 0.9) 18%,
      rgba(5, 8, 17, 0.9) 82%,
      rgba(5, 8, 17, 0)
    );
  color: rgba(196, 219, 255, 0.72);
  text-shadow: 0 0 16px rgba(196, 219, 255, 0.14);
}

.dashboard-payment-success-notice {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: clamp(12px, 1.8vw, 18px);
  width: min(100%, 1100px);
  margin: 0 auto clamp(24px, 4vw, 42px);
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid rgba(196, 219, 255, 0.28);
  border-radius: clamp(24px, 3vw, 34px);
  background:
    radial-gradient(circle at 12% 10%, rgba(141, 243, 255, 0.18), transparent 34%),
    radial-gradient(circle at 86% 18%, rgba(200, 165, 255, 0.18), transparent 32%),
    radial-gradient(circle at 52% 100%, rgba(255, 232, 166, 0.12), transparent 34%),
    linear-gradient(145deg, rgba(12, 18, 34, 0.96), rgba(4, 6, 13, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 24px 70px rgba(0, 0, 0, 0.36),
    0 0 44px rgba(141, 243, 255, 0.08);
}

.dashboard-payment-success-notice[hidden] {
  display: none;
}

.dashboard-payment-success-notice::after {
  content: "";
  position: absolute;
  inset: -1px;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(118deg, rgba(255, 255, 255, 0.14), transparent 34%, rgba(141, 243, 255, 0.1) 72%, transparent);
  opacity: 0.7;
}

.dashboard-payment-success-notice > * {
  position: relative;
  z-index: 1;
}

.dashboard-payment-success-notice h2,
.dashboard-payment-success-notice p {
  margin: 0;
}

.dashboard-payment-success-notice h2 {
  max-width: 980px;
  font-family: "Cinzel", "Noto Serif", serif;
  font-size: clamp(1.6rem, 3.6vw, 3.8rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: 0;
  text-transform: uppercase;
  color: rgba(246, 248, 255, 0.98);
  text-shadow:
    0 0 20px rgba(141, 243, 255, 0.12),
    0 0 34px rgba(200, 165, 255, 0.12);
}

.dashboard-payment-success-notice p:not(.dashboard-panel-kicker) {
  max-width: 840px;
  color: rgba(226, 234, 252, 0.82);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  font-weight: 750;
  line-height: 1.55;
}

.dashboard-payment-success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: center;
}

.dashboard-payment-success-actions .dashboard-primary-btn {
  min-width: min(100%, 280px);
}

.dashboard-payment-success-actions span {
  max-width: 520px;
  color: rgba(182, 191, 215, 0.8);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.4;
}

.dashboard-control-row {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(430px, 0.8fr);
  align-items: start;
  gap: 16px;
  margin-bottom: 16px;
}

.dashboard-period-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid rgba(220, 230, 255, 0.12);
  border-radius: 20px;
  background: rgba(4, 7, 14, 0.5);
}

.dashboard-period-column .dashboard-period-shell {
  border-color: rgba(196, 219, 255, 0.18);
  background:
    radial-gradient(circle at 0% 0%, rgba(196, 219, 255, 0.1), transparent 44%),
    linear-gradient(150deg, rgba(9, 14, 28, 0.76), rgba(3, 5, 10, 0.76));
}

.dashboard-period-head {
  min-width: 0;
  flex: 1 1 100%;
  display: grid;
  gap: 6px;
}

.dashboard-period-head .dashboard-panel-kicker {
  margin: 0;
}

.dashboard-period-hint {
  width: 100%;
  max-width: none;
  margin: 0;
  color: rgba(182, 191, 215, 0.78);
  font-size: clamp(1.02rem, 1.45vw, 1.34rem);
  font-weight: 700;
  line-height: 1.28;
}

.dashboard-holographic-text {
  display: block;
  color: rgba(242, 247, 255, 0.98);
  font-size: clamp(1.16rem, 1.9vw, 1.68rem);
  font-weight: 950;
  background: linear-gradient(98deg, #9effbe 0%, #8df3ff 34%, #c8a5ff 66%, #ffe8b1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow:
    0 0 18px rgba(141, 243, 255, 0.18),
    0 0 30px rgba(200, 165, 255, 0.12);
}

.dashboard-period-hint span {
  display: block;
  margin-top: 4px;
}

.dashboard-period-column {
  display: grid;
  gap: 16px;
  min-width: 0;
  align-content: start;
}

.dashboard-period-column--launch {
  flex: 1 1 100%;
  width: min(100%, 740px);
  max-width: 740px;
  margin: 6px auto 0;
  justify-items: center;
}

.dashboard-period-column--launch .dashboard-period-shell {
  width: 100%;
  margin: 0;
  justify-content: center;
  padding: 14px clamp(14px, 1.4vw, 20px);
  border-radius: 24px;
  text-align: center;
}

.dashboard-period-column--launch .dashboard-period-head {
  justify-items: center;
  text-align: center;
}

.dashboard-period-column--launch .dashboard-period-hint {
  max-width: 680px;
}

.dashboard-period-column--launch .dashboard-period-switch {
  width: min(100%, 600px);
  min-width: 0;
  margin-inline: auto;
}

.dashboard-period-column--launch .dashboard-period-range,
.dashboard-period-column--launch .dashboard-period-history-note,
.dashboard-period-column--launch .dashboard-period-lock-notice {
  width: min(100%, 680px);
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.dashboard-control-row .dashboard-period-column {
  justify-self: end;
  width: min(100%, 640px);
}

.dashboard-control-row .dashboard-period-shell {
  margin: 0;
}

.dashboard-subscription-stack {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
}

.dashboard-subscription-stack:not(:has(.dashboard-subscription-lock:not([hidden]), .dashboard-subscription-manage:not([hidden]))) {
  display: none;
}

.dashboard-period-support {
  display: flex;
  justify-content: center;
}

.dashboard-period-support .dashboard-support-btn {
  width: min(100%, 380px);
  min-width: 0;
  border-color: rgba(144, 240, 255, 0.58);
  background:
    linear-gradient(102deg, rgba(134, 236, 255, 0.94) 0%, rgba(202, 184, 255, 0.96) 54%, rgba(174, 255, 218, 0.94) 100%);
  color: #07101a;
  box-shadow:
    0 0 24px rgba(144, 240, 255, 0.22),
    0 0 44px rgba(202, 184, 255, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.dashboard-period-support .dashboard-support-btn:hover,
.dashboard-period-support .dashboard-support-btn:focus-visible {
  border-color: rgba(238, 246, 255, 0.82);
  box-shadow:
    0 0 30px rgba(144, 240, 255, 0.3),
    0 0 58px rgba(202, 184, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.dashboard-period-switch {
  display: inline-grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  min-width: min(100%, 520px);
  gap: 6px;
  padding: 5px;
  border: 1px solid rgba(220, 230, 255, 0.12);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.26);
}

.dashboard-period-switch button {
  min-height: 36px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--factory-muted);
  font: inherit;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.dashboard-period-switch button:hover,
.dashboard-period-switch button:focus-visible,
.dashboard-period-switch button.is-active {
  background: rgba(196, 219, 255, 0.12);
  color: var(--factory-ink);
  box-shadow: inset 0 0 0 1px rgba(220, 230, 255, 0.16);
}

.dashboard-period-switch button:focus-visible {
  outline: 2px solid rgba(196, 219, 255, 0.68);
  outline-offset: 3px;
}

.dashboard-period-range {
  flex: 1 1 100%;
  min-height: 28px;
  margin: 0;
  padding: 8px 12px;
  border: 1px solid rgba(196, 219, 255, 0.12);
  border-radius: 999px;
  background: rgba(196, 219, 255, 0.06);
  color: rgba(231, 236, 250, 0.84);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.25;
  text-transform: uppercase;
}

.dashboard-period-history-note {
  flex: 1 1 100%;
  margin: -2px 0 0;
  padding: 12px 14px;
  border: 1px solid rgba(188, 155, 255, 0.26);
  border-radius: 18px;
  background:
    radial-gradient(circle at 0% 0%, rgba(141, 243, 255, 0.08), transparent 48%),
    linear-gradient(135deg, rgba(23, 19, 42, 0.7), rgba(8, 12, 25, 0.72));
  color: rgba(218, 224, 245, 0.82);
  font-size: clamp(0.72rem, 1.05vw, 0.86rem);
  font-weight: 800;
  line-height: 1.36;
}

.dashboard-period-lock-notice {
  flex: 1 1 100%;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid rgba(188, 155, 255, 0.42);
  border-radius: 20px;
  background:
    radial-gradient(circle at 0% 0%, rgba(141, 243, 255, 0.12), transparent 48%),
    linear-gradient(135deg, rgba(29, 24, 48, 0.92), rgba(8, 12, 25, 0.94));
  box-shadow:
    0 0 28px rgba(188, 155, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: rgba(232, 222, 255, 0.94);
  font-size: clamp(0.78rem, 1.3vw, 0.94rem);
  font-weight: 900;
  line-height: 1.38;
}

.dashboard-period-custom {
  flex: 1 1 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.dashboard-period-custom[hidden] {
  display: none;
}

.dashboard-period-custom label {
  min-width: min(100%, 190px);
  display: grid;
  gap: 6px;
}

.dashboard-period-custom span {
  color: var(--factory-dim);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

.dashboard-period-custom input {
  width: 100%;
  min-height: 38px;
  border: 1px solid rgba(196, 219, 255, 0.2);
  border-radius: 999px;
  padding: 0 13px;
  background: rgba(3, 6, 14, 0.72);
  color: rgba(246, 248, 255, 0.86);
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  outline: none;
}

.dashboard-period-custom input:focus {
  border-color: rgba(196, 219, 255, 0.42);
  box-shadow: 0 0 0 3px rgba(196, 219, 255, 0.08);
}

.dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.dashboard-metrics-panel {
  margin-bottom: 16px;
}

.dashboard-metrics-panel .dashboard-metrics {
  margin-bottom: 0;
}

.dashboard-metric--period-views {
  border-color: rgba(146, 229, 255, 0.2);
  background: linear-gradient(180deg, rgba(64, 173, 214, 0.1), rgba(0, 0, 0, 0.16));
}

.dashboard-metric--old-growth {
  border-color: rgba(218, 192, 255, 0.22);
  background: linear-gradient(180deg, rgba(145, 103, 214, 0.12), rgba(0, 0, 0, 0.16));
}

.dashboard-social-panel {
  margin-bottom: 16px;
}

.dashboard-customer-panel .dashboard-social-panel {
  margin-top: 16px;
  margin-bottom: 0;
}

.dashboard-trends-panel {
  margin-bottom: 16px;
}

.dashboard-trend-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.dashboard-trend-switch {
  display: inline-grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  width: min(100%, 860px);
  align-items: stretch;
  gap: 6px;
  padding: 6px;
  border: 1px solid rgba(220, 230, 255, 0.12);
  border-radius: 22px;
  background: rgba(0, 0, 0, 0.26);
}

.dashboard-trend-switch button,
.dashboard-trend-compare {
  min-width: 0;
  min-height: 38px;
  color: var(--factory-dim);
  cursor: pointer;
  font: inherit;
  font-size: clamp(0.64rem, 1.2vw, 0.78rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.05;
  text-transform: uppercase;
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.dashboard-trend-switch button {
  border: 0;
  border-radius: 15px;
  background: transparent;
  padding: 0 12px;
}

.dashboard-trend-compare {
  flex: 0 1 280px;
  border: 1px solid rgba(220, 230, 255, 0.14);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.18);
  padding: 0 18px;
}

.dashboard-trend-compare-range {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  align-items: stretch;
  gap: 12px;
  width: min(100%, 920px);
  padding: 8px 10px 8px 14px;
  border: 1px solid rgba(167, 221, 255, 0.2);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(141, 243, 255, 0.1), rgba(200, 165, 255, 0.08)),
    rgba(0, 0, 0, 0.24);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035), 0 18px 42px rgba(0, 0, 0, 0.18);
}

.dashboard-trend-compare-range[hidden] {
  display: none;
}

.dashboard-trend-compare-group {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(118px, 1fr) minmax(118px, 1fr);
  align-items: center;
  gap: 8px;
}

.dashboard-trend-compare-range span,
.dashboard-trend-compare-range label {
  color: rgba(224, 231, 246, 0.74);
  font-size: clamp(0.62rem, 1.2vw, 0.76rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.1;
  text-transform: uppercase;
}

.dashboard-trend-compare-range label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.dashboard-trend-compare-range input {
  min-width: 0;
  width: 100%;
  height: 38px;
  border: 1px solid rgba(220, 230, 255, 0.16);
  border-radius: 14px;
  background: rgba(6, 8, 16, 0.62);
  color: rgba(246, 248, 255, 0.94);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0;
  padding: 0 10px;
  color-scheme: dark;
}

.dashboard-trend-compare-range input:focus-visible {
  outline: 2px solid rgba(141, 243, 255, 0.6);
  outline-offset: 2px;
}

.dashboard-report-trend-switch {
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  width: min(100%, 980px);
  border-radius: 24px;
}

.dashboard-trend-period-switch {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  width: min(100%, 560px);
}

.dashboard-trend-switch button:hover,
.dashboard-trend-switch button:focus-visible,
.dashboard-trend-switch button.is-active,
.dashboard-trend-compare:hover,
.dashboard-trend-compare:focus-visible,
.dashboard-trend-compare.is-active {
  background: rgba(196, 219, 255, 0.12);
  color: rgba(246, 248, 255, 0.94);
  box-shadow: inset 0 0 0 1px rgba(196, 219, 255, 0.16);
}

.dashboard-trend-switch button:focus-visible,
.dashboard-trend-compare:focus-visible {
  outline: 2px solid rgba(246, 248, 255, 0.72);
  outline-offset: 3px;
}

.dashboard-trend-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.32fr);
  gap: 16px;
  align-items: stretch;
}

.dashboard-trend-chart {
  min-width: 0;
  min-height: 320px;
  display: grid;
  place-items: stretch;
  padding: 16px;
  border: 1px solid rgba(220, 230, 255, 0.1);
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 0%, rgba(196, 219, 255, 0.09), transparent 54%),
    rgba(0, 0, 0, 0.16);
  overflow: hidden;
}

.dashboard-trend-svg {
  width: 100%;
  min-height: 260px;
  display: block;
}

.dashboard-trend-axis,
.dashboard-trend-grid-line {
  stroke: rgba(220, 230, 255, 0.1);
  stroke-width: 1;
}

.dashboard-trend-grid-line {
  stroke-dasharray: 8 10;
}

.dashboard-trend-area {
  fill: url("#dashboardTrendArea");
}

.dashboard-trend-line {
  fill: none;
  stroke: url("#dashboardTrendStroke");
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 12px rgba(196, 219, 255, 0.24));
}

.dashboard-trend-line-compare {
  fill: none;
  stroke: rgba(255, 224, 166, 0.78);
  stroke-width: 3.5;
  stroke-dasharray: 10 10;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 9px rgba(255, 224, 166, 0.16));
}

.dashboard-trend-line-network {
  fill: none;
  stroke-width: 4.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 10px rgba(196, 219, 255, 0.18));
}

.dashboard-trend-line-old-growth {
  fill: none;
  stroke: rgba(186, 152, 255, 0.92);
  stroke-width: 4;
  stroke-dasharray: 7 9;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 11px rgba(186, 152, 255, 0.22));
}

.dashboard-report-trend-line {
  fill: none;
  stroke: rgba(219, 232, 255, 0.74);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3.4;
}

.dashboard-report-trend-bar {
  opacity: 0.76;
  filter: drop-shadow(0 0 12px rgba(141, 243, 255, 0.16));
}

.dashboard-report-trend-point {
  stroke: rgba(3, 5, 11, 0.92);
  stroke-width: 3;
}

.dashboard-trend-hover-zone {
  fill: transparent;
  pointer-events: all;
}

.dashboard-trend-hover-line {
  opacity: 0;
  stroke: rgba(246, 248, 255, 0.25);
  stroke-dasharray: 5 7;
  stroke-width: 1;
  transition: opacity 160ms ease;
}

.dashboard-trend-point {
  fill: rgba(246, 248, 255, 0.94);
  stroke: rgba(4, 7, 14, 0.86);
  stroke-width: 3;
}

.dashboard-trend-point-compare {
  fill: rgba(255, 224, 166, 0.92);
  stroke: rgba(4, 7, 14, 0.86);
  stroke-width: 2.5;
}

.dashboard-trend-point-network {
  stroke: rgba(4, 7, 14, 0.88);
  stroke-width: 2.6;
}

.dashboard-trend-hit {
  fill: transparent;
  pointer-events: all;
}

.dashboard-trend-point-total {
  fill: rgba(196, 219, 255, 0.96);
  stroke: rgba(4, 7, 14, 0.9);
  stroke-width: 2.8;
  filter: drop-shadow(0 0 9px rgba(196, 219, 255, 0.32));
}

.dashboard-trend-tooltip-marker {
  opacity: 0;
  pointer-events: none;
  stroke: rgba(4, 7, 14, 0.9);
  stroke-width: 3;
  transition: opacity 160ms ease, stroke-width 160ms ease;
}

.dashboard-trend-tooltip-marker-current {
  fill: rgba(246, 248, 255, 0.96);
}

.dashboard-trend-tooltip-marker-total {
  fill: rgba(196, 219, 255, 0.96);
}

.dashboard-trend-point-old-growth {
  fill: rgba(186, 152, 255, 0.94);
  stroke: rgba(4, 7, 14, 0.88);
  stroke-width: 2.6;
}

.dashboard-trend-label,
.dashboard-trend-max,
.dashboard-trend-day-label,
.dashboard-trend-legend text,
.dashboard-trend-tooltip text {
  fill: rgba(231, 236, 250, 0.48);
  font-family: "Noto Sans", system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.dashboard-trend-day-label {
  fill: rgba(231, 236, 250, 0.58);
  font-size: 0.62rem;
}

.dashboard-trend-point-wrap {
  cursor: crosshair;
  outline: none;
}

.dashboard-trend-point-wrap:hover .dashboard-trend-hover-line,
.dashboard-trend-point-wrap:focus .dashboard-trend-hover-line,
.dashboard-trend-point-wrap:focus-within .dashboard-trend-hover-line {
  opacity: 1;
}

.dashboard-trend-point-wrap:hover .dashboard-trend-tooltip,
.dashboard-trend-point-wrap:focus .dashboard-trend-tooltip,
.dashboard-trend-point-wrap:focus-within .dashboard-trend-tooltip {
  opacity: 1;
  transform-box: fill-box;
}

.dashboard-trend-point-wrap--network:hover .dashboard-trend-point-network,
.dashboard-trend-point-wrap--network:focus .dashboard-trend-point-network,
.dashboard-trend-point-wrap--network:focus-within .dashboard-trend-point-network,
.dashboard-trend-point-wrap--total:hover .dashboard-trend-point-total,
.dashboard-trend-point-wrap--total:focus .dashboard-trend-point-total,
.dashboard-trend-point-wrap--total:focus-within .dashboard-trend-point-total {
  filter: drop-shadow(0 0 12px rgba(196, 219, 255, 0.44));
  stroke-width: 3.4;
}

.dashboard-trend-point-wrap:hover .dashboard-trend-tooltip-marker,
.dashboard-trend-point-wrap:focus .dashboard-trend-tooltip-marker,
.dashboard-trend-point-wrap:focus-within .dashboard-trend-tooltip-marker {
  opacity: 1;
  stroke-width: 3.4;
  filter: drop-shadow(0 0 12px rgba(196, 219, 255, 0.42));
}

.dashboard-trend-tooltip {
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
}

.dashboard-trend-tooltip rect {
  fill: rgba(6, 9, 18, 0.94);
  stroke: rgba(220, 230, 255, 0.22);
  stroke-width: 1;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.34));
}

.dashboard-trend-tooltip text {
  fill: rgba(246, 248, 255, 0.9);
  font-size: 0.62rem;
  letter-spacing: 0;
  text-transform: none;
}

.dashboard-trend-tooltip .dashboard-trend-tooltip-old-growth {
  fill: rgba(213, 195, 255, 0.94);
}

.dashboard-trend-legend text {
  fill: rgba(231, 236, 250, 0.62);
  font-size: 0.62rem;
  text-transform: uppercase;
}

.dashboard-trend-network-legend text {
  fill: rgba(231, 236, 250, 0.68);
  font-family: "Noto Sans", system-ui, sans-serif;
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dashboard-trend-network-legend line {
  stroke-width: 4;
  stroke-linecap: round;
}

.dashboard-trend-legend-current,
.dashboard-trend-legend-previous,
.dashboard-trend-legend-old-growth {
  stroke-width: 4;
  stroke-linecap: round;
}

.dashboard-trend-legend-current {
  stroke: url("#dashboardTrendStroke");
}

.dashboard-trend-legend-previous {
  stroke: rgba(255, 224, 166, 0.78);
  stroke-dasharray: 8 8;
}

.dashboard-trend-legend-old-growth {
  stroke: rgba(186, 152, 255, 0.92);
  stroke-dasharray: 7 7;
}

.dashboard-trend-summary {
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.dashboard-trend-summary-card {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 7px;
  min-height: 72px;
  padding: 14px;
  border: 1px solid rgba(220, 230, 255, 0.1);
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.16);
}

.dashboard-trend-summary-card span,
.dashboard-trend-summary-card small {
  color: var(--factory-dim);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  line-height: 1.1;
  text-transform: uppercase;
}

.dashboard-trend-summary-card strong {
  min-width: 0;
  overflow: hidden;
  color: var(--factory-accent);
  font-size: clamp(1.38rem, 2.8vw, 2.15rem);
  font-weight: 900;
  line-height: 0.95;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-trend-summary-card.is-up strong {
  color: rgba(158, 255, 190, 0.92);
}

.dashboard-trend-summary-card.is-down strong {
  color: rgba(255, 128, 128, 0.92);
}

.dashboard-trend-summary-card.is-old-growth {
  border-color: rgba(186, 152, 255, 0.22);
  background: rgba(145, 103, 214, 0.12);
}

.dashboard-trend-summary-card.is-old-growth strong {
  color: rgba(213, 195, 255, 0.96);
}

.dashboard-metric,
.dashboard-panel {
  border: 1px solid var(--factory-line);
  background:
    linear-gradient(160deg, rgba(14, 18, 31, 0.86), rgba(4, 6, 12, 0.88)),
    radial-gradient(circle at 50% 0%, rgba(196, 219, 255, 0.08), transparent 56%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 24px 70px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(16px);
}

.dashboard-metric {
  min-height: 118px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 20px;
  border-radius: 22px;
}

.dashboard-metric:nth-child(1) {
  border-color: rgba(196, 219, 255, 0.22);
  background:
    radial-gradient(circle at 18% 0%, rgba(196, 219, 255, 0.16), transparent 50%),
    linear-gradient(160deg, rgba(13, 20, 36, 0.9), rgba(3, 6, 13, 0.9));
}

.dashboard-metric:nth-child(2) {
  border-color: rgba(255, 232, 177, 0.22);
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 232, 177, 0.14), transparent 52%),
    linear-gradient(160deg, rgba(28, 23, 13, 0.88), rgba(4, 5, 10, 0.9));
}

.dashboard-metric:nth-child(3) {
  border-color: rgba(158, 255, 190, 0.18);
  background:
    radial-gradient(circle at 18% 0%, rgba(95, 210, 160, 0.13), transparent 52%),
    linear-gradient(160deg, rgba(9, 24, 22, 0.88), rgba(3, 6, 11, 0.9));
}

.dashboard-metric:nth-child(4) {
  border-color: rgba(218, 192, 255, 0.18);
  background:
    radial-gradient(circle at 18% 0%, rgba(218, 192, 255, 0.13), transparent 52%),
    linear-gradient(160deg, rgba(22, 15, 31, 0.88), rgba(4, 5, 11, 0.9));
}

.dashboard-metric:nth-child(5) {
  border-color: rgba(255, 185, 142, 0.18);
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 185, 142, 0.13), transparent 52%),
    linear-gradient(160deg, rgba(29, 17, 13, 0.88), rgba(4, 5, 11, 0.9));
}

.dashboard-metric:nth-child(6) {
  border-color: rgba(142, 234, 255, 0.18);
  background:
    radial-gradient(circle at 18% 0%, rgba(142, 234, 255, 0.13), transparent 52%),
    linear-gradient(160deg, rgba(10, 24, 29, 0.88), rgba(4, 5, 11, 0.9));
}

.dashboard-metric-value {
  color: var(--factory-accent);
  font-size: clamp(2.1rem, 4.2vw, 4rem);
  font-weight: 800;
  line-height: 0.9;
}

.dashboard-metric-label {
  color: var(--factory-muted);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.25;
}

.dashboard-period-badge {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border: 1px solid rgba(158, 255, 190, 0.24);
  border-radius: 999px;
  background: rgba(95, 210, 160, 0.1);
  color: rgba(205, 255, 223, 0.92);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dashboard-period-badge.is-boosted {
  border-color: rgba(255, 232, 177, 0.24);
  background: rgba(255, 232, 177, 0.1);
  color: rgba(255, 236, 196, 0.94);
}

.dashboard-period-badge.is-all-time {
  border-color: rgba(196, 219, 255, 0.22);
  background: rgba(196, 219, 255, 0.09);
  color: rgba(221, 232, 255, 0.92);
}

.dashboard-period-badge.is-tail {
  border-color: rgba(126, 232, 255, 0.28);
  background: rgba(126, 232, 255, 0.1);
  color: rgba(210, 249, 255, 0.94);
}

.dashboard-period-badge.is-partial {
  border-color: rgba(255, 128, 128, 0.28);
  background: rgba(255, 128, 128, 0.1);
  color: rgba(255, 206, 206, 0.94);
}

.dashboard-period-badge.is-manual {
  border-color: rgba(141, 243, 255, 0.34);
  background: rgba(141, 243, 255, 0.1);
  color: rgba(220, 250, 255, 0.96);
}

.dashboard-product-stats-panel,
.dashboard-videos-panel,
.dashboard-creator-stats-panel {
  margin-bottom: 16px;
}

.dashboard-social-panel {
  border-color: rgba(130, 214, 196, 0.18);
  background:
    radial-gradient(circle at 0% 0%, rgba(130, 214, 196, 0.13), transparent 42%),
    linear-gradient(160deg, rgba(8, 20, 24, 0.88), rgba(3, 5, 11, 0.9));
}

.dashboard-trends-panel {
  border-color: rgba(150, 190, 255, 0.2);
  background:
    radial-gradient(circle at 8% 0%, rgba(150, 190, 255, 0.15), transparent 46%),
    linear-gradient(160deg, rgba(10, 15, 32, 0.9), rgba(3, 5, 12, 0.9));
}

.dashboard-article-report-panel {
  border-color: rgba(255, 232, 177, 0.2);
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 232, 177, 0.12), transparent 44%),
    radial-gradient(circle at 88% 0%, rgba(130, 214, 196, 0.08), transparent 42%),
    linear-gradient(160deg, rgba(24, 20, 12, 0.9), rgba(3, 5, 11, 0.9));
}

.dashboard-article-report-panel .dashboard-panel-head > div:first-child {
  flex: 1 1 auto;
}

.dashboard-article-report-panel .dashboard-panel-head h2 {
  max-width: 100%;
  font-size: 1.95rem;
  line-height: 1.04;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .dashboard-article-report-panel .dashboard-panel-head h2 {
    font-size: 1.45rem;
  }
}

@media (max-width: 460px) {
  .dashboard-article-report-panel .dashboard-panel-head h2 {
    font-size: 1.12rem;
  }
}

.dashboard-panel.is-preview-locked {
  border-color: rgba(255, 232, 177, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 24px 70px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(255, 232, 177, 0.04);
}

.dashboard-panel.is-preview-locked input:disabled,
.dashboard-panel.is-preview-locked textarea:disabled,
.dashboard-panel.is-preview-locked select:disabled {
  opacity: 0.58;
  cursor: not-allowed;
}

.dashboard-panel.is-preview-locked .dashboard-panel-status {
  border-color: rgba(255, 232, 177, 0.34);
  background: rgba(255, 232, 177, 0.11);
  color: rgba(255, 232, 177, 0.9);
}

.dashboard-article-report-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 180px) minmax(150px, 180px) auto;
  align-items: end;
  gap: 12px;
}

.dashboard-article-report-form .dashboard-primary-btn {
  min-width: 210px;
  min-height: 52px;
}

.dashboard-article-report-history {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 12px;
}

.dashboard-article-report-history[hidden] {
  display: none;
}

.dashboard-article-report-history-card {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 320px);
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  overflow: hidden;
  border: 1px solid rgba(220, 230, 255, 0.14);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(196, 219, 255, 0.08), rgba(200, 165, 255, 0.05)),
    rgba(0, 0, 0, 0.2);
  isolation: isolate;
}

.dashboard-article-report-history-card > * {
  position: relative;
  z-index: 1;
}

.dashboard-article-report-history-card.is-active:not(.is-upload-slot) {
  border-color: transparent;
  background:
    radial-gradient(circle at 12% 0%, rgba(141, 243, 255, 0.12), transparent 42%),
    linear-gradient(135deg, rgba(196, 219, 255, 0.08), rgba(200, 165, 255, 0.12)),
    rgba(0, 0, 0, 0.24);
  box-shadow:
    0 0 0 1px rgba(246, 248, 255, 0.04),
    0 14px 34px rgba(141, 243, 255, 0.08);
  animation: dashboardArticleReportCardPulse 2.6s ease-in-out infinite;
}

.dashboard-article-report-history-card.is-active:not(.is-upload-slot)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  padding: 2px;
  border-radius: inherit;
  background: linear-gradient(115deg, #8df3ff, #c8a5ff, #ffe8a6, #86efd8, #dbe8ff, #8df3ff);
  background-size: 260% 100%;
  pointer-events: none;
  animation: dashboardArticleReportBorderHolo 3.8s linear infinite;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
}

.dashboard-article-report-history-card.is-upload-slot {
  border-color: rgba(220, 230, 255, 0.14);
  background:
    linear-gradient(135deg, rgba(220, 230, 255, 0.045), rgba(255, 255, 255, 0.025)),
    rgba(0, 0, 0, 0.18);
  box-shadow: none;
}

.dashboard-article-report-history-card.is-upload-slot.is-active {
  border-color: rgba(220, 230, 255, 0.16);
  background:
    linear-gradient(135deg, rgba(220, 230, 255, 0.05), rgba(255, 255, 255, 0.03)),
    rgba(0, 0, 0, 0.18);
  box-shadow: none;
  animation: none;
}

@keyframes dashboardArticleReportCardPulse {
  0%,
  100% {
    box-shadow:
      0 0 0 1px rgba(246, 248, 255, 0.04),
      0 14px 34px rgba(141, 243, 255, 0.08);
    filter: saturate(1);
  }

  50% {
    box-shadow:
      0 0 0 1px rgba(246, 248, 255, 0.1),
      0 18px 44px rgba(141, 243, 255, 0.16),
      0 0 36px rgba(200, 165, 255, 0.1);
    filter: saturate(1.16);
  }
}

@keyframes dashboardArticleReportBorderHolo {
  0% { background-position: 0% 50%; }
  100% { background-position: 260% 50%; }
}

.dashboard-article-report-history-select {
  width: 100%;
  min-width: 0;
  min-height: 64px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--factory-text);
  cursor: pointer;
  text-align: left;
}

.dashboard-article-report-history-bulk {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 12px;
}

.dashboard-article-report-history-bulk .dashboard-mini-btn.is-active {
  border-color: rgba(157, 255, 188, 0.45);
  background: rgba(157, 255, 188, 0.14);
  color: #d8ffe4;
}

.dashboard-article-report-history-select:hover,
.dashboard-article-report-history-select:focus-visible {
  background:
    linear-gradient(135deg, rgba(141, 243, 255, 0.1), rgba(200, 165, 255, 0.12)),
    rgba(255, 255, 255, 0.02);
}

.dashboard-article-report-history-select strong,
.dashboard-article-report-history-select span,
.dashboard-article-report-history-select em {
  display: block;
  max-width: 100%;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

.dashboard-article-report-history-top {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.dashboard-article-report-history-select strong {
  color: #dbe8ff;
  font-size: clamp(1.05rem, 1.45vw, 1.38rem);
  font-weight: 900;
  line-height: 1.05;
}

.dashboard-article-report-history-select em {
  color: rgba(182, 191, 215, 0.82);
  font-size: clamp(0.68rem, 0.86vw, 0.84rem);
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.07em;
  line-height: 1.1;
  text-align: right;
  text-transform: uppercase;
}

.dashboard-article-report-history-select .dashboard-article-report-history-meta {
  margin-top: 0;
  color: var(--factory-dim);
  font-size: clamp(0.72rem, 0.9vw, 0.86rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase;
}

.dashboard-article-report-history-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  align-items: center;
  justify-self: end;
  width: 100%;
}

.dashboard-article-report-history-actions.is-upload-actions {
  grid-template-columns: 1fr;
}

.dashboard-article-report-history-action {
  min-width: 0;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(220, 230, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(220, 230, 255, 0.78);
  cursor: pointer;
  font: inherit;
  font-size: clamp(0.68rem, 0.82vw, 0.82rem);
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dashboard-article-report-history-action:hover,
.dashboard-article-report-history-action:focus-visible {
  border-color: rgba(141, 243, 255, 0.42);
  color: #eaf8ff;
}

.dashboard-article-report-history-action.is-danger {
  border-color: rgba(200, 165, 255, 0.3);
  color: rgba(222, 205, 255, 0.9);
}

.dashboard-article-report-history-action.is-upload-cta {
  border-color: rgba(220, 230, 255, 0.18);
  background:
    linear-gradient(135deg, rgba(220, 230, 255, 0.08), rgba(255, 255, 255, 0.04)),
    rgba(255, 255, 255, 0.035);
  color: rgba(220, 230, 255, 0.78);
}

.dashboard-article-report-history-action:disabled {
  cursor: wait;
  opacity: 0.58;
}

.dashboard-toast-notice {
  position: fixed;
  z-index: 130;
  left: 50%;
  bottom: clamp(18px, 4vh, 42px);
  max-width: min(92vw, 520px);
  padding: 14px 18px;
  border: 1px solid rgba(141, 243, 255, 0.38);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(12, 18, 32, 0.96), rgba(5, 8, 17, 0.98)),
    linear-gradient(115deg, rgba(141, 243, 255, 0.16), rgba(200, 165, 255, 0.14));
  box-shadow:
    0 18px 46px rgba(0, 0, 0, 0.38),
    0 0 30px rgba(141, 243, 255, 0.12);
  color: rgba(236, 246, 255, 0.96);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.22;
  text-align: center;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 16px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.dashboard-toast-notice.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.dashboard-toast-notice.is-error {
  border-color: rgba(200, 165, 255, 0.48);
  color: rgba(237, 220, 255, 0.98);
}

.dashboard-toast-notice.is-period-lock {
  max-width: min(92vw, 780px);
  border-radius: 26px;
  border-color: rgba(168, 140, 255, 0.52);
  background:
    linear-gradient(135deg, rgba(24, 20, 42, 0.97), rgba(7, 12, 25, 0.98)),
    linear-gradient(115deg, rgba(141, 243, 255, 0.15), rgba(210, 178, 255, 0.2), rgba(255, 232, 176, 0.12));
  box-shadow:
    0 20px 54px rgba(0, 0, 0, 0.42),
    0 0 34px rgba(168, 140, 255, 0.16);
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.95rem;
  line-height: 1.36;
}

.dashboard-article-report-history-more {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dashboard-spend-panel {
  border-color: rgba(188, 218, 255, 0.2);
  background:
    radial-gradient(circle at 0% 0%, rgba(188, 218, 255, 0.12), transparent 42%),
    radial-gradient(circle at 88% 0%, rgba(255, 232, 177, 0.08), transparent 42%),
    linear-gradient(160deg, rgba(12, 18, 28, 0.9), rgba(3, 5, 11, 0.9));
}

.dashboard-spend-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr)) auto;
  align-items: end;
  gap: 12px;
}

.dashboard-spend-form .dashboard-primary-btn {
  min-width: 220px;
  min-height: 52px;
}

.dashboard-manual-adjustment-panel {
  border-color: rgba(141, 243, 255, 0.18);
}

.dashboard-manual-adjustment-panel .dashboard-panel-head > div:first-child {
  flex: 1 1 auto;
  width: 100%;
  max-width: none;
}

.dashboard-adjustment-mode-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 16px;
  padding: 5px;
  border: 1px solid rgba(220, 230, 255, 0.14);
  border-radius: 16px;
  background: rgba(3, 6, 14, 0.6);
}

.dashboard-adjustment-mode-switch button {
  min-width: 0;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: rgba(220, 230, 255, 0.7);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.dashboard-adjustment-mode-switch button.is-active {
  border-color: rgba(141, 243, 255, 0.34);
  background: rgba(141, 243, 255, 0.1);
  color: rgba(232, 253, 255, 0.96);
}

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

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

.dashboard-manual-adjustment-form .dashboard-field--wide,
.dashboard-manual-adjustment-form .dashboard-primary-btn,
.dashboard-automatic-adjustment-form .dashboard-field--wide,
.dashboard-automatic-adjustment-form .dashboard-primary-btn,
.dashboard-automatic-adjustment-status {
  grid-column: 1 / -1;
}

.dashboard-manual-adjustment-form textarea {
  min-height: 96px;
  resize: vertical;
}

.dashboard-manual-rows {
  display: grid;
  gap: 12px;
}

.dashboard-manual-row {
  display: grid;
  grid-template-columns: minmax(150px, 1.1fr) minmax(160px, 1.1fr) minmax(120px, 0.7fr) minmax(100px, 0.55fr) auto;
  gap: 10px;
  align-items: end;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(141, 243, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
}

.dashboard-manual-row .dashboard-field {
  min-width: 0;
}

.dashboard-manual-row .dashboard-secondary-btn {
  min-width: 96px;
  min-height: 48px;
  padding: 0 14px;
}

.dashboard-automatic-links {
  display: grid;
  gap: 10px;
}

.dashboard-automatic-link-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.dashboard-automatic-link-row .dashboard-secondary-btn {
  min-width: 96px;
  min-height: 48px;
  padding: 0 14px;
}

.dashboard-automatic-adjustment-status {
  min-width: 0;
  max-width: 100%;
  margin: -4px 0 0;
  padding: 0;
  color: rgba(255, 232, 177, 0.8);
  font-size: clamp(0.72rem, 1.2vw, 0.82rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.32;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.dashboard-automatic-adjustment-status:empty {
  display: none;
}

.dashboard-automatic-adjustment-status.is-error {
  max-height: 4.2em;
  overflow: hidden;
  padding: 9px 12px;
  border: 1px solid rgba(255, 232, 177, 0.2);
  border-radius: 14px;
  background: rgba(255, 232, 177, 0.06);
}

.dashboard-automatic-adjustment-status.is-ok {
  color: rgba(172, 255, 214, 0.84);
}

.dashboard-automatic-preview {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid rgba(141, 243, 255, 0.2);
  border-radius: 18px;
  background:
    radial-gradient(circle at 0% 0%, rgba(141, 243, 255, 0.12), transparent 42%),
    rgba(3, 6, 14, 0.72);
}

.dashboard-automatic-preview-head,
.dashboard-automatic-preview-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.dashboard-automatic-preview-head h3 {
  margin: 4px 0 0;
  color: var(--factory-ink);
  font-size: clamp(1.15rem, 2vw, 1.7rem);
}

.dashboard-automatic-preview-head span {
  border: 1px solid rgba(141, 243, 255, 0.28);
  border-radius: 999px;
  padding: 7px 10px;
  color: rgba(185, 250, 255, 0.9);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-automatic-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.dashboard-automatic-preview-grid article,
.dashboard-automatic-preview-rows article {
  min-width: 0;
  border: 1px solid rgba(220, 230, 255, 0.12);
  border-radius: 14px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.045);
}

.dashboard-automatic-preview-grid span,
.dashboard-automatic-preview-rows small {
  color: var(--factory-dim);
  font-size: 0.72rem;
  font-weight: 800;
}

.dashboard-automatic-preview-grid strong {
  display: block;
  margin-top: 4px;
  color: var(--factory-ink);
  font-size: 1.45rem;
}

.dashboard-automatic-preview-rows {
  display: grid;
  gap: 8px;
}

.dashboard-automatic-preview-rows strong,
.dashboard-automatic-preview-rows span,
.dashboard-automatic-preview-rows small {
  display: block;
  overflow-wrap: anywhere;
}

.dashboard-automatic-preview-rows span {
  margin-top: 4px;
  color: rgba(232, 241, 255, 0.86);
  font-weight: 800;
}

.dashboard-automatic-preview-actions {
  justify-content: flex-start;
  margin-top: 14px;
}

.dashboard-automatic-preview-actions .dashboard-primary-btn,
.dashboard-automatic-preview-actions .dashboard-secondary-btn {
  min-height: 48px;
  min-width: min(100%, 220px);
}

.dashboard-manual-adjustment-notice {
  margin: 12px 0 0;
  color: var(--factory-muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.dashboard-article-report-summary,
.dashboard-spend-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.dashboard-article-report-summary article,
.dashboard-spend-summary article {
  --article-card-accent: rgba(196, 219, 255, 0.92);
  position: relative;
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 9px;
  min-height: 116px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--article-card-accent) 28%, transparent);
  border-radius: 16px;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--article-card-accent) 16%, transparent), rgba(0, 0, 0, 0.12)),
    rgba(0, 0, 0, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 12px 28px color-mix(in srgb, var(--article-card-accent) 10%, transparent);
}

.dashboard-article-report-summary article::before,
.dashboard-spend-summary article::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--article-card-accent);
  opacity: 0.78;
}

.dashboard-article-report-summary article:nth-child(6n + 1) {
  --article-card-accent: #9effbe;
}

.dashboard-article-report-summary article:nth-child(6n + 2) {
  --article-card-accent: #8df3ff;
}

.dashboard-article-report-summary article:nth-child(6n + 3) {
  --article-card-accent: #c8a5ff;
}

.dashboard-article-report-summary article:nth-child(6n + 4) {
  --article-card-accent: #ffe8a6;
}

.dashboard-article-report-summary article:nth-child(6n + 5) {
  --article-card-accent: #a9c7ff;
}

.dashboard-article-report-summary article:nth-child(6n) {
  --article-card-accent: #86efd8;
}

.dashboard-article-report-summary strong,
.dashboard-spend-summary strong {
  position: relative;
  max-width: 100%;
  overflow: hidden;
  color: var(--article-card-accent, var(--factory-accent));
  font-size: clamp(1.72rem, 2.45vw, 2.35rem);
  font-weight: 900;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-article-report-summary span,
.dashboard-spend-summary span {
  position: relative;
  color: var(--factory-dim);
  font-size: clamp(0.72rem, 0.9vw, 0.86rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase;
}

.dashboard-article-report-table {
  margin-top: 14px;
}

.dashboard-article-report-sort {
  max-width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 12px;
  padding: 4px;
  border: 1px solid rgba(220, 230, 255, 0.12);
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.18);
}

.dashboard-article-report-sort[hidden] {
  display: none;
}

.dashboard-article-report-product-filter {
  flex: 0 1 260px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 3px 4px 3px 12px;
  border: 1px solid rgba(158, 255, 190, 0.18);
  border-radius: 999px;
  background: rgba(95, 210, 160, 0.08);
}

.dashboard-article-report-product-filter span {
  flex: 0 0 auto;
  color: rgba(205, 255, 223, 0.74);
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-article-report-product-filter select {
  min-width: 0;
  width: 100%;
  min-height: 28px;
  border: 0;
  border-radius: 999px;
  padding: 0 26px 0 10px;
  background: rgba(0, 0, 0, 0.28);
  color: rgba(246, 248, 255, 0.95);
  font: inherit;
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.dashboard-article-report-product-filter select:focus-visible {
  outline: 2px solid rgba(158, 255, 190, 0.42);
  outline-offset: 2px;
}

.dashboard-article-report-sort button {
  flex: 0 1 auto;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--factory-dim);
  cursor: pointer;
  font: inherit;
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.07em;
  line-height: 1.05;
  text-transform: uppercase;
}

.dashboard-article-report-sort button span {
  min-width: 0;
}

.dashboard-article-report-sort button em,
.dashboard-article-report-head-sort em {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(196, 219, 255, 0.08);
  color: rgba(196, 219, 255, 0.78);
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 950;
  line-height: 1;
}

.dashboard-article-report-sort button.is-active {
  background: rgba(255, 232, 177, 0.13);
  color: rgba(255, 240, 203, 0.96);
  box-shadow: inset 0 0 0 1px rgba(255, 232, 177, 0.16);
}

.dashboard-article-report-sort button.is-active em,
.dashboard-article-report-head-sort.is-active em {
  background: rgba(255, 232, 177, 0.2);
  color: rgba(255, 240, 203, 0.98);
  box-shadow: 0 0 14px rgba(255, 232, 177, 0.12);
}

.dashboard-article-report-head-label {
  display: block;
  margin-bottom: 7px;
}

.dashboard-article-report-head-sort {
  max-width: 100%;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 7px 5px 10px;
  border: 1px solid rgba(196, 219, 255, 0.14);
  border-radius: 999px;
  background: rgba(196, 219, 255, 0.06);
  color: var(--factory-dim);
  cursor: pointer;
  font: inherit;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.05;
  text-align: left;
  text-transform: uppercase;
}

.dashboard-article-report-head-sort span {
  min-width: 0;
}

.dashboard-article-report-head-sort:hover,
.dashboard-article-report-head-sort:focus-visible {
  border-color: rgba(196, 219, 255, 0.34);
  color: rgba(246, 248, 255, 0.94);
}

.dashboard-article-report-head-sort.is-active {
  border-color: rgba(255, 232, 177, 0.34);
  background: rgba(255, 232, 177, 0.12);
  color: rgba(255, 240, 203, 0.96);
}

.dashboard-table-muted {
  color: var(--factory-dim);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-product-stats-panel {
  border-color: rgba(255, 232, 177, 0.18);
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 232, 177, 0.13), transparent 42%),
    linear-gradient(160deg, rgba(24, 20, 12, 0.9), rgba(4, 5, 10, 0.9));
}

.dashboard-videos-panel {
  border-color: rgba(218, 192, 255, 0.18);
  background:
    radial-gradient(circle at 0% 0%, rgba(218, 192, 255, 0.12), transparent 42%),
    linear-gradient(160deg, rgba(22, 15, 31, 0.9), rgba(4, 5, 12, 0.9));
}

.dashboard-viral-videos-panel {
  border-color: rgba(255, 232, 177, 0.2);
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 232, 177, 0.14), transparent 42%),
    radial-gradient(circle at 100% 0%, rgba(122, 255, 164, 0.08), transparent 36%),
    linear-gradient(160deg, rgba(24, 17, 9, 0.9), rgba(5, 7, 13, 0.92));
}

.dashboard-creator-stats-panel {
  border-color: rgba(158, 255, 190, 0.16);
  background:
    radial-gradient(circle at 0% 0%, rgba(95, 210, 160, 0.12), transparent 42%),
    linear-gradient(160deg, rgba(8, 22, 18, 0.9), rgba(3, 6, 11, 0.9));
}

.dashboard-grid > .dashboard-panel--wide {
  border-color: rgba(196, 219, 255, 0.2);
  background:
    radial-gradient(circle at 0% 0%, rgba(196, 219, 255, 0.13), transparent 42%),
    linear-gradient(160deg, rgba(11, 16, 31, 0.9), rgba(3, 5, 11, 0.9));
}

.dashboard-product-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.dashboard-creator-stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: start;
}

.dashboard-creator-tools {
  flex: 1 1 min(100%, 760px);
  min-width: 0;
  max-width: min(100%, 860px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  column-gap: 10px;
  row-gap: 16px;
}

.dashboard-panel-tools,
.dashboard-video-tools {
  flex: 1 1 min(100%, 760px);
  min-width: 0;
  max-width: min(100%, 860px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  column-gap: 10px;
  row-gap: 16px;
}

.dashboard-video-sort,
.dashboard-priority-sort {
  order: 2;
  max-width: 100%;
  display: inline-flex;
  flex: 0 1 auto;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(220, 230, 255, 0.12);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.18);
}

.dashboard-video-sort button,
.dashboard-priority-sort button {
  flex: 0 1 auto;
  max-width: 100%;
  min-height: 30px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--factory-dim);
  cursor: pointer;
  font: inherit;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.05;
  text-transform: uppercase;
  white-space: normal;
}

.dashboard-video-sort button,
.dashboard-priority-sort button,
.dashboard-table-head-sort {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.dashboard-video-sort button span,
.dashboard-priority-sort button span,
.dashboard-table-head-sort span {
  min-width: 0;
}

.dashboard-video-sort button em,
.dashboard-priority-sort button em,
.dashboard-table-head-sort em {
  flex: 0 0 auto;
  min-width: 22px;
  min-height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(196, 219, 255, 0.1);
  color: rgba(222, 231, 255, 0.88);
  font-style: normal;
  font-size: 0.74rem;
  line-height: 1;
}

.dashboard-video-sort button.is-active,
.dashboard-priority-sort button.is-active {
  background: rgba(196, 219, 255, 0.13);
  color: rgba(245, 247, 255, 0.95);
  box-shadow: inset 0 0 0 1px rgba(196, 219, 255, 0.14);
}

.dashboard-video-sort button.is-active em,
.dashboard-priority-sort button.is-active em,
.dashboard-table-head-sort.is-active em {
  background: rgba(255, 232, 177, 0.2);
  color: rgba(255, 240, 203, 0.98);
}

.dashboard-table-head-sort {
  max-width: 100%;
  min-height: 30px;
  padding: 5px 7px 5px 10px;
  border: 1px solid rgba(196, 219, 255, 0.12);
  border-radius: 999px;
  background: rgba(196, 219, 255, 0.045);
  color: var(--factory-dim);
  cursor: pointer;
  font: inherit;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.05;
  text-align: left;
  text-transform: uppercase;
}

.dashboard-table-head-sort:hover,
.dashboard-table-head-sort:focus-visible {
  border-color: rgba(196, 219, 255, 0.34);
  color: rgba(246, 248, 255, 0.94);
}

.dashboard-table-head-sort.is-active {
  border-color: rgba(255, 232, 177, 0.34);
  background: rgba(255, 232, 177, 0.12);
  color: rgba(255, 240, 203, 0.96);
}

.dashboard-network-filter {
  order: 1;
  width: fit-content;
  max-width: 100%;
  display: inline-flex;
  flex: 0 1 auto;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  margin-left: auto;
  padding: 4px;
  border: 1px solid rgba(220, 230, 255, 0.12);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.18);
}

.dashboard-network-filter--trend {
  margin-left: 0;
}

.dashboard-network-filter button {
  flex: 0 1 auto;
  max-width: 100%;
  min-height: 30px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--factory-dim);
  cursor: pointer;
  font: inherit;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.dashboard-network-filter button.is-active {
  background: rgba(122, 255, 164, 0.13);
  color: rgba(232, 255, 239, 0.96);
  box-shadow: inset 0 0 0 1px rgba(122, 255, 164, 0.18);
}

.dashboard-product-filter {
  order: 0;
  flex: 1 1 220px;
  display: inline-grid;
  gap: 6px;
  min-width: 0;
  max-width: min(100%, 360px);
}

.dashboard-creator-search {
  order: 0;
  flex: 1 1 220px;
  display: inline-grid;
  gap: 6px;
  min-width: min(100%, 180px);
  max-width: min(100%, 320px);
}

.dashboard-creator-search--article {
  margin: 0;
}

.dashboard-panel-search-row {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  margin: 12px 0 12px;
}

.dashboard-panel-search-row .dashboard-creator-search {
  flex: 0 1 min(100%, 460px);
  width: min(100%, 460px);
  max-width: min(100%, 460px);
}

.dashboard-panel-tools .dashboard-document-action {
  order: 0;
}

.dashboard-panel-tools .dashboard-panel-status,
.dashboard-video-tools .dashboard-panel-status,
.dashboard-creator-tools .dashboard-panel-status {
  order: 3;
}

.dashboard-panel-tools .dashboard-collapse-toggle,
.dashboard-video-tools .dashboard-collapse-toggle,
.dashboard-creator-tools .dashboard-collapse-toggle {
  order: 4;
}

.dashboard-product-filter span,
.dashboard-creator-search span {
  color: var(--factory-dim);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

.dashboard-product-filter select,
.dashboard-creator-search input {
  width: 100%;
  min-height: 36px;
  border: 1px solid rgba(196, 219, 255, 0.2);
  border-radius: 999px;
  background: rgba(3, 6, 14, 0.72);
  color: rgba(246, 248, 255, 0.86);
  font: inherit;
  font-size: 0.76rem;
  font-weight: 800;
  outline: none;
}

.dashboard-product-filter select {
  padding: 0 34px 0 13px;
}

.dashboard-creator-search input {
  padding: 0 13px;
}

.dashboard-creator-search input::placeholder {
  color: rgba(196, 219, 255, 0.42);
}

.dashboard-creator-search input:focus-visible {
  border-color: rgba(196, 219, 255, 0.42);
  box-shadow: 0 0 0 3px rgba(196, 219, 255, 0.08);
}

.dashboard-product-filter select:disabled {
  opacity: 0.54;
}

.dashboard-product-stat-card,
.dashboard-creator-stat-card {
  min-width: 0;
  display: grid;
  align-self: start;
  gap: 16px;
  padding: 16px;
  border: 1px solid rgba(220, 230, 255, 0.12);
  border-radius: 18px;
  background:
    radial-gradient(circle at 0% 0%, rgba(196, 219, 255, 0.1), transparent 42%),
    rgba(255, 255, 255, 0.035);
}

.dashboard-product-stat-card:nth-child(6n + 1),
.dashboard-creator-stat-card:nth-child(6n + 1) {
  border-color: rgba(196, 219, 255, 0.18);
  background:
    radial-gradient(circle at 0% 0%, rgba(196, 219, 255, 0.12), transparent 44%),
    rgba(255, 255, 255, 0.035);
}

.dashboard-product-stat-card:nth-child(6n + 2),
.dashboard-creator-stat-card:nth-child(6n + 2) {
  border-color: rgba(255, 232, 177, 0.17);
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 232, 177, 0.1), transparent 44%),
    rgba(255, 255, 255, 0.034);
}

.dashboard-product-stat-card:nth-child(6n + 3),
.dashboard-creator-stat-card:nth-child(6n + 3) {
  border-color: rgba(158, 255, 190, 0.15);
  background:
    radial-gradient(circle at 0% 0%, rgba(95, 210, 160, 0.1), transparent 44%),
    rgba(255, 255, 255, 0.033);
}

.dashboard-product-stat-card:nth-child(6n + 4),
.dashboard-creator-stat-card:nth-child(6n + 4) {
  border-color: rgba(218, 192, 255, 0.15);
  background:
    radial-gradient(circle at 0% 0%, rgba(218, 192, 255, 0.1), transparent 44%),
    rgba(255, 255, 255, 0.033);
}

.dashboard-product-stat-card:nth-child(6n + 5),
.dashboard-creator-stat-card:nth-child(6n + 5) {
  border-color: rgba(255, 164, 164, 0.15);
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 164, 164, 0.09), transparent 44%),
    rgba(255, 255, 255, 0.033);
}

.dashboard-product-stat-card:nth-child(6n),
.dashboard-creator-stat-card:nth-child(6n) {
  border-color: rgba(130, 214, 196, 0.15);
  background:
    radial-gradient(circle at 0% 0%, rgba(130, 214, 196, 0.1), transparent 44%),
    rgba(255, 255, 255, 0.033);
}

.dashboard-product-stat-card.is-product-stopped {
  border-color: rgba(255, 84, 84, 0.36);
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 84, 84, 0.16), transparent 44%),
    rgba(255, 255, 255, 0.032);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 0 1px rgba(255, 84, 84, 0.04),
    0 22px 56px rgba(120, 0, 0, 0.16);
}

.dashboard-product-stat-card.is-product-connected {
  border-color: rgba(110, 255, 156, 0.28);
}

.dashboard-product-stat-card.is-product-warning {
  border-color: rgba(255, 206, 96, 0.36);
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 206, 96, 0.13), transparent 44%),
    rgba(255, 255, 255, 0.032);
}

.dashboard-product-stat-card.is-product-disconnected {
  border-color: rgba(255, 84, 84, 0.34);
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 84, 84, 0.12), transparent 44%),
    rgba(255, 255, 255, 0.032);
}

.dashboard-creator-stat-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(170px, 0.85fr) minmax(420px, 1.65fr) minmax(140px, 0.45fr);
  align-items: center;
  gap: 8px 12px;
  padding: 10px 12px;
  border: 1px solid rgba(220, 230, 255, 0.12);
  border-radius: 18px;
  background:
    radial-gradient(circle at 0% 0%, rgba(196, 219, 255, 0.1), transparent 42%),
    rgba(255, 255, 255, 0.032);
}

.dashboard-creator-stat-row:nth-child(6n + 1) {
  border-color: rgba(196, 219, 255, 0.18);
  background:
    radial-gradient(circle at 0% 0%, rgba(196, 219, 255, 0.12), transparent 42%),
    rgba(255, 255, 255, 0.034);
}

.dashboard-creator-stat-row:nth-child(6n + 2) {
  border-color: rgba(255, 232, 177, 0.16);
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 232, 177, 0.1), transparent 42%),
    rgba(255, 255, 255, 0.032);
}

.dashboard-creator-stat-row:nth-child(6n + 3) {
  border-color: rgba(158, 255, 190, 0.15);
  background:
    radial-gradient(circle at 0% 0%, rgba(95, 210, 160, 0.1), transparent 42%),
    rgba(255, 255, 255, 0.032);
}

.dashboard-creator-stat-row:nth-child(6n + 4) {
  border-color: rgba(218, 192, 255, 0.15);
  background:
    radial-gradient(circle at 0% 0%, rgba(218, 192, 255, 0.1), transparent 42%),
    rgba(255, 255, 255, 0.032);
}

.dashboard-creator-row-main,
.dashboard-creator-row-side {
  min-width: 0;
}

.dashboard-creator-row-main {
  display: grid;
  gap: 5px;
}

.dashboard-creator-row-main h3 {
  margin: 0;
  overflow: hidden;
  font-size: clamp(1rem, 1.35vw, 1.28rem);
  line-height: 1.1;
  text-overflow: ellipsis;
}

.dashboard-creator-row-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.dashboard-creator-row-tags span {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 0 9px;
  border: 1px solid rgba(255, 232, 177, 0.18);
  border-radius: 999px;
  background: rgba(255, 232, 177, 0.055);
  color: rgba(255, 232, 177, 0.8);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.dashboard-creator-row-metrics {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.dashboard-creator-row-metrics > span {
  min-width: 0;
  display: grid;
  align-content: center;
  align-items: center;
  justify-items: center;
  gap: 5px;
  min-height: 68px;
  padding: 9px;
  border: 1px solid rgba(220, 230, 255, 0.1);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.15);
  text-align: center;
}

.dashboard-creator-row-metrics > span > strong {
  max-width: 100%;
  overflow: visible;
  color: var(--factory-accent);
  font-size: clamp(1.18rem, 1.65vw, 1.56rem);
  line-height: 1.04;
  overflow-wrap: anywhere;
  text-overflow: clip;
  white-space: normal;
  word-break: break-word;
}

.dashboard-spend-summary span {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

.dashboard-creator-row-metrics > span > small {
  max-width: 100%;
  color: var(--factory-dim);
  font-size: clamp(0.54rem, 0.75vw, 0.62rem);
  font-weight: 900;
  letter-spacing: 0.055em;
  line-height: 1.08;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.dashboard-creator-row-side {
  align-self: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
  color: var(--factory-dim);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  line-height: 1.1;
  text-transform: uppercase;
}

.dashboard-creator-row-side > span:not(.dashboard-panel-status):not(.dashboard-status-pill) {
  min-height: 23px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border: 1px solid rgba(220, 230, 255, 0.1);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.13);
}

.dashboard-creator-stat-row .dashboard-creator-network-breakdown {
  grid-column: 1 / -1;
}

.dashboard-creator-stat-row .dashboard-creator-network-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}

.dashboard-creator-stats-action {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  padding-top: 4px;
}

.dashboard-creator-stats-action .dashboard-mini-btn {
  width: auto;
  min-width: min(100%, 260px);
}

.dashboard-product-stat-head,
.dashboard-creator-stat-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
}

.dashboard-product-stat-head h3,
.dashboard-creator-stat-head h3 {
  margin: 5px 0 0;
  overflow: hidden;
  font-size: clamp(1.06rem, 1.45vw, 1.34rem);
  line-height: 1.12;
  letter-spacing: 0;
  text-overflow: ellipsis;
}

.dashboard-creator-sheet-link,
.dashboard-creator-table-link {
  color: inherit;
  text-decoration: none;
  transition: color 180ms ease, text-shadow 180ms ease;
}

.dashboard-creator-sheet-link {
  display: inline;
  text-shadow: 0 0 18px rgba(196, 219, 255, 0.08);
}

.dashboard-creator-table-link {
  display: inline-block;
  max-width: 180px;
  overflow: hidden;
  color: rgba(196, 219, 255, 0.92);
  text-overflow: ellipsis;
  vertical-align: bottom;
  white-space: nowrap;
}

.dashboard-creator-table-cell {
  min-width: 0;
  display: grid;
  justify-items: start;
  gap: 6px;
}

.dashboard-creator-identity {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  flex-wrap: wrap;
  gap: 8px;
  vertical-align: middle;
}

.dashboard-creator-product-note {
  display: inline-flex;
  align-items: center;
  max-width: min(260px, 100%);
  min-height: 24px;
  padding: 0 9px;
  overflow: hidden;
  border: 1px solid rgba(255, 232, 177, 0.24);
  border-radius: 999px;
  background: rgba(255, 232, 177, 0.08);
  color: rgba(255, 236, 196, 0.88);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.dashboard-creator-sheet-link:hover,
.dashboard-creator-sheet-link:focus-visible,
.dashboard-creator-table-link:hover,
.dashboard-creator-table-link:focus-visible {
  color: #fff;
  text-shadow: 0 0 18px rgba(196, 219, 255, 0.28);
}

.dashboard-screenshot-link {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  max-width: 100%;
  padding: 0 10px;
  border: 1px solid rgba(196, 219, 255, 0.2);
  border-radius: 999px;
  color: rgba(196, 219, 255, 0.86);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
}

.dashboard-screenshot-link:hover,
.dashboard-screenshot-link:focus-visible {
  border-color: rgba(245, 247, 255, 0.45);
  color: #fff;
}

.dashboard-screenshot-link--table {
  min-height: 23px;
  padding-inline: 8px;
  font-size: 0.58rem;
}

.dashboard-product-stat-metrics,
.dashboard-creator-stat-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 116px), 1fr));
  gap: 8px;
}

.dashboard-product-stat-metrics > span,
.dashboard-creator-stat-metrics > span {
  min-width: 0;
  display: grid;
  align-content: center;
  align-items: center;
  justify-items: center;
  gap: 9px;
  min-height: 100px;
  padding: 16px 12px;
  border: 1px solid rgba(220, 230, 255, 0.11);
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.18);
  text-align: center;
}

.dashboard-product-stat-metrics > .dashboard-engagement-breakdown,
.dashboard-creator-stat-metrics > .dashboard-engagement-breakdown {
  grid-column: 1 / -1;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.dashboard-product-stat-metrics > span > strong,
.dashboard-creator-stat-metrics > span > strong {
  max-width: 100%;
  overflow: hidden;
  color: var(--factory-accent);
  font-size: clamp(1.5rem, 2.2vw, 2.08rem);
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-product-stat-metrics > span > small,
.dashboard-creator-stat-metrics > span > small {
  max-width: 100%;
  color: var(--factory-dim);
  font-size: clamp(0.62rem, 1vw, 0.74rem);
  font-weight: 900;
  letter-spacing: 0.055em;
  line-height: 1.12;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  word-break: normal;
}

.dashboard-engagement-breakdown {
  align-content: stretch;
}

.dashboard-engagement-breakdown-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 112px), 1fr));
  align-items: stretch;
  gap: 8px;
}

.dashboard-engagement-breakdown-card {
  min-width: 0;
  min-height: 66px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 5px;
  padding: 9px 7px;
  border: 1px solid rgba(196, 219, 255, 0.12);
  border-radius: 12px;
  background:
    radial-gradient(circle at 50% 0%, rgba(196, 219, 255, 0.08), transparent 70%),
    rgba(0, 0, 0, 0.16);
  font-style: normal;
  text-align: center;
}

.dashboard-engagement-breakdown-card strong,
.dashboard-engagement-breakdown-card b {
  max-width: 100%;
  overflow: visible;
  color: var(--factory-accent);
  font-size: clamp(1rem, 1.32vw, 1.44rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.02;
  overflow-wrap: anywhere;
  text-overflow: clip;
  white-space: normal;
  word-break: break-word;
}

.dashboard-engagement-breakdown-card i {
  max-width: 100%;
  color: var(--factory-dim);
  font-size: clamp(0.48rem, 0.72vw, 0.58rem);
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.045em;
  line-height: 1.04;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.dashboard-commerce-strip {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 92px), 1fr));
  gap: 8px;
  padding: 9px;
  border: 1px solid rgba(130, 214, 196, 0.13);
  border-radius: 14px;
  background:
    radial-gradient(circle at 0% 0%, rgba(130, 214, 196, 0.08), transparent 48%),
    rgba(0, 0, 0, 0.12);
}

.dashboard-commerce-strip span {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 3px;
  padding: 7px 5px;
  border: 1px solid rgba(220, 230, 255, 0.08);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.12);
  text-align: center;
}

.dashboard-commerce-strip strong {
  max-width: 100%;
  overflow: hidden;
  color: rgba(166, 237, 197, 0.95);
  font-size: clamp(0.82rem, 1.05vw, 1rem);
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-commerce-strip small {
  max-width: 100%;
  color: var(--factory-dim);
  font-size: clamp(0.46rem, 0.78vw, 0.52rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.12;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.dashboard-commerce-inline {
  display: block;
  max-width: 100%;
  color: rgba(166, 237, 197, 0.82);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.25;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.dashboard-creator-stat-row > .dashboard-commerce-strip {
  grid-column: 1 / -1;
}

.dashboard-product-stat-card > .dashboard-commerce-strip {
  margin-top: 2px;
}

.dashboard-creator-total-label {
  margin: 0;
  color: var(--factory-dim);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  line-height: 1.1;
  text-transform: uppercase;
}

.dashboard-creator-total-label {
  margin-bottom: -7px;
}

.dashboard-creator-network-breakdown {
  display: grid;
  gap: 8px;
}

.dashboard-creator-network-breakdown summary {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 12px;
  border: 1px solid rgba(220, 230, 255, 0.13);
  border-radius: 13px;
  background: rgba(0, 0, 0, 0.12);
  color: var(--factory-dim);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.dashboard-creator-network-breakdown summary::-webkit-details-marker {
  display: none;
}

.dashboard-creator-network-breakdown summary::after {
  content: "+";
  flex: 0 0 auto;
  color: rgba(246, 248, 255, 0.86);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
}

.dashboard-creator-network-breakdown[open] summary::after {
  content: "-";
}

.dashboard-creator-network-breakdown summary span {
  min-width: 0;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  line-height: 1.1;
  text-transform: uppercase;
}

.dashboard-creator-network-breakdown summary small {
  flex: 0 0 auto;
  color: rgba(160, 169, 190, 0.82);
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.1;
  text-transform: uppercase;
}

.dashboard-creator-network-grid {
  display: grid;
  gap: 8px;
}

.dashboard-creator-network-card {
  min-width: 0;
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(220, 230, 255, 0.1);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.14);
}

.dashboard-creator-network-head {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.dashboard-creator-network-head strong {
  min-width: 0;
  overflow: hidden;
  color: rgba(246, 248, 255, 0.9);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.12;
  text-overflow: ellipsis;
}

.dashboard-creator-network-head span {
  flex: 0 0 auto;
  color: var(--factory-dim);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-creator-network-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.dashboard-creator-network-metrics > span {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 3px;
  min-height: 46px;
  padding: 7px 5px;
  border: 1px solid rgba(220, 230, 255, 0.08);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.16);
  text-align: center;
}

.dashboard-creator-network-metrics > span > b {
  max-width: 100%;
  overflow: hidden;
  color: var(--factory-accent);
  font-size: clamp(0.74rem, 1vw, 0.92rem);
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-creator-network-metrics > span > small {
  max-width: 100%;
  color: var(--factory-dim);
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.08;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.dashboard-creator-network-metrics .dashboard-engagement-breakdown {
  grid-column: 1 / -1;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.dashboard-creator-network-metrics .dashboard-engagement-breakdown-grid {
  gap: 4px;
}

.dashboard-creator-network-metrics .dashboard-engagement-breakdown-card {
  min-height: 46px;
  padding: 6px 4px;
  border-radius: 9px;
}

.dashboard-creator-network-metrics .dashboard-engagement-breakdown-card b {
  font-size: clamp(0.68rem, 0.82vw, 0.78rem);
}

.dashboard-creator-network-metrics .dashboard-engagement-breakdown-card i {
  font-size: 0.46rem;
}

.dashboard-creator-product-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.dashboard-creator-product-pills span {
  min-height: 27px;
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 0 10px;
  border: 1px solid rgba(255, 232, 177, 0.18);
  border-radius: 999px;
  background: rgba(255, 232, 177, 0.06);
  color: rgba(255, 232, 177, 0.82);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.dashboard-product-stat-foot,
.dashboard-creator-stat-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--factory-dim);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 16px;
}

.dashboard-grid--lower {
  margin-top: 16px;
}

.factory-dashboard > .dashboard-control-row,
.factory-dashboard > .dashboard-panel,
.factory-dashboard > .dashboard-grid {
  margin-bottom: clamp(24px, 2.4vw, 34px);
}

.factory-dashboard > .dashboard-control-row:last-child,
.factory-dashboard > .dashboard-panel:last-child,
.factory-dashboard > .dashboard-grid:last-child {
  margin-bottom: 0;
}

.dashboard-panel {
  position: relative;
  isolation: isolate;
  min-width: 0;
  padding: clamp(20px, 2.5vw, 30px);
  border-radius: 26px;
  overflow: hidden;
}

body.is-dashboard-refreshing .dashboard-panel::before,
body.is-dashboard-refreshing .dashboard-factory-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 20;
  border-radius: inherit;
  background:
    radial-gradient(circle at 50% 0%, rgba(196, 219, 255, 0.14), transparent 46%),
    linear-gradient(180deg, rgba(4, 7, 13, 0.72), rgba(0, 0, 0, 0.84));
  box-shadow:
    inset 0 0 0 1px rgba(220, 230, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(3px) saturate(0.72);
  pointer-events: auto;
}

body.is-dashboard-refreshing .dashboard-panel::after,
body.is-dashboard-refreshing .dashboard-factory-card::after {
  content: "Статистика обновляется\\A Дождитесь окончания сбора";
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 21;
  width: min(calc(100% - 36px), 420px);
  min-height: 78px;
  display: grid;
  place-items: center;
  padding: 16px 18px;
  border: 1px solid rgba(196, 219, 255, 0.28);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(18, 24, 40, 0.94), rgba(5, 8, 16, 0.96)),
    rgba(0, 0, 0, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 18px 46px rgba(0, 0, 0, 0.34),
    0 0 30px rgba(196, 219, 255, 0.12);
  color: rgba(246, 248, 255, 0.94);
  font-size: clamp(0.72rem, 1vw, 0.86rem);
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1.35;
  text-align: center;
  text-transform: uppercase;
  white-space: pre-line;
  transform: translate(-50%, -50%);
  pointer-events: auto;
}

.dashboard-panel--wide {
  grid-column: 1 / -1;
}

.dashboard-panel-head {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-top: 44px;
  margin-bottom: 20px;
}

.dashboard-panel-head > div:first-child {
  min-width: 0;
}

.dashboard-collapsible > .dashboard-panel-head::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 34px;
  height: 34px;
  background: url("/assets/logo.png?v=20260506-003300") center / contain no-repeat;
  filter: drop-shadow(0 0 12px rgba(246, 248, 255, 0.16));
  opacity: 0.82;
  pointer-events: none;
}

.dashboard-panel-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.dashboard-collapse-toggle {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  flex: 0 0 auto;
  min-height: 30px;
  border: 1px solid rgba(220, 230, 255, 0.15);
  border-radius: 999px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.045);
  color: rgba(231, 236, 250, 0.72);
  cursor: pointer;
  font: inherit;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease, transform 180ms ease;
}

.dashboard-collapse-toggle:hover,
.dashboard-collapse-toggle:focus-visible {
  border-color: rgba(246, 248, 255, 0.38);
  background: rgba(255, 255, 255, 0.075);
  color: rgba(246, 248, 255, 0.95);
  transform: translateY(-1px);
}

.dashboard-collapse-toggle:focus-visible {
  outline: 2px solid rgba(196, 219, 255, 0.62);
  outline-offset: 3px;
}

.dashboard-collapsible.is-collapsed > :not(.dashboard-panel-head) {
  display: none !important;
}

.dashboard-collapsible.is-collapsed > .dashboard-panel-head {
  margin-bottom: 0;
}

.dashboard-article-report-panel.is-collapsed .dashboard-collapse-toggle,
.dashboard-spend-panel.is-collapsed .dashboard-collapse-toggle {
  animation: dashboardCollapsePulse 1.7s ease-in-out infinite;
  border-color: rgba(196, 219, 255, 0.38);
  background: rgba(196, 219, 255, 0.06);
  box-shadow:
    0 0 0 0 rgba(196, 219, 255, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

@keyframes dashboardCollapsePulse {
  0%,
  100% {
    border-color: rgba(196, 219, 255, 0.28);
    box-shadow:
      0 0 0 0 rgba(196, 219, 255, 0),
      inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }
  50% {
    border-color: rgba(170, 250, 255, 0.62);
    box-shadow:
      0 0 24px rgba(170, 250, 255, 0.22),
      inset 0 1px 0 rgba(255, 255, 255, 0.14);
  }
}

.dashboard-panel h2 {
  margin: 7px 0 0;
  font-size: clamp(1.35rem, 2.3vw, 2.15rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.dashboard-panel-status {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 232, 177, 0.24);
  background: rgba(255, 232, 177, 0.07);
  color: rgba(255, 232, 177, 0.78);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
}

.dashboard-document-action {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid rgba(196, 219, 255, 0.24);
  border-radius: 999px;
  background: rgba(196, 219, 255, 0.07);
  color: rgba(196, 219, 255, 0.9);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  transition: border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.dashboard-document-action:hover,
.dashboard-document-action:focus-visible {
  border-color: rgba(196, 219, 255, 0.48);
  color: #fff;
  transform: translateY(-1px);
}

.dashboard-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.2);
}

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

.dashboard-table th,
.dashboard-table td {
  padding: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  vertical-align: middle;
}

.dashboard-table th {
  color: var(--factory-dim);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dashboard-table td {
  color: var(--factory-muted);
  font-size: 0.92rem;
}

.dashboard-table-link {
  display: inline-block;
  max-width: 260px;
  overflow: hidden;
  color: rgba(196, 219, 255, 0.92);
  text-decoration: none;
  text-overflow: ellipsis;
  vertical-align: bottom;
  white-space: nowrap;
}

.dashboard-table-link:hover,
.dashboard-table-link:focus-visible {
  color: #fff;
}

.dashboard-table-link--stacked {
  max-width: 100%;
}

.dashboard-account-links,
.dashboard-network-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.dashboard-account-links {
  max-width: 320px;
}

.dashboard-video-link-cell {
  display: grid;
  justify-items: start;
  gap: 6px;
  min-width: 0;
}

.dashboard-network-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(196, 219, 255, 0.18);
  border-radius: 999px;
  background: rgba(196, 219, 255, 0.06);
  color: rgba(231, 236, 250, 0.76);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.dashboard-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(220, 230, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--factory-muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.dashboard-status-pill.is-ok {
  border-color: rgba(158, 255, 190, 0.26);
  color: rgba(158, 255, 190, 0.82);
}

.dashboard-status-pill.is-waiting {
  border-color: rgba(255, 232, 177, 0.28);
  color: rgba(255, 232, 177, 0.86);
}

.dashboard-status-pill.is-error {
  border-color: rgba(255, 164, 164, 0.3);
  color: rgba(255, 164, 164, 0.9);
}

.dashboard-product-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(255, 84, 84, 0.34);
  border-radius: 999px;
  background: rgba(255, 84, 84, 0.07);
  color: rgba(255, 164, 164, 0.94);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.dashboard-product-connection-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(220, 230, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--factory-muted);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.dashboard-product-connection-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 16px currentColor;
}

.dashboard-product-connection-pill.is-connected {
  border-color: rgba(110, 255, 156, 0.3);
  background: rgba(110, 255, 156, 0.07);
  color: rgba(158, 255, 190, 0.92);
}

.dashboard-product-connection-pill.is-warning {
  border-color: rgba(255, 206, 96, 0.32);
  background: rgba(255, 206, 96, 0.07);
  color: rgba(255, 232, 177, 0.92);
}

.dashboard-product-connection-pill.is-disconnected,
.dashboard-product-connection-pill.is-stopped {
  border-color: rgba(255, 84, 84, 0.34);
  background: rgba(255, 84, 84, 0.07);
  color: rgba(255, 164, 164, 0.94);
}

.dashboard-product-status-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff5454;
  box-shadow: 0 0 16px rgba(255, 84, 84, 0.75);
}

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

.dashboard-empty-row td {
  padding: 34px 18px;
  text-align: center;
  color: rgba(231, 236, 250, 0.54);
}

.dashboard-table-action-row td {
  padding: 18px;
  text-align: center;
}

.dashboard-table-action-row .dashboard-mini-btn {
  width: auto;
  min-width: 220px;
}

.dashboard-table-action-buttons {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.dashboard-table-action-buttons span {
  color: rgba(231, 236, 250, 0.58);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.dashboard-social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}

.dashboard-social-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 58px;
  padding: 13px 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
}

.dashboard-social-card span {
  font-weight: 800;
}

.dashboard-social-card strong {
  color: var(--factory-dim);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-align: right;
  text-transform: uppercase;
}

.dashboard-social-card.is-active {
  border-color: rgba(158, 255, 190, 0.28);
  background:
    radial-gradient(circle at 0% 50%, rgba(158, 255, 190, 0.12), transparent 42%),
    rgba(255, 255, 255, 0.045);
}

.dashboard-social-card.is-active strong {
  color: rgba(158, 255, 190, 0.78);
}

.dashboard-roadmap {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dashboard-roadmap li {
  position: relative;
  min-height: 58px;
  padding: 16px 16px 16px 46px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--factory-muted);
  line-height: 1.45;
}

.dashboard-roadmap li::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 18px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--factory-accent);
  box-shadow: 0 0 18px rgba(196, 219, 255, 0.5);
}

.dashboard-admin-panel,
.dashboard-customer-panel,
.dashboard-auth-note,
.dashboard-subscription-lock,
.dashboard-subscription-manage {
  margin-bottom: 16px;
  padding: clamp(20px, 2.7vw, 34px);
  border: 1px solid rgba(220, 230, 255, 0.18);
  border-radius: 28px;
  background:
    radial-gradient(circle at 18% 0%, rgba(196, 219, 255, 0.12), transparent 34%),
    linear-gradient(150deg, rgba(14, 18, 31, 0.9), rgba(3, 5, 11, 0.94));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 28px 80px rgba(0, 0, 0, 0.36);
}

.dashboard-admin-panel[hidden],
.dashboard-customer-panel[hidden],
.dashboard-auth-note[hidden],
.dashboard-customer-actions[hidden],
.dashboard-subscription-lock[hidden],
.dashboard-subscription-manage[hidden],
.dashboard-subscription-modal[hidden],
.dashboard-daily-limit-modal[hidden],
.dashboard-run-errors-modal[hidden] {
  display: none;
}

.dashboard-control-row .dashboard-customer-panel {
  grid-column: 1 / -1;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.dashboard-customer-panel .dashboard-factory-list {
  grid-template-columns: 1fr;
}

.dashboard-factory-switcher {
  margin-bottom: 12px;
}

.dashboard-factory-switcher[hidden] {
  display: none;
}

.dashboard-factory-switcher label {
  display: grid;
  gap: 7px;
}

.dashboard-factory-switcher span {
  color: var(--factory-dim);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
}

.dashboard-factory-switcher select {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(196, 219, 255, 0.22);
  border-radius: 999px;
  padding: 0 16px;
  background: rgba(3, 6, 14, 0.82);
  color: rgba(246, 248, 255, 0.92);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 850;
  outline: none;
}

.dashboard-factory-switcher select:focus {
  border-color: rgba(196, 219, 255, 0.48);
  box-shadow: 0 0 0 3px rgba(196, 219, 255, 0.08);
}

@keyframes dashboardLaunchHologram {
  0% { background-position: 0% 50%; }
  100% { background-position: 240% 50%; }
}

@keyframes dashboardTeamAccessPulse {
  0%, 100% {
    box-shadow:
      0 0 22px rgba(216, 232, 255, 0.16),
      0 0 42px rgba(238, 220, 255, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.62);
    filter: saturate(1);
  }
  50% {
    box-shadow:
      0 0 30px rgba(216, 232, 255, 0.28),
      0 0 62px rgba(238, 220, 255, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.76);
    filter: saturate(1.18);
  }
}

.dashboard-customer-actions {
  width: min(100%, 1120px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  justify-items: center;
  margin: -2px auto 18px;
  gap: 10px;
}

.dashboard-customer-actions.is-preview-locked {
  opacity: 0.92;
}

.dashboard-customer-actions.is-preview-locked::after {
  content: "Функции откроются после оплаты подписки";
  flex: 1 1 100%;
  display: inline-flex;
  justify-content: center;
  color: rgba(255, 232, 177, 0.82);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
}

.dashboard-refresh-network-panel {
  width: 100%;
  max-width: min(100%, 940px);
  display: grid;
  gap: 8px;
  justify-items: center;
}

.dashboard-refresh-network-panel.is-preview-locked {
  filter: saturate(0.82);
}

.dashboard-refresh-network-panel[hidden] {
  display: none;
}

.dashboard-refresh-network-panel > span {
  color: var(--factory-dim);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  line-height: 1;
  text-transform: uppercase;
}

.dashboard-refresh-network-options {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: min(100%, 940px);
}

.dashboard-refresh-network-options button {
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid rgba(196, 219, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--factory-dim);
  font: inherit;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease, transform 180ms ease;
}

.dashboard-refresh-network-options button:hover,
.dashboard-refresh-network-options button:focus-visible {
  border-color: rgba(246, 248, 255, 0.38);
  color: rgba(246, 248, 255, 0.96);
  transform: translateY(-1px);
}

.dashboard-refresh-network-options button.is-active {
  border-color: rgba(196, 219, 255, 0.46);
  background: rgba(196, 219, 255, 0.14);
  color: rgba(246, 248, 255, 0.96);
  box-shadow: inset 0 0 0 1px rgba(196, 219, 255, 0.12);
}

.dashboard-refresh-launch-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: 12px;
  width: min(100%, 820px);
}

.dashboard-refresh-launch-actions[hidden] {
  display: none;
}

.dashboard-customer-actions .dashboard-primary-btn {
  width: auto;
  min-width: max-content;
  max-width: calc(100vw - 32px);
  justify-self: center;
  padding-inline: clamp(22px, 2.2vw, 34px);
  line-height: 1.15;
  text-align: center;
  white-space: normal;
}

.dashboard-customer-actions .dashboard-secondary-btn {
  width: auto;
  min-width: max-content;
  max-width: calc(100vw - 32px);
  justify-self: center;
  padding-inline: clamp(22px, 2.2vw, 34px);
}

.dashboard-customer-actions #dashboardRefreshFactoryGrowthBtn {
  width: min(100%, 440px);
  min-width: clamp(180px, 18vw, 360px);
  margin: 4px auto 0;
}

.dashboard-customer-actions #dashboardRefreshFactoryGrowthBtn {
  border-color: rgba(216, 232, 255, 0.48);
  background:
    linear-gradient(98deg, #f7e8c2 0%, #d8e8ff 28%, #eddcff 52%, #9edcff 74%, #f7e8c2 100%);
  background-size: 240% 100%;
  color: #070a12;
  box-shadow:
    0 0 22px rgba(216, 232, 255, 0.16),
    0 0 44px rgba(238, 220, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.62);
  animation: dashboardLaunchHologram 5.8s linear infinite;
}

.dashboard-customer-actions #dashboardRefreshFactoryGrowthBtn {
  flex-direction: column;
  gap: 3px;
  min-height: 70px;
  border-color: rgba(186, 152, 255, 0.78);
  font-family: "Noto Sans", "Inter", system-ui, sans-serif;
  font-size: clamp(1.12rem, 1.65vw, 1.52rem);
  font-weight: 850;
  letter-spacing: 0.045em;
  line-height: 1.12;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.18),
    0 0 0.01em rgba(7, 10, 18, 0.5);
}

.dashboard-customer-actions #dashboardRefreshFactoryGrowthBtn span {
  display: block;
  max-width: min(100%, 760px);
  text-wrap: balance;
}

.dashboard-customer-actions #dashboardRefreshFactoryGrowthBtn span + span {
  font-size: 0.86em;
  font-weight: 850;
  letter-spacing: 0.055em;
}

.dashboard-customer-actions #dashboardRefreshFactoryGrowthBtn:hover,
.dashboard-customer-actions #dashboardRefreshFactoryGrowthBtn:focus-visible {
  border-color: rgba(246, 248, 255, 0.72);
  box-shadow:
    0 0 28px rgba(216, 232, 255, 0.24),
    0 0 54px rgba(238, 220, 255, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.dashboard-customer-actions #dashboardRefreshFactoryGrowthBtn:hover,
.dashboard-customer-actions #dashboardRefreshFactoryGrowthBtn:focus-visible {
  border-color: rgba(213, 195, 255, 0.9);
}

.dashboard-customer-actions #dashboardRefreshFactoryGrowthBtn:disabled {
  animation: none;
}

.dashboard-customer-actions #dashboardRestoreRunBtn {
  min-height: 54px;
  margin: 4px auto 0;
  border-color: rgba(196, 219, 255, 0.28);
  background: rgba(196, 219, 255, 0.055);
  color: rgba(232, 241, 255, 0.92);
}

.dashboard-customer-actions #dashboardRestoreRunBtn:hover,
.dashboard-customer-actions #dashboardRestoreRunBtn:focus-visible {
  border-color: rgba(216, 232, 255, 0.52);
  background: rgba(196, 219, 255, 0.1);
}

.dashboard-customer-actions #dashboardManualAdjustmentJumpBtn {
  min-height: 48px;
  margin: 0 auto;
  border-color: rgba(141, 243, 255, 0.3);
  background: rgba(141, 243, 255, 0.07);
  color: rgba(220, 250, 255, 0.94);
}

.dashboard-customer-actions #dashboardManualAdjustmentJumpBtn:hover,
.dashboard-customer-actions #dashboardManualAdjustmentJumpBtn:focus-visible {
  border-color: rgba(141, 243, 255, 0.58);
  background: rgba(141, 243, 255, 0.12);
}

.dashboard-refresh-limit-note {
  flex: 1 1 100%;
  max-width: min(100%, 1040px);
  margin: 2px auto 0;
  color: rgba(216, 232, 255, 0.68);
  font-size: clamp(0.76rem, 1.25vw, 0.92rem);
  font-weight: 800;
  line-height: 1.45;
  text-align: center;
  white-space: pre-line;
}

.dashboard-refresh-limit-note.is-error {
  color: rgba(237, 220, 255, 0.98);
  text-shadow: 0 0 18px rgba(186, 152, 255, 0.28);
}

.dashboard-subscription-lock,
.dashboard-subscription-manage {
  margin: 14px 0 0;
  width: 100%;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 232, 177, 0.1), transparent 36%),
    linear-gradient(150deg, rgba(16, 17, 25, 0.9), rgba(4, 5, 10, 0.94));
}

.dashboard-subscription-stack .dashboard-subscription-lock,
.dashboard-subscription-stack .dashboard-subscription-manage {
  margin: 0;
}

.dashboard-subscription-lock h2,
.dashboard-subscription-manage h2,
.dashboard-subscription-card h2 {
  margin: 10px 0 8px;
  font-size: clamp(1.4rem, 2.6vw, 2.5rem);
  line-height: 1.05;
}

.dashboard-subscription-manage.is-collapsed .dashboard-collapse-toggle {
  min-height: 52px;
  min-width: clamp(170px, 16vw, 260px);
  padding: 0 24px;
  border-color: rgba(216, 232, 255, 0.58);
  background:
    linear-gradient(98deg, #f7e8c2 0%, #d8e8ff 28%, #eddcff 52%, #9edcff 74%, #f7e8c2 100%);
  background-size: 240% 100%;
  color: #070a12;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  box-shadow:
    0 0 22px rgba(216, 232, 255, 0.16),
    0 0 42px rgba(238, 220, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.62);
  animation:
    dashboardLaunchHologram 5.8s linear infinite,
    dashboardTeamAccessPulse 1.9s ease-in-out infinite;
}

.dashboard-subscription-manage.is-collapsed .dashboard-collapse-toggle:hover,
.dashboard-subscription-manage.is-collapsed .dashboard-collapse-toggle:focus-visible {
  border-color: rgba(246, 248, 255, 0.78);
  color: #03050a;
  box-shadow:
    0 0 34px rgba(216, 232, 255, 0.3),
    0 0 70px rgba(238, 220, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.dashboard-subscription-lock p,
.dashboard-subscription-manage p,
.dashboard-subscription-summary {
  color: var(--factory-muted);
  line-height: 1.45;
}

.dashboard-subscription-plans,
.dashboard-subscription-modal-plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.dashboard-subscription-plan {
  min-height: 86px;
  display: grid;
  align-content: center;
  gap: 8px;
  border: 1px solid rgba(220, 230, 255, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--factory-ink);
  cursor: pointer;
  text-align: left;
  padding: 14px 16px;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.dashboard-subscription-plan:hover,
.dashboard-subscription-plan:focus-visible,
.dashboard-subscription-plan.is-selected {
  border-color: rgba(255, 232, 177, 0.52);
  background: rgba(255, 232, 177, 0.1);
  transform: translateY(-1px);
}

.dashboard-subscription-plan span {
  color: var(--factory-muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.dashboard-subscription-plan strong {
  font-size: 1.05rem;
}

.dashboard-subscription-plan small {
  color: rgba(220, 230, 255, 0.56);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dashboard-subscription-plan em {
  width: fit-content;
  border: 1px solid rgba(144, 238, 180, 0.34);
  border-radius: 999px;
  padding: 5px 8px;
  color: #9ee7b5;
  background: rgba(69, 186, 118, 0.1);
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.1;
  text-transform: uppercase;
}

.dashboard-subscription-discounts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.dashboard-unlock-form,
.dashboard-colleague-form {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.dashboard-colleague-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dashboard-colleague-actions .dashboard-secondary-btn {
  flex: 1 1 220px;
  min-width: 0;
}

.dashboard-factory-access-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.dashboard-factory-access-list[hidden] {
  display: none;
}

.dashboard-factory-access-head,
.dashboard-factory-access-item,
.dashboard-factory-access-chip {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dashboard-factory-access-head,
.dashboard-factory-access-item {
  justify-content: space-between;
}

.dashboard-factory-access-head {
  color: rgba(220, 230, 255, 0.82);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-factory-access-items {
  display: grid;
  gap: 8px;
}

.dashboard-factory-access-item,
.dashboard-factory-access-chip {
  border: 1px solid rgba(220, 230, 255, 0.14);
  border-radius: 14px;
  background: rgba(6, 9, 18, 0.46);
  padding: 10px;
}

.dashboard-factory-access-item > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.dashboard-factory-access-item strong {
  overflow: hidden;
  color: var(--factory-ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-factory-access-item span,
.dashboard-access-empty,
.dashboard-access-self {
  color: rgba(160, 169, 190, 0.84);
  font-size: 0.78rem;
  font-weight: 800;
}

.dashboard-factory-access-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.dashboard-factory-access-chip {
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 100%;
}

.dashboard-factory-access-chip > span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.dashboard-subscription-add-factory {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(172, 132, 255, 0.28);
  border-radius: 18px;
  background:
    radial-gradient(circle at 15% 0%, rgba(172, 132, 255, 0.16), transparent 42%),
    rgba(172, 132, 255, 0.07);
  padding: 16px;
}

.dashboard-subscription-add-factory[hidden] {
  display: none;
}

.dashboard-subscription-add-factory p {
  margin: 0;
  color: rgba(220, 230, 255, 0.74);
  font-size: 0.92rem;
  font-weight: 750;
  line-height: 1.45;
}

.dashboard-plan-return-btn {
  border-color: rgba(255, 232, 177, 0.32);
  color: rgba(255, 232, 177, 0.94);
}

.dashboard-unlock-form label,
.dashboard-colleague-form label {
  display: grid;
  gap: 8px;
  color: var(--factory-muted);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dashboard-unlock-form input,
.dashboard-colleague-form textarea {
  width: 100%;
  border: 1px solid rgba(220, 230, 255, 0.18);
  border-radius: 16px;
  background: rgba(6, 9, 18, 0.8);
  color: var(--factory-ink);
  font: inherit;
  padding: 14px 16px;
  outline: none;
}

.dashboard-subscription-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 36px);
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(18px);
}

.dashboard-subscription-card {
  position: relative;
  width: min(100%, 760px);
  max-height: min(92vh, 940px);
  overflow: auto;
  display: grid;
  align-content: start;
  gap: clamp(12px, 1.45vw, 18px);
  border: 1px solid rgba(220, 230, 255, 0.2);
  border-radius: 30px;
  background:
    radial-gradient(circle at 16% 0%, rgba(196, 219, 255, 0.14), transparent 34%),
    linear-gradient(150deg, rgba(14, 18, 31, 0.98), rgba(3, 5, 11, 0.98));
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.56);
  padding: clamp(22px, 4vw, 42px);
}

.dashboard-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(220, 230, 255, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  color: var(--factory-ink);
  font-size: 1.4rem;
  cursor: pointer;
}

.dashboard-subscription-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 1.4vw, 16px);
  align-items: start;
}

.dashboard-subscription-payment-actions {
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(0, 0.86fr);
  gap: clamp(10px, 1.4vw, 14px);
  align-items: stretch;
}

.dashboard-subscription-payment-actions .dashboard-primary-btn,
.dashboard-subscription-payment-actions .dashboard-secondary-btn {
  width: 100%;
  min-height: 54px;
  padding-inline: clamp(14px, 2vw, 22px);
  text-align: center;
}

.dashboard-invoice-submit-btn {
  border-color: rgba(255, 232, 166, 0.28);
  background:
    linear-gradient(135deg, rgba(255, 232, 166, 0.1), rgba(141, 243, 255, 0.06)),
    rgba(255, 255, 255, 0.045);
  color: rgba(255, 238, 198, 0.94);
}

.dashboard-invoice-payment {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 14px;
  padding: clamp(16px, 2vw, 22px);
  border: 1px solid rgba(141, 243, 255, 0.2);
  border-radius: 22px;
  background:
    radial-gradient(circle at 8% 0%, rgba(141, 243, 255, 0.14), transparent 38%),
    radial-gradient(circle at 92% 18%, rgba(255, 232, 166, 0.12), transparent 34%),
    linear-gradient(145deg, rgba(9, 18, 27, 0.88), rgba(4, 6, 12, 0.9));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 18px 42px rgba(0, 0, 0, 0.22);
}

.dashboard-invoice-payment::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, rgba(141, 243, 255, 0.88), rgba(255, 232, 166, 0.72), rgba(200, 165, 255, 0.78));
  opacity: 0.82;
}

.dashboard-invoice-payment > * {
  position: relative;
}

.dashboard-invoice-payment-head {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: flex-start;
  justify-content: space-between;
}

.dashboard-invoice-payment-head h3,
.dashboard-invoice-payment-copy,
.dashboard-invoice-payment-details,
.dashboard-invoice-payment-details dt,
.dashboard-invoice-payment-details dd {
  margin: 0;
}

.dashboard-invoice-payment-head h3 {
  margin-top: 5px;
  color: rgba(246, 248, 255, 0.96);
  font-size: clamp(1.05rem, 1.8vw, 1.45rem);
  font-weight: 900;
  line-height: 1.08;
}

.dashboard-invoice-payment-head > span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(255, 232, 166, 0.2);
  border-radius: 999px;
  background: rgba(255, 232, 166, 0.08);
  color: rgba(255, 236, 190, 0.9);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dashboard-invoice-payment-copy {
  color: rgba(225, 232, 248, 0.82);
  font-size: 0.88rem;
  font-weight: 750;
  line-height: 1.5;
}

.dashboard-invoice-payment-copy strong {
  color: rgba(255, 232, 166, 0.96);
}

.dashboard-invoice-payment-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.dashboard-invoice-payment-details div {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 11px 12px;
  border: 1px solid rgba(220, 230, 255, 0.1);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.18);
}

.dashboard-invoice-payment-details div:nth-child(1),
.dashboard-invoice-payment-details div:nth-child(2),
.dashboard-invoice-payment-details div:nth-child(10) {
  grid-column: 1 / -1;
}

.dashboard-invoice-payment-details dt {
  color: rgba(168, 178, 204, 0.78);
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.dashboard-invoice-payment-details dd {
  color: rgba(245, 248, 255, 0.92);
  font-size: 0.82rem;
  font-weight: 820;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.dashboard-factory-subscription strong {
  color: rgba(255, 232, 177, 0.9);
}

.dashboard-factory-period {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: baseline;
}

.dashboard-factory-period span {
  color: rgba(160, 169, 190, 0.76);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dashboard-factory-period strong {
  color: rgba(196, 219, 255, 0.95);
}

.dashboard-factory-period-note {
  width: 100%;
  min-width: 0;
  max-width: none;
  margin: -2px 0 2px;
  background: linear-gradient(90deg, rgba(143, 245, 233, 0.98), rgba(246, 248, 255, 0.96), rgba(191, 167, 255, 0.92));
  -webkit-background-clip: text;
  background-clip: text;
  color: rgba(246, 248, 255, 0.96);
  font-size: clamp(0.92rem, 1.28vw, 1.64rem);
  font-weight: 820;
  line-height: 1.2;
  overflow: hidden;
  text-shadow: 0 0 18px rgba(143, 245, 233, 0.22);
  text-overflow: clip;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}

.dashboard-admin-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

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

.dashboard-field,
.dashboard-checks {
  min-width: 0;
  display: grid;
  gap: 10px;
  margin: 0;
}

.dashboard-field--wide,
.dashboard-checks,
.dashboard-report-documents,
.dashboard-admin-actions,
.dashboard-form-status {
  grid-column: 1 / -1;
}

.dashboard-field span,
.dashboard-checks legend,
.dashboard-report-documents legend {
  color: var(--factory-dim);
  font-size: clamp(0.66rem, 0.9vw, 0.72rem);
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.25;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.dashboard-field input,
.dashboard-field select,
.dashboard-field textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(220, 230, 255, 0.16);
  border-radius: 16px;
  padding: 13px 15px;
  background: rgba(3, 6, 14, 0.72);
  color: var(--factory-ink);
  font: inherit;
  font-size: 16px;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

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

.dashboard-subscription-card > .dashboard-primary-btn {
  justify-self: start;
  width: min(100%, 280px);
  margin-top: 2px;
  min-height: 54px;
  padding-inline: 22px;
  text-align: center;
  white-space: normal;
  line-height: 1.15;
}

.dashboard-run-errors-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 36px);
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(18px);
}

.dashboard-run-errors-card {
  position: relative;
  width: min(100%, 900px);
  max-height: min(92vh, 940px);
  overflow: auto;
  display: grid;
  align-content: start;
  gap: 16px;
  border: 1px solid rgba(220, 230, 255, 0.2);
  border-radius: 30px;
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 232, 177, 0.12), transparent 34%),
    linear-gradient(150deg, rgba(14, 18, 31, 0.98), rgba(3, 5, 11, 0.98));
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.6);
  padding: clamp(22px, 4vw, 42px);
}

.dashboard-run-errors-card h2 {
  margin: 8px 0 0;
  font-size: clamp(1.55rem, 3vw, 2.7rem);
  line-height: 1.05;
}

.dashboard-run-errors-summary {
  margin: 0;
  color: var(--factory-muted);
  line-height: 1.45;
}

.dashboard-run-errors-list {
  display: grid;
  gap: 10px;
}

.dashboard-run-error-card {
  min-width: 0;
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(255, 155, 155, 0.22);
  border-radius: 18px;
  background: rgba(255, 112, 112, 0.055);
}

.dashboard-run-error-head {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  align-items: center;
}

.dashboard-run-error-head strong {
  min-width: 0;
  color: var(--factory-ink);
  font-size: 0.98rem;
  line-height: 1.28;
  overflow-wrap: anywhere;
}

.dashboard-run-error-meta {
  margin: 0;
  color: var(--factory-muted);
  font-size: 0.84rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.dashboard-run-error-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dashboard-run-error-link {
  width: fit-content;
  max-width: 100%;
  border: 1px solid rgba(196, 219, 255, 0.22);
  border-radius: 999px;
  padding: 7px 10px;
  color: rgba(216, 232, 255, 0.94);
  background: rgba(196, 219, 255, 0.08);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.dashboard-field input:focus,
.dashboard-field select:focus,
.dashboard-field textarea:focus {
  border-color: rgba(196, 219, 255, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 0 3px rgba(196, 219, 255, 0.08);
}

.dashboard-checks {
  padding: 14px;
  border: 1px solid rgba(220, 230, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
}

.dashboard-checks legend,
.dashboard-report-documents legend {
  padding: 0 6px;
}

.dashboard-report-documents {
  min-width: 0;
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(196, 219, 255, 0.14);
  border-radius: 18px;
  background: rgba(196, 219, 255, 0.035);
}

.dashboard-report-documents-list {
  display: grid;
  gap: 10px;
}

.dashboard-report-document-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.55fr) minmax(220px, 1fr) auto auto;
  gap: 10px;
  align-items: center;
}

.dashboard-report-document-row input {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  border: 1px solid rgba(220, 230, 255, 0.16);
  border-radius: 16px;
  padding: 13px 15px;
  background: rgba(3, 6, 14, 0.72);
  color: var(--factory-ink);
  font: inherit;
  font-size: 16px;
  outline: none;
}

.dashboard-report-document-row input:focus {
  border-color: rgba(196, 219, 255, 0.42);
  box-shadow: 0 0 0 3px rgba(196, 219, 255, 0.08);
}

.dashboard-report-document-remove {
  width: 44px;
  min-width: 44px;
  height: 44px;
  border: 1px solid rgba(220, 230, 255, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  color: rgba(246, 248, 255, 0.82);
  cursor: pointer;
  font: inherit;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1;
}

.dashboard-report-document-remove:hover,
.dashboard-report-document-remove:focus-visible {
  border-color: rgba(255, 196, 196, 0.36);
  color: rgba(255, 220, 220, 0.96);
  outline: none;
}

.dashboard-report-document-status {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid rgba(220, 230, 255, 0.14);
  border-radius: 14px;
  color: var(--factory-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.05;
  text-transform: uppercase;
}

.dashboard-report-document-status input {
  width: 16px;
  height: 16px;
  accent-color: #ff7b7b;
}

.dashboard-report-documents p {
  margin: 0;
  color: var(--factory-muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.dashboard-checks label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 32px;
  color: var(--factory-muted);
  font-size: 0.92rem;
}

.dashboard-checks input {
  width: 17px;
  height: 17px;
  accent-color: #c4dbff;
}

.dashboard-product-statuses input:checked {
  accent-color: #ff5454;
}

.dashboard-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dashboard-primary-btn,
.dashboard-secondary-btn,
.dashboard-mini-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  padding: 0 18px;
  border: 1px solid rgba(246, 248, 255, 0.22);
  color: var(--factory-ink);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 180ms ease, transform 180ms ease, opacity 180ms ease;
}

.dashboard-primary-btn {
  background: rgba(246, 248, 255, 0.9);
  color: #090b12;
}

.dashboard-secondary-btn,
.dashboard-mini-btn {
  background: rgba(255, 255, 255, 0.055);
}

.dashboard-primary-btn:hover,
.dashboard-secondary-btn:hover,
.dashboard-mini-btn:hover {
  border-color: rgba(246, 248, 255, 0.46);
  transform: translateY(-1px);
}

.dashboard-primary-btn:disabled,
.dashboard-secondary-btn:disabled,
.dashboard-mini-btn:disabled {
  opacity: 0.58;
  cursor: wait;
  transform: none;
}

.dashboard-mini-btn {
  min-height: 34px;
  padding: 0 12px;
  font-size: 0.66rem;
}

.dashboard-mini-btn.is-active {
  border-color: rgba(158, 255, 190, 0.34);
  background: rgba(95, 210, 160, 0.13);
  color: rgba(219, 255, 231, 0.96);
}

.dashboard-mini-btn.is-danger {
  border-color: rgba(255, 112, 112, 0.42);
  background: rgba(255, 84, 84, 0.1);
  color: rgba(255, 214, 214, 0.96);
}

.dashboard-mini-btn.is-danger:hover {
  border-color: rgba(255, 148, 148, 0.68);
  background: rgba(255, 84, 84, 0.16);
}

.dashboard-form-status {
  min-height: 20px;
  margin: 0;
  color: var(--factory-dim);
  font-size: 0.9rem;
  line-height: 1.35;
}

.dashboard-form-status.is-ok {
  color: rgba(158, 255, 190, 0.78);
}

.dashboard-form-status.is-error {
  color: rgba(255, 164, 164, 0.88);
}

.dashboard-admin-note {
  align-self: stretch;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 20px;
  border: 1px solid rgba(255, 232, 177, 0.14);
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 232, 177, 0.12), transparent 34%),
    rgba(255, 255, 255, 0.035);
}

.dashboard-admin-note h3,
.dashboard-admin-note p,
.dashboard-customer-panel h2,
.dashboard-customer-panel p,
.dashboard-auth-note h2,
.dashboard-auth-note p,
.dashboard-factories-shell h3 {
  margin: 0;
}

.dashboard-admin-note h3,
.dashboard-customer-panel h2,
.dashboard-auth-note h2,
.dashboard-factories-shell h3 {
  font-size: clamp(1.25rem, 2.1vw, 1.85rem);
  line-height: 1.08;
}

.dashboard-admin-note p,
.dashboard-customer-panel p,
.dashboard-auth-note p {
  color: var(--factory-muted);
  line-height: 1.55;
}

.dashboard-factories-shell {
  margin-top: 20px;
}

.dashboard-factory-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.dashboard-factory-card,
.dashboard-empty-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(220, 230, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.dashboard-factory-card {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 10px;
  overflow: hidden;
}

.dashboard-factory-card.is-active {
  border-color: rgba(158, 255, 190, 0.32);
  background:
    radial-gradient(circle at 0% 0%, rgba(95, 210, 160, 0.12), transparent 44%),
    rgba(255, 255, 255, 0.045);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 18px 42px rgba(95, 210, 160, 0.12);
}

.dashboard-factory-card-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
}

.dashboard-factory-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  max-width: 360px;
}

.dashboard-factory-card h4 {
  margin: 4px 0 0;
  font-size: 1.12rem;
  line-height: 1.15;
}

.dashboard-document-link {
  width: fit-content;
  max-width: 100%;
  overflow: hidden;
  color: rgba(196, 219, 255, 0.9);
  font-size: 0.9rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-factory-meta {
  margin: 0;
  color: var(--factory-muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.dashboard-factory-networks {
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.dashboard-factory-networks span {
  color: rgba(160, 169, 190, 0.78);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.dashboard-factory-networks strong {
  min-width: 0;
  overflow: hidden;
  color: rgba(231, 236, 250, 0.9);
  font-size: clamp(0.9rem, 1.15vw, 1rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-factory-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 12px;
  margin-top: 4px;
}

.dashboard-factory-stats .dashboard-factory-stat {
  position: relative;
  min-width: 0;
  width: 100%;
  min-height: 76px;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 5px;
  padding: 13px 16px;
  border: 1px solid rgba(220, 230, 255, 0.16);
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.18);
  color: var(--factory-dim);
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 14px 32px rgba(0, 0, 0, 0.18);
}

.dashboard-factory-stat::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--factory-stat-accent, rgba(188, 218, 255, 0.9));
}

.dashboard-factory-stat strong {
  position: relative;
  color: var(--factory-stat-accent, rgba(239, 245, 255, 0.98));
  font-size: clamp(1.55rem, 2.3vw, 2.3rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.95;
}

.dashboard-factory-stat small {
  position: relative;
  color: rgba(231, 236, 250, 0.74);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  line-height: 1.15;
  text-transform: uppercase;
}

.dashboard-factory-stat--accounts {
  border-color: rgba(196, 219, 255, 0.28);
  background: rgba(82, 126, 202, 0.16);
  color: rgba(215, 228, 255, 0.95);
}

.dashboard-factory-stat--creators {
  border-color: rgba(196, 219, 255, 0.28);
  background: rgba(82, 126, 202, 0.16);
  color: rgba(215, 228, 255, 0.95);
}

.dashboard-factory-stat--videos {
  --factory-stat-accent: #9effbe;
  border-color: rgba(158, 255, 190, 0.26);
  background:
    linear-gradient(145deg, rgba(72, 176, 105, 0.28), rgba(3, 7, 12, 0.24)),
    rgba(38, 126, 77, 0.2);
  color: rgba(204, 255, 222, 0.94);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 16px 38px rgba(56, 189, 111, 0.2);
}

.dashboard-factory-stat--views {
  border-color: rgba(255, 232, 177, 0.3);
  background: rgba(210, 172, 83, 0.16);
  color: rgba(255, 238, 197, 0.96);
}

.dashboard-factory-stat--new {
  border-color: rgba(146, 229, 255, 0.3);
  background: rgba(64, 173, 214, 0.15);
  color: rgba(210, 245, 255, 0.96);
}

.dashboard-factory-stat--period {
  --factory-stat-accent: #8df3ff;
  border-color: rgba(146, 229, 255, 0.3);
  background:
    linear-gradient(145deg, rgba(76, 187, 224, 0.3), rgba(3, 7, 12, 0.24)),
    rgba(48, 145, 184, 0.2);
  color: rgba(210, 245, 255, 0.96);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 16px 38px rgba(77, 203, 236, 0.2);
}

.dashboard-factory-stat--boosted {
  border-color: rgba(218, 192, 255, 0.3);
  background: rgba(145, 103, 214, 0.16);
  color: rgba(232, 218, 255, 0.96);
}

.dashboard-factory-stat--old-growth {
  border-color: rgba(218, 192, 255, 0.34);
  background: rgba(145, 103, 214, 0.18);
  color: rgba(232, 218, 255, 0.98);
}

.dashboard-factory-stat--clicks {
  --factory-stat-accent: #c8a5ff;
  border-color: rgba(200, 165, 255, 0.3);
  background:
    linear-gradient(145deg, rgba(150, 97, 255, 0.3), rgba(3, 7, 12, 0.24)),
    rgba(103, 73, 174, 0.2);
  color: rgba(232, 218, 255, 0.95);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 16px 38px rgba(158, 111, 255, 0.2);
}

.dashboard-factory-stat--ctr {
  --factory-stat-accent: #b7f7ff;
  border-color: rgba(152, 241, 255, 0.3);
  background:
    linear-gradient(145deg, rgba(92, 211, 230, 0.25), rgba(3, 7, 12, 0.24)),
    rgba(44, 135, 152, 0.18);
  color: rgba(213, 250, 255, 0.96);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 16px 38px rgba(102, 232, 248, 0.16);
}

.dashboard-factory-stat--engagement {
  --factory-stat-accent: #90f0ff;
  border-color: rgba(144, 240, 255, 0.3);
  background:
    linear-gradient(145deg, rgba(84, 190, 214, 0.27), rgba(3, 7, 12, 0.24)),
    rgba(45, 132, 152, 0.18);
  color: rgba(218, 248, 255, 0.96);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
	    0 16px 38px rgba(86, 210, 231, 0.17);
}

.dashboard-factory-stat--average-views {
  --factory-stat-accent: #b9d4ff;
  border-color: rgba(185, 212, 255, 0.32);
  background:
    linear-gradient(145deg, rgba(92, 132, 219, 0.28), rgba(3, 7, 12, 0.24)),
    rgba(58, 88, 158, 0.18);
  color: rgba(230, 239, 255, 0.95);
}

.dashboard-factory-stat--cart-conversion {
  --factory-stat-accent: #7fffd4;
  border-color: rgba(127, 255, 212, 0.3);
  background:
    linear-gradient(145deg, rgba(39, 189, 157, 0.28), rgba(3, 7, 12, 0.24)),
    rgba(34, 126, 116, 0.2);
  color: rgba(209, 255, 243, 0.96);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 16px 38px rgba(67, 214, 181, 0.18);
}

.dashboard-factory-stat--order-conversion {
  --factory-stat-accent: #b9d4ff;
  border-color: rgba(185, 212, 255, 0.3);
  background:
    linear-gradient(145deg, rgba(92, 139, 221, 0.28), rgba(3, 7, 12, 0.24)),
    rgba(69, 93, 172, 0.2);
  color: rgba(224, 235, 255, 0.96);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 16px 38px rgba(111, 159, 240, 0.18);
}

.dashboard-factory-stat--drr {
  --factory-stat-accent: #ffb8d9;
  border-color: rgba(255, 184, 217, 0.3);
  background:
    linear-gradient(145deg, rgba(201, 91, 150, 0.28), rgba(3, 7, 12, 0.24)),
    rgba(135, 57, 101, 0.18);
  color: rgba(255, 226, 241, 0.96);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 16px 38px rgba(229, 112, 174, 0.16);
}

.dashboard-factory-stat--buyouts {
  border-color: rgba(130, 214, 196, 0.3);
  background: rgba(54, 152, 140, 0.15);
  color: rgba(204, 248, 240, 0.95);
}

.dashboard-factory-stat--spend {
  border-color: rgba(255, 232, 177, 0.34);
  background: rgba(180, 154, 86, 0.16);
  color: rgba(255, 239, 202, 0.96);
}

.dashboard-factory-stat--cpv {
  --factory-stat-accent: #ffe8a6;
  border-color: rgba(160, 234, 255, 0.3);
  background:
    linear-gradient(145deg, rgba(183, 151, 74, 0.28), rgba(3, 7, 12, 0.24)),
    rgba(128, 109, 52, 0.2);
  color: rgba(211, 247, 255, 0.96);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 16px 38px rgba(255, 219, 121, 0.18);
}

.dashboard-factory-stat--cpv-month {
  --factory-stat-accent: #ffd0f0;
  border-color: rgba(255, 208, 240, 0.28);
  background:
    linear-gradient(145deg, rgba(167, 112, 191, 0.25), rgba(3, 7, 12, 0.24)),
    rgba(112, 75, 132, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 16px 38px rgba(218, 140, 219, 0.14);
}

.dashboard-factory-stat--cpv-all {
  --factory-stat-accent: #a8ffe8;
  border-color: rgba(150, 255, 226, 0.28);
  background:
    linear-gradient(145deg, rgba(81, 191, 166, 0.26), rgba(3, 7, 12, 0.24)),
    rgba(42, 123, 108, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 16px 38px rgba(105, 244, 212, 0.14);
}

.dashboard-empty-card {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--factory-dim);
  line-height: 1.45;
}

.dashboard-empty-card.is-error,
.dashboard-empty-row.is-error td {
  border-color: rgba(255, 128, 172, 0.32);
  background: rgba(255, 83, 133, 0.08);
  color: rgba(255, 217, 230, 0.94);
}

body.is-dashboard-refreshing {
  overflow: hidden;
}

body.is-dashboard-refreshing.is-dashboard-refresh-minimized {
  overflow: auto;
}

body.is-daily-refresh-limit-modal-open {
  overflow: hidden;
}

.dashboard-daily-limit-modal {
  position: fixed;
  inset: 0;
  z-index: 1001;
  display: grid;
  place-items: center;
  padding:
    calc(env(safe-area-inset-top, 0px) + 22px)
    clamp(18px, 4vw, 44px)
    calc(env(safe-area-inset-bottom, 0px) + 22px);
  background:
    radial-gradient(circle at 50% 10%, rgba(237, 220, 255, 0.2), transparent 28rem),
    radial-gradient(circle at 84% 74%, rgba(152, 231, 255, 0.12), transparent 24rem),
    rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(14px);
}

.dashboard-daily-limit-card {
  width: min(100%, 620px);
  max-height: calc(100dvh - 44px);
  display: grid;
  gap: 14px;
  padding: clamp(20px, 3.6vw, 34px);
  overflow: auto;
  border: 1px solid rgba(237, 220, 255, 0.28);
  border-radius: 22px;
  background:
    radial-gradient(circle at 0% 0%, rgba(237, 220, 255, 0.16), transparent 38%),
    linear-gradient(150deg, rgba(16, 18, 31, 0.96), rgba(5, 7, 15, 0.97));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 30px 90px rgba(0, 0, 0, 0.52),
    0 0 48px rgba(186, 152, 255, 0.16);
  text-align: center;
}

.dashboard-cancel-save-card {
  width: min(100%, 720px);
}

.dashboard-cancel-save-actions {
  align-items: stretch;
}

.dashboard-restore-run-card {
  width: min(100%, 760px);
}

.dashboard-restore-run-list {
  display: grid;
  gap: 10px;
  width: 100%;
  max-height: min(52vh, 520px);
  overflow: auto;
}

.dashboard-restore-run-item {
  position: relative;
  display: grid;
  gap: 5px;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(196, 219, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: rgba(246, 248, 255, 0.94);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.dashboard-restore-run-item.is-current {
  border-color: rgba(151, 246, 236, 0.42);
  background:
    linear-gradient(135deg, rgba(122, 255, 238, 0.08), rgba(188, 163, 255, 0.08)),
    rgba(255, 255, 255, 0.045);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 26px rgba(122, 255, 238, 0.12);
}

.dashboard-restore-run-current {
  justify-self: end;
  max-width: 100%;
  margin: 0 0 2px;
  color: rgba(204, 255, 250, 0.96);
  font-size: clamp(0.62rem, 1.25vw, 0.78rem);
  font-style: normal;
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(90deg, #8efbf1 0%, #f2f7ff 46%, #c5abff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 18px rgba(142, 251, 241, 0.42);
  overflow-wrap: anywhere;
}

.dashboard-restore-run-item strong,
.dashboard-restore-run-item span,
.dashboard-restore-run-item small,
.dashboard-restore-run-empty {
  overflow-wrap: anywhere;
}

.dashboard-restore-run-item span,
.dashboard-restore-run-item small,
.dashboard-restore-run-empty {
  color: var(--factory-dim);
  font-size: 0.78rem;
  line-height: 1.35;
}

.dashboard-restore-run-item:hover,
.dashboard-restore-run-item:focus-visible {
  border-color: rgba(216, 232, 255, 0.46);
  background: rgba(196, 219, 255, 0.09);
  transform: translateY(-1px);
}

.dashboard-restore-run-item:disabled {
  cursor: not-allowed;
  opacity: 0.52;
  transform: none;
}

.dashboard-daily-limit-card h2 {
  margin: 0;
  color: rgba(246, 248, 255, 0.98);
  font-size: clamp(1.05rem, 2.3vw, 1.8rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.dashboard-daily-limit-copy {
  max-width: 520px;
  margin: 0 auto;
  color: rgba(231, 236, 250, 0.72);
  font-size: clamp(0.98rem, 1.7vw, 1.12rem);
  font-weight: 800;
  line-height: 1.45;
  white-space: pre-line;
}

.dashboard-refresh-confirm-message {
  color: rgba(246, 248, 255, 0.96);
  text-shadow: none;
}

.dashboard-refresh-limit-date {
  color: rgba(143, 245, 233, 0.98);
  text-shadow: 0 0 16px rgba(143, 245, 233, 0.22);
  white-space: nowrap;
}

.dashboard-refresh-estimate-card {
  width: min(100%, 720px);
  max-width: 100%;
  padding: clamp(14px, 2.4vw, 22px);
  border: 1px solid rgba(143, 245, 233, 0.42);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(143, 245, 233, 0.12), rgba(196, 168, 255, 0.1)),
    rgba(10, 14, 25, 0.74);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 34px rgba(143, 245, 233, 0.16),
    0 18px 52px rgba(0, 0, 0, 0.28);
}

.dashboard-refresh-confirm-modal[data-state="confirm"] .dashboard-refresh-confirm-last {
  background: linear-gradient(95deg, #dff8ff 0%, #f7e7ff 34%, #8ff5e9 68%, #ffffff 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: rgba(232, 249, 255, 0.94);
  text-shadow: 0 0 18px rgba(143, 245, 233, 0.35), 0 0 34px rgba(196, 168, 255, 0.22);
}

.dashboard-daily-limit-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.dashboard-daily-limit-actions .dashboard-primary-btn,
.dashboard-daily-limit-actions .dashboard-secondary-btn {
  min-width: min(100%, 220px);
}

.dashboard-refresh-overlay[hidden] {
  display: none;
}

body[data-dashboard-role="loading"] .dashboard-refresh-overlay {
  display: none !important;
}

.dashboard-refresh-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding:
    calc(env(safe-area-inset-top, 0px) + 22px)
    clamp(18px, 4vw, 44px)
    calc(env(safe-area-inset-bottom, 0px) + 22px);
  background:
    radial-gradient(circle at 50% 8%, rgba(196, 219, 255, 0.2), transparent 28rem),
    radial-gradient(circle at 84% 76%, rgba(255, 232, 177, 0.1), transparent 24rem),
    rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(14px);
}

.dashboard-refresh-overlay.is-minimized {
  inset: auto 18px calc(env(safe-area-inset-bottom, 0px) + 18px) auto;
  width: min(380px, calc(100vw - 24px));
  padding: 0;
  place-items: stretch;
  background: transparent;
  backdrop-filter: none;
  pointer-events: none;
}

.dashboard-refresh-card {
  width: min(100%, 640px);
  max-width: 100%;
  display: grid;
  gap: 14px;
  max-height: calc(100dvh - 44px);
  padding: clamp(18px, 3vw, 28px);
  overflow: auto;
  box-sizing: border-box;
  border: 1px solid rgba(220, 230, 255, 0.18);
  border-radius: 22px;
  background:
    radial-gradient(circle at 0% 0%, rgba(196, 219, 255, 0.14), transparent 38%),
    rgba(8, 11, 20, 0.94);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 30px 90px rgba(0, 0, 0, 0.58);
}

.dashboard-refresh-overlay.is-period-mode {
  background:
    radial-gradient(circle at 50% 8%, rgba(126, 232, 255, 0.2), transparent 28rem),
    radial-gradient(circle at 84% 76%, rgba(196, 219, 255, 0.1), transparent 24rem),
    rgba(0, 0, 0, 0.88);
}

.dashboard-refresh-overlay.is-period-mode .dashboard-refresh-card {
  border-color: rgba(126, 232, 255, 0.26);
  background:
    radial-gradient(circle at 0% 0%, rgba(126, 232, 255, 0.16), transparent 38%),
    rgba(8, 11, 20, 0.94);
}

.dashboard-refresh-overlay.is-growth-mode {
  background:
    radial-gradient(circle at 50% 8%, rgba(186, 152, 255, 0.22), transparent 28rem),
    radial-gradient(circle at 84% 76%, rgba(255, 138, 199, 0.11), transparent 24rem),
    rgba(0, 0, 0, 0.88);
}

.dashboard-refresh-overlay.is-growth-mode .dashboard-refresh-card {
  border-color: rgba(186, 152, 255, 0.36);
  background:
    radial-gradient(circle at 0% 0%, rgba(186, 152, 255, 0.18), transparent 38%),
    rgba(10, 9, 22, 0.95);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 30px 90px rgba(0, 0, 0, 0.58),
    0 0 44px rgba(186, 152, 255, 0.12);
}

.dashboard-refresh-overlay.is-minimized.is-period-mode,
.dashboard-refresh-overlay.is-minimized.is-growth-mode {
  background: transparent;
  backdrop-filter: none;
}

.dashboard-refresh-overlay.is-minimized .dashboard-refresh-card {
  width: 100%;
  gap: 10px;
  padding: 16px;
  border-radius: 20px;
  pointer-events: auto;
}

.dashboard-refresh-card h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.dashboard-refresh-overlay.is-minimized .dashboard-refresh-card h2 {
  font-size: 1.04rem;
  line-height: 1.1;
}

.dashboard-refresh-overlay.is-minimized .dashboard-refresh-copy,
.dashboard-refresh-overlay.is-minimized .dashboard-refresh-stats {
  display: none;
}

.dashboard-refresh-copy,
.dashboard-refresh-note {
  margin: 0;
  color: var(--factory-muted);
  font-size: clamp(0.88rem, 1.3vw, 1rem);
  line-height: 1.4;
}

.dashboard-refresh-meter {
  position: relative;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  height: 12px;
  overflow: hidden;
  border: 1px solid rgba(220, 230, 255, 0.16);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.3);
}

.dashboard-refresh-meter span {
  position: relative;
  display: block;
  width: 0%;
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(196, 219, 255, 0.9), rgba(255, 232, 177, 0.88));
  box-shadow: 0 0 22px rgba(196, 219, 255, 0.26);
  transition: width 920ms cubic-bezier(0.22, 1, 0.36, 1);
}

.dashboard-refresh-overlay.is-period-mode .dashboard-refresh-meter span {
  background: linear-gradient(90deg, rgba(126, 232, 255, 0.9), rgba(196, 219, 255, 0.9));
  box-shadow: 0 0 22px rgba(126, 232, 255, 0.24);
}

.dashboard-refresh-overlay.is-growth-mode .dashboard-refresh-meter span {
  background: linear-gradient(90deg, rgba(186, 152, 255, 0.92), rgba(255, 138, 199, 0.86));
  box-shadow: 0 0 24px rgba(186, 152, 255, 0.3);
}

.dashboard-refresh-meter span::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 80px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.34), transparent);
  animation: dashboardRefreshProgressSweep 1.35s linear infinite;
}

@keyframes dashboardRefreshProgressSweep {
  from {
    transform: translateX(-90px);
  }
  to {
    transform: translateX(760px);
  }
}

.dashboard-refresh-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  max-width: 100%;
  gap: 10px;
}

.dashboard-refresh-stats span {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-height: 76px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 12px;
  border: 1px solid rgba(220, 230, 255, 0.12);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.2);
}

.dashboard-refresh-stat--scope {
  grid-column: auto;
}

.dashboard-refresh-stat--remaining {
  grid-column: span 2;
}

.dashboard-refresh-stat--growth {
  min-width: 0;
}

#dashboardRefreshBlockedDeletedCard {
  min-width: 0;
  grid-column: auto;
}

.dashboard-refresh-stats strong {
  color: var(--factory-accent);
  font-size: clamp(0.95rem, 1.7vw, 1.22rem);
  line-height: 1.08;
  overflow-wrap: anywhere;
  white-space: normal;
  word-break: break-word;
}

.dashboard-refresh-overlay.is-period-mode .dashboard-refresh-stats strong {
  color: rgba(196, 239, 255, 0.96);
}

.dashboard-refresh-overlay.is-growth-mode .dashboard-refresh-stats strong {
  color: rgba(218, 202, 255, 0.96);
}

.dashboard-refresh-stats small {
  color: var(--factory-dim);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  line-height: 1.15;
  overflow-wrap: anywhere;
  text-transform: uppercase;
  white-space: normal;
  word-break: break-word;
}

.dashboard-refresh-stats em {
  color: rgba(196, 202, 219, 0.78);
  font-size: 0.58rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
  max-width: 100%;
}

.dashboard-refresh-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.dashboard-refresh-actions .dashboard-secondary-btn {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding-block: 10px;
}

.dashboard-refresh-overlay.is-minimized .dashboard-refresh-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.dashboard-refresh-overlay.is-minimized .dashboard-refresh-actions .dashboard-secondary-btn {
  min-width: 0;
  width: 100%;
}

.dashboard-refresh-pause,
.dashboard-refresh-resume {
  border-color: rgba(220, 230, 255, 0.24);
  background: rgba(196, 219, 255, 0.08);
}

.dashboard-refresh-errors {
  border-color: rgba(255, 155, 155, 0.34);
  background: rgba(255, 112, 112, 0.08);
  color: rgba(255, 210, 210, 0.96);
}

.dashboard-refresh-resume {
  border-color: rgba(146, 238, 178, 0.34);
  color: rgba(224, 255, 235, 0.96);
}

@media (max-width: 980px) {
  .dashboard-control-row {
    grid-template-columns: 1fr;
  }

  .dashboard-control-row .dashboard-period-column,
  .dashboard-control-row .dashboard-period-shell {
    justify-self: stretch;
    width: 100%;
  }

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

  .dashboard-trend-controls {
    display: grid;
    grid-template-columns: 1fr;
  }

  .dashboard-trend-switch,
  .dashboard-trend-compare,
  .dashboard-trend-compare-range {
    width: 100%;
  }

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

  .dashboard-metrics,
  .dashboard-product-stats-grid,
  .dashboard-article-report-summary,
  .dashboard-spend-summary,
  .dashboard-grid,
  .dashboard-admin-grid,
  .dashboard-factory-list {
    grid-template-columns: 1fr 1fr;
  }

  .dashboard-article-report-form,
  .dashboard-spend-form,
  .dashboard-manual-adjustment-form,
  .dashboard-automatic-adjustment-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .dashboard-manual-row .dashboard-secondary-btn {
    justify-self: stretch;
    width: 100%;
  }

  .dashboard-article-report-form .dashboard-primary-btn,
  .dashboard-spend-form .dashboard-primary-btn,
  .dashboard-manual-adjustment-form .dashboard-primary-btn,
  .dashboard-automatic-adjustment-form .dashboard-primary-btn {
    width: 100%;
  }

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

  .dashboard-creator-row-side {
    justify-content: flex-start;
  }

  .dashboard-panel--wide {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .factory-dashboard {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    padding:
      calc(env(safe-area-inset-top, 0px) + 18px)
      max(16px, env(safe-area-inset-right, 0px))
      calc(env(safe-area-inset-bottom, 0px) + 32px)
      max(16px, env(safe-area-inset-left, 0px));
  }

  .dashboard-topbar {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 36px;
  }

  .dashboard-access-status {
    max-width: min(58vw, 220px);
    justify-content: flex-end;
  }

  .dashboard-back,
  .dashboard-badge {
    min-height: 40px;
    font-size: 0.72rem;
  }

  .dashboard-badge {
    max-width: 132px;
    justify-content: center;
    text-align: center;
  }

  .dashboard-subscription-timer,
  .dashboard-unlimited-disable-btn,
  .dashboard-plan-btn,
  .dashboard-add-factory-btn {
    min-height: 34px;
    font-size: 0.66rem;
  }

  .dashboard-plan-actions {
    width: min(100%, 170px);
  }

  .dashboard-subscription-plans,
  .dashboard-subscription-modal-plans,
  .dashboard-invoice-payment-details,
  .dashboard-subscription-payment-actions,
  .dashboard-subscription-contact-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-subscription-card {
    gap: 14px;
    border-radius: 24px;
  }

  .dashboard-subscription-card > .dashboard-primary-btn {
    justify-self: stretch;
    width: 100%;
  }

  .dashboard-hero {
    text-align: left;
  }

  .dashboard-hero h1 {
    font-size: clamp(1.28rem, 6vw, 1.75rem);
  }

  .dashboard-lead {
    margin-left: 0;
    font-size: 1rem;
  }

  .dashboard-period-shell {
    display: grid;
    gap: 12px;
    max-width: 100%;
  }

  .dashboard-period-switch {
    min-width: 0;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-radius: 22px;
  }

  .dashboard-period-switch button:last-child {
    grid-column: 1 / -1;
  }

  .dashboard-trend-switch {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-radius: 22px;
  }

  .dashboard-trend-compare {
    min-height: 42px;
    flex-basis: auto;
  }

  .dashboard-trend-compare-range {
    grid-template-columns: 1fr;
    border-radius: 20px;
  }

  .dashboard-trend-compare-group {
    grid-template-columns: 1fr;
  }

  .dashboard-trend-compare-range label {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .dashboard-trend-chart {
    min-height: 260px;
    padding: 10px;
  }

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

  .dashboard-period-custom {
    justify-content: stretch;
  }

  .dashboard-period-custom label {
    min-width: 0;
    flex: 1 1 145px;
  }

  .dashboard-metrics,
  .dashboard-product-stats-grid,
  .dashboard-article-report-form,
  .dashboard-article-report-history,
  .dashboard-article-report-summary,
  .dashboard-spend-form,
  .dashboard-manual-adjustment-form,
  .dashboard-automatic-adjustment-form,
  .dashboard-spend-summary,
  .dashboard-grid,
  .dashboard-admin-grid,
  .dashboard-admin-form,
  .dashboard-factory-list {
    grid-template-columns: 1fr;
  }

  .dashboard-adjustment-mode-switch,
  .dashboard-automatic-link-row,
  .dashboard-manual-row {
    grid-template-columns: 1fr;
  }

  .dashboard-control-row,
  .dashboard-subscription-stack,
  .dashboard-customer-actions,
  .dashboard-panel,
  .dashboard-grid {
    max-width: 100%;
    min-width: 0;
  }

  .dashboard-creator-row-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .dashboard-metric {
    min-height: 96px;
    border-radius: 18px;
  }

  .dashboard-panel {
    padding: 18px;
    border-radius: 20px;
  }

  .dashboard-panel-head {
    display: grid;
    gap: 12px;
  }

  .dashboard-panel h2,
  .dashboard-panel h3,
  .dashboard-article-report-panel .dashboard-panel-head h2 {
    max-width: 100%;
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .dashboard-panel-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .dashboard-creator-tools,
  .dashboard-panel-tools,
  .dashboard-video-tools {
    width: 100%;
    display: grid;
    justify-content: stretch;
  }

  .dashboard-video-sort,
  .dashboard-priority-sort,
  .dashboard-network-filter {
    max-width: 100%;
    width: 100%;
  }

  .dashboard-video-sort,
  .dashboard-priority-sort {
    grid-auto-flow: initial;
    grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  }

  .dashboard-network-filter {
    justify-content: stretch;
  }

  .dashboard-network-filter button {
    flex: 1 1 92px;
    min-width: 0;
    min-height: 34px;
    white-space: normal;
  }

  .dashboard-product-filter {
    min-width: 0;
  }

  .dashboard-panel-status {
    justify-self: start;
    max-width: 100%;
    min-height: 32px;
    padding-block: 7px;
    white-space: normal;
    line-height: 1.12;
  }

  .dashboard-social-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-social-card strong {
    text-align: left;
  }

  .dashboard-admin-panel,
  .dashboard-customer-panel,
  .dashboard-auth-note {
    padding: 18px;
    border-radius: 20px;
  }

  .dashboard-factory-card-head {
    grid-template-columns: 1fr;
  }

  .dashboard-customer-actions,
  .dashboard-factory-actions {
    justify-content: stretch;
  }

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

  .dashboard-hero .dashboard-customer-actions::before {
    width: 100%;
  }

  .dashboard-hero .dashboard-customer-actions::after {
    width: 44%;
  }

  .dashboard-refresh-network-panel {
    justify-items: stretch;
  }

  .dashboard-refresh-network-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 100%;
  }

  .dashboard-admin-actions {
    display: grid;
  }

  .dashboard-report-document-row {
    grid-template-columns: 1fr;
  }

  .dashboard-report-document-remove,
  .dashboard-report-document-status {
    width: 100%;
  }

  .dashboard-primary-btn,
  .dashboard-secondary-btn,
  .dashboard-mini-btn {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    padding-inline: 14px;
    white-space: normal;
    line-height: 1.15;
    text-align: center;
  }

  .dashboard-refresh-card {
    gap: 14px;
    border-radius: 22px;
  }

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

  .dashboard-refresh-stat--remaining {
    grid-column: 1 / -1;
  }

  .dashboard-refresh-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-refresh-actions .dashboard-secondary-btn {
    width: 100%;
  }

  .dashboard-customer-actions .dashboard-primary-btn,
  .dashboard-customer-actions .dashboard-secondary-btn,
  .dashboard-customer-actions #dashboardRefreshFactoryGrowthBtn {
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }

  .dashboard-customer-actions #dashboardRefreshFactoryGrowthBtn {
    min-height: 64px;
    padding: 12px 14px;
    font-size: clamp(1rem, 4.8vw, 1.18rem);
  }

  .dashboard-refresh-limit-note {
    max-width: 100%;
    text-align: left;
  }

  .dashboard-article-report-history-card,
  .dashboard-article-report-history-select {
    max-width: 100%;
  }

  .dashboard-article-report-history-card {
    grid-template-columns: 1fr;
    padding: 10px;
  }

  .dashboard-article-report-history-bulk {
    justify-content: stretch;
  }

  .dashboard-article-report-history-bulk .dashboard-mini-btn {
    width: 100%;
  }

  .dashboard-article-report-history-select {
    min-height: 64px;
    padding: 12px;
  }

  .dashboard-article-report-history-top,
  .dashboard-article-report-history-actions {
    grid-template-columns: 1fr;
  }

  .dashboard-article-report-history-select em {
    text-align: left;
    white-space: normal;
  }

  .dashboard-article-report-history-select strong,
  .dashboard-article-report-history-select span,
  .dashboard-article-report-history-select em {
    overflow-wrap: anywhere;
  }

  .dashboard-article-report-summary article,
  .dashboard-spend-summary article {
    min-height: 104px;
    padding: 16px;
  }

  .dashboard-article-report-summary strong,
  .dashboard-spend-summary strong {
    white-space: normal;
  }

  .dashboard-article-report-sort {
    display: grid;
    grid-template-columns: 1fr;
    border-radius: 20px;
  }

  .dashboard-article-report-product-filter,
  .dashboard-article-report-sort button {
    width: 100%;
    max-width: 100%;
  }

  .dashboard-article-report-product-filter {
    flex-basis: 100%;
  }

  .dashboard-article-report-sort button,
  .dashboard-article-report-head-sort {
    justify-content: space-between;
    min-height: 38px;
    white-space: normal;
  }

  .dashboard-table-wrap {
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
  }

  .dashboard-table {
    min-width: 640px;
  }

  .dashboard-table th,
  .dashboard-table td {
    padding: 12px;
  }

  .dashboard-product-stat-head,
  .dashboard-creator-stat-head,
  .dashboard-product-stat-metrics,
  .dashboard-creator-stat-metrics,
  .dashboard-creator-network-metrics {
    grid-template-columns: 1fr;
  }

  .dashboard-product-stat-metrics > .dashboard-engagement-breakdown,
  .dashboard-creator-stat-metrics > .dashboard-engagement-breakdown {
    grid-column: auto;
  }

  .dashboard-product-status-pill,
  .dashboard-product-connection-pill,
  .dashboard-status-pill,
  .dashboard-network-pill,
  .dashboard-period-badge,
  .dashboard-creator-product-note {
    max-width: 100%;
    min-height: 30px;
    padding-block: 7px;
    overflow-wrap: anywhere;
    white-space: normal;
    line-height: 1.12;
  }

  .dashboard-factory-networks {
    flex-wrap: wrap;
  }

  .dashboard-factory-networks strong {
    white-space: normal;
  }

  .dashboard-factory-stats {
    display: grid;
    grid-template-columns: 1fr;
  }

  .dashboard-factory-stats .dashboard-factory-stat {
    min-width: 0;
    width: 100%;
  }

  .dashboard-subscription-card,
  .dashboard-run-errors-card {
    width: 100%;
    max-width: 100%;
  }

  .dashboard-refresh-overlay.is-minimized {
    inset: auto 12px calc(env(safe-area-inset-bottom, 0px) + 12px) 12px;
    width: auto;
  }

  .dashboard-refresh-overlay.is-minimized .dashboard-refresh-actions {
    grid-template-columns: 1fr;
  }

  .dashboard-factory-card-head {
    display: grid;
  }
}

@media (max-width: 420px) {
  .factory-dashboard {
    padding:
      calc(env(safe-area-inset-top, 0px) + 14px)
      max(12px, env(safe-area-inset-right, 0px))
      calc(env(safe-area-inset-bottom, 0px) + 28px)
      max(12px, env(safe-area-inset-left, 0px));
  }

  .dashboard-access-status {
    max-width: 100%;
    justify-content: flex-start;
  }

  .dashboard-badge {
    max-width: 100%;
  }

  .dashboard-hero h1 {
    font-size: clamp(1.12rem, 7vw, 1.48rem);
  }

  .dashboard-panel,
  .dashboard-admin-panel,
  .dashboard-customer-panel,
  .dashboard-auth-note,
  .dashboard-subscription-lock,
  .dashboard-subscription-manage {
    padding: 14px;
    border-radius: 18px;
  }

  .dashboard-period-switch,
  .dashboard-trend-switch,
  .dashboard-refresh-network-options {
    grid-template-columns: 1fr;
  }

  .dashboard-period-switch button:last-child {
    grid-column: auto;
  }

  .dashboard-metric {
    min-height: 90px;
    padding: 16px;
  }

  .dashboard-metric-value {
    font-size: clamp(1.9rem, 13vw, 3.1rem);
  }

  .dashboard-social-card,
  .dashboard-product-stat-card,
  .dashboard-creator-stat-card,
  .dashboard-creator-stat-row,
  .dashboard-factory-card,
  .dashboard-empty-card {
    border-radius: 16px;
  }

  .dashboard-table {
    min-width: 560px;
  }

  .dashboard-article-report-history-select strong {
    font-size: 1rem;
  }

  .dashboard-article-report-history-select .dashboard-article-report-history-meta,
  .dashboard-article-report-history-select em {
    font-size: 0.68rem;
  }

  .dashboard-invoice-payment-details dd,
  .dashboard-run-error-link {
    font-size: 0.74rem;
  }

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

  .dashboard-refresh-stats span {
    grid-column: 1 / -1;
  }

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