.module-header .muted {
  font-size: 0.72rem;
  line-height: 1.3;
  margin-top: 2px;
}

.home-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.home-desktop {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
  min-height: 0;
  padding: 10px 12px 18px;
  border-radius: 0;
  border: 0;
  background: transparent;
  overflow: visible;
  isolation: isolate;
}

.home-desktop::before {
  content: none;
}

.home-desktop > * {
  position: relative;
  z-index: 1;
}

.home-widget-row {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 4;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  pointer-events: none;
}

.home-launcher-shell,
.home-widget-stack {
  pointer-events: auto;
}

.home-widget-stack {
  display: grid;
  gap: 10px;
  justify-items: end;
  width: min(272px, 100%);
  margin-left: auto;
}

.home-widget-stack > div {
  width: 100%;
  display: flex;
  justify-content: flex-end;
}

.home-stage {
  position: relative;
  display: flex;
  flex: 1;
  min-height: 100%;
  overflow: visible;
}

.home-launcher-shell {
  position: relative;
  display: grid;
  justify-items: start;
  gap: 10px;
  padding-top: 4px;
}

.home-launcher-toggle,
.home-action-item,
.home-shortcut-launch,
.home-shortcut-remove,
.home-mini-widget {
  appearance: none;
  font: inherit;
}

.home-launcher-toggle {
  min-width: 132px;
  height: 48px;
  padding: 8px 16px 8px 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(180deg, rgba(255, 121, 220, 0.08), rgba(255, 255, 255, 0.018));
  box-shadow:
    0 14px 32px rgba(10, 12, 34, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 0 24px rgba(255, 121, 220, 0.18),
    0 0 34px rgba(121, 240, 255, 0.12);
  backdrop-filter: blur(14px) saturate(150%);
  color: var(--text);
  cursor: pointer;
  transition:
    transform 0.22s ease,
    background 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.home-launcher-toggle:hover,
.home-launcher-toggle[aria-expanded='true'] {
  transform: translateY(-1px);
  background: linear-gradient(180deg, rgba(255, 121, 220, 0.12), rgba(255, 255, 255, 0.03));
  border-color: rgba(121, 240, 255, 0.34);
  box-shadow:
    0 18px 34px rgba(10, 12, 34, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 0 30px rgba(255, 121, 220, 0.22),
    0 0 40px rgba(121, 240, 255, 0.18);
}

.home-launcher-badge {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(255, 121, 220, 0.42), rgba(121, 240, 255, 0.18));
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 0 22px rgba(255, 121, 220, 0.2);
}

.home-launcher-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244, 248, 255, 0.8);
}

.home-launcher-arrow {
  width: 18px;
  height: 10px;
  position: relative;
  display: inline-block;
}

.home-launcher-arrow::before,
.home-launcher-arrow::after {
  content: '';
  position: absolute;
  top: 4px;
  width: 10px;
  height: 2.2px;
  border-radius: 999px;
  background: rgba(245, 249, 255, 0.96);
  box-shadow:
    0 0 10px rgba(255, 121, 220, 0.32),
    0 0 16px rgba(121, 240, 255, 0.22);
}

.home-launcher-arrow::before {
  left: 0;
  transform: rotate(28deg);
  transform-origin: left center;
}

.home-launcher-arrow::after {
  right: 0;
  transform: rotate(-28deg);
  transform-origin: right center;
}

.home-launcher-panel {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  width: min(760px, calc(100vw - 56px));
  padding: 14px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(13, 18, 44, 0.66), rgba(16, 22, 51, 0.54));
  box-shadow:
    0 24px 56px rgba(7, 10, 28, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 30px rgba(121, 240, 255, 0.12),
    0 0 44px rgba(255, 121, 220, 0.1);
  backdrop-filter: blur(18px) saturate(160%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(0, -8px) scale(0.98);
  transition:
    opacity 0.22s ease,
    transform 0.22s ease,
    visibility 0.22s ease;
  z-index: 6;
}

.home-launcher-panel.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(0, 0) scale(1);
}

.home-action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  max-height: min(44vh, 360px);
  overflow-y: auto;
  padding-right: 4px;
}

.home-action-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 12px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.022);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 18px rgba(121, 240, 255, 0.06),
    0 0 28px rgba(255, 121, 220, 0.04);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.home-action-item:hover {
  transform: translateY(-1px);
  border-color: rgba(121, 240, 255, 0.34);
  background: rgba(255, 255, 255, 0.035);
}

.home-action-icon {
  width: 42px;
  height: 42px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(70, 134, 255, 0.22), rgba(255, 121, 220, 0.12));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.home-action-icon svg {
  width: 22px;
  height: 22px;
}

.home-action-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.home-action-copy strong {
  display: block;
  font-size: 0.88rem;
  line-height: 1.24;
}

.home-action-copy small {
  color: var(--muted);
  line-height: 1.3;
}

.home-action-plus {
  font-size: 1.16rem;
  color: rgba(235, 244, 255, 0.72);
}

.home-shortcut-canvas {
  --home-shortcut-w: 104px;
  position: relative;
  flex: 1;
  width: 100%;
  min-height: clamp(420px, 64vh, 760px);
  padding: 0 8px 24px 4px;
  overflow: visible;
}

.home-shortcut-empty {
  width: 1px;
  min-height: 1px;
  padding: 0;
  border: 0;
  background: transparent;
}

.home-shortcut-tile {
  position: absolute;
  width: var(--home-shortcut-w);
  min-height: 110px;
  padding-top: 0;
  touch-action: none;
  user-select: none;
  transition:
    left 0.22s ease,
    top 0.22s ease;
}

.home-shortcut-tile.dragging {
  z-index: 8;
  transition: none;
}

.home-shortcut-launch {
  position: relative;
  display: grid;
  gap: 8px;
  align-content: start;
  justify-items: center;
  width: var(--home-shortcut-w);
  min-height: 104px;
  padding: 6px 4px 8px;
  border-radius: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: center;
  cursor: grab;
  overflow: visible;
  box-shadow: none;
  backdrop-filter: none;
  transition:
    transform 0.22s ease,
    filter 0.22s ease;
}

.home-shortcut-tile.dragging .home-shortcut-launch {
  cursor: grabbing;
  transition: none;
}

.home-shortcut-launch::before {
  content: '';
  position: absolute;
  inset: 14px 10px 28px;
  background: radial-gradient(circle, rgba(var(--shortcut-rgb, 121, 240, 255), 0.24), rgba(var(--shortcut-rgb, 121, 240, 255), 0));
  filter: blur(18px);
  opacity: 0.68;
  pointer-events: none;
}

.home-shortcut-launch > * {
  position: relative;
  z-index: 1;
}

.home-shortcut-launch:hover {
  transform: translateY(-2px);
  filter: saturate(112%);
}

.home-shortcut-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.015));
  border: 1px solid rgba(var(--shortcut-rgb, 121, 240, 255), 0.82);
  box-shadow:
    0 12px 26px rgba(9, 12, 34, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 0 28px rgba(var(--shortcut-rgb, 121, 240, 255), 0.3),
    0 0 54px rgba(var(--shortcut-rgb, 121, 240, 255), 0.14);
  backdrop-filter: blur(14px) saturate(150%);
}

.home-shortcut-icon svg {
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.28));
}

.home-shortcut-copy {
  display: grid;
  gap: 4px;
  justify-items: center;
}

.home-shortcut-copy strong {
  display: block;
  max-width: 92px;
  font-size: 0.76rem;
  line-height: 1.25;
  text-wrap: balance;
}

.home-shortcut-copy small {
  display: none;
}

.home-shortcut-remove {
  position: absolute;
  top: 2px;
  right: 10px;
  width: 16px;
  height: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0;
  border-radius: 999px;
  background: rgba(8, 14, 32, 0.58);
  color: rgba(239, 245, 255, 0.82);
  font-size: 0.82rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  opacity: 0;
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}

.home-shortcut-tile:hover .home-shortcut-remove,
.home-shortcut-tile.dragging .home-shortcut-remove,
.home-shortcut-remove:hover {
  opacity: 1;
  transform: scale(1.08);
}

.home-mini-widget {
  position: relative;
  width: min(238px, 100%);
  padding: 10px 12px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(9, 15, 36, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 22px rgba(121, 240, 255, 0.08),
    0 0 34px rgba(255, 121, 220, 0.05);
  backdrop-filter: blur(12px);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.home-mini-widget:hover {
  transform: translateY(-2px);
  border-color: rgba(121, 240, 255, 0.28);
  background: rgba(255, 255, 255, 0.03);
}

.home-mini-widget span,
.home-mini-widget small {
  display: block;
}

.home-mini-widget span {
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(198, 233, 255, 0.72);
}

.home-mini-widget strong {
  display: block;
  margin-top: 3px;
  font-size: 0.94rem;
  line-height: 1.12;
}

.home-mini-widget small {
  margin-top: 3px;
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.34;
}

.home-mini-widget--alert {
  margin-left: 0;
  width: min(268px, 100%);
  padding: 10px 12px 12px;
}

.home-alert-top {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
}

.home-alert-bell {
  width: 36px;
  height: 36px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(81, 164, 255, 0.18), rgba(255, 255, 255, 0.06));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 0 20px rgba(121, 240, 255, 0.12);
}

.home-alert-bell svg {
  width: 18px;
  height: 18px;
}

.home-alert-feed {
  display: grid;
  gap: 6px;
}

.home-alert-feed-item {
  display: grid;
  gap: 2px;
}

.home-alert-feed-item strong {
  display: block;
  font-size: 0.76rem;
  line-height: 1.28;
}

.home-alert-feed-item small {
  font-size: 0.7rem;
  color: var(--muted);
  line-height: 1.28;
}

.home-alert-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ff4b63;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  box-shadow: 0 0 16px rgba(255, 75, 99, 0.42);
}

.fit-grid {
  display: grid;
  gap: 12px;
  align-content: start;
}

.main-panel .campaign-grid,
.main-panel .tracking-grid,
.main-panel .account-grid,
.main-panel .insight-grid,
.main-panel .fit-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.fit-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.module-toolbar,
.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.module-toolbar {
  margin-top: -2px;
  margin-bottom: 2px;
}

.action-btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.05));
  color: var(--text);
  border-radius: 11px;
  padding: 7px 10px;
  font: inherit;
  font-size: 0.72rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--inner);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.action-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(121, 240, 255, 0.26);
}

.action-btn.primary {
  background: linear-gradient(180deg, rgba(103, 199, 255, 0.22), rgba(103, 199, 255, 0.08));
}

.action-btn.warn {
  background: linear-gradient(180deg, rgba(255, 184, 106, 0.22), rgba(255, 184, 106, 0.08));
}

.action-btn.danger {
  background: linear-gradient(180deg, rgba(255, 95, 87, 0.2), rgba(255, 95, 87, 0.08));
}

.inline-note {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.35;
}

.filter-panel,
.policy-grid,
.timeline-shell,
.board-grid {
  display: grid;
  gap: 12px;
}

.filter-panel,
.policy-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.filter-group {
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--inner);
}

.filter-group strong,
.board-column strong,
.policy-card strong {
  display: block;
  font-size: 0.88rem;
  letter-spacing: -0.01em;
}

.filter-group small,
.policy-card small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.3;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.filter-chip {
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 0.68rem;
  line-height: 1;
}

.timeline-shell {
  grid-template-columns: 1.2fr 0.8fr;
}

.milestone-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.milestone {
  padding: 10px 10px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.09);
  position: relative;
}

.milestone::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 8px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(121, 240, 255, 0.9), rgba(255, 121, 220, 0.75));
  opacity: 0.75;
}

.milestone span,
.milestone small {
  display: block;
}

.milestone span {
  font-size: 0.68rem;
  color: var(--muted);
}

.milestone strong {
  display: block;
  margin-top: 6px;
  font-size: 0.82rem;
}

.milestone small {
  margin-top: 4px;
  font-size: 0.68rem;
  color: var(--muted);
  line-height: 1.25;
}

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

.board-column {
  padding: 11px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--inner);
  min-height: 0;
}

.board-column .section-tag {
  margin-bottom: 8px;
}

.board-stack {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.board-card {
  padding: 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.board-card span,
.board-card small {
  display: block;
}

.board-card span {
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.2;
}

.board-card small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.3;
}

.policy-card {
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.credential-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.68rem;
  color: var(--text);
  margin-top: 8px;
}

.mono {
  font-family: 'Consolas', 'SF Mono', 'Ubuntu Mono', monospace;
  letter-spacing: 0;
}

.action-cell {
  min-width: 182px;
}

.workspace-grid,
.panda-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.micro-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.micro-card {
  padding: 10px 11px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--inner);
}

.micro-card strong {
  display: block;
  margin-top: 4px;
  font-size: 1rem;
  line-height: 1.05;
}

.micro-card span,
.micro-card small {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.24;
}

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

.module-list-grid .module-copy {
  min-height: 88px;
}

.module-stack {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.home-summary .section-title,
.panda-primary .section-title {
  margin-top: 8px;
  margin-bottom: 4px;
  font-size: 1.02rem;
}

.home-summary p,
.panda-primary p {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.45;
}

.compact-list .timeline-item,
.compact-list .status-row,
.compact-list .user-card,
.compact-list .module-copy,
.compact-list .role-card,
.compact-list .kpi-row {
  padding: 9px 10px;
  border-radius: 14px;
}

.span-two {
  grid-column: 1 / -1;
}

.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 12px;
  min-height: 40px;
  font: inherit;
  line-height: 1.1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.ghost-btn:hover {
  background: rgba(255, 255, 255, 0.13);
  transform: translateY(-1px);
}

.mini-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.mini-list .top-item:last-child,
.timeline-list .timeline-item:last-child,
.quick-status .status-row:last-child {
  margin-bottom: 0;
}

.table.compact th,
.table.compact td {
  padding: 8px 8px;
  font-size: 0.86rem;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  overflow-y: auto;
  overflow-x: hidden;
  background: rgba(3, 8, 22, 0.4);
  backdrop-filter: blur(14px);
  z-index: 40;
}

.modal-overlay.open {
  display: flex;
}

.modal-window {
  width: min(900px, calc(100vw - 36px));
  max-height: min(82vh, 760px);
  overflow: auto;
  padding: 18px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(19, 30, 64, 0.78), rgba(10, 16, 38, 0.64));
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 26px 70px rgba(0, 0, 0, 0.42),
    var(--inner);
}

.modal-window.windowed {
  width: min(980px, calc(100vw - 28px));
  max-height: min(84vh, 820px);
  position: relative;
}

.modal-window.windowed.maximized {
  width: calc(100vw - 24px);
  max-height: calc(100vh - 24px);
  height: calc(100vh - 24px);
}

.modal-window.windowed.campaign-modal {
  width: calc(100vw - 28px);
  max-height: calc(100vh - 28px);
  height: calc(100vh - 28px);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.modal-heading {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.window-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.window-btn {
  display: grid;
  place-items: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-size: 8px;
  font-weight: 800;
  line-height: 1;
  color: rgba(35, 15, 15, 0.78);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
}

.window-btn.minimize::before {
  content: '−';
}
.window-btn.maximize::before {
  content: '□';
}
.window-btn.close::before {
  content: '×';
}

.window-btn.minimize {
  background: #febc2e;
}
.window-btn.maximize {
  background: #28c840;
}
.window-btn.close {
  background: #ff5f57;
}

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

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  cursor: pointer;
}

.modal-close.hidden-close {
  display: none;
}

.modal-back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.modal-back-btn:hover {
  background: rgba(255, 255, 255, 0.13);
  transform: translateY(-1px);
}

.modal-back-btn.hidden-close {
  display: none;
}

.modal-body {
  display: grid;
  gap: 12px;
}

.modal-body.campaign-flow-body {
  height: calc(100% - 8px);
  align-content: start;
}

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

.campaign-flow-shell {
  display: grid;
  gap: 10px;
  min-height: 100%;
  align-content: start;
}

.campaign-flow-hero {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(88, 202, 255, 0.14), rgba(255, 121, 220, 0.1));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--inner);
}

.campaign-flow-hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.campaign-flow-hero h3 {
  margin: 0;
  font-size: 1.04rem;
  line-height: 1.1;
}

.campaign-flow-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.34;
}

.campaign-flow-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.campaign-flow-kpi {
  padding: 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.campaign-flow-kpi span,
.campaign-flow-kpi small {
  display: block;
  color: var(--muted);
}

.campaign-flow-kpi strong {
  display: block;
  margin-top: 4px;
  font-size: 0.9rem;
}

.campaign-flow-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.campaign-flow-toolbar .muted {
  max-width: 760px;
  display: none;
}

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

.campaign-flow-grid.compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.campaign-flow-card {
  position: relative;
  display: grid;
  gap: 10px;
  align-content: start;
  min-height: 210px;
  padding: 18px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--inner);
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease;
  cursor: pointer;
}

.campaign-flow-card:hover {
  transform: translateY(-2px);
  border-color: rgba(121, 240, 255, 0.28);
  background: rgba(255, 255, 255, 0.11);
}

.campaign-flow-card.compact {
  min-height: 132px;
  padding: 14px;
  border-radius: 22px;
}

.campaign-flow-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.campaign-flow-card strong {
  display: block;
  font-size: 1.06rem;
  line-height: 1.18;
}

.campaign-flow-card.compact strong {
  font-size: 0.92rem;
}

.campaign-flow-card small,
.campaign-flow-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.campaign-flow-card p {
  font-size: 0.84rem;
}

.campaign-flow-card .pill-value {
  justify-self: start;
  margin-top: auto;
}

.campaign-flow-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  flex: 0 0 auto;
}

.campaign-flow-check input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: #79f0ff;
  cursor: pointer;
}

.campaign-flow-avatar {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  padding: 3px;
}

.campaign-flow-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--muted);
  font-size: 0.76rem;
  justify-self: start;
}

.campaign-flow-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.15;
}

.campaign-flow-breadcrumb button {
  padding: 6px 10px;
}

.flow-back-note {
  font-size: 0.68rem;
  line-height: 1.1;
  color: rgba(228, 236, 255, 0.68);
}

.flow-back-btn {
  gap: 8px;
  padding: 6px 12px;
  min-height: 34px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.78rem;
}

.flow-back-btn svg {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
}

.campaign-builder-shell,
.campaign-selector-shell {
  display: grid;
  gap: 16px;
  min-height: 100%;
  align-content: start;
}

.campaign-builder-shell,
.campaign-selector-shell-create,
.campaign-summary-shell,
.campaign-completion-shell {
  height: 100%;
  min-height: 0;
}

.campaign-builder-shell,
.campaign-selector-shell-create,
.campaign-summary-shell,
.campaign-completion-shell {
  grid-template-rows: minmax(0, 1fr) auto;
}

.campaign-builder-panel,
.campaign-selector-panel,
.campaign-selector-side {
  position: relative;
  overflow: visible;
  padding: 22px;
  border-radius: 28px;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.campaign-builder-panel::before,
.campaign-selector-panel::before,
.campaign-selector-side::before {
  content: none;
}

.campaign-builder-panel > *,
.campaign-selector-panel > *,
.campaign-selector-side > * {
  position: relative;
  z-index: 1;
}

.campaign-builder-shell .campaign-builder-panel {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 8px;
  min-height: 0;
  padding: 12px 14px 10px;
}

.campaign-neon-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 10px;
  flex-wrap: wrap;
}

.campaign-neon-copy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  max-width: none;
  min-width: 0;
  flex: 1 1 360px;
}

.campaign-neon-copy .section-tag {
  margin: 0;
  flex: 0 0 auto;
}

.campaign-neon-copy h3,
.campaign-selector-side h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.08;
  letter-spacing: -0.03em;
  min-width: 0;
}

.campaign-neon-copy p,
.campaign-selector-side p {
  margin: 0;
  color: rgba(230, 240, 255, 0.72);
  line-height: 1.5;
  display: none;
}

.campaign-builder-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 14px;
  align-items: stretch;
  min-height: 0;
}

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

.campaign-type-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 24px rgba(121, 240, 255, 0.06);
  cursor: pointer;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
  overflow: hidden;
}

.campaign-type-card:hover,
.campaign-type-card.active {
  transform: translateY(-2px);
  border-color: rgba(121, 240, 255, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 0 32px rgba(121, 240, 255, 0.12);
}

.campaign-type-card.live.active {
  background: linear-gradient(135deg, rgba(49, 110, 255, 0.24), rgba(75, 246, 255, 0.1));
}

.campaign-type-card.video.active {
  background: linear-gradient(135deg, rgba(255, 80, 191, 0.2), rgba(176, 94, 255, 0.1));
}

.campaign-type-icon {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 14px 28px rgba(11, 16, 42, 0.24);
  overflow: hidden;
}

.campaign-type-card.live .campaign-type-icon {
  background: linear-gradient(145deg, rgba(33, 118, 255, 0.36), rgba(54, 255, 233, 0.14));
}

.campaign-type-card.video .campaign-type-icon {
  background: linear-gradient(145deg, rgba(255, 66, 182, 0.36), rgba(178, 72, 255, 0.14));
}

.campaign-type-icon svg {
  width: 30px;
  height: 30px;
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.26));
}

.campaign-type-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.campaign-type-copy span {
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(194, 233, 255, 0.76);
}

.campaign-type-copy strong {
  font-size: 0.94rem;
  line-height: 1.16;
}

.campaign-type-copy small {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.32;
}

.campaign-type-check {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.28);
}

.campaign-type-card.active .campaign-type-check {
  color: #f7fbff;
  box-shadow: 0 0 18px rgba(121, 240, 255, 0.18);
}

.campaign-builder-stack,
.campaign-kpi-stack,
.campaign-criteria-stack,
.campaign-selector-groups,
.campaign-selector-kols,
.campaign-summary-groups,
.campaign-selector-side,
.modal-window.windowed.campaign-modal .modal-body.campaign-flow-body {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

.campaign-builder-stack::-webkit-scrollbar,
.campaign-kpi-stack::-webkit-scrollbar,
.campaign-criteria-stack::-webkit-scrollbar,
.campaign-selector-groups::-webkit-scrollbar,
.campaign-selector-kols::-webkit-scrollbar,
.campaign-summary-groups::-webkit-scrollbar,
.campaign-selector-side::-webkit-scrollbar,
.modal-window.windowed.campaign-modal .modal-body.campaign-flow-body::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

.campaign-builder-stack::-webkit-scrollbar-track,
.campaign-kpi-stack::-webkit-scrollbar-track,
.campaign-criteria-stack::-webkit-scrollbar-track,
.campaign-selector-groups::-webkit-scrollbar-track,
.campaign-selector-kols::-webkit-scrollbar-track,
.campaign-summary-groups::-webkit-scrollbar-track,
.campaign-selector-side::-webkit-scrollbar-track,
.modal-window.windowed.campaign-modal .modal-body.campaign-flow-body::-webkit-scrollbar-track {
  background: transparent;
}

.campaign-builder-stack::-webkit-scrollbar-thumb,
.campaign-kpi-stack::-webkit-scrollbar-thumb,
.campaign-criteria-stack::-webkit-scrollbar-thumb,
.campaign-selector-groups::-webkit-scrollbar-thumb,
.campaign-selector-kols::-webkit-scrollbar-thumb,
.campaign-summary-groups::-webkit-scrollbar-thumb,
.campaign-selector-side::-webkit-scrollbar-thumb,
.modal-window.windowed.campaign-modal .modal-body.campaign-flow-body::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(121, 240, 255, 0.14));
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  background-clip: padding-box;
  min-height: 28px;
}

.campaign-builder-stack::-webkit-scrollbar-thumb:hover,
.campaign-kpi-stack::-webkit-scrollbar-thumb:hover,
.campaign-criteria-stack::-webkit-scrollbar-thumb:hover,
.campaign-selector-groups::-webkit-scrollbar-thumb:hover,
.campaign-selector-kols::-webkit-scrollbar-thumb:hover,
.campaign-summary-groups::-webkit-scrollbar-thumb:hover,
.campaign-selector-side::-webkit-scrollbar-thumb:hover,
.modal-window.windowed.campaign-modal .modal-body.campaign-flow-body::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(121, 240, 255, 0.18));
  background-clip: padding-box;
}
