:root {
  color-scheme: light;
  --navy: #07172f;
  --navy-soft: #102746;
  --blue: #1769e0;
  --blue-soft: #eaf3ff;
  --ink: #111827;
  --muted: #667085;
  --line: #e4e7ec;
  --surface: #f4f6f9;
  --green: #087a55;
  --green-soft: #e9f8f1;
  --amber: #a15c07;
  --amber-soft: #fff6df;
}
* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-width: 320px;
  font-family: "Segoe UI", Inter, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--surface);
}

button,
input,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

.admin-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: 250px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  height: 100vh;
  flex-direction: column;
  padding: 28px 20px 20px;
  color: #d5deeb;
  background:
    radial-gradient(circle at 0 0, rgba(39, 126, 241, 0.2), transparent 32%),
    var(--navy);
}

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

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
  padding: 7px;
  border-radius: 11px;
  background: linear-gradient(145deg, #348fff, #0d56c5);
  box-shadow: 0 11px 25px rgba(0, 85, 198, 0.32);
  transform: rotate(-4deg);
}

.brand-mark i {
  background: #fff;
}

.admin-brand > span:last-child,
.auth-brand > span:last-child {
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.admin-brand strong,
.auth-brand strong {
  color: #fff;
  font-size: 1.35rem;
  letter-spacing: -0.055em;
}

.admin-brand small,
.auth-brand small {
  color: #6eaefc;
  font-size: 0.57rem;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 58px;
}

.nav-label {
  margin: 0 10px 8px;
  color: #667b99;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.nav-label-spaced {
  margin-top: 28px;
}

.side-nav a {
  display: flex;
  min-height: 46px;
  align-items: center;
  gap: 13px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #9fb0c6;
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
}

.side-nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.side-nav a.active {
  border-color: rgba(87, 159, 255, 0.17);
  color: #fff;
  background: rgba(37, 116, 222, 0.17);
}

.nav-icon {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 7px;
  color: #6f88a9;
  background: rgba(255, 255, 255, 0.055);
  font-family: Consolas, monospace;
  font-size: 0.58rem;
}

.active .nav-icon {
  color: #8bc1ff;
  background: rgba(52, 143, 255, 0.15);
}

.sidebar-footer {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: auto;
  padding: 15px 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.025);
}

.sidebar-footer div {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.sidebar-footer strong {
  color: #cbd7e7;
  font-size: 0.69rem;
}

.sidebar-footer small {
  overflow: hidden;
  color: #7185a1;
  font-size: 0.62rem;
  text-overflow: ellipsis;
}

.environment-dot,
.secure-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #44d69f;
  box-shadow: 0 0 0 5px rgba(68, 214, 159, 0.09);
}

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

.topbar {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  padding: 0 42px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
}

.topbar > div:first-child {
  display: flex;
  flex-direction: column;
}

.topbar-kicker {
  color: #98a2b3;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.topbar > div:first-child strong {
  margin-top: 3px;
  font-size: 0.92rem;
}

.admin-account {
  display: flex;
  align-items: center;
  gap: 10px;
}

.account-avatar {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: var(--navy);
  font-size: 0.75rem;
  font-weight: 800;
}

.account-name {
  max-width: 150px;
  overflow: hidden;
  font-size: 0.78rem;
  font-weight: 650;
  text-overflow: ellipsis;
}

.admin-account form {
  margin: 0 0 0 7px;
}

.admin-account button {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #fff;
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 650;
}

.page-content {
  width: min(1450px, 100%);
  margin: 0 auto;
  padding: 42px;
}

.page-heading {
  display: flex;
  gap: 30px;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
}

.page-heading > div > span,
.card-heading > div > span {
  color: var(--blue);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.page-heading h1 {
  margin: 8px 0 7px;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.055em;
}

.page-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.compact-heading {
  margin-bottom: 27px;
}

.back-link {
  display: block;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 650;
  text-decoration: none;
}

.primary-action {
  padding: 11px 15px;
  border-radius: 9px;
  color: #fff;
  background: var(--blue);
  box-shadow: 0 10px 25px rgba(23, 105, 224, 0.2);
  font-size: 0.76rem;
  font-weight: 750;
  text-decoration: none;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  margin-bottom: 22px;
}

.metric-card {
  min-width: 0;
  padding: 23px 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 9px 30px rgba(16, 24, 40, 0.035);
}

.metric-card > span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 650;
}

.metric-card strong {
  display: block;
  margin: 12px 0 7px;
  font-size: 2rem;
  letter-spacing: -0.045em;
}

.metric-card small {
  color: #98a2b3;
  font-size: 0.66rem;
}

.metric-primary {
  border-color: #0f4eac;
  color: #fff;
  background:
    radial-gradient(circle at 100% 0, rgba(74, 163, 255, 0.35), transparent 43%),
    linear-gradient(145deg, #071c3d, #0d3d7d);
}

.metric-primary > span,
.metric-primary small {
  color: #9cb5d5;
}

.content-card {
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 10px 35px rgba(16, 24, 40, 0.04);
}

.card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}

.card-heading h2 {
  margin: 4px 0 0;
  font-size: 1rem;
}

.card-heading > a {
  color: var(--blue);
  font-size: 0.7rem;
  font-weight: 700;
  text-decoration: none;
}

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

.data-table {
  width: 100%;
  min-width: 840px;
  border-collapse: collapse;
}

.data-table th {
  padding: 12px 18px;
  color: #98a2b3;
  background: #fafbfc;
  font-size: 0.61rem;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-align: left;
  text-transform: uppercase;
}

.data-table td {
  padding: 15px 18px;
  border-top: 1px solid #eef0f3;
  color: #344054;
  font-size: 0.77rem;
  vertical-align: middle;
}

.data-table tbody tr:hover {
  background: #fbfcfe;
}

.data-table td > strong,
.data-table td > span:not(.status) {
  display: block;
  color: var(--ink);
  font-weight: 650;
}

.data-table td > small {
  display: block;
  margin-top: 3px;
  color: #98a2b3;
  font-size: 0.64rem;
}

.status {
  display: inline-flex;
  max-width: max-content;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 0.61rem;
  font-weight: 750;
  text-transform: capitalize;
}

.status-success {
  color: var(--green);
  background: var(--green-soft);
}

.status-warning {
  color: var(--amber);
  background: var(--amber-soft);
}

.status-neutral {
  color: #475467;
  background: #f1f3f6;
}

.status-danger {
  color: #b42318;
  background: #fff1f0;
}

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

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

.table-action a {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--blue);
  font-size: 0.65rem;
  font-weight: 700;
  text-decoration: none;
}

.empty-cell {
  padding: 48px !important;
  color: var(--muted) !important;
  text-align: center;
}

.orders-toolbar {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.orders-toolbar > span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.7rem;
}

.search-form {
  display: flex;
  width: min(630px, 100%);
  gap: 8px;
  align-items: center;
}

.search-form input {
  width: 100%;
  min-height: 39px;
  padding: 0 12px;
  border: 1px solid #d8dde5;
  border-radius: 8px;
  outline: none;
  font-size: 0.75rem;
}

.search-form input:focus {
  border-color: #6daaf7;
  box-shadow: 0 0 0 3px rgba(23, 105, 224, 0.09);
}

.search-form select {
  min-height: 39px;
  padding: 0 12px;
  border: 1px solid #d8dde5;
  border-radius: 8px;
  color: #344054;
  outline: none;
  background: #fff;
  font-size: 0.75rem;
}

.search-form select:focus {
  border-color: #6daaf7;
  box-shadow: 0 0 0 3px rgba(23, 105, 224, 0.09);
}

.search-form button,
.search-form a {
  min-height: 39px;
  padding: 0 13px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 700;
  text-decoration: none;
}

.search-form button {
  color: #fff;
  background: var(--navy);
}

.search-form a {
  display: grid;
  place-items: center;
  color: var(--muted);
  background: #f3f5f7;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.7rem;
}

.pagination a {
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}

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

.detail-card {
  overflow: hidden;
}

.detail-list {
  margin: 0;
  padding: 8px 24px 20px;
}

.detail-list div,
.product-admin-card dl div,
.integration-card dl div {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  padding: 13px 0;
  border-bottom: 1px solid #eef0f3;
}

.detail-list div:last-child,
.product-admin-card dl div:last-child,
.integration-card dl div:last-child {
  border-bottom: 0;
}

.detail-list dt,
.product-admin-card dt,
.integration-card dt {
  color: var(--muted);
  font-size: 0.7rem;
}

.detail-list dd,
.product-admin-card dd,
.integration-card dd {
  margin: 0;
  color: #344054;
  font-size: 0.73rem;
  font-weight: 650;
  text-align: right;
  overflow-wrap: anywhere;
}

.secret-box {
  margin: 0 24px 24px;
  padding: 17px;
  border: 1px solid #cfe2fb;
  border-radius: 10px;
  background: var(--blue-soft);
}

.secret-box > span {
  color: #496f9e;
  font-size: 0.62rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.secret-box > strong {
  display: block;
  margin-top: 8px;
  font-size: 0.78rem;
}

.secret-box > div {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-top: 9px;
}

.secret-box code {
  overflow-wrap: anywhere;
  color: #17375e;
  font-size: 0.82rem;
  font-weight: 700;
}

.secret-box button {
  padding: 7px 10px;
  border: 0;
  border-radius: 7px;
  color: #fff;
  background: var(--blue);
  cursor: pointer;
  font-size: 0.65rem;
  font-weight: 700;
}

.instructions-card {
  margin-top: 18px;
}

.translation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 22px 24px 25px;
}

.translation-grid article {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fafbfc;
}

.translation-grid article > strong {
  color: var(--blue);
  font-family: Consolas, monospace;
  font-size: 0.68rem;
}

.translation-grid ol {
  margin: 13px 0 0;
  padding-left: 19px;
  color: #475467;
  font-size: 0.72rem;
  line-height: 1.6;
}

.product-admin-grid,
.integration-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
}

.product-admin-card,
.integration-card {
  padding: 22px;
}

.product-admin-card header,
.integration-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-id {
  color: #98a2b3;
  font-family: Consolas, monospace;
  font-size: 0.68rem;
}

.product-admin-card h2,
.integration-card h2 {
  margin: 25px 0 7px;
  font-size: 1.18rem;
  letter-spacing: -0.03em;
}

.product-admin-card dl,
.integration-card dl {
  margin: 19px 0 0;
}

.card-actions {
  display: flex;
  gap: 9px;
  align-items: center;
  margin-top: 20px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
}

.card-actions form {
  margin: 0;
}

.card-actions a,
.card-actions button {
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  cursor: pointer;
  color: var(--blue);
  font-size: 0.68rem;
  font-weight: 700;
  text-decoration: none;
}

.card-actions button {
  color: #b42318;
}

.flash-message {
  margin: -12px 0 22px;
  padding: 12px 15px;
  border: 1px solid #afe5ce;
  border-radius: 9px;
  color: var(--green);
  background: var(--green-soft);
  font-size: 0.74rem;
  font-weight: 650;
}

.flash-error {
  border-color: #f3b8b3;
  color: #b42318;
  background: #fff1f0;
}

.digiseller-settings-card {
  margin-bottom: 18px;
}

.digiseller-listings-card {
  margin-bottom: 18px;
  overflow: hidden;
}

.listing-heading-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--muted);
  font-size: 0.68rem;
}

.listing-heading-meta strong {
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--blue);
  background: var(--blue-soft);
}

.listing-visibility-toggle {
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: #fff;
  text-decoration: none;
}

.integration-warning {
  margin: 22px 24px 24px;
  padding: 17px;
  border: 1px solid #f3d7a2;
  border-radius: 9px;
  color: #7a4d00;
  background: #fff9eb;
}

.integration-warning p {
  margin: 6px 0;
  font-size: 0.72rem;
}

.integration-warning small {
  color: #936a24;
}

.digiseller-listings-wrap {
  max-height: 620px;
  overflow: auto;
  border-top: 1px solid var(--line);
}

.digiseller-listings-table {
  min-width: 1080px;
}

.digiseller-listings-table thead {
  position: sticky;
  z-index: 1;
  top: 0;
  background: #fff;
}

.digiseller-tree-wrap {
  max-height: 760px;
  overflow: auto;
  padding: 20px;
  border-top: 1px solid var(--line);
  background: #f8fafc;
}

.digiseller-tree {
  display: grid;
  gap: 18px;
}

.tree-listing-node {
  overflow: hidden;
  border: 1px solid #dbe4ef;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 25px rgba(16, 24, 40, 0.035);
}

.tree-listing-node-hidden {
  opacity: 0.72;
}

.tree-listing-header,
.tree-parameter-node header,
.tree-listing-assignment,
.tree-variant-node {
  display: flex;
  align-items: center;
  gap: 18px;
}

.tree-listing-header {
  justify-content: space-between;
  padding: 18px 20px;
  background:
    radial-gradient(circle at 100% 0, rgba(23, 105, 224, 0.12), transparent 30%),
    #fff;
}

.listing-remove-form {
  display: grid;
  gap: 4px;
  justify-items: end;
}

.listing-remove-form button {
  padding: 8px 11px;
  border: 1px solid #f3c7c7;
  border-radius: 9px;
  color: #b42318;
  background: #fff5f5;
  font-size: 0.68rem;
  font-weight: 900;
  cursor: pointer;
}

.listing-remove-form small {
  color: var(--muted);
  font-size: 0.58rem;
}

.tree-listing-node-hidden .listing-remove-form button {
  border-color: #bfdbfe;
  color: var(--blue);
  background: var(--blue-soft);
}

.tree-title-block,
.listing-assignment-copy,
.variant-lineage,
.variant-effective-mapping,
.listing-summary-grid > div {
  display: grid;
  gap: 4px;
}

.tree-title-block span,
.tree-parameter-node header span,
.listing-assignment-copy span,
.variant-lineage span,
.listing-summary-grid span,
.listing-fallback-card span,
.variant-effective-mapping > span + small,
.variant-product-type span {
  font-size: 0.62rem;
}

.tree-title-block > span,
.tree-parameter-node header span,
.listing-assignment-copy span,
.variant-lineage > span,
.listing-summary-grid span,
.listing-fallback-card span,
.variant-product-type > span {
  color: var(--blue);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tree-title-block h3,
.tree-parameter-node h4 {
  margin: 0;
  color: var(--ink);
  letter-spacing: -0.035em;
}

.tree-title-block h3 {
  font-size: 1.1rem;
}

.tree-parameter-node h4 {
  font-size: 0.96rem;
}

.tree-title-block small,
.tree-parameter-node small,
.listing-assignment-copy p,
.variant-lineage small,
.variant-effective-mapping small,
.tree-empty-branch span {
  color: #7b8aa0;
  font-size: 0.66rem;
}

.tree-header-status,
.parameter-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.listing-summary-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  border-top: 1px solid #eef2f7;
  border-bottom: 1px solid #eef2f7;
  background: #eef2f7;
}

.listing-summary-grid > div {
  min-width: 0;
  padding: 14px 16px;
  background: #fff;
}

.listing-summary-grid strong {
  color: var(--ink);
  font-size: 0.8rem;
}

.listing-summary-grid small {
  color: #98a2b3;
  font-size: 0.62rem;
}

.listing-fallback-card a {
  width: max-content;
  color: var(--blue);
  font-size: 0.65rem;
  font-weight: 700;
  text-decoration: none;
}

.tree-children {
  position: relative;
  display: grid;
  gap: 13px;
  padding: 18px 20px 20px 38px;
}

.tree-children::before {
  position: absolute;
  top: 0;
  bottom: 20px;
  left: 20px;
  width: 2px;
  background: #dbe4ef;
  content: "";
}

.tree-parameter-node {
  position: relative;
  border: 1px solid #dbe4ef;
  border-radius: 13px;
  background: #fbfdff;
}

.tree-listing-assignment {
  position: relative;
  padding: 14px 16px 14px 22px;
  border: 1px solid #dbe4ef;
  border-radius: 13px;
  background: #fff;
}

.listing-assignment-copy {
  flex: 1 1 280px;
}

.listing-assignment-copy strong {
  color: var(--ink);
  font-size: 0.82rem;
}

.listing-assignment-copy p {
  margin: 0;
}

.listing-product-type {
  flex: 0 1 360px;
}

.tree-parameter-node::before,
.tree-listing-assignment::before,
.tree-variant-node::before {
  position: absolute;
  top: 26px;
  left: -19px;
  width: 19px;
  height: 2px;
  background: #dbe4ef;
  content: "";
}

.tree-parameter-node header {
  justify-content: space-between;
  padding: 14px 16px;
}

.tree-empty-branch {
  display: grid;
  gap: 4px;
  padding: 16px;
  border-top: 1px solid #eef2f7;
  color: #475467;
}

.tree-variant-list {
  display: grid;
  gap: 1px;
  border-top: 1px solid #eef2f7;
  background: #eef2f7;
}

.tree-variant-node {
  position: relative;
  padding: 14px 16px 14px 22px;
  background: #fff;
}

.tree-variant-node::before {
  top: 32px;
  left: -1px;
  width: 16px;
}

.tree-listing-assignment::before {
  top: 32px;
}

.variant-lineage {
  flex: 1 1 300px;
}

.variant-lineage strong {
  color: var(--ink);
  font-size: 0.78rem;
}

.variant-effective-mapping {
  flex: 0 1 185px;
}

.variant-product-type {
  flex: 0 1 330px;
}

.stock-indicator {
  font-size: 0.72rem;
  font-weight: 700;
}

.stock-indicator.in-stock,
.in-stock {
  color: var(--green);
}

.stock-indicator.out-of-stock,
.out-of-stock {
  color: #b42318;
}

.listing-mapping-action {
  min-width: 120px;
}

.listing-mapping-action .status {
  display: inline-flex;
  margin-bottom: 7px;
}

.listing-mapping-action a {
  display: block;
}

.parameter-table-row > td {
  padding: 0 18px 22px;
  background: #f8fafc;
}

.product-parameters {
  overflow: hidden;
  border: 1px solid #dbe4ef;
  border-radius: 14px;
  background: #fff;
}

.parameter-section-heading,
.parameter-card header,
.variant-mapping-row {
  display: flex;
  align-items: center;
  gap: 18px;
}

.parameter-section-heading {
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid #dbe4ef;
  background: #f1f5f9;
}

.parameter-section-heading div,
.parameter-card header div:first-child,
.variant-identity,
.variant-product-type {
  display: grid;
  gap: 4px;
}

.parameter-section-heading span,
.variant-product-type span {
  color: #2563eb;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.parameter-section-heading small,
.parameter-card small,
.variant-price small {
  color: #7b8aa0;
}

.parameter-card + .parameter-card {
  border-top: 1px solid #dbe4ef;
}

.parameter-card header {
  justify-content: space-between;
  padding: 15px 18px;
}

.parameter-badges {
  display: flex;
  gap: 8px;
}

.variant-list {
  border-top: 1px solid #eef2f7;
}

.variant-mapping-row {
  padding: 14px 18px;
}

.variant-mapping-row + .variant-mapping-row {
  border-top: 1px solid #eef2f7;
}

.variant-identity {
  flex: 1 1 280px;
}

.variant-price {
  display: grid;
  min-width: 100px;
  gap: 4px;
}

.variant-product-type {
  flex: 0 1 320px;
}

.variant-product-type select {
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
}

.variant-mapping-row button {
  min-height: 40px;
  white-space: nowrap;
}

@media (max-width: 1000px) {
  .listing-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tree-listing-header,
  .tree-parameter-node header,
  .tree-listing-assignment,
  .tree-variant-node {
    align-items: stretch;
    flex-direction: column;
  }

  .tree-header-status,
  .parameter-badges {
    justify-content: flex-start;
  }

  .variant-lineage,
  .variant-effective-mapping,
  .variant-product-type {
    flex-basis: auto;
  }

  .variant-mapping-row {
    align-items: stretch;
    flex-direction: column;
  }

  .variant-identity,
  .variant-product-type {
    flex-basis: auto;
  }
}

.digiseller-settings-form {
  padding: 22px 24px 0;
}

.digiseller-enabled-toggle {
  margin-top: 0;
}

.settings-actions {
  display: flex;
  justify-content: flex-end;
  padding: 20px 0;
}

.settings-actions button,
.connection-test-form button {
  min-height: 40px;
  padding: 0 15px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--blue);
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 700;
}

.connection-test-form {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding: 18px 24px;
  border-top: 1px solid var(--line);
  background: #fafbfc;
}

.connection-test-form > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.connection-test-form strong {
  font-size: 0.72rem;
}

.connection-test-form span {
  color: var(--muted);
  font-size: 0.66rem;
}

.connection-test-form button {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  color: var(--blue);
  background: #fff;
}

.connection-test-form button:disabled {
  color: #98a2b3;
  cursor: not-allowed;
}

.editor-form {
  padding: 27px;
}

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

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

.field-group {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.field-group label {
  margin-bottom: 7px;
  color: #344054;
  font-size: 0.7rem;
  font-weight: 700;
}

.field-group input,
.field-group select,
.field-group textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #d8dde5;
  border-radius: 8px;
  color: var(--ink);
  outline: none;
  background: #fff;
  font-size: 0.76rem;
}

.field-group textarea {
  resize: vertical;
  line-height: 1.55;
}

.field-group input:focus,
.field-group select:focus,
.field-group textarea:focus {
  border-color: #6daaf7;
  box-shadow: 0 0 0 3px rgba(23, 105, 224, 0.09);
}

.field-group > span,
.form-errors {
  margin-top: 5px;
  color: #b42318;
  font-size: 0.66rem;
}

.form-errors.validation-summary-valid {
  display: none;
}

.field-group small {
  margin-top: 6px;
  color: #98a2b3;
  font-size: 0.63rem;
}

.toggle-row {
  display: flex;
  gap: 25px;
  margin: 24px 0;
  padding: 16px;
  border-radius: 9px;
  background: #f7f9fb;
}

.toggle-row label {
  display: flex;
  gap: 8px;
  align-items: center;
  color: #475467;
  font-size: 0.7rem;
  font-weight: 650;
}

.inventory-field {
  max-width: 330px;
}

.inventory-picker {
  margin-top: 28px;
  padding-top: 25px;
  border-top: 1px solid var(--line);
}

.inventory-picker-heading,
.inventory-browser-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.inventory-picker-heading span,
.inventory-browser-heading span {
  color: var(--blue);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.inventory-picker-heading h2,
.inventory-browser-heading h3 {
  margin: 5px 0;
  font-size: 1.05rem;
}

.inventory-picker-heading p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.55;
}

.inventory-picker-summary {
  min-width: 180px;
  padding: 14px 16px;
  border: 1px solid #d9e8fb;
  border-radius: 14px;
  background: var(--blue-soft);
  text-align: right;
}

.inventory-picker-summary strong {
  display: block;
  color: #0d2f63;
  font-size: 1.35rem;
  line-height: 1;
}

.inventory-picker-summary span {
  display: block;
  margin-top: 6px;
  color: #51637f;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.selected-inventory-field {
  max-width: 620px;
  margin-bottom: 12px;
}

.selected-inventory-groups {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 35px;
  margin-bottom: 18px;
}

.selected-inventory-groups button,
.inventory-table-group-button {
  border: 1px solid #bcd6fb;
  border-radius: 999px;
  color: #1253b5;
  background: #eff6ff;
  font-size: 0.66rem;
  font-weight: 850;
}

.selected-inventory-groups button {
  padding: 8px 11px;
}

.selected-inventory-groups button::after {
  content: " x";
  color: #667085;
  font-weight: 700;
}

.inventory-group-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.inventory-group-card,
.inventory-empty-panel {
  min-height: 126px;
  padding: 16px;
  border: 1px solid #e4e8ef;
  border-radius: 16px;
  background: #fff;
  text-align: left;
  box-shadow: 0 12px 30px rgba(16, 24, 40, 0.06);
}

.inventory-group-card {
  cursor: pointer;
}

.inventory-group-card:hover,
.inventory-group-card.is-selected {
  border-color: #2d78e8;
  background: #f5f9ff;
}

.inventory-group-card.is-selected {
  box-shadow: 0 0 0 3px rgba(23, 105, 224, 0.12);
}

.group-card-id {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 6px 9px;
  border-radius: 999px;
  color: #0f5132;
  background: #dcfce7;
  font-size: 0.64rem;
  font-weight: 850;
}

.inventory-group-card strong,
.inventory-empty-panel strong {
  display: block;
  color: var(--ink);
  font-size: 0.82rem;
  line-height: 1.35;
}

.group-card-meta,
.inventory-empty-panel span {
  display: block;
  margin-top: 8px;
  color: #667085;
  font-size: 0.67rem;
  line-height: 1.45;
}

.group-card-status {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.group-card-status span {
  padding: 5px 8px;
  border-radius: 999px;
  color: #7a2e0e;
  background: #fff4e5;
  font-size: 0.6rem;
  font-weight: 800;
}

.inventory-browser-card {
  overflow: hidden;
  border: 1px solid #e4e8ef;
  border-radius: 16px;
  background: #fff;
}

.inventory-browser-heading {
  margin: 0;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.inventory-browser-heading > span {
  color: #51637f;
  letter-spacing: 0;
  text-transform: none;
}

.product-inventory-table {
  min-width: 980px;
}

.inventory-table-group-button {
  padding: 7px 10px;
}

.inventory-browser-note {
  margin: 0;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  color: #667085;
  background: #f8fafc;
  font-size: 0.68rem;
}

.instructions-heading {
  margin: 32px 0 17px;
  padding-top: 25px;
  border-top: 1px solid var(--line);
}

.instructions-heading span {
  color: var(--blue);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.instructions-heading h2 {
  margin: 5px 0;
  font-size: 1.05rem;
}

.instructions-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
}

.editor-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.editor-actions a,
.editor-actions button {
  min-height: 40px;
  padding: 0 15px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 700;
  text-decoration: none;
}

.editor-actions a {
  display: grid;
  place-items: center;
  color: var(--muted);
  background: #f2f4f7;
}

.editor-actions button {
  color: #fff;
  background: var(--blue);
}

.empty-state {
  grid-column: 1 / -1;
  padding: 60px 30px;
  text-align: center;
}

.empty-state > span {
  color: var(--blue);
  font-family: Consolas, monospace;
  font-size: 0.7rem;
  font-weight: 800;
}

.empty-state h2 {
  margin: 13px 0 7px;
}

.empty-state p,
.integration-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.6;
}

.integration-logo {
  display: grid;
  width: 41px;
  height: 41px;
  place-items: center;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(145deg, #4f95ef, #1769e0);
  font-size: 0.7rem;
  font-weight: 850;
}

.bridge-logo {
  background: linear-gradient(145deg, #32a480, #087a55);
}

.products-logo {
  background: linear-gradient(145deg, #7b88a3, #344054);
}

.trendyol-logo {
  background: linear-gradient(145deg, #ff8a38, #e45813);
}

.ggsel-logo {
  background: linear-gradient(145deg, #1fb7a6, #1769e0);
}

.api-spec-card {
  margin-top: 20px;
}

.api-spec-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.api-spec-grid article {
  display: flex;
  min-height: 158px;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafbfc;
}

.api-spec-grid strong {
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 850;
}

.api-spec-grid span {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.5;
}

.api-spec-grid code {
  display: block;
  width: 100%;
  overflow-wrap: anywhere;
  color: var(--blue);
  font-family: Consolas, monospace;
  font-size: 0.68rem;
  line-height: 1.45;
}

.database-card {
  max-width: 780px;
}

.checker-runner-grid {
  display: grid;
  grid-template-columns: minmax(0, 780px) minmax(320px, 1fr);
  gap: 22px;
  align-items: stretch;
}

.checker-runner-grid .database-card {
  max-width: none;
}

.checker-progress-card {
  overflow: hidden;
}

.checker-progress-body {
  display: grid;
  gap: 18px;
  padding: 24px;
}

.checker-progress-meter {
  display: grid;
  gap: 8px;
}

.checker-progress-meter strong {
  color: var(--ink);
  font-size: 2rem;
  font-weight: 850;
}

.checker-progress-meter span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 750;
}

.checker-progress-meter progress {
  overflow: hidden;
  width: 100%;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: #edf2f7;
}

.checker-progress-meter progress::-webkit-progress-bar {
  border-radius: 999px;
  background: #edf2f7;
}

.checker-progress-meter progress::-webkit-progress-value {
  border-radius: 999px;
  background: var(--blue);
}

.checker-progress-meter progress::-moz-progress-bar {
  border-radius: 999px;
  background: var(--blue);
}

.checker-progress-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.checker-progress-stats div {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.checker-progress-stats span,
.checker-issue-list small,
.checker-log-list small,
.checker-log-list time {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 750;
}

.checker-progress-stats strong {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 850;
}

.checker-progress-detail {
  margin: 0;
}

.checker-progress-detail dd {
  overflow-wrap: anywhere;
}

.checker-issue-panel {
  display: grid;
  gap: 10px;
}

.checker-issue-panel h3 {
  margin: 0;
  color: var(--ink);
  font-size: 0.83rem;
}

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

.checker-issue-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 3px 10px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.checker-issue-list strong {
  grid-row: span 2;
  color: #b42318;
  font-size: 0.82rem;
}

.checker-issue-list span {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 750;
}

.checker-issue-empty {
  grid-template-columns: 1fr !important;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
}

.checker-log-panel {
  display: grid;
  gap: 10px;
}

.checker-log-panel h3 {
  margin: 0;
  color: var(--ink);
  font-size: 0.83rem;
}

.checker-log-list {
  display: grid;
  max-height: 290px;
  gap: 8px;
  padding: 0;
  margin: 0;
  overflow: auto;
  list-style: none;
}

.checker-log-list li {
  position: relative;
  display: grid;
  gap: 3px;
  padding: 10px 10px 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.checker-log-list li::before {
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 0;
  width: 3px;
  border-radius: 999px;
  background: #98a2b3;
  content: "";
}

.checker-log-list strong,
.checker-log-list span {
  overflow-wrap: anywhere;
}

.checker-log-list strong {
  color: var(--ink);
  font-size: 0.71rem;
}

.checker-log-list span {
  color: #344054;
  font-size: 0.7rem;
}

.checker-log-success::before {
  background: var(--green) !important;
}

.checker-log-warning::before {
  background: var(--amber) !important;
}

.checker-log-error::before {
  background: #b42318 !important;
}

.checker-log-empty {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
}

.checker-settings-form {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 14px;
  padding: 18px 24px 0;
}

.checker-settings-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 750;
}

.checker-settings-form select {
  min-width: 130px;
}

.checker-settings-form button,
.inline-action-form button {
  min-height: 40px;
  padding: 0 15px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--blue);
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 800;
}

.checker-settings-form .toggle-row {
  display: flex;
  align-items: center;
  min-height: 40px;
}

.inline-action-form {
  display: flex;
  justify-content: flex-end;
  padding: 12px 24px 0;
}

.inline-action-form button:disabled {
  background: #98a2b3;
  cursor: not-allowed;
}

.checker-detail-list {
  margin-top: 18px;
}

.form-status {
  margin: 14px 24px 22px;
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 750;
}

.inventory-metric-grid,
.inventory-card,
.database-inventory-browser-card {
  margin-top: 22px;
}

@media (max-width: 1050px) {
  .checker-runner-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .checker-progress-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.inventory-card,
.database-inventory-browser-card {
  overflow: hidden;
}

.inventory-search-form {
  width: min(920px, 100%);
}

.inventory-table {
  min-width: 1420px;
}

.inventory-browser {
  display: grid;
  grid-template-columns: 285px minmax(0, 1fr);
  min-height: 620px;
}

.inventory-group-sidebar {
  display: flex;
  min-width: 0;
  max-height: 780px;
  flex-direction: column;
  gap: 8px;
  overflow: auto;
  padding: 16px;
  border-right: 1px solid var(--line);
  background: #f8fafc;
}

.inventory-group-sidebar-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.inventory-group-sidebar-heading strong {
  color: var(--ink);
}

.inventory-group-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 68px;
  padding: 11px 12px;
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  color: inherit;
  background: #fff;
  text-decoration: none;
}

.inventory-group-row:hover,
.inventory-group-row.is-active {
  border-color: #9bc5fb;
  background: var(--blue-soft);
}

.inventory-group-row span {
  min-width: 0;
}

.inventory-group-row strong,
.inventory-group-row small,
.inventory-group-row em {
  display: block;
}

.inventory-group-row strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 0.76rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inventory-group-row small {
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.62rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inventory-group-row em {
  color: #17375e;
  font-size: 0.65rem;
  font-style: normal;
  font-weight: 850;
  white-space: nowrap;
}

.inventory-group-empty {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
}

.inventory-key-pane {
  min-width: 0;
  background: #fff;
}

.inventory-pane-heading {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.inventory-pane-heading > div {
  min-width: 0;
}

.inventory-pane-heading span:not(.status),
.inventory-pane-heading small {
  display: block;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 750;
}

.inventory-pane-heading strong {
  display: block;
  margin: 3px 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 0.92rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inventory-key-table-wrap {
  max-height: 700px;
  overflow: auto;
}

.inventory-table thead {
  position: sticky;
  z-index: 1;
  top: 0;
}

.inventory-table td {
  vertical-align: top;
}

.inventory-spec-grid {
  display: grid;
  width: min(330px, 100%);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.inventory-spec-grid span {
  display: grid !important;
  gap: 2px;
  min-width: 0;
  padding: 7px 8px;
  border: 1px solid #e6ebf2;
  border-radius: 7px;
  background: #f8fafc;
}

.inventory-spec-grid b {
  color: var(--muted);
  font-size: 0.57rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.inventory-spec-grid strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 0.68rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 1180px) {
  .inventory-browser {
    grid-template-columns: 1fr;
  }

  .inventory-group-sidebar {
    display: grid;
    max-height: none;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .inventory-group-sidebar-heading {
    grid-column: 1 / -1;
  }
}

.adverts-card {
  overflow: hidden;
}

.adverts-filter-form {
  width: min(960px, 100%);
}

.adverts-filter-form input[type="date"] {
  width: 170px;
  flex: 0 0 auto;
}

.adverts-section-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
}

.adverts-section-strip a {
  display: grid;
  min-width: 210px;
  gap: 4px;
  padding: 12px 13px;
  border: 1px solid #dbe4ef;
  border-radius: 11px;
  color: inherit;
  background: #fff;
  text-decoration: none;
}

.adverts-section-strip a.active,
.adverts-section-strip a:hover {
  border-color: #9bc5fb;
  background: var(--blue-soft);
}

.adverts-section-strip strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.adverts-section-strip span {
  color: var(--muted);
  font-size: 0.62rem;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 9px 12px;
  border: 1px solid #cfe2fb;
  border-radius: 8px;
  color: var(--blue);
  background: var(--blue-soft);
  font-size: 0.68rem;
  font-weight: 800;
  text-decoration: none;
}

.button-link:hover {
  border-color: #9bc5fb;
  color: #17375e;
}

.adverts-seller-link {
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
}

.adverts-seller-link:hover {
  text-decoration: underline;
}

.adverts-tabs {
  display: flex;
  gap: 8px;
  padding: 14px 18px 0;
  background: #fff;
}

.adverts-tabs a {
  display: grid;
  min-width: 132px;
  gap: 3px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-bottom-color: #dbe4ef;
  border-radius: 8px 8px 0 0;
  color: var(--muted);
  background: #f8fafc;
  text-decoration: none;
}

.adverts-tabs a.active,
.adverts-tabs a:hover {
  border-color: #9bc5fb;
  color: #17375e;
  background: #fff;
}

.adverts-tabs span {
  color: inherit;
  font-size: 0.72rem;
  font-weight: 800;
}

.adverts-tabs small {
  color: var(--muted);
  font-size: 0.61rem;
  font-weight: 700;
}

.adverts-table {
  min-width: 1080px;
}

.adverts-sellers-table {
  min-width: 1180px;
}

.adverts-seller-history-table {
  min-width: 1240px;
}

.adverts-own-row {
  background: #f5fff9;
}

.data-table tr.is-muted td {
  color: var(--muted);
}

.adverts-history-panel {
  padding: 18px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.adverts-history-summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.adverts-history-summary strong {
  color: var(--ink);
  font-size: 0.82rem;
}

.adverts-history-summary small {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 700;
}

.adverts-history-chart {
  display: flex;
  flex-wrap: nowrap;
  align-items: end;
  gap: clamp(2px, 0.55vw, 8px);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-height: 190px;
  overflow: hidden;
  padding: 12px 8px 4px;
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  background: #f8fafc;
}

.adverts-history-day {
  position: relative;
  display: grid;
  flex: 1 1 0;
  grid-template-rows: 22px 132px auto;
  align-items: end;
  min-width: 0;
  height: 168px;
  gap: 5px;
  outline: none;
}

.adverts-history-day:hover .adverts-history-bar-value,
.adverts-history-day:focus .adverts-history-bar-value {
  fill: #0f4eac;
}

.adverts-history-day:hover .adverts-history-amount,
.adverts-history-day:focus .adverts-history-amount {
  opacity: 1;
  transform: translateY(0);
}

.adverts-history-amount {
  display: block;
  align-self: end;
  justify-self: center;
  padding: 3px 6px;
  border: 1px solid #cfe2fb;
  border-radius: 999px;
  color: #0d2f63;
  background: #fff;
  box-shadow: 0 8px 16px rgba(16, 24, 40, 0.08);
  font-size: 0.56rem;
  font-weight: 850;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  transform: translateY(3px);
  transition:
    opacity 0.15s ease,
    transform 0.15s ease;
  white-space: nowrap;
}

.adverts-history-bar {
  display: block;
  width: 100%;
  min-width: 0;
  height: 132px;
  overflow: hidden;
}

.adverts-history-bar-value {
  fill: #2563eb;
  shape-rendering: geometricPrecision;
  transition:
    fill 0.15s ease,
    height 0.18s ease,
    y 0.18s ease;
}

.adverts-history-bar-value.is-empty {
  opacity: 0;
}

.adverts-history-bar-empty {
  fill: #d8e0ea;
  shape-rendering: geometricPrecision;
}

.adverts-history-day.is-muted .adverts-history-bar-value {
  fill: #d8e0ea;
}

.adverts-history-day small {
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 750;
  text-align: center;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: clip;
  white-space: nowrap;
}

.adverts-history-products {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  background: #f8fafc;
}

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

.adverts-history-products header strong {
  color: var(--ink);
  font-size: 0.72rem;
}

.adverts-history-products header small {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 750;
}

.adverts-history-product-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 8px;
}

.adverts-history-product-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 52px;
  padding: 10px 11px;
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.adverts-history-product-option.is-selected {
  border-color: #9bc5fb;
  background: var(--blue-soft);
  box-shadow: 0 0 0 3px rgba(23, 105, 224, 0.08);
}

.adverts-history-product-option input {
  width: 16px;
  height: 16px;
  accent-color: var(--blue);
}

.adverts-history-product-option span {
  min-width: 0;
}

.adverts-history-product-option strong,
.adverts-history-product-option small {
  display: block;
}

.adverts-history-product-option strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 0.69rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.adverts-history-product-option small,
.adverts-history-product-option em {
  color: var(--muted);
  font-size: 0.6rem;
  font-style: normal;
}

.adverts-history-product-option em {
  justify-self: end;
  white-space: nowrap;
}

.advert-future-bids {
  margin-top: 9px;
  width: min(620px, 100%);
}

.advert-future-bids summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  color: #17375e;
  background: #f8fafc;
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 800;
}

.advert-future-bids summary small {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 700;
}

.advert-future-bids-panel {
  margin-top: 8px;
  overflow-x: auto;
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  background: #fff;
}

.advert-future-bids-panel table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
}

.advert-future-bids-panel th,
.advert-future-bids-panel td {
  padding: 8px 10px;
  border-bottom: 1px solid #edf2f7;
  font-size: 0.66rem;
  text-align: left;
  white-space: nowrap;
}

.advert-future-bids-panel th {
  color: var(--muted);
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.advert-future-bids-panel tr:last-child td {
  border-bottom: 0;
}

.advert-future-bids-panel tr.is-muted td {
  color: var(--muted);
}

.adverts-seller-listings {
  width: min(560px, 100%);
}

.adverts-seller-listings summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  color: #17375e;
  background: #f8fafc;
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 800;
}

.adverts-seller-listings summary small {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 700;
}

.adverts-seller-products {
  width: min(780px, 100%);
}

.adverts-seller-products table {
  min-width: 720px;
}

.adverts-seller-products td > strong {
  display: block;
  color: var(--ink);
  font-size: 0.68rem;
}

.adverts-seller-products td > small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.6rem;
}

.inventory-key {
  color: #17375e;
  font-size: 0.77rem;
  font-weight: 750;
}

.delivery-setup-card {
  margin-bottom: 18px;
}

.delivery-setup-body {
  padding: 22px 24px 25px;
}

.delivery-setup-body p {
  margin: 0 0 13px;
  color: var(--muted);
  font-size: 0.75rem;
}

.delivery-setup-body code {
  display: block;
  padding: 15px;
  border: 1px solid #cfe2fb;
  border-radius: 9px;
  color: #17375e;
  background: var(--blue-soft);
  font-size: 0.78rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.delivery-setup-body small {
  display: block;
  margin-top: 11px;
  color: #7a8799;
  font-size: 0.65rem;
  line-height: 1.55;
}

.integration-numbers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 23px;
}

.integration-numbers div {
  padding: 14px;
  border-radius: 9px;
  background: #f5f7fa;
}

.integration-numbers strong,
.integration-numbers span {
  display: block;
}

.integration-numbers strong {
  font-size: 1.4rem;
}

.integration-numbers span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.62rem;
}

.integration-summary > a {
  display: inline-block;
  margin-top: 20px;
  color: var(--blue);
  font-size: 0.7rem;
  font-weight: 700;
  text-decoration: none;
}

.auth-body {
  overflow: hidden;
  color: #fff;
  background: var(--navy);
}

.auth-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(480px, 0.85fr) minmax(500px, 1.15fr);
}

.auth-panel {
  display: flex;
  width: min(470px, 100%);
  flex-direction: column;
  justify-content: center;
  margin: 0 auto;
  padding: 55px;
}

.auth-brand {
  margin-bottom: 74px;
}

.auth-kicker {
  color: #72aff9;
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.auth-copy h1 {
  margin: 12px 0 11px;
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: -0.065em;
  line-height: 1;
}

.auth-copy p {
  max-width: 400px;
  margin: 0;
  color: #91a3bc;
  font-size: 0.88rem;
  line-height: 1.7;
}

.setup-notice {
  margin-top: 24px;
  padding: 14px 15px;
  border: 1px solid rgba(255, 191, 71, 0.22);
  border-radius: 9px;
  color: #f5d28b;
  background: rgba(145, 92, 6, 0.13);
}

.setup-notice strong {
  font-size: 0.75rem;
}

.setup-notice p {
  margin: 5px 0 0;
  color: #bca678;
  font-size: 0.68rem;
  line-height: 1.5;
}

.auth-form {
  display: flex;
  flex-direction: column;
  margin-top: 35px;
}

.auth-form label {
  margin: 15px 0 7px;
  color: #aebdd0;
  font-size: 0.68rem;
  font-weight: 700;
}

.auth-form input:not([type="hidden"]) {
  min-height: 49px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 9px;
  color: #fff;
  outline: none;
  background: rgba(255, 255, 255, 0.045);
}

.auth-form input:focus {
  border-color: #3f91fb;
  box-shadow: 0 0 0 3px rgba(63, 145, 251, 0.1);
}

.auth-form button {
  min-height: 49px;
  margin-top: 24px;
  border: 0;
  border-radius: 9px;
  color: #fff;
  background: var(--blue);
  box-shadow: 0 12px 30px rgba(23, 105, 224, 0.22);
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 750;
}

.auth-form button:disabled {
  color: #70829b;
  background: #263b59;
  box-shadow: none;
  cursor: not-allowed;
}

.auth-form > span,
.validation-summary {
  color: #ff9f9f;
  font-size: 0.66rem;
}

.validation-summary ul {
  margin: 8px 0 0;
  padding-left: 17px;
}

.auth-panel footer {
  display: flex;
  gap: 9px;
  align-items: center;
  margin-top: 48px;
  color: #7185a2;
  font-size: 0.65rem;
}

.auth-visual {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 65% 42%, rgba(48, 139, 255, 0.25), transparent 27%),
    linear-gradient(145deg, #0b2752, #06152c);
}

.visual-grid {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background:
    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: 48px 48px;
}

.visual-card {
  position: absolute;
  z-index: 2;
  width: 240px;
  height: 145px;
  padding: 25px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 17px;
  background: rgba(9, 33, 70, 0.75);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(16px);
}

.visual-card span,
.visual-card strong {
  display: block;
}

.visual-card span {
  color: #68aaf9;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.visual-card strong {
  margin-top: 9px;
  font-size: 1.1rem;
}

.visual-card i {
  display: block;
  width: 70%;
  height: 5px;
  margin-top: 31px;
  border-radius: 4px;
  background: linear-gradient(90deg, #3a91fa 62%, rgba(255, 255, 255, 0.08) 62%);
}

.visual-card-one {
  top: 27%;
  left: 21%;
  transform: rotate(-5deg);
}

.visual-card-two {
  top: 51%;
  left: 47%;
  transform: rotate(6deg);
}

.visual-orbit {
  position: absolute;
  top: 17%;
  left: 9%;
  width: 78%;
  aspect-ratio: 1;
  border: 1px solid rgba(91, 166, 255, 0.15);
  border-radius: 50%;
}

.simple-message {
  display: grid;
  min-height: 100vh;
  place-content: center;
  padding: 30px;
  text-align: center;
}

.simple-message > span {
  color: #5ba3fb;
  font-family: Consolas, monospace;
  font-size: 0.75rem;
  font-weight: 800;
}

.simple-message h1 {
  margin: 12px 0 8px;
  font-size: 2.2rem;
}

.simple-message p {
  margin: 0;
  color: #91a3bc;
}

.simple-message a {
  margin-top: 25px;
  color: #73b0fb;
  font-size: 0.75rem;
}

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

  .product-admin-grid,
  .integration-grid,
  .api-spec-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-visual {
    display: none;
  }
}

@media (max-width: 820px) {
  .admin-shell {
    display: block;
  }

  .sidebar {
    position: static;
    width: 100%;
    height: auto;
    padding: 18px;
  }

  .side-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin-top: 20px;
  }

  .side-nav a {
    justify-content: center;
    padding: 0 8px;
  }

  .nav-label,
  .nav-icon,
  .sidebar-footer {
    display: none;
  }

  .topbar {
    padding: 0 20px;
  }

  .page-content {
    padding: 28px 20px;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .translation-grid {
    grid-template-columns: 1fr;
  }

  .instruction-editor-grid {
    grid-template-columns: 1fr;
  }

  .api-spec-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 580px) {
  .side-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .account-name {
    display: none;
  }

  .page-heading {
    display: block;
  }

  .primary-action {
    display: inline-block;
    margin-top: 20px;
  }

  .metric-grid,
  .product-admin-grid,
  .integration-grid {
    grid-template-columns: 1fr;
  }

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

  .tree-children {
    padding-left: 20px;
  }

  .tree-children::before,
  .tree-parameter-node::before,
  .tree-variant-node::before {
    display: none;
  }

  .orders-toolbar,
  .search-form {
    align-items: stretch;
    flex-direction: column;
  }

  .editor-grid {
    grid-template-columns: 1fr;
  }

  .toggle-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .connection-test-form {
    align-items: stretch;
    flex-direction: column;
  }

  .orders-toolbar > span {
    align-self: flex-end;
  }

  .auth-panel {
    padding: 35px 24px;
  }

  .auth-brand {
    margin-bottom: 55px;
  }
}

/* Storefront workspace */
.secondary-action {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid #cfd8e6;
  border-radius: 8px;
  color: #174f9c;
  background: #fff;
  font-size: 0.72rem;
  font-weight: 750;
  text-decoration: none;
}

.workspace-tabs {
  display: flex;
  gap: 3px;
  width: max-content;
  margin-bottom: 18px;
  padding: 3px;
  border: 1px solid #dce3ed;
  border-radius: 8px;
  background: #eef2f7;
}

.workspace-tabs a {
  display: inline-flex;
  min-height: 36px;
  gap: 7px;
  align-items: center;
  padding: 0 13px;
  border-radius: 6px;
  color: #526173;
  font-size: 0.7rem;
  font-weight: 750;
  text-decoration: none;
}

.workspace-tabs a.active {
  color: #0d2f63;
  background: #fff;
  box-shadow: 0 2px 8px rgba(16, 24, 40, 0.08);
}

.workspace-tabs a span {
  min-width: 19px;
  padding: 2px 5px;
  border-radius: 999px;
  color: #fff;
  background: #1769e0;
  font-size: 0.58rem;
  text-align: center;
}

.storefront-admin-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.storefront-admin-metrics div {
  min-width: 0;
  padding: 15px 17px;
  border: 1px solid #dfe5ee;
  border-radius: 8px;
  background: #fff;
}

.storefront-admin-metrics span,
.storefront-admin-metrics strong {
  display: block;
}

.storefront-admin-metrics span {
  color: #667085;
  font-size: 0.67rem;
  font-weight: 650;
}

.storefront-admin-metrics strong {
  margin-top: 7px;
  color: #101828;
  font-size: 1.35rem;
  letter-spacing: 0;
}

.storefront-admin-empty,
.storefront-admin-table-card,
.storefront-delete-panel,
.storefront-inquiry-message,
.storefront-inquiry-meta {
  border-radius: 8px;
}

.storefront-admin-empty .primary-action {
  display: inline-flex;
  margin-top: 20px;
}

.storefront-admin-table-card {
  overflow: hidden;
}

.storefront-admin-table {
  min-width: 980px;
}

.table-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: flex-end;
}

.table-actions a {
  padding: 7px 9px;
  border: 1px solid #d8e0eb;
  border-radius: 6px;
  color: #1756aa;
  background: #fff;
  font-size: 0.65rem;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}

.table-actions .danger-link {
  color: #b42318;
  border-color: #f2c7c3;
}

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

.storefront-editor {
  border-radius: 8px;
}

.storefront-editor-section + .storefront-editor-section {
  margin-top: 28px;
  padding-top: 25px;
  border-top: 1px solid var(--line);
}

.storefront-editor-section > header {
  margin-bottom: 17px;
}

.storefront-editor-section > header span,
.storefront-inquiry-message > span {
  color: var(--blue);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.storefront-editor-section > header h2 {
  margin: 5px 0 0;
  font-size: 1rem;
  letter-spacing: 0;
}

.editor-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.storefront-locale-tabs {
  display: flex;
  gap: 3px;
  width: max-content;
  margin-bottom: 18px;
  padding: 3px;
  border: 1px solid #dce3ed;
  border-radius: 8px;
  background: #eef2f7;
}

.storefront-locale-tabs button {
  min-height: 34px;
  padding: 0 13px;
  border: 0;
  border-radius: 6px;
  color: #526173;
  background: transparent;
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 750;
}

.storefront-locale-tabs button.active {
  color: #0d2f63;
  background: #fff;
  box-shadow: 0 2px 8px rgba(16, 24, 40, 0.08);
}

.storefront-locale-panel {
  display: grid;
  gap: 16px;
}

.storefront-locale-panel[hidden] {
  display: none;
}

.storefront-toggle-row {
  margin: 0;
  border-radius: 8px;
}

.danger-action,
.editor-actions .danger-action {
  color: #fff;
  background: #b42318;
}

.storefront-delete-panel {
  max-width: 720px;
  padding: 28px;
}

.storefront-delete-panel h2 {
  margin: 18px 0 8px;
  letter-spacing: 0;
}

.storefront-delete-panel p {
  color: #526173;
  line-height: 1.65;
}

.storefront-delete-panel .editor-actions form {
  display: flex;
}

.storefront-inquiry-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.7fr);
  gap: 16px;
  align-items: start;
}

.storefront-inquiry-message,
.storefront-inquiry-meta {
  padding: 24px;
}

.storefront-inquiry-message p {
  margin: 15px 0 0;
  color: #25364d;
  font-size: 0.85rem;
  line-height: 1.75;
  white-space: pre-wrap;
}

.storefront-inquiry-meta dl {
  margin: 0 0 18px;
}

.storefront-inquiry-meta dl div {
  padding: 11px 0;
  border-bottom: 1px solid #e9edf3;
}

.storefront-inquiry-meta dt {
  color: #7a8797;
  font-size: 0.62rem;
  font-weight: 750;
  text-transform: uppercase;
}

.storefront-inquiry-meta dd {
  margin: 5px 0 0;
  color: #1e2f45;
  font-size: 0.74rem;
  overflow-wrap: anywhere;
}

.storefront-inquiry-meta dd a {
  color: #1756aa;
}

.storefront-inquiry-meta form + form {
  margin-top: 8px;
}

.storefront-inquiry-meta button {
  width: 100%;
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--blue);
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 750;
}

.storefront-inquiry-meta .danger-action {
  background: #b42318;
}

@media (max-width: 900px) {
  .storefront-inquiry-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .storefront-admin-metrics,
  .editor-grid-three {
    grid-template-columns: 1fr;
  }

  .workspace-tabs,
  .storefront-locale-tabs {
    width: 100%;
  }

  .workspace-tabs a,
  .storefront-locale-tabs button {
    flex: 1 1 0;
    justify-content: center;
  }
}

/* Trendyol publishing workspace */
.marketplace-heading {
  display: flex;
  gap: 20px;
  align-items: flex-end;
  justify-content: space-between;
}

.heading-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
  align-items: center;
}

.heading-actions form {
  margin: 0;
}

.heading-actions button {
  cursor: pointer;
}

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

.status-progress {
  color: #805500;
  background: #fff3d4;
}

.trendyol-automation-card,
.trendyol-jobs-card {
  margin-bottom: 18px;
  overflow: hidden;
  border-radius: 8px;
}

.trendyol-template-table {
  min-width: 1180px;
}

.trendyol-job-table {
  min-width: 980px;
}

.trendyol-listings-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.trendyol-listings-metrics > div {
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid #dfe5ee;
  border-radius: 8px;
  background: #fff;
}

.trendyol-listings-metrics span,
.trendyol-listings-metrics strong {
  display: block;
}

.trendyol-listings-metrics span {
  color: #667085;
  font-size: 0.64rem;
  font-weight: 700;
}

.trendyol-listings-metrics strong {
  margin-top: 7px;
  color: #172b46;
  font-size: 1.25rem;
  letter-spacing: 0;
}

.trendyol-listings-metrics > div:nth-child(2) strong {
  color: #087443;
}

.trendyol-listings-metrics > div:nth-child(3) strong {
  color: #805500;
}

.trendyol-listings-metrics > div:nth-child(5) strong {
  color: #b42318;
}

.trendyol-listings-toolbar {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
  padding: 12px;
  border: 1px solid #dfe5ee;
  border-radius: 8px;
  background: #fff;
}

.trendyol-status-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.trendyol-status-filters a {
  display: inline-flex;
  min-height: 34px;
  gap: 7px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid #dce3ed;
  border-radius: 6px;
  color: #526173;
  background: #fff;
  font-size: 0.66rem;
  font-weight: 750;
  text-decoration: none;
}

.trendyol-status-filters a:hover {
  border-color: #aebed4;
  color: #174f9c;
}

.trendyol-status-filters a.active {
  border-color: #1769e0;
  color: #fff;
  background: #1769e0;
}

.trendyol-status-filters a span {
  min-width: 20px;
  padding: 2px 5px;
  border-radius: 999px;
  color: #526173;
  background: #eef2f7;
  font-size: 0.57rem;
  text-align: center;
}

.trendyol-status-filters a.active span {
  color: #0d3d7d;
  background: #fff;
}

.trendyol-listing-search {
  display: flex;
  width: min(100%, 620px);
  gap: 7px;
  align-items: center;
  margin-left: auto;
}

.trendyol-listing-search input {
  min-width: 0;
  min-height: 38px;
  flex: 1 1 auto;
  padding: 0 11px;
  border: 1px solid #cfd8e6;
  border-radius: 6px;
  color: #172b46;
  background: #fff;
  font: inherit;
  font-size: 0.72rem;
}

.trendyol-listing-search input:focus {
  border-color: #1769e0;
  outline: 2px solid rgba(23, 105, 224, 0.14);
}

.trendyol-listing-search button,
.trendyol-listing-search a {
  display: inline-flex;
  min-height: 38px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 750;
  text-decoration: none;
}

.trendyol-listing-search button {
  border: 1px solid #1769e0;
  color: #fff;
  background: #1769e0;
}

.trendyol-listing-search a {
  border: 1px solid #cfd8e6;
  color: #174f9c;
  background: #fff;
}

.trendyol-listings-card {
  overflow: hidden;
  border-radius: 8px;
}

.trendyol-listing-collection {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 14px;
  list-style: none;
  background: #f6f8fb;
}

.trendyol-listing-collection > li {
  min-width: 0;
}

.trendyol-listing-card {
  display: grid;
  grid-template-columns:
    96px
    minmax(220px, 1.55fr)
    minmax(135px, 0.65fr)
    minmax(190px, 0.9fr)
    minmax(130px, 0.55fr);
  gap: 16px;
  align-items: center;
  min-width: 0;
  padding: 12px 14px 12px 12px;
  border: 1px solid #e1e7ef;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(23, 43, 70, 0.025);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.trendyol-listing-card:hover {
  border-color: #cbd6e4;
  box-shadow: 0 8px 24px rgba(23, 43, 70, 0.07);
  transform: translateY(-1px);
}

.trendyol-listing-media {
  position: relative;
  width: 96px;
  height: 128px;
  overflow: hidden;
  border: 1px solid #e0e6ef;
  border-radius: 7px;
  background:
    linear-gradient(145deg, rgba(255, 103, 31, 0.08), transparent 54%),
    #f5f7fa;
}

.trendyol-listing-image-placeholder,
.trendyol-listing-image-link,
.trendyol-listing-media > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.trendyol-listing-image-placeholder {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
  color: #8a97a8;
}

.trendyol-listing-image-placeholder strong {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #f36f21;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
}

.trendyol-listing-image-placeholder span {
  font-size: 0.58rem;
  font-weight: 700;
}

.trendyol-listing-image-link {
  z-index: 1;
  display: block;
  background: #fff;
}

.trendyol-listing-image-link:focus-visible {
  outline: 3px solid rgba(23, 105, 224, 0.34);
  outline-offset: -3px;
}

.trendyol-listing-media img {
  z-index: 1;
  display: block;
  object-fit: contain;
  background: #fff;
}

.trendyol-listing-media.is-unavailable .trendyol-listing-image-link,
.trendyol-listing-media.is-unavailable > img,
.trendyol-listing-media.is-unavailable .trendyol-listing-image-count {
  display: none;
}

.trendyol-listing-image-count {
  position: absolute;
  right: 6px;
  bottom: 6px;
  z-index: 2;
  min-width: 25px;
  padding: 4px 6px;
  border-radius: 999px;
  color: #fff;
  background: rgba(23, 43, 70, 0.78);
  font-size: 0.58rem;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  backdrop-filter: blur(4px);
}

.trendyol-listing-summary,
.trendyol-listing-commerce,
.trendyol-listing-marketplace,
.trendyol-listing-activity {
  min-width: 0;
}

.trendyol-listing-card-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  margin-bottom: 7px;
}

.trendyol-listing-card-kicker > span:first-child {
  color: #667085;
  font-size: 0.61rem;
  font-weight: 750;
}

.trendyol-listing-card-kicker .status {
  flex: 0 0 auto;
}

.trendyol-listing-summary h3 {
  margin: 0;
  color: #172b46;
  font-size: 0.78rem;
  line-height: 1.42;
  overflow-wrap: anywhere;
}

.trendyol-listing-summary h3 a {
  color: inherit;
  text-decoration-color: #aebed4;
  text-underline-offset: 2px;
}

.trendyol-listing-summary h3 a:hover {
  color: #1756aa;
}

.trendyol-listing-identifiers {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 9px;
}

.trendyol-listing-identifiers span {
  max-width: 100%;
  padding: 4px 7px;
  overflow: hidden;
  border-radius: 5px;
  color: #526173;
  background: #f0f3f7;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.58rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trendyol-listing-label {
  display: block;
  margin-bottom: 7px;
  color: #8a97a8;
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.trendyol-listing-commerce > strong {
  display: block;
  color: #172b46;
  font-size: 0.82rem;
}

.trendyol-listing-commerce > small,
.trendyol-listing-marketplace > small {
  display: block;
  margin-top: 5px;
  color: #667085;
  font-size: 0.61rem;
  overflow-wrap: anywhere;
}

.trendyol-listing-stock {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  margin-top: 9px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 0.59rem;
  font-weight: 800;
}

.trendyol-listing-stock.is-available {
  color: #087443;
  background: #e8f7ef;
}

.trendyol-listing-stock.is-empty {
  color: #8a3d00;
  background: #fff1e7;
}

.trendyol-listing-marketplace p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #344054;
  font-size: 0.65rem;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.trendyol-listing-cleanup-link {
  display: inline-flex;
  margin-top: 8px;
  color: #1756aa;
  font-size: 0.62rem;
  font-weight: 750;
  text-decoration: none;
}

.trendyol-listing-cleanup-link:hover {
  text-decoration: underline;
}

.trendyol-listing-activity {
  display: grid;
  gap: 6px;
  align-content: center;
  color: #667085;
  font-size: 0.59rem;
  line-height: 1.4;
}

.trendyol-listing-activity time,
.trendyol-listing-activity > span:not(.trendyol-listing-label) {
  display: block;
}

.trendyol-pagination {
  display: grid;
  grid-template-columns: minmax(80px, 1fr) auto minmax(80px, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px 18px;
  border-top: 1px solid #e9edf3;
  color: #667085;
  font-size: 0.68rem;
}

.trendyol-pagination strong {
  font-weight: 700;
  text-align: center;
}

.trendyol-pagination a {
  color: #1756aa;
  font-weight: 750;
  text-decoration: none;
}

.trendyol-pagination a:last-child {
  text-align: right;
}

.table-actions form {
  margin: 0;
}

.table-actions button {
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid #d8e0eb;
  border-radius: 6px;
  color: #1756aa;
  background: #fff;
  cursor: pointer;
  font-size: 0.65rem;
  font-weight: 750;
  white-space: nowrap;
}

.table-actions button:disabled {
  color: #98a2b3;
  background: #f4f6f8;
  cursor: not-allowed;
}

.danger-link {
  color: #b42318;
  font-size: 0.72rem;
  font-weight: 750;
  text-decoration: none;
}

.trendyol-editor {
  border-radius: 8px;
}

.trendyol-toggle-row {
  min-height: 100%;
  margin: 0;
  border-radius: 8px;
}

.trendyol-catalog-grid {
  grid-template-columns: minmax(0, 2fr) minmax(180px, 0.55fr);
}

.trendyol-refresh-field {
  align-content: end;
}

.trendyol-refresh-field .secondary-action {
  width: 100%;
  cursor: pointer;
}

.trendyol-refresh-field .secondary-action:disabled {
  color: #98a2b3;
  background: #f4f6f8;
  cursor: not-allowed;
}

.trendyol-token-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.trendyol-token-row code {
  padding: 5px 8px;
  border: 1px solid #dbe3ee;
  border-radius: 5px;
  color: #174f9c;
  background: #f6f8fb;
  font-size: 0.66rem;
}

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

.trendyol-image-grid figure {
  min-width: 0;
  aspect-ratio: 2 / 3;
  margin: 0;
  overflow: hidden;
  border: 1px solid #dce3ed;
  border-radius: 6px;
  background: #f6f8fb;
}

.trendyol-image-grid img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.trendyol-attribute-list {
  border-top: 1px solid #e4e9f0;
}

.trendyol-attribute-row {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(240px, 1fr) minmax(240px, 1fr);
  gap: 18px;
  align-items: start;
  padding: 17px 0;
  border-bottom: 1px solid #e4e9f0;
}

.trendyol-attribute-row > .field-group {
  margin: 0;
}

.trendyol-attribute-label strong,
.trendyol-attribute-label span {
  display: block;
}

.trendyol-attribute-label strong {
  color: #172b46;
  font-size: 0.76rem;
}

.trendyol-attribute-label span {
  margin-top: 6px;
  color: #7a8797;
  font-size: 0.62rem;
}

.trendyol-attribute-label b {
  margin-left: 5px;
  color: #1756aa;
  font-weight: 750;
}

.trendyol-attribute-row select[multiple] {
  min-height: 124px;
}

.trendyol-job-detail {
  margin-bottom: 18px;
  border-radius: 8px;
}

.trendyol-job-detail .detail-list {
  margin: 0;
}

.confirmation-card {
  max-width: 720px;
  padding: 28px;
  border-radius: 8px;
}

.confirmation-card > strong {
  display: block;
  color: #172b46;
  font-size: 1rem;
}

.confirmation-card > p {
  margin: 9px 0 0;
  color: #667085;
  font-size: 0.76rem;
  line-height: 1.65;
}

.trendyol-suppression-note {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  align-items: center;
  margin: -6px 0 18px;
  padding: 11px 13px;
  border: 1px solid #f2d29a;
  border-radius: 8px;
  color: #694b12;
  background: #fff9eb;
  font-size: 0.7rem;
}

.trendyol-suppression-note strong {
  color: #7a4f00;
}

.trendyol-suppression-note a {
  margin-left: auto;
  color: #1756aa;
  font-weight: 750;
  text-decoration: none;
}

.trendyol-auto-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.trendyol-auto-metrics > div {
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid #dfe5ee;
  border-radius: 8px;
  background: #fff;
}

.trendyol-auto-metrics span,
.trendyol-auto-metrics strong {
  display: block;
}

.trendyol-auto-metrics span {
  color: #667085;
  font-size: 0.64rem;
  font-weight: 700;
}

.trendyol-auto-metrics strong {
  margin-top: 7px;
  overflow: hidden;
  color: #172b46;
  font-size: 1.1rem;
  text-overflow: ellipsis;
}

.trendyol-auto-metrics > div:nth-child(2) strong,
.trendyol-auto-metrics > div:nth-child(3) strong,
.trendyol-auto-metrics > div:nth-child(6) strong {
  color: #b42318;
}

.trendyol-auto-metrics > div:nth-child(4) strong {
  color: #805500;
}

.trendyol-auto-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.65fr);
  gap: 14px;
  align-items: start;
  margin-bottom: 14px;
}

.trendyol-auto-policy-card,
.trendyol-auto-run-card,
.trendyol-auto-targets-card,
.trendyol-auto-runs-card {
  border-radius: 8px;
}

.trendyol-auto-targets-card,
.trendyol-auto-runs-card {
  margin-bottom: 14px;
  overflow: hidden;
}

.trendyol-auto-guardrail {
  margin: 0 0 18px;
  padding: 14px 15px;
  border: 1px solid #f0b9b4;
  border-left: 4px solid #b42318;
  border-radius: 7px;
  color: #6d2822;
  background: #fff7f6;
}

.trendyol-auto-guardrail strong {
  display: block;
  color: #8d1d14;
  font-size: 0.76rem;
}

.trendyol-auto-guardrail code {
  padding: 1px 4px;
  border-radius: 4px;
  color: #6d2822;
  background: #fbe7e5;
}

.trendyol-auto-guardrail p {
  margin: 6px 0 0;
  font-size: 0.7rem;
  line-height: 1.65;
}

.trendyol-auto-settings {
  display: grid;
  gap: 12px;
}

.trendyol-auto-toggle {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  margin: 0;
  padding: 12px 13px;
  border: 1px solid #dfe5ee;
  border-radius: 7px;
  color: #172b46;
  background: #fbfcfe;
  cursor: pointer;
}

.trendyol-auto-toggle input {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  margin: 1px 0 0;
  accent-color: #1769e0;
}

.trendyol-auto-toggle span,
.trendyol-auto-toggle strong,
.trendyol-auto-toggle small {
  display: block;
}

.trendyol-auto-toggle strong {
  font-size: 0.72rem;
}

.trendyol-auto-toggle small {
  margin-top: 4px;
  color: #667085;
  font-size: 0.63rem;
  font-weight: 500;
  line-height: 1.45;
}

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

.trendyol-auto-fields > label,
.trendyol-auto-confirmation > label:last-child {
  display: grid;
  gap: 6px;
  color: #526173;
  font-size: 0.66rem;
  font-weight: 700;
}

.input-with-suffix {
  display: flex;
  min-width: 0;
  align-items: center;
  overflow: hidden;
  border: 1px solid #cfd8e6;
  border-radius: 6px;
  background: #fff;
}

.input-with-suffix:focus-within {
  border-color: #1769e0;
  outline: 2px solid rgba(23, 105, 224, 0.12);
}

.input-with-suffix input {
  min-width: 0;
  min-height: 40px;
  flex: 1 1 auto;
  padding: 0 10px;
  border: 0;
  outline: 0;
  color: #172b46;
  background: transparent;
  font: inherit;
}

.input-with-suffix small {
  padding: 0 10px;
  color: #7a8797;
  font-size: 0.62rem;
  font-weight: 650;
}

.trendyol-auto-confirmation {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px dashed #e0a6a0;
  border-radius: 7px;
  background: #fffafa;
}

.trendyol-auto-confirmation code {
  color: #8d1d14;
  font-size: 0.66rem;
}

.trendyol-auto-confirmation input[type="text"] {
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid #cfd8e6;
  border-radius: 6px;
  color: #172b46;
  background: #fff;
  font: inherit;
  font-size: 0.7rem;
}

.trendyol-auto-confirmation input[type="text"]:focus {
  border-color: #b42318;
  outline: 2px solid rgba(180, 35, 24, 0.12);
}

.trendyol-auto-form-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}

.trendyol-auto-form-actions > span {
  color: #667085;
  font-size: 0.62rem;
  text-align: right;
}

.trendyol-auto-form-actions > span strong {
  display: block;
  margin-top: 3px;
  color: #172b46;
}

.trendyol-auto-run-card > span {
  color: #667085;
  font-size: 0.64rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.trendyol-auto-run-card h2 {
  margin: 5px 0 0;
  color: #172b46;
  font-size: 1rem;
}

.trendyol-auto-run-card > p {
  margin: 9px 0 16px;
  color: #667085;
  font-size: 0.7rem;
  line-height: 1.6;
}

.trendyol-auto-run-card dl {
  margin: 0;
  border-top: 1px solid #e7ebf1;
}

.trendyol-auto-run-card dl > div {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #e7ebf1;
}

.trendyol-auto-run-card dt {
  color: #7a8797;
  font-size: 0.62rem;
  font-weight: 700;
}

.trendyol-auto-run-card dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: #172b46;
  font-size: 0.65rem;
  line-height: 1.45;
}

.trendyol-auto-run-form {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.trendyol-auto-run-form label {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  color: #667085;
  font-size: 0.64rem;
  line-height: 1.45;
}

.trendyol-auto-run-form input {
  margin-top: 2px;
  accent-color: #b42318;
}

.trendyol-auto-run-form button {
  width: 100%;
}

.trendyol-auto-target-table {
  min-width: 1040px;
}

.trendyol-auto-run-table {
  min-width: 880px;
}

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

  .trendyol-listings-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .trendyol-auto-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .trendyol-auto-layout {
    grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  }

  .trendyol-listing-card {
    grid-template-columns: 96px minmax(220px, 1.35fr) minmax(140px, 0.65fr) minmax(180px, 1fr);
  }

  .trendyol-listing-activity {
    grid-column: 2 / -1;
    grid-template-columns: auto 1fr 1fr;
    gap: 12px;
    align-items: center;
  }

  .trendyol-listing-activity .trendyol-listing-label {
    margin-bottom: 0;
  }

  .trendyol-attribute-row {
    grid-template-columns: minmax(180px, 0.7fr) minmax(0, 1fr);
  }

  .trendyol-attribute-row > .field-group:last-child {
    grid-column: 2;
  }
}

@media (max-width: 760px) {
  .marketplace-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .heading-actions {
    width: 100%;
  }

  .heading-actions > * {
    flex: 1 1 0;
  }

  .heading-actions .primary-action,
  .heading-actions .secondary-action {
    width: 100%;
  }

  .trendyol-summary-grid,
  .trendyol-catalog-grid,
  .trendyol-attribute-row {
    grid-template-columns: 1fr;
  }

  .trendyol-listings-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trendyol-auto-metrics,
  .trendyol-auto-fields,
  .trendyol-auto-layout {
    grid-template-columns: 1fr;
  }

  .trendyol-auto-form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .trendyol-auto-form-actions .primary-action {
    width: 100%;
  }

  .trendyol-auto-form-actions > span {
    text-align: left;
  }

  .trendyol-listing-search {
    width: 100%;
    margin-left: 0;
  }

  .trendyol-status-filters {
    flex-wrap: nowrap;
    padding-bottom: 3px;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .trendyol-status-filters a {
    flex: 0 0 auto;
  }

  .trendyol-listing-collection {
    padding: 10px;
  }

  .trendyol-listing-card {
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 11px;
  }

  .trendyol-listing-media {
    width: 84px;
    height: 112px;
  }

  .trendyol-listing-commerce,
  .trendyol-listing-marketplace,
  .trendyol-listing-activity {
    grid-column: 2;
  }

  .trendyol-listing-activity {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .trendyol-listing-activity .trendyol-listing-label {
    margin-bottom: 2px;
  }

  .trendyol-attribute-row > .field-group:last-child {
    grid-column: auto;
  }

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

@media (max-width: 480px) {
  .trendyol-listings-metrics,
  .trendyol-auto-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trendyol-listings-metrics > div:first-child,
  .trendyol-auto-metrics > div:first-child {
    grid-column: 1 / -1;
  }

  .trendyol-suppression-note a {
    width: 100%;
    margin-left: 0;
  }

  .trendyol-listing-search {
    flex-wrap: wrap;
  }

  .trendyol-listing-search input {
    flex-basis: 100%;
  }

  .trendyol-listing-commerce,
  .trendyol-listing-marketplace,
  .trendyol-listing-activity {
    grid-column: 1 / -1;
  }
}
