:root {
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
}

.operator-auth-body {
  min-height: 100vh;
  margin: 0;
  color: #e6edf7;
  background:
    radial-gradient(circle at 20% 0%, rgba(42, 120, 223, 0.2), transparent 34rem),
    #080e18;
}

.operator-auth-header {
  min-height: 74px;
  padding: 14px clamp(20px, 5vw, 72px);
  display: flex;
  align-items: center;
  border-bottom: 1px solid #29384d;
  background: rgba(7, 17, 31, 0.88);
}

.operator-auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.operator-auth-brand > span:last-child {
  display: grid;
  gap: 1px;
}

.operator-auth-brand small {
  color: #9aa9bd;
}

.operator-brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #111827;
  background: #f27a1a;
  font-weight: 900;
}

.operator-auth-shell {
  width: min(520px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(36px, 8vh, 92px) 0 72px;
}

.auth-card {
  padding: clamp(24px, 6vw, 38px);
  border: 1px solid #29384d;
  border-radius: 18px;
  background: rgba(17, 24, 39, 0.93);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
}

.auth-card .eyebrow {
  margin: 0;
  color: #78b7ff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.auth-card h1 {
  margin: 7px 0 10px;
  color: #f3f7fb;
  font-size: clamp(1.7rem, 5vw, 2.35rem);
  line-height: 1.08;
}

.auth-card .muted {
  color: #9aa9bd;
}

.auth-card .stack {
  display: grid;
  gap: 9px;
  margin-top: 24px;
}

.auth-card label {
  color: #c5d0df;
  font-size: 0.72rem;
  font-weight: 700;
}

.auth-card input:not([type="hidden"]) {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #3b4b63;
  border-radius: 7px;
  color: #e6edf7;
  background: #0d1626;
  font: inherit;
}

.auth-card input:focus {
  border-color: #5ca8ff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.28);
}

.auth-card button {
  min-height: 44px;
  margin-top: 8px;
  border: 0;
  border-radius: 7px;
  color: #fff;
  background: #1769e0;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.auth-card button:hover {
  background: #2474de;
}

.notice {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 7px;
}

.notice.danger {
  border: 1px solid #8f4b51;
  color: #ffb4ad;
  background: #3a2024;
}

.validation,
.field-validation-error {
  color: #ff8b82;
  font-size: 0.7rem;
}

.runtime-card,
.content-card + .content-card {
  margin-top: 22px;
}

.runtime-gates {
  margin: 0;
}

.runtime-gates div {
  display: grid;
  grid-template-columns: minmax(180px, 0.6fr) minmax(220px, 1fr);
  gap: 20px;
}

.runtime-gates dd {
  text-align: right;
}

.delivery-status-table td > small {
  display: block;
  margin-top: 4px;
}

.delivery-status-table td:nth-child(2) {
  min-width: 220px;
}

.trendyol-listing-search {
  margin-bottom: 18px;
}

.product-v2-gate {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.6fr);
  gap: 24px;
  margin-bottom: 22px;
  padding: 20px 22px;
  border: 1px solid #34465f;
  border-left: 4px solid #f5a524;
  border-radius: 10px;
  background: #111b2b;
}

.product-v2-gate.gate-open {
  border-left-color: #3dcf8e;
}

.automatic-create-status {
  margin: -10px 0 22px;
}

.product-v2-gate > div > span,
.product-v2-gate dt,
.barcode-preview > span {
  color: #8fa1b8;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.product-v2-gate > div > strong {
  display: block;
  margin-top: 5px;
  color: #edf4ff;
  font-size: 1rem;
}

.product-v2-gate p,
.runtime-action-card p,
.product-v2-generate-form p,
.product-v2-prepare-form p,
.runtime-mutation-card > p {
  margin: 7px 0 0;
  color: #9aa9bd;
  font-size: 0.7rem;
  line-height: 1.55;
}

.product-v2-gate dl {
  margin: 0;
}

.product-v2-gate dl div {
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 7px 0;
  border-bottom: 1px solid #29384d;
}

.product-v2-gate dd {
  margin: 0;
  color: #e6edf7;
  font-size: 0.7rem;
  font-weight: 800;
}

.product-v2-two-column,
.product-v2-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.product-v2-action-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 16px;
}

.product-v2-two-column + .content-card,
.content-card + .product-v2-two-column,
.product-v2-two-column + .product-v2-two-column,
.runtime-mutation-card {
  margin-top: 22px;
}

.product-v2-form,
.runtime-confirm-form,
.product-v2-selection-form {
  display: grid;
  gap: 14px;
}

.runtime-action-card,
.product-v2-generate-form,
.product-v2-prepare-form {
  display: grid;
  gap: 14px;
  align-content: space-between;
  padding: 15px;
  border: 1px solid #29384d;
  border-radius: 8px;
  background: #0d1626;
}

.runtime-action-card strong,
.product-v2-generate-form strong,
.product-v2-prepare-form strong {
  color: #edf4ff;
  font-size: 0.76rem;
}

.runtime-action-card button,
.runtime-confirm-form button,
.product-v2-generate-form button,
.product-v2-prepare-form button {
  justify-self: start;
}

.runtime-mutation-card,
.danger-zone {
  border-color: #70424a;
  background: linear-gradient(135deg, rgba(126, 45, 52, 0.15), rgba(17, 24, 39, 0.96));
}

.runtime-confirm-form {
  max-width: 760px;
  margin-top: 16px;
}

.safety-check {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  color: #c8d3e1;
  font-size: 0.68rem;
  line-height: 1.5;
}

.safety-check input {
  margin-top: 2px;
  accent-color: #e36b62;
}

.barcode-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #29384d;
}

.barcode-preview code,
.state-chip-row span {
  padding: 4px 7px;
  border: 1px solid #34465f;
  border-radius: 999px;
  color: #b9d9ff;
  background: #17243a;
  font-size: 0.6rem;
}

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

.product-v2-template-choice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid #29384d;
  border-radius: 8px;
  background: #0d1626;
}

.product-v2-template-choice input {
  accent-color: #4e9fff;
}

.product-v2-template-choice span,
.revision-list li {
  display: grid;
  gap: 3px;
}

.product-v2-template-choice strong,
.revision-list strong {
  color: #e6edf7;
  font-size: 0.7rem;
}

.product-v2-template-choice small,
.revision-list span {
  color: #8fa1b8;
  font-size: 0.62rem;
}

.product-v2-template-choice a {
  color: #78b7ff;
  font-size: 0.65rem;
  font-weight: 800;
}

.product-v2-generate-form {
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  margin-top: 16px;
}

.catalog-selection-form,
.catalog-check-list {
  display: grid;
  gap: 10px;
}

.catalog-check-list {
  max-height: 560px;
  overflow: auto;
  padding-right: 5px;
}

.catalog-check-list label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  padding: 10px;
  border: 1px solid #29384d;
  border-radius: 7px;
  background: #0d1626;
}

.catalog-check-list label.is-muted {
  opacity: 0.62;
}

.catalog-check-list label > span {
  display: grid;
  gap: 3px;
}

.catalog-check-list strong {
  color: #e6edf7;
  font-size: 0.68rem;
}

.catalog-check-list small {
  color: #8fa1b8;
  font-size: 0.6rem;
}

.code-editor,
.payload-viewer,
.generated-item-list pre {
  tab-size: 2;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #c9e1ff;
  background: #08111f;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 0.67rem;
  line-height: 1.55;
}

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

.policy-capacity,
.consumed-assets,
.state-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.policy-capacity span,
.consumed-assets span {
  padding: 7px 9px;
  border-radius: 6px;
  color: #b9c7d9;
  background: #17243a;
  font-size: 0.62rem;
}

.revision-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.revision-list li {
  padding: 10px 12px;
  border: 1px solid #29384d;
  border-radius: 7px;
  background: #0d1626;
}

.history-details {
  margin-top: 16px;
  padding: 12px;
  border: 1px solid #29384d;
  border-radius: 7px;
}

.history-details summary {
  color: #b9d9ff;
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 800;
}

.history-details[open] summary {
  margin-bottom: 12px;
}

.photo-link-grid,
.photo-inventory-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.photo-link-grid article,
.product-v2-photo-card {
  display: grid;
  gap: 7px;
  padding: 10px;
  border: 1px solid #29384d;
  border-radius: 8px;
  background: #0d1626;
}

.photo-link-grid img,
.product-v2-photo-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 5px;
  background: #07101d;
}

.photo-link-grid label {
  color: #b9c7d9;
  font-size: 0.62rem;
}

.product-v2-reconcile {
  margin: 14px 0;
  padding: 12px 14px;
  border: 1px solid #81464c;
  border-left: 4px solid #e15b54;
  border-radius: 7px;
  color: #ffc0ba;
  background: #2d1b20;
}

.product-v2-reconcile p {
  margin: 4px 0 0;
  font-size: 0.68rem;
  line-height: 1.5;
}

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

.generated-item-list details {
  padding: 12px;
  border: 1px solid #29384d;
  border-radius: 8px;
  background: #0d1626;
}

.generated-item-list summary {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  color: #dce8f7;
  cursor: pointer;
  font-size: 0.68rem;
}

.generated-content {
  margin-top: 12px;
  padding: 12px;
  border-radius: 7px;
  color: #c9d4e3;
  background: #17243a;
  white-space: pre-line;
}

.frozen-image-row {
  display: grid;
  grid-template-columns: repeat(8, minmax(70px, 1fr));
  gap: 7px;
  margin-top: 12px;
  overflow-x: auto;
}

.frozen-image-row figure {
  margin: 0;
}

.frozen-image-row img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 5px;
}

.frozen-image-row figcaption {
  margin-top: 3px;
  color: #8fa1b8;
  font-size: 0.55rem;
}

.seller-listing-table {
  min-width: 980px;
}

.seller-listing-table .state-chip-row {
  margin-top: 7px;
}

.compact-field {
  min-width: 170px;
}

.compact-field select {
  min-height: 38px;
}

.rejected-cleanup-card code {
  color: #ffb4ad;
}

@media (max-width: 720px) {
  .product-v2-gate,
  .product-v2-two-column,
  .product-v2-action-grid,
  .product-v2-template-grid,
  .content-pool-grid,
  .photo-link-grid,
  .photo-inventory-grid {
    grid-template-columns: 1fr;
  }

  .product-v2-generate-form {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .runtime-action-card button,
  .runtime-confirm-form button,
  .product-v2-generate-form button,
  .product-v2-prepare-form button {
    width: 100%;
    justify-self: stretch;
  }

  .generated-item-list summary {
    flex-direction: column;
  }

  .runtime-gates div {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .runtime-gates dd {
    text-align: left;
  }

  .page-heading > .status {
    align-self: flex-start;
  }
}

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