.placeholder-page {
  display: grid;
  gap: 16px;
}

.placeholder-card {
  padding: 22px;
}

.placeholder-card h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 850;
  letter-spacing: -0.02em;
}

.placeholder-card p {
  margin: 8px 0 0;
  color: var(--text-muted);
}

.placeholder-sections {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.placeholder-section {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  padding: 16px;
  color: #334155;
  font-weight: 750;
}

@media (max-width: 1180px) {
  .placeholder-sections {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* v89 Ai Connections page */
.ai-connections-page {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 16px;
  min-height: 0;
}

.ai-connect-hero-new,
.ai-connect-note-new,
.ai-provider-card-new {
  border-radius: 18px;
  border-color: #dde3ee;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(21, 27, 43, 0.045);
}

.ai-connect-hero-new {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 126px;
  padding: 18px;
}

.ai-connect-hero-new::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 8% 0%, rgba(109, 69, 245, 0.08), transparent 36%),
    linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(246, 247, 251, 0.45));
}

.ai-connect-hero-new > * {
  position: relative;
  z-index: 1;
}

.ai-connect-hero-icon-new,
.ai-provider-icon-new {
  display: grid;
  place-items: center;
  border: 1px solid #e5defe;
  background: #f3efff;
  color: #6847f5;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.82);
}

.ai-connect-hero-icon-new {
  width: 54px;
  height: 54px;
  border-radius: 17px;
}

.ai-connect-hero-icon-new svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ai-connect-hero-new h2 {
  margin: 0 0 6px;
  color: #171b25;
  font-size: 18px;
  line-height: 1.12;
  font-weight: 760;
  letter-spacing: -0.025em;
}

.ai-connect-hero-new p {
  max-width: 960px;
  margin: 0;
  color: #687286;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 450;
}

.ai-connect-summary-new {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid #e5e7ee;
  border-radius: 999px;
  background: #f7f8fb;
  color: #747b8c;
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
  white-space: nowrap;
}

.ai-connect-summary-new.is-connected {
  border-color: rgba(109, 69, 245, 0.2);
  background: #f3efff;
  color: #6847f5;
}

.ai-provider-grid-new {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 16px;
  min-height: 0;
}

.ai-provider-card-new {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 18px;
}

.ai-provider-card-new.is-connected {
  border-color: rgba(109, 69, 245, 0.24);
  box-shadow: 0 14px 30px rgba(109, 69, 245, 0.055);
}

.ai-provider-head-new {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}

.ai-provider-icon-new {
  width: 48px;
  height: 48px;
  border-radius: 16px;
}

.ai-provider-icon-new img {
  display: block;
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.ai-provider-title-new {
  min-width: 0;
}

.ai-provider-title-new h3 {
  margin: 0 0 5px;
  color: #171b25;
  font-size: 16px;
  line-height: 1.1;
  font-weight: 760;
  letter-spacing: -0.02em;
}

.ai-provider-title-new p {
  margin: 0;
  color: #687286;
  font-size: 12.5px;
  line-height: 1.35;
  font-weight: 440;
}

.ai-provider-state-new {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  max-width: 160px;
  padding: 0 11px;
  border: 1px solid #e5e7ee;
  border-radius: 999px;
  background: #f7f8fb;
  color: #747b8c;
  font-size: 11.5px;
  line-height: 1;
  font-weight: 700;
  white-space: nowrap;
}

.ai-provider-state-new.is-connected {
  border-color: rgba(109, 69, 245, 0.2);
  background: #f3efff;
  color: #6847f5;
}

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

.ai-field-new {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.ai-field-new > span {
  color: #59677e;
  font-size: 11.5px;
  line-height: 1;
  font-weight: 700;
}

.ai-field-new input {
  width: 100%;
  min-height: 36px;
  border: 1px solid #dfe6f2;
  border-radius: 10px;
  background: #ffffff;
  color: #172033;
  padding: 0 11px;
  outline: none;
  font-size: 12.5px;
  font-weight: 520;
}

.ai-field-new input:hover {
  border-color: rgba(109, 69, 245, 0.24);
}

.ai-field-new input:focus {
  border-color: rgba(109, 69, 245, 0.45);
  box-shadow: 0 0 0 4px rgba(109, 69, 245, 0.075);
}

.ai-field-new input:disabled {
  color: #778399;
  background: #f7f8fb;
}

.ai-key-field-new {
  grid-column: span 2;
}

.ai-key-control-new {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
}

.ai-key-mini-button-new,
.ai-provider-action-new {
  min-height: 36px;
  border: 1px solid #dfe6f2;
  border-radius: 10px;
  background: #ffffff;
  color: #243247;
  padding: 0 12px;
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
  white-space: nowrap;
}

.ai-key-mini-button-new:hover,
.ai-provider-action-new:hover {
  border-color: rgba(109, 69, 245, 0.25);
  background: #fbfaff;
}

.ai-provider-actions-new {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ai-provider-action-new--primary {
  border-color: rgba(109, 69, 245, 0.34);
  background: #f3efff;
  color: #6847f5;
}

.ai-provider-action-new--danger {
  border-color: #f4c8d0;
  color: #df2b57;
}

.ai-provider-message-new {
  min-height: 36px;
  border: 1px solid #edf1f7;
  border-radius: 12px;
  background: #fbfcff;
  color: #69768c;
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 520;
}

.ai-provider-message-new.is-ok,
.ai-provider-message-new.is-connected {
  border-color: rgba(109, 69, 245, 0.18);
  background: #f8f5ff;
  color: #6847f5;
}

.ai-provider-message-new.is-error {
  border-color: #f4c8d0;
  background: #fff6f7;
  color: #df2b57;
}

.ai-provider-message-new.is-warning {
  border-color: #e7eaf2;
  background: #fafbfe;
  color: #687286;
}

.ai-connect-note-new {
  padding: 16px 18px;
}

.ai-connect-note-new b {
  display: block;
  color: #171b25;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 740;
}

.ai-connect-note-new p {
  margin: 6px 0 0;
  color: #687286;
  font-size: 12.5px;
  line-height: 1.45;
  font-weight: 450;
}

@media (max-width: 1320px) {
  .ai-provider-grid-new {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 920px) {
  .ai-connect-hero-new {
    grid-template-columns: 1fr;
  }

  .ai-provider-body-new,
  .ai-key-field-new {
    grid-template-columns: 1fr;
    grid-column: auto;
  }

  .ai-key-control-new {
    grid-template-columns: 1fr;
  }
}

/* v90 Ai Connections hero instruction card */
.ai-connect-hero-new--instruction {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  min-height: 0;
  padding: 20px;
}

.ai-connect-hero-new--instruction::before {
  background:
    radial-gradient(circle at 5% 0%, rgba(109, 69, 245, 0.10), transparent 34%),
    radial-gradient(circle at 82% 12%, rgba(109, 69, 245, 0.055), transparent 30%),
    linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(246, 247, 251, 0.50));
}

.ai-connect-hero-top-new {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
}

.ai-connect-hero-new--instruction .ai-connect-hero-icon-new {
  width: 58px;
  height: 58px;
  border-radius: 18px;
}

.ai-connect-hero-copy-new {
  min-width: 0;
}

.ai-connect-hero-label-new {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-bottom: 7px;
  border: 1px solid rgba(109, 69, 245, 0.16);
  border-radius: 999px;
  background: rgba(243, 239, 255, 0.72);
  color: #6847f5;
  padding: 0 10px;
  font-size: 11px;
  line-height: 1;
  font-weight: 720;
}

.ai-connect-hero-new--instruction h2 {
  max-width: 920px;
  margin: 0 0 7px;
  font-size: 20px;
  line-height: 1.12;
  font-weight: 760;
  letter-spacing: -0.026em;
}

.ai-connect-hero-new--instruction p {
  max-width: 1080px;
  color: #667189;
  font-size: 13px;
  line-height: 1.48;
  font-weight: 440;
}

.ai-connect-steps-new {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.ai-connect-step-new {
  min-width: 0;
  min-height: 86px;
  border: 1px solid #edf1f7;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.72);
  padding: 13px 14px;
}

.ai-connect-step-new strong {
  display: block;
  color: #171b25;
  font-size: 12.5px;
  line-height: 1.18;
  font-weight: 740;
  letter-spacing: -0.01em;
}

.ai-connect-step-new span {
  display: block;
  margin-top: 6px;
  color: #6b758a;
  font-size: 11.5px;
  line-height: 1.34;
  font-weight: 450;
}

@media (max-width: 1320px) {
  .ai-connect-steps-new {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .ai-connect-hero-top-new,
  .ai-connect-steps-new {
    grid-template-columns: 1fr;
  }

  .ai-connect-summary-new {
    justify-self: start;
  }
}

/* v91 remove top hero icon block */
.ai-connect-hero-top-new {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.ai-connect-hero-copy-new {
  padding-top: 1px;
}

@media (max-width: 760px) {
  .ai-connect-hero-top-new {
    grid-template-columns: 1fr;
  }
}

/* v93 AI providers: connected first + subtle site-color highlight */
.ai-provider-card-new.is-connected {
  border-color: rgba(109, 69, 245, 0.26);
  background:
    linear-gradient(180deg, rgba(249, 246, 255, 0.98), rgba(255, 255, 255, 0.98));
  box-shadow:
    0 14px 30px rgba(109, 69, 245, 0.055),
    inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.ai-provider-card-new.is-connected .ai-provider-title-new h3 {
  color: #241d49;
}

.ai-provider-card-new.is-connected .ai-provider-message-new {
  border-color: rgba(109, 69, 245, 0.16);
  background: #f8f5ff;
}

/* v94 AI backend integration states */
.ai-connect-backend-warning-new {
  grid-column: 1 / -1;
  min-height: 44px;
  border: 1px solid #f4c8d0;
  border-radius: 14px;
  background: #fff6f7;
  color: #df2b57;
  padding: 12px 14px;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 560;
}

.ai-provider-card-new.is-busy {
  opacity: 0.78;
  pointer-events: none;
}

.ai-provider-card-new.is-busy .ai-provider-state-new::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 7px;
  border-radius: 999px;
  background: currentColor;
  animation: ai-provider-pulse-v94 0.8s ease-in-out infinite alternate;
}

@keyframes ai-provider-pulse-v94 {
  from { opacity: 0.35; transform: scale(0.82); }
  to { opacity: 1; transform: scale(1); }
}


/* v95: softer elegant instruction label */
.ai-connect-hero-label-new {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 0;
  margin-bottom: 9px;
  border: none;
  border-radius: 0;
  background: transparent;
  color: #7a63e8;
  padding: 0;
  font-size: 11px;
  line-height: 1.15;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ai-connect-hero-label-new::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(109, 69, 245, 0.92), rgba(177, 154, 255, 0.78));
  box-shadow: 0 0 0 1px rgba(109, 69, 245, 0.02);
}

.ai-connect-hero-copy-new {
  padding-top: 2px;
}


/* v96: hover glow for AI instruction steps */
.ai-connect-step-new {
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease,
    background-color 0.18s ease;
}

.ai-connect-step-new:hover {
  border-color: rgba(109, 69, 245, 0.24);
  background: rgba(255, 255, 255, 0.94);
  box-shadow:
    0 0 0 1px rgba(109, 69, 245, 0.06),
    0 10px 24px rgba(109, 69, 245, 0.08),
    0 0 22px rgba(109, 69, 245, 0.10);
  transform: translateY(-1px);
}


/* v102: proxy page + AI per-provider proxy selector */
.proxy-connections-page {
  display: grid;
  gap: 16px;
}

.proxy-hero-new {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 18px;
  padding: 20px;
}

.proxy-hero-label-new {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 9px;
  color: #7a63e8;
  font-size: 11px;
  line-height: 1.15;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.proxy-hero-label-new::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(109, 69, 245, 0.92), rgba(177, 154, 255, 0.78));
}

.proxy-hero-new h2,
.proxy-form-head-new h3,
.proxy-list-head-new h3 {
  margin: 0;
  color: #171b25;
  font-size: 20px;
  line-height: 1.14;
  font-weight: 760;
  letter-spacing: -0.026em;
}

.proxy-form-head-new h3,
.proxy-list-head-new h3 {
  font-size: 16px;
}

.proxy-hero-new p,
.proxy-form-head-new p,
.proxy-list-head-new p {
  max-width: 840px;
  margin: 7px 0 0;
  color: #667189;
  font-size: 13px;
  line-height: 1.48;
  font-weight: 440;
}

.proxy-summary-new {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid #edf1f7;
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.88);
  color: #7a8496;
  padding: 0 12px;
  font-size: 11.5px;
  font-weight: 720;
  white-space: nowrap;
}

.proxy-summary-new.is-active {
  border-color: rgba(109, 69, 245, 0.18);
  background: #f8f5ff;
  color: #6847f5;
}

.proxy-workspace-new {
  display: grid;
  grid-template-columns: 390px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.proxy-form-card-new,
.proxy-list-card-new {
  padding: 18px;
}

.proxy-form-new {
  display: grid;
  gap: 11px;
  margin-top: 16px;
}

.proxy-field-new {
  display: grid;
  gap: 6px;
}

.proxy-field-new span {
  color: #5f6b7e;
  font-size: 11.5px;
  font-weight: 680;
}

.proxy-field-new input,
.proxy-field-new select,
.ai-proxy-select-wrap-new select {
  width: 100%;
  height: 37px;
  border: 1px solid #e7ebf3;
  border-radius: 12px;
  background: #ffffff;
  color: #202536;
  padding: 0 11px;
  font-size: 12.5px;
  font-weight: 520;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.proxy-field-new input:focus,
.proxy-field-new select:focus,
.ai-proxy-select-wrap-new select:focus {
  border-color: rgba(109, 69, 245, 0.34);
  box-shadow: 0 0 0 3px rgba(109, 69, 245, 0.08);
}

.proxy-form-actions-new,
.proxy-item-actions-new {
  display: flex;
  gap: 8px;
  align-items: center;
}

.proxy-primary-button-new,
.proxy-soft-button-new,
.proxy-danger-button-new {
  height: 34px;
  border-radius: 12px;
  padding: 0 13px;
  font-size: 11.5px;
  font-weight: 740;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, background-color 0.18s ease;
}

.proxy-primary-button-new {
  border: 1px solid rgba(109, 69, 245, 0.34);
  background: #6d45f5;
  color: #ffffff;
}

.proxy-soft-button-new {
  border: 1px solid rgba(109, 69, 245, 0.16);
  background: #ffffff;
  color: #5d44dd;
}

.proxy-danger-button-new {
  border: 1px solid rgba(223, 43, 87, 0.14);
  background: #fff8fa;
  color: #df2b57;
}

.proxy-primary-button-new:hover:not(:disabled),
.proxy-soft-button-new:hover:not(:disabled),
.proxy-danger-button-new:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 9px 20px rgba(109, 69, 245, 0.09);
}

.proxy-message-new,
.proxy-empty-new {
  min-height: 34px;
  border: 1px solid #eef1f7;
  border-radius: 13px;
  background: rgba(248, 250, 252, 0.80);
  color: #6b758a;
  padding: 10px 12px;
  font-size: 11.5px;
  line-height: 1.38;
  font-weight: 520;
}

.proxy-message-new.is-ok {
  border-color: rgba(27, 174, 119, 0.18);
  background: rgba(240, 253, 248, 0.72);
  color: #11775b;
}

.proxy-message-new.is-warning {
  border-color: rgba(217, 151, 40, 0.22);
  background: rgba(255, 249, 236, 0.86);
  color: #9a6615;
}

.proxy-message-new.is-error,
.proxy-empty-new.is-error {
  border-color: rgba(223, 43, 87, 0.18);
  background: rgba(255, 246, 247, 0.84);
  color: #df2b57;
}

.proxy-list-head-new {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
}

.proxy-list-new {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.proxy-item-new {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid #edf1f7;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  padding: 13px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.proxy-item-new:hover {
  border-color: rgba(109, 69, 245, 0.20);
  box-shadow:
    0 0 0 1px rgba(109, 69, 245, 0.04),
    0 12px 26px rgba(109, 69, 245, 0.07);
  transform: translateY(-1px);
}

.proxy-item-top-new {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.proxy-item-top-new strong {
  min-width: 0;
  color: #171b25;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 760;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.proxy-item-badge-new {
  flex: 0 0 auto;
  border: 1px solid #e7ebf3;
  border-radius: 999px;
  background: #f8fafc;
  color: #7a8496;
  padding: 4px 8px;
  font-size: 10.5px;
  font-weight: 720;
}

.proxy-item-badge-new.is-enabled {
  border-color: rgba(27, 174, 119, 0.18);
  background: #f0fdf8;
  color: #11775b;
}

.proxy-item-meta-new {
  margin-top: 6px;
  color: #6b758a;
  font-size: 11.5px;
  line-height: 1.36;
  font-weight: 500;
}

.ai-proxy-field-new {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  border: 1px solid #edf1f7;
  border-radius: 15px;
  background: rgba(248, 250, 252, 0.62);
  padding: 12px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.ai-proxy-field-new.is-enabled {
  border-color: rgba(109, 69, 245, 0.20);
  background: #fbfaff;
  box-shadow: inset 0 0 0 1px rgba(109, 69, 245, 0.035);
}

.ai-proxy-toggle-new {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  cursor: pointer;
}

.ai-proxy-toggle-new input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ai-proxy-switch-new {
  position: relative;
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: #dbe1ea;
  transition: background-color 0.18s ease, box-shadow 0.18s ease;
}

.ai-proxy-switch-new::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 2px 5px rgba(15, 23, 42, 0.16);
  transition: transform 0.18s ease;
}

.ai-proxy-toggle-new input:checked + .ai-proxy-switch-new {
  background: #6d45f5;
  box-shadow: 0 0 0 3px rgba(109, 69, 245, 0.10);
}

.ai-proxy-toggle-new input:checked + .ai-proxy-switch-new::after {
  transform: translateX(16px);
}

.ai-proxy-toggle-new input:disabled + .ai-proxy-switch-new {
  opacity: 0.52;
}

.ai-proxy-toggle-copy-new {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.ai-proxy-toggle-copy-new strong {
  color: #202536;
  font-size: 12px;
  line-height: 1.16;
  font-weight: 760;
}

.ai-proxy-toggle-copy-new span {
  color: #748096;
  font-size: 11.2px;
  line-height: 1.28;
  font-weight: 500;
}

.ai-proxy-select-wrap-new {
  margin: 0;
}

.ai-proxy-select-wrap-new select:disabled {
  background: #f8fafc;
  color: #9aa4b6;
  cursor: not-allowed;
}

@media (max-width: 1180px) {
  .proxy-workspace-new {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .proxy-hero-new,
  .proxy-item-new,
  .proxy-list-head-new {
    grid-template-columns: 1fr;
  }

  .proxy-item-actions-new {
    justify-content: flex-start;
  }
}


/* v103: old-site inspired proxy manager, shared for AI + account publishing */
.proxy-manager-page-new {
  display: grid;
  gap: 16px;
}

.proxy-hero-card-new {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background:
    radial-gradient(circle at 0% 0%, rgba(109, 69, 245, 0.085), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(252, 253, 255, 0.98));
}

.proxy-hero-icon-new,
.proxy-panel-icon-new {
  display: grid;
  place-items: center;
  border: 1px solid #e8e1ff;
  background: #f4f1ff;
  color: #6d45f5;
}

.proxy-hero-icon-new {
  width: 58px;
  height: 58px;
  border-radius: 18px;
}

.proxy-hero-icon-new svg,
.proxy-panel-icon-new svg,
.proxy-row-icon-new svg,
.proxy-icon-action-new svg,
.proxy-empty-icon-new svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.proxy-eyebrow-new {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 8px;
  color: #7a63e8;
  font-size: 11px;
  line-height: 1.15;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.proxy-eyebrow-new::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(109, 69, 245, 0.92), rgba(177, 154, 255, 0.78));
}

.proxy-hero-card-new h2 {
  max-width: 860px;
  margin: 0;
  color: #171b25;
  font-size: 20px;
  line-height: 1.12;
  font-weight: 780;
  letter-spacing: -0.028em;
}

.proxy-hero-card-new p {
  max-width: 960px;
  margin: 7px 0 0;
  color: #667189;
  font-size: 13px;
  line-height: 1.48;
  font-weight: 440;
}

.proxy-summary-badge-new {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  border: 1px solid #edf1f7;
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.88);
  color: #7a8496;
  padding: 0 12px;
  font-size: 11.5px;
  font-weight: 760;
  white-space: nowrap;
}

.proxy-summary-badge-new.is-active {
  border-color: rgba(109, 69, 245, 0.18);
  background: #f8f5ff;
  color: #6847f5;
}

.proxy-metrics-grid-new {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.proxy-metric-card-new {
  min-height: 94px;
  padding: 16px;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.proxy-metric-card-new:hover {
  border-color: rgba(109, 69, 245, 0.22);
  box-shadow:
    0 0 0 1px rgba(109, 69, 245, 0.05),
    0 12px 26px rgba(109, 69, 245, 0.08),
    0 0 22px rgba(109, 69, 245, 0.08);
  transform: translateY(-1px);
}

.proxy-metric-card-new span {
  display: block;
  color: #738097;
  font-size: 11.5px;
  font-weight: 720;
}

.proxy-metric-card-new b {
  display: block;
  margin-top: 8px;
  color: #171b25;
  font-size: 22px;
  line-height: 1;
  font-weight: 820;
  letter-spacing: -0.03em;
}

.proxy-metric-card-new small {
  display: block;
  margin-top: 7px;
  color: #8a94a6;
  font-size: 11px;
  line-height: 1.25;
  font-weight: 560;
}

.proxy-workspace-new--manager {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 360px;
  gap: 16px;
  align-items: start;
}

.proxy-panel-new {
  padding: 18px;
}

.proxy-panel-head-new {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.proxy-panel-head-new--compact {
  align-items: start;
}

.proxy-panel-icon-new {
  width: 42px;
  height: 42px;
  border-radius: 14px;
}

.proxy-panel-head-new h3,
.proxy-list-head-new--manager h3 {
  margin: 0;
  color: #171b25;
  font-size: 16px;
  line-height: 1.15;
  font-weight: 780;
  letter-spacing: -0.02em;
}

.proxy-panel-head-new p {
  margin: 5px 0 0;
  color: #667189;
  font-size: 12px;
  line-height: 1.38;
  font-weight: 500;
}

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

.proxy-field-new {
  display: grid;
  gap: 6px;
}

.proxy-field-new.span-2 {
  grid-column: span 2;
}

.proxy-field-new span {
  color: #5f6b7e;
  font-size: 11.5px;
  font-weight: 680;
}

.proxy-field-new input,
.proxy-field-new select,
.proxy-bulk-input-new {
  width: 100%;
  border: 1px solid #e7ebf3;
  border-radius: 12px;
  background: #ffffff;
  color: #202536;
  font-size: 12.5px;
  font-weight: 520;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.proxy-field-new input,
.proxy-field-new select {
  height: 37px;
  padding: 0 11px;
}

.proxy-bulk-input-new {
  min-height: 166px;
  margin-top: 16px;
  padding: 12px;
  resize: vertical;
  line-height: 1.45;
}

.proxy-field-new input:focus,
.proxy-field-new select:focus,
.proxy-bulk-input-new:focus {
  border-color: rgba(109, 69, 245, 0.34);
  box-shadow: 0 0 0 3px rgba(109, 69, 245, 0.08);
}

.proxy-switch-row-new {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 2px;
}

.proxy-switch-new {
  display: inline-grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 9px;
  color: #4b5568;
  font-size: 12px;
  font-weight: 660;
  cursor: pointer;
}

.proxy-switch-new input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.proxy-switch-slider-new {
  position: relative;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: #e7ebf3;
  border: 1px solid #cfd7e6;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.06);
  transition: background-color 0.16s ease, border-color 0.16s ease;
}

.proxy-switch-slider-new::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.16);
  transition: transform 0.16s ease;
}

.proxy-switch-new input:checked + .proxy-switch-slider-new {
  border-color: #6d45f5;
  background: #6d45f5;
}

.proxy-switch-new input:checked + .proxy-switch-slider-new::after {
  transform: translateX(18px);
}

.proxy-form-actions-new--manager,
.proxy-import-actions-new,
.proxy-list-actions-new,
.proxy-row-actions-new {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.proxy-form-actions-new--manager {
  grid-column: 1 / -1;
  margin-top: 2px;
}

.proxy-primary-button-new,
.proxy-soft-button-new,
.proxy-row-check-new,
.proxy-icon-action-new {
  min-height: 34px;
  border-radius: 12px;
  border: 1px solid #dfe5ef;
  background: #ffffff;
  color: #172033;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11.5px;
  line-height: 1;
  font-weight: 760;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease,
    background-color 0.18s ease,
    color 0.18s ease;
}

.proxy-primary-button-new {
  border-color: #6d45f5;
  background: #6d45f5;
  color: #ffffff;
}

.proxy-primary-button-new:hover:not(:disabled),
.proxy-soft-button-new:hover:not(:disabled),
.proxy-row-check-new:hover:not(:disabled),
.proxy-icon-action-new:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: #ded6ff;
  background: #fbfaff;
  color: #6d45f5;
  box-shadow: 0 9px 20px rgba(109, 69, 245, 0.09);
}

.proxy-primary-button-new:hover:not(:disabled) {
  background: #6540e8;
  color: #ffffff;
}

.proxy-icon-action-new {
  width: 34px;
  padding: 0;
}

.proxy-icon-action-new.danger {
  border-color: rgba(223, 43, 87, 0.16);
  color: #df2b57;
}

.proxy-icon-action-new svg {
  width: 16px;
  height: 16px;
}

.proxy-status-line-new,
.proxy-list-status-new,
.proxy-import-info-new {
  border: 1px solid #e8edf5;
  border-radius: 13px;
  background: #f9fbff;
  color: #596378;
  padding: 11px 12px;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 650;
}

.proxy-status-line-new {
  grid-column: 1 / -1;
}

.proxy-status-line-new.success,
.proxy-list-status-new.success {
  border-color: #ccefd8;
  background: #effaf3;
  color: #177a3a;
}

.proxy-status-line-new.error,
.proxy-list-status-new.error {
  border-color: #ffdbe3;
  background: #fff7f9;
  color: #c93554;
}

.proxy-status-line-new.warning {
  border-color: rgba(217, 151, 40, 0.22);
  background: rgba(255, 249, 236, 0.86);
  color: #9a6615;
}

.proxy-import-info-new {
  margin-top: 12px;
  color: #69758a;
  font-size: 11.5px;
  font-weight: 560;
}

.proxy-import-actions-new {
  margin-top: 10px;
}

.proxy-import-actions-new .proxy-primary-button-new {
  width: 100%;
}

.proxy-list-panel-new {
  padding: 18px;
}

.proxy-list-head-new--manager {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
}

.proxy-list-status-new {
  margin-top: 12px;
}

.proxy-list-new--manager {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.proxy-empty-state-new {
  min-height: 170px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 26px;
  border: 1px dashed #dfe5ef;
  border-radius: 16px;
  background: #fbfcff;
  color: #69758a;
  text-align: center;
  font-size: 12.5px;
  line-height: 1.45;
  font-weight: 560;
}

.proxy-empty-state-new.is-error {
  border-color: #ffdbe3;
  background: #fff7f9;
  color: #c93554;
}

.proxy-empty-icon-new {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #f4f1ff;
  color: #6d45f5;
}

.proxy-empty-state-new b {
  color: #171b25;
  font-size: 15px;
  font-weight: 800;
}

.proxy-empty-state-new span {
  max-width: 560px;
}

.proxy-row-card-new {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 1.1fr) minmax(340px, 1.05fr) auto;
  gap: 14px;
  align-items: center;
  padding: 13px 14px;
  border: 1px solid #e4e8f2;
  border-radius: 17px;
  background: linear-gradient(180deg, #ffffff 0%, #fcfdff 100%);
  box-shadow: 0 9px 22px rgba(28, 34, 52, 0.04);
  overflow: hidden;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.proxy-row-card-new:hover,
.proxy-row-card-new.checking {
  border-color: rgba(109, 69, 245, 0.20);
  box-shadow:
    0 0 0 1px rgba(109, 69, 245, 0.04),
    0 12px 26px rgba(109, 69, 245, 0.075);
  transform: translateY(-1px);
}

.proxy-row-card-new::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: #d7ddea;
  pointer-events: none;
}

.proxy-row-card-new.online::before {
  background: linear-gradient(180deg, #4fd37a 0%, #22a95b 100%);
}

.proxy-row-card-new.offline::before {
  background: linear-gradient(180deg, #ff8aa2 0%, #d94d69 100%);
}

.proxy-row-main-new {
  min-width: 0;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.proxy-row-icon-new {
  width: 42px;
  height: 42px;
  min-width: 42px;
  display: grid;
  place-items: center;
  border: 1px solid #e8e1ff;
  border-radius: 14px;
  background: #f4f1ff;
  color: #6d45f5;
}

.proxy-row-title-new {
  min-width: 0;
}

.proxy-row-name-line-new {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.proxy-row-name-line-new h4 {
  margin: 0;
  color: #171b25;
  font-size: 14.5px;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.proxy-row-title-new p {
  margin: 5px 0 0;
  color: #748096;
  font-size: 11.5px;
  line-height: 1.2;
  font-weight: 650;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.proxy-row-tags-new {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
}

.proxy-row-tags-new span,
.proxy-mini-pill-new {
  min-height: 23px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #edf1f7;
  border-radius: 999px;
  background: #f9fbff;
  color: #728099;
  padding: 0 8px;
  font-size: 10.8px;
  line-height: 1;
  font-weight: 740;
}

.proxy-mini-pill-new.default {
  border-color: #ccefd8;
  background: #eefaf2;
  color: #177a3a;
}

.proxy-mini-pill-new.disabled {
  border-color: #ffdbe3;
  background: #fff7f9;
  color: #c93554;
}

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

.proxy-row-metrics-new > div {
  min-height: 48px;
  border: 1px solid #e8edf5;
  border-radius: 13px;
  background: #fbfcff;
  padding: 8px 9px;
  overflow: hidden;
}

.proxy-row-metrics-new span {
  display: block;
  color: #7e899c;
  font-size: 10.5px;
  line-height: 1;
  font-weight: 720;
}

.proxy-row-metrics-new b {
  display: block;
  margin-top: 6px;
  color: #171b25;
  font-size: 12px;
  line-height: 1.1;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.proxy-row-state-new {
  min-width: 132px;
  display: grid;
  justify-items: end;
  gap: 8px;
}

.proxy-row-status-new {
  min-height: 27px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #f8fafc;
  color: #64748b;
  padding: 0 10px;
  font-size: 11px;
  line-height: 1;
  font-weight: 780;
}

.proxy-row-status-new.online {
  border-color: #ccefd8;
  background: #effaf3;
  color: #177a3a;
}

.proxy-row-status-new.offline {
  border-color: #ffdbe3;
  background: #fff7f9;
  color: #c93554;
}

.proxy-row-note-new,
.proxy-row-error-new {
  grid-column: 1 / -1;
  border-radius: 13px;
  padding: 10px 11px;
  font-size: 11.5px;
  line-height: 1.36;
  font-weight: 560;
}

.proxy-row-note-new {
  border: 1px solid #edf1f7;
  background: #fbfcff;
  color: #6b758a;
}

.proxy-row-error-new {
  display: flex;
  gap: 8px;
  border: 1px solid #ffdbe3;
  background: #fff7f9;
  color: #c93554;
}

@media (max-width: 1380px) {
  .proxy-row-card-new {
    grid-template-columns: minmax(0, 1fr);
  }

  .proxy-row-state-new {
    justify-items: start;
  }
}

@media (max-width: 1180px) {
  .proxy-workspace-new--manager,
  .proxy-metrics-grid-new {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .proxy-side-stack-new {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .proxy-hero-card-new,
  .proxy-workspace-new--manager,
  .proxy-metrics-grid-new,
  .proxy-form-new--manager,
  .proxy-list-head-new--manager,
  .proxy-row-metrics-new {
    grid-template-columns: 1fr;
  }

  .proxy-field-new.span-2 {
    grid-column: auto;
  }

  .proxy-summary-badge-new {
    justify-self: start;
  }
}


/* v104: provider-specific proxy compatibility checks */
.proxy-row-card-new.limited::before {
  background: linear-gradient(180deg, #f7b955 0%, #d89728 100%);
}

.proxy-row-status-new.limited {
  border-color: rgba(217, 151, 40, 0.24);
  background: rgba(255, 249, 236, 0.9);
  color: #9a6615;
}

.proxy-provider-checks-new {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.proxy-provider-check-new {
  min-height: 50px;
  border: 1px solid #e8edf5;
  border-radius: 13px;
  background: #fbfcff;
  padding: 10px 11px;
}

.proxy-provider-check-new.ok {
  border-color: #ccefd8;
  background: #effaf3;
}

.proxy-provider-check-new.bad {
  border-color: rgba(217, 151, 40, 0.22);
  background: rgba(255, 249, 236, 0.86);
}

.proxy-provider-check-new b {
  display: block;
  color: #171b25;
  font-size: 11.5px;
  line-height: 1;
  font-weight: 800;
}

.proxy-provider-check-new.ok b {
  color: #177a3a;
}

.proxy-provider-check-new.bad b {
  color: #9a6615;
}

.proxy-provider-check-new span {
  display: block;
  margin-top: 6px;
  color: #687387;
  font-size: 11.2px;
  line-height: 1.34;
  font-weight: 560;
}

@media (max-width: 760px) {
  .proxy-provider-checks-new {
    grid-template-columns: 1fr;
  }
}


/* v105: Extra section development placeholder */
.extra-development-page {
  min-height: calc(100vh - 210px);
  display: grid;
  place-items: center;
  padding: 26px;
}

.extra-development-card {
  width: min(100%, 560px);
  min-height: 260px;
  display: grid;
  justify-items: center;
  align-content: center;
  text-align: center;
  padding: 34px;
  background:
    radial-gradient(circle at 50% 0%, rgba(109, 69, 245, 0.095), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(252, 253, 255, 0.98));
}

.extra-development-marker {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid #e8e1ff;
  border-radius: 18px;
  background: #f4f1ff;
  color: #6d45f5;
  margin-bottom: 16px;
}

.extra-development-marker svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.extra-development-card h2 {
  margin: 0;
  color: #171b25;
  font-size: 24px;
  line-height: 1.08;
  font-weight: 820;
  letter-spacing: -0.035em;
}

.extra-development-card p {
  max-width: 390px;
  margin: 10px 0 0;
  color: #687387;
  font-size: 13px;
  line-height: 1.48;
  font-weight: 500;
}


/* v106: YouTube accounts page based on old OAuth slots logic */
.youtube-accounts-page-new {
  display: grid;
  gap: 16px;
}

.youtube-accounts-hero-new {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background:
    radial-gradient(circle at 0% 0%, rgba(109, 69, 245, 0.085), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(252, 253, 255, 0.98));
}

.youtube-hero-icon-new,
.youtube-panel-icon-new {
  display: grid;
  place-items: center;
  border: 1px solid #e8e1ff;
  background: #f4f1ff;
  color: #6d45f5;
}

.youtube-hero-icon-new {
  width: 58px;
  height: 58px;
  border-radius: 18px;
}

.youtube-hero-icon-new svg,
.youtube-panel-icon-new svg,
.youtube-slot-chevron-new svg,
.youtube-slot-stat-chip-new svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.youtube-eyebrow-new {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 8px;
  color: #7a63e8;
  font-size: 11px;
  line-height: 1.15;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.youtube-eyebrow-new::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(109, 69, 245, 0.92), rgba(177, 154, 255, 0.78));
}

.youtube-accounts-hero-new h2 {
  max-width: 860px;
  margin: 0;
  color: #171b25;
  font-size: 20px;
  line-height: 1.12;
  font-weight: 780;
  letter-spacing: -0.028em;
}

.youtube-accounts-hero-new p {
  max-width: 960px;
  margin: 7px 0 0;
  color: #667189;
  font-size: 13px;
  line-height: 1.48;
  font-weight: 440;
}

.youtube-summary-badge-new {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  border: 1px solid #edf1f7;
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.88);
  color: #7a8496;
  padding: 0 12px;
  font-size: 11.5px;
  font-weight: 760;
  white-space: nowrap;
}

.youtube-summary-badge-new.is-active {
  border-color: rgba(109, 69, 245, 0.18);
  background: #f8f5ff;
  color: #6847f5;
}

.youtube-metrics-grid-new {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.youtube-metric-card-new {
  min-height: 94px;
  padding: 16px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.youtube-metric-card-new:hover {
  border-color: rgba(109, 69, 245, 0.22);
  box-shadow:
    0 0 0 1px rgba(109, 69, 245, 0.05),
    0 12px 26px rgba(109, 69, 245, 0.08),
    0 0 22px rgba(109, 69, 245, 0.08);
  transform: translateY(-1px);
}

.youtube-metric-card-new span {
  display: block;
  color: #738097;
  font-size: 11.5px;
  font-weight: 720;
}

.youtube-metric-card-new b {
  display: block;
  margin-top: 8px;
  color: #171b25;
  font-size: 22px;
  line-height: 1;
  font-weight: 820;
  letter-spacing: -0.03em;
}

.youtube-metric-card-new small {
  display: block;
  margin-top: 7px;
  color: #8a94a6;
  font-size: 11px;
  line-height: 1.25;
  font-weight: 560;
}

.youtube-panel-new {
  padding: 18px;
}

.youtube-panel-head-new {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.youtube-panel-icon-new {
  width: 42px;
  height: 42px;
  border-radius: 14px;
}

.youtube-panel-icon-new svg {
  width: 21px;
  height: 21px;
}

.youtube-panel-head-new h3 {
  margin: 0;
  color: #171b25;
  font-size: 16px;
  line-height: 1.15;
  font-weight: 780;
  letter-spacing: -0.02em;
}

.youtube-panel-head-new p {
  margin: 5px 0 0;
  color: #667189;
  font-size: 12px;
  line-height: 1.38;
  font-weight: 500;
}

.youtube-soft-button-new,
.youtube-primary-button-new,
.youtube-danger-button-new,
.youtube-action-button-new {
  min-height: 34px;
  border-radius: 12px;
  border: 1px solid #dfe5ef;
  background: #ffffff;
  color: #172033;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11.5px;
  line-height: 1;
  font-weight: 760;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease,
    background-color 0.18s ease,
    color 0.18s ease;
}

.youtube-primary-button-new {
  border-color: #6d45f5;
  background: #6d45f5;
  color: #ffffff;
}

.youtube-danger-button-new {
  border-color: rgba(223, 43, 87, 0.16);
  background: #fff8fa;
  color: #df2b57;
}

.youtube-soft-button-new:hover:not(:disabled),
.youtube-primary-button-new:hover:not(:disabled),
.youtube-danger-button-new:hover:not(:disabled),
.youtube-action-button-new:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: #ded6ff;
  background: #fbfaff;
  color: #6d45f5;
  box-shadow: 0 9px 20px rgba(109, 69, 245, 0.09);
}

.youtube-primary-button-new:hover:not(:disabled) {
  background: #6540e8;
  color: #ffffff;
}

.youtube-status-box-new,
.youtube-manual-auth-new,
.youtube-empty-state-new {
  margin-top: 14px;
  border: 1px solid #e8edf5;
  border-radius: 13px;
  background: #f9fbff;
  color: #596378;
  padding: 11px 12px;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 650;
}

.youtube-status-box-new.is-success {
  border-color: #ccefd8;
  background: #effaf3;
  color: #177a3a;
}

.youtube-status-box-new.is-error {
  border-color: #ffdbe3;
  background: #fff7f9;
  color: #c93554;
}

.youtube-manual-auth-new {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.youtube-manual-auth-new a {
  color: #6d45f5;
  font-weight: 800;
  text-decoration: none;
}

.youtube-slot-list-new {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.youtube-empty-state-new {
  min-height: 120px;
  display: grid;
  place-items: center;
  text-align: center;
}

.youtube-slot-card-new {
  border: 1px solid #e4e8f2;
  border-radius: 17px;
  background: linear-gradient(180deg, #ffffff 0%, #fcfdff 100%);
  box-shadow: 0 9px 22px rgba(28, 34, 52, 0.04);
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.youtube-slot-card-new:hover,
.youtube-slot-card-new.is-open {
  border-color: rgba(109, 69, 245, 0.20);
  box-shadow:
    0 0 0 1px rgba(109, 69, 245, 0.04),
    0 12px 26px rgba(109, 69, 245, 0.075);
}

.youtube-slot-card-new.is-connected {
  border-color: rgba(109, 69, 245, 0.22);
}

.youtube-slot-header-new {
  width: 100%;
  border: 0;
  background: transparent;
  display: grid;
  grid-template-columns: 78px 42px minmax(0, 1fr) auto auto 24px;
  gap: 12px;
  align-items: center;
  padding: 13px 14px;
  cursor: pointer;
  text-align: left;
}

.youtube-slot-index-new {
  color: #748096;
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
  text-transform: uppercase;
}

.youtube-account-avatar-new {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid #e8e1ff;
  border-radius: 14px;
  background: #f4f1ff;
  color: #6d45f5;
  overflow: hidden;
  font-size: 14px;
  font-weight: 850;
}

.youtube-account-avatar-new img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.youtube-slot-title-wrap-new {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.youtube-slot-title-new {
  color: #171b25;
  font-size: 14.5px;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.youtube-slot-summary-new {
  color: #748096;
  font-size: 11.5px;
  line-height: 1.2;
  font-weight: 650;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.youtube-slot-stats-new {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.youtube-slot-stat-chip-new {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid #edf1f7;
  border-radius: 999px;
  background: #f9fbff;
  color: #728099;
  padding: 0 8px;
  font-size: 11px;
  line-height: 1;
  font-weight: 760;
}

.youtube-slot-stat-chip-new svg {
  width: 14px;
  height: 14px;
  stroke-width: 1.8;
}

.youtube-slot-badges-new {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.youtube-mini-badge-new {
  min-height: 23px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #edf1f7;
  border-radius: 999px;
  background: #f9fbff;
  color: #728099;
  padding: 0 8px;
  font-size: 10.8px;
  line-height: 1;
  font-weight: 740;
}

.youtube-mini-badge-new.active {
  border-color: #ccefd8;
  background: #eefaf2;
  color: #177a3a;
}

.youtube-mini-badge-new.muted {
  color: #9aa5b6;
}

.youtube-slot-chevron-new {
  color: #7a8496;
  transition: transform 0.18s ease;
}

.youtube-slot-chevron-new svg {
  width: 18px;
  height: 18px;
}

.youtube-slot-card-new.is-open .youtube-slot-chevron-new {
  transform: rotate(180deg);
}

.youtube-slot-body-new {
  display: none;
  border-top: 1px solid #edf1f7;
  background: #fbfcff;
  padding: 15px;
}

.youtube-slot-card-new.is-open .youtube-slot-body-new {
  display: block;
}

.youtube-slot-body-grid-new {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) 360px;
  gap: 14px;
}

.youtube-slot-connect-panel-new,
.youtube-slot-tools-panel-new {
  border: 1px solid #e8edf5;
  border-radius: 15px;
  background: #ffffff;
  padding: 14px;
}

.youtube-slot-connect-panel-new h4,
.youtube-slot-tools-panel-new h4,
.youtube-info-panel-new h4 {
  margin: 0;
  color: #171b25;
  font-size: 14px;
  line-height: 1.15;
  font-weight: 800;
}

.youtube-slot-connect-panel-new p,
.youtube-slot-tools-panel-new p,
.youtube-info-panel-new p {
  margin: 6px 0 0;
  color: #667189;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 500;
}

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

.youtube-field-new {
  display: grid;
  gap: 6px;
}

.youtube-field-new.full {
  grid-column: span 2;
}

.youtube-field-new span {
  color: #5f6b7e;
  font-size: 11.5px;
  font-weight: 680;
}

.youtube-field-new input,
.youtube-field-new select {
  width: 100%;
  height: 37px;
  border: 1px solid #e7ebf3;
  border-radius: 12px;
  background: #ffffff;
  color: #202536;
  padding: 0 11px;
  font-size: 12.5px;
  font-weight: 520;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.youtube-field-new input:focus,
.youtube-field-new select:focus {
  border-color: rgba(109, 69, 245, 0.34);
  box-shadow: 0 0 0 3px rgba(109, 69, 245, 0.08);
}

.youtube-field-new small {
  color: #8792a4;
  font-size: 10.8px;
  line-height: 1.3;
  font-weight: 560;
}

.youtube-checks-row-new {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.youtube-clean-check-new {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  border: 1px solid #edf1f7;
  border-radius: 13px;
  background: #f9fbff;
  padding: 10px;
}

.youtube-clean-check-new input {
  margin-top: 2px;
  accent-color: #6d45f5;
}

.youtube-clean-check-new b {
  display: block;
  color: #202536;
  font-size: 11.5px;
  line-height: 1.18;
  font-weight: 780;
}

.youtube-clean-check-new small {
  display: block;
  margin-top: 4px;
  color: #748096;
  font-size: 10.8px;
  line-height: 1.3;
  font-weight: 550;
}

.youtube-form-actions-new {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.youtube-action-button-new {
  width: 100%;
}

.youtube-info-panel-new {
  margin-top: 12px;
  border: 1px solid #edf1f7;
  border-radius: 14px;
  background: #fbfcff;
  padding: 12px;
}

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

.youtube-info-grid-new > div {
  border: 1px solid #e8edf5;
  border-radius: 12px;
  background: #ffffff;
  padding: 9px;
}

.youtube-info-grid-new b {
  display: block;
  color: #7a8496;
  font-size: 10.5px;
  line-height: 1;
  font-weight: 740;
}

.youtube-info-grid-new span {
  display: block;
  margin-top: 6px;
  color: #171b25;
  font-size: 11.5px;
  line-height: 1.2;
  font-weight: 760;
}

.youtube-scope-list-new {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.youtube-scope-list-new span {
  border: 1px solid #edf1f7;
  border-radius: 999px;
  background: #ffffff;
  color: #728099;
  padding: 5px 8px;
  font-size: 10.6px;
  line-height: 1;
  font-weight: 720;
}

@media (max-width: 1380px) {
  .youtube-slot-header-new {
    grid-template-columns: 78px 42px minmax(0, 1fr) auto 24px;
  }

  .youtube-slot-stats-new {
    display: none;
  }
}

@media (max-width: 1180px) {
  .youtube-metrics-grid-new,
  .youtube-slot-body-grid-new {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .youtube-slot-body-grid-new {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .youtube-accounts-hero-new,
  .youtube-metrics-grid-new,
  .youtube-panel-head-new,
  .youtube-slot-header-new,
  .youtube-slot-form-new,
  .youtube-checks-row-new,
  .youtube-info-grid-new {
    grid-template-columns: 1fr;
  }

  .youtube-summary-badge-new,
  .youtube-soft-button-new {
    justify-self: start;
  }

  .youtube-field-new.full {
    grid-column: auto;
  }

  .youtube-slot-badges-new {
    justify-content: flex-start;
  }
}


/* v107: instruction cards for YouTube and Proxy pages */
.youtube-instruction-grid-new,
.proxy-instruction-grid-new {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.youtube-instruction-card-new,
.proxy-instruction-card-new {
  min-height: 84px;
  border: 1px solid #e7ebf4;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  padding: 14px 15px;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease,
    background-color 0.18s ease;
}

.youtube-instruction-card-new:hover,
.proxy-instruction-card-new:hover {
  border-color: rgba(109, 69, 245, 0.24);
  background: rgba(255, 255, 255, 0.94);
  box-shadow:
    0 0 0 1px rgba(109, 69, 245, 0.06),
    0 10px 24px rgba(109, 69, 245, 0.08),
    0 0 22px rgba(109, 69, 245, 0.10);
  transform: translateY(-1px);
}

.youtube-instruction-card-new strong,
.proxy-instruction-card-new strong {
  display: block;
  color: #171b25;
  font-size: 12.5px;
  line-height: 1.16;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.youtube-instruction-card-new span,
.proxy-instruction-card-new span {
  display: block;
  margin-top: 8px;
  color: #687387;
  font-size: 11.5px;
  line-height: 1.34;
  font-weight: 500;
}

@media (max-width: 1180px) {
  .youtube-instruction-grid-new,
  .proxy-instruction-grid-new {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .youtube-instruction-grid-new,
  .proxy-instruction-grid-new {
    grid-template-columns: 1fr;
  }
}


/* v108: YouTube OAuth setup guide */
.youtube-setup-guide-new {
  display: grid;
  gap: 14px;
  padding: 18px;
  background:
    radial-gradient(circle at 0% 0%, rgba(109, 69, 245, 0.075), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(252, 253, 255, 0.98));
}

.youtube-setup-top-new {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
}

.youtube-setup-top-new h3 {
  margin: 0;
  color: #171b25;
  font-size: 18px;
  line-height: 1.14;
  font-weight: 800;
  letter-spacing: -0.026em;
}

.youtube-setup-top-new p {
  max-width: 880px;
  margin: 7px 0 0;
  color: #667189;
  font-size: 13px;
  line-height: 1.48;
  font-weight: 460;
}

.youtube-setup-actions-new {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.youtube-setup-actions-new a {
  text-decoration: none;
}

.youtube-redirect-copy-new {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(109, 69, 245, 0.16);
  border-radius: 15px;
  background: #fbfaff;
  padding: 12px 13px;
}

.youtube-redirect-copy-new strong {
  display: block;
  color: #202536;
  font-size: 11.5px;
  line-height: 1.1;
  font-weight: 780;
}

.youtube-redirect-copy-new code {
  display: block;
  margin-top: 7px;
  color: #5f43df;
  font-size: 12.5px;
  line-height: 1.28;
  font-weight: 720;
  word-break: break-all;
}

.youtube-setup-step-list-new {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.youtube-setup-step-new {
  min-height: 92px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  border: 1px solid #e7ebf4;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.82);
  padding: 12px;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease,
    background-color 0.18s ease;
}

.youtube-setup-step-new:hover {
  border-color: rgba(109, 69, 245, 0.24);
  background: rgba(255, 255, 255, 0.94);
  box-shadow:
    0 0 0 1px rgba(109, 69, 245, 0.05),
    0 10px 24px rgba(109, 69, 245, 0.07);
  transform: translateY(-1px);
}

.youtube-setup-step-new > b {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid #e8e1ff;
  border-radius: 10px;
  background: #f4f1ff;
  color: #6d45f5;
  font-size: 12px;
  font-weight: 840;
}

.youtube-setup-step-new strong {
  display: block;
  color: #171b25;
  font-size: 12.2px;
  line-height: 1.18;
  font-weight: 800;
}

.youtube-setup-step-new span {
  display: block;
  margin-top: 6px;
  color: #687387;
  font-size: 11.3px;
  line-height: 1.34;
  font-weight: 500;
}

.youtube-setup-note-new {
  border: 1px solid rgba(217, 151, 40, 0.22);
  border-radius: 13px;
  background: rgba(255, 249, 236, 0.82);
  color: #9a6615;
  padding: 10px 12px;
  font-size: 11.5px;
  line-height: 1.35;
  font-weight: 650;
}

@media (max-width: 1180px) {
  .youtube-setup-step-list-new {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .youtube-setup-top-new,
  .youtube-redirect-copy-new {
    grid-template-columns: 1fr;
  }

  .youtube-setup-actions-new {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .youtube-setup-step-list-new {
    grid-template-columns: 1fr;
  }
}


/* v111: simplify YouTube slot readability */
.youtube-slot-header-new {
  grid-template-columns: 78px 42px minmax(0, 1fr) auto 24px;
}

.youtube-slot-stats-new,
.youtube-slot-badges-new {
  display: none !important;
}

.youtube-slot-state-new {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e3e8f1;
  border-radius: 999px;
  background: #f8fafc;
  color: #7a8496;
  padding: 0 11px;
  font-size: 11px;
  line-height: 1;
  font-weight: 780;
  white-space: nowrap;
}

.youtube-slot-state-new.is-connected {
  border-color: rgba(27, 174, 119, 0.20);
  background: #f0fdf8;
  color: #11775b;
}

.youtube-slot-state-new.is-warning {
  border-color: rgba(217, 151, 40, 0.24);
  background: rgba(255, 249, 236, 0.9);
  color: #9a6615;
}

.youtube-slot-simple-body-new {
  display: grid;
  gap: 14px;
}

.youtube-next-steps-new {
  border: 1px solid rgba(109, 69, 245, 0.14);
  border-radius: 15px;
  background:
    radial-gradient(circle at 0% 0%, rgba(109, 69, 245, 0.065), transparent 34%),
    #ffffff;
  padding: 14px;
}

.youtube-next-steps-new.is-connected {
  border-color: rgba(27, 174, 119, 0.18);
  background:
    radial-gradient(circle at 0% 0%, rgba(27, 174, 119, 0.055), transparent 34%),
    #ffffff;
}

.youtube-next-steps-new h4 {
  margin: 0;
  color: #171b25;
  font-size: 15px;
  line-height: 1.15;
  font-weight: 820;
  letter-spacing: -0.02em;
}

.youtube-next-steps-new p {
  margin: 7px 0 0;
  color: #667189;
  font-size: 12.5px;
  line-height: 1.42;
  font-weight: 520;
}

.youtube-next-step-row-new {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-top: 12px;
}

.youtube-next-step-row-new span {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #edf1f7;
  border-radius: 13px;
  background: #fbfcff;
  color: #4b5568;
  padding: 9px 10px;
  font-size: 11.5px;
  line-height: 1.25;
  font-weight: 690;
}

.youtube-next-step-row-new b {
  min-width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #f4f1ff;
  color: #6d45f5;
  font-size: 11px;
  font-weight: 840;
}

.youtube-slot-connect-panel-new,
.youtube-slot-tools-panel-new {
  border: none;
  background: transparent;
  padding: 0;
}

.youtube-slot-form-new {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 0;
  border: 1px solid #e8edf5;
  border-radius: 15px;
  background: #ffffff;
  padding: 14px;
}

.youtube-form-actions-new {
  margin-top: 2px;
  padding-top: 2px;
}

.youtube-form-actions-new .youtube-primary-button-new,
.youtube-form-actions-new .youtube-soft-button-new {
  min-width: 176px;
}

.youtube-info-panel-new--inline {
  margin-top: 12px;
}

.youtube-panel-head-new p {
  max-width: 760px;
}

.youtube-status-box-new {
  font-size: 12.3px;
}

@media (max-width: 760px) {
  .youtube-slot-header-new,
  .youtube-slot-form-new,
  .youtube-next-step-row-new {
    grid-template-columns: 1fr;
  }

  .youtube-form-actions-new .youtube-primary-button-new,
  .youtube-form-actions-new .youtube-soft-button-new {
    width: 100%;
    min-width: 0;
  }

  .youtube-slot-state-new {
    justify-self: start;
  }
}


/* v116: YouTube page header and OAuth guide fixed to match Proxy/AI style */
.youtube-accounts-hero-new.youtube-accounts-hero-new--no-icon {
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: start !important;
}

.youtube-accounts-hero-new--no-icon .youtube-hero-icon-new {
  display: none !important;
}

.youtube-accounts-hero-new--no-icon .youtube-eyebrow-new {
  margin-bottom: 9px;
}

.youtube-setup-guide-new {
  display: grid !important;
  gap: 14px !important;
  padding: 18px !important;
  border: 1px solid #dde5f2 !important;
  border-radius: 16px !important;
  background:
    radial-gradient(circle at 0% 0%, rgba(109, 69, 245, 0.075), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(252, 253, 255, 0.98)) !important;
  overflow: hidden;
}

.youtube-setup-guide-new .youtube-eyebrow-new {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin: 0 0 9px !important;
  border: 0 !important;
  background: transparent !important;
  color: #7a63e8 !important;
  padding: 0 !important;
  font-size: 11px !important;
  line-height: 1.15 !important;
  font-weight: 760 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
}

.youtube-setup-guide-new .youtube-eyebrow-new::before {
  content: "" !important;
  display: inline-block !important;
  width: 22px !important;
  height: 2px !important;
  border-radius: 999px !important;
  background: linear-gradient(90deg, rgba(109, 69, 245, 0.92), rgba(177, 154, 255, 0.78)) !important;
}

.youtube-setup-top-new {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 14px !important;
  align-items: start !important;
}

.youtube-setup-top-new h3 {
  margin: 0 !important;
  color: #171b25 !important;
  font-size: 18px !important;
  line-height: 1.14 !important;
  font-weight: 800 !important;
  letter-spacing: -0.026em !important;
}

.youtube-setup-top-new p {
  max-width: 880px !important;
  margin: 7px 0 0 !important;
  color: #667189 !important;
  font-size: 13px !important;
  line-height: 1.48 !important;
  font-weight: 460 !important;
}

.youtube-setup-actions-new {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  justify-content: flex-end !important;
  align-items: center !important;
}

.youtube-setup-actions-new a {
  text-decoration: none !important;
}

.youtube-redirect-copy-new {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 12px !important;
  align-items: center !important;
  border: 1px solid rgba(109, 69, 245, 0.16) !important;
  border-radius: 15px !important;
  background: #fbfaff !important;
  padding: 12px 13px !important;
}

.youtube-redirect-copy-new strong {
  display: block !important;
  color: #202536 !important;
  font-size: 11.5px !important;
  line-height: 1.1 !important;
  font-weight: 780 !important;
}

.youtube-redirect-copy-new code {
  display: block !important;
  margin-top: 7px !important;
  color: #5f43df !important;
  font-size: 12.5px !important;
  line-height: 1.28 !important;
  font-weight: 720 !important;
  word-break: break-all !important;
}

.youtube-setup-step-list-new {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

.youtube-setup-step-new {
  min-height: 92px !important;
  display: grid !important;
  grid-template-columns: 30px minmax(0, 1fr) !important;
  gap: 10px !important;
  border: 1px solid #e7ebf4 !important;
  border-radius: 15px !important;
  background: rgba(255, 255, 255, 0.82) !important;
  padding: 12px !important;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease,
    background-color 0.18s ease !important;
}

.youtube-setup-step-new:hover {
  border-color: rgba(109, 69, 245, 0.24) !important;
  background: rgba(255, 255, 255, 0.94) !important;
  box-shadow:
    0 0 0 1px rgba(109, 69, 245, 0.05),
    0 10px 24px rgba(109, 69, 245, 0.07) !important;
  transform: translateY(-1px) !important;
}

.youtube-setup-step-new > b {
  width: 30px !important;
  height: 30px !important;
  display: grid !important;
  place-items: center !important;
  border: 1px solid #e8e1ff !important;
  border-radius: 10px !important;
  background: #f4f1ff !important;
  color: #6d45f5 !important;
  font-size: 12px !important;
  font-weight: 840 !important;
}

.youtube-setup-step-new strong {
  display: block !important;
  color: #171b25 !important;
  font-size: 12.2px !important;
  line-height: 1.18 !important;
  font-weight: 800 !important;
}

.youtube-setup-step-new span {
  display: block !important;
  margin-top: 6px !important;
  color: #687387 !important;
  font-size: 11.3px !important;
  line-height: 1.34 !important;
  font-weight: 500 !important;
}

.youtube-setup-note-new {
  border: 1px solid rgba(217, 151, 40, 0.22) !important;
  border-radius: 13px !important;
  background: rgba(255, 249, 236, 0.82) !important;
  color: #9a6615 !important;
  padding: 10px 12px !important;
  font-size: 11.5px !important;
  line-height: 1.35 !important;
  font-weight: 650 !important;
}

@media (max-width: 1180px) {
  .youtube-setup-top-new,
  .youtube-redirect-copy-new {
    grid-template-columns: 1fr !important;
  }

  .youtube-setup-step-list-new {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .youtube-setup-actions-new {
    justify-content: flex-start !important;
  }
}

@media (max-width: 760px) {
  .youtube-accounts-hero-new.youtube-accounts-hero-new--no-icon,
  .youtube-setup-step-list-new {
    grid-template-columns: 1fr !important;
  }

  .youtube-accounts-hero-new--no-icon .youtube-summary-badge-new {
    justify-self: start;
  }
}


/* v117: YouTube OAuth guide cleanup and readable instruction cards */
.youtube-manual-auth-new {
  display: none !important;
}

.youtube-setup-guide-new {
  gap: 16px !important;
}

.youtube-setup-top-new {
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
}

.youtube-setup-top-new h3 {
  font-size: 20px !important;
  line-height: 1.12 !important;
}

.youtube-setup-top-new p {
  max-width: 980px !important;
  font-size: 13.2px !important;
  line-height: 1.5 !important;
}

.youtube-redirect-copy-new {
  padding: 14px 15px !important;
  border-radius: 16px !important;
}

.youtube-redirect-copy-new code {
  font-size: 13px !important;
}

.youtube-setup-step-list-new {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

.youtube-setup-step-new {
  min-height: 118px !important;
  grid-template-columns: 42px minmax(0, 1fr) !important;
  gap: 13px !important;
  padding: 15px !important;
  border-radius: 17px !important;
  background:
    radial-gradient(circle at 0% 0%, rgba(109, 69, 245, 0.045), transparent 42%),
    rgba(255, 255, 255, 0.88) !important;
}

.youtube-setup-step-new > b {
  width: 42px !important;
  height: 42px !important;
  border-radius: 14px !important;
  font-size: 14px !important;
  align-self: start !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.youtube-setup-step-new strong {
  font-size: 14px !important;
  line-height: 1.18 !important;
  letter-spacing: -0.015em !important;
}

.youtube-setup-step-new span {
  margin-top: 8px !important;
  color: #5f6b7e !important;
  font-size: 12.5px !important;
  line-height: 1.42 !important;
  font-weight: 520 !important;
}

.youtube-setup-note-new {
  padding: 12px 14px !important;
  font-size: 12px !important;
}

@media (max-width: 980px) {
  .youtube-setup-step-list-new {
    grid-template-columns: 1fr !important;
  }

  .youtube-setup-top-new {
    grid-template-columns: 1fr !important;
  }

  .youtube-setup-actions-new {
    justify-content: flex-start !important;
  }
}


/* v118: restore Proxy intro layout and combine YouTube intro with guide */

/* Proxy page: hero + instruction in one normal card, no squeezed first column */
.proxy-intro-card-new {
  display: grid !important;
  gap: 14px !important;
  padding: 20px !important;
  border: 1px solid #dde5f2 !important;
  border-radius: 16px !important;
  background:
    radial-gradient(circle at 0% 0%, rgba(109, 69, 245, 0.085), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(252, 253, 255, 0.98)) !important;
  overflow: hidden !important;
}

.proxy-hero-card-new--nested,
.proxy-hero-card-new--nested.proxy-hero-card-new--no-icon,
.proxy-hero-card-new.proxy-hero-card-new--no-icon {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: start !important;
  gap: 16px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.proxy-hero-card-new--nested .proxy-hero-icon-new,
.proxy-hero-card-new--no-icon .proxy-hero-icon-new,
.proxy-intro-card-new .proxy-hero-icon-new {
  display: none !important;
}

.proxy-hero-card-new--nested .proxy-hero-copy-new,
.proxy-hero-card-new--no-icon .proxy-hero-copy-new {
  min-width: 0 !important;
  max-width: 980px !important;
}

.proxy-intro-card-new .proxy-eyebrow-new {
  margin-bottom: 9px !important;
}

.proxy-intro-card-new .proxy-hero-card-new h2 {
  max-width: 900px !important;
}

.proxy-intro-card-new .proxy-hero-card-new p {
  max-width: 960px !important;
}

.proxy-intro-card-new .proxy-summary-badge-new {
  justify-self: end !important;
  width: auto !important;
  min-width: 0 !important;
}

.proxy-intro-card-new .proxy-instruction-grid-new {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 12px !important;
  margin: 0 !important;
}

.proxy-intro-card-new .proxy-instruction-card-new {
  min-height: 82px !important;
  padding: 14px 15px !important;
}

/* YouTube page: header and OAuth guide inside one card */
.youtube-intro-card-new {
  display: grid !important;
  gap: 15px !important;
  padding: 20px !important;
  border: 1px solid #dde5f2 !important;
  border-radius: 16px !important;
  background:
    radial-gradient(circle at 0% 0%, rgba(109, 69, 245, 0.085), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(252, 253, 255, 0.98)) !important;
  overflow: hidden !important;
}

.youtube-accounts-hero-new--nested,
.youtube-accounts-hero-new--nested.youtube-accounts-hero-new--no-icon,
.youtube-accounts-hero-new.youtube-accounts-hero-new--no-icon {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: start !important;
  gap: 16px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.youtube-accounts-hero-new--nested .youtube-hero-icon-new,
.youtube-accounts-hero-new--no-icon .youtube-hero-icon-new,
.youtube-intro-card-new .youtube-hero-icon-new {
  display: none !important;
}

.youtube-accounts-hero-new--nested .youtube-hero-copy-new,
.youtube-accounts-hero-new--no-icon .youtube-hero-copy-new {
  min-width: 0 !important;
  max-width: 980px !important;
}

.youtube-intro-card-new .youtube-summary-badge-new {
  justify-self: end !important;
  width: auto !important;
  min-width: 0 !important;
}

.youtube-setup-guide-new--nested {
  display: grid !important;
  gap: 12px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}

.youtube-setup-guide-new--nested .youtube-setup-top-new {
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 12px !important;
  align-items: center !important;
}

.youtube-setup-guide-new--nested .youtube-setup-top-new h3 {
  font-size: 18px !important;
  line-height: 1.13 !important;
}

.youtube-setup-guide-new--nested .youtube-setup-top-new p {
  max-width: 980px !important;
  font-size: 12.7px !important;
  line-height: 1.44 !important;
}

.youtube-setup-guide-new--nested .youtube-redirect-copy-new {
  padding: 11px 13px !important;
  border-radius: 14px !important;
}

.youtube-setup-guide-new--nested .youtube-setup-step-list-new {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

.youtube-setup-guide-new--nested .youtube-setup-step-new {
  min-height: 78px !important;
  grid-template-columns: 30px minmax(0, 1fr) !important;
  gap: 10px !important;
  padding: 11px 12px !important;
  border-radius: 15px !important;
  background:
    radial-gradient(circle at 0% 0%, rgba(109, 69, 245, 0.04), transparent 38%),
    rgba(255, 255, 255, 0.86) !important;
}

.youtube-setup-guide-new--nested .youtube-setup-step-new > b {
  width: 30px !important;
  height: 30px !important;
  border-radius: 10px !important;
  font-size: 12px !important;
}

.youtube-setup-guide-new--nested .youtube-setup-step-new strong {
  font-size: 12.4px !important;
  line-height: 1.18 !important;
}

.youtube-setup-guide-new--nested .youtube-setup-step-new span {
  margin-top: 5px !important;
  font-size: 11.35px !important;
  line-height: 1.32 !important;
}

.youtube-setup-guide-new--nested .youtube-setup-note-new {
  padding: 9px 11px !important;
  font-size: 11.4px !important;
}

@media (max-width: 1180px) {
  .proxy-intro-card-new .proxy-instruction-grid-new,
  .youtube-setup-guide-new--nested .youtube-setup-step-list-new {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .youtube-setup-guide-new--nested .youtube-setup-top-new {
    grid-template-columns: 1fr !important;
  }

  .youtube-setup-guide-new--nested .youtube-setup-actions-new {
    justify-content: flex-start !important;
  }
}

@media (max-width: 760px) {
  .proxy-hero-card-new--nested,
  .proxy-hero-card-new--nested.proxy-hero-card-new--no-icon,
  .proxy-hero-card-new.proxy-hero-card-new--no-icon,
  .youtube-accounts-hero-new--nested,
  .youtube-accounts-hero-new--nested.youtube-accounts-hero-new--no-icon,
  .youtube-accounts-hero-new.youtube-accounts-hero-new--no-icon,
  .proxy-intro-card-new .proxy-instruction-grid-new,
  .youtube-setup-guide-new--nested .youtube-setup-step-list-new {
    grid-template-columns: 1fr !important;
  }

  .proxy-intro-card-new .proxy-summary-badge-new,
  .youtube-intro-card-new .youtube-summary-badge-new {
    justify-self: start !important;
  }
}


/* v120: compact connected YouTube account card */
.youtube-connected-compact-body-new {
  display: grid;
  gap: 12px;
}

.youtube-connected-summary-new {
  border: 1px solid rgba(27, 174, 119, 0.18);
  border-radius: 16px;
  background:
    radial-gradient(circle at 0% 0%, rgba(27, 174, 119, 0.055), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(252, 254, 253, 0.96));
  padding: 14px;
}

.youtube-connected-summary-top-new {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.youtube-connected-avatar-new {
  width: 44px !important;
  height: 44px !important;
  border-radius: 14px !important;
}

.youtube-connected-copy-new {
  min-width: 0;
}

.youtube-connected-title-row-new {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.youtube-connected-title-row-new h4 {
  margin: 0;
  color: #171b25;
  font-size: 16px;
  line-height: 1.08;
  font-weight: 820;
  letter-spacing: -0.02em;
}

.youtube-connected-copy-new p {
  margin: 5px 0 0;
  color: #657087;
  font-size: 11.8px;
  line-height: 1.32;
  font-weight: 620;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.youtube-connected-badge-new {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(27, 174, 119, 0.22);
  border-radius: 999px;
  background: #f0fdf8;
  color: #11775b;
  padding: 0 9px;
  font-size: 10.8px;
  line-height: 1;
  font-weight: 800;
}

.youtube-connected-actions-new {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.youtube-connected-actions-new .youtube-primary-button-new,
.youtube-connected-actions-new .youtube-soft-button-new,
.youtube-connected-actions-new .youtube-danger-button-new {
  min-height: 32px;
  padding: 0 12px;
  text-decoration: none;
}

.youtube-channel-open-button-new {
  color: #ffffff !important;
}

.youtube-connected-metrics-new {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.youtube-connected-metrics-new > div {
  min-height: 48px;
  border: 1px solid #e8edf5;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.76);
  padding: 8px 9px;
  overflow: hidden;
}

.youtube-connected-metrics-new span {
  display: block;
  color: #7e899c;
  font-size: 10.4px;
  line-height: 1;
  font-weight: 740;
}

.youtube-connected-metrics-new b {
  display: block;
  margin-top: 6px;
  color: #171b25;
  font-size: 11.6px;
  line-height: 1.14;
  font-weight: 820;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.youtube-connected-scopes-new {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.youtube-connected-scopes-new span {
  min-height: 23px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #dbeee4;
  border-radius: 999px;
  background: #f7fffb;
  color: #317a5a;
  padding: 0 8px;
  font-size: 10.6px;
  line-height: 1;
  font-weight: 740;
}

.youtube-connected-settings-new {
  border: 1px solid #e8edf5;
  border-radius: 15px;
  background: #ffffff;
  overflow: hidden;
}

.youtube-connected-settings-new summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  color: #202536;
  font-size: 12.5px;
  line-height: 1;
  font-weight: 800;
  cursor: pointer;
  user-select: none;
}

.youtube-connected-settings-new summary::marker {
  color: #6d45f5;
}

.youtube-connected-settings-content-new {
  border-top: 1px solid #edf1f7;
  background: #fbfcff;
  padding: 12px;
}

.youtube-connected-settings-content-new .youtube-slot-form-new {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

@media (max-width: 1360px) {
  .youtube-connected-summary-top-new {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .youtube-connected-actions-new {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .youtube-connected-metrics-new {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .youtube-connected-summary-top-new,
  .youtube-connected-metrics-new {
    grid-template-columns: 1fr;
  }

  .youtube-connected-actions-new .youtube-primary-button-new,
  .youtube-connected-actions-new .youtube-soft-button-new,
  .youtube-connected-actions-new .youtube-danger-button-new {
    width: 100%;
  }

  .youtube-connected-copy-new p {
    white-space: normal;
  }
}


/* v121: total channel engagement chips for connected YouTube account */
.youtube-engagement-chips-new {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 9px;
}

.youtube-engagement-chip-new {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #e8edf5;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: #7b61ff;
  padding: 0 9px;
  font-size: 11.2px;
  line-height: 1;
  font-weight: 780;
  box-shadow: 0 4px 12px rgba(28, 34, 52, 0.035);
}

.youtube-engagement-chip-new svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.youtube-engagement-chip-new.likes svg {
  stroke-width: 1.6;
}

.youtube-engagement-chip-new b {
  color: #5b6477;
  font-size: 11.2px;
  line-height: 1;
  font-weight: 820;
}

@media (max-width: 760px) {
  .youtube-engagement-chips-new {
    margin-top: 8px;
  }
}


/* v122: engagement chips in collapsed YouTube account header */
.youtube-slot-card-new.is-connected .youtube-slot-header-new {
  grid-template-columns: 78px 42px minmax(0, 1fr) auto auto 24px !important;
}

.youtube-header-engagement-new {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  min-width: 0;
}

.youtube-header-engagement-new:empty {
  display: none;
}

.youtube-slot-header-new > .youtube-engagement-chips-new {
  display: none !important;
}

.youtube-header-engagement-new .youtube-engagement-chip-new {
  min-height: 27px;
  padding: 0 9px;
  background: #ffffff;
}

.youtube-header-engagement-new .youtube-engagement-chip-new b {
  color: #637087;
}

.youtube-slot-card-new.is-connected .youtube-slot-state-new {
  margin-left: 4px;
}

@media (max-width: 1180px) {
  .youtube-slot-card-new.is-connected .youtube-slot-header-new {
    grid-template-columns: 78px 42px minmax(0, 1fr) auto 24px !important;
  }

  .youtube-header-engagement-new {
    grid-column: 3 / -1;
    justify-content: flex-start;
    margin-top: 6px;
  }
}

@media (max-width: 760px) {
  .youtube-slot-card-new.is-connected .youtube-slot-header-new {
    grid-template-columns: 1fr !important;
  }

  .youtube-header-engagement-new {
    grid-column: auto;
    justify-content: flex-start;
  }
}


/* v123: show all YouTube channel counters in the collapsed slot header */
.youtube-slot-card-new.is-connected .youtube-slot-header-new {
  grid-template-columns: 78px 42px minmax(0, 1fr) auto auto 24px !important;
}

.youtube-header-engagement-new {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 6px !important;
  min-width: max-content !important;
  max-width: none !important;
}

.youtube-header-engagement-new .youtube-engagement-chip-new {
  min-height: 27px !important;
  padding: 0 8px !important;
  background: #ffffff !important;
  border-color: #e8edf5 !important;
  box-shadow: 0 4px 12px rgba(28, 34, 52, 0.03) !important;
}

.youtube-header-engagement-new .youtube-engagement-chip-new svg {
  width: 14px !important;
  height: 14px !important;
}

.youtube-header-engagement-new .youtube-engagement-chip-new b,
.youtube-engagement-chip-new b {
  color: #647087 !important;
  font-size: 11px !important;
  font-weight: 620 !important;
  letter-spacing: -0.01em !important;
}

.youtube-engagement-chip-new.subscribers,
.youtube-engagement-chip-new.videos,
.youtube-engagement-chip-new.views,
.youtube-engagement-chip-new.likes,
.youtube-engagement-chip-new.comments {
  color: #7b61ff !important;
}

.youtube-slot-card-new.is-connected .youtube-slot-title-wrap-new {
  min-width: 260px;
}

@media (max-width: 1320px) {
  .youtube-slot-card-new.is-connected .youtube-slot-header-new {
    grid-template-columns: 78px 42px minmax(0, 1fr) auto 24px !important;
  }

  .youtube-header-engagement-new {
    grid-column: 3 / -1;
    justify-content: flex-start !important;
    margin-top: 6px;
    min-width: 0 !important;
  }
}

@media (max-width: 760px) {
  .youtube-slot-card-new.is-connected .youtube-slot-header-new {
    grid-template-columns: 1fr !important;
  }

  .youtube-header-engagement-new {
    grid-column: auto;
    flex-wrap: wrap;
  }
}


/* v124: YouTube account counters, empty slot layout, and metric card polish */
.youtube-slot-card-new:not(.is-connected) .youtube-slot-header-new {
  grid-template-columns: 78px 42px minmax(0, 1fr) auto 24px !important;
}

.youtube-slot-card-new.is-connected .youtube-slot-header-new {
  grid-template-columns: 78px 42px minmax(300px, 1fr) auto auto 24px !important;
}

.youtube-header-engagement-new {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 6px !important;
  min-width: max-content !important;
  max-width: none !important;
}

.youtube-engagement-chip-new {
  min-height: 27px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  border: 1px solid #e8edf5 !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  color: #7b61ff !important;
  padding: 0 8px !important;
  box-shadow: 0 4px 12px rgba(28, 34, 52, 0.03) !important;
}

.youtube-engagement-chip-new svg {
  width: 14px !important;
  height: 14px !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.7 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

.youtube-engagement-chip-new b {
  color: #647087 !important;
  font-size: 11px !important;
  line-height: 1 !important;
  font-weight: 620 !important;
  letter-spacing: -0.01em !important;
}

.youtube-connected-metrics-new {
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  gap: 9px !important;
}

.youtube-connected-metrics-new > div {
  min-height: 58px !important;
  display: grid !important;
  place-items: center !important;
  align-content: center !important;
  text-align: center !important;
  border: 1px solid #e8edf5 !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, 0.86) !important;
  padding: 9px 8px !important;
  overflow: hidden !important;
}

.youtube-connected-metrics-new span {
  display: block !important;
  color: #7e899c !important;
  font-size: 10.5px !important;
  line-height: 1 !important;
  font-weight: 700 !important;
}

.youtube-connected-metrics-new b {
  display: block !important;
  margin-top: 7px !important;
  color: #171b25 !important;
  font-size: 13px !important;
  line-height: 1.1 !important;
  font-weight: 650 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 100% !important;
}

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

.youtube-slot-card-new:not(.is-connected) .youtube-header-engagement-new {
  display: none !important;
}

@media (max-width: 1400px) {
  .youtube-slot-card-new.is-connected .youtube-slot-header-new {
    grid-template-columns: 78px 42px minmax(0, 1fr) auto 24px !important;
  }

  .youtube-header-engagement-new {
    grid-column: 3 / -1;
    justify-content: flex-start !important;
    margin-top: 6px;
    min-width: 0 !important;
    flex-wrap: wrap;
  }

  .youtube-connected-metrics-new {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  .youtube-slot-card-new.is-connected .youtube-slot-header-new,
  .youtube-slot-card-new:not(.is-connected) .youtube-slot-header-new,
  .youtube-connected-metrics-new {
    grid-template-columns: 1fr !important;
  }

  .youtube-header-engagement-new {
    grid-column: auto;
  }
}


/* v125: hide technical OAuth scopes and make slot number a pill */
.youtube-connected-scopes-new,
.youtube-scope-list-new {
  display: none !important;
}

.youtube-slot-index-new {
  width: max-content !important;
  min-height: 28px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid #e8e1ff !important;
  border-radius: 999px !important;
  background: #f4f1ff !important;
  color: #6d45f5 !important;
  padding: 0 10px !important;
  font-size: 11px !important;
  line-height: 1 !important;
  font-weight: 800 !important;
  letter-spacing: -0.01em !important;
  text-transform: none !important;
  white-space: nowrap !important;
}

.youtube-slot-card-new.is-connected .youtube-slot-index-new {
  border-color: rgba(109, 69, 245, 0.20) !important;
  background: #f8f5ff !important;
  color: #6847f5 !important;
}


/* v126: thinner YouTube settings summary and persisted checkbox states */
.youtube-connected-settings-new summary {
  font-weight: 560 !important;
  letter-spacing: -0.005em !important;
}

.youtube-connected-settings-new summary:hover {
  color: #6d45f5;
}


/* v127: Proxy instruction cards typography matched to AI connections page */
.proxy-intro-card-new .proxy-instruction-grid-new {
  gap: 10px !important;
}

.proxy-intro-card-new .proxy-instruction-card-new,
.proxy-instruction-card-new {
  min-width: 0 !important;
  min-height: 86px !important;
  border: 1px solid #edf1f7 !important;
  border-radius: 15px !important;
  background: rgba(255, 255, 255, 0.72) !important;
  padding: 13px 14px !important;
}

.proxy-intro-card-new .proxy-instruction-card-new strong,
.proxy-instruction-card-new strong {
  display: block !important;
  color: #171b25 !important;
  font-size: 12.5px !important;
  line-height: 1.18 !important;
  font-weight: 740 !important;
  letter-spacing: -0.01em !important;
}

.proxy-intro-card-new .proxy-instruction-card-new span,
.proxy-instruction-card-new span {
  display: block !important;
  margin-top: 6px !important;
  color: #6b758a !important;
  font-size: 11.5px !important;
  line-height: 1.34 !important;
  font-weight: 450 !important;
}


/* v128: YouTube instruction step cards typography matched to AI connections page */
.youtube-setup-guide-new--nested .youtube-setup-step-list-new {
  gap: 10px !important;
}

.youtube-setup-guide-new--nested .youtube-setup-step-new {
  min-height: 86px !important;
  grid-template-columns: 30px minmax(0, 1fr) !important;
  gap: 10px !important;
  padding: 13px 14px !important;
  border: 1px solid #edf1f7 !important;
  border-radius: 15px !important;
  background: rgba(255, 255, 255, 0.72) !important;
}

.youtube-setup-guide-new--nested .youtube-setup-step-new > b {
  width: 30px !important;
  height: 30px !important;
  border-radius: 10px !important;
  font-size: 12px !important;
}

.youtube-setup-guide-new--nested .youtube-setup-step-new strong {
  display: block !important;
  color: #171b25 !important;
  font-size: 12.5px !important;
  line-height: 1.18 !important;
  font-weight: 740 !important;
  letter-spacing: -0.01em !important;
}

.youtube-setup-guide-new--nested .youtube-setup-step-new span {
  display: block !important;
  margin-top: 6px !important;
  color: #6b758a !important;
  font-size: 11.5px !important;
  line-height: 1.34 !important;
  font-weight: 450 !important;
}

/* v130: TikTok accounts page uses the current site visual language and old OAuth logic */
.tiktok-accounts-page-new .youtube-setup-guide-new {
  background:
    radial-gradient(circle at 0% 0%, rgba(109, 69, 245, 0.075), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(252, 253, 255, 0.98));
}

.tiktok-accounts-page-new .youtube-account-avatar-new,
.tiktok-accounts-page-new .youtube-panel-icon-new,
.tiktok-accounts-page-new .youtube-setup-step-new > b {
  border-color: #e8e1ff;
  background: #f4f1ff;
  color: #6d45f5;
}

.tiktok-public-base-new input {
  width: min(520px, 100%);
  height: 37px;
  margin-top: 8px;
  border: 1px solid #e7ebf3;
  border-radius: 12px;
  background: #ffffff;
  color: #202536;
  padding: 0 11px;
  font-size: 12.5px;
  font-weight: 520;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.tiktok-public-base-new input:focus {
  border-color: rgba(109, 69, 245, 0.34);
  box-shadow: 0 0 0 3px rgba(109, 69, 245, 0.08);
}

.tiktok-public-actions-new {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.tiktok-dev-link-list-new {
  display: grid;
  gap: 7px;
  margin-top: 8px;
}

.tiktok-dev-link-row-new {
  width: 100%;
  border: 1px solid #edf1f7;
  border-radius: 12px;
  background: #ffffff;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.tiktok-dev-link-row-new:hover {
  border-color: rgba(109, 69, 245, 0.22);
  box-shadow: 0 8px 18px rgba(109, 69, 245, 0.08);
  transform: translateY(-1px);
}

.tiktok-dev-link-row-new span {
  color: #667189;
  font-size: 11px;
  font-weight: 780;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tiktok-dev-link-row-new code {
  margin: 0;
  color: #5f43df;
  font-size: 12px;
  line-height: 1.24;
  font-weight: 720;
  word-break: break-all;
}

.tiktok-publish-check-new {
  grid-column: 1 / -1;
}

@media (max-width: 760px) {
  .tiktok-public-actions-new {
    justify-content: flex-start;
  }

  .tiktok-dev-link-row-new {
    grid-template-columns: 1fr;
  }
}

/* v136: AI expenses page — provider cards, hero layout fixed after icon removal */
.ai-expenses-page-new {
  display: grid;
  gap: 16px;
}

.ai-expenses-hero-new {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background:
    radial-gradient(circle at 0% 0%, rgba(109, 69, 245, 0.09), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(252, 253, 255, 0.99));
}

.ai-expenses-provider-icon-new {
  display: grid;
  place-items: center;
  border: 1px solid #e7e0ff;
  background: #f4f1ff;
  color: #6d45f5;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}


.ai-expenses-eyebrow-new {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 8px;
  color: #7a63e8;
  font-size: 11px;
  line-height: 1.15;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ai-expenses-eyebrow-new::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(109, 69, 245, 0.92), rgba(177, 154, 255, 0.78));
}

.ai-expenses-hero-copy-new h2 {
  max-width: 900px;
  margin: 0;
  color: #171b25;
  font-size: 20px;
  line-height: 1.12;
  font-weight: 780;
  letter-spacing: -0.028em;
}

.ai-expenses-hero-copy-new p {
  max-width: 960px;
  margin: 7px 0 0;
  color: #667189;
  font-size: 13px;
  line-height: 1.48;
  font-weight: 440;
}

.ai-expenses-hero-actions-new {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.ai-expenses-summary-badge-new {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  border: 1px solid #edf1f7;
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.88);
  color: #7a8496;
  padding: 0 12px;
  font-size: 11.5px;
  font-weight: 760;
  white-space: nowrap;
}

.ai-expenses-summary-badge-new.is-active {
  border-color: rgba(109, 69, 245, 0.18);
  background: #f8f5ff;
  color: #6847f5;
}

.ai-expenses-soft-button-new,
.ai-expenses-primary-button-new,
.ai-expenses-danger-button-new {
  min-height: 34px;
  border-radius: 12px;
  border: 1px solid #dfe5ef;
  background: #ffffff;
  color: #252b3a;
  padding: 0 13px;
  font-size: 12px;
  line-height: 1;
  font-weight: 760;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(28, 34, 52, 0.045), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.ai-expenses-primary-button-new {
  border-color: #6d45f5;
  background: #6d45f5;
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(109, 69, 245, 0.16);
}

.ai-expenses-danger-button-new {
  border-color: rgba(223, 43, 87, 0.16);
  background: #fff8fa;
  color: #df2b57;
}

.ai-expenses-soft-button-new:hover:not(:disabled),
.ai-expenses-primary-button-new:hover:not(:disabled),
.ai-expenses-danger-button-new:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: #ded6ff;
  background: #fbfaff;
  color: #6d45f5;
  box-shadow: 0 9px 20px rgba(109, 69, 245, 0.09);
}

.ai-expenses-primary-button-new:hover:not(:disabled) {
  background: #6540e8;
  color: #ffffff;
}

.ai-expenses-metrics-grid-new {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.ai-expenses-metric-card-new {
  min-height: 92px;
  padding: 16px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.ai-expenses-metric-card-new:hover {
  border-color: rgba(109, 69, 245, 0.22);
  box-shadow:
    0 0 0 1px rgba(109, 69, 245, 0.05),
    0 12px 26px rgba(109, 69, 245, 0.08),
    0 0 22px rgba(109, 69, 245, 0.08);
  transform: translateY(-1px);
}

.ai-expenses-metric-card-new span {
  display: block;
  color: #738097;
  font-size: 11.5px;
  font-weight: 720;
}

.ai-expenses-metric-card-new b {
  display: block;
  margin-top: 8px;
  color: #171b25;
  font-size: 23px;
  line-height: 1;
  font-weight: 820;
  letter-spacing: -0.035em;
}

.ai-expenses-metric-card-new small {
  display: block;
  margin-top: 7px;
  color: #8a94a6;
  font-size: 11px;
  line-height: 1.25;
  font-weight: 560;
}

.ai-expenses-panel-new {
  padding: 18px;
}

.ai-expenses-provider-panel-new {
  display: grid;
  gap: 16px;
}

.ai-expenses-panel-head-new {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding-bottom: 16px;
  border-bottom: 1px solid #edf1f7;
}

.ai-expenses-panel-head-new h3 {
  margin: 0;
  color: #171b25;
  font-size: 17px;
  line-height: 1.15;
  font-weight: 790;
  letter-spacing: -0.024em;
}

.ai-expenses-panel-head-new p {
  max-width: 880px;
  margin: 6px 0 0;
  color: #667189;
  font-size: 12.5px;
  line-height: 1.4;
  font-weight: 500;
}

.ai-expenses-panel-actions-new {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.ai-expenses-provider-list-new {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.ai-expenses-provider-card-new {
  position: relative;
  min-width: 0;
  border: 1px solid #e4e8f2;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #fcfdff 100%);
  box-shadow: 0 10px 24px rgba(28, 34, 52, 0.045), inset 0 1px 0 rgba(255,255,255,.92);
  padding: 16px;
  display: grid;
  gap: 14px;
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.ai-expenses-provider-card-new::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(109, 69, 245, 0.82), rgba(177, 154, 255, 0.22));
}

.ai-expenses-provider-card-new.provider-deepseek::before {
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.82), rgba(109, 69, 245, 0.18));
}

.ai-expenses-provider-card-new.provider-elevenlabs::before {
  background: linear-gradient(90deg, rgba(168, 85, 247, 0.82), rgba(236, 72, 153, 0.16));
}

.ai-expenses-provider-card-new.provider-local::before {
  background: linear-gradient(90deg, rgba(34, 197, 94, 0.74), rgba(20, 184, 166, 0.16));
}

.ai-expenses-provider-card-new:hover,
.ai-expenses-provider-card-new.is-connected {
  border-color: rgba(109, 69, 245, 0.20);
  box-shadow:
    0 0 0 1px rgba(109, 69, 245, 0.04),
    0 14px 28px rgba(109, 69, 245, 0.075),
    inset 0 1px 0 rgba(255,255,255,.94);
}

.ai-expenses-provider-card-new:hover {
  transform: translateY(-1px);
}

.ai-expenses-provider-head-new {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.ai-expenses-provider-icon-new {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  overflow: hidden;
  font-size: 12px;
  font-weight: 850;
}

.ai-expenses-provider-icon-new img {
  width: 27px;
  height: 27px;
  object-fit: contain;
}

.ai-expenses-provider-title-new {
  min-width: 0;
}

.ai-expenses-provider-title-new h4 {
  margin: 0;
  color: #171b25;
  font-size: 15px;
  line-height: 1.08;
  font-weight: 810;
  letter-spacing: -0.02em;
}

.ai-expenses-provider-title-new p {
  margin: 5px 0 0;
  color: #748096;
  font-size: 11.5px;
  line-height: 1.2;
  font-weight: 650;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-expenses-provider-state-new {
  min-height: 27px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #f8fafc;
  color: #64748b;
  padding: 0 10px;
  font-size: 11px;
  line-height: 1;
  font-weight: 780;
  white-space: nowrap;
}

.ai-expenses-provider-state-new.is-connected {
  border-color: #ccefd8;
  background: #effaf3;
  color: #177a3a;
}

.ai-expenses-provider-metrics-new {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.ai-expenses-provider-metrics-new > div {
  min-height: 78px;
  border: 1px solid #e8edf5;
  border-radius: 14px;
  background: #fbfcff;
  padding: 10px;
  overflow: hidden;
}

.ai-expenses-provider-metrics-new span {
  display: block;
  color: #7e899c;
  font-size: 10.5px;
  line-height: 1;
  font-weight: 740;
}

.ai-expenses-provider-metrics-new strong {
  display: block;
  margin-top: 8px;
  color: #171b25;
  font-size: 16px;
  line-height: 1;
  font-weight: 840;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ai-expenses-provider-metrics-new small {
  display: block;
  margin-top: 7px;
  color: #8792a4;
  font-size: 10.6px;
  line-height: 1.25;
  font-weight: 560;
}

.ai-expenses-provider-facts-new {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.ai-expenses-provider-facts-new > div {
  border: 1px solid #edf1f7;
  border-radius: 12px;
  background: #ffffff;
  padding: 9px;
  min-width: 0;
}

.ai-expenses-provider-facts-new span {
  display: block;
  color: #7a8496;
  font-size: 10.5px;
  line-height: 1;
  font-weight: 740;
}

.ai-expenses-provider-facts-new b {
  display: block;
  margin-top: 6px;
  color: #171b25;
  font-size: 11.5px;
  line-height: 1.2;
  font-weight: 760;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-expenses-progress-block-new {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 9px;
}

.ai-expenses-progress-row-new {
  display: grid;
  gap: 6px;
}

.ai-expenses-progress-row-new > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #6b758a;
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
}

.ai-expenses-progress-row-new b {
  color: #202536;
  font-weight: 820;
}

.ai-expenses-progress-row-new i {
  display: block;
  height: 7px;
  border-radius: 999px;
  background: #edf1f7;
  overflow: hidden;
}

.ai-expenses-progress-row-new em {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #6d45f5, #9a7cff);
}

.ai-expenses-progress-row-new i.secondary em {
  background: linear-gradient(90deg, #7f8aa0, #b2bac8);
}

.ai-expenses-provider-bottom-new {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  border: 1px solid #edf1f7;
  border-radius: 13px;
  background: #fbfcff;
  color: #6b758a;
  padding: 10px 11px;
  font-size: 11.5px;
  line-height: 1.36;
  font-weight: 560;
}

.ai-expenses-provider-bottom-new span:last-child {
  margin-left: auto;
  text-align: right;
}

.ai-expenses-page-note-new {
  border: 1px solid #edf1f7;
  border-radius: 14px;
  background: #fbfcff;
  color: #6b758a;
  padding: 12px 13px;
  font-size: 11.8px;
  line-height: 1.4;
  font-weight: 560;
}

.ai-expenses-empty-state-new {
  min-height: 100px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 20px;
  border: 1px dashed #dfe5ef;
  border-radius: 16px;
  background: #fbfcff;
  color: #69758a;
  text-align: center;
  font-size: 12.5px;
  line-height: 1.45;
  font-weight: 560;
}

.ai-expenses-empty-state-new b {
  color: #171b25;
  font-size: 14px;
  font-weight: 800;
}

@media (max-width: 1380px) {
  .ai-expenses-provider-list-new {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 1180px) {
  .ai-expenses-metrics-grid-new,
  .ai-expenses-provider-metrics-new,
  .ai-expenses-provider-facts-new {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ai-expenses-panel-head-new {
    grid-template-columns: 1fr;
  }

  .ai-expenses-panel-actions-new {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .ai-expenses-hero-new,
  .ai-expenses-metrics-grid-new,
  .ai-expenses-provider-head-new,
  .ai-expenses-provider-metrics-new,
  .ai-expenses-provider-facts-new {
    grid-template-columns: 1fr;
  }

  .ai-expenses-hero-actions-new {
    justify-content: flex-start;
  }

  .ai-expenses-provider-state-new {
    justify-self: start;
  }

  .ai-expenses-provider-bottom-new span:last-child {
    margin-left: 0;
    text-align: left;
  }
}

/* v137: AI expenses loading/empty state spans full provider panel width */
.ai-expenses-provider-list-new > .ai-expenses-empty-state-new {
  grid-column: 1 / -1;
  width: 100%;
}

/* v138 Auto Shorts generation */
.auto-shorts-page-new {
  display: grid;
  gap: 16px;
  min-height: 0;
}

.auto-hero-new,
.auto-wizard-new,
.auto-plan-panel-new,
.auto-queue-panel-new,
.auto-mode-card-new {
  border-radius: 18px;
  border-color: #dde3ee;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(21, 27, 43, 0.045);
}

.auto-hero-new {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 18px;
  padding: 20px;
  overflow: hidden;
  position: relative;
}

.auto-hero-new::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 4% 0%, rgba(109, 69, 245, 0.08), transparent 35%);
}

.auto-hero-new > * {
  position: relative;
  z-index: 1;
}

.auto-hero-copy-new {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.auto-label-new {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 8px;
  color: #6847f5;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auto-label-new::before {
  content: "";
  display: block;
  width: 14px;
  height: 2px;
  border-radius: 999px;
  background: #7c4dff;
}

.auto-hero-new h2,
.auto-wizard-new h2,
.auto-plan-panel-new h2,
.auto-queue-panel-new h2,
.auto-mode-card-new h3 {
  margin: 0;
  color: #0f172a;
  font-weight: 820;
  letter-spacing: -0.025em;
}

.auto-hero-new h2 {
  font-size: 20px;
  line-height: 1.12;
}

.auto-hero-new p,
.auto-wizard-new p,
.auto-plan-panel-new p,
.auto-queue-panel-new p,
.auto-mode-card-new p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.45;
}

.auto-hero-stats-new {
  display: grid;
  grid-template-columns: repeat(4, minmax(86px, 1fr));
  gap: 8px;
}

.auto-hero-stat-new {
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid #e5e7ee;
  border-radius: 14px;
  background: #f8fafc;
}

.auto-hero-stat-new span {
  display: block;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
}

.auto-hero-stat-new strong {
  display: block;
  margin-top: 4px;
  color: #111827;
  font-size: 18px;
  line-height: 1;
  font-weight: 850;
}

.auto-hero-actions-new,
.auto-final-actions-new,
.auto-template-actions-new,
.auto-job-actions-new {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.auto-button-new,
.auto-link-button-new {
  min-height: 36px;
  border: 1px solid #e1e7f0;
  border-radius: 12px;
  background: #ffffff;
  color: #172033;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 780;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease;
}

.auto-button-new:hover,
.auto-link-button-new:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
}

.auto-button-new--primary {
  border-color: #6d45f5;
  background: #6d45f5;
  color: #ffffff;
  box-shadow: 0 12px 22px rgba(109, 69, 245, 0.22);
}

.auto-button-new--danger {
  border-color: #fecdd3;
  background: #fff7f8;
  color: #e11d48;
}

.auto-button-new--mini {
  min-height: 30px;
  padding: 0 10px;
  border-radius: 10px;
}

.auto-mode-panel-new {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.auto-mode-card-new {
  display: grid;
  gap: 9px;
  padding: 18px;
  position: relative;
}

.auto-mode-card-new.is-active {
  border-color: rgba(109, 69, 245, 0.26);
  box-shadow: 0 14px 28px rgba(109, 69, 245, 0.07);
}

.auto-mode-card-new.is-disabled {
  opacity: 0.68;
}

.auto-mode-state-new,
.auto-pill-new {
  display: inline-flex;
  width: max-content;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  padding: 0 11px;
  border: 1px solid #e5e7ee;
  border-radius: 999px;
  background: #f8fafc;
  color: #64748b;
  font-size: 11.5px;
  font-weight: 800;
}

.auto-mode-state-new.is-active,
.auto-pill-new {
  border-color: rgba(109, 69, 245, 0.2);
  background: #f3efff;
  color: #6847f5;
}

.auto-wizard-new,
.auto-plan-panel-new,
.auto-queue-panel-new {
  padding: 18px;
}

.auto-wizard-head-new,
.auto-section-head-new {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #edf1f7;
}

.auto-section-head-new > div,
.auto-wizard-head-new > div:first-child {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.auto-stepbar-new {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.auto-step-dot-new {
  width: 32px;
  height: 32px;
  border: 1px solid #e1e7f0;
  border-radius: 11px;
  background: #f8fafc;
  color: #64748b;
  font-size: 12px;
  font-weight: 850;
}

.auto-step-dot-new.is-active {
  border-color: rgba(109, 69, 245, 0.24);
  background: #f3efff;
  color: #6847f5;
}

.auto-wizard-body-new {
  padding-top: 16px;
}

.auto-step-section-new {
  display: grid;
  gap: 14px;
}

.auto-step-section-new h3 {
  margin: 0;
  color: #111827;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 820;
}

.auto-form-grid-new {
  display: grid;
  gap: 12px;
}

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

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

.auto-field-new {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.auto-field-new > span,
.auto-checkbox-new span {
  color: #172033;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 780;
}

.auto-field-new small,
.auto-plan-main-new small,
.auto-job-main-new small,
.auto-batch-head-new small {
  color: #64748b;
  font-size: 11.5px;
  line-height: 1.35;
  font-weight: 500;
}

.auto-field-new input,
.auto-field-new select,
.auto-field-new textarea,
.auto-template-actions-new input {
  width: 100%;
  min-height: 40px;
  border: 1px solid #dfe6f1;
  border-radius: 12px;
  background: #ffffff;
  color: #111827;
  padding: 9px 11px;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.85);
}

.auto-field-new textarea {
  resize: vertical;
  min-height: 96px;
}

.auto-field-new input:focus,
.auto-field-new select:focus,
.auto-field-new textarea:focus,
.auto-template-actions-new input:focus {
  border-color: rgba(109, 69, 245, 0.46);
  box-shadow: 0 0 0 3px rgba(109, 69, 245, 0.10);
}

.auto-checkbox-new {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 10px 12px;
  border: 1px solid #dfe6f1;
  border-radius: 12px;
  background: #f8fafc;
}

.auto-template-actions-new {
  justify-content: flex-start;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #edf1f7;
}

.auto-template-actions-new input {
  max-width: 260px;
}

.auto-final-step-new {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: end;
}

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

.auto-check-row-new {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid #e5e7ee;
  border-radius: 14px;
  background: #f8fafc;
}

.auto-check-row-new span {
  color: #64748b;
  font-size: 11.5px;
  font-weight: 720;
}

.auto-check-row-new strong {
  color: #111827;
  font-size: 13px;
  font-weight: 850;
}

.auto-wizard-footer-new {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #edf1f7;
}

.auto-status-new {
  min-height: 36px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid #e5e7ee;
  border-radius: 12px;
  background: #f8fafc;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
}

.auto-status-new.is-success {
  border-color: rgba(22, 163, 74, 0.22);
  background: #f0fdf4;
  color: #15803d;
}

.auto-status-new.is-error {
  border-color: #fecdd3;
  background: #fff1f2;
  color: #be123c;
}

.auto-status-new.is-warning {
  border-color: #fde68a;
  background: #fffbeb;
  color: #92400e;
}

.auto-plan-panel-new,
.auto-queue-panel-new {
  display: grid;
  gap: 16px;
}

.auto-plan-list-new,
.auto-batch-list-new,
.auto-job-list-new {
  display: grid;
  gap: 10px;
}

.auto-empty-new {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 116px;
  padding: 22px;
  border: 1px dashed #d9e2ef;
  border-radius: 16px;
  background: #fbfcff;
  text-align: center;
}

.auto-empty-new strong {
  color: #111827;
  font-size: 14px;
  font-weight: 850;
}

.auto-empty-new p {
  max-width: 720px;
}

.auto-plan-row-new {
  border: 1px solid #e5e7ee;
  border-radius: 16px;
  background: #ffffff;
  overflow: hidden;
}

.auto-plan-summary-new {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  cursor: pointer;
  list-style: none;
}

.auto-plan-summary-new::-webkit-details-marker {
  display: none;
}

.auto-plan-index-new {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: #f3efff;
  color: #6847f5;
  font-size: 13px;
  font-weight: 850;
}

.auto-plan-main-new,
.auto-job-main-new,
.auto-batch-head-new > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.auto-plan-main-new strong,
.auto-job-main-new strong,
.auto-batch-head-new strong {
  color: #111827;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 820;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.auto-plan-open-new {
  color: #6847f5;
  font-size: 12px;
  font-weight: 800;
}

.auto-plan-editor-new {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0 12px 12px;
}

.auto-plan-editor-new .auto-field-new:nth-child(2),
.auto-plan-editor-new .auto-field-new:nth-child(4),
.auto-plan-editor-new .auto-field-new:nth-child(5) {
  grid-column: 1 / -1;
}

.auto-batch-card-new {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #e5e7ee;
  border-radius: 16px;
  background: #fbfcff;
}

.auto-batch-card-new.is-running {
  border-color: rgba(109, 69, 245, 0.24);
  background: #fcfbff;
}

.auto-batch-card-new.is-error,
.auto-job-row-new.is-error {
  border-color: #fecdd3;
  background: #fff7f8;
}

.auto-batch-head-new {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.auto-job-row-new {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px auto;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 10px;
  border: 1px solid #e9eef6;
  border-radius: 14px;
  background: #ffffff;
}

.auto-job-progress-new {
  height: 8px;
  border-radius: 999px;
  background: #eef2f8;
  overflow: hidden;
}

.auto-job-progress-new i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #6d45f5;
}

.auto-link-button-new {
  min-height: 30px;
  padding: 0 10px;
  border-radius: 10px;
  color: #6847f5;
  background: #f3efff;
  border-color: rgba(109, 69, 245, 0.18);
}

.auto-loading-new,
.auto-error-new {
  min-height: 180px;
  display: grid;
  place-items: center;
  padding: 28px;
  color: #64748b;
  font-weight: 750;
}

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

  .auto-hero-actions-new,
  .auto-hero-stats-new {
    justify-content: start;
  }

  .auto-form-grid-new.three,
  .auto-checklist-new {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .auto-final-step-new {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 980px) {
  .auto-mode-panel-new,
  .auto-form-grid-new.two,
  .auto-form-grid-new.three,
  .auto-plan-editor-new,
  .auto-checklist-new {
    grid-template-columns: 1fr;
  }

  .auto-job-row-new {
    grid-template-columns: 1fr;
  }

  .auto-wizard-footer-new {
    grid-template-columns: 1fr;
  }
}

/* v139 Auto Shorts scenario choice screen */
.auto-choice-page-new {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  min-height: 0;
  padding: 20px;
}

.auto-choice-page-new::before {
  background:
    radial-gradient(circle at 5% 0%, rgba(109, 69, 245, 0.10), transparent 34%),
    radial-gradient(circle at 82% 12%, rgba(109, 69, 245, 0.055), transparent 30%),
    linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(246, 247, 251, 0.50));
}

.auto-choice-grid-new {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.auto-choice-card-new {
  width: 100%;
  min-height: 124px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 18px;
  border: 1px solid #edf1f7;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.72);
  text-align: left;
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.auto-choice-card-new:hover {
  transform: translateY(-1px);
  border-color: rgba(109, 69, 245, 0.28);
  box-shadow: 0 14px 28px rgba(109, 69, 245, 0.08);
  background: #ffffff;
}

.auto-choice-card-new:focus-visible {
  outline: 3px solid rgba(109, 69, 245, 0.18);
  outline-offset: 3px;
}

.auto-choice-card-new--pocket {
  border-color: rgba(109, 69, 245, 0.22);
}

.auto-choice-logo-new {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  position: relative;
  border: 1px solid #e8e1ff;
  border-radius: 17px;
  background: #ffffff;
  overflow: hidden;
}

.auto-choice-logo-new--pocket::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 21px;
  width: 23px;
  height: 17px;
  border-radius: 10px 9px 9px 3px;
  background: #005dff;
  box-shadow: 0 4px 10px rgba(0, 93, 255, 0.24);
}

.auto-choice-logo-new--pocket::after {
  content: "";
  position: absolute;
  left: 30px;
  top: 21px;
  width: 17px;
  height: 17px;
  border-radius: 999px;
  background: #13a9ff;
  box-shadow: 0 4px 10px rgba(19, 169, 255, 0.22);
}

.auto-choice-logo-new--binarium::before {
  content: "";
  width: 30px;
  height: 30px;
  border-radius: 2px;
  background: linear-gradient(135deg, #18e05f 0%, #22d9a2 43%, #2f99f4 100%);
}

.auto-choice-logo-new--binarium::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 26px;
  background: #ffffff;
  transform: skew(-23deg);
  right: 18px;
  top: 16px;
}

.auto-choice-card-copy-new {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.auto-choice-card-head-new {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.auto-choice-card-copy-new strong {
  color: #171b25;
  font-size: 14px;
  line-height: 1.22;
  font-weight: 760;
  letter-spacing: -0.01em;
}

.auto-choice-card-copy-new small {
  color: #6b758a;
  font-size: 12px;
  line-height: 1.42;
  font-weight: 450;
}

.auto-choice-card-badge-new {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(109, 69, 245, 0.18);
  background: rgba(243, 239, 255, 0.72);
  color: #6847f5;
  font-size: 11px;
  font-weight: 720;
  white-space: nowrap;
}

.auto-choice-card-badge-new.is-muted {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(248, 250, 252, 0.9);
  color: #64748b;
}
.auto-binarium-development-page-new {
  min-height: calc(100vh - 170px);
  padding: 26px;
}

.auto-binarium-development-card-new {
  gap: 0;
}

.auto-binarium-development-card-new .auto-button-new {
  margin-top: 20px;
}

@media (max-width: 980px) {
  .auto-choice-grid-new {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .auto-choice-page-new {
    padding: 16px;
  }

  .auto-choice-card-new {
    grid-template-columns: 52px minmax(0, 1fr);
    padding: 16px;
  }

  .auto-choice-logo-new {
    width: 52px;
    height: 52px;
  }

  .auto-choice-card-head-new {
    align-items: flex-start;
    flex-direction: column;
  }
}


/* Auto generation choice screen final safe layout */
.auto-choice-page-new {
  min-height: calc(100vh - 130px) !important;
  grid-template-rows: auto minmax(0, 1fr) !important;
  overflow: hidden;
}

/* Protection for older cached JS markup: keep the previous header icon bounded. */
.auto-choice-head-new {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid #edf1f7;
}

.auto-choice-head-icon-new {
  width: 54px !important;
  height: 54px !important;
  min-width: 54px !important;
  max-width: 54px !important;
  max-height: 54px !important;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #e8e1ff;
  border-radius: 17px;
  background: #f4f1ff;
  color: #6d45f5;
}

.auto-choice-head-icon-new svg {
  width: 26px !important;
  height: 26px !important;
  max-width: 26px !important;
  max-height: 26px !important;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auto-choice-body-new {
  display: grid;
  place-items: center;
  padding: 28px 0 0 !important;
}

.auto-choice-list-new {
  width: min(560px, 100%);
  display: grid;
  gap: 16px;
}

/* Current choice grid: same compact card logic as the AI connections hero. */
.auto-choice-grid-new {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 980px) {
  .auto-choice-grid-new {
    grid-template-columns: 1fr;
  }
}


/* Auto generation choice cards: centered vertical stack */
.auto-choice-grid-new {
  grid-template-columns: 1fr !important;
  width: min(760px, 100%) !important;
  margin: 0 auto !important;
}

.auto-choice-card-new {
  width: 100%;
}


/* Auto generation choice panel: full working-area height with bottom margin */
.auto-choice-page-new {
  min-height: calc(100vh - 130px) !important;
  grid-template-rows: auto minmax(0, 1fr) !important;
}

.auto-choice-grid-new {
  align-self: center !important;
  width: min(760px, 100%) !important;
  margin: 0 auto !important;
  grid-template-columns: 1fr !important;
}

.auto-choice-card-new {
  width: 100%;
}


/* Auto generation choice panel: taller final height */
.auto-choice-page-new {
  min-height: calc(100vh - 105px) !important;
}


/* Auto generation choice buttons style match */
.auto-choice-grid-new {
  width: min(600px, 100%) !important;
  margin: 0 auto !important;
  grid-template-columns: 1fr !important;
  gap: 14px !important;
}

.auto-choice-card-new {
  width: 100% !important;
  min-height: 100px !important;
  padding: 20px 22px !important;
  border: 1px solid rgba(200, 181, 255, 0.9) !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, 0.72) !important;
  box-shadow: none !important;
  grid-template-columns: 56px minmax(0, 1fr) !important;
  gap: 16px !important;
}

.auto-choice-card-new:hover {
  transform: none !important;
  box-shadow: none !important;
  border-color: rgba(187, 163, 255, 1) !important;
  background: #ffffff !important;
}

.auto-choice-logo-new {
  width: 56px !important;
  height: 56px !important;
  border-radius: 16px !important;
  border: 1px solid rgba(206, 194, 246, 0.95) !important;
  background: #ffffff !important;
  display: grid !important;
  place-items: center !important;
  overflow: hidden !important;
}

.auto-choice-logo-new::before,
.auto-choice-logo-new::after,
.auto-choice-logo-new--pocket::before,
.auto-choice-logo-new--pocket::after,
.auto-choice-logo-new--binarium::before,
.auto-choice-logo-new--binarium::after {
  content: none !important;
  display: none !important;
}

.auto-choice-logo-new img {
  display: block;
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.auto-choice-card-copy-new {
  gap: 6px !important;
}

.auto-choice-card-copy-new strong {
  font-size: 15px !important;
  line-height: 1.22 !important;
  font-weight: 760 !important;
}

.auto-choice-card-copy-new small {
  font-size: 12px !important;
  line-height: 1.42 !important;
  color: #667189 !important;
}

.auto-choice-card-head-new,
.auto-choice-card-badge-new {
  display: none !important;
}



/* Auto generation choice: reduce panel height and center enlarged Pocket Option icon */
.auto-choice-page-new {
  min-height: calc(100vh - 125px) !important;
}

.auto-choice-card-new--pocket .auto-choice-logo-new {
  display: grid !important;
  place-items: center !important;
  overflow: hidden !important;
}

.auto-choice-card-new--pocket .auto-choice-logo-new img {
  width: 34px !important;
  height: 34px !important;
  object-fit: contain !important;
  object-position: center center !important;
  display: block !important;
  margin: 0 !important;
  transform: scale(2) !important;
  transform-origin: center center !important;
}


/* Auto generation wizard: real step-by-step panels */
.auto-step-section-new[hidden] {
  display: none !important;
}

.auto-step-section-new.is-active {
  display: grid;
}

.auto-wizard-progress-new {
  display: grid;
  gap: 8px;
  margin-top: 8px;
  max-width: 620px;
}

.auto-step-label-new {
  color: #6847f5;
  font-size: 12px;
  line-height: 1.25;
  font-weight: 780;
}

.auto-step-track-new {
  width: 100%;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #eef2f8;
}

.auto-step-track-new i {
  display: block;
  width: 16.666%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8b5cf6, #6847f5);
  transition: width .18s ease;
}


/* Auto generation: plan belongs to step 6, no separate panels under wizard */
.auto-final-plan-block-new {
  display: grid;
  gap: 14px;
  border: 1px solid #edf1f7;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
  padding: 16px;
}

.auto-final-plan-head-new {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.auto-final-plan-head-new h3 {
  margin: 0;
  color: #0f172a;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 780;
  letter-spacing: -0.02em;
}

.auto-final-plan-head-new p {
  margin: 6px 0 0;
  color: #667189;
  font-size: 12.5px;
  line-height: 1.45;
}

@media (max-width: 760px) {
  .auto-final-plan-head-new {
    flex-direction: column;
  }
}


/* Auto generation Pocket Option hero without queue dashboard */
.auto-hero-new--plain {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 16px !important;
  min-height: 0 !important;
}

.auto-hero-new--plain .auto-hero-copy-new {
  max-width: 980px;
}

.auto-hero-new--plain .auto-hero-copy-new h2 {
  margin: 0 0 7px;
}

.auto-hero-back-new {
  white-space: nowrap;
}

@media (max-width: 760px) {
  .auto-hero-new--plain {
    grid-template-columns: 1fr !important;
  }

  .auto-hero-back-new {
    justify-self: start;
  }
}


/* Auto generation wizard: top navigation controls */
.auto-wizard-head-controls-new {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.auto-wizard-head-controls-new .auto-stepbar-new {
  margin: 0;
}

.auto-wizard-footer-new--status-only {
  justify-content: flex-start !important;
}

.auto-wizard-footer-new--status-only .auto-status-new {
  width: 100%;
}

@media (max-width: 980px) {
  .auto-wizard-head-controls-new {
    justify-content: flex-start;
  }
}


/* Auto generation wizard full-height panel like the choice screen */
.auto-wizard-new {
  min-height: calc(100vh - 125px) !important;
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) auto !important;
}

.auto-wizard-body-new {
  align-content: start;
}




/* Auto generation template choice modal and corrected step 1 */
.auto-count-only-grid-new {
  max-width: 620px;
  grid-template-columns: 1fr !important;
}

.auto-template-choice-backdrop-new {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.18), transparent 34%),
    rgba(15, 23, 42, 0.26);
  backdrop-filter: blur(10px);
}

.auto-template-choice-card-new {
  width: min(540px, 100%);
  display: grid;
  gap: 18px;
  border: 1px solid #dde3ee;
  border-radius: 24px;
  background:
    radial-gradient(circle at 16% 0%, rgba(109, 69, 245, 0.08), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
  padding: 26px;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.22);
}

.auto-template-choice-head-new {
  display: grid;
  gap: 9px;
}

.auto-template-choice-badge-new {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border: 1px solid rgba(109, 69, 245, 0.16);
  border-radius: 999px;
  background: rgba(243, 239, 255, 0.74);
  color: #6847f5;
  padding: 0 10px;
  font-size: 11px;
  line-height: 1;
  font-weight: 740;
}

.auto-template-choice-card-new h2 {
  margin: 0;
  color: #101828;
  font-size: 21px;
  line-height: 1.18;
  font-weight: 820;
  letter-spacing: -0.03em;
}

.auto-template-choice-card-new p {
  margin: 0;
  color: #667189;
  font-size: 13px;
  line-height: 1.48;
  font-weight: 450;
}

.auto-template-choice-body-new {
  display: grid;
  gap: 12px;
}

.auto-template-choice-field-new {
  display: grid;
  gap: 8px;
}

.auto-template-choice-field-title-new {
  color: #111827;
  font-size: 12px;
  line-height: 1.25;
  font-weight: 760;
}

.auto-template-choice-select-shell-new {
  position: relative;
  display: block;
}

.auto-template-choice-select-shell-new::after {
  content: "";
  position: absolute;
  right: 15px;
  top: 50%;
  width: 8px;
  height: 8px;
  pointer-events: none;
  border-right: 2px solid #7a8497;
  border-bottom: 2px solid #7a8497;
  transform: translateY(-65%) rotate(45deg);
}

.auto-template-choice-select-new {
  width: 100%;
  min-height: 44px;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid #dfe6f2;
  border-radius: 14px;
  background: #ffffff;
  color: #111827;
  padding: 0 42px 0 14px;
  font-size: 13px;
  font-weight: 520;
  outline: none;
}

.auto-template-choice-select-new:focus {
  border-color: rgba(109, 69, 245, 0.42);
  box-shadow: 0 0 0 4px rgba(109, 69, 245, 0.10);
}

.auto-template-choice-empty-new {
  display: grid;
  gap: 7px;
  border: 1px dashed #d9e2f1;
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.76);
  padding: 16px;
}

.auto-template-choice-empty-new strong {
  color: #111827;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 780;
}

.auto-template-choice-empty-new p {
  font-size: 12.5px;
}

.auto-template-choice-actions-new {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 2px;
}

.auto-template-choice-actions-new .auto-button-new {
  min-height: 38px;
}

.auto-template-choice-actions-new .auto-button-new:disabled {
  opacity: 0.46;
  cursor: not-allowed;
  transform: none;
}

.auto-final-template-block-new .auto-template-actions-new {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.auto-info-box-new {
  border: 1px solid #edf1f7;
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.8);
  padding: 12px 14px;
  color: #667189;
  font-size: 12px;
  line-height: 1.42;
}

.auto-final-template-block-new {
  display: grid;
  gap: 14px;
  border: 1px solid #edf1f7;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  padding: 16px;
}

.auto-final-template-head-new {
  display: grid;
  gap: 6px;
}

.auto-final-template-head-new h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.auto-final-template-head-new p {
  margin: 0;
  color: #667189;
  font-size: 12.5px;
  line-height: 1.42;
}

@media (max-width: 640px) {
  .auto-template-choice-card-new {
    padding: 20px;
    border-radius: 20px;
  }

  .auto-template-choice-actions-new {
    justify-content: stretch;
    flex-direction: column;
  }

  .auto-template-choice-actions-new .auto-button-new {
    width: 100%;
  }
}


/* Auto generation step 1 centered clean card */
.auto-step-section-new[data-step="1"] {
  min-height: 420px;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
}

.auto-step-section-new[data-step="1"] > h3 {
  margin: 0 0 28px;
  font-size: 20px;
  line-height: 1.22;
  font-weight: 820;
  letter-spacing: -0.025em;
}

.auto-step-section-new[data-step="1"] .auto-count-only-grid-new {
  width: min(560px, 100%);
  max-width: 560px;
  display: grid;
  grid-template-columns: 1fr !important;
  justify-items: stretch;
  margin: 0 auto;
}

.auto-step-section-new[data-step="1"] .auto-field-new {
  display: grid;
  gap: 10px;
  text-align: center;
}

.auto-step-section-new[data-step="1"] .auto-field-new > span {
  justify-self: center;
  color: #111827;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 760;
}

.auto-step-section-new[data-step="1"] .auto-field-new input {
  width: 100%;
  min-height: 52px;
  border-radius: 16px;
  border: 1px solid #dfe6f2;
  background: #ffffff;
  color: #111827;
  text-align: center;
  font-size: 18px;
  font-weight: 760;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.035);
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.auto-step-section-new[data-step="1"] .auto-field-new input:focus {
  outline: none;
  border-color: rgba(109, 69, 245, 0.44);
  box-shadow: 0 0 0 4px rgba(109, 69, 245, 0.10), 0 14px 34px rgba(109, 69, 245, 0.08);
}

@media (max-width: 720px) {
  .auto-step-section-new[data-step="1"] {
    min-height: 340px;
  }

  .auto-step-section-new[data-step="1"] > h3 {
    font-size: 18px;
  }
}


/* Auto generation step 1 final layout: simple centered title and normal input */
.auto-step-section-new[data-step="1"] {
  min-height: 0 !important;
  display: block !important;
  text-align: left !important;
  padding-top: 0 !important;
}

.auto-step-section-new[data-step="1"] > h3 {
  margin: 0 0 38px !important;
  text-align: center !important;
  color: #07142f;
  font-size: 16px !important;
  line-height: 1.25 !important;
  font-weight: 820 !important;
  letter-spacing: -0.015em !important;
}

.auto-step-section-new[data-step="1"] .auto-count-only-grid-new {
  width: min(620px, 100%) !important;
  max-width: 620px !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  justify-items: stretch !important;
  margin: 0 !important;
}

.auto-step-section-new[data-step="1"] .auto-field-new {
  display: grid !important;
  gap: 8px !important;
  text-align: left !important;
}

.auto-step-section-new[data-step="1"] .auto-field-new > span {
  justify-self: start !important;
  color: #263a5e !important;
  font-size: 12px !important;
  line-height: 1.25 !important;
  font-weight: 650 !important;
}

.auto-step-section-new[data-step="1"] .auto-field-new input {
  width: 100% !important;
  min-height: 40px !important;
  border-radius: 12px !important;
  border: 1px solid #d9e3f0 !important;
  background: #ffffff !important;
  color: #0f172a !important;
  text-align: left !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  padding: 0 14px !important;
  box-shadow: none !important;
}

.auto-step-section-new[data-step="1"] .auto-field-new input:focus {
  outline: none !important;
  border-color: rgba(109, 69, 245, 0.38) !important;
  box-shadow: 0 0 0 3px rgba(109, 69, 245, 0.08) !important;
}


/* Auto generation step 1: center the whole content inside the wizard panel */
.auto-wizard-body-new:has(.auto-step-section-new[data-step="1"].is-active) {
  display: grid !important;
  align-items: center !important;
}

.auto-step-section-new[data-step="1"].is-active {
  width: 100% !important;
  min-height: 0 !important;
  align-self: center !important;
  display: grid !important;
  justify-items: center !important;
  align-content: center !important;
  text-align: left !important;
}

.auto-step-section-new[data-step="1"].is-active > h3 {
  width: 100% !important;
  margin: 0 0 38px !important;
  text-align: center !important;
}

.auto-step-section-new[data-step="1"].is-active .auto-count-only-grid-new {
  width: min(620px, 100%) !important;
  max-width: 620px !important;
  margin: 0 auto !important;
}

@media (max-width: 720px) {
  .auto-wizard-body-new:has(.auto-step-section-new[data-step="1"].is-active) {
    align-items: start !important;
  }

  .auto-step-section-new[data-step="1"].is-active {
    align-content: start !important;
  }
}


/* Auto generation step 1: strict vertical centering inside the wizard body */
.auto-wizard-new {
  min-height: calc(100vh - 125px) !important;
  display: grid !important;
  grid-template-rows: auto minmax(360px, 1fr) auto !important;
}

.auto-wizard-body-new {
  min-height: 360px !important;
}

.auto-wizard-body-new:has(.auto-step-section-new[data-step="1"].is-active) {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.auto-step-section-new[data-step="1"].is-active {
  width: 100% !important;
  margin: auto 0 !important;
}

.auto-step-section-new[data-step="1"].is-active .auto-count-only-grid-new {
  margin-left: auto !important;
  margin-right: auto !important;
}


/* Auto generation wizard: never show inactive steps */
.auto-step-section-new[hidden],
.auto-step-section-new:not(.is-active) {
  display: none !important;
}

.auto-step-section-new.is-active {
  display: block !important;
}

/* Step 1 centering only while step 1 is active */
.auto-wizard-body-new:has(.auto-step-section-new[data-step="1"].is-active) {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.auto-wizard-body-new:has(.auto-step-section-new[data-step="1"].is-active) .auto-step-section-new[data-step="1"].is-active {
  width: 100% !important;
  display: grid !important;
  justify-items: center !important;
  align-content: center !important;
}

.auto-wizard-body-new:not(:has(.auto-step-section-new[data-step="1"].is-active)) {
  display: block !important;
}


/* Auto generation step 2: old-site labels and centered layout */
.auto-wizard-body-new:has(.auto-step-section-new[data-step="2"].is-active) {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.auto-wizard-body-new:has(.auto-step-section-new[data-step="2"].is-active) .auto-step-section-new[data-step="2"].is-active {
  width: 100% !important;
  display: grid !important;
  justify-items: center !important;
  align-content: center !important;
}

.auto-step-section-new[data-step="2"].is-active > h3 {
  width: 100% !important;
  margin: 0 0 30px !important;
  text-align: center !important;
  color: #07142f;
  font-size: 16px !important;
  line-height: 1.25 !important;
  font-weight: 820 !important;
  letter-spacing: -0.015em !important;
}

.auto-step-section-new[data-step="2"].is-active .auto-step-two-grid-new {
  width: min(1180px, 100%) !important;
  margin: 0 auto !important;
}

@media (max-width: 1120px) {
  .auto-step-section-new[data-step="2"].is-active .auto-step-two-grid-new {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 720px) {
  .auto-step-section-new[data-step="2"].is-active .auto-step-two-grid-new {
    grid-template-columns: 1fr !important;
  }
}


/* Auto generation steps 1-2: top aligned, cleaner old-site-like hints */
.auto-wizard-body-new:has(.auto-step-section-new[data-step="1"].is-active),
.auto-wizard-body-new:has(.auto-step-section-new[data-step="2"].is-active) {
  display: block !important;
  align-items: initial !important;
  justify-content: initial !important;
}

.auto-step-section-new[data-step="1"].is-active,
.auto-step-section-new[data-step="2"].is-active {
  display: block !important;
  width: 100% !important;
  min-height: 0 !important;
  align-self: start !important;
  justify-items: initial !important;
  align-content: start !important;
  margin: 0 !important;
  padding-top: 14px !important;
}

.auto-step-section-new[data-step="1"].is-active > h3,
.auto-step-section-new[data-step="2"].is-active > h3 {
  width: 100% !important;
  margin: 0 0 28px !important;
  text-align: center !important;
  color: #07142f !important;
  font-size: 16px !important;
  line-height: 1.25 !important;
  font-weight: 820 !important;
  letter-spacing: -0.015em !important;
}

.auto-step-section-new[data-step="1"].is-active .auto-count-only-grid-new {
  width: min(620px, 100%) !important;
  max-width: 620px !important;
  margin: 0 auto !important;
}

.auto-step-section-new[data-step="2"].is-active .auto-step-two-grid-new {
  width: min(1180px, 100%) !important;
  margin: 0 auto !important;
}

/* Softer helper text, closer to the old site */
.auto-field-new small,
.auto-field-new > small,
.auto-form-grid-new small {
  display: block !important;
  margin-top: 3px !important;
  color: #667189 !important;
  font-size: 11.5px !important;
  line-height: 1.35 !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
}

.auto-field-new > span {
  color: #07142f !important;
  font-size: 12px !important;
  line-height: 1.25 !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
}


/* Auto generation step 3: match old-site structure */
.auto-step-section-new[data-step="3"].is-active {
  display: block !important;
  width: 100% !important;
  padding-top: 14px !important;
}

.auto-step-section-new[data-step="3"].is-active > h3 {
  width: 100% !important;
  margin: 0 0 34px !important;
  text-align: center !important;
  color: #07142f !important;
  font-size: 16px !important;
  line-height: 1.25 !important;
  font-weight: 820 !important;
  letter-spacing: -0.015em !important;
}

.auto-step-three-new {
  width: min(1044px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.auto-step-help-new {
  width: 100%;
  min-height: 38px;
  display: flex;
  align-items: center;
  border: 1px solid #dfe6f1;
  border-radius: 12px;
  background: rgba(248, 250, 252, 0.82);
  padding: 10px 14px;
  color: #314368;
  font-size: 12px;
  line-height: 1.38;
  font-weight: 400;
}

.auto-step-help-new strong {
  color: #111827;
  font-size: 12px;
  font-weight: 760;
  margin-right: 4px;
}

.auto-step-three-main-grid-new {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

.auto-step-three-main-grid-new .auto-field-new,
.auto-chart-advanced-grid-new .auto-field-new {
  min-height: 132px;
  align-content: start;
  border: 1px solid #dfe6f1;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.76);
  padding: 14px;
}

.auto-step-three-main-grid-new .auto-field-new > span,
.auto-chart-advanced-grid-new .auto-field-new > span {
  color: #263a5e !important;
  font-size: 11.5px !important;
  line-height: 1.25 !important;
  font-weight: 620 !important;
}

.auto-step-three-main-grid-new .auto-field-new small,
.auto-chart-advanced-grid-new .auto-field-new small {
  color: #667189 !important;
  font-size: 10.8px !important;
  line-height: 1.36 !important;
  font-weight: 400 !important;
}

.auto-step-three-main-grid-new .auto-field-new input,
.auto-step-three-main-grid-new .auto-field-new select,
.auto-chart-advanced-grid-new .auto-field-new input,
.auto-chart-advanced-grid-new .auto-field-new select {
  min-height: 42px;
  border-radius: 12px;
  font-size: 13px;
}

.auto-chart-advanced-new {
  overflow: hidden;
  border: 1px solid #dfe6f1;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
}

.auto-chart-advanced-summary-new {
  min-height: 68px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 14px 14px 14px 16px;
  cursor: pointer;
  list-style: none;
}

.auto-chart-advanced-summary-new::-webkit-details-marker {
  display: none;
}

.auto-chart-advanced-copy-new {
  display: grid;
  gap: 3px;
}

.auto-chart-advanced-copy-new strong {
  color: #111827;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 780;
}

.auto-chart-advanced-copy-new small {
  color: #667189;
  font-size: 11px;
  line-height: 1.34;
  font-weight: 400;
}

.auto-chart-advanced-toggle-new {
  min-width: 118px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(109, 69, 245, 0.22);
  border-radius: 999px;
  background: rgba(243, 239, 255, 0.76);
  color: #6847f5;
  padding: 0 18px;
  font-size: 11px;
  font-weight: 720;
}

.auto-chart-advanced-close-new {
  display: none;
}

.auto-chart-advanced-new[open] .auto-chart-advanced-open-new {
  display: none;
}

.auto-chart-advanced-new[open] .auto-chart-advanced-close-new {
  display: inline;
}

.auto-chart-advanced-grid-new {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 12px !important;
  padding: 16px;
  border-top: 1px solid #edf1f7;
}

@media (max-width: 1120px) {
  .auto-step-three-main-grid-new,
  .auto-chart-advanced-grid-new {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 720px) {
  .auto-step-three-main-grid-new,
  .auto-chart-advanced-grid-new {
    grid-template-columns: 1fr !important;
  }

  .auto-chart-advanced-summary-new {
    grid-template-columns: 1fr;
  }

  .auto-chart-advanced-toggle-new {
    justify-self: start;
  }
}


/* Auto generation step 3 polish: one-line principle, stronger titles, hover cards */
.auto-step-help-new {
  display: flex !important;
  align-items: center !important;
  gap: 5px !important;
  min-height: 38px !important;
  padding: 10px 14px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
}

.auto-step-help-new strong {
  flex: 0 0 auto !important;
  display: inline !important;
  margin-right: 0 !important;
  white-space: nowrap !important;
  color: #07142f !important;
  font-size: 12px !important;
  font-weight: 820 !important;
  line-height: 1 !important;
}

.auto-step-help-new span {
  display: block !important;
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  color: #314368 !important;
  font-size: 11.6px !important;
  line-height: 1.2 !important;
  font-weight: 400 !important;
}

.auto-step-three-main-grid-new .auto-field-new > span,
.auto-chart-advanced-grid-new .auto-field-new > span {
  color: #07142f !important;
  font-size: 11.8px !important;
  line-height: 1.25 !important;
  font-weight: 780 !important;
  letter-spacing: -0.004em !important;
}

.auto-step-three-main-grid-new .auto-field-new,
.auto-chart-advanced-grid-new .auto-field-new {
  transition:
    transform .16s ease,
    border-color .16s ease,
    box-shadow .16s ease,
    background .16s ease !important;
}

.auto-step-three-main-grid-new .auto-field-new:hover,
.auto-chart-advanced-grid-new .auto-field-new:hover {
  transform: translateY(-1px);
  border-color: rgba(109, 69, 245, 0.26) !important;
  background: #ffffff !important;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.075) !important;
}

.auto-chart-advanced-new {
  transition:
    border-color .16s ease,
    box-shadow .16s ease,
    background .16s ease !important;
}

.auto-chart-advanced-new:hover {
  border-color: rgba(109, 69, 245, 0.22) !important;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.055) !important;
  background: #ffffff !important;
}


/* Auto generation cards polish for steps 1-3 */
.auto-step-help-new {
  width: 100% !important;
  min-height: 38px !important;
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) !important;
  align-items: center !important;
  column-gap: 4px !important;
  border: 1px solid #dfe6f1 !important;
  border-radius: 12px !important;
  background: rgba(248, 250, 252, 0.82) !important;
  padding: 9px 14px !important;
  color: #314368 !important;
  white-space: normal !important;
  overflow: visible !important;
}

.auto-step-help-new strong {
  display: inline !important;
  margin: 0 !important;
  color: #07142f !important;
  font-size: 11.8px !important;
  line-height: 1.35 !important;
  font-weight: 820 !important;
  white-space: nowrap !important;
}

.auto-step-help-new span {
  display: inline !important;
  min-width: 0 !important;
  overflow: visible !important;
  text-overflow: initial !important;
  white-space: nowrap !important;
  color: #314368 !important;
  font-size: 11.6px !important;
  line-height: 1.35 !important;
  font-weight: 400 !important;
}

.auto-step-section-new[data-step="1"].is-active .auto-field-new,
.auto-step-section-new[data-step="2"].is-active .auto-field-new {
  min-height: 112px !important;
  align-content: start !important;
  border: 1px solid #dfe6f1 !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, 0.76) !important;
  padding: 14px !important;
  transition:
    transform .16s ease,
    border-color .16s ease,
    box-shadow .16s ease,
    background .16s ease !important;
}

.auto-step-section-new[data-step="1"].is-active .auto-field-new:hover,
.auto-step-section-new[data-step="2"].is-active .auto-field-new:hover {
  transform: translateY(-1px);
  border-color: rgba(109, 69, 245, 0.26) !important;
  background: #ffffff !important;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.075) !important;
}

.auto-step-section-new[data-step="1"].is-active .auto-field-new > span,
.auto-step-section-new[data-step="2"].is-active .auto-field-new > span {
  justify-self: start !important;
  color: #07142f !important;
  font-size: 11.8px !important;
  line-height: 1.25 !important;
  font-weight: 780 !important;
  letter-spacing: -0.004em !important;
}

.auto-step-section-new[data-step="1"].is-active .auto-field-new small,
.auto-step-section-new[data-step="2"].is-active .auto-field-new small {
  color: #667189 !important;
  font-size: 10.8px !important;
  line-height: 1.36 !important;
  font-weight: 400 !important;
}

.auto-step-section-new[data-step="1"].is-active .auto-field-new input,
.auto-step-section-new[data-step="2"].is-active .auto-field-new input,
.auto-step-section-new[data-step="2"].is-active .auto-field-new select {
  min-height: 42px !important;
  border-radius: 12px !important;
  font-size: 13px !important;
}

.auto-step-section-new[data-step="1"].is-active .auto-count-only-grid-new {
  width: min(620px, 100%) !important;
  max-width: 620px !important;
  margin: 0 auto !important;
}

.auto-step-section-new[data-step="2"].is-active .auto-step-two-grid-new {
  width: min(1044px, 100%) !important;
  margin: 0 auto !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

@media (max-width: 1120px) {
  .auto-step-help-new span {
    white-space: normal !important;
  }

  .auto-step-section-new[data-step="2"].is-active .auto-step-two-grid-new {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 720px) {
  .auto-step-help-new {
    grid-template-columns: 1fr !important;
    row-gap: 3px !important;
  }

  .auto-step-help-new span {
    white-space: normal !important;
  }

  .auto-step-section-new[data-step="2"].is-active .auto-step-two-grid-new {
    grid-template-columns: 1fr !important;
  }
}


/* Auto generation step 3 principle label: old-site lighter weight */
.auto-step-help-new strong {
  color: #07142f !important;
  font-size: 11.6px !important;
  line-height: 1.35 !important;
  font-weight: 650 !important;
  letter-spacing: 0 !important;
}


.auto-form-grid-new.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.auto-step-section-new[data-step="4"].is-active > h3 {
  width: 100% !important;
  margin: 0 0 22px !important;
  text-align: center !important;
  color: #07142f !important;
  font-size: 16px !important;
  line-height: 1.25 !important;
  font-weight: 820 !important;
  letter-spacing: -0.015em !important;
}

.auto-step-four-new {
  width: min(1160px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.auto-step-four-help-new {
  justify-content: flex-start;
  padding-inline: 14px;
}

.auto-step-four-main-grid-new,
.auto-step-four-mode-grid-new {
  gap: 12px !important;
  align-items: start;
}

.auto-step-four-main-grid-new .auto-step-four-card-new,
.auto-step-four-mode-grid-new .auto-step-four-card-new,
.auto-step-four-manual-grid-new .auto-step-four-card-new {
  min-height: 188px;
}

.auto-step-four-card-new {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 10px;
  border: 1px solid #dfe6f1;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  padding: 16px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.auto-step-four-card-new:hover,
.auto-step-four-comment-new:hover,
.auto-step-four-style-picker-new > .auto-field-new:hover,
.auto-step-four-style-picker-new > .auto-text-style-preview-card-new:hover {
  border-color: rgba(109, 69, 245, 0.28);
  box-shadow: 0 16px 36px rgba(109, 69, 245, 0.08);
  transform: translateY(-1px);
}

.auto-step-four-card-title-new {
  color: #263a5e !important;
  font-size: 12.2px !important;
  line-height: 1.3 !important;
  font-weight: 690 !important;
}

.auto-step-four-card-hint-new {
  color: #667189 !important;
  font-size: 11px !important;
  line-height: 1.38 !important;
  font-weight: 400 !important;
}

.auto-step-four-control-new,
.auto-openai-inline-input-new,
.auto-step-four-comment-textarea-new {
  width: 100%;
  min-height: 44px;
  border: 1px solid #dfe6f1;
  border-radius: 12px;
  background: #ffffff;
  color: #111827;
  padding: 10px 12px;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.85);
}

.auto-step-four-control-new:focus,
.auto-openai-inline-input-new:focus,
.auto-step-four-comment-textarea-new:focus {
  border-color: rgba(109, 69, 245, 0.46);
  box-shadow: 0 0 0 3px rgba(109, 69, 245, 0.10);
}

.auto-step-four-card-new textarea.auto-step-four-control-new {
  min-height: 88px;
  resize: vertical;
}

.auto-openai-style-field-new {
  min-height: 166px !important;
}

.auto-openai-inline-setup-new {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  gap: 10px;
  align-items: center;
}

.auto-openai-upload-btn-new {
  position: relative;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid #dfe6f1;
  border-radius: 12px;
  background: #ffffff;
  color: #111827;
  font-size: 12.5px;
  font-weight: 650;
  cursor: pointer;
  white-space: nowrap;
}

.auto-openai-inline-action-new {
  min-height: 42px;
  white-space: nowrap;
}

.auto-step-four-style-picker-new {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 14px;
  align-items: stretch;
}

.auto-step-four-style-picker-new > .auto-field-new {
  min-height: 160px;
  display: grid;
  align-content: start;
  gap: 10px;
  border: 1px solid #dfe6f1;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  padding: 16px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.auto-step-four-style-picker-new > .auto-field-new > span {
  color: #263a5e !important;
  font-size: 12.2px !important;
  line-height: 1.3 !important;
  font-weight: 690 !important;
}

.auto-step-four-style-picker-new > .auto-field-new > small {
  color: #667189 !important;
  font-size: 11px !important;
  line-height: 1.38 !important;
  font-weight: 400 !important;
}

.auto-step-four-style-picker-new > .auto-field-new select {
  min-height: 44px;
}

.auto-text-style-preview-card-new {
  min-height: 160px;
  border: 1px solid #dfe6f1;
  border-radius: 16px;
  background: linear-gradient(135deg, #0f1732 0%, #11193d 42%, #152151 100%);
  padding: 14px;
  color: #ffffff;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.auto-text-style-preview-body-new {
  height: 100%;
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.auto-text-style-preview-image-new {
  width: 110px;
  height: 84px;
  border-radius: 18px;
  background: rgba(12, 18, 42, 0.52);
  border: 1px solid rgba(255,255,255,0.14);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.auto-text-style-preview-image-new img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.auto-text-style-preview-sample-new {
  color: #ffd232;
  font-size: 20px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.03em;
  text-shadow:
    -1px -1px 0 #ff7f00,
    1px -1px 0 #ff7f00,
    -1px 1px 0 #ff7f00,
    1px 1px 0 #ff7f00,
    0 4px 18px rgba(255, 184, 0, 0.28);
}

.auto-text-style-preview-copy-new {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.auto-text-style-preview-badge-new {
  color: rgba(255, 255, 255, 0.92);
  font-size: 11px;
  line-height: 1.2;
  font-weight: 780;
}

.auto-text-style-preview-title-new {
  color: #ffffff;
  font-size: 20px;
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  word-break: break-word;
}

.auto-text-style-preview-card-new[data-style="white_3d_ibra"] .auto-text-style-preview-title-new {
  text-shadow: 0 3px 0 rgba(17, 24, 39, 0.5), 0 10px 28px rgba(255,255,255,0.18);
}

.auto-text-style-preview-card-new[data-style="yellow_punch"] .auto-text-style-preview-title-new {
  color: #ffd232;
  text-shadow: 0 2px 0 rgba(255, 119, 0, 0.6), 0 0 18px rgba(255, 202, 40, 0.22);
}

.auto-text-style-preview-card-new[data-style="red_warning"] .auto-text-style-preview-title-new {
  color: #ff6b6b;
  text-shadow: 0 0 18px rgba(255, 107, 107, 0.24);
}

.auto-text-style-preview-card-new[data-style="cyan_neon"] .auto-text-style-preview-title-new {
  color: #7ce8ff;
  text-shadow: 0 0 18px rgba(124, 232, 255, 0.30);
}

.auto-text-style-preview-card-new[data-style="black_sticker"] .auto-text-style-preview-title-new {
  display: inline-flex;
  width: fit-content;
  color: #111827;
  background: #ffffff;
  padding: 6px 10px;
  border-radius: 10px;
}

.auto-text-style-preview-card-new[data-style="green_profit"] .auto-text-style-preview-title-new {
  color: #63f3ae;
  text-shadow: 0 0 18px rgba(99, 243, 174, 0.26);
}

.auto-text-style-preview-card-new[data-style="purple_glow"] .auto-text-style-preview-title-new {
  color: #d5c3ff;
  text-shadow: 0 0 18px rgba(190, 144, 255, 0.32);
}

.auto-text-style-preview-card-new[data-style="silver_slope"] .auto-text-style-preview-title-new {
  color: #eff4ff;
  transform: rotate(-4deg);
}

.auto-text-style-preview-card-new[data-style="orange_energy"] .auto-text-style-preview-title-new {
  color: #ffb357;
  text-shadow: 0 0 18px rgba(255, 179, 87, 0.26);
}

.auto-step-four-manual-grid-new {
  padding: 0 16px 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.auto-step-four-manual-grid-new .auto-step-four-card-new {
  min-height: 144px;
}

.auto-step-four-comment-new {
  display: grid;
  gap: 10px;
  border: 1px solid #dfe6f1;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  padding: 16px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.auto-step-four-comment-textarea-new {
  min-height: 110px;
  resize: vertical;
}

@media (max-width: 1180px) {
  .auto-step-four-style-picker-new {
    grid-template-columns: 1fr;
  }

  .auto-step-four-manual-grid-new,
  .auto-form-grid-new.four {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 900px) {
  .auto-step-four-main-grid-new,
  .auto-step-four-mode-grid-new,
  .auto-step-four-style-picker-new,
  .auto-step-four-manual-grid-new,
  .auto-form-grid-new.four {
    grid-template-columns: 1fr !important;
  }

  .auto-openai-inline-setup-new {
    grid-template-columns: 1fr;
  }

  .auto-text-style-preview-body-new {
    grid-template-columns: 1fr;
  }
}


/* Auto generation step 4 defaults: OpenAI PNG disables local text style */
.auto-step-four-style-picker-new > .auto-field-new.is-disabled-by-openai {
  opacity: 0.56;
  background: rgba(248, 250, 252, 0.78) !important;
  transform: none !important;
  box-shadow: none !important;
}

.auto-step-four-style-picker-new > .auto-field-new.is-disabled-by-openai select {
  cursor: not-allowed;
  color: #8b95a8;
  background: #f8fafc;
}

.auto-step-four-style-picker-new > .auto-field-new.is-disabled-by-openai::after {
  content: "OpenAI PNG использует сохранённый стиль OpenAI. Локальный стиль включается только в режиме «Локальный шаблон».";
  display: block;
  margin-top: 2px;
  color: #8b95a8;
  font-size: 10.8px;
  line-height: 1.36;
  font-weight: 400;
}


/* Auto generation step 5: old-site voice layout */
.auto-step-section-new[data-step="5"].is-active > h3 {
  width: 100% !important;
  margin: 0 0 22px !important;
  text-align: center !important;
  color: #07142f !important;
  font-size: 16px !important;
  line-height: 1.25 !important;
  font-weight: 820 !important;
  letter-spacing: -0.015em !important;
}

.auto-step-five-new {
  width: min(1160px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.auto-step-five-help-new {
  min-height: 42px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  padding: 10px 14px !important;
  color: #314368 !important;
  font-size: 11.8px !important;
  line-height: 1.42 !important;
  font-weight: 400 !important;
  white-space: normal !important;
}

.auto-step-five-grid-new {
  gap: 14px !important;
  align-items: stretch;
}

.auto-step-five-card-new {
  min-height: 144px;
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 10px;
  border: 1px solid #dfe6f1;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  padding: 16px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.auto-step-five-card-new:hover,
.auto-step-five-toolbar-new:hover,
.auto-step-five-options-new:hover {
  border-color: rgba(109, 69, 245, 0.28);
  box-shadow: 0 16px 36px rgba(109, 69, 245, 0.08);
  transform: translateY(-1px);
}

.auto-step-five-card-title-new {
  color: #263a5e !important;
  font-size: 12.2px !important;
  line-height: 1.3 !important;
  font-weight: 690 !important;
}

.auto-step-five-card-hint-new {
  color: #667189 !important;
  font-size: 11px !important;
  line-height: 1.38 !important;
  font-weight: 400 !important;
}

.auto-step-five-control-new {
  width: 100%;
  min-height: 44px;
  border: 1px solid #dfe6f1;
  border-radius: 12px;
  background: #ffffff;
  color: #111827;
  padding: 10px 12px;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.85);
}

.auto-step-five-control-new:focus {
  border-color: rgba(109, 69, 245, 0.46);
  box-shadow: 0 0 0 3px rgba(109, 69, 245, 0.10);
}

.auto-step-five-card-new textarea.auto-step-five-control-new {
  min-height: 92px;
  resize: vertical;
}

.auto-step-five-toolbar-new {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid #dfe6f1;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  padding: 12px 14px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.auto-step-five-hint-new {
  color: #53637f;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 400;
}

.auto-step-five-quick-grid-new {
  padding: 0 16px 16px;
  gap: 12px !important;
}

.auto-step-five-quick-grid-new .auto-step-five-card-new {
  min-height: 148px;
}

.auto-step-five-create-toolbar-new {
  margin: 0 16px 16px;
}

.auto-step-five-options-new {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  border: 1px solid #dfe6f1;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  padding: 14px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.auto-step-five-options-new .auto-checkbox-new {
  margin: 0;
  min-height: 46px;
  background: #ffffff;
}

.auto-step-section-new[data-step="5"].is-voice-disabled .auto-step-five-card-new:not(:first-child),
.auto-step-section-new[data-step="5"].is-voice-disabled .auto-step-five-toolbar-new,
.auto-step-section-new[data-step="5"].is-voice-disabled .auto-step-five-quick-new,
.auto-step-section-new[data-step="5"].is-voice-disabled .auto-step-five-options-new {
  opacity: 0.56;
}

@media (max-width: 1120px) {
  .auto-step-five-options-new {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .auto-step-five-grid-new,
  .auto-step-five-quick-grid-new,
  .auto-step-five-options-new {
    grid-template-columns: 1fr !important;
  }

  .auto-step-five-toolbar-new {
    align-items: flex-start;
    flex-direction: column;
  }
}


/* Auto generation step 6: old-site final data, template, status and plan */
.auto-step-section-new[data-step="6"].is-active > h3 {
  width: 100% !important;
  margin: 0 0 22px !important;
  text-align: center !important;
  color: #07142f !important;
  font-size: 16px !important;
  line-height: 1.25 !important;
  font-weight: 820 !important;
  letter-spacing: -0.015em !important;
}

.auto-step-six-new {
  width: min(1160px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.auto-final-start-block-new,
.auto-final-template-block-new,
.auto-plan-step-block-new {
  display: grid;
  gap: 14px;
  border: 1px solid #dfe6f1;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  padding: 16px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.auto-final-start-block-new:hover,
.auto-final-template-block-new:hover,
.auto-plan-step-block-new:hover,
.auto-final-status-new:hover {
  border-color: rgba(109, 69, 245, 0.28);
  box-shadow: 0 16px 36px rgba(109, 69, 245, 0.08);
  transform: translateY(-1px);
}

.auto-final-start-grid-new {
  gap: 12px !important;
}

.auto-final-primary-field-new {
  min-height: 146px;
  display: grid;
  align-content: start;
  gap: 10px;
  border: 1px solid #dfe6f1;
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.62);
  padding: 14px;
}

.auto-final-primary-field-new > span {
  color: #263a5e !important;
  font-size: 12.2px !important;
  line-height: 1.3 !important;
  font-weight: 690 !important;
}

.auto-final-primary-field-new small {
  color: #667189 !important;
  font-size: 11px !important;
  line-height: 1.38 !important;
  font-weight: 400 !important;
}

.auto-final-primary-field-new textarea,
.auto-final-primary-field-new input,
.auto-template-final-grid-new input,
.auto-template-final-grid-new select {
  width: 100%;
  min-height: 44px;
  border: 1px solid #dfe6f1;
  border-radius: 12px;
  background: #ffffff;
  color: #111827;
  padding: 10px 12px;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.85);
}

.auto-final-primary-field-new textarea {
  min-height: 88px;
  resize: vertical;
}

.auto-final-primary-field-new textarea:focus,
.auto-final-primary-field-new input:focus,
.auto-template-final-grid-new input:focus,
.auto-template-final-grid-new select:focus {
  border-color: rgba(109, 69, 245, 0.46);
  box-shadow: 0 0 0 3px rgba(109, 69, 245, 0.10);
}

.auto-final-template-block-new .auto-template-actions-new {
  justify-content: flex-start;
  padding-top: 0;
}

.auto-actions-row-new {
  justify-content: flex-start !important;
  min-height: 58px;
  border: 1px solid #dfe6f1;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  padding: 12px 14px;
}

.auto-final-status-new {
  min-height: 42px;
  border: 1px solid #dfe6f1;
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.82);
  color: #314368;
  padding: 11px 14px;
  font-size: 12px;
  line-height: 1.42;
  font-weight: 500;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.auto-progress-shell-new {
  width: 100%;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf1f7;
}

.auto-progress-bar-new {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8b5cf6 0%, #6d45f5 100%);
  transition: width 0.25s ease;
}

.auto-plan-step-block-new .auto-final-template-head-new {
  display: grid;
  gap: 6px;
}

@media (max-width: 900px) {
  .auto-final-start-grid-new,
  .auto-template-final-grid-new {
    grid-template-columns: 1fr !important;
  }

  .auto-actions-row-new {
    align-items: stretch !important;
    flex-direction: column;
  }

  .auto-actions-row-new .auto-button-new {
    width: 100%;
  }
}


/* Auto generation step 6: old-site two-column layout */
.auto-step-six-layout-new {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 430px);
  gap: 16px;
  align-items: start;
}

.auto-step-six-left-new {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.auto-step-six-right-new {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.auto-step-six-right-new .auto-plan-step-block-new {
  min-height: 100%;
}

.auto-step-six-right-new .auto-plan-list-new {
  max-height: 640px;
  overflow: auto;
  padding-right: 2px;
}

@media (max-width: 1180px) {
  .auto-step-six-layout-new {
    grid-template-columns: 1fr;
  }

  .auto-step-six-right-new .auto-plan-list-new {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }
}


/* Auto generation step 6: use full wizard width */
.auto-step-six-new {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

.auto-step-six-layout-new {
  width: 100% !important;
  grid-template-columns: minmax(0, 1.55fr) minmax(430px, 0.95fr) !important;
  gap: 16px !important;
}

.auto-step-six-left-new,
.auto-step-six-right-new {
  width: 100% !important;
}

.auto-final-start-block-new,
.auto-final-template-block-new,
.auto-plan-step-block-new,
.auto-actions-row-new,
.auto-final-status-new,
.auto-progress-shell-new {
  width: 100% !important;
}

.auto-final-start-grid-new,
.auto-template-final-grid-new {
  width: 100% !important;
}

@media (max-width: 1180px) {
  .auto-step-six-layout-new {
    grid-template-columns: 1fr !important;
  }
}


/* Auto generation wizard: completed steps */
.auto-step-dot-new.is-completed {
  border-color: rgba(34, 197, 94, 0.28) !important;
  background: rgba(240, 253, 244, 0.92) !important;
  color: #15803d !important;
  box-shadow: 0 8px 18px rgba(34, 197, 94, 0.10) !important;
}

.auto-step-dot-new.is-completed:hover {
  border-color: rgba(34, 197, 94, 0.42) !important;
  background: #ecfdf5 !important;
  color: #166534 !important;
}

.auto-step-dot-new.is-active {
  border-color: rgba(109, 69, 245, 0.38) !important;
  background: #efe9ff !important;
  color: #6d45f5 !important;
  box-shadow: 0 10px 24px rgba(109, 69, 245, 0.16) !important;
}


/* Auto generation wizard: remove global footer status row */
.auto-wizard-new {
  grid-template-rows: auto minmax(0, 1fr) !important;
}

.auto-wizard-footer-new--status-only {
  display: none !important;
}


/* Home queue error popup v184 */
.has-queue-error-popup-v184 {
  position: relative;
  cursor: help;
  outline: none;
}

.home-queue-error-popup-v184 {
  position: absolute;
  z-index: 80;
  left: 50%;
  bottom: calc(100% + 10px);
  width: min(360px, calc(100vw - 40px));
  min-width: 260px;
  transform: translateX(-50%) translateY(4px);
  display: grid;
  gap: 5px;
  padding: 11px 13px;
  border: 1px solid rgba(244, 63, 94, 0.20);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  color: #18233d;
  box-shadow:
    0 18px 44px rgba(15, 23, 42, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.70) inset;
  font-size: 11.5px;
  line-height: 1.42;
  font-weight: 500;
  text-align: left;
  white-space: normal;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.14s ease,
    visibility 0.14s ease,
    transform 0.14s ease;
}

.home-queue-error-popup-v184::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 12px;
  height: 12px;
  transform: translateX(-50%) rotate(45deg);
  border-right: 1px solid rgba(244, 63, 94, 0.16);
  border-bottom: 1px solid rgba(244, 63, 94, 0.16);
  background: rgba(255, 255, 255, 0.98);
}

.home-queue-error-popup-v184 strong {
  color: #be123c;
  font-size: 11.8px;
  line-height: 1.25;
  font-weight: 780;
}

.home-queue-error-popup-v184 span {
  color: #33415f;
  font-size: 11.4px;
  line-height: 1.42;
  font-weight: 500;
}

.has-queue-error-popup-v184:hover .home-queue-error-popup-v184,
.has-queue-error-popup-v184:focus .home-queue-error-popup-v184,
.has-queue-error-popup-v184:focus-within .home-queue-error-popup-v184 {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}


/* Home queue error popup v186: body-level tooltip, not clipped by table rows */
.home-queue-error-popup-v184 {
  display: none !important;
}

.home-queue-error-popup-v186 {
  position: fixed;
  z-index: 9999;
  display: grid;
  gap: 5px;
  padding: 11px 13px;
  border: 1px solid rgba(244, 63, 94, 0.20);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.99);
  color: #18233d;
  box-shadow:
    0 18px 44px rgba(15, 23, 42, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.72) inset;
  font-size: 11.5px;
  line-height: 1.42;
  font-weight: 500;
  text-align: left;
  white-space: normal;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition:
    opacity 0.14s ease,
    transform 0.14s ease;
}

.home-queue-error-popup-v186.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.home-queue-error-popup-v186::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 12px;
  height: 12px;
  transform: translateX(-50%) rotate(45deg);
  background: rgba(255, 255, 255, 0.99);
}

.home-queue-error-popup-v186[data-placement="top"]::after {
  bottom: -6px;
  border-right: 1px solid rgba(244, 63, 94, 0.16);
  border-bottom: 1px solid rgba(244, 63, 94, 0.16);
}

.home-queue-error-popup-v186[data-placement="bottom"]::after {
  top: -6px;
  border-left: 1px solid rgba(244, 63, 94, 0.16);
  border-top: 1px solid rgba(244, 63, 94, 0.16);
}

.home-queue-error-popup-v186 strong {
  color: #be123c;
  font-size: 11.8px;
  line-height: 1.25;
  font-weight: 780;
}

.home-queue-error-popup-v186 span {
  color: #33415f;
  font-size: 11.4px;
  line-height: 1.42;
  font-weight: 500;
}

.has-queue-error-popup-v184 {
  cursor: help;
}


/* Home queue live progress v187 */
.home-queue-stage-v81 {
  min-width: 180px;
}

.home-queue-progress-v187 {
  width: min(180px, 100%);
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf1f7;
  margin-top: 7px;
}

.home-queue-progress-v187 span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8b5cf6 0%, #6d45f5 100%);
  transition: width 0.25s ease;
}

.home-queue-progress-meta-v187 {
  margin-top: 4px;
  max-width: 240px;
  color: #667189;
  font-size: 10.5px;
  line-height: 1.25;
  font-weight: 500;
  white-space: normal;
}


/* Home queue stage layout v189 */
.home-queue-stage-v81 {
  display: grid !important;
  align-content: center !important;
  gap: 5px !important;
  min-width: 210px !important;
  max-width: 260px !important;
  line-height: 1.2 !important;
}

.home-queue-stage-name-v189 {
  display: block;
  color: #263a5e;
  font-size: 12px;
  line-height: 1.25;
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-queue-progress-v187 {
  width: 100% !important;
  height: 5px !important;
  margin-top: 0 !important;
}

.home-queue-progress-meta-v187 {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) !important;
  align-items: start !important;
  gap: 5px !important;
  max-width: 100% !important;
  margin-top: 0 !important;
  line-height: 1.2 !important;
  white-space: normal !important;
}

.home-queue-progress-percent-v189 {
  color: #6d45f5;
  font-size: 10.5px;
  line-height: 1.2;
  font-weight: 780;
  white-space: nowrap;
}

.home-queue-progress-message-v189 {
  min-width: 0;
  max-width: 190px;
  color: #667189;
  font-size: 10.5px;
  line-height: 1.2;
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-queue-row-v81 {
  align-items: center !important;
}

.home-queue-head-v81,
.home-queue-row-v81 {
  grid-template-columns:
    minmax(360px, 1.65fr)
    minmax(110px, 0.55fr)
    minmax(130px, 0.62fr)
    minmax(220px, 0.95fr)
    minmax(120px, 0.52fr)
    minmax(110px, 0.45fr) !important;
}


/* Home queue stage compact polish v190 */
.home-queue-stage-v81 {
  min-width: 200px !important;
  max-width: 240px !important;
  gap: 4px !important;
}

.home-queue-stage-name-v189 {
  color: #314368 !important;
  font-size: 11.2px !important;
  line-height: 1.18 !important;
  font-weight: 620 !important;
  letter-spacing: 0 !important;
}

.home-queue-progress-v187 {
  height: 4px !important;
  width: min(160px, 100%) !important;
}

.home-queue-progress-meta-v187 {
  grid-template-columns: auto minmax(0, 1fr) !important;
  gap: 4px !important;
  align-items: center !important;
}

.home-queue-progress-percent-v189 {
  color: #6d45f5 !important;
  font-size: 9.7px !important;
  line-height: 1.1 !important;
  font-weight: 720 !important;
}

.home-queue-progress-message-v189 {
  max-width: 145px !important;
  color: #667189 !important;
  font-size: 9.7px !important;
  line-height: 1.1 !important;
  font-weight: 450 !important;
  -webkit-line-clamp: 1 !important;
}

.home-queue-error-popup-v186 {
  width: min(320px, calc(100vw - 40px)) !important;
  min-width: 240px !important;
  padding: 10px 12px !important;
  border-radius: 13px !important;
}

.home-queue-error-popup-v186 strong {
  font-size: 11.2px !important;
}

.home-queue-error-popup-v186 span {
  font-size: 10.8px !important;
}


/* Home queue stage center + view action v191 */
.home-queue-stage-v81 {
  justify-items: center !important;
  text-align: center !important;
}

.home-queue-stage-name-v189 {
  width: 100% !important;
  text-align: center !important;
  font-weight: 560 !important;
}

.home-queue-progress-v187 {
  margin-left: auto !important;
  margin-right: auto !important;
}

.home-queue-progress-meta-v187 {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  width: 100% !important;
  text-align: center !important;
}

.home-queue-progress-percent-v189 {
  font-weight: 500 !important;
  font-size: 9.5px !important;
}

.home-queue-progress-message-v189 {
  max-width: 150px !important;
  text-align: center !important;
  font-weight: 400 !important;
  font-size: 9.5px !important;
}

.home-queue-view-v191 {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(109, 69, 245, 0.22);
  border-radius: 10px;
  background: rgba(109, 69, 245, 0.08);
  color: #6d45f5;
  font-size: 11px;
  line-height: 1;
  font-weight: 650;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.home-queue-view-v191:hover {
  border-color: rgba(109, 69, 245, 0.36);
  background: rgba(109, 69, 245, 0.13);
  transform: translateY(-1px);
}

.home-queue-thumb-v81.is-clickable,
.home-queue-title-link-v191 {
  cursor: pointer;
}

.home-queue-title-link-v191 {
  border: 0;
  background: transparent;
  padding: 0;
  color: inherit;
  font: inherit;
  text-align: left;
}

.home-queue-title-link-v191:hover {
  color: #6d45f5;
}


/* Queue video player modal v192 */
.home-queue-title-link-v191,
.home-queue-view-v191 {
  display: none !important;
}

body.queue-video-player-open-v192 {
  overflow: hidden;
}

.queue-video-player-overlay-v192 {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.14s ease;
}

.queue-video-player-overlay-v192.is-visible {
  opacity: 1;
}

.queue-video-player-dialog-v192 {
  width: min(980px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid rgba(223, 230, 241, 0.92);
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
  box-shadow: 0 32px 86px rgba(15, 23, 42, 0.22), inset 0 1px 0 rgba(255,255,255,0.96);
}

.queue-video-player-head-v192 {
  min-height: 70px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px 14px;
  border-bottom: 1px solid #edf0f6;
}

.queue-video-player-copy-v192 {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.queue-video-player-copy-v192 h2 {
  margin: 0;
  color: #07142f;
  font-size: 19px;
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.queue-video-player-copy-v192 p {
  margin: 0;
  color: #667189;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 500;
}

.queue-video-player-close-v192 {
  width: 38px;
  height: 38px;
  border: 1px solid #dfe6f1;
  border-radius: 13px;
  background: #ffffff;
  color: #263a5e;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.queue-video-player-body-v192 {
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background:
    radial-gradient(circle at 50% 10%, rgba(109, 69, 245, 0.08), transparent 38%),
    #f3f6fb;
  overflow: auto;
}

.queue-video-player-phone-v192 {
  width: min(360px, 82vw);
  max-height: calc(100vh - 210px);
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 28px;
  background: #071022;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.24);
}

.queue-video-player-video-v192 {
  width: 100%;
  height: 100%;
  display: block;
  background: #050812;
  object-fit: contain;
}

.queue-video-player-foot-v192 {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 18px 18px;
  border-top: 1px solid #edf0f6;
}

.queue-video-player-action-v192 {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid #dfe6f1;
  border-radius: 12px;
  background: #ffffff;
  color: #111827;
  font-size: 12px;
  line-height: 1;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
}

.queue-video-player-action-v192:hover {
  border-color: rgba(109, 69, 245, 0.34);
  color: #6d45f5;
  background: rgba(109, 69, 245, 0.06);
}

@media (max-width: 760px) {
  .queue-video-player-overlay-v192 {
    padding: 12px;
  }

  .queue-video-player-dialog-v192 {
    width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
    border-radius: 20px;
  }

  .queue-video-player-foot-v192 {
    flex-direction: column;
  }

  .queue-video-player-action-v192 {
    width: 100%;
  }
}


/* Queue stage final cleanup v193 */
.home-queue-stage-v81 {
  gap: 3px !important;
}

.home-queue-row-v81--success .home-queue-stage-v81 {
  justify-items: center !important;
}

.home-queue-row-v81--success .home-queue-stage-name-v189 {
  color: #15803d !important;
  font-size: 11.4px !important;
  font-weight: 560 !important;
}

.home-queue-row-v81--success .home-queue-progress-v187,
.home-queue-row-v81--success .home-queue-progress-meta-v187 {
  display: none !important;
}


/* v197 approval button safety overrides */
.home-queue-actions-v81 .home-queue-approve-v81.is-approved {
  border-color: rgba(34, 197, 94, 0.22) !important;
  background: #eaf8ee !important;
  color: #0d8f4b !important;
}

.home-queue-actions-v81 .home-queue-approve-v81.is-ready-for-approval {
  border-color: #d9cffd !important;
  background: #fbfaff !important;
  color: #8b5cf6 !important;
}


/* v198 approval toggle safety */
.home-queue-actions-v81 .home-queue-approve-v81.is-approved {
  cursor: pointer !important;
}


.auth-boot-loading-v217 {
  min-height: 100vh;
  display: grid;
  place-items: center;
  color: #526079;
}

.auth-page-v217 {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 12% 10%, rgba(124, 58, 237, 0.07), transparent 28%),
    radial-gradient(circle at 88% 12%, rgba(56, 189, 248, 0.07), transparent 24%),
    linear-gradient(180deg, #fbfcff 0%, #f5f7fc 100%);
}

.auth-shell-v217 {
  width: min(100%, 1180px);
  min-height: min(760px, calc(100vh - 48px));
  display: grid;
  grid-template-columns: minmax(420px, 1.05fr) minmax(420px, 0.95fr);
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 32px;
  background: #ffffff;
  box-shadow: 0 30px 90px rgba(15, 23, 42, 0.08);
}

.auth-showcase-v217 {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 54px;
  color: #ffffff;
  background:
    radial-gradient(circle at 70% 86%, rgba(124, 58, 237, 0.42), transparent 34%),
    radial-gradient(circle at 18% 12%, rgba(34, 211, 238, 0.13), transparent 24%),
    linear-gradient(180deg, #0b1027 0%, #0a0e31 100%);
}

.auth-brand-mark-v217 {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border-radius: 26px;
  background: linear-gradient(135deg, #22d3ee 0%, #7c3aed 74%);
  color: #ffffff;
  font-size: 54px;
  font-weight: 900;
  box-shadow: 0 28px 60px rgba(8, 11, 40, 0.36);
}

.auth-copy-v217 {
  margin-top: 34px;
}

.auth-eyebrow-v217,
.auth-form-kicker-v217 {
  margin: 0 0 12px;
  color: #7c3aed;
  font-size: 12px;
  line-height: 16px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.auth-showcase-v217 .auth-eyebrow-v217 {
  color: #c4b5fd;
}

.auth-copy-v217 h1 {
  max-width: 510px;
  margin: 0;
  font-size: 52px;
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.auth-copy-v217 p:last-child {
  max-width: 430px;
  margin: 22px 0 0;
  color: rgba(240, 244, 255, 0.82);
  font-size: 16px;
  line-height: 1.7;
}

.auth-preview-card-v217 {
  margin-top: 46px;
  max-width: 360px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 22px;
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(12px);
  display: grid;
  gap: 6px;
}

.auth-preview-card-v217 span {
  color: rgba(255,255,255,0.66);
  font-size: 13px;
}

.auth-preview-card-v217 strong {
  color: #ffffff;
  font-size: 20px;
}

.auth-preview-card-v217 i {
  display: block;
  width: 72%;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #22d3ee, #7c3aed);
  margin-top: 8px;
}

.auth-panel-v217 {
  display: grid;
  place-items: center;
  padding: 42px;
}

.auth-form-v217 {
  width: min(100%, 430px);
}

.auth-form-v217 h2 {
  margin: 0;
  color: #071127;
  font-size: 34px;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.auth-muted-v217 {
  margin: 14px 0 24px;
  color: #60708a;
  font-size: 14px;
  line-height: 1.6;
}

.auth-test-card-v217 {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid #ddd6fe;
  border-radius: 18px;
  background: #f7f4ff;
  margin-bottom: 18px;
}

.auth-test-card-v217 span,
.auth-test-card-v217 small {
  color: #6b7280;
  font-size: 12px;
}

.auth-test-card-v217 b {
  color: #111827;
  font-size: 14px;
}

.auth-field-v217 {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.auth-field-v217 span {
  color: #172033;
  font-size: 13px;
  font-weight: 800;
}

.auth-field-v217 input {
  width: 100%;
  min-height: 46px;
  border: 1px solid #dbe4f0;
  border-radius: 14px;
  padding: 0 14px;
  background: #fff;
  color: #071127;
  font: inherit;
}

.auth-primary-v217,
.auth-secondary-v217 {
  min-height: 46px;
  border-radius: 14px;
  padding: 0 18px;
  font-weight: 900;
}

.auth-primary-v217 {
  width: 100%;
  border: 0;
  color: #ffffff;
  background: linear-gradient(135deg, #7c3aed 0%, #6d42f5 100%);
  box-shadow: 0 18px 36px rgba(124, 58, 237, 0.22);
}

.auth-secondary-v217 {
  border: 1px solid #dbe4f0;
  color: #172033;
  background: #ffffff;
}

.auth-actions-v217 {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.auth-actions-v217 .auth-primary-v217 {
  flex: 1;
}

.auth-link-v217 {
  margin-top: 14px;
  border: 0;
  background: transparent;
  color: #7c3aed;
  font-weight: 900;
}

.auth-status-v217,
.profile-status-v217 {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 18px;
  font-weight: 700;
}

.auth-status-v217--error,
.profile-status-v217--error {
  border: 1px solid #fecdd3;
  color: #e11d48;
  background: #fff1f2;
}

.auth-status-v217--success,
.profile-status-v217--success {
  border: 1px solid #bbf7d0;
  color: #15803d;
  background: #f0fdf4;
}

.auth-status-v217--info,
.profile-status-v217--info {
  border: 1px solid #dbeafe;
  color: #1d4ed8;
  background: #eff6ff;
}

.profile-page-v217 {
  display: grid;
  gap: 18px;
}

.profile-card-v217 {
  display: grid;
  grid-template-columns: minmax(260px, 0.65fr) minmax(360px, 1fr);
  gap: 28px;
  padding: 24px;
  border: 1px solid #dfe6f2;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.04);
}

.profile-card-v217 h2 {
  margin: 0 0 8px;
  color: #071127;
}

.profile-card-v217 p {
  margin: 0;
  color: #60708a;
  line-height: 1.55;
}

.profile-form-v217 {
  display: grid;
  gap: 14px;
}

.profile-form-v217 label {
  display: grid;
  gap: 8px;
}

.profile-form-v217 span {
  color: #172033;
  font-size: 13px;
  font-weight: 800;
}

.profile-form-v217 input {
  min-height: 44px;
  border: 1px solid #dbe4f0;
  border-radius: 14px;
  padding: 0 14px;
  color: #071127;
  font: inherit;
}

.profile-form-v217 button {
  justify-self: start;
  min-height: 42px;
  border: 0;
  border-radius: 14px;
  padding: 0 18px;
  background: #7c3aed;
  color: #ffffff;
  font-weight: 900;
}

@media (max-width: 980px) {
  .auth-shell-v217,
  .profile-card-v217 {
    grid-template-columns: 1fr;
  }

  .auth-showcase-v217 {
    display: none;
  }
}


/* ===== Imported old auth-gate.css for v218 ===== */
body.auth-visible {
  width: 100vw !important;
  min-height: 100vh !important;
  overflow: hidden !important;
  background: linear-gradient(180deg, #fafbff 0%, #f5f7fc 100%) !important;
  color: #171b25 !important;
}

body.auth-visible #welcomeGate,
body.auth-visible .studio-shell {
  display: none !important;
}

body.auth-visible .auth-gate[hidden] {
  display: none !important;
}

body.auth-visible .auth-gate {
  position: fixed !important;
  inset: 0 !important;
  z-index: 11900 !important;
  display: grid !important;
  place-items: center !important;
  width: 100vw !important;
  height: 100vh !important;
  padding: 20px !important;
  box-sizing: border-box !important;
  background:
    radial-gradient(circle at 12% 10%, rgba(109, 69, 245, 0.045), transparent 28%),
    radial-gradient(circle at 88% 18%, rgba(109, 69, 245, 0.035), transparent 24%),
    linear-gradient(180deg, #fbfcff 0%, #f6f7fb 100%) !important;
}

@supports (height: 100dvh) {
  body.auth-visible .auth-gate {
    height: 100dvh !important;
  }
}

body.auth-visible .auth-shell {
  width: min(100%, 1480px) !important;
  min-height: min(970px, calc(100vh - 40px)) !important;
  display: grid !important;
  grid-template-columns: minmax(420px, 1.08fr) minmax(430px, 1fr) !important;
  gap: 0 !important;
  border: 1px solid #e7ebf4 !important;
  border-radius: 32px !important;
  overflow: hidden !important;
  background: #ffffff !important;
  box-shadow:
    0 30px 90px rgba(18, 26, 44, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.95) !important;
}

body.auth-visible .auth-showcase {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  min-width: 0 !important;
  padding: 44px 52px 42px 52px !important;
  background:
    radial-gradient(circle at 58% 88%, rgba(120, 69, 255, 0.34), transparent 31%),
    radial-gradient(circle at 18% 12%, rgba(90, 234, 255, 0.10), transparent 22%),
    linear-gradient(180deg, #0b0d29 0%, #0a0d32 54%, #090c2f 100%) !important;
  color: #ffffff !important;
}

body.auth-visible .auth-showcase::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  background:
    radial-gradient(circle at 50% 100%, rgba(147, 87, 255, .11), transparent 43%),
    linear-gradient(90deg, rgba(255,255,255,0.016), transparent 14%, transparent 86%, rgba(255,255,255,0.016));
  pointer-events: none !important;
}

body.auth-visible .auth-showcase-inner {
  position: relative !important;
  z-index: 1 !important;
  width: 100% !important;
  max-width: 640px !important;
  margin: 0 auto !important;
}

body.auth-visible .auth-showcase-badge {
  position: relative !important;
  width: 96px !important;
  height: 96px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 26px !important;
  background: linear-gradient(180deg, rgba(139, 95, 255, 0.22), rgba(83, 55, 185, 0.22)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.14),
    0 22px 50px rgba(9, 10, 28, 0.44) !important;
}

body.auth-visible .auth-showcase-badge svg {
  width: 54px !important;
  height: 54px !important;
  stroke: #b07cff !important;
  fill: none !important;
  stroke-width: 1.7 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
  filter: drop-shadow(0 8px 18px rgba(129, 84, 255, 0.28)) !important;
}

body.auth-visible .auth-showcase-copy {
  margin-top: 34px !important;
}

body.auth-visible .auth-showcase-copy h2 {
  max-width: 470px !important;
  margin: 0 !important;
  color: #ffffff !important;
  font-size: 60px !important;
  line-height: 1.06 !important;
  letter-spacing: -0.05em !important;
  font-weight: 690 !important;
}

body.auth-visible .auth-showcase-copy h2 span {
  color: #8e62ff !important;
}

body.auth-visible .auth-showcase-copy p {
  max-width: 420px !important;
  margin: 24px 0 0 !important;
  color: rgba(240, 242, 255, 0.88) !important;
  font-size: 17px !important;
  line-height: 1.64 !important;
  letter-spacing: -0.012em !important;
  font-weight: 450 !important;
}

body.auth-visible .auth-showcase-stage {
  position: relative !important;
  margin-top: 42px !important;
  min-height: 470px !important;
}

body.auth-visible .auth-stage-rail {
  position: absolute !important;
  left: -14px !important;
  bottom: 18px !important;
  width: 64px !important;
  padding: 18px 12px !important;
  display: grid !important;
  gap: 16px !important;
  border-radius: 28px !important;
  background: linear-gradient(180deg, rgba(10, 13, 40, 0.98), rgba(8, 11, 33, 0.98)) !important;
  border: 1px solid rgba(170, 177, 219, 0.11) !important;
  box-shadow: 0 20px 38px rgba(4, 7, 21, 0.46) !important;
}

body.auth-visible .auth-stage-icon {
  width: 38px !important;
  height: 38px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 12px !important;
  background: rgba(255,255,255,0.035) !important;
  color: #a78bff !important;
}

body.auth-visible .auth-stage-icon svg,
body.auth-visible .route-node svg {
  width: 22px !important;
  height: 22px !important;
  stroke: currentColor !important;
  fill: none !important;
  stroke-width: 1.9 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

body.auth-visible .auth-player {
  position: absolute !important;
  left: 92px !important;
  bottom: 22px !important;
  width: min(100%, 360px) !important;
  padding: 16px 16px 12px !important;
  border-radius: 34px !important;
  background: linear-gradient(180deg, rgba(27, 18, 72, 0.70) 0%, rgba(10, 13, 38, 0.94) 100%) !important;
  border: 1px solid rgba(189, 164, 255, 0.16) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.12),
    0 34px 58px rgba(6, 8, 25, 0.48) !important;
}

body.auth-visible .auth-player-screen {
  aspect-ratio: 1.52 / 1 !important;
  border-radius: 26px !important;
  display: grid !important;
  place-items: center !important;
  background:
    radial-gradient(circle at 35% 18%, rgba(207, 182, 255, 0.55), transparent 38%),
    linear-gradient(180deg, rgba(165, 118, 255, 0.98), rgba(75, 36, 173, 0.86)) !important;
  border: 1px solid rgba(233, 221, 255, 0.24) !important;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.08),
    inset 0 -16px 28px rgba(10,12,32,0.18),
    0 12px 24px rgba(3, 5, 18, 0.26) !important;
}

body.auth-visible .auth-player-screen svg {
  width: 50px !important;
  height: 50px !important;
  fill: #ffffff !important;
  stroke: none !important;
}

body.auth-visible .auth-player-controls {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 8px !important;
  margin-top: 12px !important;
}

body.auth-visible .auth-player-controls span {
  display: block !important;
  height: 44px !important;
  border-radius: 12px !important;
  background: linear-gradient(180deg, rgba(168, 111, 255, 0.95), rgba(118, 71, 236, 0.92)) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.14) !important;
}

body.auth-visible .auth-player-wave {
  margin-top: 10px !important;
  border-radius: 12px !important;
  padding: 7px 10px !important;
  background: rgba(255,255,255,0.02) !important;
}

body.auth-visible .auth-player-wave svg {
  width: 100% !important;
  height: 28px !important;
}

body.auth-visible .auth-player-wave path {
  fill: none !important;
  stroke: #7d4fff !important;
  stroke-width: 2.4 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

body.auth-visible .auth-showcase-route {
  position: absolute !important;
  top: 84px !important;
  right: 6px !important;
  width: 170px !important;
  height: 310px !important;
}

body.auth-visible .auth-showcase-route::before,
body.auth-visible .auth-showcase-route::after {
  top: 156px !important;
  height: 88px !important;
}

body.auth-visible .auth-showcase-route::before {
  top: 62px !important;
  height: 102px !important;
}

body.auth-visible .auth-showcase-route::after {
  top: 157px !important;
  height: 94px !important;
}

body.auth-visible .route-node {
  position: absolute !important;
  right: 0 !important;
  width: 64px !important;
  height: 64px !important;
  border-radius: 18px !important;
  display: grid !important;
  place-items: center !important;
  background: linear-gradient(180deg, rgba(36, 30, 73, 0.92), rgba(22, 19, 54, 0.92)) !important;
  border: 1px solid rgba(164, 172, 214, 0.12) !important;
  box-shadow: 0 18px 36px rgba(6, 9, 24, 0.34) !important;
  color: #a975ff !important;
}

body.auth-visible .route-node-top {
  top: -6px !important;
  right: 66px !important;
  width: 54px !important;
  height: 54px !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

body.auth-visible .route-node-top svg {
  width: 46px !important;
  height: 46px !important;
  stroke: none !important;
  fill: #8f60ff !important;
  filter: drop-shadow(0 12px 24px rgba(129, 84, 255, 0.28)) !important;
}

body.auth-visible .route-node-youtube { top: 88px !important; }

body.auth-visible .route-node-tiktok svg {
  fill: #ffffff !important;
  stroke: none !important;
}

body.auth-visible .route-node-more svg {
  fill: #9d7cff !important;
  stroke: none !important;
}

body.auth-visible .auth-card {
  min-width: 0 !important;
  padding: 52px 56px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%) !important;
}

body.auth-visible .auth-card-head {
  margin-bottom: 34px !important;
}

body.auth-visible .auth-tabs {
  width: 100% !important;
  max-width: 490px !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 0 !important;
  border-bottom: 1px solid #dde3ee !important;
}

body.auth-visible .auth-tab {
  position: relative !important;
  min-height: 58px !important;
  margin: 0 !important;
  padding: 0 16px !important;
  border: none !important;
  background: transparent !important;
  color: #7a839b !important;
  font-size: 18px !important;
  line-height: 1 !important;
  font-weight: 650 !important;
  letter-spacing: -0.022em !important;
  cursor: pointer !important;
}

body.auth-visible .auth-tab::after {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: -1px !important;
  height: 3px !important;
  border-radius: 999px !important;
  background: transparent !important;
  transition: background .2s ease !important;
}

body.auth-visible .auth-tab.is-active {
  color: #6d45f5 !important;
}

body.auth-visible .auth-tab.is-active::after {
  background: #6d45f5 !important;
}

body.auth-visible .auth-status {
  margin: 0 0 18px !important;
  padding: 13px 15px !important;
  border: 1px solid #e8edf6 !important;
  border-radius: 15px !important;
  background: #fafcff !important;
  color: #586278 !important;
  font-size: 13px !important;
  line-height: 1.45 !important;
  font-weight: 520 !important;
}

body.auth-visible .auth-status.error,
body.auth-visible .auth-status.danger {
  border-color: #ffd7e0 !important;
  background: #fff7fa !important;
  color: #cc3253 !important;
}

body.auth-visible .auth-status.success {
  border-color: #d2efd8 !important;
  background: #f1fbf3 !important;
  color: #17783a !important;
}

body.auth-visible .auth-form {
  display: grid !important;
  gap: 18px !important;
  margin: 0 !important;
}

body.auth-visible .auth-form[hidden] {
  display: none !important;
}

body.auth-visible .auth-form-copy {
  margin-bottom: 8px !important;
}

body.auth-visible .auth-form-copy h2 {
  margin: 0 !important;
  color: #182137 !important;
  font-size: 34px !important;
  line-height: 1.1 !important;
  letter-spacing: -0.04em !important;
  font-weight: 690 !important;
}

body.auth-visible .auth-form-copy p {
  margin: 14px 0 0 !important;
  color: #7c86a0 !important;
  font-size: 17px !important;
  line-height: 1.5 !important;
  letter-spacing: -0.018em !important;
  font-weight: 470 !important;
}

body.auth-visible .auth-form .field {
  display: grid !important;
  gap: 12px !important;
  color: #1c2334 !important;
  font-size: 15px !important;
  line-height: 1.15 !important;
  font-weight: 620 !important;
}

body.auth-visible .auth-input-wrap {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  min-height: 62px !important;
  border: 1px solid #dde4ee !important;
  border-radius: 16px !important;
  background: #ffffff !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.88) !important;
  transition: border-color .2s ease, box-shadow .2s ease !important;
}

body.auth-visible .auth-input-wrap:focus-within {
  border-color: #c7b8ff !important;
  box-shadow: 0 0 0 4px rgba(109,69,245,0.08) !important;
}

body.auth-visible .auth-input-icon {
  width: 58px !important;
  height: 58px !important;
  display: grid !important;
  place-items: center !important;
  flex: 0 0 auto !important;
  color: #919ab0 !important;
}

body.auth-visible .auth-input-icon svg,
body.auth-visible .auth-password-toggle svg {
  width: 24px !important;
  height: 24px !important;
  stroke: currentColor !important;
  fill: none !important;
  stroke-width: 1.8 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

body.auth-visible .auth-input-wrap input {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  min-height: 60px !important;
  margin: 0 !important;
  padding: 0 16px 0 0 !important;
  border: none !important;
  background: transparent !important;
  color: #151d31 !important;
  font-size: 15px !important;
  line-height: 1.2 !important;
  font-weight: 520 !important;
  outline: none !important;
  box-shadow: none !important;
}

body.auth-visible .auth-input-wrap input::placeholder {
  color: #8e97ad !important;
  font-weight: 470 !important;
}

body.auth-visible .auth-input-wrap-password input {
  padding-right: 8px !important;
}

body.auth-visible .auth-password-toggle {
  width: 54px !important;
  height: 54px !important;
  margin: 0 4px 0 0 !important;
  display: grid !important;
  place-items: center !important;
  border: none !important;
  background: transparent !important;
  color: #8d96ab !important;
  cursor: pointer !important;
}

body.auth-visible .auth-password-toggle.is-open {
  color: #6d45f5 !important;
}

body.auth-visible .auth-forgot-link {
  justify-self: end !important;
  margin: -4px 0 2px !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  color: #6d45f5 !important;
  font-size: 14px !important;
  line-height: 1 !important;
  font-weight: 560 !important;
  cursor: pointer !important;
}

body.auth-visible .primary-action {
  min-height: 62px !important;
  border-radius: 16px !important;
  border: 1px solid #6d45f5 !important;
  background: linear-gradient(180deg, #764eff 0%, #673df0 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 18px 34px rgba(109, 69, 245, 0.18) !important;
  font-size: 17px !important;
  line-height: 1 !important;
  font-weight: 650 !important;
  letter-spacing: -0.018em !important;
}

body.auth-visible .primary-action-arrow {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 18px !important;
}

body.auth-visible .primary-action-arrow svg {
  width: 24px !important;
  height: 24px !important;
  stroke: currentColor !important;
  fill: none !important;
  stroke-width: 2 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

body.auth-visible .auth-social {
  margin-top: 6px !important;
}

body.auth-visible .auth-social-divider {
  position: relative !important;
  text-align: center !important;
  margin: 10px 0 18px !important;
}

body.auth-visible .auth-social-divider::before {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  top: 50% !important;
  border-top: 1px solid #e4e8f1 !important;
  transform: translateY(-50%) !important;
}

body.auth-visible .auth-social-divider span {
  position: relative !important;
  padding: 0 18px !important;
  background: #ffffff !important;
  color: #bcc2d0 !important;
  font-size: 13px !important;
  line-height: 1 !important;
  font-weight: 600 !important;
}

body.auth-visible .auth-social-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 14px !important;
}

body.auth-visible .auth-social-btn {
  min-height: 60px !important;
  padding: 0 18px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  border: 1px solid #dfe5ef !important;
  border-radius: 16px !important;
  background: #ffffff !important;
  color: #171f31 !important;
  font-size: 15px !important;
  line-height: 1 !important;
  font-weight: 600 !important;
  cursor: pointer !important;
}

body.auth-visible .auth-social-icon {
  width: 26px !important;
  height: 26px !important;
  display: grid !important;
  place-items: center !important;
}

body.auth-visible .auth-social-icon svg {
  width: 24px !important;
  height: 24px !important;
}

body.auth-visible .auth-social-google svg { fill: #000 !important; }
body.auth-visible .auth-social-telegram svg { fill: #2aabee !important; }
body.auth-visible .auth-social-apple svg { fill: #171b25 !important; }

body.auth-visible .auth-footer-copy {
  margin-top: 10px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  color: #7c86a0 !important;
  font-size: 15px !important;
  line-height: 1.3 !important;
  font-weight: 500 !important;
}

body.auth-visible .auth-inline-link {
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  color: #6d45f5 !important;
  font-size: inherit !important;
  line-height: inherit !important;
  font-weight: 650 !important;
  cursor: pointer !important;
}

body.auth-visible .auth-form small {
  margin-top: -6px !important;
  color: #7c86a0 !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
  font-weight: 480 !important;
}

@media (max-width: 1360px) {
  body.auth-visible .auth-shell {
    grid-template-columns: minmax(390px, 1fr) minmax(420px, 1fr) !important;
  }

  body.auth-visible .auth-showcase-copy h2 {
    font-size: 54px !important;
  }
}

@media (max-width: 1180px) {
  body.auth-visible .auth-gate {
    padding: 14px !important;
  }

  body.auth-visible .auth-shell {
    min-height: calc(100vh - 28px) !important;
    grid-template-columns: 1fr !important;
  }

  body.auth-visible .auth-showcase {
    min-height: 460px !important;
    padding: 34px 28px 26px !important;
  }

  body.auth-visible .auth-showcase-inner {
    max-width: 720px !important;
  }

  body.auth-visible .auth-showcase-copy h2 {
    font-size: 46px !important;
  }

  body.auth-visible .auth-showcase-stage {
    min-height: 320px !important;
  }

  body.auth-visible .auth-stage-rail {
    left: 0 !important;
    bottom: 10px !important;
  }

  body.auth-visible .auth-player {
    left: 92px !important;
    width: min(100%, 360px) !important;
  }

  body.auth-visible .auth-showcase-route {
    right: 0 !important;
    top: 56px !important;
  }

  body.auth-visible .auth-card {
    padding: 34px 28px 36px !important;
  }
}

@media (max-width: 760px) {
  body.auth-visible .auth-shell {
    min-height: auto !important;
    border-radius: 22px !important;
  }

  body.auth-visible .auth-showcase {
    padding: 24px 20px 18px !important;
    min-height: 390px !important;
  }

  body.auth-visible .auth-showcase-badge {
    width: 84px !important;
    height: 84px !important;
    border-radius: 24px !important;
  }

  body.auth-visible .auth-showcase-badge svg {
    width: 46px !important;
    height: 46px !important;
  }

  body.auth-visible .auth-showcase-copy h2 {
    font-size: 34px !important;
  }

  body.auth-visible .auth-showcase-copy p {
    max-width: 300px !important;
    font-size: 15px !important;
    margin-top: 16px !important;
  }

  body.auth-visible .auth-showcase-stage {
    min-height: 230px !important;
    margin-top: 22px !important;
  }

  body.auth-visible .auth-stage-rail {
    transform: scale(.9) !important;
    transform-origin: left bottom !important;
  }

  body.auth-visible .auth-player {
    left: 72px !important;
    bottom: 0 !important;
    width: min(100%, 250px) !important;
    padding: 14px !important;
    border-radius: 24px !important;
  }

  body.auth-visible .auth-player-screen {
    border-radius: 18px !important;
  }

  body.auth-visible .auth-player-controls span {
    height: 40px !important;
  }

  body.auth-visible .auth-showcase-route {
    display: none !important;
  }

  body.auth-visible .auth-card {
    padding: 24px 18px 26px !important;
  }

  body.auth-visible .auth-card-head {
    margin-bottom: 22px !important;
  }

  body.auth-visible .auth-tab {
    font-size: 16px !important;
    min-height: 52px !important;
  }

  body.auth-visible .auth-form-copy h2 {
    font-size: 28px !important;
  }

  body.auth-visible .auth-form-copy p {
    font-size: 15px !important;
    margin-top: 10px !important;
  }

  body.auth-visible .auth-input-wrap {
    min-height: 56px !important;
    border-radius: 14px !important;
  }

  body.auth-visible .auth-input-icon {
    width: 50px !important;
    height: 50px !important;
  }

  body.auth-visible .auth-social-grid {
    grid-template-columns: 1fr !important;
  }

  body.auth-visible .auth-social-btn {
    min-height: 56px !important;
    justify-content: flex-start !important;
  }
}

body.auth-visible .auth-showcase-badge::before,
body.auth-visible .auth-showcase-badge::after {
  content: "" !important;
  position: absolute !important;
  right: 100% !important;
  top: 46px !important;
  height: 4px !important;
  border-radius: 999px !important;
  background: linear-gradient(90deg, rgba(112, 72, 255, 0), rgba(112, 72, 255, 0.96)) !important;
}

body.auth-visible .auth-showcase-badge::before {
  width: 48px !important;
  margin-right: 8px !important;
}

body.auth-visible .auth-showcase-badge::after {
  width: 32px !important;
  margin-right: 60px !important;
}

body.auth-visible .auth-player::after {
  content: "" !important;
  position: absolute !important;
  left: 42px !important;
  right: 42px !important;
  bottom: -18px !important;
  height: 28px !important;
  border-radius: 50% !important;
  background: radial-gradient(circle, rgba(133, 81, 255, 0.42), rgba(133, 81, 255, 0.14) 52%, transparent 74%) !important;
  filter: blur(10px) !important;
  z-index: -1 !important;
}


/* v83: ровная страница входа/регистрации без плавающей старой auth-card */
body.auth-visible .auth-gate {
  padding: 28px !important;
}

body.auth-visible .auth-shell {
  width: min(100%, 1328px) !important;
  min-height: min(900px, calc(100vh - 56px)) !important;
  grid-template-columns: minmax(390px, 0.94fr) minmax(430px, 1fr) !important;
  gap: 0 !important;
  border-radius: 28px !important;
  overflow: hidden !important;
}

body.auth-visible .auth-showcase {
  padding: 0 !important;
  min-height: 100% !important;
  background: #0a0d32 !important;
}

body.auth-visible .auth-showcase::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  background: url('/static/assets/auth/auth-left-reference.png') center center / cover no-repeat !important;
  opacity: 1 !important;
}

body.auth-visible .auth-showcase-inner {
  display: none !important;
}

body.auth-visible .auth-card {
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  min-width: 0 !important;
  padding: 42px 52px !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
}

body.auth-visible .auth-card-head,
body.auth-visible .auth-form-card,
body.auth-visible .auth-status {
  width: min(100%, 440px) !important;
  max-width: 440px !important;
  box-sizing: border-box !important;
}

body.auth-visible .auth-card-head {
  margin-bottom: 34px !important;
}

body.auth-visible .auth-tabs {
  width: 100% !important;
  max-width: none !important;
}

body.auth-visible .auth-form-card {
  margin: 0 !important;
}

body.auth-visible .auth-social-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

body.auth-visible .auth-social-btn {
  padding: 0 14px !important;
  white-space: nowrap !important;
}

@media (max-width: 1200px) {
  body.auth-visible .auth-shell {
    width: min(100%, 1180px) !important;
    min-height: min(840px, calc(100vh - 40px)) !important;
    grid-template-columns: minmax(340px, 0.9fr) minmax(400px, 1fr) !important;
  }

  body.auth-visible .auth-card {
    padding: 34px 38px !important;
  }
}

@media (max-width: 760px) {
  body.auth-visible .auth-card {
    width: 100% !important;
    height: auto !important;
    min-height: auto !important;
    padding: 24px 18px 26px !important;
  }

  body.auth-visible .auth-card-head,
  body.auth-visible .auth-form-card,
  body.auth-visible .auth-status {
    width: 100% !important;
    max-width: none !important;
  }
}


/* v84: точная подгонка левой картинки, читаемые подписи полей и формы восстановления */
body.auth-visible .auth-showcase {
  overflow: hidden !important;
}

body.auth-visible .auth-showcase::before {
  inset: -26px !important;
  background: url('/static/assets/auth/auth-left-reference.png') center center / cover no-repeat !important;
}

body.auth-visible .auth-form .field > span:first-child {
  color: #53617a !important;
  opacity: 1 !important;
  font-size: 14px !important;
  line-height: 1.15 !important;
  font-weight: 680 !important;
  letter-spacing: -0.01em !important;
}

body.auth-visible .auth-form .field:focus-within > span:first-child {
  color: #6d45f5 !important;
}

body.auth-visible .auth-forgot-link:hover,
body.auth-visible .auth-inline-link:hover {
  color: #5530df !important;
  text-decoration: none !important;
}

body.auth-visible .auth-form-card#forgotPasswordForm,
body.auth-visible .auth-form-card#resetPasswordForm {
  gap: 18px !important;
}

body.auth-visible .auth-form-card#forgotPasswordForm .auth-form-copy,
body.auth-visible .auth-form-card#resetPasswordForm .auth-form-copy {
  margin-bottom: 10px !important;
}


/* v218: auth page restored from old site structure/design */
body.auth-visible .auth-gate {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

body.auth-visible .auth-tester-card-v218 {
  margin-top: -2px !important;
  padding: 12px 14px !important;
  display: grid !important;
  gap: 5px !important;
  border: 1px solid #e7ddff !important;
  border-radius: 16px !important;
  background: linear-gradient(180deg, #fbfaff 0%, #f5f1ff 100%) !important;
}

body.auth-visible .auth-tester-card-v218 span {
  color: #7c86a0 !important;
  font-size: 12px !important;
  font-weight: 720 !important;
}

body.auth-visible .auth-tester-card-v218 button {
  width: max-content !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #6d45f5 !important;
  font: inherit !important;
  font-size: 13px !important;
  line-height: 18px !important;
  font-weight: 800 !important;
  text-align: left !important;
  cursor: pointer !important;
}

body.auth-visible .auth-social-btn {
  cursor: default !important;
}

body.auth-visible .auth-card .primary-action,
body.auth-visible .auth-card .auth-tab,
body.auth-visible .auth-card .auth-inline-link,
body.auth-visible .auth-card .auth-password-toggle,
body.auth-visible .auth-card .auth-forgot-link {
  font-family: inherit !important;
}


/* v219: auth page corrections */
body.auth-visible .auth-showcase {
  overflow: hidden !important;
}

body.auth-visible .auth-showcase-inner {
  min-height: 760px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  opacity: 1 !important;
  visibility: visible !important;
}

body.auth-visible .auth-showcase-badge {
  flex: 0 0 auto !important;
  opacity: 1 !important;
  visibility: visible !important;
}

body.auth-visible .auth-showcase-copy {
  margin-top: 30px !important;
  opacity: 1 !important;
  visibility: visible !important;
}

body.auth-visible .auth-showcase-kicker-v219 {
  margin: 0 0 18px !important;
  color: #c8b6ff !important;
  font-size: 12px !important;
  line-height: 1 !important;
  font-weight: 900 !important;
  letter-spacing: .13em !important;
  text-transform: uppercase !important;
}

body.auth-visible .auth-showcase-copy h2 {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

body.auth-visible .auth-showcase-copy p {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

body.auth-visible .auth-showcase-visual-v219 {
  position: relative !important;
  min-height: 230px !important;
  margin-top: 42px !important;
  display: block !important;
}

body.auth-visible .auth-visual-card-v219 {
  position: absolute !important;
  border: 1px solid rgba(197, 184, 255, .18) !important;
  background:
    radial-gradient(circle at 18% 10%, rgba(255,255,255,.12), transparent 38%),
    linear-gradient(180deg, rgba(40, 32, 92, .82), rgba(15, 16, 50, .92)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.11),
    0 28px 54px rgba(5, 8, 25, .40) !important;
  backdrop-filter: blur(14px) !important;
}

body.auth-visible .auth-visual-card-v219--main {
  left: 0 !important;
  bottom: 0 !important;
  width: 370px !important;
  min-height: 154px !important;
  padding: 24px !important;
  border-radius: 30px !important;
}

body.auth-visible .auth-visual-card-v219--side {
  right: 28px !important;
  top: 10px !important;
  width: 210px !important;
  min-height: 94px !important;
  padding: 20px !important;
  border-radius: 24px !important;
}

body.auth-visible .auth-visual-label-v219,
body.auth-visible .auth-visual-card-v219 span {
  display: block !important;
  color: rgba(236, 239, 255, .68) !important;
  font-size: 13px !important;
  line-height: 18px !important;
  font-weight: 650 !important;
}

body.auth-visible .auth-visual-card-v219 b {
  display: block !important;
  max-width: 270px !important;
  margin-top: 10px !important;
  color: #ffffff !important;
  font-size: 22px !important;
  line-height: 1.18 !important;
  letter-spacing: -.03em !important;
  font-weight: 800 !important;
}

body.auth-visible .auth-visual-card-v219--side b {
  font-size: 17px !important;
}

body.auth-visible .auth-visual-card-v219 i {
  display: block !important;
  width: 78% !important;
  height: 9px !important;
  margin-top: 22px !important;
  border-radius: 999px !important;
  background: linear-gradient(90deg, #50e5ff 0%, #7657ff 100%) !important;
  box-shadow: 0 0 24px rgba(109, 69, 245, .32) !important;
}

body.auth-visible .auth-showcase-stage {
  display: none !important;
}

/* Fix old auth inputs after moving to the new frontend structure */
body.auth-visible .auth-input-wrap {
  width: 100% !important;
  min-height: 64px !important;
  display: grid !important;
  grid-template-columns: 58px minmax(0, 1fr) 58px !important;
  align-items: stretch !important;
  overflow: hidden !important;
  border: 1px solid #dde5f0 !important;
  border-radius: 17px !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

body.auth-visible .auth-input-wrap:focus-within {
  border-color: #c7b4ff !important;
  box-shadow: 0 0 0 4px rgba(109, 69, 245, .13) !important;
}

body.auth-visible .auth-input-icon {
  width: 58px !important;
  min-width: 58px !important;
  height: 100% !important;
  display: grid !important;
  place-items: center !important;
  background: #ffffff !important;
  color: #8b95a8 !important;
  border-right: 1px solid #eef2f8 !important;
}

body.auth-visible .auth-input-wrap input {
  grid-column: 2 !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 100% !important;
  min-height: 62px !important;
  margin: 0 !important;
  padding: 0 16px !important;
  border: 0 !important;
  outline: none !important;
  background: #ffffff !important;
  color: #151d32 !important;
  font-size: 15px !important;
  line-height: 1 !important;
  font-weight: 620 !important;
  box-shadow: none !important;
}

body.auth-visible .auth-input-wrap input:-webkit-autofill,
body.auth-visible .auth-input-wrap input:-webkit-autofill:hover,
body.auth-visible .auth-input-wrap input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
  -webkit-text-fill-color: #151d32 !important;
}

body.auth-visible .auth-input-wrap:not(.auth-input-wrap-password) {
  grid-template-columns: 58px minmax(0, 1fr) !important;
}

body.auth-visible .auth-password-toggle {
  grid-column: 3 !important;
  width: 58px !important;
  min-width: 58px !important;
  height: 100% !important;
  min-height: 62px !important;
  margin: 0 !important;
  padding: 0 !important;
  display: grid !important;
  place-items: center !important;
  border: 0 !important;
  border-left: 1px solid #eef2f8 !important;
  border-radius: 0 !important;
  background: #ffffff !important;
  color: #8b95a8 !important;
}

body.auth-visible .auth-status.info {
  border-color: #ded3ff !important;
  background: linear-gradient(180deg, #fbf8ff 0%, #f4efff 100%) !important;
  color: #6d45f5 !important;
  box-shadow: 0 12px 28px rgba(109, 69, 245, .08) !important;
}

body.auth-visible .auth-tester-card-v218 {
  display: none !important;
}

@media (max-width: 980px) {
  body.auth-visible .auth-showcase-visual-v219 {
    display: none !important;
  }
}


/* v220: old-site auth left image and real forgot-password state */
body.auth-visible .auth-showcase.auth-showcase--image-v220 {
  padding: 0 !important;
  min-height: 100% !important;
  overflow: hidden !important;
  background: #0a0d32 !important;
}

body.auth-visible .auth-showcase.auth-showcase--image-v220::before,
body.auth-visible .auth-showcase.auth-showcase--image-v220::after {
  display: none !important;
}

body.auth-visible .auth-left-image-v220 {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
}

body.auth-visible .auth-showcase.auth-showcase--image-v220 .auth-showcase-inner {
  display: none !important;
}

body.auth-visible #forgotForm[hidden] {
  display: none !important;
}

body.auth-visible #forgotForm {
  display: grid !important;
}

body.auth-visible .auth-status.info {
  display: block !important;
  border-color: #ded3ff !important;
  background: linear-gradient(180deg, #fbf8ff 0%, #f4efff 100%) !important;
  color: #6d45f5 !important;
  box-shadow: 0 12px 28px rgba(109, 69, 245, .08) !important;
}


/* v221: reset password page */
body.auth-visible .reset-password-page-v221 .auth-card {
  align-self: center !important;
}

body.auth-visible .reset-password-page-v221 .auth-status.success {
  border-color: #bbf7d0 !important;
  background: #f0fdf4 !important;
  color: #15803d !important;
}

body.auth-visible .reset-password-page-v221 .auth-status.error {
  border-color: #fecdd3 !important;
  background: #fff1f2 !important;
  color: #e11d48 !important;
}

body.auth-visible .reset-password-page-v221 .primary-action:disabled,
body.auth-visible .reset-password-page-v221 input:disabled {
  opacity: .62 !important;
  cursor: not-allowed !important;
}


/* v222: profile data isolation status */
.profile-scope-grid-v222 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.profile-scope-grid-v222 > div {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid #e3e8f3;
  border-radius: 16px;
  background: #f8faff;
}

.profile-scope-grid-v222 span {
  color: #66758f;
  font-size: 12px;
  line-height: 16px;
  font-weight: 800;
}

.profile-scope-grid-v222 strong {
  color: #071127;
  font-size: 14px;
  line-height: 18px;
  overflow-wrap: anywhere;
}

.profile-scope-grid-v222 small {
  color: #7c3aed;
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
}


/* v224: user-facing two-factor security settings */
.profile-2fa-panel-v224,
.profile-2fa-setup-v224,
.profile-2fa-enable-form-v224,
.profile-2fa-disable-form-v224 {
  display: grid;
  gap: 14px;
}

.profile-2fa-status-v224 {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid #e3e8f3;
  border-radius: 16px;
  background: #f8faff;
}

.profile-2fa-status-v224 span,
.profile-2fa-secret-v224 span {
  color: #66758f;
  font-size: 12px;
  line-height: 16px;
  font-weight: 800;
}

.profile-2fa-status-v224 strong {
  color: #071127;
  font-size: 16px;
  line-height: 20px;
}

.profile-2fa-start-v224 {
  justify-self: start;
  min-height: 42px;
  border: 0;
  border-radius: 14px;
  padding: 0 18px;
  background: #7c3aed;
  color: #ffffff;
  font-weight: 900;
}

.profile-2fa-secret-v224 {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid #ddd6fe;
  border-radius: 16px;
  background: #f7f4ff;
}

.profile-2fa-secret-v224[hidden],
.profile-2fa-enable-form-v224[hidden],
.profile-2fa-disable-form-v224[hidden],
.profile-2fa-setup-v224[hidden] {
  display: none !important;
}

.profile-2fa-secret-v224 code {
  display: block;
  overflow-wrap: anywhere;
  color: #111827;
  font-size: 14px;
  line-height: 20px;
  font-weight: 900;
}

.profile-2fa-secret-v224 small {
  color: #6b7280;
  line-height: 18px;
}


/* v225: two-factor QR setup */
.profile-2fa-secret-v224 {
  grid-template-columns: 170px minmax(0, 1fr);
  align-items: center;
}

.profile-2fa-qr-v225 {
  width: 154px;
  height: 154px;
  display: grid;
  place-items: center;
  padding: 10px;
  border: 1px solid #e4ddff;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(15, 23, 42, .06);
}

.profile-2fa-qr-v225 img {
  width: 132px;
  height: 132px;
  display: block;
  image-rendering: pixelated;
}

.profile-2fa-manual-v225 {
  display: grid;
  gap: 8px;
}

.profile-2fa-enable-form-v224 label,
.profile-2fa-disable-form-v224 label {
  display: grid;
  gap: 8px;
}

.profile-2fa-enable-form-v224 label span,
.profile-2fa-disable-form-v224 label span {
  color: #172033;
  font-size: 13px;
  font-weight: 800;
}

.profile-2fa-enable-form-v224 input,
.profile-2fa-disable-form-v224 input {
  min-height: 44px;
  border: 1px solid #dbe4f0;
  border-radius: 14px;
  padding: 0 14px;
  background: #ffffff;
  color: #071127;
  font: inherit;
}

.profile-2fa-enable-form-v224 input:focus,
.profile-2fa-disable-form-v224 input:focus {
  border-color: #c7b4ff;
  outline: none;
  box-shadow: 0 0 0 4px rgba(124, 58, 237, .12);
}

.profile-2fa-enable-form-v224 button,
.profile-2fa-disable-form-v224 button {
  justify-self: start;
  min-height: 42px;
  border: 0;
  border-radius: 14px;
  padding: 0 18px;
  background: #7c3aed;
  color: #ffffff;
  font-weight: 900;
}

.profile-2fa-disable-form-v224 button {
  background: #ef4444;
}

@media (max-width: 760px) {
  .profile-2fa-secret-v224 {
    grid-template-columns: 1fr;
  }
}


/* v226: corrected scannable 2FA QR */
.profile-2fa-secret-v224 {
  grid-template-columns: 270px minmax(0, 1fr);
}

.profile-2fa-qr-v225 {
  width: 246px !important;
  height: 246px !important;
  padding: 14px !important;
  border-radius: 22px !important;
}

.profile-2fa-qr-v225 img {
  width: 218px !important;
  height: 218px !important;
}

.profile-2fa-qr-note-v226 {
  grid-column: 1 / -1;
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid #dbeafe;
  border-radius: 14px;
  background: #eff6ff;
}

.profile-2fa-qr-note-v226 b {
  color: #1d4ed8;
  font-size: 13px;
  line-height: 18px;
}

.profile-2fa-qr-note-v226 span {
  color: #475569;
  font-size: 13px;
  line-height: 18px;
}

@media (max-width: 760px) {
  .profile-2fa-secret-v224 {
    grid-template-columns: 1fr;
  }

  .profile-2fa-qr-v225 {
    width: 100% !important;
    max-width: 246px !important;
  }
}


/* v227: clean 2FA QR layout and remove user-facing technical note */
.profile-twofactor-v224 {
  grid-template-columns: 1fr !important;
}

.profile-twofactor-v224 > div:first-child {
  max-width: 720px;
}

.profile-twofactor-v224 .profile-2fa-panel-v224 {
  width: 100%;
}

.profile-twofactor-v224 .profile-2fa-secret-v224 {
  width: 100%;
  grid-template-columns: 300px minmax(0, 1fr) !important;
  align-items: center;
  box-sizing: border-box;
}

.profile-twofactor-v224 .profile-2fa-qr-v225 {
  width: 270px !important;
  height: 270px !important;
  margin: 0;
}

.profile-twofactor-v224 .profile-2fa-qr-v225 img {
  width: 238px !important;
  height: 238px !important;
}

.profile-2fa-qr-note-v226 {
  display: none !important;
}

@media (max-width: 760px) {
  .profile-twofactor-v224 .profile-2fa-secret-v224 {
    grid-template-columns: 1fr !important;
  }

  .profile-twofactor-v224 .profile-2fa-qr-v225 {
    width: 100% !important;
    max-width: 270px !important;
  }
}


/* v231 Admin users page */
.admin-users-page-v231 {
  display: grid;
  gap: 16px;
}

.admin-users-toolbar-v231,
.admin-users-table-card-v231,
.admin-users-denied-v231 {
  border: 1px solid #dfe6f2;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.04);
}

.admin-users-toolbar-v231 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 22px;
}

.admin-users-toolbar-v231 h2,
.admin-users-denied-v231 h2 {
  margin: 0 0 6px;
  color: #071127;
  font-size: 22px;
  line-height: 1.2;
}

.admin-users-toolbar-v231 p,
.admin-users-denied-v231 p {
  margin: 0;
  color: #60708a;
  line-height: 1.5;
}

.admin-users-refresh-v231,
.admin-users-actions-v231 button {
  min-height: 40px;
  border: 0;
  border-radius: 13px;
  padding: 0 16px;
  background: #7c3aed;
  color: #ffffff;
  font-weight: 900;
}

.admin-users-refresh-v231:disabled,
.admin-users-actions-v231 button:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.admin-users-stats-v231 {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.admin-users-stat-v231 {
  display: grid;
  gap: 8px;
  min-height: 88px;
  border: 1px solid #e3e8f3;
  border-radius: 18px;
  background: #ffffff;
  padding: 16px;
}

.admin-users-stat-v231 span {
  color: #66758f;
  font-size: 12px;
  line-height: 16px;
  font-weight: 800;
}

.admin-users-stat-v231 strong {
  color: #071127;
  font-size: 28px;
  line-height: 1;
  font-weight: 900;
}

.admin-users-table-card-v231 {
  overflow: hidden;
}

.admin-users-table-v231 {
  min-width: 980px;
}

.admin-users-head-v231,
.admin-users-row-v231 {
  display: grid;
  grid-template-columns: minmax(260px, 1.5fr) 130px 150px 90px 86px 160px 120px;
  gap: 12px;
  align-items: center;
}

.admin-users-head-v231 {
  padding: 14px 18px;
  border-bottom: 1px solid #edf1f7;
  background: #f8faff;
  color: #66758f;
  font-size: 12px;
  font-weight: 900;
}

.admin-users-row-v231 {
  padding: 14px 18px;
  border-bottom: 1px solid #edf1f7;
}

.admin-users-row-v231:last-child {
  border-bottom: 0;
}

.admin-user-main-v231 {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.admin-user-main-v231 strong {
  color: #071127;
  font-size: 14px;
  line-height: 18px;
  overflow-wrap: anywhere;
}

.admin-user-main-v231 span,
.admin-user-main-v231 small,
.admin-users-date-v231 {
  color: #66758f;
  font-size: 12px;
  line-height: 16px;
  overflow-wrap: anywhere;
}

.admin-users-row-v231 select {
  width: 100%;
  min-height: 38px;
  border: 1px solid #dbe4f0;
  border-radius: 12px;
  padding: 0 10px;
  background: #ffffff;
  color: #071127;
  font-weight: 800;
}

.admin-users-row-v231 select:disabled {
  opacity: .7;
  background: #f8fafc;
}

.admin-users-pill-v231 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid #e3e8f3;
  border-radius: 999px;
  background: #f8fafc;
  color: #526079;
  font-size: 12px;
  font-weight: 800;
}

.admin-users-pill-v231.is-ok {
  border-color: #ddd6fe;
  background: #f5f1ff;
  color: #7c3aed;
}

.admin-users-status-v231 {
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 18px;
  font-weight: 800;
}

.admin-users-status-v231[hidden] {
  display: none !important;
}

.admin-users-status-v231--info {
  border: 1px solid #dbeafe;
  background: #eff6ff;
  color: #1d4ed8;
}

.admin-users-status-v231--success {
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
  color: #15803d;
}

.admin-users-status-v231--error {
  border: 1px solid #fecdd3;
  background: #fff1f2;
  color: #e11d48;
}

.admin-users-empty-v231,
.admin-users-denied-v231 {
  padding: 24px;
}

@media (max-width: 1320px) {
  .admin-users-stats-v231 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-users-table-card-v231 {
    overflow-x: auto;
  }
}




/* v233 Admin users compact redesign */
.admin-users-page-v233 {
  display: grid;
  gap: 12px;
}

.admin-users-hero-v233,
.admin-users-workspace-v233,
.admin-users-denied-v233 {
  border: 1px solid #dfe6f2;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.035);
}

.admin-users-hero-v233 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
}

.admin-users-hero-main-v233 {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.admin-users-hero-icon-v233 {
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  display: grid;
  place-items: center;
  border: 1px solid #e6ddff;
  border-radius: 16px;
  background: linear-gradient(180deg, #fbf9ff 0%, #f3eeff 100%);
}

.admin-users-hero-icon-v233 img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.admin-users-hero-v233 h2,
.admin-users-denied-v233 h2 {
  margin: 0 0 4px;
  color: #071127;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 900;
}

.admin-users-hero-v233 p,
.admin-users-denied-v233 p,
.admin-users-details-empty-v233 p {
  margin: 0;
  color: #66758f;
  font-size: 13px;
  line-height: 1.45;
}

.admin-users-refresh-v233,
.admin-user-actions-v233 button {
  min-height: 38px;
  border: 0;
  border-radius: 14px;
  padding: 0 16px;
  background: linear-gradient(135deg, #7c3aed 0%, #6d45f5 100%);
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(124, 58, 237, 0.18);
}

.admin-users-refresh-v233:hover,
.admin-user-actions-v233 button:hover {
  filter: brightness(0.98);
}

.admin-users-refresh-v233:disabled,
.admin-user-actions-v233 button:disabled {
  opacity: .48;
  cursor: not-allowed;
  box-shadow: none;
}

.admin-users-stats-v233 {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.admin-users-stat-v233 {
  min-height: 74px;
  display: grid;
  gap: 4px;
  align-content: center;
  border: 1px solid #e5ebf4;
  border-radius: 18px;
  background: #ffffff;
  padding: 12px 14px;
}

.admin-users-stat-v233 span {
  color: #66758f;
  font-size: 11px;
  font-weight: 850;
}

.admin-users-stat-v233 strong {
  color: #071127;
  font-size: 22px;
  line-height: 1;
  font-weight: 950;
}

.admin-users-workspace-v233 {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  min-height: 560px;
  overflow: hidden;
}

.admin-users-list-v233 {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 14px;
  border-right: 1px solid #edf1f7;
  background: #fafbff;
  overflow: auto;
}

.admin-user-card-v233 {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  grid-template-areas:
    "avatar main"
    "avatar badges";
  gap: 6px 10px;
  width: 100%;
  border: 1px solid #e5ebf4;
  border-radius: 16px;
  background: #ffffff;
  padding: 10px;
  text-align: left;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.admin-user-card-v233:hover {
  border-color: #d8ccff;
  box-shadow: 0 10px 24px rgba(124, 58, 237, .08);
  transform: translateY(-1px);
}

.admin-user-card-v233.is-selected {
  border-color: #c9b6ff;
  background: #fcfaff;
  box-shadow: 0 12px 28px rgba(124, 58, 237, .09);
}

.admin-user-avatar-v233 {
  grid-area: avatar;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  justify-self: center;
  align-self: center;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.12) 0%, rgba(34, 211, 238, 0.18) 100%);
  border: 1px solid rgba(124, 58, 237, 0.16);
}

.admin-user-avatar-v233 img {
  width: 36px;
  height: 36px;
  display: block;
  object-fit: contain;
  object-position: center center;
  margin: 0;
  opacity: 0.96;
}

.admin-user-avatar-v233--large {
  width: 62px;
  height: 62px;
  border-radius: 18px;
}

.admin-user-avatar-v233--large img {
  width: 46px;
  height: 46px;
}

.admin-user-card-main-v233 {
  grid-area: main;
  display: grid;
  gap: 2px;
  min-width: 0;
}

.admin-user-card-main-v233 strong,
.admin-user-summary-copy-v233 h3 {
  color: #071127;
  font-size: 15px;
  line-height: 1.25;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.admin-user-card-main-v233 strong,
.admin-user-card-main-v233 small,
.admin-user-summary-copy-v233 p,
.admin-user-info-grid-v233 strong {
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-user-card-main-v233 small,
.admin-user-summary-copy-v233 p {
  color: #66758f;
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
}

.admin-user-card-badges-v233,
.admin-user-head-badges-v233 {
  grid-area: badges;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-user-card-badges-v233 i,
.admin-user-state-v233,
.admin-user-pill-v233 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 9px;
  border: 1px solid #e5ebf4;
  border-radius: 999px;
  background: #f8fafc;
  color: #55637c;
  font-size: 11px;
  line-height: 1;
  font-style: normal;
  font-weight: 850;
}

.admin-user-card-badges-v233 i.is-active,
.admin-user-state-v233.is-active {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #15803d;
}

.admin-user-card-badges-v233 i.is-blocked,
.admin-user-state-v233.is-blocked {
  border-color: #fecdd3;
  background: #fff1f2;
  color: #e11d48;
}

.admin-users-details-v233 {
  min-width: 0;
  padding: 16px;
  overflow: auto;
}

.admin-users-details-empty-v233,
.admin-users-denied-v233,
.admin-users-empty-v233 {
  padding: 18px;
}

.admin-users-details-empty-v233 h3 {
  margin: 0 0 6px;
  color: #071127;
  font-size: 17px;
}

.admin-user-details-head-v233 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.admin-user-summary-v233 {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.admin-user-summary-copy-v233 {
  min-width: 0;
}

.admin-user-summary-copy-v233 h3 {
  margin: 0 0 4px;
}

.admin-user-summary-copy-v233 p {
  margin: 0;
}

.admin-user-head-badges-v233 {
  flex: 0 0 auto;
}

.admin-user-info-grid-v233 {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.admin-user-info-grid-v233 div {
  display: grid;
  gap: 4px;
  min-height: 62px;
  border: 1px solid #e7edf6;
  border-radius: 14px;
  background: #fafcff;
  padding: 10px;
}

.admin-user-info-grid-v233 span {
  color: #66758f;
  font-size: 11px;
  font-weight: 850;
}

.admin-user-info-grid-v233 strong {
  color: #071127;
  font-size: 12px;
  line-height: 1.35;
  white-space: nowrap;
}

.admin-user-edit-form-v233 {
  display: grid;
  gap: 10px;
}

.admin-user-form-section-v233 {
  display: grid;
  gap: 10px;
  border: 1px solid #e7edf6;
  border-radius: 18px;
  background: #ffffff;
  padding: 14px 16px;
}

.admin-user-section-head-v233 {
  display: grid;
  gap: 4px;
}

.admin-user-form-section-v233 h4 {
  margin: 0;
  color: #071127;
  font-size: 15px;
  line-height: 1.2;
}

.admin-user-form-section-v233 p {
  margin: 0;
  color: #66758f;
  font-size: 12px;
  line-height: 1.4;
}

.admin-user-fields-v233 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.admin-user-edit-form-v233 label {
  display: grid;
  gap: 6px;
}

.admin-user-edit-form-v233 label span {
  color: #172033;
  font-size: 12px;
  font-weight: 850;
}

.admin-user-edit-form-v233 input,
.admin-user-edit-form-v233 select {
  width: 100%;
  min-height: 40px;
  border: 1px solid #dbe4f0;
  border-radius: 13px;
  padding: 0 13px;
  background: #ffffff;
  color: #071127;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
}

.admin-user-edit-form-v233 input:focus,
.admin-user-edit-form-v233 select:focus {
  border-color: #c7b4ff;
  outline: none;
  box-shadow: 0 0 0 4px rgba(124, 58, 237, .10);
}

.admin-user-edit-form-v233 input:disabled,
.admin-user-edit-form-v233 select:disabled {
  opacity: .68;
  background: #f8fafc;
}

.admin-user-actions-v233 {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-user-actions-v233 small {
  color: #66758f;
  font-size: 12px;
  font-weight: 700;
}

.admin-users-status-v233 {
  margin: 0;
  padding: 10px 13px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 18px;
  font-weight: 800;
}

.admin-users-status-v233[hidden] {
  display: none !important;
}

.admin-users-status-v233--info {
  border: 1px solid #dbeafe;
  background: #eff6ff;
  color: #1d4ed8;
}

.admin-users-status-v233--success {
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
  color: #15803d;
}

.admin-users-status-v233--error {
  border: 1px solid #fecdd3;
  background: #fff1f2;
  color: #e11d48;
}

@media (max-width: 1320px) {
  .admin-users-stats-v233,
  .admin-user-info-grid-v233 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .admin-users-list-v233 {
    border-right: 0;
    border-bottom: 1px solid #edf1f7;
    max-height: 360px;
  }
}

@media (max-width: 820px) {
  .admin-users-hero-v233,
  .admin-user-details-head-v233,
  .admin-user-fields-v233 {
    display: grid;
    grid-template-columns: 1fr;
  }

  .admin-users-stats-v233,
  .admin-user-info-grid-v233 {
    grid-template-columns: 1fr;
  }

  .admin-users-hero-main-v233,
  .admin-user-summary-v233 {
    align-items: flex-start;
  }
}

/* Statistics page v1 */
.statistics-page-new {
  display: grid;
  gap: 18px;
  width: 100%;
}

.statistics-hero-new {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid #dfe6f1;
  border-radius: 24px;
  background:
    radial-gradient(circle at 6% 15%, rgba(124, 58, 237, 0.12) 0, rgba(124, 58, 237, 0) 34%),
    linear-gradient(135deg, #ffffff 0%, #fbfaff 56%, #f8fafc 100%);
  box-shadow: 0 18px 55px rgba(15, 23, 42, 0.06);
  padding: 22px 24px;
}

.statistics-hero-copy-new {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.statistics-eyebrow-new {
  width: fit-content;
  border: 1px solid rgba(124, 58, 237, 0.16);
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.08);
  color: #6d45f5;
  padding: 6px 10px;
  font-size: 11px;
  line-height: 1;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.statistics-hero-copy-new h2 {
  margin: 0;
  color: #0f172a;
  font-size: 28px;
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -0.035em;
}

.statistics-hero-copy-new p {
  max-width: 760px;
  margin: 0;
  color: #53627a;
  font-size: 14px;
  line-height: 1.55;
}

.statistics-hero-actions-new {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.statistics-period-select-new {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.statistics-period-select-new select {
  min-width: 142px;
  min-height: 42px;
  appearance: none;
  border: 1px solid #dfe6f1;
  border-radius: 14px;
  background: #ffffff;
  color: #172033;
  padding: 0 34px 0 14px;
  outline: none;
  font-size: 12.5px;
  font-weight: 780;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.04);
}

.statistics-period-select-new select:focus {
  border-color: rgba(124, 58, 237, 0.42);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.10);
}

.statistics-period-arrow-new {
  position: absolute;
  right: 13px;
  top: 50%;
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  color: #6d45f5;
  pointer-events: none;
  transform: translateY(-50%);
}

.statistics-period-arrow-new svg {
  width: 16px;
  height: 16px;
  display: block;
}

.statistics-soft-button-new,
.statistics-primary-button-new {
  min-height: 42px;
  border-radius: 14px;
  padding: 0 15px;
  font-size: 12.6px;
  font-weight: 830;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.statistics-soft-button-new {
  border: 1px solid #dfe6f1;
  background: rgba(255, 255, 255, 0.86);
  color: #25324a;
}

.statistics-primary-button-new {
  border: 1px solid transparent;
  background: linear-gradient(135deg, #8b5cf6 0%, #6d45f5 100%);
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(109, 69, 245, 0.22);
}

.statistics-soft-button-new:hover,
.statistics-primary-button-new:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(109, 69, 245, 0.12);
}

.statistics-dashboard-new,
.statistics-loading-shell-new {
  display: grid;
  gap: 18px;
}

.statistics-metrics-grid-new {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.statistics-metric-card-new {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 104px;
  border: 1px solid #dfe6f1;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.045);
  padding: 16px;
  overflow: hidden;
  position: relative;
  cursor: default;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease,
    background 0.18s ease;
}

.statistics-metric-card-new:hover {
  border-color: rgba(124, 92, 255, 0.34);
  background:
    radial-gradient(circle at 18% 50%, rgba(124, 92, 255, 0.08), transparent 42%),
    #ffffff;
  box-shadow:
    0 0 0 4px rgba(124, 92, 255, 0.055),
    0 14px 34px rgba(82, 63, 180, 0.13);
  transform: translateY(-1px);
}

.statistics-metric-card-new:hover .statistics-metric-icon-new {
  transform: scale(1.04);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.88),
    0 10px 22px rgba(109, 69, 245, 0.12);
}

.statistics-metric-card-new::after {
  content: '';
  position: absolute;
  inset: auto -20px -42px auto;
  width: 100px;
  height: 100px;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.08);
  pointer-events: none;
}

.statistics-metric-card-new--green::after { background: rgba(34, 197, 94, 0.09); }
.statistics-metric-card-new--blue::after { background: rgba(56, 189, 248, 0.11); }
.statistics-metric-card-new--amber::after { background: rgba(245, 158, 11, 0.10); }
.statistics-metric-card-new--cyan::after { background: rgba(14, 165, 233, 0.10); }

.statistics-metric-icon-new {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  background: linear-gradient(135deg, #f3e8ff 0%, #eef2ff 100%);
  color: #6d45f5;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.88);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.statistics-metric-card-new--green .statistics-metric-icon-new { background: linear-gradient(135deg, #dcfce7 0%, #f0fdf4 100%); color: #16a34a; }
.statistics-metric-card-new--blue .statistics-metric-icon-new { background: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 100%); color: #0284c7; }
.statistics-metric-card-new--amber .statistics-metric-icon-new { background: linear-gradient(135deg, #fef3c7 0%, #fffbeb 100%); color: #d97706; }
.statistics-metric-card-new--cyan .statistics-metric-icon-new { background: linear-gradient(135deg, #cffafe 0%, #ecfeff 100%); color: #0891b2; }

.statistics-metric-icon-new svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.statistics-metric-copy-new {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.statistics-metric-copy-new span {
  color: #64748b;
  font-size: 11px;
  line-height: 1.1;
  font-weight: 880;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

.statistics-metric-copy-new strong {
  color: #07142f;
  font-size: 25px;
  line-height: 1;
  font-weight: 930;
  letter-spacing: -0.04em;
}

.statistics-metric-copy-new p {
  margin: 0;
  color: #6b7890;
  font-size: 12px;
  line-height: 1.25;
  font-weight: 520;
}

.statistics-main-grid-new {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(360px, 0.75fr);
  gap: 16px;
}

.statistics-secondary-grid-new {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.statistics-panel-new {
  min-width: 0;
  border: 1px solid #dfe6f1;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.045);
  padding: 18px;
  overflow: hidden;
}

.statistics-panel-head-new {
  display: grid;
  gap: 5px;
  margin-bottom: 14px;
}

.statistics-panel-head-new h3 {
  margin: 0;
  color: #0f172a;
  font-size: 17px;
  line-height: 1.18;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.statistics-panel-head-new p {
  margin: 0;
  color: #64748b;
  font-size: 12.5px;
  line-height: 1.42;
}

.statistics-trend-chart-new {
  display: grid;
  gap: 12px;
}

.statistics-trend-svg-new {
  width: 100%;
  height: 292px;
  overflow: visible;
  border: 1px solid rgba(223, 230, 241, 0.72);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.66) 0%, rgba(255, 255, 255, 0.92) 100%),
    radial-gradient(circle at 15% 0%, rgba(124, 58, 237, 0.08), transparent 28%);
}

.statistics-chart-grid-line-new {
  stroke: rgba(148, 163, 184, 0.30);
  stroke-width: 1;
}

.statistics-trend-area-new {
  fill: url(#statisticsTrendAreaGradient);
}

.statistics-trend-line-new {
  fill: none;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.statistics-trend-line-new--total { stroke: rgba(148, 163, 184, 0.76); stroke-width: 2.4; stroke-dasharray: 7 8; }
.statistics-trend-line-new--generated { stroke: #7c3aed; }
.statistics-trend-line-new--errors { stroke: #ef4444; stroke-width: 3; }

.statistics-trend-dot-new {
  fill: #ffffff;
  stroke: #7c3aed;
  stroke-width: 2.8;
}

.statistics-chart-legend-new,
.statistics-trend-labels-new {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.statistics-legend-item-new {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #5a6680;
  font-size: 12px;
  font-weight: 720;
}

.statistics-legend-item-new i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #94a3b8;
}

.statistics-legend-item-new--generated i { background: #7c3aed; }
.statistics-legend-item-new--errors i { background: #ef4444; }

.statistics-trend-labels-new {
  justify-content: space-between;
  color: #78849a;
  font-size: 11px;
  font-weight: 680;
  padding: 0 5px;
}

.statistics-status-body-new {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
}

.statistics-donut-new {
  width: 168px;
  height: 168px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.16), 0 18px 34px rgba(15, 23, 42, 0.07);
}

.statistics-donut-center-new {
  width: 104px;
  height: 104px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 3px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(223, 230, 241, 0.88);
}

.statistics-donut-center-new strong {
  color: #0f172a;
  font-size: 24px;
  font-weight: 940;
  letter-spacing: -0.04em;
}

.statistics-donut-center-new span {
  color: #64748b;
  font-size: 11px;
  font-weight: 760;
}

.statistics-status-list-new {
  display: grid;
  gap: 10px;
}

.statistics-status-row-new {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid #e7edf6;
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.72);
  padding: 10px 11px;
}

.statistics-status-row-new span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #41506a;
  font-size: 12.5px;
  font-weight: 760;
}

.statistics-status-row-new span::before {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #94a3b8;
}

.statistics-status-row-new--green span::before { background: #22c55e; }
.statistics-status-row-new--violet span::before { background: #8b5cf6; }
.statistics-status-row-new--red span::before { background: #ef4444; }
.statistics-status-row-new--amber span::before { background: #f59e0b; }
.statistics-status-row-new--blue span::before { background: #38bdf8; }

.statistics-status-row-new strong {
  color: #0f172a;
  font-size: 14px;
  font-weight: 900;
}

.statistics-bar-list-new,
.statistics-provider-list-new,
.statistics-error-list-new,
.statistics-compact-list-new {
  display: grid;
  gap: 12px;
}

.statistics-bar-row-new {
  display: grid;
  gap: 8px;
}

.statistics-bar-row-new > div:first-child,
.statistics-provider-top-new,
.statistics-error-row-new > div:first-child,
.statistics-compact-row-new {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.statistics-bar-row-new span,
.statistics-provider-top-new strong,
.statistics-error-row-new strong,
.statistics-compact-row-new span {
  color: #22304a;
  font-size: 12.6px;
  font-weight: 780;
}

.statistics-bar-row-new strong,
.statistics-provider-top-new span,
.statistics-error-row-new span,
.statistics-compact-row-new strong {
  color: #0f172a;
  font-size: 12.7px;
  font-weight: 900;
  white-space: nowrap;
}

.statistics-bar-row-new p,
.statistics-provider-row-new p,
.statistics-error-row-new p {
  margin: 0;
  color: #64748b;
  font-size: 11.5px;
  line-height: 1.4;
}

.statistics-bar-track-new {
  width: 100%;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf1f7;
}

.statistics-bar-fill-new {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8b5cf6, #6d45f5);
  min-width: 3px;
}

.statistics-bar-fill-new--green { background: linear-gradient(90deg, #4ade80, #16a34a); }
.statistics-bar-fill-new--blue { background: linear-gradient(90deg, #7dd3fc, #0284c7); }
.statistics-bar-fill-new--cyan { background: linear-gradient(90deg, #67e8f9, #0891b2); }
.statistics-bar-fill-new--amber { background: linear-gradient(90deg, #fbbf24, #d97706); }
.statistics-bar-fill-new--red { background: linear-gradient(90deg, #fb7185, #ef4444); }
.statistics-bar-fill-new--neutral { background: linear-gradient(90deg, #cbd5e1, #94a3b8); }

.statistics-provider-row-new,
.statistics-error-row-new,
.statistics-compact-row-new {
  border: 1px solid #e6edf7;
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.62);
  padding: 12px;
}

.statistics-provider-row-new,
.statistics-error-row-new {
  display: grid;
  gap: 9px;
}

.statistics-compact-row-new {
  min-height: 45px;
}

.statistics-recent-panel-new {
  padding: 0;
  border-color: rgba(124, 58, 237, 0.12);
  background:
    radial-gradient(circle at 92% 0%, rgba(124, 58, 237, 0.09) 0, rgba(124, 58, 237, 0) 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(248, 250, 252, 0.88) 100%);
}

.statistics-recent-panel-new .statistics-panel-head-new {
  margin: 0;
  padding: 20px 20px 14px;
  border-bottom: 1px solid rgba(223, 230, 241, 0.78);
  background: linear-gradient(135deg, rgba(248, 247, 255, 0.94) 0%, rgba(255, 255, 255, 0.62) 100%);
}

.statistics-recent-panel-new .statistics-panel-head-new h3 {
  color: #111827;
  font-size: 19px;
}

.statistics-recent-panel-new .statistics-panel-head-new p {
  color: #53627a;
}

.statistics-table-new {
  display: grid;
  gap: 9px;
  overflow: auto;
  padding: 16px;
}

.statistics-table-row-new {
  display: grid;
  grid-template-columns: minmax(240px, 1.5fr) minmax(130px, 0.7fr) minmax(120px, 0.55fr) minmax(130px, 0.7fr) minmax(90px, 0.45fr) minmax(180px, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 980px;
  border: 1px solid rgba(223, 230, 241, 0.92);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.035);
  padding: 12px 13px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.statistics-table-row-new:hover:not(.statistics-table-row-new--head) {
  border-color: rgba(124, 58, 237, 0.22);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 247, 255, 0.90) 100%);
  box-shadow: 0 16px 34px rgba(109, 69, 245, 0.08);
  transform: translateY(-1px);
}

.statistics-table-row-new--head {
  min-height: 42px;
  border-color: rgba(124, 58, 237, 0.12);
  background: linear-gradient(135deg, rgba(245, 243, 255, 0.96) 0%, rgba(241, 245, 249, 0.88) 100%);
  box-shadow: none;
}

.statistics-table-row-new span {
  min-width: 0;
  overflow: hidden;
  color: #34435e;
  font-size: 12.3px;
  line-height: 1.35;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.statistics-table-row-new--head span {
  color: #6d45f5;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.statistics-status-pill-new {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  width: fit-content;
  border-radius: 999px;
  padding: 0 10px;
  background: #eef2ff;
  color: #6d45f5 !important;
  font-size: 11.5px !important;
  font-weight: 860 !important;
}

.statistics-status-pill-new--done { background: #dcfce7; color: #15803d !important; }
.statistics-status-pill-new--error { background: #fee2e2; color: #b91c1c !important; }
.statistics-status-pill-new--cancelled { background: #fef3c7; color: #b45309 !important; }
.statistics-status-pill-new--running { background: #e0f2fe; color: #0369a1 !important; }
.statistics-status-pill-new--queued { background: #f1f5f9; color: #475569 !important; }

.statistics-state-new {
  display: grid;
  justify-items: center;
  gap: 9px;
  border: 1.5px dashed rgba(124, 58, 237, 0.20);
  border-radius: 20px;
  background: rgba(248, 250, 252, 0.72);
  color: #64748b;
  padding: 28px 18px;
  text-align: center;
}

.statistics-state-new strong {
  color: #172033;
  font-size: 14px;
  font-weight: 850;
}

.statistics-state-new p {
  margin: 0;
  color: #64748b;
  font-size: 12.5px;
  line-height: 1.45;
}

.statistics-state-new--positive {
  border-color: rgba(34, 197, 94, 0.25);
  background: rgba(240, 253, 244, 0.70);
}

.statistics-state-new--error {
  border-color: rgba(239, 68, 68, 0.26);
  background: rgba(254, 242, 242, 0.78);
}

.statistics-spinner-new {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(124, 58, 237, 0.16);
  border-top-color: #7c3aed;
  border-radius: 999px;
  animation: statisticsSpinNew 0.9s linear infinite;
}

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

@media (max-width: 1380px) {
  .statistics-metrics-grid-new {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .statistics-secondary-grid-new {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1060px) {
  .statistics-hero-new,
  .statistics-main-grid-new {
    grid-template-columns: 1fr;
  }

  .statistics-hero-new {
    display: grid;
  }

  .statistics-hero-actions-new {
    justify-content: flex-start;
  }

  .statistics-main-grid-new {
    display: grid;
  }

  .statistics-status-body-new {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .statistics-status-list-new {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .statistics-metrics-grid-new,
  .statistics-secondary-grid-new {
    grid-template-columns: 1fr;
  }

  .statistics-hero-new,
  .statistics-panel-new {
    border-radius: 18px;
    padding: 16px;
  }

  .statistics-hero-actions-new,
  .statistics-period-select-new,
  .statistics-soft-button-new,
  .statistics-primary-button-new {
    width: 100%;
  }

  .statistics-period-select-new select {
    width: 100%;
  }
}

/* Statistics page v2: full visual polish in site colors */
.statistics-page-new {
  gap: 20px;
  color: #0f172a;
}

.statistics-hero-new {
  position: relative;
  overflow: hidden;
  min-height: 132px;
  border: 1px solid rgba(213, 222, 239, 0.95);
  border-radius: 26px;
  background:
    radial-gradient(circle at 4% 12%, rgba(139, 92, 246, 0.18) 0, rgba(139, 92, 246, 0) 31%),
    radial-gradient(circle at 96% 10%, rgba(109, 69, 245, 0.10) 0, rgba(109, 69, 245, 0) 34%),
    linear-gradient(135deg, #ffffff 0%, #fbf9ff 48%, #f8fafc 100%);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.055);
  padding: 26px 28px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.statistics-hero-new::before {
  content: '';
  position: absolute;
  inset: -80px auto auto 46%;
  width: 340px;
  height: 340px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.085) 0, rgba(124, 58, 237, 0) 67%);
  pointer-events: none;
}

.statistics-hero-new:hover {
  border-color: rgba(124, 92, 255, 0.30);
  box-shadow: 0 24px 58px rgba(109, 69, 245, 0.09);
  transform: translateY(-1px);
}

.statistics-hero-copy-new {
  position: relative;
  z-index: 1;
  gap: 9px;
}

.statistics-hero-copy-new h2 {
  color: #07142f;
  font-size: 30px;
  line-height: 1.08;
  font-weight: 930;
  letter-spacing: -0.045em;
}

.statistics-hero-copy-new p {
  color: #5b6780;
  font-size: 14px;
  line-height: 1.62;
  font-weight: 520;
}

.statistics-hero-actions-new {
  position: relative;
  z-index: 1;
}

.statistics-period-select-new select,
.statistics-soft-button-new,
.statistics-primary-button-new {
  min-height: 44px;
  border-radius: 15px;
  font-size: 12.8px;
  font-weight: 840;
}

.statistics-period-select-new select {
  min-width: 148px;
  border-color: rgba(203, 213, 225, 0.95);
  background: rgba(255, 255, 255, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 12px 25px rgba(15, 23, 42, 0.055);
}

.statistics-period-select-new:hover select {
  border-color: rgba(124, 92, 255, 0.34);
  box-shadow: 0 0 0 4px rgba(124, 92, 255, 0.07), 0 14px 26px rgba(109, 69, 245, 0.09);
}

.statistics-period-arrow-new {
  color: #7c3aed;
}

.statistics-soft-button-new {
  border-color: rgba(203, 213, 225, 0.95);
  background: rgba(255, 255, 255, 0.92);
  color: #24324d;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 12px 25px rgba(15, 23, 42, 0.045);
}

.statistics-soft-button-new:hover {
  border-color: rgba(124, 92, 255, 0.34);
  background: #ffffff;
  color: #6d45f5;
}

.statistics-primary-button-new {
  border-color: transparent;
  background: linear-gradient(135deg, #8b5cf6 0%, #6d45f5 100%);
  box-shadow: 0 16px 34px rgba(109, 69, 245, 0.24);
}

.statistics-primary-button-new:hover {
  background: linear-gradient(135deg, #9566f8 0%, #754df7 100%);
  box-shadow: 0 18px 38px rgba(109, 69, 245, 0.30);
}

.statistics-dashboard-new,
.statistics-loading-shell-new {
  gap: 20px;
}

.statistics-metrics-grid-new {
  gap: 16px;
}

.statistics-metric-card-new {
  min-height: 106px;
  border-color: rgba(213, 222, 239, 0.95);
  border-radius: 22px;
  background:
    radial-gradient(circle at 91% 92%, rgba(124, 58, 237, 0.075) 0, rgba(124, 58, 237, 0) 30%),
    linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.055);
  padding: 17px;
}

.statistics-metric-card-new::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.055), rgba(255, 255, 255, 0) 48%);
  opacity: 0;
  transition: opacity 0.18s ease;
  pointer-events: none;
}

.statistics-metric-card-new::after {
  width: 112px;
  height: 112px;
  right: -28px;
  bottom: -48px;
  filter: blur(0.2px);
}

.statistics-metric-card-new:hover {
  border-color: rgba(124, 92, 255, 0.36);
  background:
    radial-gradient(circle at 20% 50%, rgba(124, 92, 255, 0.075), transparent 44%),
    #ffffff;
  box-shadow:
    0 0 0 4px rgba(124, 92, 255, 0.055),
    0 18px 42px rgba(82, 63, 180, 0.14);
  transform: translateY(-2px);
}

.statistics-metric-card-new:hover::before {
  opacity: 1;
}

.statistics-metric-icon-new {
  width: 50px;
  height: 50px;
  border-radius: 18px;
  background: linear-gradient(135deg, #f0e7ff 0%, #eef2ff 100%);
  color: #6d45f5;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 8px 22px rgba(109, 69, 245, 0.08);
}

.statistics-metric-copy-new span {
  color: #64718a;
}

.statistics-metric-copy-new strong {
  color: #07142f;
}

.statistics-metric-copy-new p {
  color: #667189;
}

.statistics-main-grid-new,
.statistics-secondary-grid-new {
  gap: 18px;
}

.statistics-panel-new {
  position: relative;
  border-color: rgba(213, 222, 239, 0.95);
  border-radius: 24px;
  background:
    radial-gradient(circle at 94% 0%, rgba(124, 58, 237, 0.06) 0, rgba(124, 58, 237, 0) 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(250, 252, 255, 0.92) 100%);
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.052);
  padding: 20px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.statistics-panel-new:hover {
  border-color: rgba(124, 92, 255, 0.24);
  box-shadow: 0 20px 50px rgba(109, 69, 245, 0.085);
  transform: translateY(-1px);
}

.statistics-panel-head-new {
  margin-bottom: 16px;
  padding-bottom: 13px;
  border-bottom: 1px solid rgba(223, 230, 241, 0.78);
}

.statistics-panel-head-new h3 {
  color: #07142f;
  font-size: 18px;
  font-weight: 930;
}

.statistics-panel-head-new p {
  color: #64718a;
  font-size: 12.7px;
}

.statistics-trend-svg-new {
  height: 306px;
  border-color: rgba(213, 222, 239, 0.86);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86) 0%, rgba(248, 250, 252, 0.92) 100%),
    radial-gradient(circle at 18% 0%, rgba(124, 58, 237, 0.13), transparent 32%),
    radial-gradient(circle at 86% 100%, rgba(56, 189, 248, 0.10), transparent 30%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.statistics-chart-grid-line-new {
  stroke: rgba(148, 163, 184, 0.24);
}

.statistics-trend-line-new--total {
  stroke: rgba(100, 116, 139, 0.52);
}

.statistics-trend-line-new--generated {
  stroke: #6d45f5;
  filter: drop-shadow(0 4px 8px rgba(109, 69, 245, 0.22));
}

.statistics-trend-line-new--errors {
  stroke: #ef4444;
  filter: drop-shadow(0 4px 8px rgba(239, 68, 68, 0.18));
}

.statistics-trend-dot-new {
  fill: #ffffff;
  stroke: #6d45f5;
  filter: drop-shadow(0 4px 7px rgba(109, 69, 245, 0.16));
}

.statistics-chart-legend-new,
.statistics-trend-labels-new {
  padding: 0 4px;
}

.statistics-legend-item-new {
  color: #53627a;
  font-weight: 780;
}

.statistics-status-body-new {
  gap: 20px;
}

.statistics-donut-new {
  box-shadow:
    inset 0 0 0 1px rgba(148, 163, 184, 0.16),
    0 18px 42px rgba(109, 69, 245, 0.10);
}

.statistics-donut-center-new {
  background: linear-gradient(180deg, #ffffff 0%, #f8f7ff 100%);
  box-shadow: inset 0 0 0 1px rgba(223, 230, 241, 0.88), 0 8px 20px rgba(15, 23, 42, 0.06);
}

.statistics-status-row-new,
.statistics-provider-row-new,
.statistics-error-row-new,
.statistics-compact-row-new {
  border-color: rgba(223, 230, 241, 0.88);
  background: rgba(255, 255, 255, 0.70);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.026);
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.statistics-status-row-new:hover,
.statistics-provider-row-new:hover,
.statistics-error-row-new:hover,
.statistics-compact-row-new:hover {
  border-color: rgba(124, 92, 255, 0.24);
  background: #ffffff;
  box-shadow: 0 14px 28px rgba(109, 69, 245, 0.075);
  transform: translateY(-1px);
}

.statistics-bar-track-new {
  height: 11px;
  background: #eef2f8;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.05);
}

.statistics-bar-fill-new {
  background: linear-gradient(90deg, #a78bfa 0%, #6d45f5 100%);
  box-shadow: 0 5px 13px rgba(109, 69, 245, 0.16);
}

.statistics-bar-fill-new--green { background: linear-gradient(90deg, #86efac, #16a34a); }
.statistics-bar-fill-new--blue { background: linear-gradient(90deg, #93c5fd, #0284c7); }
.statistics-bar-fill-new--cyan { background: linear-gradient(90deg, #67e8f9, #0891b2); }
.statistics-bar-fill-new--amber { background: linear-gradient(90deg, #fde68a, #d97706); }
.statistics-bar-fill-new--red { background: linear-gradient(90deg, #fda4af, #ef4444); }
.statistics-bar-fill-new--neutral { background: linear-gradient(90deg, #dbe3ee, #94a3b8); }

.statistics-provider-top-new strong,
.statistics-error-row-new strong,
.statistics-compact-row-new span,
.statistics-bar-row-new span {
  color: #22304a;
  font-weight: 820;
}

.statistics-provider-top-new span,
.statistics-error-row-new span,
.statistics-compact-row-new strong,
.statistics-bar-row-new strong {
  color: #07142f;
}

.statistics-provider-row-new p,
.statistics-error-row-new p,
.statistics-bar-row-new p {
  color: #667189;
}

.statistics-recent-panel-new {
  border-color: rgba(124, 92, 255, 0.16);
  border-radius: 25px;
  background:
    radial-gradient(circle at 96% 0%, rgba(124, 58, 237, 0.105) 0, rgba(124, 58, 237, 0) 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 250, 252, 0.90) 100%);
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.056);
}

.statistics-recent-panel-new:hover {
  border-color: rgba(124, 92, 255, 0.28);
  box-shadow: 0 22px 54px rgba(109, 69, 245, 0.09);
}

.statistics-recent-panel-new .statistics-panel-head-new {
  position: relative;
  padding: 22px 22px 16px;
  border-bottom-color: rgba(223, 230, 241, 0.82);
  background:
    radial-gradient(circle at 92% 0%, rgba(124, 58, 237, 0.105) 0, transparent 35%),
    linear-gradient(135deg, rgba(248, 247, 255, 0.98) 0%, rgba(255, 255, 255, 0.74) 100%);
}

.statistics-recent-panel-new .statistics-panel-head-new::before {
  content: '';
  position: absolute;
  left: 22px;
  bottom: -1px;
  width: 76px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #8b5cf6, #6d45f5);
}

.statistics-recent-panel-new .statistics-panel-head-new h3 {
  color: #07142f;
  font-size: 20px;
  letter-spacing: -0.03em;
}

.statistics-table-new {
  gap: 10px;
  padding: 17px;
}

.statistics-table-row-new {
  border-color: rgba(223, 230, 241, 0.92);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.035);
}

.statistics-table-row-new:hover:not(.statistics-table-row-new--head) {
  border-color: rgba(124, 92, 255, 0.30);
  background: linear-gradient(135deg, rgba(255,255,255,0.98) 0%, rgba(248,247,255,0.96) 100%);
  box-shadow: 0 16px 36px rgba(109, 69, 245, 0.09);
  transform: translateY(-1px);
}

.statistics-table-row-new--head {
  border-color: rgba(124, 92, 255, 0.15);
  background:
    linear-gradient(135deg, rgba(245, 243, 255, 0.98) 0%, rgba(241, 245, 249, 0.90) 100%);
}

.statistics-table-row-new--head span {
  color: #6d45f5;
}

.statistics-status-pill-new {
  background: #ede9fe;
  color: #6d45f5 !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.82);
}

.statistics-state-new {
  border-color: rgba(124, 92, 255, 0.22);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.78) 0%, rgba(248,247,255,0.72) 100%);
}

@media (max-width: 720px) {
  .statistics-hero-new {
    min-height: 0;
    padding: 20px;
  }

  .statistics-hero-copy-new h2 {
    font-size: 25px;
  }

  .statistics-panel-new {
    padding: 16px;
  }

  .statistics-recent-panel-new {
    padding: 0;
  }
}


/* Statistics page: refined status donut panel */
.statistics-status-panel-new {
  background:
    radial-gradient(circle at 100% 0%, rgba(124, 58, 237, 0.10) 0, rgba(124, 58, 237, 0) 34%),
    radial-gradient(circle at 0% 100%, rgba(56, 189, 248, 0.07) 0, rgba(56, 189, 248, 0) 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(249, 250, 255, 0.94) 100%);
}

.statistics-status-panel-new .statistics-panel-head-new {
  position: relative;
  padding-bottom: 16px;
}

.statistics-status-panel-new .statistics-panel-head-new::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 88px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #8b5cf6 0%, #6d45f5 55%, rgba(109, 69, 245, 0) 100%);
}

.statistics-status-body-new {
  grid-template-columns: 196px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
}

.statistics-donut-new {
  position: relative;
  width: 196px;
  height: 196px;
  padding: 14px;
  border-radius: 999px;
  box-shadow:
    inset 0 0 0 1px rgba(148, 163, 184, 0.10),
    0 18px 46px rgba(109, 69, 245, 0.12),
    0 6px 18px rgba(15, 23, 42, 0.06);
}

.statistics-donut-new::before {
  content: '';
  position: absolute;
  inset: 10px;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.20), rgba(255, 255, 255, 0) 56%);
  pointer-events: none;
}

.statistics-donut-center-new {
  position: relative;
  width: 124px;
  height: 124px;
  gap: 4px;
  background:
    linear-gradient(180deg, #ffffff 0%, #faf8ff 100%);
  box-shadow:
    inset 0 0 0 1px rgba(223, 230, 241, 0.92),
    0 14px 28px rgba(15, 23, 42, 0.08);
}

.statistics-donut-center-new strong {
  color: #07142f;
  font-size: 18px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: -0.035em;
}

.statistics-donut-center-new span {
  color: #667189;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.statistics-status-list-new {
  gap: 12px;
}

.statistics-status-row-new {
  min-height: 54px;
  border-radius: 16px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.035);
}

.statistics-status-row-new span {
  gap: 10px;
  color: #32415d;
  font-size: 14px;
  font-weight: 820;
}

.statistics-status-row-new span::before {
  width: 10px;
  height: 10px;
  box-shadow: 0 0 0 5px rgba(148, 163, 184, 0.12);
}

.statistics-status-row-new strong {
  min-width: 34px;
  text-align: right;
  color: #07142f;
  font-size: 18px;
  font-weight: 950;
  letter-spacing: -0.03em;
}

.statistics-status-row-new--green {
  border-color: rgba(34, 197, 94, 0.18);
  background: linear-gradient(180deg, rgba(240, 253, 244, 0.92) 0%, rgba(255, 255, 255, 0.94) 100%);
}

.statistics-status-row-new--green span::before {
  box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.14);
}

.statistics-status-row-new--red {
  border-color: rgba(239, 68, 68, 0.18);
  background: linear-gradient(180deg, rgba(254, 242, 242, 0.92) 0%, rgba(255, 255, 255, 0.94) 100%);
}

.statistics-status-row-new--red span::before {
  box-shadow: 0 0 0 5px rgba(239, 68, 68, 0.12);
}

.statistics-status-row-new--amber {
  border-color: rgba(245, 158, 11, 0.18);
  background: linear-gradient(180deg, rgba(255, 251, 235, 0.95) 0%, rgba(255, 255, 255, 0.94) 100%);
}

.statistics-status-row-new--amber span::before {
  box-shadow: 0 0 0 5px rgba(245, 158, 11, 0.12);
}

.statistics-status-row-new--violet {
  border-color: rgba(139, 92, 246, 0.18);
  background: linear-gradient(180deg, rgba(245, 243, 255, 0.95) 0%, rgba(255, 255, 255, 0.94) 100%);
}

.statistics-status-row-new--violet span::before {
  box-shadow: 0 0 0 5px rgba(139, 92, 246, 0.12);
}

.statistics-status-row-new--blue {
  border-color: rgba(56, 189, 248, 0.18);
  background: linear-gradient(180deg, rgba(240, 249, 255, 0.95) 0%, rgba(255, 255, 255, 0.94) 100%);
}

.statistics-status-row-new--blue span::before {
  box-shadow: 0 0 0 5px rgba(56, 189, 248, 0.12);
}

.statistics-status-row-new:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(109, 69, 245, 0.08);
}

@media (max-width: 900px) {
  .statistics-status-body-new {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .statistics-status-list-new {
    width: 100%;
  }

  .statistics-donut-new {
    width: 184px;
    height: 184px;
  }
}


/* Statistics trend chart: axes and tooltip */
.statistics-trend-chart-new {
  position: relative;
}

.statistics-axis-line-new {
  stroke: rgba(100, 116, 139, 0.22);
  stroke-width: 1.2;
}

.statistics-axis-tick-new {
  fill: #78849a;
  font-size: 12px;
  font-weight: 780;
}

.statistics-axis-label-new {
  fill: #53627a;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.01em;
}

.statistics-axis-label-new--y {
  fill: #667189;
}

.statistics-trend-hit-new {
  fill: transparent;
  stroke: transparent;
  cursor: pointer;
  pointer-events: all;
}

.statistics-trend-tooltip-new {
  position: absolute;
  z-index: 8;
  min-width: 178px;
  display: grid;
  gap: 8px;
  border: 1px solid rgba(124, 92, 255, 0.22);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 248, 255, 0.98) 100%);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16), 0 0 0 1px rgba(255, 255, 255, 0.64) inset;
  padding: 12px 13px;
  color: #172036;
  pointer-events: none;
}

.statistics-trend-tooltip-new[hidden] {
  display: none;
}

.statistics-trend-tooltip-new strong {
  color: #07142f;
  font-size: 13.5px;
  line-height: 1.2;
  font-weight: 900;
}

.statistics-trend-tooltip-new span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #53627a;
  font-size: 12px;
  font-weight: 780;
}

.statistics-trend-tooltip-new i {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 999px;
  margin-right: -4px;
}

.statistics-trend-tooltip-new .is-total { background: #94a3b8; }
.statistics-trend-tooltip-new .is-generated { background: #6d45f5; }
.statistics-trend-tooltip-new .is-errors { background: #ef4444; }

.statistics-trend-dot-new {
  transition: r 0.16s ease, stroke-width 0.16s ease, filter 0.16s ease;
}

.statistics-trend-hit-new:hover + .statistics-trend-dot-new,
.statistics-trend-dot-new:hover {
  stroke-width: 3.4;
}

/* Statistics page: match secondary block titles with main home card headers */
.statistics-secondary-grid-new .statistics-panel-head-new h3 {
  margin: 0;
  color: #0f172a;
  font-size: 15.5px;
  line-height: 20px;
  font-weight: 600;
  letter-spacing: 0;
}

.statistics-secondary-grid-new .statistics-panel-head-new p {
  margin-top: 7px;
  color: #536174;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 400;
  letter-spacing: 0;
}


/* Statistics page: thinner typography inside secondary panels */
.statistics-secondary-grid-new .statistics-bar-row-new span,
.statistics-secondary-grid-new .statistics-provider-top-new strong,
.statistics-secondary-grid-new .statistics-error-row-new strong,
.statistics-secondary-grid-new .statistics-compact-row-new span {
  font-weight: 580 !important;
  letter-spacing: 0 !important;
}

.statistics-secondary-grid-new .statistics-bar-row-new strong,
.statistics-secondary-grid-new .statistics-provider-top-new span,
.statistics-secondary-grid-new .statistics-error-row-new span,
.statistics-secondary-grid-new .statistics-compact-row-new strong {
  font-weight: 650 !important;
  letter-spacing: -0.005em !important;
}

.statistics-secondary-grid-new .statistics-bar-row-new p,
.statistics-secondary-grid-new .statistics-provider-row-new p,
.statistics-secondary-grid-new .statistics-error-row-new p {
  font-weight: 400 !important;
}

.statistics-secondary-grid-new .statistics-bar-row-new,
.statistics-secondary-grid-new .statistics-provider-row-new,
.statistics-secondary-grid-new .statistics-error-row-new,
.statistics-secondary-grid-new .statistics-compact-row-new {
  font-weight: 400 !important;
}

/* Statistics page: recent generations table header and status text black */
.statistics-recent-panel-new .statistics-table-row-new--head span {
  color: #07142f !important;
  font-weight: 760 !important;
  letter-spacing: 0.055em !important;
}

.statistics-recent-panel-new .statistics-status-pill-new,
.statistics-recent-panel-new .statistics-status-pill-new--done,
.statistics-recent-panel-new .statistics-status-pill-new--error,
.statistics-recent-panel-new .statistics-status-pill-new--cancelled,
.statistics-recent-panel-new .statistics-status-pill-new--running,
.statistics-recent-panel-new .statistics-status-pill-new--queued {
  color: #07142f !important;
  font-weight: 720 !important;
}


/* Statistics page: recent journal fonts aligned with secondary blocks */
.statistics-recent-panel-new .statistics-table-row-new span {
  color: #41506a;
  font-size: 12.8px;
  line-height: 1.4;
  font-weight: 500;
}

.statistics-recent-panel-new .statistics-table-row-new span:first-child {
  color: #25324a;
  font-weight: 600;
}

.statistics-recent-panel-new .statistics-table-row-new--head span {
  color: #07142f !important;
  font-size: 12.2px !important;
  line-height: 1.3 !important;
  font-weight: 600 !important;
  letter-spacing: 0.035em !important;
}

.statistics-recent-panel-new .statistics-status-pill-new,
.statistics-recent-panel-new .statistics-status-pill-new--done,
.statistics-recent-panel-new .statistics-status-pill-new--error,
.statistics-recent-panel-new .statistics-status-pill-new--cancelled,
.statistics-recent-panel-new .statistics-status-pill-new--running,
.statistics-recent-panel-new .statistics-status-pill-new--queued {
  font-size: 11.8px !important;
  font-weight: 600 !important;
}


/* Statistics page: lighter typography for hero, metric cards and top panels */
.statistics-hero-copy-new h2 {
  font-size: 27px;
  line-height: 1.12;
  font-weight: 780;
  letter-spacing: -0.03em;
}

.statistics-hero-copy-new p {
  font-size: 14px;
  line-height: 1.58;
  font-weight: 450;
}

.statistics-period-select-new select,
.statistics-soft-button-new,
.statistics-primary-button-new {
  font-weight: 650;
}

.statistics-metric-copy-new span {
  font-size: 10.8px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.statistics-metric-copy-new strong {
  font-size: 22px;
  line-height: 1.04;
  font-weight: 780;
  letter-spacing: -0.025em;
}

.statistics-metric-copy-new p {
  font-size: 12.2px;
  line-height: 1.35;
  font-weight: 450;
}

.statistics-panel-head-new h3,
.statistics-recent-panel-new .statistics-panel-head-new h3 {
  font-size: 16px;
  line-height: 1.22;
  font-weight: 680;
  letter-spacing: -0.01em;
}

.statistics-panel-head-new p,
.statistics-recent-panel-new .statistics-panel-head-new p {
  font-size: 12.8px;
  line-height: 1.5;
  font-weight: 430;
}

.statistics-trend-labels-new,
.statistics-legend-item-new {
  font-size: 11.5px;
  font-weight: 560;
}

.statistics-donut-center-new strong {
  font-size: 17px;
  font-weight: 780;
}

.statistics-donut-center-new span {
  font-size: 11.5px;
  font-weight: 650;
}

.statistics-status-row-new span {
  font-size: 13px;
  font-weight: 600;
}

.statistics-status-row-new strong {
  font-size: 16px;
  font-weight: 760;
}

/* Analytics page pro dashboard */
.analytics-page-pro {
  display: grid;
  gap: 20px;
  color: #0f172a;
}

.analytics-hero-pro {
  position: relative;
  overflow: hidden;
  min-height: 132px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  border: 1px solid rgba(213, 222, 239, 0.95);
  border-radius: 26px;
  background:
    radial-gradient(circle at 5% 8%, rgba(139, 92, 246, 0.18) 0, rgba(139, 92, 246, 0) 31%),
    radial-gradient(circle at 97% 7%, rgba(14, 165, 233, 0.12) 0, rgba(14, 165, 233, 0) 34%),
    linear-gradient(135deg, #ffffff 0%, #fbf9ff 52%, #f8fafc 100%);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.055);
  padding: 26px 28px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.analytics-hero-pro::before {
  content: '';
  position: absolute;
  inset: -86px auto auto 44%;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.085) 0, rgba(124, 58, 237, 0) 68%);
  pointer-events: none;
}

.analytics-hero-pro:hover {
  border-color: rgba(124, 92, 255, 0.30);
  box-shadow: 0 24px 58px rgba(109, 69, 245, 0.09);
  transform: translateY(-1px);
}

.analytics-hero-copy-pro {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 9px;
  min-width: 0;
}

.analytics-hero-copy-pro h2 {
  margin: 0;
  color: #07142f;
  font-size: 27px;
  line-height: 1.12;
  font-weight: 780;
  letter-spacing: -0.03em;
}

.analytics-hero-copy-pro p {
  margin: 0;
  max-width: 760px;
  color: #5b6780;
  font-size: 14px;
  line-height: 1.58;
  font-weight: 450;
}

.analytics-hero-actions-pro {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.analytics-period-select-pro {
  position: relative;
  display: inline-grid;
  align-items: center;
}

.analytics-period-select-pro select,
.analytics-soft-button-pro,
.analytics-primary-button-pro {
  min-height: 44px;
  border-radius: 15px;
  font-size: 12.8px;
  font-weight: 650;
  cursor: pointer;
}

.analytics-period-select-pro select {
  min-width: 148px;
  appearance: none;
  border: 1px solid rgba(203, 213, 225, 0.95);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 12px 25px rgba(15, 23, 42, 0.055);
  color: #24324d;
  padding: 0 44px 0 16px;
  outline: none;
}

.analytics-period-arrow-pro {
  position: absolute;
  right: 14px;
  top: 50%;
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  color: #7c3aed;
  transform: translateY(-50%);
  pointer-events: none;
}

.analytics-period-arrow-pro svg {
  width: 16px;
  height: 16px;
}

.analytics-soft-button-pro,
.analytics-primary-button-pro {
  border: 1px solid rgba(203, 213, 225, 0.95);
  padding: 0 18px;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.analytics-soft-button-pro {
  background: rgba(255, 255, 255, 0.92);
  color: #24324d;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 12px 25px rgba(15,23,42,0.045);
}

.analytics-primary-button-pro {
  border-color: transparent;
  background: linear-gradient(135deg, #8b5cf6 0%, #6d45f5 100%);
  color: #ffffff;
  box-shadow: 0 16px 34px rgba(109, 69, 245, 0.24);
}

.analytics-period-select-pro:hover select,
.analytics-soft-button-pro:hover {
  border-color: rgba(124, 92, 255, 0.34);
  background: #ffffff;
  color: #6d45f5;
  box-shadow: 0 0 0 4px rgba(124, 92, 255, 0.07), 0 14px 26px rgba(109, 69, 245, 0.09);
  transform: translateY(-1px);
}

.analytics-primary-button-pro:hover {
  background: linear-gradient(135deg, #9566f8 0%, #754df7 100%);
  box-shadow: 0 18px 38px rgba(109, 69, 245, 0.30);
  transform: translateY(-1px);
}

.analytics-dashboard-pro,
.analytics-loading-shell-pro {
  display: grid;
  gap: 20px;
}

.analytics-metrics-grid-pro {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.analytics-metric-card-pro {
  position: relative;
  overflow: hidden;
  min-height: 106px;
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(213, 222, 239, 0.95);
  border-radius: 22px;
  background: radial-gradient(circle at 91% 92%, rgba(124, 58, 237, 0.075) 0, rgba(124, 58, 237, 0) 30%), linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.055);
  padding: 17px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.analytics-metric-card-pro::after {
  content: '';
  position: absolute;
  right: -28px;
  bottom: -48px;
  width: 112px;
  height: 112px;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.08);
}

.analytics-metric-card-pro--green::after { background: rgba(34, 197, 94, 0.09); }
.analytics-metric-card-pro--blue::after { background: rgba(56, 189, 248, 0.11); }
.analytics-metric-card-pro--amber::after { background: rgba(245, 158, 11, 0.10); }
.analytics-metric-card-pro--cyan::after { background: rgba(14, 165, 233, 0.10); }

.analytics-metric-card-pro:hover {
  border-color: rgba(124, 92, 255, 0.36);
  background: radial-gradient(circle at 20% 50%, rgba(124, 92, 255, 0.075), transparent 44%), #ffffff;
  box-shadow: 0 0 0 4px rgba(124, 92, 255, 0.055), 0 18px 42px rgba(82, 63, 180, 0.14);
  transform: translateY(-2px);
}

.analytics-metric-icon-pro {
  position: relative;
  z-index: 1;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, #f0e7ff 0%, #eef2ff 100%);
  color: #6d45f5;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 8px 22px rgba(109, 69, 245, 0.08);
}

.analytics-metric-card-pro--green .analytics-metric-icon-pro { background: linear-gradient(135deg, #dcfce7 0%, #f0fdf4 100%); color: #16a34a; }
.analytics-metric-card-pro--blue .analytics-metric-icon-pro { background: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 100%); color: #0284c7; }
.analytics-metric-card-pro--amber .analytics-metric-icon-pro { background: linear-gradient(135deg, #fef3c7 0%, #fffbeb 100%); color: #d97706; }
.analytics-metric-card-pro--cyan .analytics-metric-icon-pro { background: linear-gradient(135deg, #cffafe 0%, #ecfeff 100%); color: #0891b2; }

.analytics-metric-icon-pro svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.analytics-metric-copy-pro {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 4px;
  min-width: 0;
}

.analytics-metric-copy-pro span {
  color: #64718a;
  font-size: 10.8px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.analytics-metric-copy-pro strong {
  color: #07142f;
  font-size: 22px;
  line-height: 1.04;
  font-weight: 780;
  letter-spacing: -0.025em;
}

.analytics-metric-copy-pro p {
  margin: 0;
  color: #667189;
  font-size: 12.2px;
  line-height: 1.35;
  font-weight: 450;
}

.analytics-insight-grid-pro,
.analytics-main-grid-pro {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(420px, 0.82fr);
  gap: 18px;
}

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

.analytics-panel-pro {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(213, 222, 239, 0.95);
  border-radius: 24px;
  background: radial-gradient(circle at 94% 0%, rgba(124, 58, 237, 0.06) 0, rgba(124, 58, 237, 0) 30%), linear-gradient(180deg, rgba(255,255,255,0.94) 0%, rgba(250,252,255,0.92) 100%);
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.052);
  padding: 20px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.analytics-panel-pro:hover {
  border-color: rgba(124, 92, 255, 0.24);
  box-shadow: 0 20px 50px rgba(109, 69, 245, 0.085);
  transform: translateY(-1px);
}

.analytics-panel-head-pro {
  position: relative;
  margin-bottom: 16px;
  padding-bottom: 13px;
  border-bottom: 1px solid rgba(223, 230, 241, 0.78);
}

.analytics-panel-head-pro::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 72px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #8b5cf6, #6d45f5);
}

.analytics-panel-head-pro h3 {
  margin: 0;
  color: #07142f;
  font-size: 16px;
  line-height: 1.22;
  font-weight: 680;
  letter-spacing: -0.01em;
}

.analytics-panel-head-pro p {
  margin: 7px 0 0;
  color: #64718a;
  font-size: 12.8px;
  line-height: 1.5;
  font-weight: 430;
}

.analytics-score-body-pro {
  display: grid;
  grid-template-columns: 178px minmax(0, 1fr);
  align-items: center;
  gap: 20px;
}

.analytics-score-ring-pro {
  --score: 0;
  width: 178px;
  height: 178px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: conic-gradient(#7c3aed calc(var(--score) * 1%), #e9ddff 0);
  box-shadow: 0 18px 42px rgba(109, 69, 245, 0.12);
}

.analytics-score-ring-pro > div {
  width: 116px;
  height: 116px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff 0%, #faf8ff 100%);
  box-shadow: inset 0 0 0 1px rgba(223,230,241,0.92), 0 12px 26px rgba(15,23,42,0.06);
}

.analytics-score-ring-pro strong {
  color: #07142f;
  font-size: 30px;
  line-height: 1;
  font-weight: 790;
}

.analytics-score-ring-pro span {
  color: #667189;
  font-size: 12px;
  font-weight: 560;
}

.analytics-score-list-pro,
.analytics-quality-list-pro,
.analytics-funnel-list-pro,
.analytics-platform-list-pro,
.analytics-readiness-list-pro,
.analytics-insights-list-pro,
.analytics-account-list-pro {
  display: grid;
  gap: 12px;
}

.analytics-score-row-pro,
.analytics-funnel-row-pro {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(223, 230, 241, 0.88);
  border-radius: 16px;
  background: rgba(255,255,255,0.76);
  box-shadow: 0 8px 18px rgba(15,23,42,0.026);
  padding: 12px;
}

.analytics-score-row-pro > div,
.analytics-funnel-row-pro > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.analytics-score-row-pro span,
.analytics-funnel-row-pro span {
  color: #41506a;
  font-size: 13px;
  font-weight: 500;
}

.analytics-score-row-pro strong,
.analytics-funnel-row-pro strong {
  color: #07142f;
  font-size: 14px;
  font-weight: 650;
}

.analytics-score-row-pro p,
.analytics-funnel-row-pro p {
  margin: 0;
  color: #6b7890;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 430;
}

.analytics-progress-track-pro {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #eef2f8;
  box-shadow: inset 0 1px 2px rgba(15,23,42,0.05);
}

.analytics-progress-fill-pro {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8b5cf6, #6d45f5);
}

.analytics-progress-fill-pro--youtube { background: linear-gradient(90deg, #ef4444, #f97316); }
.analytics-progress-fill-pro--tiktok { background: linear-gradient(90deg, #0f172a, #8b5cf6); }
.analytics-progress-fill-pro--local { background: linear-gradient(90deg, #38bdf8, #7c3aed); }
.analytics-progress-fill-pro--green { background: linear-gradient(90deg, #22c55e, #86efac); }
.analytics-progress-fill-pro--blue { background: linear-gradient(90deg, #0ea5e9, #7dd3fc); }

.analytics-insight-card-pro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(223,230,241,0.90);
  border-radius: 18px;
  background: rgba(255,255,255,0.80);
  padding: 14px;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.analytics-insight-card-pro:hover {
  border-color: rgba(124,92,255,0.28);
  box-shadow: 0 14px 30px rgba(109,69,245,0.08);
  transform: translateY(-1px);
}

.analytics-insight-card-pro strong {
  display: block;
  color: #07142f;
  font-size: 14px;
  font-weight: 660;
}

.analytics-insight-card-pro p {
  margin: 6px 0 0;
  color: #64718a;
  font-size: 12.6px;
  line-height: 1.45;
  font-weight: 420;
}

.analytics-insight-card-pro button {
  min-height: 36px;
  border: 1px solid rgba(124,92,255,0.18);
  border-radius: 13px;
  background: #ffffff;
  color: #6d45f5;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}

.analytics-chart-canvas-pro {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(213, 222, 239, 0.86);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.86) 0%, rgba(248,250,252,0.92) 100%), radial-gradient(circle at 18% 0%, rgba(124,58,237,0.13), transparent 32%), radial-gradient(circle at 86% 100%, rgba(56,189,248,0.10), transparent 30%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.88);
}

.analytics-chart-canvas-pro svg {
  width: 100%;
  height: 330px;
  display: block;
}

.analytics-chart-grid-line-pro { stroke: rgba(148, 163, 184, 0.24); stroke-width: 1; }
.analytics-chart-axis-pro { stroke: rgba(100, 116, 139, 0.28); stroke-width: 1.25; }
.analytics-chart-y-label-pro,
.analytics-chart-x-label-pro,
.analytics-chart-axis-title-pro { fill: #667189; font-size: 11px; font-weight: 560; }
.analytics-chart-axis-title-pro { font-size: 12px; font-weight: 600; }
.analytics-chart-area-pro { fill: rgba(124, 58, 237, 0.10); }
.analytics-chart-line-pro { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.analytics-chart-line-pro--published { stroke: #7c3aed; }
.analytics-chart-line-pro--ready { stroke: #38bdf8; opacity: .82; }
.analytics-chart-line-pro--views { stroke: rgba(100, 116, 139, 0.42); stroke-width: 2; }
.analytics-chart-dot-pro { fill: #ffffff; stroke: #6d45f5; stroke-width: 3; filter: drop-shadow(0 4px 7px rgba(109,69,245,0.16)); }

.analytics-chart-hotspot-pro {
  position: absolute;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  transform: translate(-50%, -50%);
  cursor: pointer;
}

.analytics-chart-hotspot-pro > span {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  z-index: 4;
  min-width: 168px;
  display: none;
  gap: 4px;
  border: 1px solid rgba(124,92,255,0.18);
  border-radius: 15px;
  background: rgba(255,255,255,0.96);
  box-shadow: 0 18px 40px rgba(15,23,42,0.14);
  padding: 10px 12px;
  text-align: left;
  transform: translateX(-50%);
}

.analytics-chart-hotspot-pro:hover > span,
.analytics-chart-hotspot-pro:focus-visible > span {
  display: grid;
}

.analytics-chart-hotspot-pro b { color: #07142f; font-size: 12px; font-weight: 700; }
.analytics-chart-hotspot-pro em { color: #53627a; font-size: 11.5px; font-style: normal; font-weight: 450; }

.analytics-chart-legend-pro {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  color: #53627a;
  font-size: 11.5px;
  font-weight: 560;
  padding: 12px 4px 0;
}

.analytics-chart-legend-pro span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.analytics-chart-legend-pro i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #94a3b8;
}
.analytics-chart-legend-pro .is-published { background: #7c3aed; }
.analytics-chart-legend-pro .is-ready { background: #38bdf8; }
.analytics-chart-legend-pro .is-views { background: #94a3b8; }

.analytics-platform-row-pro,
.analytics-account-row-pro,
.analytics-readiness-row-pro {
  border: 1px solid rgba(223,230,241,0.88);
  border-radius: 18px;
  background: rgba(255,255,255,0.78);
  box-shadow: 0 10px 22px rgba(15,23,42,0.035);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background .18s ease;
}

.analytics-platform-row-pro {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.analytics-platform-row-pro:hover,
.analytics-account-row-pro:hover,
.analytics-readiness-row-pro:hover {
  border-color: rgba(124,92,255,0.28);
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(109,69,245,0.08);
  transform: translateY(-1px);
}

.analytics-platform-row-pro > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.analytics-platform-row-pro strong {
  color: #07142f;
  font-size: 14px;
  font-weight: 650;
}

.analytics-platform-row-pro > div:first-child span {
  color: #667189;
  font-size: 12px;
  font-weight: 450;
}

.analytics-platform-metrics-pro,
.analytics-account-stats-pro {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.analytics-platform-metrics-pro span,
.analytics-account-stats-pro span {
  display: grid;
  gap: 3px;
  border-radius: 13px;
  background: rgba(248,250,252,0.90);
  padding: 9px;
}

.analytics-platform-metrics-pro small,
.analytics-account-stats-pro small {
  color: #738198;
  font-size: 10.5px;
  font-weight: 460;
}

.analytics-platform-metrics-pro b,
.analytics-account-stats-pro b {
  color: #07142f;
  font-size: 13px;
  font-weight: 650;
}

.analytics-account-row-pro {
  display: grid;
  grid-template-columns: 46px minmax(0, 1.1fr) minmax(220px, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  cursor: pointer;
}

.analytics-account-avatar-pro {
  width: 46px;
  height: 46px;
  overflow: hidden;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, #f0e7ff 0%, #eef2ff 100%);
  color: #6d45f5;
  font-size: 13px;
  font-weight: 720;
}

.analytics-account-avatar-pro img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.analytics-account-row-pro strong {
  display: block;
  color: #07142f;
  font-size: 13.5px;
  font-weight: 650;
}

.analytics-account-row-pro span {
  color: #667189;
  font-size: 12px;
  font-weight: 420;
}

.analytics-account-badge-pro {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 10px;
  background: #f1f5f9;
  color: #334155;
  font-size: 11.6px;
  font-style: normal;
  font-weight: 620;
  white-space: nowrap;
}

.analytics-account-badge-pro--green { background: #dcfce7; color: #166534; }
.analytics-account-badge-pro--amber { background: #fef3c7; color: #92400e; }
.analytics-account-badge-pro--red { background: #fee2e2; color: #991b1b; }
.analytics-account-badge-pro--blue { background: #e0f2fe; color: #075985; }

.analytics-readiness-row-pro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 12px;
  width: 100%;
  border-color: rgba(223,230,241,0.88);
  padding: 13px 14px;
  text-align: left;
  cursor: pointer;
}

.analytics-readiness-row-pro span { color: #25324a; font-size: 13px; font-weight: 580; }
.analytics-readiness-row-pro strong { color: #07142f; font-size: 17px; font-weight: 720; }
.analytics-readiness-row-pro small { grid-column: 1 / -1; color: #667189; font-size: 12px; font-weight: 420; }

.analytics-best-panel-pro {
  padding: 0;
}

.analytics-best-panel-pro .analytics-panel-head-pro {
  margin: 0;
  padding: 20px 20px 15px;
}

.analytics-best-table-pro {
  display: grid;
  gap: 10px;
  overflow: auto;
  padding: 17px;
}

.analytics-best-row-pro {
  display: grid;
  grid-template-columns: minmax(260px, 1.5fr) minmax(120px, 0.65fr) minmax(130px, 0.6fr) minmax(95px, 0.45fr) minmax(150px, 0.7fr) minmax(90px, 0.4fr);
  gap: 12px;
  align-items: center;
  min-width: 980px;
  border: 1px solid rgba(223,230,241,0.92);
  border-radius: 18px;
  background: rgba(255,255,255,0.86);
  box-shadow: 0 10px 24px rgba(15,23,42,0.035);
  padding: 12px 13px;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background .18s ease;
}

.analytics-best-row-pro:hover:not(.analytics-best-row-pro--head) {
  border-color: rgba(124,92,255,0.30);
  background: linear-gradient(135deg, rgba(255,255,255,0.98) 0%, rgba(248,247,255,0.96) 100%);
  box-shadow: 0 16px 36px rgba(109,69,245,0.09);
  transform: translateY(-1px);
}

.analytics-best-row-pro--head {
  min-height: 42px;
  border-color: rgba(124,92,255,0.15);
  background: linear-gradient(135deg, rgba(245,243,255,0.98) 0%, rgba(241,245,249,0.90) 100%);
  box-shadow: none;
}

.analytics-best-row-pro span {
  min-width: 0;
  overflow: hidden;
  color: #41506a;
  font-size: 12.8px;
  line-height: 1.4;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.analytics-best-row-pro span:first-child {
  color: #25324a;
  font-weight: 600;
}

.analytics-best-row-pro--head span {
  color: #07142f;
  font-size: 12.2px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.analytics-best-row-pro em {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  background: #ede9fe;
  color: #07142f;
  padding: 0 10px;
  font-size: 11.8px;
  font-style: normal;
  font-weight: 600;
}

.analytics-state-pro,
.analytics-empty-state-pro {
  display: grid;
  justify-items: center;
  gap: 9px;
  border: 1.5px dashed rgba(124,92,255,0.22);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(245,243,255,0.62), rgba(255,255,255,0.86));
  color: #53627a;
  padding: 26px;
  text-align: center;
}

.analytics-state-pro strong,
.analytics-empty-state-pro strong {
  color: #25324a;
  font-size: 14px;
  font-weight: 650;
}

.analytics-state-pro p,
.analytics-empty-state-pro p {
  margin: 0;
  max-width: 420px;
  color: #667189;
  font-size: 12.5px;
  line-height: 1.45;
}

.analytics-spinner-pro {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 3px solid rgba(124,92,255,0.18);
  border-top-color: #7c3aed;
  animation: analyticsSpinPro 0.85s linear infinite;
}

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

@media (max-width: 1280px) {
  .analytics-metrics-grid-pro { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .analytics-insight-grid-pro,
  .analytics-main-grid-pro,
  .analytics-deep-grid-pro { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .analytics-hero-pro { align-items: stretch; flex-direction: column; padding: 22px; }
  .analytics-hero-copy-pro h2 { font-size: 22px; }
  .analytics-hero-actions-pro { justify-content: stretch; }
  .analytics-period-select-pro,
  .analytics-period-select-pro select,
  .analytics-soft-button-pro,
  .analytics-primary-button-pro { width: 100%; }
  .analytics-metrics-grid-pro { grid-template-columns: 1fr; }
  .analytics-score-body-pro { grid-template-columns: 1fr; justify-items: center; }
  .analytics-account-row-pro { grid-template-columns: 46px minmax(0, 1fr); }
  .analytics-account-stats-pro,
  .analytics-account-badge-pro { grid-column: 1 / -1; }
}

/* Autopublish page v1 */
.autopublish-page-pro {
  display: grid;
  gap: 20px;
  color: #0f172a;
}

.autopublish-hero-pro {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 138px;
  border: 1px solid rgba(213, 222, 239, 0.95);
  border-radius: 28px;
  background:
    radial-gradient(circle at 5% 0%, rgba(139, 92, 246, 0.18) 0, rgba(139, 92, 246, 0) 32%),
    radial-gradient(circle at 96% 12%, rgba(56, 189, 248, 0.12) 0, rgba(56, 189, 248, 0) 35%),
    linear-gradient(135deg, #ffffff 0%, #fbf9ff 47%, #f8fafc 100%);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.055);
  padding: 26px 28px;
}

.autopublish-hero-pro::before {
  content: '';
  position: absolute;
  inset: -110px auto auto 46%;
  width: 380px;
  height: 380px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.085) 0, rgba(124, 58, 237, 0) 67%);
  pointer-events: none;
}

.autopublish-hero-copy-pro,
.autopublish-hero-actions-pro {
  position: relative;
  z-index: 1;
}

.autopublish-hero-copy-pro {
  display: grid;
  gap: 9px;
  max-width: 900px;
}

.autopublish-hero-copy-pro h2 {
  margin: 0;
  color: #07142f;
  font-size: 28px;
  line-height: 1.12;
  font-weight: 780;
  letter-spacing: -0.03em;
}

.autopublish-hero-copy-pro p {
  margin: 0;
  color: #5b6780;
  font-size: 14px;
  line-height: 1.58;
  font-weight: 450;
}

.autopublish-hero-actions-pro,
.autopublish-panel-footer-pro {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.autopublish-button-pro {
  min-height: 44px;
  border-radius: 15px;
  border: 1px solid rgba(203, 213, 225, 0.95);
  background: rgba(255, 255, 255, 0.92);
  color: #24324d;
  padding: 0 18px;
  font-size: 12.8px;
  font-weight: 650;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 12px 25px rgba(15, 23, 42, 0.045);
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.autopublish-button-pro:hover {
  border-color: rgba(124, 92, 255, 0.34);
  background: #ffffff;
  color: #6d45f5;
  transform: translateY(-1px);
}

.autopublish-button-pro--primary {
  border-color: transparent;
  background: linear-gradient(135deg, #8b5cf6 0%, #6d45f5 100%);
  color: #ffffff;
  box-shadow: 0 16px 34px rgba(109, 69, 245, 0.24);
}

.autopublish-button-pro--primary:hover {
  background: linear-gradient(135deg, #9566f8 0%, #754df7 100%);
  color: #ffffff;
  box-shadow: 0 18px 38px rgba(109, 69, 245, 0.30);
}

.autopublish-dashboard-pro,
.autopublish-loading-shell-pro {
  display: grid;
  gap: 20px;
}

.autopublish-metrics-grid-pro {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.autopublish-metric-card-pro {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 106px;
  border: 1px solid rgba(213, 222, 239, 0.95);
  border-radius: 22px;
  background: radial-gradient(circle at 91% 92%, rgba(124, 58, 237, 0.075) 0, rgba(124, 58, 237, 0) 30%), linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.055);
  padding: 17px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.autopublish-metric-card-pro::after {
  content: '';
  position: absolute;
  right: -28px;
  bottom: -48px;
  width: 112px;
  height: 112px;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.08);
}

.autopublish-metric-card-pro--green::after { background: rgba(34, 197, 94, 0.09); }
.autopublish-metric-card-pro--blue::after { background: rgba(56, 189, 248, 0.11); }
.autopublish-metric-card-pro--amber::after { background: rgba(245, 158, 11, 0.10); }
.autopublish-metric-card-pro--violet::after { background: rgba(124, 58, 237, 0.09); }

.autopublish-metric-card-pro:hover {
  border-color: rgba(124, 92, 255, 0.36);
  background: radial-gradient(circle at 20% 50%, rgba(124, 92, 255, 0.075), transparent 44%), #ffffff;
  box-shadow: 0 0 0 4px rgba(124, 92, 255, 0.055), 0 18px 42px rgba(82, 63, 180, 0.14);
  transform: translateY(-2px);
}

.autopublish-metric-icon-pro {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, #f0e7ff 0%, #eef2ff 100%);
  color: #6d45f5;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 8px 22px rgba(109, 69, 245, 0.08);
}

.autopublish-metric-icon-pro svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.autopublish-metric-copy-pro {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 4px;
  min-width: 0;
}

.autopublish-metric-copy-pro span {
  color: #64718a;
  font-size: 10.8px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.autopublish-metric-copy-pro strong {
  color: #07142f;
  font-size: 22px;
  line-height: 1.04;
  font-weight: 780;
  letter-spacing: -0.025em;
}

.autopublish-metric-copy-pro p {
  margin: 0;
  color: #667189;
  font-size: 12.2px;
  line-height: 1.35;
  font-weight: 450;
}

.autopublish-panel-pro {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(213, 222, 239, 0.95);
  border-radius: 24px;
  background: radial-gradient(circle at 94% 0%, rgba(124, 58, 237, 0.06) 0, rgba(124, 58, 237, 0) 30%), linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(250, 252, 255, 0.92) 100%);
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.052);
  padding: 20px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.autopublish-panel-pro:hover {
  border-color: rgba(124, 92, 255, 0.24);
  box-shadow: 0 20px 50px rgba(109, 69, 245, 0.085);
  transform: translateY(-1px);
}

.autopublish-panel-head-pro {
  margin-bottom: 16px;
  padding-bottom: 13px;
  border-bottom: 1px solid rgba(223, 230, 241, 0.78);
}

.autopublish-panel-head-pro h3 {
  margin: 0 0 6px;
  color: #07142f;
  font-size: 16px;
  line-height: 1.22;
  font-weight: 680;
  letter-spacing: -0.01em;
}

.autopublish-panel-head-pro p {
  margin: 0;
  color: #64718a;
  font-size: 12.8px;
  line-height: 1.5;
  font-weight: 430;
}

.autopublish-workflow-pro {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.autopublish-workflow-step-pro {
  display: flex;
  gap: 12px;
  min-height: 122px;
  border: 1px solid rgba(223, 230, 241, 0.88);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.74);
  padding: 15px;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.035);
}

.autopublish-workflow-index-pro {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: #ede9fe;
  color: #6d45f5;
  font-size: 13px;
  font-weight: 760;
}

.autopublish-workflow-step-pro span {
  display: block;
  margin-bottom: 5px;
  color: #6d45f5;
  font-size: 12px;
  font-weight: 650;
}

.autopublish-workflow-step-pro strong {
  display: block;
  color: #07142f;
  font-size: 15px;
  font-weight: 680;
}

.autopublish-workflow-step-pro p {
  margin: 6px 0 0;
  color: #657188;
  font-size: 12.7px;
  line-height: 1.45;
}

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

.autopublish-form-grid-pro {
  display: grid;
  gap: 12px;
}

.autopublish-setting-row-pro,
.autopublish-account-row-pro,
.autopublish-readiness-card-pro {
  border: 1px solid rgba(223, 230, 241, 0.88);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.026);
}

.autopublish-setting-row-pro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, 0.7fr);
  gap: 14px;
  align-items: center;
  min-height: 68px;
  padding: 12px 14px;
}

.autopublish-setting-row-pro > div,
.autopublish-account-row-pro > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.autopublish-setting-row-pro strong,
.autopublish-account-column-head-pro strong,
.autopublish-account-row-pro strong,
.autopublish-readiness-card-pro strong {
  color: #25324a;
  font-size: 13.2px;
  font-weight: 620;
}

.autopublish-setting-row-pro span,
.autopublish-account-row-pro span,
.autopublish-readiness-card-pro p,
.autopublish-mini-empty-pro p {
  margin: 0;
  color: #667189;
  font-size: 12.4px;
  line-height: 1.4;
  font-weight: 430;
}

.autopublish-setting-row-pro select,
.autopublish-setting-row-pro input[type='time'],
.autopublish-setting-row-pro input[type='number'] {
  width: 100%;
  min-height: 40px;
  border: 1px solid rgba(203, 213, 225, 0.95);
  border-radius: 14px;
  background: #ffffff;
  color: #17233b;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 560;
  outline: none;
}

.autopublish-setting-row-pro--toggle {
  grid-template-columns: minmax(0, 1fr) 0 48px;
}

.autopublish-setting-row-pro--toggle input {
  position: absolute;
  opacity: 0;
}

.autopublish-setting-row-pro--toggle i {
  position: relative;
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: #e2e8f0;
  transition: background 0.18s ease;
}

.autopublish-setting-row-pro--toggle i::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.14);
  transition: transform 0.18s ease;
}

.autopublish-setting-row-pro--toggle input:checked + i {
  background: linear-gradient(135deg, #8b5cf6 0%, #6d45f5 100%);
}

.autopublish-setting-row-pro--toggle input:checked + i::after {
  transform: translateX(20px);
}

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

.autopublish-account-column-pro {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.autopublish-account-column-head-pro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.autopublish-account-column-head-pro button,
.autopublish-save-bar-pro button,
.autopublish-readiness-card-pro button {
  min-height: 32px;
  border: 1px solid rgba(203, 213, 225, 0.95);
  border-radius: 12px;
  background: #ffffff;
  color: #6d45f5;
  padding: 0 11px;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}

.autopublish-account-row-pro {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
  cursor: pointer;
}

.autopublish-account-row-pro input {
  width: 16px;
  height: 16px;
  accent-color: #7c3aed;
}

.autopublish-account-row-pro em {
  border-radius: 999px;
  padding: 5px 9px;
  font-style: normal;
  font-size: 11.5px;
  font-weight: 620;
}

.autopublish-account-row-pro em.is-ok {
  background: #dcfce7;
  color: #166534;
}

.autopublish-account-row-pro em.is-warn {
  background: #fef3c7;
  color: #92400e;
}

.autopublish-save-bar-pro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  border: 1px dashed rgba(124, 92, 255, 0.24);
  border-radius: 16px;
  background: rgba(245, 243, 255, 0.48);
  padding: 12px;
}

.autopublish-save-bar-pro span {
  color: #667189;
  font-size: 12.4px;
  font-weight: 450;
}

.autopublish-plan-list-pro {
  display: grid;
  gap: 10px;
  overflow: auto;
}

.autopublish-plan-row-pro {
  display: grid;
  grid-template-columns: 92px 120px minmax(150px, 0.85fr) minmax(220px, 1.4fr) minmax(210px, 1.1fr) 150px;
  gap: 12px;
  align-items: center;
  min-width: 1040px;
  border: 1px solid rgba(223, 230, 241, 0.92);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.035);
  padding: 13px;
}

.autopublish-plan-row-pro--head {
  min-height: 42px;
  border-color: rgba(124, 92, 255, 0.15);
  background: linear-gradient(135deg, rgba(245, 243, 255, 0.98) 0%, rgba(241, 245, 249, 0.90) 100%);
  box-shadow: none;
}

.autopublish-plan-row-pro span {
  min-width: 0;
  overflow: hidden;
  color: #41506a;
  font-size: 12.8px;
  line-height: 1.4;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.autopublish-plan-row-pro--head span {
  color: #07142f;
  font-size: 12.1px;
  font-weight: 620;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.autopublish-plan-row-pro .is-ready,
.autopublish-plan-row-pro .is-blocked {
  width: fit-content;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 11.8px;
  font-weight: 600;
}

.autopublish-plan-row-pro .is-ready {
  background: #dcfce7;
  color: #14532d;
}

.autopublish-plan-row-pro .is-blocked {
  background: #fef3c7;
  color: #92400e;
}

.autopublish-readiness-list-pro {
  display: grid;
  gap: 12px;
}

.autopublish-readiness-card-pro {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
}

.autopublish-readiness-card-pro i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #94a3b8;
  box-shadow: 0 0 0 5px rgba(148, 163, 184, 0.12);
}

.autopublish-readiness-card-pro--success i { background: #22c55e; box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.13); }
.autopublish-readiness-card-pro--warning i { background: #f59e0b; box-shadow: 0 0 0 5px rgba(245, 158, 11, 0.13); }
.autopublish-readiness-card-pro--danger i { background: #ef4444; box-shadow: 0 0 0 5px rgba(239, 68, 68, 0.12); }

.autopublish-mini-empty-pro,
.autopublish-state-pro {
  display: grid;
  gap: 8px;
  border: 1.5px dashed rgba(124, 92, 255, 0.22);
  border-radius: 18px;
  background: rgba(245, 243, 255, 0.42);
  padding: 18px;
}

.autopublish-mini-empty-pro strong,
.autopublish-state-pro strong {
  color: #25324a;
  font-size: 14px;
  font-weight: 640;
}

.autopublish-state-pro {
  justify-items: center;
  text-align: center;
  padding: 34px;
}

.autopublish-state-icon-pro {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: #ede9fe;
  color: #6d45f5;
}

.autopublish-state-icon-pro svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 1280px) {
  .autopublish-metrics-grid-pro {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .autopublish-control-grid-pro,
  .autopublish-workflow-pro {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .autopublish-hero-pro {
    align-items: stretch;
    flex-direction: column;
  }

  .autopublish-hero-actions-pro,
  .autopublish-panel-footer-pro {
    justify-content: stretch;
  }

  .autopublish-button-pro {
    width: 100%;
  }

  .autopublish-metrics-grid-pro,
  .autopublish-account-columns-pro {
    grid-template-columns: 1fr;
  }

  .autopublish-setting-row-pro {
    grid-template-columns: 1fr;
  }
}


/* --- Autopublish page refinement: worker, preflight, history, overall polish --- */
.autopublish-dashboard-pro {
  gap: 18px;
}

.autopublish-worker-panel-pro {
  display: grid;
  gap: 16px;
}

.autopublish-worker-grid-pro {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.autopublish-worker-card-pro {
  min-height: 104px;
  display: grid;
  align-content: start;
  gap: 6px;
  border: 1px solid rgba(223, 230, 241, 0.92);
  border-radius: 20px;
  background:
    radial-gradient(circle at 100% 100%, rgba(124, 58, 237, 0.07) 0, rgba(124, 58, 237, 0) 30%),
    linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(249,251,255,0.94) 100%);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.045);
  padding: 15px 16px;
}

.autopublish-worker-card-pro span {
  color: #667189;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.autopublish-worker-card-pro strong {
  color: #07142f;
  font-size: 20px;
  line-height: 1.05;
  font-weight: 760;
  letter-spacing: -0.025em;
}

.autopublish-worker-card-pro p {
  margin: 0;
  color: #627089;
  font-size: 12.4px;
  line-height: 1.4;
}

.autopublish-worker-card-pro--0,
.autopublish-worker-card-pro--1 {
  background:
    radial-gradient(circle at 100% 100%, rgba(124, 58, 237, 0.08) 0, rgba(124, 58, 237, 0) 32%),
    linear-gradient(180deg, #ffffff 0%, #faf8ff 100%);
}

.autopublish-worker-card-pro--2,
.autopublish-worker-card-pro--3 {
  background:
    radial-gradient(circle at 100% 100%, rgba(56, 189, 248, 0.08) 0, rgba(56, 189, 248, 0) 32%),
    linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.autopublish-worker-card-pro--4 {
  background:
    radial-gradient(circle at 100% 100%, rgba(34, 197, 94, 0.08) 0, rgba(34, 197, 94, 0) 32%),
    linear-gradient(180deg, #ffffff 0%, #f7fff9 100%);
}

.autopublish-worker-card-pro--5,
.autopublish-worker-card-pro--6 {
  background:
    radial-gradient(circle at 100% 100%, rgba(245, 158, 11, 0.08) 0, rgba(245, 158, 11, 0) 32%),
    linear-gradient(180deg, #ffffff 0%, #fffdf8 100%);
}

.autopublish-loop-status-pro {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(223, 230, 241, 0.92);
  border-radius: 20px;
  padding: 16px 18px;
  background: linear-gradient(135deg, rgba(245, 243, 255, 0.90) 0%, rgba(255, 255, 255, 0.92) 100%);
}

.autopublish-loop-status-pro strong {
  color: #07142f;
  font-size: 16px;
  font-weight: 700;
}

.autopublish-loop-status-pro p,
.autopublish-worker-note-pro {
  margin: 0;
  color: #627089;
  font-size: 12.8px;
  line-height: 1.5;
}

.autopublish-loop-status-pro.is-running {
  border-color: rgba(34, 197, 94, 0.22);
  background: linear-gradient(135deg, rgba(240, 253, 244, 0.96) 0%, rgba(255, 255, 255, 0.94) 100%);
}

.autopublish-loop-status-pro.is-stopped {
  border-color: rgba(124, 58, 237, 0.16);
}

.autopublish-worker-actions-pro {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.autopublish-button-pro--danger {
  border-color: transparent;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff;
  box-shadow: 0 16px 34px rgba(220, 38, 38, 0.22);
}

.autopublish-button-pro--danger:hover {
  background: linear-gradient(135deg, #f15a5a 0%, #e23838 100%);
  color: #ffffff;
  box-shadow: 0 18px 38px rgba(220, 38, 38, 0.28);
}

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

.autopublish-preflight-card-pro {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(223, 230, 241, 0.92);
  border-radius: 20px;
  background: rgba(255,255,255,0.88);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.035);
  padding: 14px 15px;
}

.autopublish-preflight-card-pro--ready {
  background: linear-gradient(180deg, rgba(240,253,244,0.90) 0%, rgba(255,255,255,0.94) 100%);
  border-color: rgba(34, 197, 94, 0.18);
}

.autopublish-preflight-card-pro--blocked,
.autopublish-preflight-card-pro--warning,
.autopublish-preflight-card-pro--error {
  background: linear-gradient(180deg, rgba(255,251,235,0.94) 0%, rgba(255,255,255,0.94) 100%);
  border-color: rgba(245, 158, 11, 0.18);
}

.autopublish-preflight-top-pro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.autopublish-preflight-top-pro strong {
  color: #0f172a;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 650;
}

.autopublish-preflight-top-pro .is-ready,
.autopublish-preflight-top-pro .is-blocked {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 11.5px;
  font-weight: 650;
}

.autopublish-preflight-top-pro .is-ready {
  background: #dcfce7;
  color: #166534;
}

.autopublish-preflight-top-pro .is-blocked {
  background: #fef3c7;
  color: #92400e;
}

.autopublish-preflight-meta-pro {
  display: grid;
  gap: 8px;
}

.autopublish-preflight-meta-pro p {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.autopublish-preflight-meta-pro span {
  color: #667189;
  font-size: 12px;
  font-weight: 520;
}

.autopublish-preflight-meta-pro em {
  color: #1f2d46;
  font-size: 12.4px;
  line-height: 1.35;
  font-style: normal;
  font-weight: 580;
  text-align: right;
}

.autopublish-history-list-pro {
  display: grid;
  gap: 10px;
  overflow: auto;
}

.autopublish-history-row-pro {
  display: grid;
  grid-template-columns: 128px 110px minmax(160px, 0.9fr) minmax(220px, 1.3fr) 130px minmax(220px, 1.2fr);
  gap: 12px;
  align-items: center;
  min-width: 1040px;
  border: 1px solid rgba(223, 230, 241, 0.92);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.035);
  padding: 13px;
}

.autopublish-history-row-pro--head {
  min-height: 42px;
  border-color: rgba(124, 92, 255, 0.15);
  background: linear-gradient(135deg, rgba(245, 243, 255, 0.98) 0%, rgba(241, 245, 249, 0.90) 100%);
  box-shadow: none;
}

.autopublish-history-row-pro span {
  min-width: 0;
  overflow: hidden;
  color: #41506a;
  font-size: 12.8px;
  line-height: 1.4;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.autopublish-history-row-pro--head span {
  color: #07142f;
  font-size: 12.1px;
  font-weight: 620;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.autopublish-history-row-pro a {
  color: #6d45f5;
  font-weight: 600;
  text-decoration: none;
}

.autopublish-history-row-pro a:hover {
  text-decoration: underline;
}

.autopublish-history-row-pro .is-status {
  width: fit-content;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 11.8px;
  font-weight: 600;
}

.autopublish-history-row-pro .is-status--done {
  background: #dcfce7;
  color: #14532d;
}

.autopublish-history-row-pro .is-status--queued,
.autopublish-history-row-pro .is-status--running {
  background: #ede9fe;
  color: #6d45f5;
}

.autopublish-history-row-pro .is-status--error {
  background: #fee2e2;
  color: #b91c1c;
}

.autopublish-history-row-pro .is-status--warning {
  background: #fef3c7;
  color: #92400e;
}

.autopublish-worker-note-pro {
  padding: 2px 2px 0;
}

@media (max-width: 1280px) {
  .autopublish-worker-grid-pro,
  .autopublish-preflight-list-pro {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .autopublish-worker-grid-pro,
  .autopublish-preflight-list-pro {
    grid-template-columns: 1fr;
  }

  .autopublish-worker-actions-pro {
    flex-direction: column;
  }

  .autopublish-worker-actions-pro .autopublish-button-pro {
    width: 100%;
  }
}

/* Autopublish compact cleanup after moving technical settings to Extra */
.autopublish-dashboard-pro {
  gap: 18px;
}

.autopublish-control-grid-pro {
  gap: 22px;
}

.autopublish-panel-pro {
  padding: 22px;
}

.autopublish-form-grid-pro {
  gap: 14px;
}

.autopublish-setting-row-pro,
.autopublish-account-row-pro,
.autopublish-readiness-card-pro {
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.autopublish-setting-row-pro:hover,
.autopublish-account-row-pro:hover,
.autopublish-readiness-card-pro:hover {
  border-color: rgba(124, 92, 255, 0.24);
  background: #ffffff;
  box-shadow: 0 14px 28px rgba(109, 69, 245, 0.075);
  transform: translateY(-1px);
}

.autopublish-panel-footer-pro {
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed rgba(124, 92, 255, 0.22);
}

.autopublish-save-bar-pro {
  margin-top: 16px;
}

.autopublish-worker-grid-pro {
  gap: 14px;
}

.autopublish-loop-status-pro {
  margin-top: 2px;
}

.autopublish-worker-actions-pro {
  margin-top: 2px;
}

.autopublish-panel-head-pro h3 {
  font-weight: 650;
}

.autopublish-setting-row-pro strong,
.autopublish-account-column-head-pro strong,
.autopublish-account-row-pro strong,
.autopublish-readiness-card-pro strong {
  font-weight: 580;
}

.autopublish-setting-row-pro span,
.autopublish-account-row-pro span,
.autopublish-readiness-card-pro p,
.autopublish-mini-empty-pro p {
  font-weight: 400;
}


/* Step 4 standard screen-text templates */
.auto-step-four-mode-grid-new {
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr) !important;
}

.auto-standard-template-field-new[hidden],
.auto-openai-style-field-new[hidden] {
  display: none !important;
}

.auto-standard-template-field-new {
  min-height: 230px !important;
}

.auto-standard-template-list-new {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.auto-standard-template-option-new {
  min-width: 0;
  min-height: 70px;
  display: grid;
  gap: 5px;
  align-content: center;
  border: 1px solid #dfe6f1;
  border-radius: 14px;
  background: #ffffff;
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.auto-standard-template-option-new:hover,
.auto-standard-template-option-new.is-selected {
  border-color: rgba(109, 69, 245, 0.38);
  box-shadow: 0 12px 24px rgba(109, 69, 245, 0.10);
  transform: translateY(-1px);
}

.auto-standard-template-sample-new {
  display: block;
  width: fit-content;
  max-width: 100%;
  color: #ffffff;
  font-size: 13px;
  line-height: 1.05;
  font-weight: 860;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  background: transparent !important;
  white-space: normal;
  text-shadow: 0 2px 0 rgba(15, 23, 42, 0.45), 0 8px 18px rgba(15, 23, 42, 0.18);
}

.auto-standard-template-name-new {
  color: #667189;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 520;
}

.auto-standard-template-actions-new {
  display: flex;
  justify-content: flex-start;
  gap: 10px;
}

.auto-standard-template-option-new.is-standard_gold_signal .auto-standard-template-sample-new,
.auto-text-style-preview-card-new[data-style="standard_gold_signal"] .auto-text-style-preview-title-new,
.auto-text-style-preview-card-new[data-style="standard_gold_signal"] .auto-text-style-preview-sample-new {
  color: #ffe36d;
  text-shadow: 0 2px 0 #7c3f00, 0 10px 22px rgba(255, 190, 44, 0.22);
}

.auto-standard-template-option-new.is-standard_blue_ice .auto-standard-template-sample-new,
.auto-text-style-preview-card-new[data-style="standard_blue_ice"] .auto-text-style-preview-title-new,
.auto-text-style-preview-card-new[data-style="standard_blue_ice"] .auto-text-style-preview-sample-new {
  color: #e6f6ff;
  text-shadow: 0 2px 0 #075985, 0 10px 22px rgba(56, 189, 248, 0.22);
}

.auto-standard-template-option-new.is-standard_green_profit .auto-standard-template-sample-new,
.auto-text-style-preview-card-new[data-style="standard_green_profit"] .auto-text-style-preview-title-new,
.auto-text-style-preview-card-new[data-style="standard_green_profit"] .auto-text-style-preview-sample-new {
  color: #dcffe8;
  text-shadow: 0 2px 0 #14532d, 0 10px 22px rgba(34, 197, 94, 0.20);
}

.auto-standard-template-option-new.is-standard_red_alert .auto-standard-template-sample-new,
.auto-text-style-preview-card-new[data-style="standard_red_alert"] .auto-text-style-preview-title-new,
.auto-text-style-preview-card-new[data-style="standard_red_alert"] .auto-text-style-preview-sample-new {
  color: #fff1f2;
  text-shadow: 0 2px 0 #7f1d1d, 0 10px 22px rgba(248, 113, 113, 0.20);
}

.auto-standard-template-option-new.is-standard_purple_neon .auto-standard-template-sample-new,
.auto-text-style-preview-card-new[data-style="standard_purple_neon"] .auto-text-style-preview-title-new,
.auto-text-style-preview-card-new[data-style="standard_purple_neon"] .auto-text-style-preview-sample-new {
  color: #f4edff;
  text-shadow: 0 2px 0 #4c1d95, 0 10px 22px rgba(167, 139, 250, 0.25);
}

.auto-standard-template-option-new.is-standard_silver_soft .auto-standard-template-sample-new,
.auto-text-style-preview-card-new[data-style="standard_silver_soft"] .auto-text-style-preview-title-new,
.auto-text-style-preview-card-new[data-style="standard_silver_soft"] .auto-text-style-preview-sample-new {
  color: #f8fafc;
  text-shadow: 0 2px 0 #334155, 0 10px 22px rgba(148, 163, 184, 0.22);
}

.auto-standard-template-option-new.is-standard_orange_energy .auto-standard-template-sample-new,
.auto-text-style-preview-card-new[data-style="standard_orange_energy"] .auto-text-style-preview-title-new,
.auto-text-style-preview-card-new[data-style="standard_orange_energy"] .auto-text-style-preview-sample-new {
  color: #fff7ed;
  text-shadow: 0 2px 0 #7c2d12, 0 10px 22px rgba(251, 146, 60, 0.22);
}

.auto-standard-template-option-new.is-standard_dark_minimal .auto-standard-template-sample-new,
.auto-text-style-preview-card-new[data-style="standard_dark_minimal"] .auto-text-style-preview-title-new,
.auto-text-style-preview-card-new[data-style="standard_dark_minimal"] .auto-text-style-preview-sample-new {
  color: #0f172a;
  text-shadow: 0 1px 0 rgba(255,255,255,0.7), 0 8px 18px rgba(15,23,42,0.12);
}

.auto-text-style-preview-card-new.is-standard-preview {
  background: linear-gradient(135deg, #172033 0%, #101827 100%);
}

.auto-text-style-preview-card-new.is-standard-preview .auto-text-style-preview-image-new {
  background: transparent;
  border-color: rgba(255,255,255,0.12);
}

.auto-text-style-preview-card-new.is-standard-preview .auto-text-style-preview-sample-new {
  background: transparent !important;
}

.auto-field-new.is-disabled-by-standard,
.auto-field-new.is-disabled-by-openai {
  opacity: 0.74;
}

@media (max-width: 980px) {
  .auto-step-four-mode-grid-new {
    grid-template-columns: 1fr !important;
  }

  .auto-standard-template-list-new {
    grid-template-columns: 1fr;
  }
}


/* Step 4 layout cleanup: clear blocks, dark standard text cards and clean preview */
.auto-step-four-new {
  display: grid;
  gap: 14px;
}

.auto-step-four-main-grid-new {
  align-items: stretch;
}

.auto-step-four-main-grid-new > .auto-field-new {
  min-height: 156px;
}

.auto-step-four-mode-grid-new {
  display: grid !important;
  grid-template-columns: minmax(280px, 0.72fr) minmax(420px, 1.28fr) !important;
  align-items: stretch !important;
  gap: 14px !important;
}

.auto-step-four-mode-grid-new > .auto-field-new {
  min-height: 188px;
}

.auto-standard-template-field-new {
  grid-column: span 1 !important;
  min-height: 0 !important;
  padding: 16px !important;
}

.auto-standard-template-field-new[hidden],
.auto-openai-style-field-new[hidden] {
  display: none !important;
}

.auto-standard-template-list-new {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
  margin-top: 8px !important;
}

.auto-standard-template-option-new {
  position: relative;
  min-height: 78px !important;
  display: grid !important;
  align-content: center !important;
  gap: 7px !important;
  padding: 12px 14px !important;
  border: 1px solid rgba(122, 142, 178, 0.22) !important;
  border-radius: 16px !important;
  background:
    radial-gradient(circle at 78% 18%, rgba(124, 92, 255, 0.16), transparent 34%),
    linear-gradient(135deg, #172033 0%, #101827 100%) !important;
  text-align: left !important;
  overflow: hidden !important;
  cursor: pointer !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06) !important;
}

.auto-standard-template-option-new::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: 0.42;
  pointer-events: none;
}

.auto-standard-template-option-new:hover,
.auto-standard-template-option-new.is-selected {
  border-color: rgba(124, 92, 255, 0.66) !important;
  box-shadow: 0 14px 30px rgba(20, 30, 55, 0.15), inset 0 0 0 1px rgba(124, 92, 255, 0.25) !important;
  transform: translateY(-1px);
}

.auto-standard-template-sample-new {
  position: relative;
  z-index: 1;
  display: block !important;
  width: fit-content !important;
  max-width: 100% !important;
  color: #ffffff;
  font-size: 16px !important;
  line-height: 1.04 !important;
  font-weight: 820 !important;
  letter-spacing: -0.035em !important;
  text-transform: uppercase;
  background: transparent !important;
  white-space: normal !important;
  text-shadow: 0 2px 0 rgba(15, 23, 42, 0.82), 0 8px 18px rgba(0, 0, 0, 0.36) !important;
}

.auto-standard-template-name-new {
  position: relative;
  z-index: 1;
  color: rgba(232, 239, 255, 0.76) !important;
  font-size: 11px !important;
  line-height: 1.2 !important;
  font-weight: 520 !important;
}

.auto-standard-template-actions-new {
  margin-top: 12px !important;
}

.auto-standard-template-status-new {
  display: block;
  margin-top: 10px !important;
  max-width: 720px;
}

/* Preview is a clean dark stage, not a two-column broken mini-window. */
.auto-step-four-style-picker-new {
  display: grid !important;
  grid-template-columns: minmax(280px, 0.72fr) minmax(420px, 1.28fr) !important;
  align-items: stretch !important;
  gap: 14px !important;
}

.auto-step-four-style-picker-new > .auto-field-new[hidden] {
  display: none !important;
}

.auto-step-four-style-picker-new > .auto-text-style-preview-card-new {
  grid-column: span 1;
}

.auto-step-four-style-picker-new > .auto-text-style-preview-card-new:first-child,
.auto-step-four-style-picker-new > .auto-text-style-preview-card-new:only-child {
  grid-column: 1 / -1;
}

.auto-text-style-preview-card-new {
  min-height: 178px !important;
  display: grid !important;
  grid-template-rows: auto 1fr !important;
  gap: 10px !important;
  padding: 16px !important;
  border: 1px solid rgba(124, 92, 255, 0.14) !important;
  border-radius: 20px !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

.auto-text-style-preview-head-new {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.auto-text-style-preview-label-new {
  color: #08142f;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 760;
}

.auto-text-style-preview-badge-new {
  display: inline-flex;
  max-width: 220px;
  color: #697796;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 560;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.auto-text-style-preview-canvas-new {
  position: relative;
  min-height: 126px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 18px;
  background:
    radial-gradient(circle at 72% 20%, rgba(124, 92, 255, 0.22), transparent 34%),
    radial-gradient(circle at 18% 78%, rgba(56, 189, 248, 0.14), transparent 35%),
    linear-gradient(135deg, #172033 0%, #0f172a 100%);
}

.auto-text-style-preview-canvas-new::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.055) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.055) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.35;
}

.auto-text-style-preview-image-new {
  position: relative;
  z-index: 2;
  max-width: 92%;
  max-height: 106px;
  object-fit: contain;
  background: transparent !important;
  border: none !important;
}

.auto-text-style-preview-sample-new,
.auto-text-style-preview-title-new {
  position: relative;
  z-index: 2;
  max-width: 86%;
  color: #ffffff;
  font-size: clamp(24px, 3vw, 42px) !important;
  line-height: 1.02 !important;
  font-weight: 860 !important;
  letter-spacing: -0.045em !important;
  text-align: center !important;
  text-transform: uppercase;
  background: transparent !important;
  text-shadow: 0 3px 0 rgba(2, 6, 23, 0.88), 0 12px 26px rgba(0, 0, 0, 0.38) !important;
}

.auto-text-style-preview-card-new[data-style="standard_gold_signal"] .auto-text-style-preview-sample-new {
  color: #ffe36d !important;
  text-shadow: 0 3px 0 #7c3f00, 0 12px 26px rgba(255, 190, 44, 0.25) !important;
}

.auto-text-style-preview-card-new[data-style="standard_blue_ice"] .auto-text-style-preview-sample-new {
  color: #e6f6ff !important;
  text-shadow: 0 3px 0 #075985, 0 12px 26px rgba(56, 189, 248, 0.25) !important;
}

.auto-text-style-preview-card-new[data-style="standard_green_profit"] .auto-text-style-preview-sample-new {
  color: #dcffe8 !important;
  text-shadow: 0 3px 0 #14532d, 0 12px 26px rgba(34, 197, 94, 0.22) !important;
}

.auto-text-style-preview-card-new[data-style="standard_red_alert"] .auto-text-style-preview-sample-new {
  color: #fff1f2 !important;
  text-shadow: 0 3px 0 #7f1d1d, 0 12px 26px rgba(248, 113, 113, 0.25) !important;
}

.auto-text-style-preview-card-new[data-style="standard_purple_neon"] .auto-text-style-preview-sample-new {
  color: #f4edff !important;
  text-shadow: 0 3px 0 #4c1d95, 0 12px 26px rgba(167, 139, 250, 0.28) !important;
}

.auto-text-style-preview-card-new[data-style="standard_silver_soft"] .auto-text-style-preview-sample-new {
  color: #f8fafc !important;
  text-shadow: 0 3px 0 #334155, 0 12px 26px rgba(148, 163, 184, 0.24) !important;
}

.auto-text-style-preview-card-new[data-style="standard_orange_energy"] .auto-text-style-preview-sample-new {
  color: #fff7ed !important;
  text-shadow: 0 3px 0 #7c2d12, 0 12px 26px rgba(251, 146, 60, 0.26) !important;
}

.auto-text-style-preview-card-new[data-style="standard_dark_minimal"] .auto-text-style-preview-sample-new {
  color: #0f172a !important;
  text-shadow: 0 1px 0 rgba(255,255,255,0.75), 0 10px 22px rgba(255,255,255,0.10) !important;
}

@media (max-width: 1180px) {
  .auto-step-four-mode-grid-new,
  .auto-step-four-style-picker-new {
    grid-template-columns: 1fr !important;
  }

  .auto-standard-template-list-new {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 680px) {
  .auto-standard-template-list-new {
    grid-template-columns: 1fr !important;
  }
}


/* Step 4 compact layout fix: uniqueness full width and aligned select arrows */
.auto-step-four-main-grid-new {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  align-items: stretch !important;
  gap: 14px !important;
}

.auto-step-four-main-grid-new > .auto-field-new:nth-child(3) {
  grid-column: 1 / -1 !important;
  min-height: 132px !important;
}

.auto-step-four-main-grid-new > .auto-field-new:nth-child(3) .auto-step-four-control-new {
  max-width: 540px !important;
}

.auto-step-four-control-new {
  box-sizing: border-box !important;
}

select.auto-step-four-control-new,
.auto-step-four-control-new:is(select) {
  appearance: none !important;
  -webkit-appearance: none !important;
  min-height: 42px !important;
  padding: 10px 42px 10px 14px !important;
  line-height: 1.25 !important;
  background-color: #ffffff !important;
  background-image:
    linear-gradient(45deg, transparent 50%, #101a33 50%),
    linear-gradient(135deg, #101a33 50%, transparent 50%) !important;
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 12px) 50% !important;
  background-size:
    6px 6px,
    6px 6px !important;
  background-repeat: no-repeat !important;
}

select.auto-step-four-control-new::-ms-expand {
  display: none !important;
}

.auto-step-four-mode-grid-new select.auto-step-four-control-new,
.auto-step-four-main-grid-new select.auto-step-four-control-new {
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 12px) 50% !important;
}

@media (max-width: 980px) {
  .auto-step-four-main-grid-new {
    grid-template-columns: 1fr !important;
  }

  .auto-step-four-main-grid-new > .auto-field-new:nth-child(3),
  .auto-step-four-main-grid-new > .auto-field-new:nth-child(3) .auto-step-four-control-new {
    grid-column: auto !important;
    max-width: none !important;
  }
}


/* Step 4: standard mode layout — left column select+preview, right column variants */
.auto-step-four-screen-layout-new {
  display: grid;
  grid-template-columns: minmax(320px, 0.56fr) minmax(520px, 1fr);
  gap: 14px;
  align-items: stretch;
}

.auto-step-four-screen-left-new {
  display: grid;
  grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  min-height: 456px;
}

.auto-step-four-screen-left-new > .auto-field-new,
.auto-step-four-screen-left-new > .auto-text-style-preview-card-new {
  min-height: 0 !important;
  height: 100%;
}

.auto-step-four-screen-right-new {
  min-width: 0;
  display: grid;
}

.auto-step-four-screen-right-new > .auto-field-new {
  min-height: 0 !important;
}

.auto-step-four-screen-right-new > .auto-standard-template-field-new {
  height: 100%;
}

.auto-step-four-screen-right-new > .auto-openai-style-field-new {
  min-height: 224px !important;
}

.auto-step-four-style-picker-new {
  display: none !important;
}

/* Select block in left column should not stretch its content weirdly. */
.auto-step-four-screen-left-new .auto-step-four-card-new {
  align-content: start;
}

/* Standard variants: make all 10 visually distinct instead of one repeated dark style. */
.auto-standard-template-list-new {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

.auto-standard-template-option-new {
  min-height: 80px !important;
  border-radius: 16px !important;
  padding: 13px 15px !important;
  border: 1px solid rgba(122, 142, 178, 0.22) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06) !important;
}

.auto-standard-template-option-new.is-standard_clean_white {
  background:
    radial-gradient(circle at 80% 16%, rgba(255,255,255,0.10), transparent 36%),
    linear-gradient(135deg, #101827 0%, #172033 100%) !important;
}

.auto-standard-template-option-new.is-standard_bold_white {
  background:
    radial-gradient(circle at 16% 22%, rgba(255,255,255,0.16), transparent 34%),
    linear-gradient(135deg, #070b16 0%, #151d2e 100%) !important;
}

.auto-standard-template-option-new.is-standard_gold_signal {
  background:
    radial-gradient(circle at 84% 20%, rgba(255, 222, 92, 0.28), transparent 35%),
    linear-gradient(135deg, #1c1508 0%, #3b2d11 100%) !important;
}

.auto-standard-template-option-new.is-standard_blue_ice {
  background:
    radial-gradient(circle at 82% 18%, rgba(56, 189, 248, 0.25), transparent 34%),
    linear-gradient(135deg, #081728 0%, #122944 100%) !important;
}

.auto-standard-template-option-new.is-standard_green_profit {
  background:
    radial-gradient(circle at 84% 18%, rgba(34, 197, 94, 0.25), transparent 35%),
    linear-gradient(135deg, #071a13 0%, #123523 100%) !important;
}

.auto-standard-template-option-new.is-standard_red_alert {
  background:
    radial-gradient(circle at 84% 18%, rgba(248, 113, 113, 0.28), transparent 35%),
    linear-gradient(135deg, #220b0d 0%, #3a1014 100%) !important;
}

.auto-standard-template-option-new.is-standard_purple_neon {
  background:
    radial-gradient(circle at 84% 18%, rgba(167, 139, 250, 0.34), transparent 35%),
    linear-gradient(135deg, #130d2b 0%, #26144d 100%) !important;
}

.auto-standard-template-option-new.is-standard_silver_soft {
  background:
    radial-gradient(circle at 84% 18%, rgba(226, 232, 240, 0.20), transparent 35%),
    linear-gradient(135deg, #111827 0%, #2a3343 100%) !important;
}

.auto-standard-template-option-new.is-standard_orange_energy {
  background:
    radial-gradient(circle at 84% 18%, rgba(251, 146, 60, 0.30), transparent 35%),
    linear-gradient(135deg, #251307 0%, #49220c 100%) !important;
}

.auto-standard-template-option-new.is-standard_dark_minimal {
  background:
    radial-gradient(circle at 84% 18%, rgba(148, 163, 184, 0.18), transparent 35%),
    linear-gradient(135deg, #f8fafc 0%, #e8eef7 100%) !important;
}

.auto-standard-template-option-new.is-standard_dark_minimal .auto-standard-template-name-new {
  color: rgba(30, 41, 59, 0.70) !important;
}

.auto-standard-template-option-new.is-standard_dark_minimal::before {
  background-image:
    linear-gradient(rgba(15,23,42,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,23,42,0.045) 1px, transparent 1px) !important;
}

.auto-standard-template-sample-new {
  font-size: 15px !important;
  line-height: 1.02 !important;
  font-weight: 820 !important;
}

.auto-standard-template-option-new.is-standard_bold_white .auto-standard-template-sample-new {
  font-size: 17px !important;
  font-weight: 900 !important;
  letter-spacing: -0.055em !important;
}

.auto-standard-template-option-new.is-standard_gold_signal .auto-standard-template-sample-new {
  color: #ffe36d !important;
  text-shadow: 0 2px 0 #7c3f00, 0 10px 22px rgba(255, 190, 44, 0.26) !important;
}

.auto-standard-template-option-new.is-standard_blue_ice .auto-standard-template-sample-new {
  color: #e6f6ff !important;
  text-shadow: 0 2px 0 #075985, 0 10px 22px rgba(56, 189, 248, 0.26) !important;
}

.auto-standard-template-option-new.is-standard_green_profit .auto-standard-template-sample-new {
  color: #dcffe8 !important;
  text-shadow: 0 2px 0 #14532d, 0 10px 22px rgba(34, 197, 94, 0.24) !important;
}

.auto-standard-template-option-new.is-standard_red_alert .auto-standard-template-sample-new {
  color: #fff1f2 !important;
  text-shadow: 0 2px 0 #7f1d1d, 0 10px 22px rgba(248, 113, 113, 0.28) !important;
}

.auto-standard-template-option-new.is-standard_purple_neon .auto-standard-template-sample-new {
  color: #f4edff !important;
  text-shadow: 0 2px 0 #4c1d95, 0 10px 22px rgba(167, 139, 250, 0.30) !important;
}

.auto-standard-template-option-new.is-standard_silver_soft .auto-standard-template-sample-new {
  color: #f8fafc !important;
  text-shadow: 0 2px 0 #334155, 0 10px 22px rgba(148, 163, 184, 0.25) !important;
}

.auto-standard-template-option-new.is-standard_orange_energy .auto-standard-template-sample-new {
  color: #fff7ed !important;
  text-shadow: 0 2px 0 #7c2d12, 0 10px 22px rgba(251, 146, 60, 0.30) !important;
}

.auto-standard-template-option-new.is-standard_dark_minimal .auto-standard-template-sample-new {
  color: #0f172a !important;
  text-shadow: 0 1px 0 rgba(255,255,255,0.75), 0 8px 18px rgba(15,23,42,0.16) !important;
}

/* Preview inside left column: compact and clear. */
.auto-step-four-screen-left-new .auto-text-style-preview-card-new {
  padding: 16px !important;
  border-radius: 18px !important;
}

.auto-step-four-screen-left-new .auto-text-style-preview-canvas-new {
  min-height: 142px !important;
}

.auto-step-four-screen-left-new .auto-text-style-preview-sample-new,
.auto-step-four-screen-left-new .auto-text-style-preview-title-new {
  font-size: clamp(25px, 3.1vw, 38px) !important;
  max-width: 92% !important;
}

/* When OpenAI is selected, the right side remains OpenAI settings, preview remains below select. */
.auto-openai-style-field-new:not([hidden]) {
  height: 100%;
}

@media (max-width: 1180px) {
  .auto-step-four-screen-layout-new {
    grid-template-columns: 1fr !important;
  }

  .auto-step-four-screen-left-new {
    min-height: 0;
    grid-template-rows: auto auto;
  }

  .auto-standard-template-list-new {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 680px) {
  .auto-standard-template-list-new {
    grid-template-columns: 1fr !important;
  }
}


/* Step 4 standard texts: site-style block + saved template selector */
.auto-standard-template-field-new {
  background:
    radial-gradient(circle at 88% 8%, rgba(124, 92, 255, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(252,250,255,0.98)) !important;
  border: 1px solid rgba(214, 223, 243, 1) !important;
  border-radius: 18px !important;
  box-shadow: 0 12px 30px rgba(31, 47, 88, 0.04) !important;
}

.auto-standard-template-title-row-new {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(240px, 0.85fr);
  align-items: end;
  gap: 14px;
  margin-bottom: 12px;
}

.auto-standard-template-saved-new {
  display: grid;
  gap: 6px;
}

.auto-standard-template-saved-label-new {
  color: #667189;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 650;
}

.auto-standard-template-saved-select-new {
  min-height: 38px !important;
  border-radius: 12px !important;
  font-size: 12px !important;
}

.auto-standard-template-list-new {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

.auto-standard-template-option-new {
  min-height: 92px !important;
  display: grid !important;
  align-content: start !important;
  gap: 8px !important;
  padding: 12px !important;
  border-radius: 16px !important;
  border: 1px solid rgba(221, 228, 242, 1) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.96), rgba(248,250,255,0.96)) !important;
  box-shadow: 0 10px 22px rgba(44, 68, 126, 0.035) !important;
  overflow: hidden !important;
}

.auto-standard-template-option-new::before {
  display: none !important;
}

.auto-standard-template-option-new:hover,
.auto-standard-template-option-new.is-selected {
  transform: translateY(-1px) !important;
  border-color: rgba(124, 92, 255, 0.52) !important;
  box-shadow: 0 14px 28px rgba(109, 69, 245, 0.10) !important;
}

.auto-standard-template-sample-new {
  width: 100% !important;
  min-height: 44px !important;
  display: grid !important;
  align-items: center !important;
  justify-content: start !important;
  padding: 9px 12px !important;
  box-sizing: border-box !important;
  border-radius: 12px !important;
  background:
    radial-gradient(circle at 80% 20%, rgba(124, 92, 255, 0.20), transparent 34%),
    linear-gradient(135deg, #172033 0%, #101827 100%) !important;
  color: #ffffff !important;
  font-size: 15px !important;
  line-height: 1.02 !important;
  font-weight: 820 !important;
  letter-spacing: -0.035em !important;
  text-transform: uppercase !important;
  white-space: normal !important;
  text-shadow: 0 2px 0 rgba(2, 6, 23, 0.88), 0 8px 18px rgba(0, 0, 0, 0.34) !important;
}

.auto-standard-template-name-new {
  color: #667189 !important;
  font-size: 11px !important;
  line-height: 1.2 !important;
  font-weight: 560 !important;
}

.auto-standard-template-option-new.is-standard_clean_white .auto-standard-template-sample-new {
  background: linear-gradient(135deg, #172033 0%, #101827 100%) !important;
  color: #ffffff !important;
}

.auto-standard-template-option-new.is-standard_bold_white .auto-standard-template-sample-new {
  background: linear-gradient(135deg, #0b1020 0%, #1b2438 100%) !important;
  color: #ffffff !important;
  font-size: 17px !important;
  font-weight: 920 !important;
  letter-spacing: -0.055em !important;
  text-shadow: 0 3px 0 rgba(2, 6, 23, 0.95), 0 10px 20px rgba(0,0,0,0.42) !important;
}

.auto-standard-template-option-new.is-standard_gold_signal .auto-standard-template-sample-new {
  background: linear-gradient(135deg, #211807 0%, #4a3510 100%) !important;
  color: #ffe36d !important;
  text-shadow: 0 2px 0 #7c3f00, 0 10px 22px rgba(255,190,44,0.24) !important;
}

.auto-standard-template-option-new.is-standard_blue_ice .auto-standard-template-sample-new {
  background: linear-gradient(135deg, #081728 0%, #123456 100%) !important;
  color: #e6f6ff !important;
  text-shadow: 0 2px 0 #075985, 0 10px 22px rgba(56,189,248,0.24) !important;
}

.auto-standard-template-option-new.is-standard_green_profit .auto-standard-template-sample-new {
  background: linear-gradient(135deg, #071a13 0%, #123523 100%) !important;
  color: #dcffe8 !important;
  text-shadow: 0 2px 0 #14532d, 0 10px 22px rgba(34,197,94,0.22) !important;
}

.auto-standard-template-option-new.is-standard_red_alert .auto-standard-template-sample-new {
  background: linear-gradient(135deg, #220b0d 0%, #461318 100%) !important;
  color: #fff1f2 !important;
  text-shadow: 0 2px 0 #7f1d1d, 0 10px 22px rgba(248,113,113,0.24) !important;
}

.auto-standard-template-option-new.is-standard_purple_neon .auto-standard-template-sample-new {
  background: linear-gradient(135deg, #130d2b 0%, #2b155a 100%) !important;
  color: #f4edff !important;
  text-shadow: 0 2px 0 #4c1d95, 0 10px 22px rgba(167,139,250,0.28) !important;
}

.auto-standard-template-option-new.is-standard_silver_soft .auto-standard-template-sample-new {
  background: linear-gradient(135deg, #111827 0%, #384152 100%) !important;
  color: #f8fafc !important;
  font-weight: 720 !important;
  text-shadow: 0 2px 0 #334155, 0 10px 22px rgba(148,163,184,0.22) !important;
}

.auto-standard-template-option-new.is-standard_orange_energy .auto-standard-template-sample-new {
  background: linear-gradient(135deg, #251307 0%, #55270d 100%) !important;
  color: #fff7ed !important;
  text-shadow: 0 2px 0 #7c2d12, 0 10px 22px rgba(251,146,60,0.26) !important;
}

.auto-standard-template-option-new.is-standard_dark_minimal .auto-standard-template-sample-new {
  background: linear-gradient(135deg, #f8fafc 0%, #e9eff8 100%) !important;
  color: #0f172a !important;
  border: 1px solid rgba(203, 213, 225, 0.82) !important;
  text-shadow: 0 1px 0 rgba(255,255,255,0.82), 0 8px 18px rgba(15,23,42,0.14) !important;
}

.auto-standard-template-footer-new {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}

.auto-standard-template-footer-new .auto-standard-template-status-new {
  margin: 0 !important;
  max-width: 520px !important;
}

.auto-standard-template-footer-new .auto-openai-inline-action-new {
  flex: 0 0 auto;
}

@media (max-width: 1180px) {
  .auto-standard-template-title-row-new {
    grid-template-columns: 1fr;
  }

  .auto-standard-template-footer-new {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 680px) {
  .auto-standard-template-list-new {
    grid-template-columns: 1fr !important;
  }
}


/* Step 4 standard templates cleanup: no ugly inner plaques, saved selector beside save button */
.auto-standard-template-field-new {
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(250,248,255,0.98)) !important;
  border: 1px solid #dfe6f1 !important;
  border-radius: 18px !important;
  box-shadow: 0 12px 30px rgba(31, 47, 88, 0.045) !important;
  padding: 16px !important;
}

.auto-standard-template-title-row-new {
  display: block !important;
  margin: 0 !important;
}

.auto-standard-template-list-new {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
  margin-top: 14px !important;
}

.auto-standard-template-option-new {
  min-height: 76px !important;
  display: grid !important;
  align-content: center !important;
  gap: 7px !important;
  padding: 13px 15px !important;
  border-radius: 15px !important;
  border: 1px solid rgba(221, 228, 242, 1) !important;
  background: #ffffff !important;
  box-shadow: 0 8px 18px rgba(31, 47, 88, 0.035) !important;
  overflow: hidden !important;
}

.auto-standard-template-option-new::before,
.auto-standard-template-option-new::after {
  display: none !important;
}

.auto-standard-template-option-new:hover,
.auto-standard-template-option-new.is-selected {
  transform: translateY(-1px) !important;
  border-color: rgba(124, 92, 255, 0.52) !important;
  box-shadow: 0 14px 26px rgba(109, 69, 245, 0.10) !important;
  background: linear-gradient(180deg, #ffffff, #fbf9ff) !important;
}

.auto-standard-template-option-new.is-selected {
  outline: 2px solid rgba(124, 92, 255, 0.12) !important;
  outline-offset: -2px !important;
}

/* No dark strips inside cards. Text sits directly on the card. */
.auto-standard-template-sample-new {
  width: auto !important;
  min-height: 0 !important;
  display: block !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #0b1747 !important;
  font-size: 16px !important;
  line-height: 1.04 !important;
  font-weight: 820 !important;
  letter-spacing: -0.035em !important;
  text-transform: uppercase !important;
  white-space: normal !important;
  text-shadow: none !important;
}

.auto-standard-template-name-new {
  color: #6b7897 !important;
  font-size: 11px !important;
  line-height: 1.2 !important;
  font-weight: 540 !important;
}

.auto-standard-template-option-new.is-standard_clean_white .auto-standard-template-sample-new {
  color: #0b1747 !important;
  text-shadow: 0 1px 0 rgba(255,255,255,0.70) !important;
}

.auto-standard-template-option-new.is-standard_bold_white .auto-standard-template-sample-new {
  color: #07142f !important;
  font-size: 17px !important;
  font-weight: 900 !important;
  letter-spacing: -0.055em !important;
}

.auto-standard-template-option-new.is-standard_gold_signal .auto-standard-template-sample-new {
  color: #c27c00 !important;
  text-shadow: 0 1px 0 rgba(255, 244, 190, 0.9) !important;
}

.auto-standard-template-option-new.is-standard_blue_ice .auto-standard-template-sample-new {
  color: #0b78b6 !important;
  text-shadow: 0 1px 0 rgba(230, 246, 255, 0.9) !important;
}

.auto-standard-template-option-new.is-standard_green_profit .auto-standard-template-sample-new {
  color: #138348 !important;
  text-shadow: 0 1px 0 rgba(220, 255, 232, 0.9) !important;
}

.auto-standard-template-option-new.is-standard_red_alert .auto-standard-template-sample-new {
  color: #c63b44 !important;
  text-shadow: 0 1px 0 rgba(255, 235, 238, 0.9) !important;
}

.auto-standard-template-option-new.is-standard_purple_neon .auto-standard-template-sample-new {
  color: #7b46e8 !important;
  text-shadow: 0 1px 0 rgba(244, 237, 255, 0.95) !important;
}

.auto-standard-template-option-new.is-standard_silver_soft .auto-standard-template-sample-new {
  color: #475569 !important;
  font-weight: 760 !important;
}

.auto-standard-template-option-new.is-standard_orange_energy .auto-standard-template-sample-new {
  color: #d65f13 !important;
  text-shadow: 0 1px 0 rgba(255, 247, 237, 0.95) !important;
}

.auto-standard-template-option-new.is-standard_dark_minimal .auto-standard-template-sample-new {
  color: #111827 !important;
  font-weight: 760 !important;
  text-shadow: none !important;
}

/* Bottom controls are now together. */
.auto-standard-template-footer-new {
  display: grid !important;
  grid-template-columns: minmax(260px, 1fr) auto !important;
  align-items: end !important;
  gap: 12px !important;
  margin-top: 14px !important;
}

.auto-standard-template-saved-new {
  display: grid !important;
  gap: 6px !important;
  min-width: 0 !important;
}

.auto-standard-template-saved-label-new {
  color: #667189 !important;
  font-size: 11px !important;
  line-height: 1.2 !important;
  font-weight: 650 !important;
}

.auto-standard-template-saved-select-new {
  width: 100% !important;
  min-height: 40px !important;
  border-radius: 12px !important;
  font-size: 12px !important;
}

.auto-standard-template-footer-new .auto-openai-inline-action-new {
  min-height: 40px !important;
  white-space: nowrap !important;
}

.auto-standard-template-status-new {
  display: block !important;
  margin-top: 10px !important;
  max-width: 100% !important;
}

@media (max-width: 780px) {
  .auto-standard-template-footer-new {
    grid-template-columns: 1fr !important;
  }

  .auto-standard-template-list-new {
    grid-template-columns: 1fr !important;
  }
}


/* Step 4 standard text cards final cleanup: no rainbow, no inner plaques, border-only hover */
.auto-standard-template-field-new {
  background: #ffffff !important;
  border: 1px solid #dfe6f1 !important;
  border-radius: 18px !important;
  box-shadow: 0 10px 26px rgba(31, 47, 88, 0.035) !important;
}

.auto-standard-template-list-new {
  gap: 10px !important;
}

.auto-standard-template-option-new,
.auto-standard-template-option-new.is-standard_clean_white,
.auto-standard-template-option-new.is-standard_bold_white,
.auto-standard-template-option-new.is-standard_gold_signal,
.auto-standard-template-option-new.is-standard_blue_ice,
.auto-standard-template-option-new.is-standard_green_profit,
.auto-standard-template-option-new.is-standard_red_alert,
.auto-standard-template-option-new.is-standard_purple_neon,
.auto-standard-template-option-new.is-standard_silver_soft,
.auto-standard-template-option-new.is-standard_orange_energy,
.auto-standard-template-option-new.is-standard_dark_minimal {
  min-height: 76px !important;
  padding: 14px 16px !important;
  border: 1px solid #dfe6f1 !important;
  border-radius: 16px !important;
  background: #ffffff !important;
  background-image: none !important;
  box-shadow: none !important;
  outline: none !important;
  transform: none !important;
}

.auto-standard-template-option-new::before,
.auto-standard-template-option-new::after,
.auto-standard-template-option-new.is-standard_clean_white::before,
.auto-standard-template-option-new.is-standard_clean_white::after,
.auto-standard-template-option-new.is-standard_bold_white::before,
.auto-standard-template-option-new.is-standard_bold_white::after,
.auto-standard-template-option-new.is-standard_gold_signal::before,
.auto-standard-template-option-new.is-standard_gold_signal::after,
.auto-standard-template-option-new.is-standard_blue_ice::before,
.auto-standard-template-option-new.is-standard_blue_ice::after,
.auto-standard-template-option-new.is-standard_green_profit::before,
.auto-standard-template-option-new.is-standard_green_profit::after,
.auto-standard-template-option-new.is-standard_red_alert::before,
.auto-standard-template-option-new.is-standard_red_alert::after,
.auto-standard-template-option-new.is-standard_purple_neon::before,
.auto-standard-template-option-new.is-standard_purple_neon::after,
.auto-standard-template-option-new.is-standard_silver_soft::before,
.auto-standard-template-option-new.is-standard_silver_soft::after,
.auto-standard-template-option-new.is-standard_orange_energy::before,
.auto-standard-template-option-new.is-standard_orange_energy::after,
.auto-standard-template-option-new.is-standard_dark_minimal::before,
.auto-standard-template-option-new.is-standard_dark_minimal::after {
  display: none !important;
  content: none !important;
  opacity: 0 !important;
  background: none !important;
}

.auto-standard-template-option-new:hover,
.auto-standard-template-option-new:focus-visible,
.auto-standard-template-option-new.is-selected,
.auto-standard-template-option-new.is-standard_clean_white:hover,
.auto-standard-template-option-new.is-standard_bold_white:hover,
.auto-standard-template-option-new.is-standard_gold_signal:hover,
.auto-standard-template-option-new.is-standard_blue_ice:hover,
.auto-standard-template-option-new.is-standard_green_profit:hover,
.auto-standard-template-option-new.is-standard_red_alert:hover,
.auto-standard-template-option-new.is-standard_purple_neon:hover,
.auto-standard-template-option-new.is-standard_silver_soft:hover,
.auto-standard-template-option-new.is-standard_orange_energy:hover,
.auto-standard-template-option-new.is-standard_dark_minimal:hover {
  border-color: rgba(124, 92, 255, 0.68) !important;
  background: #ffffff !important;
  background-image: none !important;
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.08) !important;
  outline: none !important;
  transform: none !important;
}

.auto-standard-template-option-new.is-selected {
  border-color: rgba(124, 92, 255, 0.88) !important;
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.10) !important;
}

.auto-standard-template-sample-new,
.auto-standard-template-option-new .auto-standard-template-sample-new,
.auto-standard-template-option-new.is-standard_clean_white .auto-standard-template-sample-new,
.auto-standard-template-option-new.is-standard_bold_white .auto-standard-template-sample-new,
.auto-standard-template-option-new.is-standard_gold_signal .auto-standard-template-sample-new,
.auto-standard-template-option-new.is-standard_blue_ice .auto-standard-template-sample-new,
.auto-standard-template-option-new.is-standard_green_profit .auto-standard-template-sample-new,
.auto-standard-template-option-new.is-standard_red_alert .auto-standard-template-sample-new,
.auto-standard-template-option-new.is-standard_purple_neon .auto-standard-template-sample-new,
.auto-standard-template-option-new.is-standard_silver_soft .auto-standard-template-sample-new,
.auto-standard-template-option-new.is-standard_orange_energy .auto-standard-template-sample-new,
.auto-standard-template-option-new.is-standard_dark_minimal .auto-standard-template-sample-new {
  min-height: 0 !important;
  width: auto !important;
  display: block !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-image: none !important;
  color: #0b1747 !important;
  text-shadow: none !important;
  text-transform: uppercase !important;
  line-height: 1.08 !important;
  white-space: normal !important;
}

.auto-standard-template-option-new.is-standard_clean_white .auto-standard-template-sample-new {
  font-size: 15px !important;
  font-weight: 760 !important;
  letter-spacing: -0.025em !important;
}

.auto-standard-template-option-new.is-standard_bold_white .auto-standard-template-sample-new {
  font-size: 16px !important;
  font-weight: 850 !important;
  letter-spacing: -0.045em !important;
}

.auto-standard-template-option-new.is-standard_gold_signal .auto-standard-template-sample-new {
  font-size: 15px !important;
  font-weight: 780 !important;
  letter-spacing: -0.02em !important;
}

.auto-standard-template-option-new.is-standard_blue_ice .auto-standard-template-sample-new {
  font-size: 15px !important;
  font-weight: 760 !important;
  letter-spacing: -0.035em !important;
}

.auto-standard-template-option-new.is-standard_green_profit .auto-standard-template-sample-new {
  font-size: 15px !important;
  font-weight: 770 !important;
  letter-spacing: -0.03em !important;
}

.auto-standard-template-option-new.is-standard_red_alert .auto-standard-template-sample-new {
  font-size: 15px !important;
  font-weight: 760 !important;
  letter-spacing: -0.025em !important;
}

.auto-standard-template-option-new.is-standard_purple_neon .auto-standard-template-sample-new {
  font-size: 15px !important;
  font-weight: 790 !important;
  letter-spacing: -0.035em !important;
}

.auto-standard-template-option-new.is-standard_silver_soft .auto-standard-template-sample-new {
  font-size: 15px !important;
  font-weight: 700 !important;
  letter-spacing: -0.015em !important;
}

.auto-standard-template-option-new.is-standard_orange_energy .auto-standard-template-sample-new {
  font-size: 15px !important;
  font-weight: 780 !important;
  letter-spacing: -0.025em !important;
}

.auto-standard-template-option-new.is-standard_dark_minimal .auto-standard-template-sample-new {
  font-size: 15px !important;
  font-weight: 720 !important;
  letter-spacing: -0.01em !important;
}

.auto-standard-template-name-new,
.auto-standard-template-option-new .auto-standard-template-name-new,
.auto-standard-template-option-new.is-standard_dark_minimal .auto-standard-template-name-new {
  color: #6b7897 !important;
  font-size: 11px !important;
  line-height: 1.2 !important;
  font-weight: 520 !important;
}

.auto-standard-template-option-new:hover .auto-standard-template-sample-new,
.auto-standard-template-option-new.is-selected .auto-standard-template-sample-new {
  color: #0b1747 !important;
}

.auto-standard-template-footer-new {
  border-top: 1px solid #edf1f7 !important;
  padding-top: 12px !important;
}


/* First standard template: "ВХОД ПО ПЛАНУ" matches the heavy white/black 3D reference */
.auto-standard-template-option-new.is-standard_3d_black_white .auto-standard-template-sample-new,
.auto-standard-template-option-new.is-standard_clean_white .auto-standard-template-sample-new {
  color: #ffffff !important;
  font-size: 21px !important;
  line-height: 0.94 !important;
  font-weight: 950 !important;
  letter-spacing: -0.07em !important;
  font-style: italic !important;
  transform: skewX(-8deg) rotate(-2deg) !important;
  transform-origin: left center !important;
  -webkit-text-stroke: 2.6px #000000 !important;
  text-shadow:
    2px 2px 0 #000000,
    4px 4px 0 #000000,
    6px 6px 0 #000000,
    8px 8px 0 #000000,
    11px 12px 0 rgba(0, 0, 0, 0.96) !important;
}

.auto-standard-template-option-new.is-standard_clean_white {
  background: #ffffff !important;
  border-color: #dfe6f1 !important;
}

.auto-standard-template-option-new.is-standard_clean_white:hover,
.auto-standard-template-option-new.is-standard_clean_white.is-selected {
  background: #ffffff !important;
  border-color: rgba(124, 92, 255, 0.82) !important;
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.10) !important;
}

.auto-text-style-preview-card-new[data-style="standard_3d_black_white"] .auto-text-style-preview-sample-new,
.auto-text-style-preview-card-new[data-style="standard_clean_white"] .auto-text-style-preview-sample-new {
  color: #ffffff !important;
  font-size: clamp(42px, 5.2vw, 76px) !important;
  line-height: 0.88 !important;
  font-weight: 950 !important;
  letter-spacing: -0.08em !important;
  font-style: italic !important;
  transform: skewX(-8deg) rotate(-3deg) !important;
  -webkit-text-stroke: 5px #000000 !important;
  text-shadow:
    3px 3px 0 #000000,
    6px 6px 0 #000000,
    9px 9px 0 #000000,
    13px 13px 0 #000000,
    18px 20px 0 rgba(0,0,0,0.98) !important;
}

.auto-text-style-preview-card-new[data-style="standard_3d_black_white"] .auto-text-style-preview-canvas-new,
.auto-text-style-preview-card-new[data-style="standard_clean_white"] .auto-text-style-preview-canvas-new {
  background:
    radial-gradient(circle at 70% 18%, rgba(255,255,255,0.10), transparent 30%),
    linear-gradient(135deg, #111827 0%, #070b12 100%) !important;
}


/* Exact asset preview for the first standard text template */
.auto-standard-template-sample-image-new {
  display: block !important;
  width: 100% !important;
  max-width: 232px !important;
  height: 58px !important;
  object-fit: contain !important;
  object-position: left center !important;
  margin: 0 0 2px 0 !important;
  background: transparent !important;
  border: 0 !important;
  pointer-events: none !important;
}

.auto-standard-template-option-new.is-standard_3d_black_white {
  align-items: flex-start !important;
}

.auto-standard-template-option-new.is-standard_3d_black_white .auto-standard-template-name-new {
  margin-top: 0 !important;
}

.auto-text-style-preview-image-new.is-template-exact-preview {
  max-width: 90% !important;
  max-height: 108px !important;
  width: auto !important;
  height: auto !important;
}


/* Final fix: first standard template is real rendered text, not a pasted image */
.auto-standard-template-sample-image-new {
  display: none !important;
}

.auto-standard-template-option-new.is-standard_3d_black_white .auto-standard-template-sample-new,
.auto-standard-template-option-new.is-standard_clean_white .auto-standard-template-sample-new {
  color: #ffffff !important;
  display: block !important;
  width: fit-content !important;
  max-width: calc(100% - 20px) !important;
  font-family: Arial Black, Arial, sans-serif !important;
  font-size: 24px !important;
  line-height: 0.86 !important;
  font-weight: 950 !important;
  letter-spacing: -0.075em !important;
  font-style: italic !important;
  transform: skewX(-8deg) rotate(-2deg) !important;
  transform-origin: left center !important;
  -webkit-text-stroke: 2.8px #000000 !important;
  paint-order: stroke fill !important;
  text-shadow:
    2px 2px 0 #000000,
    4px 4px 0 #000000,
    6px 6px 0 #000000,
    8px 8px 0 #000000,
    12px 13px 0 rgba(0, 0, 0, 0.98) !important;
}

.auto-text-style-preview-card-new[data-style="standard_3d_black_white"] .auto-text-style-preview-sample-new {
  color: #ffffff !important;
  display: block !important;
  max-width: 92% !important;
  font-family: Arial Black, Arial, sans-serif !important;
  font-size: clamp(46px, 5.6vw, 88px) !important;
  line-height: 0.82 !important;
  font-weight: 950 !important;
  letter-spacing: -0.085em !important;
  font-style: italic !important;
  transform: skewX(-8deg) rotate(-3deg) !important;
  transform-origin: center center !important;
  -webkit-text-stroke: 5.5px #000000 !important;
  paint-order: stroke fill !important;
  text-shadow:
    4px 4px 0 #000000,
    8px 8px 0 #000000,
    12px 12px 0 #000000,
    17px 17px 0 #000000,
    24px 25px 0 rgba(0, 0, 0, 0.98) !important;
}

.auto-text-style-preview-card-new[data-style="standard_3d_black_white"] .auto-text-style-preview-image-new {
  display: none !important;
}


/* Standard templates are selectable styles, not static images. First template preview/card is constrained and non-cropped. */
.auto-standard-template-option-new.is-standard_clean_white .auto-standard-template-sample-new,
.auto-standard-template-option-new.is-standard_3d_black_white .auto-standard-template-sample-new {
  display: block !important;
  max-width: 100% !important;
  color: #ffffff !important;
  font-size: 20px !important;
  line-height: 0.92 !important;
  font-weight: 950 !important;
  letter-spacing: -0.065em !important;
  font-style: italic !important;
  white-space: pre-line !important;
  transform: skewX(-7deg) rotate(-2deg) !important;
  transform-origin: left center !important;
  -webkit-text-stroke: 1.5px #000000 !important;
  text-shadow:
    1.5px 1.5px 0 #000000,
    3px 3px 0 #000000,
    5px 5px 0 rgba(0, 0, 0, 0.98) !important;
}

.auto-standard-template-option-new.is-standard_clean_white,
.auto-standard-template-option-new.is-standard_3d_black_white {
  min-height: 82px !important;
  overflow: hidden !important;
  background: #ffffff !important;
}

.auto-standard-template-option-new.is-standard_clean_white .auto-standard-template-name-new,
.auto-standard-template-option-new.is-standard_3d_black_white .auto-standard-template-name-new {
  margin-top: 4px !important;
}

.auto-text-style-preview-card-new[data-style="standard_3d_black_white"] .auto-text-style-preview-canvas-new {
  min-height: 142px !important;
  padding: 14px !important;
  box-sizing: border-box !important;
  background:
    radial-gradient(circle at 72% 18%, rgba(124, 92, 255, 0.10), transparent 32%),
    linear-gradient(135deg, #111827 0%, #07111f 100%) !important;
}

.auto-text-style-preview-card-new[data-style="standard_3d_black_white"] .auto-text-style-preview-sample-new {
  display: block !important;
  max-width: 78% !important;
  color: #ffffff !important;
  font-size: clamp(28px, 3.1vw, 46px) !important;
  line-height: 0.88 !important;
  font-weight: 950 !important;
  letter-spacing: -0.075em !important;
  font-style: italic !important;
  white-space: pre-line !important;
  text-align: center !important;
  transform: skewX(-7deg) rotate(-3deg) !important;
  -webkit-text-stroke: clamp(2px, 0.22vw, 3.4px) #000000 !important;
  text-shadow:
    2px 2px 0 #000000,
    4px 4px 0 #000000,
    7px 8px 0 rgba(0, 0, 0, 0.98) !important;
}

/* Do not let the first preview expand/crop like a fullscreen logo. */
.auto-step-four-screen-left-new .auto-text-style-preview-card-new[data-style="standard_3d_black_white"] .auto-text-style-preview-canvas-new {
  min-height: 138px !important;
}

.auto-step-four-screen-left-new .auto-text-style-preview-card-new[data-style="standard_3d_black_white"] .auto-text-style-preview-sample-new {
  font-size: clamp(26px, 2.7vw, 42px) !important;
  max-width: 82% !important;
}


/* First standard template v2: closer to the supplied 3D black/white reference */
.auto-standard-template-option-new.is-standard_clean_white .auto-standard-template-sample-new,
.auto-standard-template-option-new.is-standard_3d_black_white .auto-standard-template-sample-new {
  display: block !important;
  max-width: 100% !important;
  color: #ffffff !important;
  font-size: 24px !important;
  line-height: 0.86 !important;
  font-weight: 950 !important;
  letter-spacing: -0.075em !important;
  font-style: italic !important;
  white-space: pre-line !important;
  transform: skewX(-8deg) rotate(-2deg) !important;
  transform-origin: left center !important;
  -webkit-text-stroke: 1.9px #000000 !important;
  text-shadow:
    2px 2px 0 #000000,
    4px 4px 0 #000000,
    6px 6px 0 #000000,
    8px 9px 0 rgba(0, 0, 0, 0.98) !important;
}

.auto-standard-template-option-new.is-standard_clean_white,
.auto-standard-template-option-new.is-standard_3d_black_white {
  min-height: 88px !important;
  align-content: center !important;
  overflow: hidden !important;
}

.auto-text-style-preview-card-new[data-style="standard_3d_black_white"] .auto-text-style-preview-canvas-new {
  min-height: 142px !important;
  padding: 16px 18px !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  background:
    radial-gradient(circle at 72% 18%, rgba(124, 92, 255, 0.08), transparent 34%),
    linear-gradient(135deg, #111827 0%, #07111f 100%) !important;
}

.auto-text-style-preview-card-new[data-style="standard_3d_black_white"] .auto-text-style-preview-sample-new {
  display: block !important;
  max-width: 74% !important;
  color: #ffffff !important;
  font-size: clamp(32px, 3.4vw, 54px) !important;
  line-height: 0.84 !important;
  font-weight: 950 !important;
  letter-spacing: -0.085em !important;
  font-style: italic !important;
  white-space: pre-line !important;
  text-align: center !important;
  transform: skewX(-8deg) rotate(-3deg) !important;
  -webkit-text-stroke: clamp(2.5px, 0.26vw, 4px) #000000 !important;
  text-shadow:
    3px 3px 0 #000000,
    6px 6px 0 #000000,
    9px 10px 0 #000000,
    13px 15px 0 rgba(0, 0, 0, 0.98) !important;
}


/* Step 4 text-template management: separate from full generation templates */
.auto-standard-template-footer-new {
  display: grid !important;
  grid-template-columns: minmax(220px, 0.9fr) minmax(220px, 0.9fr) auto !important;
  align-items: end !important;
  gap: 10px !important;
  margin-top: 14px !important;
  border-top: 1px solid #edf1f7 !important;
  padding-top: 12px !important;
}

.auto-standard-template-saved-new,
.auto-standard-template-name-edit-new {
  display: grid !important;
  gap: 6px !important;
  min-width: 0 !important;
}

.auto-standard-template-saved-label-new {
  color: #667189 !important;
  font-size: 11px !important;
  line-height: 1.2 !important;
  font-weight: 650 !important;
}

.auto-standard-template-saved-select-new,
.auto-standard-template-name-edit-new input {
  width: 100% !important;
  min-height: 40px !important;
  border: 1px solid #dfe6f1 !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  padding: 9px 12px !important;
  color: #0b1747 !important;
  font-size: 12px !important;
  box-sizing: border-box !important;
}

.auto-standard-template-actions-new {
  display: flex !important;
  align-items: end !important;
  justify-content: flex-end !important;
  gap: 8px !important;
  min-width: max-content !important;
}

.auto-standard-template-actions-new .auto-openai-inline-action-new {
  min-height: 40px !important;
  white-space: nowrap !important;
}

@media (max-width: 1180px) {
  .auto-standard-template-footer-new {
    grid-template-columns: 1fr !important;
  }

  .auto-standard-template-actions-new {
    justify-content: flex-start !important;
    flex-wrap: wrap !important;
    min-width: 0 !important;
  }
}


/* Standard preview uses backend PNG renderer, not CSS imitation */
.auto-text-style-preview-image-new.is-standard-rendered-preview,
.auto-text-style-preview-card-new .auto-text-style-preview-image-new.is-standard-rendered-preview {
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-width: 92% !important;
  max-height: 118px !important;
  object-fit: contain !important;
  object-position: center center !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.auto-text-style-preview-card-new.is-preview-loading .auto-text-style-preview-canvas-new {
  opacity: 0.82 !important;
}


/* STEP4_PREVIEW_HARD_RESET_V3 */
.auto-step-four-screen-layout-new {
  display: grid !important;
  grid-template-columns: minmax(330px, 410px) minmax(0, 1fr) !important;
  gap: 14px !important;
  align-items: start !important;
}

.auto-step-four-screen-left-new {
  display: grid !important;
  grid-template-rows: auto auto !important;
  gap: 14px !important;
  align-content: start !important;
  min-height: 0 !important;
  height: auto !important;
}

.auto-step-four-screen-left-new > .auto-field-new,
.auto-step-four-screen-left-new > .auto-text-style-preview-card-new {
  min-height: 0 !important;
  height: auto !important;
  align-self: start !important;
}

.auto-step-four-screen-left-new .auto-text-style-preview-card-new {
  padding: 16px !important;
  border: 1px solid #dde6f3 !important;
  border-radius: 16px !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

.auto-step-four-screen-left-new .auto-text-style-preview-head-new {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  margin: 0 0 8px !important;
}

.auto-step-four-screen-left-new .auto-text-style-preview-label-new {
  color: #07142f !important;
  font-size: 13px !important;
  line-height: 1.2 !important;
  font-weight: 750 !important;
}

.auto-step-four-screen-left-new .auto-text-style-preview-badge-new {
  color: #64748b !important;
  font-size: 11px !important;
  line-height: 1.2 !important;
  font-weight: 650 !important;
}

.auto-step-four-screen-left-new .auto-text-style-preview-canvas-new,
.auto-text-style-preview-card-new.is-standard-preview .auto-text-style-preview-canvas-new,
.auto-text-style-preview-card-new[data-style="standard_3d_black_white"] .auto-text-style-preview-canvas-new {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 176px !important;
  min-height: 176px !important;
  max-height: 176px !important;
  padding: 14px !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  border-radius: 15px !important;
  background:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(135deg, #121c2c 0%, #07111f 100%) !important;
  background-size: 28px 28px, 28px 28px, auto !important;
}

.auto-text-style-preview-card-new .auto-text-style-preview-image-new[hidden],
.auto-text-style-preview-card-new .auto-text-style-preview-sample-new[hidden],
.auto-text-style-preview-card-new .auto-text-style-preview-title-new[hidden],
.auto-text-style-preview-card-new.has-rendered-standard-preview .auto-text-style-preview-sample-new,
.auto-text-style-preview-card-new.has-rendered-standard-preview .auto-text-style-preview-title-new {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

.auto-text-style-preview-card-new.has-rendered-standard-preview .auto-text-style-preview-image-new.is-standard-rendered-preview,
.auto-step-four-screen-left-new .auto-text-style-preview-card-new.has-rendered-standard-preview .auto-text-style-preview-image-new.is-standard-rendered-preview,
.auto-text-style-preview-card-new[data-style="standard_3d_black_white"].has-rendered-standard-preview .auto-text-style-preview-image-new.is-standard-rendered-preview {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: static !important;
  width: auto !important;
  height: auto !important;
  max-width: 88% !important;
  max-height: 132px !important;
  object-fit: contain !important;
  object-position: center center !important;
  transform: none !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.auto-step-four-screen-left-new .auto-text-style-preview-card-new:not(.has-rendered-standard-preview) .auto-text-style-preview-image-new,
.auto-text-style-preview-card-new[data-style="standard_3d_black_white"] .auto-text-style-preview-image-new:not(.is-standard-rendered-preview) {
  display: none !important;
}

.auto-step-four-screen-left-new .auto-text-style-preview-card-new:not(.has-rendered-standard-preview) .auto-text-style-preview-sample-new,
.auto-text-style-preview-card-new.is-preview-error .auto-text-style-preview-sample-new,
.auto-text-style-preview-card-new[data-style="standard_3d_black_white"]:not(.has-rendered-standard-preview) .auto-text-style-preview-sample-new {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  max-width: 82% !important;
  max-height: 128px !important;
  margin: 0 auto !important;
  color: #ffffff !important;
  font-family: Arial Black, Arial, sans-serif !important;
  font-size: clamp(28px, 2.4vw, 38px) !important;
  line-height: 0.88 !important;
  font-weight: 950 !important;
  letter-spacing: -0.065em !important;
  font-style: italic !important;
  text-align: center !important;
  white-space: pre-line !important;
  transform: skewX(-7deg) rotate(-3deg) !important;
  transform-origin: center center !important;
  -webkit-text-stroke: 2.2px #000000 !important;
  paint-order: stroke fill !important;
  text-shadow:
    2px 2px 0 #000000,
    4px 4px 0 #000000,
    7px 8px 0 rgba(0, 0, 0, 0.98) !important;
}

.auto-standard-template-field-new {
  overflow: visible !important;
}

.auto-standard-template-grid-new {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

.auto-standard-template-option-new {
  min-height: 74px !important;
  padding: 14px 16px !important;
  border-radius: 14px !important;
  overflow: hidden !important;
}

.auto-standard-template-option-new.is-standard_3d_black_white .auto-standard-template-sample-new,
.auto-standard-template-option-new.is-standard_clean_white .auto-standard-template-sample-new {
  font-size: 20px !important;
  line-height: 0.9 !important;
  max-height: 46px !important;
  overflow: hidden !important;
}

.auto-standard-template-footer-new {
  display: grid !important;
  grid-template-columns: minmax(180px, 1fr) minmax(200px, 1fr) auto !important;
  gap: 10px !important;
  align-items: end !important;
  margin-top: 14px !important;
  padding-top: 12px !important;
  border-top: 1px solid #edf1f7 !important;
}

@media (max-width: 1180px) {
  .auto-step-four-screen-layout-new,
  .auto-standard-template-footer-new {
    grid-template-columns: 1fr !important;
  }
}


/* Step 4 screen text layout stable fix: constrain preview image and prevent footer overflow. */
.auto-step-four-screen-layout-new {
  max-width: 100% !important;
  overflow: hidden !important;
}

.auto-step-four-screen-left-new,
.auto-step-four-screen-right-new,
.auto-step-four-screen-left-new > .auto-field-new,
.auto-step-four-screen-left-new > .auto-text-style-preview-card-new,
.auto-step-four-screen-right-new > .auto-field-new {
  min-width: 0 !important;
  box-sizing: border-box !important;
}

.auto-step-four-screen-left-new .auto-text-style-preview-canvas-new,
.auto-text-style-preview-card-new.is-standard-preview .auto-text-style-preview-canvas-new,
.auto-text-style-preview-card-new[data-style="standard_3d_black_white"] .auto-text-style-preview-canvas-new {
  overflow: hidden !important;
}

.auto-step-four-screen-left-new .auto-text-style-preview-image-new,
.auto-text-style-preview-card-new.has-rendered-standard-preview .auto-text-style-preview-image-new,
.auto-text-style-preview-card-new.has-rendered-standard-preview img[data-text-style-preview-image="true"],
.auto-text-style-preview-card-new img[data-text-style-preview-image="true"].is-standard-rendered-preview {
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-width: 88% !important;
  max-height: 132px !important;
  object-fit: contain !important;
  object-position: center center !important;
  transform: none !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.auto-text-style-preview-card-new img[data-text-style-preview-image="true"][hidden] {
  display: none !important;
}

.auto-text-style-preview-card-new.has-rendered-standard-preview .auto-text-style-preview-sample-new,
.auto-text-style-preview-card-new.has-rendered-standard-preview .auto-text-style-preview-title-new {
  display: none !important;
}

.auto-standard-template-footer-new {
  grid-template-columns: minmax(150px, 0.85fr) minmax(170px, 0.95fr) minmax(0, auto) !important;
  max-width: 100% !important;
  overflow: hidden !important;
}

.auto-standard-template-actions-new {
  min-width: 0 !important;
  max-width: 100% !important;
  flex-wrap: wrap !important;
}

.auto-standard-template-actions-new .auto-openai-inline-action-new {
  min-width: 0 !important;
}

@media (max-width: 1320px) {
  .auto-standard-template-footer-new {
    grid-template-columns: minmax(170px, 1fr) minmax(190px, 1fr) !important;
  }

  .auto-standard-template-actions-new {
    grid-column: 1 / -1 !important;
    justify-content: flex-start !important;
  }
}

/* Step 4 standard template cards: show the real backend-rendered PNG preview, not CSS imitation. */
.auto-standard-template-option-new .auto-standard-template-preview-image-new {
  display: none !important;
  width: auto !important;
  height: auto !important;
  max-width: min(100%, 230px) !important;
  max-height: 42px !important;
  object-fit: contain !important;
  object-position: left center !important;
  align-self: start !important;
  justify-self: start !important;
  margin: 0 0 2px 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
  pointer-events: none !important;
}

.auto-standard-template-option-new.has-standard-template-preview .auto-standard-template-preview-image-new.is-loaded {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.auto-standard-template-option-new.has-standard-template-preview .auto-standard-template-sample-new,
.auto-standard-template-option-new.has-standard-template-preview .auto-standard-template-sample-new[hidden] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

.auto-standard-template-option-new.is-standard-template-preview-loading .auto-standard-template-sample-new {
  opacity: 0.58 !important;
}

.auto-standard-template-option-new.has-standard-template-preview,
.auto-standard-template-option-new.has-standard-template-preview.is-standard_clean_white,
.auto-standard-template-option-new.has-standard-template-preview.is-standard_bold_white,
.auto-standard-template-option-new.has-standard-template-preview.is-standard_gold_signal,
.auto-standard-template-option-new.has-standard-template-preview.is-standard_blue_ice,
.auto-standard-template-option-new.has-standard-template-preview.is-standard_green_profit,
.auto-standard-template-option-new.has-standard-template-preview.is-standard_red_alert,
.auto-standard-template-option-new.has-standard-template-preview.is-standard_purple_neon,
.auto-standard-template-option-new.has-standard-template-preview.is-standard_silver_soft,
.auto-standard-template-option-new.has-standard-template-preview.is-standard_orange_energy,
.auto-standard-template-option-new.has-standard-template-preview.is-standard_dark_minimal {
  min-height: 76px !important;
  align-content: center !important;
  justify-items: start !important;
  background: #ffffff !important;
  overflow: hidden !important;
}

.auto-standard-template-option-new.has-standard-template-preview .auto-standard-template-name-new {
  margin-top: 1px !important;
}


/* Autopublish worker header: status and start/stop button in the panel header */
.autopublish-worker-panel-pro > .autopublish-panel-head-pro.autopublish-worker-head-pro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 620px);
  gap: 18px;
  align-items: center;
}

.autopublish-worker-header-controls-pro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.autopublish-worker-header-controls-pro .autopublish-loop-status-pro {
  padding: 12px 14px;
  border-radius: 16px;
}

.autopublish-worker-header-controls-pro .autopublish-loop-status-pro strong {
  font-size: 14.5px;
}

.autopublish-worker-header-controls-pro .autopublish-loop-status-pro p {
  font-size: 12.4px;
  line-height: 1.42;
}

.autopublish-worker-header-controls-pro .autopublish-worker-actions-pro {
  justify-content: flex-end;
  align-self: stretch;
}

.autopublish-worker-header-controls-pro .autopublish-button-pro {
  min-width: 198px;
  justify-content: center;
  white-space: nowrap;
}

@media (max-width: 1100px) {
  .autopublish-worker-panel-pro > .autopublish-panel-head-pro.autopublish-worker-head-pro,
  .autopublish-worker-header-controls-pro {
    grid-template-columns: 1fr;
  }

  .autopublish-worker-header-controls-pro .autopublish-worker-actions-pro,
  .autopublish-worker-header-controls-pro .autopublish-button-pro {
    width: 100%;
  }
}


/* Worker publisher compact redesign */
.autopublish-worker-panel-pro {
  background: linear-gradient(180deg, rgba(255,255,255,0.92) 0%, rgba(246,248,255,0.94) 100%);
}

.autopublish-worker-panel-pro > .autopublish-panel-head-pro.autopublish-worker-head-pro {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(165, 179, 220, 0.26);
}

.autopublish-worker-panel-pro > .autopublish-panel-head-pro.autopublish-worker-head-pro h3 {
  margin: 2px 0 0;
  font-size: 18px;
  line-height: 1.2;
}

.autopublish-worker-header-controls-pro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: stretch;
}

.autopublish-worker-summary-pro {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 100%;
  padding: 18px 20px;
  border-radius: 22px;
  border: 1px solid rgba(132, 114, 255, 0.18);
  background: linear-gradient(135deg, rgba(250,250,255,0.98) 0%, rgba(242,238,255,0.92) 100%);
  box-shadow: 0 16px 40px rgba(78, 66, 148, 0.08);
}

.autopublish-worker-summary-pro.is-running {
  border-color: rgba(91, 201, 142, 0.24);
  background: linear-gradient(135deg, rgba(245,255,249,0.98) 0%, rgba(237,249,244,0.94) 100%);
}

.autopublish-worker-badge-pro {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.autopublish-worker-badge-pro.is-stopped {
  color: #6c4cff;
  background: rgba(108, 76, 255, 0.10);
}

.autopublish-worker-badge-pro.is-running {
  color: #1f8f57;
  background: rgba(76, 196, 126, 0.12);
}

.autopublish-worker-summary-pro > strong {
  display: block;
  margin: 0;
  color: #16213f;
  font-size: 22px;
  line-height: 1.15;
  font-weight: 800;
}

.autopublish-worker-summary-pro > p {
  margin: 0;
  color: #60708f;
  font-size: 14px;
  line-height: 1.55;
  max-width: 860px;
}

.autopublish-worker-meta-pro {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 2px;
}

.autopublish-worker-meta-chip-pro {
  padding: 11px 12px;
  border-radius: 16px;
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(177, 188, 227, 0.24);
}

.autopublish-worker-meta-chip-pro span {
  display: block;
  margin-bottom: 4px;
  color: #7b89a8;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.autopublish-worker-meta-chip-pro strong {
  display: block;
  color: #172445;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 800;
}

.autopublish-worker-actions-pro {
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
}

.autopublish-worker-actions-pro .autopublish-button-pro {
  min-width: 248px;
  min-height: 100%;
  padding: 0 24px;
  border-radius: 22px;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 18px 40px rgba(108, 76, 255, 0.22);
}

.autopublish-worker-grid-pro {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.autopublish-worker-card-pro {
  padding: 16px 18px;
  min-height: 118px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.84) 0%, rgba(247,249,255,0.88) 100%);
  border: 1px solid rgba(181, 191, 229, 0.26);
  box-shadow: 0 10px 24px rgba(56, 71, 109, 0.05);
}

.autopublish-worker-card-pro span {
  display: block;
  margin-bottom: 10px;
  color: #7f8ba8;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.autopublish-worker-card-pro strong {
  display: block;
  margin-bottom: 6px;
  color: #13203d;
  font-size: 18px;
  line-height: 1.15;
  font-weight: 800;
}

.autopublish-worker-card-pro p {
  margin: 0;
  color: #687895;
  font-size: 13px;
  line-height: 1.45;
}

@media (max-width: 1280px) {
  .autopublish-worker-grid-pro {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1120px) {
  .autopublish-worker-panel-pro > .autopublish-panel-head-pro.autopublish-worker-head-pro {
    grid-template-columns: 1fr;
  }

  .autopublish-worker-header-controls-pro {
    grid-template-columns: 1fr;
  }

  .autopublish-worker-actions-pro .autopublish-button-pro {
    min-height: 58px;
    width: 100%;
  }
}

@media (max-width: 900px) {
  .autopublish-worker-meta-pro,
  .autopublish-worker-grid-pro {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .autopublish-worker-meta-pro,
  .autopublish-worker-grid-pro {
    grid-template-columns: 1fr;
  }

  .autopublish-worker-summary-pro {
    padding: 16px;
  }

  .autopublish-worker-summary-pro > strong {
    font-size: 19px;
  }
}


/* Worker publisher clean compact header fix */
.autopublish-worker-panel-pro {
  padding: 22px !important;
  background: linear-gradient(180deg, rgba(255,255,255,0.94) 0%, rgba(248,250,255,0.96) 100%) !important;
}

.autopublish-worker-panel-pro > .autopublish-panel-head-pro.autopublish-worker-head-pro {
  display: grid !important;
  grid-template-columns: minmax(220px, 0.85fr) minmax(360px, 1.6fr) auto !important;
  gap: 18px !important;
  align-items: center !important;
  padding: 0 0 18px !important;
  margin: 0 0 18px !important;
  border-bottom: 1px solid rgba(164, 177, 216, 0.28) !important;
}

.autopublish-worker-panel-pro > .autopublish-panel-head-pro.autopublish-worker-head-pro h3 {
  margin: 0 0 6px !important;
  font-size: 18px !important;
  line-height: 1.2 !important;
  color: #101a35 !important;
}

.autopublish-worker-panel-pro > .autopublish-panel-head-pro.autopublish-worker-head-pro > p {
  max-width: 420px !important;
  margin: 0 !important;
  color: #64728f !important;
  font-size: 13px !important;
  line-height: 1.45 !important;
}

.autopublish-worker-header-controls-pro {
  display: contents !important;
}

.autopublish-worker-statusline-pro {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) !important;
  gap: 12px !important;
  align-items: center !important;
  min-height: 68px !important;
  padding: 12px 14px !important;
  border-radius: 18px !important;
  border: 1px solid rgba(132, 114, 255, 0.18) !important;
  background: rgba(248, 246, 255, 0.72) !important;
  box-shadow: none !important;
}

.autopublish-worker-statusline-pro.is-running {
  border-color: rgba(76, 196, 126, 0.22) !important;
  background: rgba(244, 255, 248, 0.76) !important;
}

.autopublish-worker-badge-pro {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 92px !important;
  height: 32px !important;
  padding: 0 10px !important;
  border-radius: 999px !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
}

.autopublish-worker-badge-pro.is-stopped {
  color: #6c4cff !important;
  background: rgba(108, 76, 255, 0.10) !important;
}

.autopublish-worker-badge-pro.is-running {
  color: #18894f !important;
  background: rgba(76, 196, 126, 0.13) !important;
}

.autopublish-worker-status-copy-pro strong {
  display: block !important;
  margin: 0 0 4px !important;
  color: #16213f !important;
  font-size: 15px !important;
  line-height: 1.2 !important;
  font-weight: 800 !important;
}

.autopublish-worker-status-copy-pro p {
  margin: 0 !important;
  color: #657491 !important;
  font-size: 12.5px !important;
  line-height: 1.42 !important;
}

.autopublish-worker-actions-pro {
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
}

.autopublish-worker-actions-pro .autopublish-button-pro {
  min-width: 220px !important;
  min-height: 48px !important;
  height: 48px !important;
  padding: 0 22px !important;
  border-radius: 16px !important;
  justify-content: center !important;
  font-size: 13.5px !important;
  font-weight: 800 !important;
  box-shadow: 0 12px 28px rgba(108, 76, 255, 0.18) !important;
}

.autopublish-worker-grid-pro {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 12px !important;
  margin-top: 0 !important;
}

.autopublish-worker-card-pro {
  min-height: 82px !important;
  padding: 13px 14px !important;
  border-radius: 16px !important;
  background: rgba(255,255,255,0.76) !important;
  border: 1px solid rgba(181, 191, 229, 0.25) !important;
  box-shadow: none !important;
}

.autopublish-worker-card-pro span {
  margin-bottom: 7px !important;
  color: #7f8ba8 !important;
  font-size: 10.5px !important;
  font-weight: 800 !important;
  letter-spacing: 0.07em !important;
  text-transform: uppercase !important;
}

.autopublish-worker-card-pro strong {
  margin-bottom: 4px !important;
  color: #13203d !important;
  font-size: 16px !important;
  line-height: 1.15 !important;
  font-weight: 800 !important;
}

.autopublish-worker-card-pro p {
  margin: 0 !important;
  color: #687895 !important;
  font-size: 12.2px !important;
  line-height: 1.35 !important;
}

@media (max-width: 1280px) {
  .autopublish-worker-panel-pro > .autopublish-panel-head-pro.autopublish-worker-head-pro {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .autopublish-worker-header-controls-pro {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 12px !important;
  }

  .autopublish-worker-grid-pro {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 820px) {
  .autopublish-worker-header-controls-pro {
    grid-template-columns: 1fr !important;
  }

  .autopublish-worker-actions-pro .autopublish-button-pro {
    width: 100% !important;
  }

  .autopublish-worker-grid-pro {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 560px) {
  .autopublish-worker-statusline-pro,
  .autopublish-worker-grid-pro {
    grid-template-columns: 1fr !important;
  }

  .autopublish-worker-grid-pro {
    grid-template-columns: 1fr !important;
  }
}

/* Final compact worker publisher layout */
.autopublish-worker-panel-pro {
  padding: 22px !important;
  border-radius: 24px !important;
}

.autopublish-worker-panel-pro > .autopublish-panel-head-pro.autopublish-worker-head-pro {
  display: grid !important;
  grid-template-columns: 170px minmax(0, 1fr) !important;
  gap: 16px !important;
  align-items: center !important;
  padding: 0 0 16px !important;
  margin: 0 0 16px !important;
  border-bottom: 1px solid rgba(168, 181, 217, 0.28) !important;
}

.autopublish-worker-panel-pro > .autopublish-panel-head-pro.autopublish-worker-head-pro h3 {
  margin: 0 !important;
  color: #12203c !important;
  font-size: 18px !important;
  line-height: 1.2 !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
}

.autopublish-worker-panel-pro > .autopublish-panel-head-pro.autopublish-worker-head-pro > p {
  display: none !important;
}

.autopublish-worker-header-controls-pro {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 14px !important;
  align-items: center !important;
  width: 100% !important;
}

.autopublish-worker-statusline-pro {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) !important;
  gap: 12px !important;
  align-items: center !important;
  min-height: 58px !important;
  padding: 11px 14px !important;
  border-radius: 18px !important;
  border: 1px solid rgba(140, 119, 255, 0.20) !important;
  background: linear-gradient(135deg, rgba(250, 248, 255, 0.98), rgba(246, 244, 255, 0.92)) !important;
  box-shadow: none !important;
}

.autopublish-worker-statusline-pro.is-running {
  border-color: rgba(52, 190, 118, 0.22) !important;
  background: linear-gradient(135deg, rgba(247, 255, 250, 0.98), rgba(240, 252, 246, 0.92)) !important;
}

.autopublish-worker-badge-pro {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 96px !important;
  height: 34px !important;
  padding: 0 13px !important;
  border-radius: 999px !important;
  font-size: 11px !important;
  font-weight: 850 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
}

.autopublish-worker-badge-pro.is-stopped {
  color: #6d4aff !important;
  background: rgba(112, 78, 255, 0.10) !important;
}

.autopublish-worker-badge-pro.is-running {
  color: #15844f !important;
  background: rgba(34, 197, 94, 0.12) !important;
}

.autopublish-worker-status-copy-pro {
  min-width: 0 !important;
}

.autopublish-worker-status-copy-pro strong {
  display: block !important;
  margin: 0 0 3px !important;
  color: #15213e !important;
  font-size: 15px !important;
  line-height: 1.2 !important;
  font-weight: 850 !important;
}

.autopublish-worker-status-copy-pro p {
  margin: 0 !important;
  color: #64728f !important;
  font-size: 12.5px !important;
  line-height: 1.35 !important;
}

.autopublish-worker-actions-pro {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
}

.autopublish-worker-actions-pro .autopublish-button-pro {
  min-width: 214px !important;
  min-height: 48px !important;
  height: 48px !important;
  padding: 0 20px !important;
  border-radius: 16px !important;
  font-size: 13px !important;
  font-weight: 850 !important;
  white-space: nowrap !important;
  box-shadow: 0 12px 28px rgba(108, 76, 255, 0.20) !important;
}

.autopublish-worker-grid-pro {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 12px !important;
  margin: 0 !important;
}

.autopublish-worker-card-pro {
  min-height: 88px !important;
  padding: 14px 15px !important;
  border-radius: 18px !important;
  border: 1px solid rgba(181, 191, 229, 0.26) !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 255, 0.86)) !important;
  box-shadow: none !important;
}

.autopublish-worker-card-pro span {
  display: block !important;
  margin: 0 0 8px !important;
  color: #7d89a6 !important;
  font-size: 10.5px !important;
  line-height: 1.2 !important;
  font-weight: 850 !important;
  letter-spacing: 0.07em !important;
  text-transform: uppercase !important;
}

.autopublish-worker-card-pro strong {
  display: block !important;
  margin: 0 0 6px !important;
  color: #14213f !important;
  font-size: 17px !important;
  line-height: 1.15 !important;
  font-weight: 850 !important;
}

.autopublish-worker-card-pro p {
  margin: 0 !important;
  color: #697794 !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
}

@media (max-width: 1250px) {
  .autopublish-worker-panel-pro > .autopublish-panel-head-pro.autopublish-worker-head-pro,
  .autopublish-worker-header-controls-pro {
    grid-template-columns: 1fr !important;
  }

  .autopublish-worker-actions-pro,
  .autopublish-worker-actions-pro .autopublish-button-pro {
    width: 100% !important;
  }

  .autopublish-worker-grid-pro {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  .autopublish-worker-statusline-pro,
  .autopublish-worker-grid-pro {
    grid-template-columns: 1fr !important;
  }
}

/* Autopublish page final compact typography and dashed cards */
.autopublish-page-pro,
.autopublish-dashboard-pro {
  color: #101a33 !important;
  font-feature-settings: "kern" 1 !important;
  -webkit-font-smoothing: antialiased !important;
}

.autopublish-dashboard-pro {
  gap: 18px !important;
}

.autopublish-dashboard-pro h2,
.autopublish-dashboard-pro h3,
.autopublish-dashboard-pro strong {
  letter-spacing: -0.015em !important;
}

.autopublish-dashboard-pro p,
.autopublish-dashboard-pro span,
.autopublish-dashboard-pro label,
.autopublish-dashboard-pro button,
.autopublish-dashboard-pro input,
.autopublish-dashboard-pro select,
.autopublish-dashboard-pro textarea {
  font-family: inherit !important;
}

.autopublish-panel-pro,
.autopublish-metric-card-pro,
.autopublish-worker-card-pro,
.autopublish-workflow-step-pro,
.autopublish-account-column-pro,
.autopublish-account-row-pro,
.autopublish-setting-row-pro,
.autopublish-preflight-card-pro,
.autopublish-plan-list-pro,
.autopublish-history-list-pro,
.autopublish-readiness-card-pro,
.autopublish-save-bar-pro,
.autopublish-mini-empty-pro,
.autopublish-state-pro {
  border: 1px dashed rgba(136, 109, 255, 0.30) !important;
  box-shadow: none !important;
}

.autopublish-panel-pro,
.autopublish-metric-card-pro,
.autopublish-worker-card-pro,
.autopublish-workflow-step-pro,
.autopublish-preflight-card-pro,
.autopublish-readiness-card-pro {
  background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(248,250,255,0.82)) !important;
}

.autopublish-panel-head-pro {
  padding-bottom: 14px !important;
  margin-bottom: 16px !important;
  border-bottom: 1px dashed rgba(136, 109, 255, 0.18) !important;
}

.autopublish-panel-head-pro h3,
.autopublish-worker-panel-pro > .autopublish-panel-head-pro.autopublish-worker-head-pro h3 {
  color: #0f1b35 !important;
  font-size: 18px !important;
  line-height: 1.18 !important;
  font-weight: 850 !important;
}

.autopublish-panel-head-pro p {
  color: #63718f !important;
  font-size: 13px !important;
  line-height: 1.45 !important;
  font-weight: 500 !important;
}

.autopublish-metric-copy-pro span,
.autopublish-worker-card-pro span,
.autopublish-setting-row-pro strong,
.autopublish-preflight-top-pro span,
.autopublish-readiness-card-pro span,
.autopublish-account-column-head-pro strong,
.autopublish-plan-row-pro--head,
.autopublish-history-row-pro--head {
  color: #73809d !important;
  font-size: 11px !important;
  line-height: 1.2 !important;
  font-weight: 850 !important;
  letter-spacing: 0.075em !important;
  text-transform: uppercase !important;
}

.autopublish-metric-copy-pro strong,
.autopublish-worker-card-pro strong,
.autopublish-workflow-step-pro strong,
.autopublish-preflight-card-pro strong,
.autopublish-readiness-card-pro strong,
.autopublish-account-row-pro strong {
  color: #111d38 !important;
  font-weight: 850 !important;
  letter-spacing: -0.018em !important;
}

.autopublish-metric-copy-pro p,
.autopublish-worker-card-pro p,
.autopublish-workflow-step-pro p,
.autopublish-preflight-card-pro p,
.autopublish-readiness-card-pro p,
.autopublish-account-row-pro span,
.autopublish-setting-row-pro span,
.autopublish-mini-empty-pro p {
  color: #65738f !important;
  font-size: 12.5px !important;
  line-height: 1.42 !important;
  font-weight: 500 !important;
}

.autopublish-worker-panel-pro {
  padding: 20px 22px !important;
  border-radius: 22px !important;
}

.autopublish-worker-panel-pro > .autopublish-panel-head-pro.autopublish-worker-head-pro {
  display: grid !important;
  grid-template-columns: 180px minmax(0, 1fr) auto !important;
  gap: 14px !important;
  align-items: center !important;
  padding: 0 0 14px !important;
  margin: 0 0 16px !important;
  border-bottom: 1px dashed rgba(136, 109, 255, 0.20) !important;
}

.autopublish-worker-header-controls-pro {
  display: contents !important;
}

.autopublish-worker-statusline-pro {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) !important;
  gap: 10px !important;
  align-items: center !important;
  min-height: 0 !important;
  padding: 10px 12px !important;
  border-radius: 16px !important;
  border: 1px dashed rgba(136, 109, 255, 0.28) !important;
  background: rgba(250, 248, 255, 0.72) !important;
  box-shadow: none !important;
}

.autopublish-worker-badge-pro {
  min-width: 86px !important;
  height: 30px !important;
  padding: 0 11px !important;
  border-radius: 999px !important;
  font-size: 10.5px !important;
  font-weight: 850 !important;
  letter-spacing: 0.07em !important;
  text-transform: uppercase !important;
}

.autopublish-worker-status-copy-pro strong {
  margin: 0 0 2px !important;
  color: #111d38 !important;
  font-size: 14.5px !important;
  line-height: 1.15 !important;
  font-weight: 850 !important;
}

.autopublish-worker-status-copy-pro p {
  margin: 0 !important;
  color: #65738f !important;
  font-size: 12.2px !important;
  line-height: 1.35 !important;
  font-weight: 500 !important;
}

.autopublish-worker-actions-pro {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
}

.autopublish-worker-actions-pro .autopublish-button-pro,
.autopublish-button-pro {
  border-radius: 14px !important;
  font-size: 13px !important;
  font-weight: 850 !important;
  letter-spacing: -0.01em !important;
}

.autopublish-worker-actions-pro .autopublish-button-pro {
  min-width: 196px !important;
  height: 44px !important;
  min-height: 44px !important;
  padding: 0 18px !important;
  box-shadow: 0 10px 22px rgba(108, 76, 255, 0.16) !important;
}

.autopublish-worker-grid-pro {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 12px !important;
  margin: 0 !important;
}

.autopublish-worker-card-pro {
  min-height: 78px !important;
  padding: 13px 14px !important;
  border-radius: 16px !important;
}

.autopublish-worker-card-pro span {
  margin-bottom: 7px !important;
}

.autopublish-worker-card-pro strong {
  margin: 0 0 5px !important;
  font-size: 16.5px !important;
  line-height: 1.15 !important;
}

.autopublish-metrics-grid-pro {
  gap: 12px !important;
}

.autopublish-metric-card-pro {
  border-radius: 18px !important;
  padding: 15px 16px !important;
  min-height: 86px !important;
}

.autopublish-metric-copy-pro strong {
  font-size: 20px !important;
  line-height: 1.1 !important;
}

.autopublish-control-grid-pro,
.autopublish-account-columns-pro,
.autopublish-form-grid-pro {
  gap: 14px !important;
}

.autopublish-setting-row-pro,
.autopublish-account-row-pro {
  border-radius: 16px !important;
  background: rgba(255,255,255,0.70) !important;
}

@media (max-width: 1180px) {
  .autopublish-worker-panel-pro > .autopublish-panel-head-pro.autopublish-worker-head-pro {
    grid-template-columns: 1fr !important;
  }

  .autopublish-worker-header-controls-pro {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 12px !important;
  }

  .autopublish-worker-grid-pro {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  .autopublish-worker-header-controls-pro,
  .autopublish-worker-statusline-pro,
  .autopublish-worker-grid-pro {
    grid-template-columns: 1fr !important;
  }

  .autopublish-worker-actions-pro,
  .autopublish-worker-actions-pro .autopublish-button-pro {
    width: 100% !important;
  }
}

/* Autopublish final typography cleanup: close to AI connections page */
.autopublish-page-pro,
.autopublish-dashboard-pro {
  color: #171b25 !important;
  font-weight: 440 !important;
  letter-spacing: 0 !important;
}

.autopublish-dashboard-pro :where(p, span, label, small, input, select, textarea) {
  color: #687286 !important;
  font-weight: 440 !important;
  letter-spacing: 0 !important;
}

.autopublish-dashboard-pro :where(h2, h3) {
  color: #171b25 !important;
  font-weight: 760 !important;
  letter-spacing: -0.02em !important;
}

.autopublish-dashboard-pro :where(strong) {
  color: #171b25 !important;
  font-weight: 650 !important;
  letter-spacing: -0.01em !important;
}

.autopublish-panel-pro,
.autopublish-metric-card-pro,
.autopublish-worker-card-pro,
.autopublish-workflow-step-pro,
.autopublish-account-column-pro,
.autopublish-account-row-pro,
.autopublish-setting-row-pro,
.autopublish-preflight-card-pro,
.autopublish-plan-list-pro,
.autopublish-history-list-pro,
.autopublish-readiness-card-pro,
.autopublish-save-bar-pro,
.autopublish-mini-empty-pro,
.autopublish-state-pro {
  border: 1px dashed rgba(136, 109, 255, 0.28) !important;
  box-shadow: none !important;
}

.autopublish-panel-head-pro h3,
.autopublish-worker-panel-pro > .autopublish-panel-head-pro.autopublish-worker-head-pro h3 {
  font-size: 17px !important;
  line-height: 1.14 !important;
  font-weight: 760 !important;
  letter-spacing: -0.02em !important;
}

.autopublish-panel-head-pro p,
.autopublish-worker-panel-pro > .autopublish-panel-head-pro.autopublish-worker-head-pro > p {
  display: none !important;
}

.autopublish-metric-copy-pro span,
.autopublish-worker-card-pro span,
.autopublish-preflight-top-pro span,
.autopublish-readiness-card-pro span,
.autopublish-account-column-head-pro strong,
.autopublish-plan-row-pro--head,
.autopublish-history-row-pro--head,
.autopublish-setting-row-pro strong {
  color: #7a8498 !important;
  font-size: 11px !important;
  line-height: 1.2 !important;
  font-weight: 650 !important;
  letter-spacing: 0.055em !important;
  text-transform: uppercase !important;
}

.autopublish-metric-copy-pro strong,
.autopublish-worker-card-pro strong,
.autopublish-workflow-step-pro strong,
.autopublish-preflight-card-pro strong,
.autopublish-readiness-card-pro strong,
.autopublish-account-row-pro strong {
  color: #171b25 !important;
  font-weight: 680 !important;
  letter-spacing: -0.015em !important;
}

.autopublish-metric-copy-pro p,
.autopublish-worker-card-pro p,
.autopublish-workflow-step-pro p,
.autopublish-preflight-card-pro p,
.autopublish-readiness-card-pro p,
.autopublish-account-row-pro span,
.autopublish-setting-row-pro span,
.autopublish-mini-empty-pro p {
  color: #687286 !important;
  font-size: 12.5px !important;
  line-height: 1.42 !important;
  font-weight: 440 !important;
  letter-spacing: 0 !important;
}

.autopublish-worker-panel-pro {
  padding: 16px 18px !important;
  border-radius: 22px !important;
}

.autopublish-worker-panel-pro > .autopublish-panel-head-pro.autopublish-worker-head-pro {
  display: grid !important;
  grid-template-columns: 170px minmax(0, 1fr) auto !important;
  gap: 12px !important;
  align-items: center !important;
  padding: 0 0 12px !important;
  margin: 0 0 14px !important;
  border-bottom: 1px dashed rgba(136, 109, 255, 0.18) !important;
}

.autopublish-worker-header-controls-pro {
  display: contents !important;
}

.autopublish-worker-statusline-pro {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 9px !important;
  min-height: 48px !important;
  padding: 8px 10px !important;
  border: 1px dashed rgba(136, 109, 255, 0.26) !important;
  border-radius: 15px !important;
  background: rgba(250, 248, 255, 0.70) !important;
  box-shadow: none !important;
}

.autopublish-worker-badge-pro {
  min-width: 78px !important;
  height: 28px !important;
  padding: 0 10px !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 0.055em !important;
}

.autopublish-worker-status-copy-pro strong {
  display: block !important;
  margin: 0 0 2px !important;
  color: #171b25 !important;
  font-size: 13.5px !important;
  line-height: 1.15 !important;
  font-weight: 680 !important;
  letter-spacing: -0.01em !important;
}

.autopublish-worker-status-copy-pro p {
  margin: 0 !important;
  color: #687286 !important;
  font-size: 12.2px !important;
  line-height: 1.34 !important;
  font-weight: 440 !important;
  letter-spacing: 0 !important;
}

.autopublish-worker-actions-pro {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
}

.autopublish-button-pro,
.autopublish-worker-actions-pro .autopublish-button-pro {
  border-radius: 14px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: -0.005em !important;
}

.autopublish-worker-actions-pro .autopublish-button-pro {
  min-width: 184px !important;
  width: auto !important;
  height: 42px !important;
  min-height: 42px !important;
  padding: 0 16px !important;
  box-shadow: 0 10px 22px rgba(108, 76, 255, 0.14) !important;
}

.autopublish-worker-grid-pro {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 11px !important;
  margin: 0 !important;
}

.autopublish-worker-card-pro {
  min-height: 74px !important;
  padding: 12px 13px !important;
  border-radius: 15px !important;
  background: rgba(255, 255, 255, 0.72) !important;
}

.autopublish-worker-card-pro span {
  margin-bottom: 6px !important;
}

.autopublish-worker-card-pro strong {
  margin: 0 0 4px !important;
  font-size: 16px !important;
  line-height: 1.12 !important;
  font-weight: 680 !important;
}

.autopublish-metric-copy-pro strong {
  font-size: 19px !important;
  line-height: 1.1 !important;
  font-weight: 700 !important;
}

.autopublish-workflow-index-pro,
.autopublish-provider-badge-pro,
.autopublish-account-badge-pro {
  font-weight: 650 !important;
}

@media (max-width: 1180px) {
  .autopublish-worker-panel-pro > .autopublish-panel-head-pro.autopublish-worker-head-pro {
    grid-template-columns: 1fr !important;
  }

  .autopublish-worker-header-controls-pro {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 12px !important;
  }

  .autopublish-worker-grid-pro {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  .autopublish-worker-header-controls-pro,
  .autopublish-worker-statusline-pro,
  .autopublish-worker-grid-pro {
    grid-template-columns: 1fr !important;
  }

  .autopublish-worker-actions-pro,
  .autopublish-worker-actions-pro .autopublish-button-pro {
    width: 100% !important;
  }
}

/* Autopublish accounts panel layout fix */
.autopublish-control-grid-pro {
  align-items: start !important;
  grid-auto-rows: max-content !important;
}

.autopublish-control-grid-pro > .autopublish-panel-pro {
  align-self: start !important;
  min-height: 0 !important;
}

.autopublish-accounts-panel-pro {
  min-height: 0 !important;
  padding: 18px !important;
  border-radius: 22px !important;
  overflow: visible !important;
}

.autopublish-accounts-panel-pro > .autopublish-panel-head-pro {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  min-height: 0 !important;
  padding: 0 0 14px !important;
  margin: 0 0 14px !important;
  border-bottom: 1px dashed rgba(136, 109, 255, 0.20) !important;
}

.autopublish-accounts-panel-pro > .autopublish-panel-head-pro h3 {
  margin: 0 !important;
  color: #171b25 !important;
  font-size: 15.5px !important;
  line-height: 1.2 !important;
  font-weight: 680 !important;
  letter-spacing: -0.01em !important;
}

.autopublish-accounts-panel-pro > .autopublish-panel-head-pro p {
  display: none !important;
}

.autopublish-accounts-panel-pro .autopublish-account-columns-pro {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  align-items: start !important;
  gap: 14px !important;
}

.autopublish-accounts-panel-pro .autopublish-account-column-pro {
  display: grid !important;
  align-content: start !important;
  gap: 12px !important;
  min-height: 0 !important;
  padding: 14px !important;
  border: 1px dashed rgba(136, 109, 255, 0.26) !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, 0.62) !important;
}

.autopublish-accounts-panel-pro .autopublish-account-column-head-pro {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  min-height: 32px !important;
}

.autopublish-accounts-panel-pro .autopublish-account-column-head-pro strong {
  margin: 0 !important;
  color: #7a849a !important;
  font-size: 10.5px !important;
  line-height: 1 !important;
  font-weight: 700 !important;
  letter-spacing: 0.075em !important;
  text-transform: uppercase !important;
}

.autopublish-accounts-panel-pro .autopublish-account-column-head-pro button,
.autopublish-accounts-panel-pro .autopublish-account-column-status-pro {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 30px !important;
  padding: 0 12px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(203, 213, 225, 0.88) !important;
  background: #ffffff !important;
  color: #6d45f5 !important;
  font-size: 11.5px !important;
  line-height: 1 !important;
  font-weight: 650 !important;
  letter-spacing: -0.005em !important;
  white-space: nowrap !important;
}

.autopublish-accounts-panel-pro .autopublish-account-column-status-pro {
  color: #7a849a !important;
  background: rgba(247, 249, 255, 0.78) !important;
}

.autopublish-accounts-panel-pro .autopublish-account-row-pro {
  grid-template-columns: 18px minmax(0, 1fr) auto !important;
  gap: 10px !important;
  min-height: 72px !important;
  padding: 12px !important;
  border-radius: 16px !important;
  background: rgba(255, 255, 255, 0.78) !important;
}

.autopublish-accounts-panel-pro .autopublish-account-row-pro input {
  width: 15px !important;
  height: 15px !important;
}

.autopublish-accounts-panel-pro .autopublish-account-row-pro strong {
  color: #171b25 !important;
  font-size: 13.5px !important;
  line-height: 1.2 !important;
  font-weight: 650 !important;
  letter-spacing: -0.01em !important;
  text-transform: none !important;
}

.autopublish-accounts-panel-pro .autopublish-account-row-pro span {
  color: #687286 !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
  font-weight: 430 !important;
}

.autopublish-accounts-panel-pro .autopublish-account-row-pro em {
  padding: 5px 9px !important;
  border-radius: 999px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
}

.autopublish-accounts-panel-pro .autopublish-mini-empty-pro {
  display: grid !important;
  align-content: center !important;
  min-height: 72px !important;
  padding: 14px 16px !important;
  border: 1px dashed rgba(136, 109, 255, 0.24) !important;
  border-radius: 16px !important;
  background: rgba(255, 255, 255, 0.70) !important;
  text-align: left !important;
}

.autopublish-accounts-panel-pro .autopublish-mini-empty-pro strong {
  margin: 0 0 6px !important;
  color: #171b25 !important;
  font-size: 13.5px !important;
  line-height: 1.2 !important;
  font-weight: 650 !important;
}

.autopublish-accounts-panel-pro .autopublish-mini-empty-pro p {
  margin: 0 !important;
  color: #687286 !important;
  font-size: 12.2px !important;
  line-height: 1.42 !important;
  font-weight: 430 !important;
}

@media (max-width: 900px) {
  .autopublish-accounts-panel-pro .autopublish-account-columns-pro {
    grid-template-columns: 1fr !important;
  }
}


/* Autopublish: publication history table cleanup */
.autopublish-history-panel-pro .autopublish-history-list-pro {
  gap: 12px;
  overflow-x: auto;
  overflow-y: visible;
  padding-bottom: 2px;
}

.autopublish-history-panel-pro .autopublish-history-row-pro {
  grid-template-columns: 126px 92px minmax(150px, 0.9fr) minmax(280px, 1.55fr) 146px minmax(250px, 1.2fr);
  gap: 14px;
  align-items: start;
  min-width: 1120px;
  padding: 14px 16px;
}

.autopublish-history-panel-pro .autopublish-history-row-pro--head {
  align-items: center;
}

.autopublish-history-panel-pro .autopublish-history-row-pro span {
  min-width: 0;
  max-width: 100%;
}

.autopublish-history-panel-pro .autopublish-history-row-pro:not(.autopublish-history-row-pro--head) span:nth-child(1),
.autopublish-history-panel-pro .autopublish-history-row-pro:not(.autopublish-history-row-pro--head) span:nth-child(2),
.autopublish-history-panel-pro .autopublish-history-row-pro:not(.autopublish-history-row-pro--head) span:nth-child(3) {
  white-space: nowrap;
}

.autopublish-history-panel-pro .autopublish-history-row-pro:not(.autopublish-history-row-pro--head) span:nth-child(4),
.autopublish-history-panel-pro .autopublish-history-row-pro:not(.autopublish-history-row-pro--head) span:nth-child(6) {
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  word-break: break-word;
  overflow-wrap: anywhere;
  line-height: 1.45;
}

.autopublish-history-panel-pro .autopublish-history-row-pro .is-status {
  align-self: start;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.autopublish-history-panel-pro .autopublish-history-row-pro a {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  white-space: normal;
  word-break: break-word;
}

@media (max-width: 1320px) {
  .autopublish-history-panel-pro .autopublish-history-row-pro {
    min-width: 1040px;
    grid-template-columns: 118px 86px minmax(136px, 0.82fr) minmax(240px, 1.35fr) 136px minmax(220px, 1.05fr);
  }
}

/* Autopublish: make publication history table headers darker and slightly stronger */
.autopublish-history-panel-pro .autopublish-history-row-pro--head span {
  color: #0a0f1f !important;
  font-weight: 680 !important;
  letter-spacing: 0.035em !important;
}

/* Autopublish: remove dashed borders from publication history block */
.autopublish-history-panel-pro {
  border: 1px solid rgba(218, 226, 242, 0.92) !important;
  outline: none !important;
}

.autopublish-history-panel-pro .autopublish-history-list-pro {
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
}

.autopublish-history-panel-pro .autopublish-history-row-pro,
.autopublish-history-panel-pro .autopublish-history-row-pro--head {
  border-style: solid !important;
  outline: none !important;
}


/* Autopublish: equal control blocks + scrollable accounts */
.autopublish-control-grid-pro {
  align-items: stretch !important;
  grid-auto-rows: unset !important;
}

.autopublish-control-grid-pro > .autopublish-panel-pro {
  display: flex !important;
  flex-direction: column !important;
  align-self: stretch !important;
  min-height: 520px !important;
  height: 520px !important;
  overflow: hidden !important;
}

.autopublish-control-grid-pro > .autopublish-panel-pro > .autopublish-panel-head-pro {
  flex: 0 0 auto !important;
}

.autopublish-control-grid-pro > .autopublish-panel-pro > .autopublish-form-grid-pro {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  align-content: start !important;
  overflow: visible !important;
}

.autopublish-control-grid-pro > .autopublish-panel-pro > .autopublish-panel-footer-pro,
.autopublish-control-grid-pro > .autopublish-panel-pro > .autopublish-save-bar-pro {
  flex: 0 0 auto !important;
}

.autopublish-control-grid-pro > .autopublish-panel-pro > .autopublish-save-bar-pro:last-child {
  margin-top: auto !important;
}

.autopublish-accounts-panel-pro {
  display: flex !important;
  flex-direction: column !important;
  min-height: 520px !important;
  height: 520px !important;
  overflow: hidden !important;
}

.autopublish-accounts-panel-pro > .autopublish-panel-head-pro {
  flex: 0 0 auto !important;
}

.autopublish-accounts-panel-pro .autopublish-account-columns-pro {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  height: auto !important;
  align-items: stretch !important;
  overflow: hidden !important;
}

.autopublish-accounts-panel-pro .autopublish-account-column-pro {
  display: flex !important;
  flex-direction: column !important;
  align-content: initial !important;
  min-height: 0 !important;
  height: 100% !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  scrollbar-gutter: stable !important;
}

.autopublish-accounts-panel-pro .autopublish-account-column-head-pro {
  position: sticky !important;
  top: 0 !important;
  z-index: 2 !important;
  flex: 0 0 auto !important;
  padding-bottom: 8px !important;
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(8px) !important;
}

.autopublish-accounts-panel-pro .autopublish-account-row-pro,
.autopublish-accounts-panel-pro .autopublish-mini-empty-pro {
  flex: 0 0 auto !important;
}

.autopublish-accounts-panel-pro .autopublish-account-column-pro::-webkit-scrollbar {
  width: 8px;
}

.autopublish-accounts-panel-pro .autopublish-account-column-pro::-webkit-scrollbar-track {
  background: rgba(241, 245, 249, 0.7);
  border-radius: 999px;
}

.autopublish-accounts-panel-pro .autopublish-account-column-pro::-webkit-scrollbar-thumb {
  background: rgba(134, 117, 255, 0.35);
  border-radius: 999px;
}

.autopublish-accounts-panel-pro .autopublish-account-column-pro::-webkit-scrollbar-thumb:hover {
  background: rgba(109, 69, 245, 0.46);
}

@media (max-width: 900px) {
  .autopublish-control-grid-pro > .autopublish-panel-pro,
  .autopublish-accounts-panel-pro {
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
  }

  .autopublish-accounts-panel-pro .autopublish-account-columns-pro {
    overflow: visible !important;
  }

  .autopublish-accounts-panel-pro .autopublish-account-column-pro {
    max-height: 360px !important;
    height: auto !important;
  }
}


/* Autopublish: taller equal control blocks, no clipping */
.autopublish-control-grid-pro {
  align-items: stretch !important;
}

.autopublish-control-grid-pro > .autopublish-panel-pro,
.autopublish-accounts-panel-pro {
  min-height: 760px !important;
  height: 760px !important;
  max-height: 760px !important;
  overflow: hidden !important;
}

.autopublish-control-grid-pro > .autopublish-panel-pro > .autopublish-panel-head-pro {
  flex: 0 0 auto !important;
}

.autopublish-control-grid-pro > .autopublish-panel-pro > .autopublish-form-grid-pro {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  max-height: none !important;
  align-content: start !important;
  overflow: visible !important;
  padding-bottom: 12px !important;
}

.autopublish-control-grid-pro > .autopublish-panel-pro > .autopublish-save-bar-pro:last-child {
  flex: 0 0 auto !important;
  margin-top: auto !important;
  position: relative !important;
  z-index: 1 !important;
}

.autopublish-accounts-panel-pro .autopublish-account-columns-pro {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

.autopublish-accounts-panel-pro .autopublish-account-column-pro {
  max-height: none !important;
  min-height: 0 !important;
  height: 100% !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  scrollbar-gutter: stable !important;
  padding-right: 6px !important;
}

@media (max-width: 900px) {
  .autopublish-control-grid-pro > .autopublish-panel-pro,
  .autopublish-accounts-panel-pro {
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .autopublish-accounts-panel-pro .autopublish-account-column-pro {
    max-height: 420px !important;
    height: auto !important;
  }
}


/* Autopublish: cleaner control block action zones */
.autopublish-control-grid-pro > .autopublish-panel-pro {
  padding-bottom: 18px !important;
}

.autopublish-control-grid-pro > .autopublish-panel-pro > .autopublish-form-grid-pro {
  flex: 0 0 auto !important;
  padding-bottom: 0 !important;
}

.autopublish-control-grid-pro > .autopublish-panel-pro > .autopublish-panel-footer-pro {
  margin-top: 18px !important;
  padding-top: 18px !important;
  border-top: 1px solid rgba(223, 230, 241, 0.78) !important;
  justify-content: flex-end !important;
  gap: 12px !important;
}

.autopublish-control-grid-pro > .autopublish-panel-pro > .autopublish-save-bar-pro,
.autopublish-control-grid-pro > .autopublish-panel-pro > .autopublish-save-bar-pro:last-child {
  margin-top: 12px !important;
}

.autopublish-control-grid-pro > .autopublish-panel-pro > .autopublish-save-bar-pro:last-child {
  margin-top: 12px !important;
}

.autopublish-control-grid-pro > .autopublish-panel-pro > .autopublish-panel-footer-pro .autopublish-button-pro {
  min-width: 0 !important;
  min-height: 42px !important;
  padding: 0 18px !important;
  border-radius: 14px !important;
}

.autopublish-control-grid-pro > .autopublish-panel-pro > .autopublish-save-bar-pro {
  min-height: 58px !important;
  border-style: solid !important;
  border-color: rgba(223, 230, 241, 0.88) !important;
  background: rgba(255, 255, 255, 0.76) !important;
}

.autopublish-control-grid-pro > .autopublish-panel-pro > .autopublish-save-bar-pro button {
  min-height: 34px !important;
  border-radius: 12px !important;
}

@media (max-width: 900px) {
  .autopublish-control-grid-pro > .autopublish-panel-pro > .autopublish-panel-footer-pro {
    justify-content: stretch !important;
  }

  .autopublish-control-grid-pro > .autopublish-panel-pro > .autopublish-panel-footer-pro .autopublish-button-pro,
  .autopublish-control-grid-pro > .autopublish-panel-pro > .autopublish-save-bar-pro button {
    width: 100% !important;
  }
}

/* Autopublish: compact equal height for Proxy/Antidetect and Pregeneration panels */
.autopublish-control-grid-pro > .autopublish-panel-pro:nth-child(3),
.autopublish-control-grid-pro > .autopublish-panel-pro:nth-child(4) {
  min-height: 590px !important;
  height: 590px !important;
  max-height: 590px !important;
  overflow: hidden !important;
}

.autopublish-control-grid-pro > .autopublish-panel-pro:nth-child(3) > .autopublish-form-grid-pro,
.autopublish-control-grid-pro > .autopublish-panel-pro:nth-child(4) > .autopublish-form-grid-pro {
  flex: 0 0 auto !important;
  min-height: 0 !important;
  padding-bottom: 0 !important;
  overflow: visible !important;
}

.autopublish-control-grid-pro > .autopublish-panel-pro:nth-child(3) > .autopublish-panel-footer-pro,
.autopublish-control-grid-pro > .autopublish-panel-pro:nth-child(4) > .autopublish-panel-footer-pro {
  margin-top: 18px !important;
  padding-top: 16px !important;
  border-top: 1px solid rgba(223, 230, 241, 0.78) !important;
}

.autopublish-control-grid-pro > .autopublish-panel-pro:nth-child(3) > .autopublish-save-bar-pro,
.autopublish-control-grid-pro > .autopublish-panel-pro:nth-child(4) > .autopublish-save-bar-pro,
.autopublish-control-grid-pro > .autopublish-panel-pro:nth-child(3) > .autopublish-save-bar-pro:last-child,
.autopublish-control-grid-pro > .autopublish-panel-pro:nth-child(4) > .autopublish-save-bar-pro:last-child {
  margin-top: 12px !important;
}

@media (max-width: 900px) {
  .autopublish-control-grid-pro > .autopublish-panel-pro:nth-child(3),
  .autopublish-control-grid-pro > .autopublish-panel-pro:nth-child(4) {
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }
}

/* Autopublish generation template and start balance modal */
.autopublish-template-row-pro {
  align-items: center;
}

.autopublish-template-create-pro {
  min-height: 40px;
  border: 1px solid rgba(124, 92, 255, 0.28);
  border-radius: 14px;
  background: #ffffff;
  color: #6d45f5;
  padding: 0 14px;
  font-size: 12.5px;
  font-weight: 650;
  cursor: pointer;
}

.autopublish-button-pro:disabled,
.autopublish-button-pro[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.autopublish-modal-overlay-pro {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.34);
  backdrop-filter: blur(7px);
}

.autopublish-start-modal-pro {
  width: min(520px, 100%);
  border: 1px solid rgba(213, 222, 239, 0.96);
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.20);
  padding: 24px;
}

.autopublish-start-modal-pro h3 {
  margin: 0 0 10px;
  color: #07142f;
  font-size: 21px;
  line-height: 1.2;
  font-weight: 720;
  letter-spacing: -0.02em;
}

.autopublish-start-modal-pro p {
  margin: 0 0 18px;
  color: #64718a;
  font-size: 13.5px;
  line-height: 1.55;
  font-weight: 430;
}

.autopublish-start-balance-field-pro {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.autopublish-start-balance-field-pro span {
  color: #25324a;
  font-size: 12.8px;
  line-height: 1.2;
  font-weight: 650;
}

.autopublish-start-balance-field-pro input {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(203, 213, 225, 0.95);
  border-radius: 16px;
  background: #ffffff;
  color: #17233b;
  padding: 0 14px;
  font-size: 16px;
  font-weight: 620;
  outline: none;
}

.autopublish-start-balance-field-pro input:focus {
  border-color: rgba(124, 92, 255, 0.55);
  box-shadow: 0 0 0 4px rgba(124, 92, 255, 0.08);
}

.autopublish-start-modal-error-pro {
  min-height: 20px;
  margin-bottom: 12px;
  color: #dc2626;
  font-size: 12.8px;
  line-height: 1.35;
  font-weight: 520;
}

.autopublish-start-modal-actions-pro {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

@media (max-width: 620px) {
  .autopublish-start-modal-actions-pro {
    flex-direction: column-reverse;
  }

  .autopublish-start-modal-actions-pro .autopublish-button-pro {
    width: 100%;
  }
}

/* Autopublish disabled start button tooltip */
.autopublish-start-button-wrap-pro {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
}

.autopublish-start-button-wrap-pro.is-disabled {
  cursor: not-allowed;
}

.autopublish-start-button-wrap-pro.is-disabled::before,
.autopublish-start-button-wrap-pro.is-disabled::after {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 12px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 6px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
  z-index: 40;
}

.autopublish-start-button-wrap-pro.is-disabled::before {
  content: attr(data-tooltip);
  width: max-content;
  max-width: 280px;
  padding: 10px 12px;
  border: 1px solid rgba(124, 92, 255, 0.18);
  border-radius: 14px;
  background: #ffffff;
  color: #17233b;
  box-shadow: 0 16px 36px rgba(42, 33, 105, 0.16);
  font-size: 12.4px;
  line-height: 1.35;
  font-weight: 600;
  text-align: center;
  white-space: normal;
}

.autopublish-start-button-wrap-pro.is-disabled::after {
  content: '';
  bottom: calc(100% + 5px);
  width: 12px;
  height: 12px;
  background: #ffffff;
  border-right: 1px solid rgba(124, 92, 255, 0.18);
  border-bottom: 1px solid rgba(124, 92, 255, 0.18);
  transform: translate(-50%, 6px) rotate(45deg);
}

.autopublish-start-button-wrap-pro.is-disabled:hover::before,
.autopublish-start-button-wrap-pro.is-disabled:hover::after,
.autopublish-start-button-wrap-pro.is-disabled:focus-within::before,
.autopublish-start-button-wrap-pro.is-disabled:focus-within::after {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.autopublish-start-button-wrap-pro.is-disabled:hover::after,
.autopublish-start-button-wrap-pro.is-disabled:focus-within::after {
  transform: translate(-50%, 0) rotate(45deg);
}

/* Autopublish start button tooltip: body-level, not clipped by cards */
.autopublish-start-button-wrap-pro.is-disabled::before,
.autopublish-start-button-wrap-pro.is-disabled::after {
  display: none !important;
}

.autopublish-start-floating-tooltip-pro {
  position: fixed;
  z-index: 2147483000;
  max-width: 300px;
  padding: 10px 13px;
  border: 1px solid rgba(124, 92, 255, 0.20);
  border-radius: 14px;
  background: #ffffff;
  color: #17233b;
  box-shadow: 0 18px 42px rgba(42, 33, 105, 0.20);
  font-size: 12.5px;
  line-height: 1.35;
  font-weight: 620;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-3px);
  transition: opacity 0.14s ease, transform 0.14s ease;
}

.autopublish-start-floating-tooltip-pro::before {
  content: '';
  position: absolute;
  left: 50%;
  top: -7px;
  width: 12px;
  height: 12px;
  background: #ffffff;
  border-left: 1px solid rgba(124, 92, 255, 0.20);
  border-top: 1px solid rgba(124, 92, 255, 0.20);
  transform: translateX(-50%) rotate(45deg);
}

.autopublish-start-floating-tooltip-pro[data-visible='true'] {
  opacity: 1;
  transform: translateY(0);
}


/* Autopublish: generation template panel no clipping */
.autopublish-control-grid-pro > .autopublish-generation-panel-pro {
  min-height: 680px !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}

.autopublish-control-grid-pro > .autopublish-generation-panel-pro > .autopublish-form-grid-pro {
  flex: 0 0 auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
  padding-bottom: 0 !important;
}

.autopublish-control-grid-pro > .autopublish-generation-panel-pro > .autopublish-panel-footer-pro {
  flex: 0 0 auto !important;
  margin-top: 18px !important;
}

.autopublish-control-grid-pro > .autopublish-generation-panel-pro > .autopublish-save-bar-pro,
.autopublish-control-grid-pro > .autopublish-generation-panel-pro > .autopublish-save-bar-pro:last-child {
  flex: 0 0 auto !important;
  margin-top: 12px !important;
  margin-bottom: 0 !important;
}

@media (max-width: 900px) {
  .autopublish-control-grid-pro > .autopublish-generation-panel-pro {
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }
}


/* Autopublish: final no-clipping height for proxy + generation panels after template selector */
.autopublish-control-grid-pro > .autopublish-panel-pro.autopublish-generation-panel-pro:nth-child(4),
.autopublish-control-grid-pro > .autopublish-panel-pro:nth-child(3) {
  min-height: 700px !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}

.autopublish-control-grid-pro > .autopublish-panel-pro.autopublish-generation-panel-pro:nth-child(4) > .autopublish-form-grid-pro,
.autopublish-control-grid-pro > .autopublish-panel-pro:nth-child(3) > .autopublish-form-grid-pro {
  flex: 0 0 auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
  padding-bottom: 0 !important;
}

.autopublish-control-grid-pro > .autopublish-panel-pro.autopublish-generation-panel-pro:nth-child(4) > .autopublish-panel-footer-pro,
.autopublish-control-grid-pro > .autopublish-panel-pro:nth-child(3) > .autopublish-panel-footer-pro {
  flex: 0 0 auto !important;
  margin-top: 18px !important;
  padding-top: 16px !important;
}

.autopublish-control-grid-pro > .autopublish-panel-pro.autopublish-generation-panel-pro:nth-child(4) > .autopublish-save-bar-pro,
.autopublish-control-grid-pro > .autopublish-panel-pro.autopublish-generation-panel-pro:nth-child(4) > .autopublish-save-bar-pro:last-child,
.autopublish-control-grid-pro > .autopublish-panel-pro:nth-child(3) > .autopublish-save-bar-pro,
.autopublish-control-grid-pro > .autopublish-panel-pro:nth-child(3) > .autopublish-save-bar-pro:last-child {
  flex: 0 0 auto !important;
  margin-top: 12px !important;
  margin-bottom: 0 !important;
}


/* Autopublish: equal visible height for Proxy and Generation panels, no bottom clipping */
.autopublish-control-grid-pro {
  align-items: stretch !important;
}

.autopublish-control-grid-pro > .autopublish-panel-pro:nth-child(3),
.autopublish-control-grid-pro > .autopublish-panel-pro:nth-child(4),
.autopublish-control-grid-pro > .autopublish-panel-pro.autopublish-generation-panel-pro,
.autopublish-control-grid-pro > .autopublish-panel-pro.autopublish-generation-panel-pro:nth-child(4) {
  min-height: 720px !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}

.autopublish-control-grid-pro > .autopublish-panel-pro:nth-child(3) > .autopublish-form-grid-pro,
.autopublish-control-grid-pro > .autopublish-panel-pro:nth-child(4) > .autopublish-form-grid-pro,
.autopublish-control-grid-pro > .autopublish-panel-pro.autopublish-generation-panel-pro > .autopublish-form-grid-pro {
  flex: 0 0 auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
  padding-bottom: 0 !important;
}

.autopublish-control-grid-pro > .autopublish-panel-pro:nth-child(3) > .autopublish-panel-footer-pro,
.autopublish-control-grid-pro > .autopublish-panel-pro:nth-child(4) > .autopublish-panel-footer-pro,
.autopublish-control-grid-pro > .autopublish-panel-pro.autopublish-generation-panel-pro > .autopublish-panel-footer-pro {
  flex: 0 0 auto !important;
  margin-top: 18px !important;
  padding-top: 16px !important;
}

.autopublish-control-grid-pro > .autopublish-panel-pro:nth-child(3) > .autopublish-save-bar-pro,
.autopublish-control-grid-pro > .autopublish-panel-pro:nth-child(3) > .autopublish-save-bar-pro:last-child,
.autopublish-control-grid-pro > .autopublish-panel-pro:nth-child(4) > .autopublish-save-bar-pro,
.autopublish-control-grid-pro > .autopublish-panel-pro:nth-child(4) > .autopublish-save-bar-pro:last-child,
.autopublish-control-grid-pro > .autopublish-panel-pro.autopublish-generation-panel-pro > .autopublish-save-bar-pro,
.autopublish-control-grid-pro > .autopublish-panel-pro.autopublish-generation-panel-pro > .autopublish-save-bar-pro:last-child {
  flex: 0 0 auto !important;
  margin-top: 12px !important;
  margin-bottom: 0 !important;
}

@media (max-width: 900px) {
  .autopublish-control-grid-pro > .autopublish-panel-pro:nth-child(3),
  .autopublish-control-grid-pro > .autopublish-panel-pro:nth-child(4),
  .autopublish-control-grid-pro > .autopublish-panel-pro.autopublish-generation-panel-pro,
  .autopublish-control-grid-pro > .autopublish-panel-pro.autopublish-generation-panel-pro:nth-child(4) {
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }
}

/* Autopublish: keep Proxy and Generation action buttons at the bottom */
.autopublish-control-grid-pro > .autopublish-panel-pro:nth-child(3),
.autopublish-control-grid-pro > .autopublish-panel-pro.autopublish-generation-panel-pro,
.autopublish-control-grid-pro > .autopublish-panel-pro.autopublish-generation-panel-pro:nth-child(4) {
  display: flex !important;
  flex-direction: column !important;
  min-height: 720px !important;
  height: 720px !important;
  max-height: 720px !important;
  overflow: hidden !important;
  padding-bottom: 18px !important;
}

.autopublish-control-grid-pro > .autopublish-panel-pro:nth-child(3) > .autopublish-panel-head-pro,
.autopublish-control-grid-pro > .autopublish-panel-pro.autopublish-generation-panel-pro > .autopublish-panel-head-pro,
.autopublish-control-grid-pro > .autopublish-panel-pro.autopublish-generation-panel-pro:nth-child(4) > .autopublish-panel-head-pro {
  flex: 0 0 auto !important;
}

.autopublish-control-grid-pro > .autopublish-panel-pro:nth-child(3) > .autopublish-form-grid-pro,
.autopublish-control-grid-pro > .autopublish-panel-pro.autopublish-generation-panel-pro > .autopublish-form-grid-pro,
.autopublish-control-grid-pro > .autopublish-panel-pro.autopublish-generation-panel-pro:nth-child(4) > .autopublish-form-grid-pro {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
  align-content: start !important;
  padding-bottom: 0 !important;
}

.autopublish-control-grid-pro > .autopublish-panel-pro:nth-child(3) > .autopublish-panel-footer-pro,
.autopublish-control-grid-pro > .autopublish-panel-pro.autopublish-generation-panel-pro > .autopublish-panel-footer-pro,
.autopublish-control-grid-pro > .autopublish-panel-pro.autopublish-generation-panel-pro:nth-child(4) > .autopublish-panel-footer-pro {
  flex: 0 0 auto !important;
  margin-top: auto !important;
  padding-top: 18px !important;
  border-top: 1px solid rgba(223, 230, 241, 0.78) !important;
  justify-content: flex-end !important;
  gap: 12px !important;
}

.autopublish-control-grid-pro > .autopublish-panel-pro:nth-child(3) > .autopublish-save-bar-pro,
.autopublish-control-grid-pro > .autopublish-panel-pro:nth-child(3) > .autopublish-save-bar-pro:last-child,
.autopublish-control-grid-pro > .autopublish-panel-pro.autopublish-generation-panel-pro > .autopublish-save-bar-pro,
.autopublish-control-grid-pro > .autopublish-panel-pro.autopublish-generation-panel-pro > .autopublish-save-bar-pro:last-child,
.autopublish-control-grid-pro > .autopublish-panel-pro.autopublish-generation-panel-pro:nth-child(4) > .autopublish-save-bar-pro,
.autopublish-control-grid-pro > .autopublish-panel-pro.autopublish-generation-panel-pro:nth-child(4) > .autopublish-save-bar-pro:last-child {
  flex: 0 0 auto !important;
  margin-top: 12px !important;
  margin-bottom: 0 !important;
}

@media (max-width: 900px) {
  .autopublish-control-grid-pro > .autopublish-panel-pro:nth-child(3),
  .autopublish-control-grid-pro > .autopublish-panel-pro.autopublish-generation-panel-pro,
  .autopublish-control-grid-pro > .autopublish-panel-pro.autopublish-generation-panel-pro:nth-child(4) {
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .autopublish-control-grid-pro > .autopublish-panel-pro:nth-child(3) > .autopublish-panel-footer-pro,
  .autopublish-control-grid-pro > .autopublish-panel-pro.autopublish-generation-panel-pro > .autopublish-panel-footer-pro,
  .autopublish-control-grid-pro > .autopublish-panel-pro.autopublish-generation-panel-pro:nth-child(4) > .autopublish-panel-footer-pro {
    margin-top: 18px !important;
    justify-content: stretch !important;
  }
}

/* Autopublish: workflow embedded into worker panel */
.autopublish-worker-scenario-pro {
  margin: 0 0 16px !important;
  padding: 14px !important;
  border: 1px dashed rgba(196, 181, 253, 0.78) !important;
  border-radius: 22px !important;
  background: linear-gradient(180deg, rgba(255,255,255,0.78), rgba(248,250,255,0.70)) !important;
}

.autopublish-worker-scenario-head-pro {
  display: flex !important;
  align-items: baseline !important;
  justify-content: space-between !important;
  gap: 16px !important;
  margin: 0 0 12px !important;
  padding: 0 2px 12px !important;
  border-bottom: 1px solid rgba(223, 230, 241, 0.72) !important;
}

.autopublish-worker-scenario-head-pro h4 {
  margin: 0 !important;
  color: #13203d !important;
  font-size: 15px !important;
  line-height: 1.2 !important;
  font-weight: 760 !important;
  letter-spacing: -0.015em !important;
}

.autopublish-worker-scenario-head-pro p {
  margin: 0 !important;
  color: #6b7893 !important;
  font-size: 12.5px !important;
  line-height: 1.4 !important;
  font-weight: 430 !important;
  text-align: right !important;
}

.autopublish-worker-workflow-pro {
  gap: 12px !important;
}

.autopublish-worker-workflow-pro .autopublish-workflow-step-pro {
  min-height: 104px !important;
  padding: 13px !important;
  border-style: dashed !important;
  border-color: rgba(196, 181, 253, 0.72) !important;
  box-shadow: none !important;
}

.autopublish-worker-workflow-pro .autopublish-workflow-index-pro {
  width: 40px !important;
  height: 40px !important;
  border-radius: 14px !important;
}

.autopublish-worker-workflow-pro .autopublish-workflow-step-pro span {
  color: #6f7c98 !important;
  font-weight: 560 !important;
}

.autopublish-worker-workflow-pro .autopublish-workflow-step-pro strong {
  font-size: 14px !important;
  font-weight: 720 !important;
}

.autopublish-worker-workflow-pro .autopublish-workflow-step-pro p {
  font-size: 12.2px !important;
  line-height: 1.42 !important;
}

@media (max-width: 1120px) {
  .autopublish-worker-scenario-head-pro {
    display: block !important;
  }

  .autopublish-worker-scenario-head-pro p {
    margin-top: 6px !important;
    text-align: left !important;
  }

  .autopublish-worker-workflow-pro {
    grid-template-columns: 1fr !important;
  }
}
