:root {
  --customer-sidebar-width: 270px;
  --customer-blue: #0969da;
  --customer-teal: #0f8c79;
  --customer-coral: #df6657;
  --customer-ink: #172033;
  --customer-glass: rgba(255, 255, 255, .78);
  --customer-glass-strong: rgba(255, 255, 255, .9);
  --customer-glass-border: rgba(255, 255, 255, .72);
  --customer-glass-shadow: 0 18px 50px rgba(42, 64, 86, .12);
}

.columns-dialog-panel {
  width: min(520px, calc(100vw - 24px));
}

.column-options {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.column-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 8px 10px 8px 14px;
  border: 1px solid var(--tblr-border-color, #dce1e7);
  border-radius: 6px;
  background: var(--tblr-bg-surface, #fff);
}

.column-order-actions,
.columns-dialog-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.columns-dialog-actions {
  justify-content: space-between;
  margin-top: 18px;
}

.share-list-detail {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.share-record-status {
  width: max-content;
  margin-top: 3px;
  padding: 2px 7px;
  border-radius: 4px;
  background: #e7f6ec;
  color: #087443;
  font-size: 11px;
  font-weight: 700;
}

.share-record-status.is-expired,
.share-record-status.is-revoked {
  background: #eef1f4;
  color: #667382;
}

@media (max-width: 575px) {
  .columns-dialog-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .columns-dialog-actions .btn {
    width: 100%;
  }
}

[hidden] {
  display: none !important;
}

body {
  letter-spacing: 0;
}

.customer-query-body.theme-glass {
  min-height: 100dvh;
  color: var(--customer-ink);
  background-color: #edf2f5;
  background-image:
    linear-gradient(rgba(71, 91, 112, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(71, 91, 112, .045) 1px, transparent 1px);
  background-size: 32px 32px;
  isolation: isolate;
}

.query-backdrop {
  display: none;
  position: fixed;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.customer-query-body.theme-glass .query-backdrop {
  display: block;
}

.query-shape {
  position: absolute;
  display: block;
}

.query-shape-blue {
  top: -88px;
  right: -78px;
  width: 430px;
  height: 320px;
  background: rgba(9, 105, 218, .14);
  clip-path: polygon(18% 0, 100% 0, 100% 72%, 68% 100%, 0 62%);
}

.query-shape-coral {
  top: 38%;
  left: -145px;
  width: 340px;
  height: 270px;
  background: rgba(223, 102, 87, .11);
  clip-path: polygon(0 18%, 72% 0, 100% 50%, 58% 100%, 0 82%);
}

.query-shape-teal {
  right: 12%;
  bottom: -125px;
  width: 390px;
  height: 285px;
  background: rgba(15, 140, 121, .12);
  clip-path: polygon(12% 18%, 86% 0, 100% 74%, 42% 100%, 0 68%);
}

.query-shape-outline {
  top: 18%;
  right: 7%;
  width: 190px;
  height: 145px;
  border: 1px solid rgba(15, 140, 121, .25);
  clip-path: polygon(22% 0, 100% 16%, 78% 100%, 0 72%);
  transform: rotate(-8deg);
}

.customer-query-body.theme-glass > #login,
.customer-query-body.theme-glass > #app {
  position: relative;
  z-index: 1;
}

.auth-screen {
  background: var(--tblr-bg-surface-secondary);
}

.customer-query-body.theme-glass .auth-screen {
  min-height: 100dvh;
  background: transparent;
}

.auth-screen .card {
  border-radius: var(--tblr-border-radius);
}

#loginStatus:empty {
  display: none;
}

.auth-purchase-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
  padding: .875rem 1rem;
  color: var(--tblr-body-color);
  background: var(--tblr-bg-surface-secondary);
  border: 1px solid var(--tblr-border-color);
  border-radius: var(--tblr-border-radius);
  text-decoration: none;
}

.auth-purchase-link:hover,
.auth-purchase-link:focus-visible {
  color: var(--tblr-body-color);
  background: var(--tblr-primary-bg-subtle);
  border-color: var(--tblr-primary-border-subtle);
  text-decoration: none;
}

.auth-purchase-copy,
.auth-purchase-action {
  display: grid;
  gap: .15rem;
}

.auth-purchase-copy {
  min-width: 0;
}

.auth-purchase-title {
  font-size: .875rem;
  font-weight: 600;
}

.auth-purchase-note,
.auth-purchase-price {
  color: var(--tblr-secondary-color);
  font-size: .75rem;
}

.auth-purchase-action {
  flex: 0 0 auto;
  justify-items: end;
  text-align: right;
}

.auth-purchase-label {
  color: var(--tblr-primary);
  font-size: .875rem;
  font-weight: 600;
}

.customer-query-body.theme-glass .auth-purchase-link {
  background: rgba(255, 255, 255, .58);
  border-color: rgba(103, 126, 148, .22);
}

.customer-query-body.theme-glass .auth-purchase-link:hover,
.customer-query-body.theme-glass .auth-purchase-link:focus-visible {
  background: rgba(255, 255, 255, .82);
  border-color: rgba(9, 105, 218, .32);
}

.customer-query-body.theme-glass .auth-screen .container-tight {
  position: relative;
}

.customer-query-body.theme-glass .auth-screen .container-tight::before {
  position: absolute;
  z-index: -1;
  top: 26px;
  left: -24px;
  width: 76px;
  height: 62px;
  content: "";
  background: rgba(223, 102, 87, .2);
  clip-path: polygon(0 20%, 78% 0, 100% 68%, 30% 100%);
}

.customer-query-body.theme-glass .auth-screen .card {
  overflow: hidden;
  background: var(--customer-glass);
  border: 1px solid var(--customer-glass-border);
  box-shadow: var(--customer-glass-shadow);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
  backdrop-filter: blur(18px) saturate(135%);
}

.customer-query-body.theme-glass .auth-screen .card::before {
  display: block;
  width: 100%;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, var(--customer-blue) 0 48%, var(--customer-teal) 48% 78%, var(--customer-coral) 78%);
}

.customer-navbar {
  min-height: 64px;
  background: var(--tblr-bg-surface);
  border-bottom: 1px solid var(--tblr-border-color);
}

.customer-query-body.theme-glass .customer-navbar {
  position: sticky;
  z-index: 20;
  top: 0;
  background: rgba(248, 251, 252, .76);
  border-bottom-color: rgba(103, 126, 148, .2);
  box-shadow: 0 8px 30px rgba(43, 65, 86, .07);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
}

.customer-navbar .container-xl {
  min-height: 64px;
}

.customer-brand-mark {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 30px;
  margin-right: .65rem;
  color: var(--tblr-primary);
  border: 1px solid currentColor;
  border-radius: var(--tblr-border-radius-sm);
  font-size: .75rem;
  font-weight: 700;
  line-height: 1;
}

.customer-query-body.theme-glass .customer-brand-mark {
  color: #fff;
  background: var(--customer-blue);
  border-color: transparent;
  box-shadow: inset -8px 0 0 rgba(15, 140, 121, .72);
  clip-path: polygon(0 0, 88% 0, 100% 28%, 100% 100%, 12% 100%, 0 72%);
}

.customer-brand-copy {
  font-size: 1rem;
  font-weight: 600;
}

.customer-account {
  max-width: 440px;
  overflow: hidden;
  font-size: .8125rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-menu {
  position: relative;
}

.customer-menu > summary {
  list-style: none;
}

.customer-menu > summary::-webkit-details-marker {
  display: none;
}

.customer-menu-panel {
  position: absolute;
  z-index: 30;
  top: calc(100% + .5rem);
  right: 0;
  width: 240px;
  padding: .5rem;
  background: var(--tblr-bg-surface);
  border: 1px solid var(--tblr-border-color);
  border-radius: var(--tblr-border-radius);
  box-shadow: var(--tblr-box-shadow-dropdown);
}

.customer-query-body.theme-glass .customer-menu-panel {
  background: var(--customer-glass-strong);
  border-color: var(--customer-glass-border);
  box-shadow: var(--customer-glass-shadow);
  -webkit-backdrop-filter: blur(16px) saturate(135%);
  backdrop-filter: blur(16px) saturate(135%);
}

.customer-menu-panel .dropdown-item {
  border-radius: var(--tblr-border-radius-sm);
}

.results-more-actions {
  position: relative;
}

.results-more-actions .customer-menu-panel {
  top: calc(100% + .35rem);
  right: 0;
  width: 190px;
}

#appInitError {
  margin-bottom: 1rem;
}

.customer-announcement,
.clear-confirm {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.query-card .card-header,
.results-header {
  justify-content: space-between;
  gap: 1rem;
}

.customer-query-body.theme-glass .page-wrapper {
  background: transparent;
}

.customer-query-body.theme-glass .page-header {
  position: relative;
  overflow: hidden;
}

.customer-query-body.theme-glass .page-header .container-xl {
  position: relative;
}

.customer-query-body.theme-glass .page-header .container-xl::after {
  position: absolute;
  z-index: -1;
  top: -22px;
  right: 21%;
  width: 118px;
  height: 74px;
  content: "";
  background: rgba(15, 140, 121, .13);
  clip-path: polygon(8% 24%, 100% 0, 76% 100%, 0 72%);
}

.customer-query-body.theme-glass .page-pretitle {
  color: var(--customer-teal);
}

.customer-query-body.theme-glass .page-title,
.customer-query-body.theme-glass .card-title {
  color: var(--customer-ink);
}

.customer-query-body.theme-glass .query-card {
  position: relative;
  overflow: hidden;
  background: var(--customer-glass);
  border-color: var(--customer-glass-border);
  box-shadow: var(--customer-glass-shadow);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  backdrop-filter: blur(14px) saturate(130%);
}

.customer-query-body.theme-glass .query-card::before {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, var(--customer-blue) 0 58%, var(--customer-teal) 58% 84%, var(--customer-coral) 84%);
}

.customer-query-body.theme-glass .query-card .card-header {
  background: rgba(255, 255, 255, .32);
  border-bottom-color: rgba(103, 126, 148, .16);
}

.customer-query-body.theme-glass .query-input {
  background: rgba(255, 255, 255, .84);
  border-color: rgba(80, 107, 132, .25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
}

.customer-query-body.theme-glass .query-input:focus {
  background: #fff;
  border-color: var(--customer-blue);
  box-shadow: 0 0 0 .25rem rgba(9, 105, 218, .12);
}

.customer-query-body.theme-glass .progress {
  overflow: hidden;
  background: rgba(58, 79, 100, .11);
}

.customer-query-body.theme-glass .progress-bar {
  background: linear-gradient(90deg, var(--customer-blue), var(--customer-teal));
}

.customer-query-body.theme-glass .customer-announcement,
.customer-query-body.theme-glass #expiryWarning,
.customer-query-body.theme-glass .clear-confirm {
  background: rgba(255, 255, 255, .72);
  border-color: var(--customer-glass-border);
  box-shadow: 0 12px 34px rgba(42, 64, 86, .09);
  -webkit-backdrop-filter: blur(12px) saturate(130%);
  backdrop-filter: blur(12px) saturate(130%);
}

.customer-query-body.theme-glass .customer-announcement {
  color: #175b67;
  border-left: 3px solid var(--customer-teal);
}

.customer-query-body.theme-glass #expiryWarning {
  color: #7a4d00;
  border-left: 3px solid #e6a400;
}

.customer-query-body.theme-glass .btn-primary {
  background: var(--customer-blue);
  border-color: var(--customer-blue);
  box-shadow: 0 5px 14px rgba(9, 105, 218, .18);
}

.customer-query-body.theme-glass .btn-primary:hover,
.customer-query-body.theme-glass .btn-primary:focus-visible {
  background: #075fca;
  border-color: #075fca;
}

.customer-query-body.theme-glass .btn:active {
  transform: translateY(1px);
}

.query-input {
  min-height: 132px;
  resize: vertical;
  font-family: var(--tblr-font-monospace);
  line-height: 1.65;
}

.batch-details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.query-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 32px;
  margin-top: .625rem;
}

.query-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 42px;
  margin-top: .75rem;
  padding: .65rem .8rem;
  color: var(--tblr-body-color);
  background: var(--tblr-bg-surface-secondary);
  border: 1px solid var(--tblr-border-color);
  border-left: 3px solid var(--tblr-primary);
  border-radius: var(--tblr-border-radius-sm);
}

.query-preview.is-invalid {
  border-left-color: var(--tblr-danger);
}

.query-preview-summary {
  font-weight: 600;
}

.query-preview-details {
  color: var(--tblr-secondary-color);
  font-size: .75rem;
  text-align: right;
}

.query-footer {
  display: grid;
  grid-template-columns: auto minmax(260px, 1fr);
  align-items: end;
  gap: 1.5rem;
  margin-top: 1rem;
}

.query-progress-wrap {
  width: min(100%, 560px);
  justify-self: end;
}

.clear-confirm {
  margin: 0;
  border-width: 0 0 1px;
  border-radius: 0;
}

.batch-results-layout {
  display: block;
  min-height: 0;
}

.customer-query-body.theme-glass .results-card {
  overflow: hidden;
  background: #fff;
  border-color: rgba(83, 105, 126, .2);
  box-shadow: 0 18px 45px rgba(42, 64, 86, .1);
}

.customer-query-body.theme-glass .results-header {
  background: rgba(248, 251, 252, .96);
  border-bottom-color: rgba(83, 105, 126, .16);
}

.batch-sidebar {
  min-width: 0;
  background: var(--tblr-bg-surface-secondary);
  border-bottom: 1px solid var(--tblr-border-color);
}

.customer-query-body.theme-glass .batch-sidebar {
  background: #f3f7f8;
}

.batch-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 53px;
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--tblr-border-color);
}

.batch-list {
  display: flex;
  gap: .5rem;
  max-height: none;
  padding: .625rem;
  overflow-x: auto;
}

.batch-item {
  display: block;
  flex: 0 0 230px;
  width: 230px;
  padding: .75rem;
  color: var(--tblr-body-color);
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--tblr-border-radius);
}

.batch-item + .batch-item {
  margin-top: 0;
}

.batch-item:hover {
  background: var(--tblr-bg-surface);
}

.batch-item.active {
  color: var(--tblr-primary);
  background: var(--tblr-bg-surface);
  border-color: var(--tblr-primary);
}

.customer-query-body.theme-glass .batch-item:hover {
  background: rgba(255, 255, 255, .82);
}

.customer-query-body.theme-glass .batch-item.active {
  color: var(--customer-blue);
  background: #fff;
  border-color: var(--customer-blue);
  box-shadow: inset 3px 0 0 var(--customer-teal), 0 5px 14px rgba(42, 64, 86, .07);
}

.batch-item-title,
.batch-item-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}

.batch-item-title {
  font-weight: 600;
}

.batch-item-meta {
  margin-top: .35rem;
  flex-wrap: wrap;
  color: var(--tblr-secondary-color);
  font-size: .75rem;
}

.batch-item-note {
  display: block;
  margin-top: .4rem;
  overflow: hidden;
  color: var(--tblr-secondary-color);
  font-size: .75rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.results-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 150px auto auto;
  align-items: center;
  gap: .75rem;
  min-height: 53px;
  padding: .625rem 1rem;
  border-bottom: 1px solid var(--tblr-border-color);
}

.customer-query-body.theme-glass .results-toolbar {
  background: #fbfcfd;
  border-bottom-color: rgba(83, 105, 126, .15);
}

.customer-query-body.theme-glass .results-table-wrap,
.customer-query-body.theme-glass .results-table,
.customer-query-body.theme-glass .results-card .card-footer {
  background: #fff;
}

.customer-query-body.theme-glass .results-table thead th {
  background: #f7f9fb;
}

.image-export-control {
  position: relative;
  display: inline-flex;
}

.image-export-control > .btn {
  min-width: 104px;
}

.image-export-menu {
  position: absolute;
  z-index: 40;
  top: calc(100% + .5rem);
  right: 0;
  width: 250px;
  padding: .4rem;
  border: 1px solid var(--tblr-border-color);
  border-radius: var(--tblr-border-radius);
  background: var(--tblr-bg-surface);
  box-shadow: 0 14px 34px rgba(24, 36, 51, .16);
}

.image-export-heading {
  padding: .45rem .65rem .35rem;
  color: var(--tblr-secondary-color);
  font-size: .72rem;
  font-weight: 600;
}

.image-export-option {
  display: grid;
  width: 100%;
  gap: .15rem;
  padding: .65rem;
  border: 0;
  border-radius: var(--tblr-border-radius-sm);
  color: var(--tblr-body-color);
  background: transparent;
  text-align: left;
}

.image-export-option:hover,
.image-export-option:focus-visible {
  color: var(--tblr-body-color);
  background: var(--tblr-bg-surface-secondary);
  outline: none;
}

.image-export-option:focus-visible {
  box-shadow: inset 0 0 0 2px var(--tblr-primary);
}

.image-export-option strong,
.image-export-option small {
  display: block;
}

.image-export-option small {
  color: var(--tblr-secondary-color);
  font-size: .72rem;
}

.customer-query-body.theme-glass .image-export-menu {
  background: rgba(255, 255, 255, .86);
  border-color: rgba(103, 126, 148, .24);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
}

.customer-query-body.theme-primer .image-export-menu {
  background: #fff;
  border-color: #d0d7de;
  box-shadow: 0 8px 24px rgba(140, 149, 159, .2);
}

.customer-query-body.theme-carbon .image-export-menu,
.customer-query-body.theme-carbon .image-export-option {
  border-radius: 0;
}

.customer-query-body.theme-carbon .image-export-menu {
  background: #fff;
  border-color: #8d8d8d;
  box-shadow: none;
}

.customer-query-body.theme-midnight .image-export-menu {
  color: #e6edf3;
  background: #161b22;
  border-color: #30363d;
  box-shadow: 0 16px 42px rgba(0, 0, 0, .36);
}

.customer-query-body.theme-midnight .image-export-option {
  color: #e6edf3;
}

.customer-query-body.theme-midnight .image-export-option:hover,
.customer-query-body.theme-midnight .image-export-option:focus-visible {
  color: #fff;
  background: #21262d;
}

.customer-query-body.theme-primer {
  --tblr-primary: #0969da;
  --tblr-primary-rgb: 9, 105, 218;
  --tblr-body-bg: #f6f8fa;
  --tblr-body-color: #1f2328;
  --tblr-secondary-color: #656d76;
  --tblr-bg-surface: #fff;
  --tblr-bg-surface-secondary: #f6f8fa;
  --tblr-border-color: #d0d7de;
  --tblr-border-radius: 6px;
  --tblr-border-radius-sm: 4px;
  min-height: 100dvh;
  color: #1f2328;
  background-color: #f6f8fa;
  background-image: linear-gradient(rgba(208, 215, 222, .32) 1px, transparent 1px), linear-gradient(90deg, rgba(208, 215, 222, .32) 1px, transparent 1px);
  background-size: 32px 32px;
}

.customer-query-body.theme-primer .auth-screen,
.customer-query-body.theme-primer .page-wrapper {
  background: transparent;
}

.customer-query-body.theme-primer .customer-navbar {
  position: sticky;
  z-index: 20;
  top: 0;
  background: rgba(255, 255, 255, .96);
  border-bottom-color: #d0d7de;
  box-shadow: 0 1px 0 rgba(31, 35, 40, .04);
}

.customer-query-body.theme-primer .customer-brand-mark {
  color: #fff;
  background: #24292f;
  border-color: #24292f;
  border-radius: 6px;
}

.customer-query-body.theme-primer .auth-screen .card,
.customer-query-body.theme-primer .query-card,
.customer-query-body.theme-primer .results-card,
.customer-query-body.theme-primer .customer-menu-panel {
  background: #fff;
  border-color: #d0d7de;
  box-shadow: 0 1px 0 rgba(31, 35, 40, .04);
}

.customer-query-body.theme-primer .auth-screen .card,
.customer-query-body.theme-primer .query-card {
  border-top: 3px solid #0969da;
}

.customer-query-body.theme-primer .auth-purchase-link,
.customer-query-body.theme-primer .batch-sidebar,
.customer-query-body.theme-primer .results-toolbar,
.customer-query-body.theme-primer .results-table thead th {
  background: #f6f8fa;
}

.customer-query-body.theme-primer .query-input:focus,
.customer-query-body.theme-primer .form-control:focus,
.customer-query-body.theme-primer .form-select:focus {
  border-color: #0969da;
  box-shadow: 0 0 0 3px rgba(9, 105, 218, .15);
}

.customer-query-body.theme-primer .batch-item.active {
  color: #0969da;
  background: #ddf4ff;
  border-color: #54aeff;
  box-shadow: inset 3px 0 0 #0969da;
}

.customer-query-body.theme-primer .customer-announcement {
  color: #0550ae;
  background: #ddf4ff;
  border-color: #54aeff;
}

.customer-query-body.theme-primer .results-table tbody tr:hover {
  background: #f6f8fa;
}

.customer-query-body.theme-carbon {
  --tblr-primary: #0f62fe;
  --tblr-primary-rgb: 15, 98, 254;
  --tblr-body-bg: #f4f4f4;
  --tblr-body-color: #161616;
  --tblr-secondary-color: #525252;
  --tblr-bg-surface: #fff;
  --tblr-bg-surface-secondary: #e8e8e8;
  --tblr-border-color: #c6c6c6;
  --tblr-border-radius: 0;
  --tblr-border-radius-sm: 0;
  min-height: 100dvh;
  color: #161616;
  background: #f4f4f4;
}

.customer-query-body.theme-carbon .auth-screen {
  background: linear-gradient(180deg, #161616 0 34%, #f4f4f4 34%);
}

.customer-query-body.theme-carbon .page-wrapper {
  background: #f4f4f4;
}

.customer-query-body.theme-carbon .customer-navbar {
  background: #161616;
  border: 0;
}

.customer-query-body.theme-carbon .customer-navbar,
.customer-query-body.theme-carbon .customer-navbar .text-secondary,
.customer-query-body.theme-carbon .customer-navbar .btn {
  color: #f4f4f4 !important;
}

.customer-query-body.theme-carbon .customer-brand-mark {
  color: #fff;
  background: #0f62fe;
  border-color: #0f62fe;
  border-radius: 0;
}

.customer-query-body.theme-carbon .auth-screen .card,
.customer-query-body.theme-carbon .query-card,
.customer-query-body.theme-carbon .results-card,
.customer-query-body.theme-carbon .customer-menu-panel {
  background: #fff;
  border-color: #c6c6c6;
  border-radius: 0;
  box-shadow: none;
}

.customer-query-body.theme-carbon .auth-screen .card,
.customer-query-body.theme-carbon .query-card {
  border-top: 4px solid #0f62fe;
}

.customer-query-body.theme-carbon .card-header,
.customer-query-body.theme-carbon .results-header,
.customer-query-body.theme-carbon .batch-sidebar,
.customer-query-body.theme-carbon .results-toolbar,
.customer-query-body.theme-carbon .results-table thead th {
  background: #e8e8e8;
  border-color: #c6c6c6;
}

.customer-query-body.theme-carbon .btn,
.customer-query-body.theme-carbon .form-control,
.customer-query-body.theme-carbon .form-select,
.customer-query-body.theme-carbon .auth-purchase-link,
.customer-query-body.theme-carbon .batch-item {
  border-radius: 0;
}

.customer-query-body.theme-carbon .form-control,
.customer-query-body.theme-carbon .form-select {
  background-color: #f4f4f4;
  border-color: transparent transparent #8d8d8d;
}

.customer-query-body.theme-carbon .form-control:focus,
.customer-query-body.theme-carbon .form-select:focus {
  background-color: #fff;
  border-color: #0f62fe;
  box-shadow: inset 0 0 0 1px #0f62fe;
}

.customer-query-body.theme-carbon .btn-primary {
  background: #0f62fe;
  border-color: #0f62fe;
}

.customer-query-body.theme-carbon .btn-primary:hover,
.customer-query-body.theme-carbon .btn-primary:focus-visible {
  background: #0353e9;
  border-color: #0353e9;
}

.customer-query-body.theme-carbon .batch-item.active {
  color: #161616;
  background: #fff;
  border-color: #0f62fe;
  box-shadow: inset 4px 0 0 #0f62fe;
}

.customer-query-body.theme-carbon .customer-announcement {
  color: #004144;
  background: #d9fbfb;
  border-color: #007d79;
  border-radius: 0;
}

.customer-query-body.theme-carbon .results-table tbody tr:hover {
  background: #e8e8e8;
}

.customer-query-body.theme-midnight {
  --tblr-primary: #2f81f7;
  --tblr-primary-rgb: 47, 129, 247;
  --tblr-body-bg: #0d1117;
  --tblr-body-color: #e6edf3;
  --tblr-secondary-color: #8b949e;
  --tblr-bg-surface: #161b22;
  --tblr-bg-surface-secondary: #0d1117;
  --tblr-border-color: #30363d;
  --tblr-border-radius: 6px;
  --tblr-border-radius-sm: 4px;
  min-height: 100dvh;
  color: #e6edf3;
  background-color: #0d1117;
  background-image: linear-gradient(rgba(48, 54, 61, .18) 1px, transparent 1px), linear-gradient(90deg, rgba(48, 54, 61, .18) 1px, transparent 1px);
  background-size: 32px 32px;
}

.customer-query-body.theme-midnight .auth-screen,
.customer-query-body.theme-midnight .page-wrapper {
  color: #e6edf3;
  background: transparent;
}

.customer-query-body.theme-midnight .customer-navbar {
  position: sticky;
  z-index: 20;
  top: 0;
  background: #010409;
  border-bottom-color: #30363d;
}

.customer-query-body.theme-midnight .customer-brand-mark {
  color: #fff;
  background: #2f81f7;
  border-color: #2f81f7;
}

.customer-query-body.theme-midnight .navbar-brand,
.customer-query-body.theme-midnight .page-title,
.customer-query-body.theme-midnight .card-title,
.customer-query-body.theme-midnight .form-label,
.customer-query-body.theme-midnight .batch-item,
.customer-query-body.theme-midnight .table,
.customer-query-body.theme-midnight .customer-menu-panel .dropdown-item {
  color: #e6edf3;
}

.customer-query-body.theme-midnight .text-secondary,
.customer-query-body.theme-midnight .form-hint,
.customer-query-body.theme-midnight .batch-item-meta,
.customer-query-body.theme-midnight .auth-purchase-note,
.customer-query-body.theme-midnight .auth-purchase-price {
  color: #8b949e !important;
}

.customer-query-body.theme-midnight .auth-screen .card,
.customer-query-body.theme-midnight .query-card,
.customer-query-body.theme-midnight .results-card,
.customer-query-body.theme-midnight .customer-menu-panel {
  color: #e6edf3;
  background: #161b22;
  border-color: #30363d;
  box-shadow: 0 16px 42px rgba(0, 0, 0, .28);
}

.customer-query-body.theme-midnight .auth-screen .card,
.customer-query-body.theme-midnight .query-card {
  border-top: 3px solid #2f81f7;
}

.customer-query-body.theme-midnight .card-header,
.customer-query-body.theme-midnight .results-header,
.customer-query-body.theme-midnight .batch-sidebar,
.customer-query-body.theme-midnight .results-toolbar,
.customer-query-body.theme-midnight .results-table-wrap,
.customer-query-body.theme-midnight .results-card .card-footer,
.customer-query-body.theme-midnight .results-table {
  color: #e6edf3;
  background: #161b22;
  border-color: #30363d;
}

.customer-query-body.theme-midnight .results-table thead th {
  color: #c9d1d9;
  background: #0d1117;
  border-color: #30363d;
}

.customer-query-body.theme-midnight .results-table td {
  color: #e6edf3;
  border-color: #21262d;
}

.customer-query-body.theme-midnight .form-control,
.customer-query-body.theme-midnight .form-select,
.customer-query-body.theme-midnight .auth-purchase-link {
  color: #e6edf3;
  background-color: #0d1117;
  border-color: #30363d;
}

.customer-query-body.theme-midnight .form-control::placeholder {
  color: #6e7681;
}

.customer-query-body.theme-midnight .form-control:focus,
.customer-query-body.theme-midnight .form-select:focus {
  color: #e6edf3;
  background-color: #0d1117;
  border-color: #2f81f7;
  box-shadow: 0 0 0 3px rgba(47, 129, 247, .18);
}

.customer-query-body.theme-midnight .btn-outline-secondary {
  color: #c9d1d9;
  border-color: #484f58;
}

.customer-query-body.theme-midnight .btn-outline-secondary:hover,
.customer-query-body.theme-midnight .btn-outline-secondary:focus-visible {
  color: #fff;
  background: #30363d;
  border-color: #8b949e;
}

.customer-query-body.theme-midnight .batch-item:hover {
  background: #21262d;
}

.customer-query-body.theme-midnight .batch-item.active {
  color: #fff;
  background: #1f6feb;
  border-color: #58a6ff;
}

.customer-query-body.theme-midnight .customer-announcement {
  color: #a5d6ff;
  background: #0c2d4a;
  border-color: #1f6feb;
}

.customer-query-body.theme-midnight #expiryWarning {
  color: #f2cc60;
  background: #322b15;
  border-color: #9e6a03;
}

.customer-query-body.theme-midnight .clear-confirm {
  color: #e6edf3;
  background: #21262d;
  border-color: #30363d;
}

.customer-query-body.theme-midnight .progress {
  background: #30363d;
}

.customer-query-body.theme-midnight .results-table tbody tr:hover {
  background: #21262d;
}

.customer-query-body.theme-linecard {
  --tblr-primary: #206bc4;
  --tblr-primary-rgb: 32, 107, 196;
  --tblr-body-bg: #f3f6fa;
  --tblr-body-color: #172033;
  --tblr-secondary-color: #53657d;
  --tblr-bg-surface: #fff;
  --tblr-bg-surface-secondary: #f7f9fc;
  --tblr-border-color: #d8e0eb;
  --tblr-border-radius: 12px;
  --tblr-border-radius-sm: 8px;
  min-height: 100dvh;
  color: #172033;
  background:
    linear-gradient(180deg, #f8fafd 0, #f2f5f9 42%, #eef2f7 100%);
}

.customer-query-body.theme-linecard .auth-screen,
.customer-query-body.theme-linecard .page-wrapper {
  background: transparent;
}

.customer-query-body.theme-linecard .customer-navbar {
  position: sticky;
  z-index: 20;
  top: 0;
  background: rgba(255, 255, 255, .97);
  border-bottom-color: #d8e0eb;
  box-shadow: 0 8px 24px rgba(23, 32, 51, .06);
}

.customer-query-body.theme-linecard .customer-brand-mark {
  color: #fff;
  background: #172033;
  border-color: #172033;
  border-radius: 10px;
  letter-spacing: .08em;
}

.customer-query-body.theme-linecard .auth-screen .card,
.customer-query-body.theme-linecard .query-card,
.customer-query-body.theme-linecard .results-card,
.customer-query-body.theme-linecard .customer-menu-panel {
  background: #fff;
  border-color: #d8e0eb;
  box-shadow: 0 16px 44px rgba(29, 39, 59, .08);
}

.customer-query-body.theme-linecard .auth-screen .card,
.customer-query-body.theme-linecard .query-card {
  border-top: 4px solid #206bc4;
}

.customer-query-body.theme-linecard .page-pretitle {
  color: #206bc4;
  letter-spacing: .12em;
}

.customer-query-body.theme-linecard .results-header,
.customer-query-body.theme-linecard .results-toolbar,
.customer-query-body.theme-linecard .batch-sidebar,
.customer-query-body.theme-linecard .results-table thead th {
  background: #f7f9fc;
  border-color: #d8e0eb;
}

.customer-query-body.theme-linecard .results-table {
  min-width: 1420px;
}

.customer-query-body.theme-linecard .results-table thead th {
  padding-top: 1rem;
  padding-bottom: 1rem;
  color: #53657d;
  font-size: .78rem;
  font-weight: 800;
}

.customer-query-body.theme-linecard .results-table td {
  padding-top: 1.35rem;
  padding-bottom: 1.35rem;
  border-color: #e3e9f2;
  vertical-align: top;
}

.customer-query-body.theme-linecard .results-table td.sn {
  color: #131c2f;
  font-size: .98rem;
  font-weight: 800;
  letter-spacing: .02em;
}

.customer-query-body.theme-linecard .results-table tbody tr:nth-child(odd):not(.comparison-row) {
  background: #fbfdff;
}

.customer-query-body.theme-linecard .results-table tbody tr:hover:not(.comparison-row) {
  background: #eef6ff;
}

.customer-query-body.theme-linecard .badge {
  min-height: 1.75rem;
  padding: .35rem .65rem;
  border-radius: 8px;
  box-shadow: 0 5px 14px rgba(23, 32, 51, .08);
}

.customer-query-body.theme-linecard .query-source,
.customer-query-body.theme-linecard .batch-item-meta,
.customer-query-body.theme-linecard .batch-item-note {
  color: #53657d;
}

.customer-query-body.theme-linecard .batch-item.active {
  color: #185aa6;
  background: #edf5ff;
  border-color: #bdd7f6;
  box-shadow: inset 4px 0 0 #206bc4;
}

.customer-query-body.theme-linecard .comparison-toggle {
  border-color: #d8e0eb;
  background: #fff;
}

.customer-query-body.theme-batchcard {
  --tblr-primary: #185aa6;
  --tblr-primary-rgb: 24, 90, 166;
  --tblr-body-bg: #eef4fb;
  --tblr-body-color: #172033;
  --tblr-secondary-color: #53657d;
  --tblr-bg-surface: #fff;
  --tblr-bg-surface-secondary: #f3f7fc;
  --tblr-border-color: #d3deeb;
  --tblr-border-radius: 14px;
  --tblr-border-radius-sm: 10px;
  min-height: 100dvh;
  color: #172033;
  background:
    radial-gradient(circle at 8% 8%, rgba(32, 107, 196, .12), transparent 28%),
    linear-gradient(180deg, #f8fbff 0, #eef4fb 100%);
}

.customer-query-body.theme-batchcard .auth-screen,
.customer-query-body.theme-batchcard .page-wrapper {
  background: transparent;
}

.customer-query-body.theme-batchcard .customer-navbar {
  background: #fff;
  border-bottom-color: #d3deeb;
  box-shadow: 0 12px 30px rgba(24, 46, 75, .08);
}

.customer-query-body.theme-batchcard .customer-brand-mark {
  color: #fff;
  background: #185aa6;
  border-color: #185aa6;
  border-radius: 12px;
}

.customer-query-body.theme-batchcard .auth-screen .card,
.customer-query-body.theme-batchcard .query-card,
.customer-query-body.theme-batchcard .results-card,
.customer-query-body.theme-batchcard .customer-menu-panel {
  background: #fff;
  border-color: #d3deeb;
  box-shadow: 0 18px 50px rgba(24, 46, 75, .1);
}

.customer-query-body.theme-batchcard .query-card {
  overflow: hidden;
}

.customer-query-body.theme-batchcard .query-card .card-header,
.customer-query-body.theme-batchcard .results-header {
  background: #fff;
  border-color: #e0e7f1;
}

.customer-query-body.theme-batchcard .batch-results-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  min-height: 540px;
}

.customer-query-body.theme-batchcard .batch-sidebar {
  border-right: 1px solid #d3deeb;
  border-bottom: 0;
  background: #f6f9fd;
}

.customer-query-body.theme-batchcard .batch-sidebar-head {
  min-height: 60px;
  padding: 1rem;
  background: #fff;
}

.customer-query-body.theme-batchcard .batch-list {
  display: grid;
  gap: .75rem;
  max-height: 520px;
  padding: .85rem;
  overflow-x: hidden;
  overflow-y: auto;
}

.customer-query-body.theme-batchcard .batch-item {
  flex: none;
  width: 100%;
  padding: .95rem;
  background: #fff;
  border-color: #e0e7f1;
  border-radius: 12px;
}

.customer-query-body.theme-batchcard .batch-item:hover {
  border-color: #bdd7f6;
  background: #fbfdff;
}

.customer-query-body.theme-batchcard .batch-item.active {
  color: #185aa6;
  background: #edf5ff;
  border-color: #9ec5f3;
  box-shadow: inset 4px 0 0 #185aa6, 0 10px 22px rgba(24, 90, 166, .1);
}

.customer-query-body.theme-batchcard .results-toolbar {
  grid-template-columns: minmax(220px, 1fr) 150px auto auto;
  background: #fff;
  border-color: #e0e7f1;
}

.customer-query-body.theme-batchcard .results-table-wrap,
.customer-query-body.theme-batchcard .results-table,
.customer-query-body.theme-batchcard .results-card .card-footer {
  background: #fff;
}

.customer-query-body.theme-batchcard .results-table {
  border-collapse: separate;
  border-spacing: 0 10px;
  min-width: 1320px;
  padding: 0 .65rem;
}

.customer-query-body.theme-batchcard .results-table thead th {
  color: #53657d;
  background: transparent;
  border-bottom: 0;
}

.customer-query-body.theme-batchcard .results-table tbody tr:not(.comparison-row) td {
  background: #fbfdff;
  border-top: 1px solid #e0e7f1;
  border-bottom: 1px solid #e0e7f1;
}

.customer-query-body.theme-batchcard .results-table tbody tr:not(.comparison-row) td:first-child {
  border-left: 1px solid #e0e7f1;
  border-radius: 12px 0 0 12px;
}

.customer-query-body.theme-batchcard .results-table tbody tr:not(.comparison-row) td:last-child {
  border-right: 1px solid #e0e7f1;
  border-radius: 0 12px 12px 0;
}

.customer-query-body.theme-batchcard .results-table tbody tr:hover:not(.comparison-row) td {
  border-color: #bdd7f6;
  background: #f5faff;
}

.customer-query-body.theme-batchcard .results-table td.sn {
  color: #172033;
  font-weight: 800;
}

.customer-query-body.theme-batchcard .result-badge-stack .badge {
  border-radius: 999px;
}

.customer-query-body.theme-batchcard .comparison-row td {
  border-radius: 12px;
  background: #f6f9fd;
}

.customer-query-body.theme-compact {
  --tblr-primary: #243044;
  --tblr-primary-rgb: 36, 48, 68;
  --tblr-body-bg: #f3f5f8;
  --tblr-body-color: #1f2937;
  --tblr-secondary-color: #667085;
  --tblr-bg-surface: #fff;
  --tblr-bg-surface-secondary: #f5f7fa;
  --tblr-border-color: #d7dee8;
  --tblr-border-radius: 4px;
  --tblr-border-radius-sm: 3px;
  min-height: 100dvh;
  color: #1f2937;
  background: #f3f5f8;
}

.customer-query-body.theme-compact .auth-screen,
.customer-query-body.theme-compact .page-wrapper {
  background: transparent;
}

.customer-query-body.theme-compact .customer-navbar {
  min-height: 52px;
  background: #243044;
  border: 0;
}

.customer-query-body.theme-compact .customer-navbar,
.customer-query-body.theme-compact .customer-navbar .text-secondary,
.customer-query-body.theme-compact .customer-navbar .btn {
  color: #fff !important;
}

.customer-query-body.theme-compact .customer-brand-mark {
  color: #243044;
  background: #fff;
  border-color: #fff;
  border-radius: 4px;
}

.customer-query-body.theme-compact .page-header {
  padding-top: 1rem;
  padding-bottom: .65rem;
}

.customer-query-body.theme-compact .page-title {
  font-size: 1.25rem;
}

.customer-query-body.theme-compact .auth-screen .card,
.customer-query-body.theme-compact .query-card,
.customer-query-body.theme-compact .results-card,
.customer-query-body.theme-compact .customer-menu-panel {
  border-color: #d7dee8;
  border-radius: 4px;
  background: #fff;
  box-shadow: none;
}

.customer-query-body.theme-compact .card-header,
.customer-query-body.theme-compact .card-body,
.customer-query-body.theme-compact .results-header,
.customer-query-body.theme-compact .results-toolbar,
.customer-query-body.theme-compact .batch-sidebar-head,
.customer-query-body.theme-compact .card-footer {
  padding: .75rem 1rem;
}

.customer-query-body.theme-compact .query-input {
  min-height: 130px;
}

.customer-query-body.theme-compact .batch-list {
  gap: .35rem;
  padding: .45rem;
}

.customer-query-body.theme-compact .batch-item {
  flex-basis: 210px;
  width: 210px;
  padding: .55rem .65rem;
  border-radius: 4px;
}

.customer-query-body.theme-compact .batch-item.active {
  color: #172033;
  background: #eef2f7;
  border-color: #243044;
  box-shadow: inset 3px 0 0 #243044;
}

.customer-query-body.theme-compact .results-toolbar {
  grid-template-columns: minmax(220px, 1fr) 140px auto auto;
  gap: .5rem;
  min-height: 44px;
}

.customer-query-body.theme-compact .results-table {
  min-width: 1220px;
  font-size: .82rem;
}

.customer-query-body.theme-compact .results-table thead th {
  padding: .55rem .7rem;
  color: #667085;
  background: #eef2f7;
  border-color: #d7dee8;
  font-size: .72rem;
  font-weight: 800;
}

.customer-query-body.theme-compact .results-table td {
  padding: .58rem .7rem;
  border-color: #e3e8ef;
}

.customer-query-body.theme-compact .results-table td.sn {
  color: #111827;
  font-size: .78rem;
  font-weight: 800;
}

.customer-query-body.theme-compact .badge {
  min-height: 1.25rem;
  padding: .2rem .42rem;
  border-radius: 3px;
  font-size: .68rem;
}

.customer-query-body.theme-compact .result-badge-stack {
  gap: .2rem;
}

.customer-query-body.theme-compact .query-source {
  font-size: .65rem;
}

.customer-query-body.theme-compact .comparison-toggle {
  min-width: 58px;
  padding: .12rem .32rem;
  border-radius: 3px;
  font-size: .68rem;
}

.customer-query-body.theme-compact .comparison-row td {
  padding: .55rem .75rem;
}

.results-table-wrap {
  min-height: 370px;
}

.results-table {
  min-width: 1290px;
  margin: 0;
}

.results-table th,
.results-table td {
  white-space: nowrap;
}

.table-sort {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  min-height: 24px;
  padding: 0;
  border: 0;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  background: transparent;
  cursor: pointer;
}

.table-sort:hover,
.table-sort:focus-visible {
  color: var(--tblr-primary);
}

.table-sort:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--tblr-primary) 35%, transparent);
  outline-offset: 3px;
}

.table-sort-icon {
  min-width: 1em;
  color: var(--tblr-secondary);
  text-align: center;
}

.results-table td.sn {
  min-width: 165px;
  white-space: normal;
}

.serial-value,
.serial-meta {
  display: block;
}

.serial-value {
  color: var(--tblr-body-color);
  font-family: var(--tblr-font-monospace);
  font-weight: 600;
  line-height: 1.35;
  white-space: nowrap;
}

.serial-meta {
  margin-top: .25rem;
  color: var(--tblr-secondary-color);
  font-family: var(--tblr-font-sans-serif);
  font-size: .7rem;
  font-weight: 400;
  line-height: 1.35;
  white-space: normal;
}

.serial-meta.is-history {
  color: #2563eb;
  font-weight: 550;
}

.serial-meta.is-stale {
  color: #b45309;
  font-weight: 600;
}

.results-table td.product-info-cell {
  min-width: 200px;
  white-space: normal;
  vertical-align: middle;
}

.results-table .result-column-title,
.results-table .result-column-hint {
  display: block;
}

.results-table .result-column-hint {
  margin-top: 3px;
  color: #8792a2;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.3;
}

.results-table .table-sort {
  display: inline-flex;
  width: auto;
  align-items: center;
  flex-wrap: nowrap;
  gap: 6px;
  text-align: left;
  white-space: nowrap;
}

.results-table th[data-result-column="warranty_activation"] {
  text-align: left;
}

.results-table th[data-result-column="warranty_activation"] .table-sort {
  display: flex;
  justify-content: flex-start;
  margin: 0;
}

.results-table th[data-result-column="warranty_activation"] .result-column-hint {
  text-align: left;
}

.results-table .table-sort .result-column-title {
  white-space: nowrap;
}

.results-table .table-sort-icon {
  flex: 0 0 auto;
  align-self: center;
  margin-left: 0;
}

.results-table .table-sort::after {
  display: none;
  content: none;
}

/* Keep desktop result columns compact instead of distributing empty space. */
@media (min-width: 901px) {
  .results-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
  }

  .results-table th,
  .results-table td {
    padding-left: .7rem;
    padding-right: .7rem;
  }

  .results-table th.result-select-cell,
  .results-table td.result-select-cell {
    width: 44px;
    min-width: 44px;
  }

  .results-table th[data-result-fixed="serial"],
  .results-table td.sn {
    width: 175px;
    min-width: 175px;
  }

  .results-table th[data-result-column="product_info"],
  .results-table td[data-result-column="product_info"] {
    width: 172px;
    min-width: 172px;
  }

  .results-table th[data-result-column="warranty_activation"],
  .results-table td[data-result-column="warranty_activation"] {
    width: 190px;
    min-width: 190px;
  }

  .results-table th[data-result-column="service_records"],
  .results-table td[data-result-column="service_records"] {
    width: 170px;
    min-width: 170px;
  }

  .results-table th[data-result-column="result"],
  .results-table td[data-result-column="result"] {
    width: 158px;
    min-width: 158px;
  }

  .results-table th[data-result-column="comparison"],
  .results-table td[data-result-column="comparison"] {
    width: 126px;
    min-width: 126px;
  }
}

.product-info-name,
.product-info-model {
  display: block;
}

.product-info-name {
  color: var(--tblr-body-color);
  font-weight: 700;
  line-height: 1.35;
}

.product-info-model {
  margin-top: .2rem;
  color: var(--tblr-secondary-color);
  font-size: .72rem;
  line-height: 1.35;
}

.result-select-cell {
  width: 44px;
  min-width: 44px;
  text-align: center;
}

.result-row-changed > td {
  background: color-mix(in srgb, var(--tblr-warning) 8%, var(--tblr-bg-surface));
}

.result-badge-stack {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .35rem;
}

.result-status-content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}

.session-loading {
  display: grid;
  min-height: 100svh;
  place-content: center;
  justify-items: center;
  gap: .8rem;
  color: var(--tblr-secondary-color);
  font-size: .92rem;
}

.session-loading[hidden] {
  display: none;
}

.session-loading-mark {
  width: 1.35rem;
  height: 1.35rem;
  border: 2px solid color-mix(in srgb, var(--tblr-primary) 20%, transparent);
  border-top-color: var(--tblr-primary);
  border-radius: 50%;
  animation: session-loading-spin .7s linear infinite;
}

@keyframes session-loading-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .session-loading-mark { animation: none; }
}

/* Keep the desktop workbench in one viewport so only the result list scrolls. */
@media (min-width: 768px) {
  html:has(body.customer-query-body),
  body.customer-query-body {
    overflow: hidden;
  }

  body.customer-query-body .page-wrapper,
  body.customer-query-body .page-body,
  body.customer-query-body .page-body > .container-xl,
  body.customer-query-body .customer-workspace {
    min-height: 0;
  }

  body.customer-query-body .page-wrapper {
    height: calc(100dvh - 64px);
    overflow: hidden;
  }

  body.customer-query-body .page-body,
  body.customer-query-body .page-body > .container-xl {
    height: 100%;
    overflow: hidden;
  }

  body.customer-query-body .customer-workspace,
  body.customer-query-body .customer-results-column,
  body.customer-query-body .results-card,
  body.customer-query-body .batch-results-layout,
  body.customer-query-body .results-main {
    min-height: 0;
  }

  body.customer-query-body .customer-workspace,
  body.customer-query-body .customer-results-column,
  body.customer-query-body .results-card,
  body.customer-query-body .results-main {
    height: 100%;
  }

  body.customer-query-body .results-card,
  body.customer-query-body .results-main {
    display: flex;
    flex-direction: column;
  }

  body.customer-query-body .batch-results-layout {
    flex: 1 1 auto;
    overflow: hidden;
  }

  body.customer-query-body .results-table-wrap {
    max-height: none;
    min-height: 0;
    flex: 1 1 auto;
  }
}

@media (max-width: 767.98px) {
  body.customer-query-body,
  body.customer-query-body .page-wrapper,
  body.customer-query-body .page-body,
  body.customer-query-body .page-body > .container-xl,
  body.customer-query-body .customer-workspace,
  body.customer-query-body .customer-results-column,
  body.customer-query-body .results-card,
  body.customer-query-body .results-main {
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  body.customer-query-body .results-card,
  body.customer-query-body .results-main {
    display: block;
  }

  body.customer-query-body .batch-results-layout,
  body.customer-query-body .results-table-wrap {
    overflow: visible;
  }
}

.result-missing {
  color: var(--tblr-secondary-color);
  font-style: italic;
}

body.share-dialog-open {
  overflow: hidden;
}

.share-dialog[hidden] {
  display: none !important;
}

.share-dialog {
  position: fixed;
  z-index: 1050;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.share-dialog-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  background: rgba(12, 22, 35, .58);
  border: 0;
}

.share-dialog-panel {
  position: relative;
  width: min(720px, 100%);
  max-height: min(820px, calc(100vh - 2rem));
  overflow: auto;
  background: var(--tblr-bg-surface);
  border: 1px solid var(--tblr-border-color);
  border-radius: 8px;
  box-shadow: 0 24px 64px rgba(15, 27, 43, .28);
}

.share-dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.4rem;
  border-bottom: 1px solid var(--tblr-border-color);
}

.share-dialog-header h2 {
  margin: .2rem 0 0;
  font-size: 1.25rem;
}

.share-dialog-body {
  padding: 1.4rem;
}

.customer-announcement {
  align-items: center;
  gap: .75rem;
}

.announcement-dialog-panel {
  width: min(620px, 100%);
}

.announcement-dialog-copy {
  max-height: min(60vh, 520px);
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--tblr-body-color);
  line-height: 1.75;
}

.announcement-dialog-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 1.25rem;
}

.group-qr-dialog-panel { width: min(430px, 100%); }
.group-qr-body { text-align: center; }
.group-qr-body img { display: block; width: min(320px, 100%); margin: 0 auto; }
.group-qr-admin-preview { width: 220px; max-width: 100%; border: 1px solid var(--tblr-border-color); border-radius: 8px; }

.share-scope {
  padding: .8rem 1rem;
  color: var(--tblr-primary-text-emphasis, #164c91);
  background: var(--tblr-primary-lt, #e9f2ff);
  border-left: 3px solid var(--tblr-primary);
  font-size: .86rem;
  font-weight: 700;
}

.share-create-row {
  display: grid;
  grid-template-columns: auto minmax(130px, 180px) auto;
  align-items: center;
  gap: .75rem;
  margin-top: 1rem;
}

.share-create-row label {
  margin: 0;
  font-size: .82rem;
  font-weight: 700;
}

.share-security-note,
.share-status {
  margin-top: .75rem;
  font-size: .76rem;
  line-height: 1.6;
}

.share-security-note {
  color: var(--tblr-warning-text-emphasis, #8a5a00);
}

.share-created {
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--tblr-border-color);
}

.share-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--tblr-border-color);
}

.share-list-header h3 {
  margin: 0;
  font-size: .95rem;
}

.share-list {
  display: grid;
  gap: .55rem;
  margin-top: .75rem;
}

.share-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .75rem .85rem;
  background: var(--tblr-bg-surface-secondary);
  border: 1px solid var(--tblr-border-color);
  border-radius: 6px;
}

.share-list-item strong,
.share-list-item small {
  display: block;
}

.share-list-item small {
  margin-top: .2rem;
  color: var(--tblr-secondary-color);
  font-size: .73rem;
}

.share-list-empty {
  padding: 1.2rem;
  color: var(--tblr-secondary-color);
  background: var(--tblr-bg-surface-secondary);
  border: 1px dashed var(--tblr-border-color);
  border-radius: 6px;
  text-align: center;
  font-size: .8rem;
}

.query-time-value,
.query-source {
  display: block;
}

.query-source {
  margin-top: .15rem;
  color: var(--tblr-secondary-color);
  font-size: .7rem;
}

.query-source.is-history {
  color: var(--tblr-warning);
}

.comparison-toggle {
  min-width: 72px;
  padding: .2rem .45rem;
  color: var(--tblr-secondary-color);
  font-size: .75rem;
  background: transparent;
  border: 1px solid var(--tblr-border-color);
  border-radius: var(--tblr-border-radius-sm);
}

.comparison-toggle.has-change {
  color: var(--tblr-warning-text-emphasis, #8a5a00);
  background: var(--tblr-warning-lt, #fff4cc);
  border-color: color-mix(in srgb, var(--tblr-warning) 35%, var(--tblr-border-color));
}

.comparison-toggle:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--tblr-primary) 35%, transparent);
  outline-offset: 2px;
}

.result-empty {
  padding: 3rem 1rem;
}

.results-card.is-empty .batch-results-layout {
  min-height: 0;
}

.results-card.is-empty-no-batches .batch-sidebar,
.results-card.is-empty-no-batches .results-toolbar,
.results-card.is-empty-no-batches #resultsPagination {
  display: none;
}

.results-card.is-empty .results-table-wrap {
  width: 100%;
  min-height: 132px;
  overflow: visible;
}

.results-card.is-empty .results-table {
  display: none;
}

.results-card.is-empty .result-empty {
  display: flex;
  min-height: 132px;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  text-align: center;
}

.results-card.is-empty .result-empty .empty-header {
  margin-bottom: .45rem;
  color: var(--tblr-secondary-color);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.35;
}

.results-card.is-empty .result-empty .empty-title {
  max-width: 100%;
  margin: 0 auto;
  color: var(--tblr-secondary-color);
  font-size: .85rem;
  line-height: 1.5;
}

.results-card.is-empty-no-batches .batch-results-layout {
  display: block;
}

.results-card.is-empty-no-batches .results-main,
.results-card.is-empty-no-batches .results-table-wrap {
  width: 100%;
}

.results-card.is-empty-no-batches #resultsPagination {
  display: none;
}

.results-card.is-empty-no-batches .results-header {
  border-bottom: 0;
}

.advanced-filters {
  position: relative;
}

.advanced-filter-panel {
  position: absolute;
  z-index: 15;
  top: calc(100% + .35rem);
  right: 0;
  width: min(260px, calc(100vw - 2rem));
  padding: .75rem;
  background: var(--tblr-bg-surface);
  border: 1px solid var(--tblr-border-color);
  border-radius: var(--tblr-border-radius);
  box-shadow: 0 10px 24px rgba(35, 46, 60, .12);
}

.advanced-filter-panel .form-label {
  margin-bottom: .35rem;
  font-size: .75rem;
}

.purchase-body {
  background: var(--tblr-bg-surface-secondary);
}

.purchase-container {
  max-width: 1080px;
}

.purchase-plan,
.purchase-checkout {
  overflow: hidden;
}

.purchase-price {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
}

.purchase-price small {
  font-size: 1.25rem;
}

.purchase-package-options {
  display: grid;
  gap: .65rem;
}

.purchase-package-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .75rem;
  min-height: 72px;
  border: 1px solid #dce1e7;
  border-radius: 6px;
  background: #fff;
  padding: .8rem .9rem;
  cursor: pointer;
}

.purchase-package-option:has(input:checked) {
  border-color: #206bc4;
  box-shadow: 0 0 0 1px #206bc4;
}

.purchase-package-option input {
  width: 1rem;
  height: 1rem;
  accent-color: #206bc4;
}

.purchase-package-option span {
  min-width: 0;
}

.purchase-package-option strong,
.purchase-package-option small {
  display: block;
}

.purchase-package-option small {
  margin-top: .2rem;
  color: #667085;
}

.purchase-package-option b {
  color: #182433;
  font-size: 1rem;
  white-space: nowrap;
}

.purchase-mode .btn {
  min-height: 40px;
}

.purchase-fact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.purchase-fact span {
  color: var(--tblr-secondary-color);
}

.form-selectgroup-boxes .form-selectgroup-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
}

.payment-provider-copy {
  display: flex;
  flex-direction: column;
  gap: .15rem;
}

.qr-frame {
  display: inline-grid;
  place-items: center;
  width: 248px;
  height: 248px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--tblr-border-color);
  border-radius: var(--tblr-border-radius);
}

.payment-qr {
  display: block;
  width: 222px;
  height: 222px;
  object-fit: contain;
}

.payment-state {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-weight: 600;
}

.access-code {
  padding: 1rem;
  overflow-wrap: anywhere;
  background: var(--tblr-bg-surface-secondary);
  border: 1px dashed var(--tblr-border-color);
  border-radius: var(--tblr-border-radius);
  font-family: var(--tblr-font-monospace);
  font-size: 1.25rem;
  font-weight: 700;
}

.purchase-recovery-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.purchase-order-find {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: .5rem;
}

.purchase-order-table {
  min-width: 720px;
}

.purchase-order-id {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .customer-query-body.theme-glass .auth-screen .card,
  .customer-query-body.theme-glass .customer-navbar,
  .customer-query-body.theme-glass .customer-menu-panel,
  .customer-query-body.theme-glass .query-card,
  .customer-query-body.theme-glass .customer-announcement,
  .customer-query-body.theme-glass #expiryWarning,
  .customer-query-body.theme-glass .clear-confirm {
    background: #f8fbfc;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .customer-query-body.theme-glass .auth-screen .card,
  .customer-query-body.theme-glass .customer-navbar,
  .customer-query-body.theme-glass .customer-menu-panel,
  .customer-query-body.theme-glass .query-card,
  .customer-query-body.theme-glass .customer-announcement,
  .customer-query-body.theme-glass #expiryWarning,
  .customer-query-body.theme-glass .clear-confirm {
    background: #f8fbfc;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

@media (max-width: 767.98px) {
  .query-shape-blue {
    top: -72px;
    right: -150px;
    opacity: .72;
  }

  .query-shape-coral {
    left: -220px;
    opacity: .65;
  }

  .query-shape-teal,
  .query-shape-outline {
    opacity: .6;
  }

  .customer-query-body.theme-glass .auth-screen .card,
  .customer-query-body.theme-glass .customer-navbar,
  .customer-query-body.theme-glass .customer-menu-panel,
  .customer-query-body.theme-glass .query-card,
  .customer-query-body.theme-glass .customer-announcement,
  .customer-query-body.theme-glass #expiryWarning,
  .customer-query-body.theme-glass .clear-confirm {
    -webkit-backdrop-filter: blur(8px) saturate(120%);
    backdrop-filter: blur(8px) saturate(120%);
  }

  .purchase-container > .row {
    margin-right: 0;
    margin-left: 0;
  }

  .purchase-recovery-header {
    align-items: stretch;
    flex-direction: column;
  }

  .purchase-order-find {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .purchase-order-table {
    min-width: 0;
  }

  .purchase-order-table thead {
    display: none;
  }

  .purchase-order-table tbody,
  .purchase-order-table tr,
  .purchase-order-table td {
    display: block;
    width: 100%;
  }

  .purchase-order-table tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .75rem 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--tblr-border-color);
  }

  .purchase-order-table tr:last-child {
    border-bottom: 0;
  }

  .purchase-order-table td {
    padding: 0;
    border: 0;
  }

  .purchase-order-table td::before {
    display: block;
    margin-bottom: .2rem;
    color: var(--tblr-secondary-color);
    font-size: .75rem;
    font-weight: 600;
    content: attr(data-label);
  }

  .purchase-order-table td:first-child {
    grid-column: 1 / -1;
  }

  .purchase-order-table td:nth-child(4) {
    align-self: end;
  }

  .purchase-order-table td:last-child {
    align-self: end;
    text-align: right;
  }

  .purchase-order-id {
    max-width: 100%;
  }

  .customer-brand-copy {
    display: none;
  }

  .page-header .row {
    align-items: flex-start !important;
  }

  .page-header .col-auto {
    width: 100%;
  }

  .page-header .btn-list,
  .query-footer .btn-list,
  .results-header .btn-list,
  .clear-confirm .btn-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .query-footer {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .batch-details-grid {
    grid-template-columns: 1fr;
  }

  .query-progress-wrap {
    width: 100%;
    justify-self: stretch;
  }

  .query-options {
    align-items: flex-start;
    flex-direction: column;
    gap: .35rem;
  }

  .query-preview {
    align-items: flex-start;
    flex-direction: column;
    gap: .2rem;
  }

  .query-preview-details {
    text-align: left;
  }

  .results-header,
  .customer-announcement,
  .clear-confirm {
    align-items: stretch;
    flex-direction: column;
  }

  #appInitError {
    align-items: flex-start !important;
    flex-direction: column;
  }

  #appInitError .btn {
    width: 100%;
  }

  .results-toolbar {
    grid-template-columns: 1fr 130px;
  }

  .results-toolbar #resultSearch {
    grid-column: 1 / -1;
  }

  .results-toolbar #resultCount {
    grid-column: 1 / -1;
  }

  .customer-query-body.theme-batchcard .batch-results-layout {
    display: block;
  }

  .customer-query-body.theme-batchcard .batch-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--tblr-border-color);
  }

  .customer-query-body.theme-batchcard .batch-list {
    display: flex;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .customer-query-body.theme-batchcard .batch-item {
    flex: 0 0 230px;
    width: 230px;
  }

  .image-export-control,
  .image-export-control > .btn {
    width: 100%;
  }

  .image-export-menu {
    width: min(260px, calc(100vw - 2rem));
  }

  .share-dialog {
    align-items: end;
    padding: 0;
  }

  .share-dialog-panel {
    width: 100%;
    max-height: 92vh;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 8px 8px 0 0;
  }

  .share-dialog-header,
  .share-dialog-body {
    padding: 1rem;
  }

  .share-create-row {
    grid-template-columns: 1fr;
  }

  .share-created .input-group {
    display: grid;
    grid-template-columns: 1fr;
    gap: .5rem;
  }

  .share-created .input-group > * {
    width: 100%;
    border-radius: var(--tblr-border-radius) !important;
  }
}

button.is-loading {
  position: relative;
  cursor: wait;
}

button.is-loading::after {
  content: "";
  display: inline-block;
  width: .8rem;
  height: .8rem;
  margin-left: .45rem;
  vertical-align: -.1rem;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: dji-button-spin .65s linear infinite;
}

.customer-query-body.is-offline::before {
  content: "网络已断开，正在等待恢复";
  position: fixed;
  z-index: 1100;
  top: 0;
  left: 0;
  right: 0;
  padding: .45rem .75rem;
  color: #fff;
  background: #d63939;
  text-align: center;
  font-size: .85rem;
}

@keyframes dji-button-spin {
  to { transform: rotate(360deg); }
}

/* Desktop is the primary workflow: reduce vertical travel and clarify action weight. */
@media (min-width: 768px) {
  .customer-query-body .page-body {
    padding-top: 1rem;
  }

  .customer-query-body .query-card .card-body {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .customer-query-body .query-input {
    min-height: 112px;
  }

  .customer-query-body .query-options {
    margin-top: .45rem;
  }

  .customer-query-body .query-footer {
    gap: .75rem;
    margin-top: .75rem;
  }

  .customer-query-body .results-header {
    padding-top: .85rem;
    padding-bottom: .85rem;
  }

  .customer-query-body .results-toolbar {
    min-height: 52px;
    padding-top: .6rem;
    padding-bottom: .6rem;
  }

  .customer-query-body .customer-announcement,
  .customer-query-body #expiryWarning {
    padding-top: .65rem;
    padding-bottom: .65rem;
  }

  .customer-query-body .results-header .btn-list {
    gap: .45rem;
  }

  .customer-query-body .results-header #shareResults {
    color: var(--tblr-secondary-color);
    border-color: var(--tblr-border-color);
  }

  .customer-query-body .results-header #shareResults:hover,
  .customer-query-body .results-header #shareResults:focus-visible {
    color: var(--tblr-primary);
    border-color: var(--tblr-primary);
    background: var(--tblr-bg-surface-secondary);
  }

  .customer-query-body .customer-menu-panel {
    padding: .4rem;
  }
}

@media (max-width: 420px) {
  .customer-query-body.theme-glass {
    background-size: 24px 24px;
  }

  .customer-query-body.theme-glass .auth-screen .container-tight::before,
  .customer-query-body.theme-glass .page-header .container-xl::after {
    display: none;
  }

  .customer-navbar .container-xl {
    padding-right: .75rem;
    padding-left: .75rem;
  }

  .customer-menu-panel {
    position: fixed;
    top: 64px;
    right: .75rem;
    left: .75rem;
    width: auto;
  }

  .page-header .btn-list,
  .query-footer .btn-list,
  .clear-confirm .btn-list {
    grid-template-columns: 1fr;
  }

  .results-header .btn-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .results-more-actions,
  .results-more-actions > summary {
    width: 100%;
  }

  .results-more-actions .customer-menu-panel {
    right: 0;
    left: 0;
    width: auto;
  }

  .results-toolbar {
    grid-template-columns: 1fr;
  }

  .results-toolbar #resultCount {
    grid-column: auto;
  }

  .results-table {
    min-width: 860px;
  }

  .results-table th.result-select-cell,
  .results-table td.result-select-cell {
    position: sticky;
    z-index: 3;
    left: 0;
    background: var(--tblr-bg-surface);
  }

  .results-table th:nth-child(2),
  .results-table td:nth-child(2) {
    position: sticky;
    z-index: 2;
    left: 44px;
    background: var(--tblr-bg-surface);
    box-shadow: 6px 0 8px -8px rgba(35, 46, 60, .55);
  }

  .results-table thead th:nth-child(2) {
    z-index: 4;
    background: var(--tblr-bg-surface-secondary);
  }

  .results-table td.sn {
    min-width: 172px;
  }

  .batch-item {
    flex-basis: 205px;
  }

  .qr-frame {
    width: min(248px, 100%);
    height: auto;
    aspect-ratio: 1;
  }

  .payment-qr {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
  }
}

/* Final desktop polish: the result table is the primary work surface. */
@media (min-width: 768px) {
  .customer-query-body .batch-metadata-toggle {
    min-height: 38px;
    padding-top: .55rem;
    padding-bottom: .55rem;
  }

  .customer-query-body .batch-details-grid {
    gap: .75rem;
    margin-bottom: .75rem;
  }

  .customer-query-body .results-table tbody td {
    padding-top: .65rem !important;
    padding-bottom: .65rem !important;
  }

  .customer-query-body .results-table .serial-meta {
    margin-top: .15rem;
  }

  .customer-query-body .results-table .product-info-name {
    line-height: 1.25;
  }

  .customer-query-body .results-table .product-info-model {
    line-height: 1.2;
  }

  .customer-query-body .batch-item {
    padding-top: .6rem;
    padding-bottom: .6rem;
  }

  .customer-query-body .batch-item-meta {
    margin-top: .25rem;
  }

}


/* UI/UX Optimizations */
.form-selectgroup-input:focus + .form-selectgroup-label {
  border-color: var(--tblr-primary) !important;
  box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.25) !important;
}

.results-table td {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.btn, .nav-link, .batch-item, .form-selectgroup-label {
  transition: color .2s ease-in-out, background-color .2s ease-in-out,
    border-color .2s ease-in-out, box-shadow .2s ease-in-out, transform .2s ease-in-out;
}

/* Keep the customer workflow calm and task-focused across themes. */
.customer-query-body.theme-classic {
  --customer-work-border: #d9e0e7;
  --customer-work-muted: #f6f8fa;
  min-height: 100dvh;
  color: #1f2937;
  background: #f4f6f8;
}

.customer-query-body.theme-classic .customer-navbar {
  position: sticky;
  z-index: 20;
  top: 0;
  background: rgba(255, 255, 255, .96);
  border-bottom-color: var(--customer-work-border);
  box-shadow: 0 1px 0 rgba(31, 41, 55, .04);
}

.customer-query-body.theme-classic .query-backdrop,
.customer-query-body.theme-glass .query-backdrop {
  display: none;
}

.customer-query-body.theme-glass {
  background: #f4f6f8;
  background-image: none;
}

.customer-query-body.theme-glass .auth-screen .card::before,
.customer-query-body.theme-glass .query-card::before,
.customer-query-body.theme-glass .page-header .container-xl::after {
  display: none;
}

.customer-query-body.theme-classic .auth-screen,
.customer-query-body.theme-classic .page-wrapper,
.customer-query-body.theme-glass .auth-screen,
.customer-query-body.theme-glass .page-wrapper {
  background: transparent;
}

.customer-query-body.theme-classic .auth-screen .card,
.customer-query-body.theme-classic .query-card,
.customer-query-body.theme-classic .results-card,
.customer-query-body.theme-glass .auth-screen .card,
.customer-query-body.theme-glass .query-card,
.customer-query-body.theme-glass .results-card {
  border-color: #d9e0e7;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(31, 41, 55, .06);
}

.page-header {
  padding-top: 1rem;
  padding-bottom: .75rem;
}

.page-pretitle {
  display: none;
}

.page-title {
  letter-spacing: 0;
}

.batch-metadata {
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--tblr-border-color);
}

.batch-metadata-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 40px;
  padding: .5rem .75rem;
  color: var(--tblr-body-color);
  background: var(--tblr-bg-surface-secondary);
  border: 1px solid var(--tblr-border-color);
  border-radius: var(--tblr-border-radius-sm);
  cursor: pointer;
  list-style: none;
  position: relative;
}

.batch-metadata-toggle::-webkit-details-marker {
  display: none;
}

.batch-metadata-toggle::after {
  width: .45rem;
  height: .45rem;
  margin-left: auto;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  content: "";
  transform: rotate(45deg) translateY(-2px);
  transition: transform .18s ease;
}

.batch-metadata[open] .batch-metadata-toggle::after {
  transform: rotate(225deg) translate(-2px, -2px);
}

.batch-metadata .batch-details-grid {
  margin: .9rem 0 .1rem;
}

.query-input-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .45rem;
}

.query-input-actions {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}

.query-input-help {
  margin: -.2rem 0 .45rem;
}

.query-input {
  min-height: 112px;
  padding: .85rem 1rem;
}

.query-footer {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 1fr);
  align-items: center;
  gap: 1.25rem;
}

.query-footer .btn-list {
  align-items: center;
}

#query {
  min-width: 132px;
}

#retry:disabled {
  display: none;
}

.batch-results-layout {
  display: grid;
  grid-template-columns: minmax(210px, 250px) minmax(0, 1fr);
  min-height: 0;
}

.batch-sidebar {
  border-right: 1px solid var(--tblr-border-color);
  border-bottom: 0;
}

.batch-list {
  display: grid;
  max-height: 500px;
  padding: .6rem;
  overflow-x: hidden;
  overflow-y: auto;
}

.batch-item {
  width: 100%;
  padding: .7rem .75rem;
}

.batch-item + .batch-item {
  margin-top: .25rem;
}

.results-toolbar {
  grid-template-columns: minmax(220px, 1fr) 150px auto auto;
  background: var(--tblr-bg-surface);
}

.results-more-actions .customer-menu-panel,
.export-actions .customer-menu-panel {
  width: 220px;
}

.export-actions .customer-menu-panel {
  display: grid;
  gap: .2rem;
}

.export-actions .dropdown-item,
.export-actions .image-export-control > .dropdown-item {
  width: 100%;
  margin: 0;
  text-align: left;
}

.export-actions .image-export-control {
  display: block;
  width: 100%;
}

.export-actions .image-export-menu {
  top: -.35rem;
  right: auto;
  left: calc(100% + .4rem);
}

.results-table-wrap {
  scrollbar-color: #b7c1cc transparent;
  scrollbar-width: thin;
}

@media (max-width: 767.98px) {
  .page-header {
    padding-top: 1rem;
    padding-bottom: .75rem;
  }

  .query-input-head {
    align-items: flex-start;
    flex-direction: column;
    gap: .2rem;
  }

  .query-input-actions {
    width: 100%;
  }

  .query-input-actions .btn {
    flex: 1 1 0;
  }

  .query-footer {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .query-progress-wrap {
    width: 100%;
  }

  .batch-results-layout {
    display: block;
  }

  .batch-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--tblr-border-color);
  }

  .batch-list {
    display: flex;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .batch-item {
    flex: 0 0 220px;
    width: 220px;
  }

  .results-header .btn-list {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
  }

  .results-header .btn-list > .btn,
  .results-header .btn-list > .customer-menu {
    flex: 1 1 auto;
  }

  .results-header .btn-list > .customer-menu > summary {
    width: 100%;
  }

  .export-actions .image-export-menu {
    top: calc(100% + .35rem);
    right: 0;
    left: auto;
  }

  .export-actions .customer-menu-panel,
  .results-more-actions .customer-menu-panel {
    width: min(260px, calc(100vw - 2rem));
  }
}

@media (max-width: 420px) {
  .batch-metadata-toggle {
    align-items: flex-start;
    flex-direction: column;
    gap: .25rem;
  }

  .batch-metadata-toggle::after {
    position: absolute;
    right: 1.1rem;
    margin-top: .25rem;
  }

  .results-header .btn-list > .btn,
  .results-header .btn-list > .customer-menu {
    flex-basis: calc(50% - .25rem);
  }
}

.batch-search-wrap {
  padding: .6rem .6rem .15rem;
}

.batch-search-wrap .form-control {
  min-height: 34px;
}

.status-quick-filters {
  display: inline-flex;
  align-items: center;
  gap: .2rem;
  min-width: 0;
  padding: .2rem;
  background: var(--tblr-bg-surface-secondary);
  border: 1px solid var(--tblr-border-color);
  border-radius: var(--tblr-border-radius-sm);
}

.status-quick-filter {
  min-height: 40px;
  padding: .2rem .55rem;
  color: var(--tblr-secondary-color);
  background: transparent;
  border: 0;
  border-radius: var(--tblr-border-radius-sm);
  font-size: .76rem;
  line-height: 1.25;
  white-space: nowrap;
}

.status-quick-filter:hover,
.status-quick-filter:focus-visible {
  color: var(--tblr-body-color);
  background: var(--tblr-bg-surface);
}

.status-quick-filter.active {
  color: var(--tblr-primary);
  background: var(--tblr-bg-surface);
  box-shadow: 0 1px 3px rgba(35, 46, 60, .12);
  font-weight: 700;
}

/* Keep the legacy state available to the API without making it a primary customer filter. */
.status-quick-filter[data-status="official_pending"] {
  display: none;
}

.status-quick-filter:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--tblr-primary) 35%, transparent);
  outline-offset: -2px;
}

.result-cards {
  display: none;
}

.result-card {
  padding: 1rem;
  color: var(--tblr-body-color);
  background: var(--tblr-bg-surface);
  border: 1px solid var(--tblr-border-color);
  border-radius: var(--tblr-border-radius);
  box-shadow: 0 4px 14px rgba(35, 46, 60, .06);
}

.result-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
  padding-bottom: .8rem;
  border-bottom: 1px solid var(--tblr-border-color);
}

.result-card-identity {
  min-width: 0;
}

.result-card-serial,
.result-card-meta {
  display: block;
}

.result-card-serial {
  overflow-wrap: anywhere;
  color: var(--tblr-body-color);
  font-family: var(--tblr-font-monospace);
  font-size: .9rem;
  line-height: 1.4;
}

.result-card-meta {
  margin-top: .2rem;
  color: var(--tblr-secondary-color);
  font-size: .7rem;
  line-height: 1.4;
}

.result-card-meta.is-history {
  color: #2563eb;
  font-weight: 550;
}

.result-card-meta.is-stale {
  color: #b45309;
  font-weight: 600;
}

.result-card-select {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: .35rem;
  color: var(--tblr-secondary-color);
  font-size: .75rem;
  white-space: nowrap;
}

.result-card-field {
  display: grid;
  grid-template-columns: 5.2rem minmax(0, 1fr);
  gap: .75rem;
  padding: .65rem 0;
  border-bottom: 1px solid var(--tblr-border-color);
}

.result-card-field:last-child {
  border-bottom: 0;
}

.result-card-label {
  color: var(--tblr-secondary-color);
  font-size: .76rem;
  line-height: 1.55;
}

.result-card-value {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: .82rem;
  line-height: 1.55;
}

.result-card-value .product-info-name,
.result-card-value .product-info-model {
  display: block;
}

.result-card-changed {
  border-color: color-mix(in srgb, var(--tblr-warning) 45%, var(--tblr-border-color));
  box-shadow: inset 3px 0 0 var(--tblr-warning), 0 4px 14px rgba(35, 46, 60, .06);
}

.customer-query-body.theme-midnight .status-quick-filters,
.customer-query-body.theme-midnight .result-card {
  background: #161b22;
  border-color: #30363d;
}

.customer-query-body.theme-midnight .status-quick-filter:hover,
.customer-query-body.theme-midnight .status-quick-filter:focus-visible,
.customer-query-body.theme-midnight .status-quick-filter.active {
  color: #fff;
  background: #21262d;
}

.customer-query-body.theme-carbon .status-quick-filters,
.customer-query-body.theme-carbon .result-card {
  border-radius: 0;
}

.customer-query-body.theme-carbon .status-quick-filters {
  background: #e8e8e8;
}

.customer-query-body.theme-compact .status-quick-filter {
  min-height: 32px;
  padding: .15rem .42rem;
  font-size: .7rem;
}

.customer-query-body.theme-compact .result-card {
  border-radius: 4px;
  box-shadow: none;
}

.results-toolbar,
.customer-query-body.theme-batchcard .results-toolbar,
.customer-query-body.theme-compact .results-toolbar {
  grid-template-columns: minmax(220px, 1fr) minmax(250px, auto) 150px auto auto;
}

@media (max-width: 767.98px) {
  .results-toolbar,
  .customer-query-body.theme-batchcard .results-toolbar,
  .customer-query-body.theme-compact .results-toolbar {
    grid-template-columns: minmax(0, 1fr);
  }

  .results-toolbar #resultSearch,
  .results-toolbar #statusQuickFilters,
  .results-toolbar #resultStatus,
  .results-toolbar #changedOnly,
  .results-toolbar #resultCount {
    grid-column: 1 / -1;
  }

  .status-quick-filters {
    justify-content: stretch;
    width: 100%;
  }

  .status-quick-filter {
    flex: 1 1 0;
  }

  .results-table-wrap {
    min-height: 0;
    overflow: visible;
  }

  .results-table-wrap .results-table {
    display: none;
  }

  .result-cards {
    display: grid;
    gap: .65rem;
    padding: .75rem;
  }

  .result-card-field[data-result-column="result"] .result-card-value {
    min-width: 0;
  }

  .result-card {
    padding: .85rem;
    box-shadow: 0 2px 8px rgba(35, 46, 60, .05);
  }

  .result-card-field {
    grid-template-columns: 4.8rem minmax(0, 1fr);
    padding: .5rem 0;
  }

  .customer-query-body.theme-glass .result-card {
    background: rgba(255, 255, 255, .82);
    border-color: rgba(103, 126, 148, .22);
  }

  .customer-query-body.theme-batchcard .result-card {
    border-color: #e0e7f1;
    box-shadow: 0 8px 20px rgba(24, 46, 75, .08);
  }
}

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

/* Keep the customer table dense and operational, with minimal decoration. */
@media (min-width: 901px) {
  .customer-query-body .results-table {
    min-width: 0;
    width: max-content;
    table-layout: fixed;
    box-shadow: none;
    border-radius: 0;
  }

  .customer-query-body .results-table thead th {
    padding-top: .7rem;
    padding-bottom: .7rem;
    color: #667085;
    background: #fafbfc;
    border-bottom: 1px solid #e4e7ec;
    font-size: .75rem;
    font-weight: 600;
  }

  .customer-query-body .results-table tbody td {
    padding-top: .85rem;
    padding-bottom: .85rem;
    border-bottom: 1px solid #edf0f2;
    vertical-align: middle;
  }

  .customer-query-body .results-table tbody tr:hover td {
    background: #fbfcfd;
  }

  .customer-query-body .results-table .result-badge-stack {
    gap: .25rem;
  }

  .customer-query-body .results-table .badge {
    border-radius: 4px;
    font-size: .75rem;
    font-weight: 600;
  }
}

.warranty-activation-content {
  display: grid;
  gap: .28rem;
  min-width: 0;
}

.results-table .warranty-activation-label,
.results-table .service-record-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.warranty-activation-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: baseline;
  gap: .55rem;
  min-width: 0;
}

.warranty-activation-label {
  color: var(--tblr-secondary-color);
  font-size: .72rem;
}

.warranty-activation-value {
  min-width: 0;
  color: var(--tblr-body-color);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.warranty-activation-value.is-missing {
  color: var(--tblr-secondary-color);
}

.service-record-content {
  display: grid;
  gap: .28rem;
  min-width: 0;
}

.service-record-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: baseline;
  gap: .55rem;
  min-width: 0;
}

.service-record-label {
  color: var(--tblr-secondary-color);
  font-size: .72rem;
  white-space: nowrap;
}

.service-record-value {
  min-width: 0;
  color: var(--tblr-body-color);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.service-record-value.is-missing {
  color: var(--tblr-secondary-color);
}

/* Shared control scale: keep login, query, and purchase actions visually related. */
.customer-query-body .btn,
.purchase-body .btn {
  min-height: 38px;
  border-radius: 6px;
  font-weight: 600;
}

.customer-query-body .btn-sm,
.purchase-body .btn-sm {
  min-height: 32px;
  padding-top: .35rem;
  padding-bottom: .35rem;
  font-size: .8125rem;
}

.customer-query-body .btn-lg,
.purchase-body .btn-lg {
  min-height: 46px;
}

.customer-query-body .form-control,
.customer-query-body .form-select,
.purchase-body .form-control,
.purchase-body .form-select {
  border-radius: 6px;
}

.customer-query-body .query-progress-wrap .progress {
  min-height: 6px;
  overflow: hidden;
  border-radius: 999px;
}

.customer-query-body .query-progress-wrap .progress-bar {
  transition: width .35s ease;
}

.customer-query-body .card,
.purchase-body .card {
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(35, 46, 60, .05);
}

.customer-query-body .customer-menu-panel,
.purchase-body .customer-menu-panel {
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(35, 46, 60, .12);
}

.customer-query-body .dropdown-item,
.purchase-body .dropdown-item {
  min-height: 36px;
  border-radius: 4px;
}

.customer-query-body #changedOnly[aria-pressed="true"] {
  color: var(--tblr-primary);
  background: var(--tblr-bg-surface-secondary);
  font-weight: 700;
}

@media (max-width: 575.98px) {
  .customer-query-body .btn,
  .purchase-body .btn {
    min-height: 40px;
  }

  .customer-query-body .btn-sm,
  .purchase-body .btn-sm {
    min-height: 36px;
  }
}

/* One operational density across themes; themes keep color accents only. */
@media (min-width: 901px) {
  .customer-query-body .batch-results-layout {
    min-height: 0;
  }

  .customer-query-body .query-input {
    min-height: 112px;
  }

  .customer-query-body .results-table {
    width: 100%;
    min-width: 720px;
  }

  .customer-query-body .results-card.is-empty .results-table {
    display: none;
  }

  .customer-query-body .results-table thead th {
    padding-top: .7rem !important;
    padding-bottom: .7rem !important;
  }

  .customer-query-body .results-table tbody td {
    padding-top: .85rem !important;
    padding-bottom: .85rem !important;
  }

  .customer-query-body .results-table th[data-result-column="warranty_activation"],
  .customer-query-body .results-table td[data-result-column="warranty_activation"] {
    width: 210px;
    min-width: 0;
  }

  .customer-query-body .results-table .badge {
    box-shadow: none !important;
  }
}

/* Keep the desktop workspace dense; mobile gets only the three frequent actions. */
.batch-summary {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .25rem .75rem;
  margin-top: .45rem;
  color: var(--tblr-secondary-color);
  font-size: .75rem;
  font-variant-numeric: tabular-nums;
}

.batch-summary > :is(span, button) + :is(span, button) {
  padding-left: .75rem;
  border-left: 1px solid var(--tblr-border-color);
}

.batch-summary > span:nth-child(2) {
  color: var(--tblr-success);
}

.batch-summary-filter {
  padding: 0 0 0 .75rem;
  border: 0;
  border-left: 1px solid var(--tblr-border-color);
  color: var(--tblr-danger);
  font: inherit;
  background: transparent;
  cursor: pointer;
}

.batch-summary-filter:not(:disabled):hover,
.batch-summary-filter:not(:disabled):focus-visible {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.batch-summary-filter:disabled {
  opacity: .55;
  cursor: default;
}

.batch-summary > .batch-summary-filter {
  color: var(--tblr-danger);
}

.batch-history-toggle {
  width: calc(100% - 1.2rem);
  margin: .15rem .6rem .6rem;
  border-style: dashed;
}

.mobile-quick-actions {
  display: none;
}

@media (max-width: 767.98px) {
  .customer-query-body {
    padding-bottom: 4.75rem;
  }

  .batch-list {
    display: flex;
    gap: .5rem;
    max-height: none;
    padding: .6rem;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .batch-item,
  .customer-query-body.theme-batchcard .batch-item {
    width: min(220px, 70vw);
    min-width: min(220px, 70vw);
    flex: 0 0 min(220px, 70vw);
    margin: 0 !important;
  }

  .batch-item-title,
  .batch-item-meta,
  .batch-item-note {
    min-width: 0;
  }

  .batch-item-meta span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .batch-summary {
    gap: .2rem .55rem;
    margin-top: .35rem;
  }

  .batch-summary > span + span {
    padding-left: .55rem;
  }

  .mobile-quick-actions {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1030;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: .5rem;
    padding: .6rem max(.75rem, env(safe-area-inset-right)) calc(.6rem + env(safe-area-inset-bottom)) max(.75rem, env(safe-area-inset-left));
    background: color-mix(in srgb, var(--tblr-bg-surface) 94%, transparent);
    border-top: 1px solid var(--tblr-border-color);
    box-shadow: 0 -4px 18px rgba(35, 46, 60, .08);
    backdrop-filter: blur(10px);
  }

  .mobile-quick-actions .btn {
    min-width: 0;
    min-height: 38px;
    padding-right: .45rem;
    padding-left: .45rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

.auth-screen .container-tight {
  width: min(100%, 1120px);
  max-width: none;
}

.customer-entry-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, .82fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  width: 100%;
  margin-inline: auto;
}

.customer-entry-story {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: 486px;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  overflow: hidden;
  padding: clamp(30px, 4.2vw, 54px);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 12px;
  background:
    linear-gradient(135deg, transparent 0 58%, rgba(255, 255, 255, .035) 58% 58.2%, transparent 58.2%),
    linear-gradient(155deg, #142522, #1c3431 68%, #172725);
  box-shadow: 0 22px 56px rgba(18, 38, 35, .16);
  color: #f5f4ee;
  animation: customer-entry-rise .65s cubic-bezier(.2, .7, .2, 1) both;
}

.customer-entry-story::before,
.customer-entry-story::after {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  content: "";
}

.customer-entry-story::before {
  inset: 0;
  opacity: .24;
  background-image: linear-gradient(rgba(226, 237, 226, .14) 1px, transparent 1px), linear-gradient(90deg, rgba(226, 237, 226, .14) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(110deg, #000, transparent 72%);
}

.customer-entry-story::after {
  top: 48px;
  right: 42px;
  width: 8px;
  height: 8px;
  border: 1px solid rgba(231, 173, 106, .75);
  border-radius: 50%;
  box-shadow: 0 0 0 8px rgba(231, 173, 106, .08), 0 0 0 16px rgba(231, 173, 106, .04);
}

.customer-entry-kicker,
.customer-entry-form-kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.4;
}

.customer-entry-kicker {
  color: rgba(245, 244, 238, .67);
}

.customer-entry-signal {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #e6a663;
  box-shadow: 0 0 0 4px rgba(230, 166, 99, .14);
}

.customer-entry-copy h2 {
  margin: 0 0 14px;
  color: #f5f4ee;
  font-size: clamp(2rem, 3.7vw, 3.3rem);
  font-weight: 650;
  letter-spacing: -.045em;
  line-height: 1.18;
}

.customer-entry-copy h2 span {
  color: #e6b579;
}

.customer-entry-copy p {
  max-width: 31rem;
  margin: 0;
  color: rgba(245, 244, 238, .7);
  font-size: .96rem;
  line-height: 1.85;
}

.customer-entry-diagram {
  position: relative;
  display: grid;
  min-height: 116px;
  place-items: center;
  overflow: hidden;
  border-top: 1px solid rgba(245, 244, 238, .12);
  border-bottom: 1px solid rgba(245, 244, 238, .12);
}

.customer-entry-diagram-label,
.customer-entry-coordinate {
  position: absolute;
  color: rgba(245, 244, 238, .55);
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .14em;
}

.customer-entry-diagram-label {
  top: 12px;
  left: 0;
}

.customer-entry-coordinate {
  right: 0;
  bottom: 11px;
  color: #e6b579;
}

.customer-entry-lens {
  position: relative;
  width: 92px;
  height: 92px;
  border: 1px solid rgba(231, 181, 121, .65);
  border-radius: 50%;
  background: repeating-radial-gradient(circle, transparent 0 11px, rgba(231, 181, 121, .2) 12px, transparent 13px 19px);
  box-shadow: inset 0 0 0 10px rgba(245, 244, 238, .025), 0 0 0 14px rgba(245, 244, 238, .025);
}

.customer-entry-lens::before,
.customer-entry-lens::after {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 8px;
  height: 8px;
  border: 1px solid #e6b579;
  border-radius: 50%;
  content: "";
  transform: translate(-50%, -50%);
}

.customer-entry-lens::after {
  width: 3px;
  height: 3px;
  border: 0;
  background: #f5f4ee;
}

.customer-entry-axis {
  position: absolute;
  background: linear-gradient(90deg, transparent, rgba(245, 244, 238, .4), transparent);
  pointer-events: none;
}

.customer-entry-axis-x {
  top: 50%;
  left: 17%;
  width: 66%;
  height: 1px;
}

.customer-entry-axis-y {
  top: 15%;
  left: 50%;
  width: 1px;
  height: 70%;
  background: linear-gradient(180deg, transparent, rgba(245, 244, 238, .4), transparent);
}

.customer-entry-capabilities {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.customer-entry-capabilities li {
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(245, 244, 238, .8);
  font-size: .75rem;
  white-space: nowrap;
}

.customer-entry-capabilities li span {
  color: #e6b579;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .08em;
}

.customer-entry-login {
  width: min(100%, 420px);
  margin-inline: auto;
  animation: customer-entry-rise .65s .08s cubic-bezier(.2, .7, .2, 1) both;
}

.customer-entry-brand {
  display: flex;
  justify-content: flex-start;
  margin: 0 0 18px 2px;
}

.customer-entry-brand .navbar-brand {
  gap: 10px;
  margin: 0;
  font-size: .96rem;
  font-weight: 700;
}

.customer-entry-login .card {
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 18px 48px rgba(26, 39, 47, .09);
}

.customer-entry-login .card-body {
  padding: clamp(22px, 3vw, 30px);
}

.customer-entry-form-kicker {
  margin: 0 0 10px;
  color: var(--tblr-primary);
}

.customer-entry-login h1 {
  font-size: 1.38rem;
  font-weight: 700;
  letter-spacing: -.025em;
}

.customer-entry-login .customer-code-toggle {
  min-width: 66px;
  font-size: .82rem;
}

.customer-entry-login .auth-purchase-link {
  margin-top: 1.25rem;
}

.customer-entry-footnote {
  margin: 13px 0 0;
  color: var(--tblr-secondary-color);
  font-size: .7rem;
  line-height: 1.5;
  text-align: center;
}

.customer-entry-login #loginButton span {
  display: inline-block;
  margin-left: .35rem;
  transition: transform .18s ease;
}

.customer-entry-login #loginButton:hover span {
  transform: translateX(3px);
}

@keyframes customer-entry-rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 820px) {
  .customer-entry-layout {
    grid-template-columns: minmax(0, .95fr) minmax(320px, 1fr);
    gap: 24px;
  }

  .customer-entry-story {
    min-height: 460px;
    padding: 28px;
  }
}

@media (max-width: 700px) {
  .customer-entry-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    max-width: 460px;
  }

  .customer-entry-story {
    min-height: 0;
    gap: 16px;
    padding: 22px 24px 18px;
  }

  .customer-entry-copy h2 {
    margin-bottom: 8px;
    font-size: clamp(1.65rem, 7vw, 2.1rem);
  }

  .customer-entry-copy p {
    font-size: .84rem;
    line-height: 1.65;
  }

  .customer-entry-diagram {
    display: none;
  }

  .customer-entry-capabilities {
    gap: 8px 16px;
  }

  .customer-entry-capabilities li {
    font-size: .68rem;
  }

  .customer-entry-login {
    max-width: 460px;
  }
}

@media (max-width: 420px) {
  .customer-entry-story {
    padding: 19px 20px 16px;
  }

  .customer-entry-kicker {
    font-size: .58rem;
  }

  .customer-entry-capabilities {
    gap: 6px 11px;
  }

  .customer-entry-capabilities li {
    gap: 5px;
    font-size: .64rem;
  }

  .customer-entry-login .card-body {
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .customer-entry-story,
  .customer-entry-login {
    animation: none;
  }

  .customer-entry-login #loginButton span {
    transition: none;
  }
}

/* Quiet, illustrated entry and workbench palette. */
:root {
  --ui-space-1: 4px;
  --ui-space-2: 8px;
  --ui-space-3: 16px;
  --ui-space-4: 24px;
  --ui-space-5: 32px;
  --ui-space-6: 40px;
  --tblr-primary: #29343d;
  --tblr-primary-rgb: 41, 52, 61;
  --tblr-body-color: #171717;
  --tblr-secondary-color: #5f6368;
  --tblr-bg-surface-secondary: #fafafa;
  --tblr-border-color: #ebebeb;
}

.customer-query-body.theme-classic {
  --customer-work-border: #ebebeb;
  --customer-work-muted: #fafafa;
  min-height: 100dvh;
  color: #171717;
  background: #fafafa;
  font-feature-settings: "liga" 1;
}

.customer-query-body.theme-classic .customer-navbar {
  background: rgba(255, 255, 255, .94);
  border-bottom-color: #ebebeb;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .025);
}

.customer-query-body.theme-classic .customer-brand-mark {
  color: #fff;
  background: #29343d;
  border-color: #29343d;
  border-radius: 10px 10px 10px 3px;
}

.customer-query-body.theme-classic .auth-screen .card,
.customer-query-body.theme-classic .query-card,
.customer-query-body.theme-classic .results-card {
  border-color: transparent;
  border-radius: 12px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .08), 0 2px 2px rgba(0, 0, 0, .035), 0 8px 8px -8px rgba(0, 0, 0, .04);
}

.customer-query-body.theme-classic .card-header,
.customer-query-body.theme-classic .results-header,
.customer-query-body.theme-classic .batch-sidebar,
.customer-query-body.theme-classic .results-toolbar,
.customer-query-body.theme-classic .results-table thead th {
  background: #fafafa;
  border-color: #ebebeb;
}

.customer-query-body.theme-classic .customer-entry-story {
  min-height: 462px;
  gap: var(--ui-space-4);
  padding: clamp(var(--ui-space-5), 4vw, 48px);
  border: 0;
  border-radius: 18px 18px 18px 5px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .08), 0 2px 2px rgba(0, 0, 0, .035), 0 8px 8px -8px rgba(0, 0, 0, .04);
  color: #171717;
  animation-duration: .35s;
}

.customer-query-body.theme-classic .customer-entry-story::before {
  inset: auto -54px -92px auto;
  width: 230px;
  height: 230px;
  border: 1px solid rgba(0, 0, 0, .07);
  border-radius: 50%;
  opacity: 1;
  background: none;
  box-shadow: 0 0 0 18px rgba(255, 255, 255, .18), 0 0 0 40px rgba(255, 255, 255, .12);
}

.customer-query-body.theme-classic .customer-entry-story::after {
  top: 34px;
  right: 34px;
  width: 9px;
  height: 9px;
  border-color: #d77868;
  box-shadow: 0 0 0 5px rgba(215, 120, 104, .1);
}

.customer-query-body.theme-classic .customer-entry-kicker {
  color: #5f6368;
  font-size: .76rem;
  font-weight: 500;
  letter-spacing: .015em;
}

.customer-query-body.theme-classic .customer-entry-signal {
  background: #d77868;
  box-shadow: 0 0 0 4px rgba(215, 120, 104, .12);
}

.customer-query-body.theme-classic .customer-entry-copy h2 {
  color: #171717;
  font-size: clamp(2.2rem, 3.8vw, 3.15rem);
  font-weight: 600;
  letter-spacing: -.055em;
  line-height: 1.22;
}

.customer-query-body.theme-classic .customer-entry-copy h2 span {
  color: #29343d;
}

.customer-query-body.theme-classic .customer-entry-copy p {
  max-width: 29rem;
  color: #5f6368;
  font-size: .92rem;
  line-height: 1.8;
}

.customer-query-body.theme-classic .customer-entry-diagram {
  min-height: 142px;
  border: 0;
}

.query-mascot {
  position: relative;
  z-index: 1;
  display: block;
  width: min(240px, 70%);
  height: 128px;
  overflow: visible;
}

.customer-entry-diagram-caption {
  position: absolute;
  right: 0;
  bottom: 1px;
  color: #5f6368;
  font-size: .7rem;
}

.customer-query-body.theme-classic .customer-entry-capabilities {
  gap: 8px;
}

.customer-query-body.theme-classic .customer-entry-capabilities li {
  gap: var(--ui-space-2);
  padding: var(--ui-space-2) 12px;
  border: 1px solid rgba(0, 0, 0, .06);
  border-radius: 999px;
  background: rgba(255, 255, 255, .56);
  color: #4d4d4d;
  font-size: .72rem;
}

.customer-query-body.theme-classic .customer-entry-capabilities li span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #d77868;
}

.customer-query-body.theme-classic .customer-entry-login {
  animation-duration: .35s;
}

.customer-query-body.theme-classic .customer-entry-login .card {
  border-color: transparent;
  border-radius: 16px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .08), 0 2px 2px rgba(0, 0, 0, .04), 0 8px 8px -8px rgba(0, 0, 0, .04);
}

.customer-query-body.theme-classic .customer-entry-login h1 {
  color: #171717;
  font-size: 1.48rem;
  font-weight: 600;
  letter-spacing: -.035em;
}

.customer-query-body.theme-classic .customer-entry-login .card-body {
  padding: clamp(var(--ui-space-4), 3vw, var(--ui-space-5));
}

.customer-query-body.theme-classic .customer-entry-form-kicker {
  color: #4d4d4d;
  font-size: .74rem;
  letter-spacing: .02em;
}

.customer-query-body.theme-classic .customer-entry-login .form-control {
  min-height: 48px;
  border-color: #ebebeb;
  border-radius: 9px;
}

.customer-query-body.theme-classic .customer-entry-login .form-control:focus {
  border-color: #0072f5;
  box-shadow: 0 0 0 2px rgba(0, 114, 245, .18);
}

.customer-query-body.theme-classic .query-input,
.customer-query-body.theme-classic .results-table td.sn,
.customer-query-body.theme-classic .font-monospace,
.purchase-body .font-monospace {
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1, "liga" 1;
}

.customer-query-body.theme-classic .form-control:focus,
.customer-query-body.theme-classic .form-select:focus,
.purchase-body .form-control:focus,
.purchase-body .form-select:focus {
  border-color: #0072f5;
  box-shadow: 0 0 0 2px rgba(0, 114, 245, .18);
}

.customer-query-body.theme-classic button:focus-visible,
.customer-query-body.theme-classic a:focus-visible,
.purchase-body button:focus-visible,
.purchase-body a:focus-visible {
  outline: 2px solid #0072f5;
  outline-offset: 2px;
}

.customer-query-body.theme-classic .customer-entry-login .btn-primary,
.purchase-body .btn-primary {
  min-height: 46px;
  border-color: #171717;
  border-radius: 9px;
  background: #171717;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .08), 0 2px 2px rgba(0, 0, 0, .04);
}

.customer-query-body.theme-classic .customer-entry-login .btn-primary:hover,
.purchase-body .btn-primary:hover {
  border-color: #333;
  background: #333;
}

.customer-query-body.theme-classic .auth-purchase-link {
  border-color: #ebebeb;
  border-radius: 10px;
  background: #fafafa;
}

.customer-query-body.theme-classic .auth-purchase-link:hover,
.customer-query-body.theme-classic .auth-purchase-link:focus-visible {
  border-color: #d7d7d7;
  background: #fff;
}

.customer-query-body.theme-classic .auth-purchase-label {
  color: #29343d;
}

.purchase-body {
  min-height: 100dvh;
  color: #171717;
  background: #fafafa;
}

.purchase-body .purchase-container {
  padding-right: 12px;
  padding-left: 12px;
}

.purchase-body .customer-navbar {
  background: rgba(255, 255, 255, .94);
  border-bottom-color: #ebebeb;
}

.purchase-body .page-header {
  padding-top: 1.65rem;
}

.purchase-body .page-title {
  color: #171717;
  font-size: clamp(1.55rem, 2.2vw, 2rem);
  font-weight: 600;
  letter-spacing: -.04em;
}

.purchase-body .purchase-plan,
.purchase-body .purchase-checkout,
.purchase-body .purchase-recovery {
  border-color: transparent;
  border-radius: 12px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .08), 0 2px 2px rgba(0, 0, 0, .035), 0 8px 8px -8px rgba(0, 0, 0, .04);
}

.purchase-body .purchase-package-option {
  min-height: 76px;
  border-color: #ebebeb;
  border-radius: 9px;
  transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease;
}

.purchase-body .purchase-package-option:has(input:checked) {
  border-color: transparent;
  background: #fafafa;
  box-shadow: 0 0 0 2px #171717;
}

.purchase-body .purchase-package-option input {
  accent-color: #171717;
}

.purchase-body .purchase-price {
  color: #171717;
  font-weight: 600;
  letter-spacing: -.05em;
}

.purchase-body .card-header,
.purchase-body .card-footer {
  border-color: #ebebeb;
  background: #fafafa;
}

.purchase-body .payment-qr {
  border-radius: 8px;
}

.customer-query-body.theme-classic .customer-entry-layout {
  gap: clamp(var(--ui-space-5), 5vw, 64px);
}

@media (max-width: 700px) {
  .customer-query-body.theme-classic .auth-screen {
    padding-top: var(--ui-space-3);
    padding-bottom: var(--ui-space-3);
  }

  .customer-query-body.theme-classic .customer-entry-layout {
    gap: 14px;
  }

  .customer-query-body.theme-classic .customer-entry-story {
    gap: var(--ui-space-3);
    padding: var(--ui-space-4);
    border-radius: 15px 15px 15px 4px;
  }

  .customer-query-body.theme-classic .customer-entry-copy h2 {
    font-size: clamp(1.8rem, 8vw, 2.25rem);
  }

  .customer-query-body.theme-classic .customer-entry-diagram {
    display: grid;
    min-height: 104px;
    margin-top: -2px;
  }

  .customer-query-body.theme-classic .query-mascot {
    width: 176px;
    height: 94px;
  }

  .customer-query-body.theme-classic .customer-entry-diagram-caption {
    right: 2px;
    bottom: 0;
    font-size: .64rem;
  }

  .customer-query-body.theme-classic .customer-entry-capabilities li {
    padding: var(--ui-space-1) var(--ui-space-2);
    font-size: .68rem;
  }

  .customer-query-body.theme-classic .customer-entry-login .card-body {
    padding: var(--ui-space-4);
  }

  .purchase-body .page-body {
    padding-top: .5rem;
  }
}

@media (max-width: 380px) {
  .customer-query-body.theme-classic .customer-entry-copy p {
    font-size: .8rem;
  }

  .customer-query-body.theme-classic .customer-entry-capabilities {
    gap: 6px;
  }

  .customer-query-body.theme-classic .customer-entry-capabilities li {
    font-size: .64rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .customer-entry-story,
  .customer-entry-login {
    animation: none !important;
  }
}

/* Stitch workbench: a calm, data-first canvas with the existing API surface intact. */
.customer-query-body.theme-classic {
  --stitch-canvas: #f5f5f7;
  --stitch-surface: #fff;
  --stitch-surface-soft: #f8f9fc;
  --stitch-ink: #1d1d1f;
  --stitch-muted: #6e7480;
  --stitch-line: rgba(25, 35, 50, .1);
  --stitch-blue: #0071e3;
  --stitch-blue-dark: #0059b5;
  --stitch-green: #168447;
  --stitch-green-soft: #ecfbf2;
  --stitch-red: #c83737;
  --stitch-red-soft: #fff0f0;
  --stitch-radius: 8px;
  --stitch-content-gutter: clamp(16px, 3vw, 56px);
  --stitch-content-max: min(92vw, calc(72rem + 30vw));
  color: var(--stitch-ink);
  background: var(--stitch-canvas);
  font-family: Inter, "Microsoft YaHei UI", "PingFang SC", sans-serif;
}

.customer-query-body.theme-classic .query-backdrop {
  display: none;
}

.customer-query-body.theme-classic .customer-navbar {
  position: sticky;
  z-index: 20;
  top: 0;
  min-height: 56px;
  border-bottom: 1px solid var(--stitch-line);
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 1px 12px rgba(25, 35, 50, .03);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  backdrop-filter: blur(20px) saturate(150%);
}

.customer-query-body.theme-classic .customer-navbar .container-xl {
  min-height: 56px;
  width: min(calc(100% - 2 * var(--stitch-content-gutter)), var(--stitch-content-max));
  max-width: var(--stitch-content-max);
  padding-right: var(--stitch-content-gutter);
  padding-left: var(--stitch-content-gutter);
  gap: 24px;
}

.customer-brand {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  min-width: 0;
  color: var(--stitch-ink);
  text-decoration: none;
}

.customer-brand:hover,
.customer-brand:focus-visible {
  color: var(--stitch-ink);
  text-decoration: none;
}

.customer-query-body.theme-classic .customer-brand-mark {
  width: 38px;
  height: 24px;
  margin-right: 10px;
  border: 0;
  border-radius: 5px;
  color: #fff;
  background: #111827;
  box-shadow: none;
  clip-path: none;
  font-size: 11px;
  letter-spacing: .04em;
}

.customer-query-body.theme-classic .customer-brand-copy {
  color: var(--stitch-ink);
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -.01em;
  white-space: nowrap;
}

.customer-brand-divider,
.customer-brand-context {
  color: #b7bdc8;
  font-size: 13px;
  font-weight: 500;
}

.customer-brand-divider {
  margin: 0 14px;
}

.customer-brand-context {
  color: #71798a;
  white-space: nowrap;
}

.customer-nav {
  display: flex;
  align-self: stretch;
  align-items: stretch;
  justify-content: center;
  gap: 26px;
  min-width: 0;
  flex: 1 1 auto;
}

.customer-nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0 2px;
  color: #727b8c;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.customer-nav-link:hover,
.customer-nav-link:focus-visible,
.customer-nav-link.active {
  color: var(--stitch-ink);
  text-decoration: none;
}

.customer-nav-link.active::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: var(--stitch-blue);
  content: "";
}

.customer-account-actions {
  display: flex;
  align-items: center;
  gap: 8px !important;
  flex: 0 0 auto;
  min-width: 0;
}

.customer-query-body.theme-classic .customer-account {
  max-width: 210px;
  padding: 7px 12px;
  overflow: hidden;
  border: 1px solid #d8e6fb;
  border-radius: 999px;
  color: #3f4b5a !important;
  background: #f5f9ff;
  font-size: 11px;
  text-overflow: ellipsis;
}

.customer-account-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 3px 9px 3px 4px;
  border-color: #d9dfe8;
  border-radius: 999px;
  color: #4c5666;
  background: #fff;
  font-size: 12px;
}

.customer-account-avatar {
  display: inline-grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #172033;
  font-size: 11px;
  font-weight: 700;
}

.customer-account-chevron {
  color: #8993a3;
  font-size: 16px;
  line-height: 1;
}

.customer-logout {
  min-height: 34px;
  border-color: transparent;
  color: #70798a;
  background: transparent;
  font-size: 12px;
}

.customer-logout:hover,
.customer-logout:focus-visible {
  border-color: #e0e4ea;
  color: var(--stitch-ink);
  background: #f8f9fc;
}

.customer-query-body.theme-classic .page-wrapper {
  background: var(--stitch-canvas);
}

.customer-query-body.theme-classic .customer-page-header {
  display: none;
}

.customer-query-body.theme-classic .page-body > .container-xl {
  width: min(calc(100% - 2 * var(--stitch-content-gutter)), var(--stitch-content-max));
  max-width: var(--stitch-content-max);
  padding: 32px 24px 42px;
}

.customer-query-body.theme-classic .app-init-error,
.customer-query-body.theme-classic #expiryWarning,
.customer-query-body.theme-classic .customer-announcement {
  margin-bottom: 16px;
}

.customer-workspace {
  display: grid;
  grid-template-columns: minmax(260px, 24%) minmax(0, 1fr);
  align-items: start;
  gap: 16px;
}

.customer-query-body.theme-classic .customer-workspace > .card {
  min-width: 0;
  margin: 0;
  border: 1px solid var(--stitch-line);
  border-radius: var(--stitch-radius);
  background: var(--stitch-surface);
  box-shadow: 0 4px 14px rgba(25, 35, 50, .04);
}

.customer-results-column {
  display: grid;
  min-width: 0;
  gap: 12px;
}

.customer-query-body.theme-classic .customer-results-column > .results-card {
  min-width: 0;
  margin: 0;
  border: 1px solid var(--stitch-line);
  border-radius: var(--stitch-radius);
  background: var(--stitch-surface);
  box-shadow: 0 4px 14px rgba(25, 35, 50, .04);
}

.customer-workspace > .query-card {
  position: static;
}

@media (min-width: 1280px) {
  .customer-workspace > .query-card {
    position: sticky;
    top: 72px;
  }
}

.customer-query-body.theme-classic .query-card .card-header,
.customer-query-body.theme-classic .results-card .card-header {
  min-height: 74px;
  padding: 18px 20px;
  border-bottom: 1px solid #edf0f4;
  background: #fff;
}

.customer-query-body.theme-classic .query-card .card-title,
.customer-query-body.theme-classic .results-card .card-title {
  color: var(--stitch-ink);
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -.01em;
}

.customer-query-body.theme-classic .query-card .card-body {
  padding: 18px 20px 20px;
}

@media (min-width: 861px) {
  .customer-query-body.theme-classic .query-card .card-body {
    display: flex;
    flex-direction: column;
    gap: 13px;
    padding: 16px;
  }

  .customer-query-body.theme-classic .query-input-tabs,
  .customer-query-body.theme-classic #fileImportStatus,
  .customer-query-body.theme-classic .batch-metadata,
  .customer-query-body.theme-classic .query-input-head,
  .customer-query-body.theme-classic .query-input,
  .customer-query-body.theme-classic .query-options,
  .customer-query-body.theme-classic #queryPreview,
  .customer-query-body.theme-classic .query-footer {
    margin: 0;
  }

  .customer-query-body.theme-classic .query-input-head {
    align-items: baseline;
  }

  .customer-query-body.theme-classic .query-input { min-height: 190px; }

  .customer-query-body.theme-classic .query-options {
    align-content: start;
    gap: 9px;
    padding: 12px 0 0;
    border-top: 1px solid #edf0f4;
    border-left: 0;
  }

  .customer-query-body.theme-classic .query-footer {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .customer-query-body.theme-classic .query-footer .btn-list {
    display: grid;
    gap: 7px;
  }

  .customer-query-body.theme-classic .query-progress-wrap { margin: 0; }
}

.customer-query-body.theme-classic .query-card .card-header .badge {
  border: 1px solid #dce5f2;
  border-radius: 7px;
  color: #6d7e96;
  background: #f7faff;
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 11px;
  font-weight: 500;
}

.customer-query-body.theme-classic .batch-metadata {
  margin-bottom: 14px;
  border: 0;
}

.customer-query-body.theme-classic .batch-metadata-toggle {
  min-height: 38px;
  padding: 7px 11px;
  border: 1px solid #e7ebf1;
  border-radius: 7px;
  color: #667388;
  background: #f8f9fc;
  font-size: 12px;
}

.customer-query-body.theme-classic .batch-details-grid {
  padding: 0 0 14px;
}

.customer-query-body.theme-classic .query-input-head {
  align-items: baseline;
  margin-bottom: 8px;
}

.customer-query-body.theme-classic .query-input-head .form-label {
  color: #465268;
  font-size: 12px;
}

.customer-query-body.theme-classic .query-input {
  min-height: 164px;
  resize: vertical;
  border-color: #d9e0ea;
  border-radius: 12px;
  color: #334155;
  background: #f8f9fc;
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 12px;
  line-height: 1.75;
}

.customer-query-body.theme-classic .query-input:hover {
  border-color: #bfc9d8;
  background: #fff;
}

.customer-query-body.theme-classic .query-input:focus {
  border-color: var(--stitch-blue);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0, 113, 227, .12);
}

.customer-query-body.theme-classic .query-options {
  display: grid;
  gap: 9px;
  margin-top: 13px;
  padding-top: 13px;
  border-top: 1px solid #edf0f4;
}

.customer-query-body.theme-classic .query-options .form-check-label {
  color: #566276;
  font-size: 12px;
}

.customer-query-body.theme-classic .query-options .form-switch .form-check-input {
  margin-right: 8px;
}

.customer-query-body.theme-classic .query-preview {
  margin-top: 13px;
  border-radius: 10px;
  font-size: 11px;
}

.customer-query-body.theme-classic .query-footer {
  display: block;
  margin-top: 18px;
}

.customer-query-body.theme-classic .query-footer .btn-list {
  display: grid;
  gap: 8px;
}

.customer-query-body.theme-classic #query {
  width: 100%;
  min-height: 42px;
  border-color: #0068d1;
  border-radius: 11px;
  background: var(--stitch-blue);
  box-shadow: 0 4px 10px rgba(0, 113, 227, .16);
  font-size: 13px;
}

.customer-query-body.theme-classic #query:hover,
.customer-query-body.theme-classic #query:focus-visible {
  border-color: var(--stitch-blue-dark);
  background: var(--stitch-blue-dark);
}

.customer-query-body.theme-classic #retry {
  width: 100%;
  min-height: 34px;
  border-color: #f2c879;
  color: #9a5b00;
  background: #fff8e8;
  font-size: 11px;
  font-weight: 600;
}

.customer-query-body.theme-classic #retry:hover,
.customer-query-body.theme-classic #retry:focus-visible {
  border-color: #d99a28;
  color: #7c4800;
  background: #fff1cc;
}

.customer-query-body.theme-classic .query-progress-wrap {
  margin-top: 11px;
}

.customer-query-body.theme-classic .query-progress-wrap > .d-flex {
  color: #6c788c;
  font-size: 11px;
}

.customer-query-body.theme-classic .progress {
  height: 5px;
  border-radius: 99px;
  background: #e7ebf1;
}

.customer-query-body.theme-classic .progress-bar {
  border-radius: inherit;
  background: var(--stitch-blue);
}

.customer-query-body.theme-classic .results-card {
  overflow: hidden;
}

.customer-query-body.theme-classic .results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.customer-query-body.theme-classic .results-header .btn-list {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.customer-query-body.theme-classic .batch-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: 6px;
  color: #8190a3;
  font-size: 11px;
}

.customer-query-body.theme-classic .batch-summary > .batch-summary-filter {
  padding-left: 0;
  border-left: 0;
  color: var(--stitch-red);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.customer-query-body.theme-classic .batch-summary > :is(span, button) + :is(span, button)::before {
  margin-right: 12px;
  color: #c0c7d1;
  content: "·";
}

.customer-query-body.theme-classic .batch-summary > .batch-summary-filter:disabled {
  text-decoration: none;
}

.customer-query-body.theme-classic .batch-results-layout {
  grid-template-columns: minmax(176px, 18%) minmax(0, 1fr);
  align-items: stretch;
}

.customer-query-body.theme-classic .batch-sidebar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  min-width: 0;
  padding: 16px 12px;
  border-right: 1px solid #edf0f4;
  border-bottom: 0;
  background: #fafbfd;
}

.customer-query-body.theme-classic .batch-sidebar-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  color: #657186;
  font-size: 12px;
}

.customer-query-body.theme-classic .batch-search-wrap {
  min-width: 0;
  margin: 0;
}

.customer-query-body.theme-classic .batch-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 280px;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
}

.customer-query-body.theme-classic .batch-item {
  flex: 0 0 auto;
  width: 100%;
  min-height: 58px;
  margin: 0;
  padding: 9px 9px 9px 11px;
  border-color: transparent;
  border-radius: 5px;
  color: #687487;
}

.customer-query-body.theme-classic .batch-item:hover,
.customer-query-body.theme-classic .batch-item:focus-visible {
  border-color: #dbe7f7;
  background: #f3f8ff;
}

.customer-query-body.theme-classic .batch-item.active {
  border-color: #d8e8fb;
  background: #eef6ff;
  box-shadow: none;
}

.customer-query-body.theme-classic .batch-history-toggle {
  grid-column: 1 / -1;
  justify-self: start;
  width: auto;
  margin: 0;
}

.customer-query-body.theme-classic .batch-item-title {
  color: #334155;
  font-size: 12px;
}

.customer-query-body.theme-classic .batch-item-meta,
.customer-query-body.theme-classic .batch-item-note {
  color: #8a96a7;
  font-size: 10px;
}

.customer-query-body.theme-classic .results-main {
  min-width: 0;
  padding: 0;
}

.customer-query-body.theme-classic .results-toolbar {
  display: grid;
  grid-template-columns: max-content minmax(180px, 1fr) max-content max-content;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid #edf0f4;
  background: #fff;
}

.customer-query-body.theme-classic .results-toolbar > #statusQuickFilters { grid-column: 1; }
.customer-query-body.theme-classic .results-toolbar > #resultSearch { grid-column: 2; }
.customer-query-body.theme-classic .results-toolbar > #advancedFilters { grid-column: 3; }
.customer-query-body.theme-classic .results-toolbar > #resultCount { grid-column: 4; }

.customer-query-body.theme-classic #resultSearch {
  min-height: 34px;
  border-color: #d6dde8;
  border-radius: 9px;
  background: #fff;
  font-size: 12px;
}

.customer-query-body.theme-classic #resultSearch:focus {
  border-color: var(--stitch-blue);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, .1);
}

.customer-query-body.theme-classic .status-quick-filters {
  display: inline-flex;
  gap: 3px;
  padding: 4px;
  border-radius: 10px;
  background: #f0f3f7;
}

.customer-query-body.theme-classic .status-quick-filter {
  min-height: 27px;
  padding: 3px 11px;
  border: 0;
  border-radius: 7px;
  color: #687589;
  background: transparent;
  font-size: 11px;
  font-weight: 550;
}

.customer-query-body.theme-classic .status-quick-filter:hover,
.customer-query-body.theme-classic .status-quick-filter:focus-visible {
  color: #263142;
  background: rgba(255, 255, 255, .7);
}

.customer-query-body.theme-classic .status-quick-filter.active {
  color: #263142;
  background: #fff;
  box-shadow: 0 2px 6px rgba(25, 35, 50, .1);
}

.customer-query-body.theme-classic .advanced-filters > summary {
  min-height: 34px;
  border-color: #d6dde8;
  border-radius: 9px;
  color: #687589;
  background: #fff;
  font-size: 11px;
}

.customer-query-body.theme-classic .results-toolbar > #resultCount {
  color: #8792a2 !important;
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 11px;
  white-space: nowrap;
}

.customer-query-body.theme-classic .results-table-wrap {
  max-height: min(62dvh, calc(100dvh - 18rem));
  overflow: auto;
}

.customer-query-body.theme-classic .results-table {
  min-width: 720px;
  table-layout: fixed;
  font-size: 13px;
}

.customer-query-body.theme-classic .results-table .result-select-cell { width: 38px; }
.customer-query-body.theme-classic .results-table th[data-result-fixed="serial"],
.customer-query-body.theme-classic .results-table td.sn { width: 148px; }
.customer-query-body.theme-classic .results-table [data-result-column="product_info"] { width: 172px; }
.customer-query-body.theme-classic .results-table [data-result-column="warranty_activation"] { width: 190px; }
.customer-query-body.theme-classic .results-table [data-result-column="service_records"] { width: 170px; }
.customer-query-body.theme-classic .results-table [data-result-column="result"] { width: 158px; }

.customer-query-body.theme-classic .results-table > :not(caption) > * > * {
  padding: 14px 12px;
  border-color: #edf0f4;
  vertical-align: middle;
}

.customer-query-body.theme-classic .results-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding-top: 12px;
  padding-bottom: 12px;
  border-bottom-color: #e3e7ee;
  color: #7a8698;
  background: #fbfcfe;
  font-size: 12px;
  font-weight: 600;
}

.customer-query-body.theme-classic .results-table .result-column-hint {
  color: #778396;
  font-size: 11px;
  font-weight: 500;
}

.customer-query-body.theme-classic .results-table tbody tr:hover {
  background: #fbfdff;
}

.customer-query-body.theme-classic .results-table td.sn,
.customer-query-body.theme-classic .serial-value {
  color: #334155;
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 12px;
  font-weight: 550;
}

.customer-query-body.theme-classic .serial-meta,
.customer-query-body.theme-classic .product-info-model,
.customer-query-body.theme-classic .warranty-activation-label,
.customer-query-body.theme-classic .service-record-label {
  color: #97a1af;
  font-size: 11px;
}

.customer-query-body.theme-classic .product-info-name,
.customer-query-body.theme-classic .warranty-activation-value,
.customer-query-body.theme-classic .service-record-value {
  color: #374151;
  font-size: 13px;
  font-weight: 550;
}

.customer-query-body.theme-classic .warranty-activation-content {
  gap: 2px;
}

.customer-query-body.theme-classic .warranty-activation-row {
  gap: 8px;
}

.customer-query-body.theme-classic .result-badge-stack {
  gap: 5px;
}

.customer-query-body.theme-classic .result-badge-stack .badge {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 650;
}

.customer-query-body.theme-classic .query-status-badge {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 650;
}

.customer-query-body.theme-classic .query-status-badge.is-processing {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.customer-query-body.theme-classic .query-status-spinner {
  width: 10px;
  height: 10px;
  border: 1.5px solid rgba(36, 92, 166, .28);
  border-top-color: #245ca6;
  border-radius: 50%;
  animation: query-status-spin .8s linear infinite;
}

@keyframes query-status-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .customer-query-body.theme-classic .query-status-spinner { animation: none; }
}

.customer-query-body.theme-classic .result-badge-stack .bg-green-lt {
  border-color: #bcefd3;
  color: var(--stitch-green) !important;
  background: var(--stitch-green-soft);
}

.customer-query-body.theme-classic .query-status-badge.bg-green-lt {
  border-color: #bcefd3;
  color: var(--stitch-green) !important;
  background: var(--stitch-green-soft);
}

.customer-query-body.theme-classic .result-badge-stack .bg-red-lt {
  border-color: #ffd1d1;
  color: var(--stitch-red) !important;
  background: var(--stitch-red-soft);
}

.customer-query-body.theme-classic .query-status-badge.bg-red-lt {
  border-color: #ffd1d1;
  color: var(--stitch-red) !important;
  background: var(--stitch-red-soft);
}

.customer-query-body.theme-classic .result-badge-stack .bg-yellow-lt,
.customer-query-body.theme-classic .result-badge-stack .bg-orange-lt {
  border-color: #f8dfaa;
  color: #9a6500 !important;
  background: #fff8e8;
}

.customer-query-body.theme-classic .query-status-badge.bg-blue-lt {
  border-color: #c9defa;
  color: #245ca6 !important;
  background: #eef6ff;
}

.customer-query-body.theme-classic .query-status-badge.bg-yellow-lt {
  border-color: #f8dfaa;
  color: #9a6500 !important;
  background: #fff8e8;
}

.customer-query-body .results-table tbody tr.result-tone-neutral > td {
  background: #fff;
}

.customer-query-body .results-table tbody tr.result-tone-red > td {
  background: #fff;
}

.customer-query-body .results-table tbody tr.result-tone-gray > td {
  background: #f3f4f6;
}

.customer-query-body .results-table tbody tr.result-tone-pending > td {
  background: #eff6ff;
}

.customer-query-body .results-table tbody tr.result-tone-blue > td {
  background: #fff;
}

.customer-query-body .results-table tbody tr.result-tone-warning > td {
  background: #fff;
}

.customer-query-body .results-table tbody tr.result-tone-red > td:first-child {
  box-shadow: inset 3px 0 #c83737;
}

.customer-query-body .results-table tbody tr.result-tone-gray > td:first-child {
  box-shadow: inset 3px 0 #98a2b3;
}

.customer-query-body .results-table tbody tr.result-tone-pending > td:first-child {
  box-shadow: inset 3px 0 #2b70c9;
}

.customer-query-body .results-table tbody tr.result-tone-blue > td:first-child {
  box-shadow: inset 3px 0 #2563eb;
}

.customer-query-body .results-table tbody tr.result-tone-warning > td:first-child {
  box-shadow: inset 3px 0 #d97706;
}

.customer-query-body .result-card.result-tone-red {
  border-color: #ffd1d1;
  background: #fff;
  box-shadow: inset 3px 0 #c83737, 0 1px 3px rgba(25, 35, 50, .04);
}

.customer-query-body .result-card.result-tone-gray {
  border-color: #d9dde3;
  background: #f3f4f6;
  box-shadow: inset 3px 0 #98a2b3, 0 1px 3px rgba(25, 35, 50, .04);
}

.customer-query-body .result-card.result-tone-neutral {
  border-color: #e3e7ed;
  background: #fff;
}

.customer-query-body .result-card.result-tone-pending {
  border-color: #c9defa;
  background: #eff6ff;
  box-shadow: inset 3px 0 #2b70c9, 0 1px 3px rgba(25, 35, 50, .04);
}

.customer-query-body .result-card.result-tone-blue {
  border-color: #c9defa;
  background: #fff;
  box-shadow: inset 3px 0 #2563eb, 0 1px 3px rgba(25, 35, 50, .04);
}

.customer-query-body .result-card.result-tone-warning {
  border-color: #f8dfaa;
  background: #fff;
  box-shadow: inset 3px 0 #d97706, 0 1px 3px rgba(25, 35, 50, .04);
}

.customer-query-body .warranty-activation-value.is-activated,
.customer-query-body .service-record-value.has-records {
  color: #c83737;
  font-weight: 650;
}

.customer-query-body .warranty-activation-value.is-unactivated {
  color: #168447;
  font-weight: 650;
}

.customer-query-body.theme-classic .results-card .card-footer {
  min-height: 52px;
  padding: 10px 16px;
  border-top-color: #edf0f4;
  background: #fbfcfe;
}

.customer-query-body.theme-classic .empty {
  min-height: 260px;
  padding: 78px 20px;
}

.customer-query-body.theme-classic .empty-header {
  color: #3d4859;
  font-size: 15px;
  font-weight: 650;
}

.customer-query-body.theme-classic .empty-title {
  color: #8c97a7;
  font-size: 12px;
}

.customer-query-body.theme-classic .customer-menu-panel {
  border-color: #e0e5ec;
  border-radius: 14px;
  box-shadow: 0 14px 36px rgba(25, 35, 50, .12);
}

.customer-query-body.theme-classic .btn-primary {
  border-color: var(--stitch-blue);
  background: var(--stitch-blue);
}

.customer-query-body.theme-classic .btn-primary:hover,
.customer-query-body.theme-classic .btn-primary:focus-visible {
  border-color: var(--stitch-blue-dark);
  background: var(--stitch-blue-dark);
}

.customer-query-body.theme-classic .btn-outline-primary {
  border-color: #c6ddfa;
  color: var(--stitch-blue);
  background: #fff;
}

.customer-query-body.theme-classic .btn-outline-primary:hover,
.customer-query-body.theme-classic .btn-outline-primary:focus-visible {
  border-color: #9dc8f6;
  color: var(--stitch-blue-dark);
  background: #f2f8ff;
}

@media (max-width: 1279px) {
  .customer-query-body.theme-classic .customer-workspace {
    grid-template-columns: minmax(0, 1fr);
  }

  .customer-workspace > .query-card {
    position: static;
  }

  .customer-query-body.theme-classic .query-card .card-body {
    padding: 18px 20px;
  }

  .customer-query-body.theme-classic .query-input {
    min-height: 140px;
  }
}

@media (max-width: 1100px) {
  .customer-query-body.theme-classic .customer-nav {
    gap: 16px;
  }

  .customer-query-body.theme-classic .customer-brand-divider,
  .customer-query-body.theme-classic .customer-brand-context {
    display: none;
  }

}

@media (max-width: 860px) {
  .customer-query-body.theme-classic .customer-navbar .container-xl {
    gap: 12px;
    padding-right: 16px;
    padding-left: 16px;
  }

  .customer-query-body.theme-classic .customer-account {
    display: none !important;
  }

  .customer-query-body.theme-classic .customer-workspace {
    grid-template-columns: 1fr;
  }

  .customer-workspace > .query-card {
    position: static;
  }

  .customer-query-body.theme-classic .query-card .card-body {
    display: block;
    padding: 16px;
  }

  .customer-query-body.theme-classic .batch-results-layout {
    grid-template-columns: 1fr;
  }

  .customer-query-body.theme-classic .batch-sidebar {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 8px 12px;
    padding: 12px 14px 10px;
    border-right: 0;
  }

  .customer-query-body.theme-classic .batch-list {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 6px;
    max-height: none;
    padding: 2px 0 5px;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .customer-query-body.theme-classic .batch-item {
    flex: 0 0 min(210px, 70vw);
    flex-basis: min(210px, 70vw);
    width: min(210px, 70vw);
    min-width: min(210px, 70vw);
  }

  .customer-query-body.theme-classic .batch-search-wrap { margin: 0; }

}

@media (max-width: 680px) {
  .customer-query-body.theme-classic .customer-nav {
    display: none;
  }

  .customer-query-body.theme-classic .customer-brand-copy {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .customer-query-body.theme-classic .customer-account-label {
    display: none;
  }

  .customer-query-body.theme-classic .page-body > .container-xl {
    padding: 16px 12px 88px;
  }

  .customer-query-body.theme-classic .query-input {
    min-height: 124px;
  }

  .customer-query-body.theme-classic .results-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .customer-query-body.theme-classic .results-header .btn-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
  }

  .customer-query-body.theme-classic .results-header .btn-list > .btn,
  .customer-query-body.theme-classic .results-header .btn-list > .customer-menu {
    min-width: 0;
    flex: initial;
  }

  .customer-query-body.theme-classic .results-header .btn-list > .customer-menu > summary {
    width: 100%;
  }

  .customer-query-body.theme-classic .results-toolbar {
    grid-template-columns: 1fr max-content;
  }

  .customer-query-body.theme-classic .results-toolbar > #statusQuickFilters {
    grid-column: 1 / -1;
    grid-row: 1;
    justify-self: start;
  }

  .customer-query-body.theme-classic .results-toolbar > #resultSearch {
    grid-column: 1;
    grid-row: 2;
    min-width: 0;
  }

  .customer-query-body.theme-classic .results-toolbar > #advancedFilters {
    grid-column: 2;
    grid-row: 2;
  }

  .customer-query-body.theme-classic .results-toolbar > #resultCount {
    grid-column: 1 / -1;
    grid-row: 3;
    justify-self: start;
  }

  .customer-query-body.theme-classic .results-table-wrap {
    max-height: none;
  }

  .customer-query-body.theme-classic .results-table {
    min-width: 0;
  }

  .customer-query-body.theme-classic .result-cards {
    gap: 8px;
    padding: 10px;
  }

  .customer-query-body.theme-classic .result-card {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 14px;
    padding: 12px 14px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(25, 35, 50, .04);
  }

  .customer-query-body.theme-classic .result-card-header,
  .customer-query-body.theme-classic .result-card-field[data-result-column="result"] {
    grid-column: 1 / -1;
  }

  .customer-query-body.theme-classic .result-card-header {
    align-items: center;
    padding-bottom: 8px;
  }

  .customer-query-body.theme-classic .result-card-field {
    grid-template-columns: minmax(0, 1fr);
    gap: 3px;
    align-content: start;
    padding: 8px 0;
  }

  .customer-query-body.theme-classic .result-card-field[data-result-column="result"] {
    padding-bottom: 0;
  }
}

/* Stitch input switch: both entry points feed the same validated query flow. */
.customer-query-body.theme-classic .query-input-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px;
  margin: 0 0 17px;
  padding: 4px;
  border-radius: 10px;
  background: #f0f3f7;
}

.customer-query-body.theme-classic .query-input-tab {
  min-height: 32px;
  padding: 5px 10px;
  border: 0;
  border-radius: 7px;
  color: #687589;
  background: transparent;
  font-size: 11px;
  font-weight: 550;
  transition: color .16s ease, background-color .16s ease, box-shadow .16s ease;
}

.customer-query-body.theme-classic .query-input-tab span {
  color: #8792a2;
  font-weight: 500;
}

.customer-query-body.theme-classic .query-input-tab:hover,
.customer-query-body.theme-classic .query-input-tab:focus-visible {
  color: #263142;
  background: rgba(255, 255, 255, .66);
}

.customer-query-body.theme-classic .query-input-tab.active {
  color: #263142;
  background: #fff;
  box-shadow: 0 2px 6px rgba(25, 35, 50, .1);
}

.customer-query-body.theme-classic .query-input-tab.active span {
  color: #6c788c;
}

.customer-query-body.theme-classic .file-import-status {
  margin: -6px 0 13px;
  padding: 8px 10px;
  border: 1px solid #d8e7f8;
  border-radius: 8px;
  color: #526f8e;
  background: #f4f9ff;
  font-size: 11px;
  line-height: 1.5;
}

.customer-query-body.theme-classic .file-import-status.is-error {
  border-color: #ffd1d1;
  color: var(--stitch-red);
  background: var(--stitch-red-soft);
}

.customer-query-body.theme-classic .customer-brand-copy {
  display: inline;
}

@media (max-width: 680px) {
  .customer-query-body.theme-classic .customer-brand-copy {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .customer-query-body.theme-classic .query-input-tab {
    transition: none;
  }
}

.customer-query-body.theme-classic .query-task-timing {
  min-height: 1.25rem;
  line-height: 1.5;
  color: #657286;
}

.customer-query-body.theme-classic .query-progress-wrap .progress-bar {
  transition: width .3s ease;
}

.purchase-fulfillment-progress {
  display: grid;
  gap: .4rem;
  width: min(100%, 25rem);
  margin: 1rem auto 0;
  padding: .8rem .9rem;
  border: 1px solid #cdebdc;
  border-radius: 8px;
  background: #f3fbf6;
  text-align: left;
}

.purchase-fulfillment-progress[hidden],
.mobile-quick-actions[hidden] {
  display: none !important;
}

.purchase-body .payment-state .status {
  display: inline-block;
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 50%;
  background: #b7791f;
}

.purchase-body .payment-state .status-green {
  background: #258454;
  box-shadow: 0 0 0 4px rgba(37, 132, 84, .12);
}

.purchase-body .payment-state .status-red {
  background: #c5443e;
}

.purchase-body .payment-state .status-yellow {
  background: #b7791f;
}

.purchase-fulfillment-heading {
  color: #176b43;
  font-size: .9rem;
  font-weight: 650;
}

.purchase-fulfillment-track {
  height: 3px;
  overflow: hidden;
  border-radius: 99px;
  background: #d9eee2;
}

.purchase-fulfillment-track > span {
  display: block;
  width: 38%;
  height: 100%;
  border-radius: inherit;
  background: #2c9c65;
  animation: purchase-fulfillment 1.5s ease-in-out infinite alternate;
}

@keyframes purchase-fulfillment {
  from { transform: translateX(0); }
  to { transform: translateX(165%); }
}

@media (max-width: 767.98px) {
  .customer-query-body.theme-classic .query-task-timing {
    min-height: 1.4rem;
    max-width: 68vw;
    text-align: right;
  }

  .purchase-fulfillment-progress {
    padding: .75rem;
  }

  .mobile-quick-actions {
    padding-bottom: calc(.65rem + env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: reduce) {
  .customer-query-body.theme-classic .query-progress-wrap .progress-bar {
    transition: none;
  }

  .purchase-fulfillment-track > span {
    width: 100%;
    animation: none;
  }
}

/* Customer workbench navigation and compact account details. */
.customer-query-body.theme-classic .customer-account-expiry {
  display: inline-flex !important;
  align-items: center;
  box-sizing: border-box;
  height: 34px;
  min-height: 34px;
  gap: 8px;
  width: auto;
  min-width: 252px;
  max-width: none;
  padding: 0 13px;
  justify-content: center;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
  font-size: 11px;
  line-height: 1;
}

.customer-query-body.theme-classic .customer-account-expiry[hidden] {
  display: none !important;
}

.customer-query-body.theme-classic .customer-account-expiry-prefix {
  display: inline-flex;
  align-items: center;
  min-height: 100%;
  color: #748196;
  line-height: 1;
}

.customer-query-body.theme-classic .customer-account-expiry strong {
  display: inline-flex;
  align-items: center;
  min-height: 100%;
  color: #344155;
  font-size: 11px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.customer-query-body.theme-classic .customer-account-expiry-divider {
  display: inline-flex;
  align-items: center;
  min-height: 100%;
  color: #b9c2cf;
  line-height: 1;
}

.customer-query-body.theme-classic .customer-account-expiry #accountExpiryDays {
  display: inline-flex;
  align-items: center;
  min-height: 100%;
  color: #516a8a;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.customer-query-body.theme-classic .customer-account-trigger {
  box-sizing: border-box;
  height: 34px;
  min-height: 34px;
  min-width: 68px;
  justify-content: center;
  padding: 0 10px;
  border-radius: 10px;
  line-height: 1;
  transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.customer-query-body.theme-classic .customer-account-trigger:hover,
.customer-query-body.theme-classic .customer-account-trigger:focus-visible,
.customer-query-body.theme-classic .customer-menu[open] > .customer-account-trigger {
  border-color: #c6d0dd;
  background: #f7f9fc;
  box-shadow: 0 3px 10px rgba(25, 35, 50, .06);
}

.customer-query-body.theme-classic .customer-account-trigger .customer-account-label {
  color: #3f4b5d;
  font-weight: 600;
  line-height: 1;
}

.customer-query-body.theme-classic .customer-account-avatar {
  display: none;
}

.customer-query-body.theme-classic .customer-account-menu-summary {
  max-width: 280px;
  padding: 2px 4px 10px;
  margin-bottom: 6px !important;
  border-bottom: 1px solid #edf0f4;
  color: #687589 !important;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.customer-query-body.theme-classic .customer-account-chevron {
  display: inline-block;
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-right: 1.5px solid #8993a3;
  border-bottom: 1.5px solid #8993a3;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .18s ease;
}

.customer-query-body.theme-classic .customer-menu[open] .customer-account-chevron {
  transform: translateY(2px) rotate(225deg);
}

/* 3.9.16 responsive workbench pass: use the available canvas and keep menus above results. */
.customer-query-body.theme-classic .customer-navbar .container-xl,
.customer-query-body.theme-classic .page-body > .container-xl {
  width: min(calc(100% - 2 * var(--stitch-content-gutter)), var(--stitch-content-max));
  max-width: var(--stitch-content-max);
  margin-right: auto;
  margin-left: auto;
  padding-right: var(--stitch-content-gutter);
  padding-left: var(--stitch-content-gutter);
}

.customer-query-body.theme-classic .customer-workspace {
  grid-template-columns: clamp(320px, 24vw, 400px) minmax(0, 1fr);
  gap: clamp(16px, 1.5vw, 28px);
}

.customer-query-body.theme-classic .customer-workspace > *,
.customer-query-body.theme-classic .customer-results-column,
.customer-query-body.theme-classic .results-card,
.customer-query-body.theme-classic .query-card,
.customer-query-body.theme-classic .query-card .card-body,
.customer-query-body.theme-classic .results-header,
.customer-query-body.theme-classic .results-header > * {
  min-width: 0;
}

.customer-query-body.theme-classic .results-card {
  overflow: visible;
}

.customer-query-body.theme-classic .results-header {
  position: relative;
  z-index: 20;
}

.customer-query-body.theme-classic .results-header > div:first-child {
  flex: 1 1 auto;
}

.customer-query-body.theme-classic .results-header > .btn-list {
  flex: 0 1 auto;
}

.customer-query-body.theme-classic .results-header .customer-menu-panel {
  z-index: 120;
  max-width: calc(100vw - 32px);
  max-height: min(70vh, 420px);
  overflow-y: auto;
}

.customer-query-body.theme-classic .export-actions .image-export-menu {
  top: calc(100% + .35rem);
  right: 0;
  left: auto;
  width: min(250px, calc(100vw - 32px));
}

.customer-query-body.theme-classic .batch-metadata-toggle {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.customer-query-body.theme-classic .batch-metadata-toggle > span {
  min-width: 0;
  line-height: 1.45;
}

.customer-query-body.theme-classic .batch-metadata-toggle > span:nth-child(2) {
  overflow-wrap: anywhere;
}

.customer-query-body.theme-classic .batch-details-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.customer-query-body.theme-classic .query-footer,
.customer-query-body.theme-classic .query-footer .btn-list,
.customer-query-body.theme-classic .query-progress-wrap {
  min-width: 0;
}

.customer-query-body.theme-classic .query-progress-wrap {
  display: grid;
  width: 100%;
  max-width: none;
  gap: 7px;
  justify-self: stretch;
}

.customer-query-body.theme-classic .query-progress-wrap > .d-flex {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  min-width: 0;
  line-height: 1.5;
}

.customer-query-body.theme-classic .query-progress-wrap > .d-flex > #status {
  min-width: 0;
  flex: 1 1 180px;
  overflow-wrap: anywhere;
  line-height: 1.5;
}

.customer-query-body.theme-classic .query-progress-wrap > .d-flex > #progressText {
  min-width: 0;
  flex: 0 1 auto;
  line-height: 1.5;
  text-align: right;
  white-space: nowrap;
}

.customer-query-body.theme-classic .query-task-timing {
  min-width: 0;
  max-width: none;
  overflow-wrap: anywhere;
}

@media (max-width: 1279px) {
  .customer-query-body.theme-classic .customer-workspace {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 860px) {
  .customer-query-body.theme-classic .customer-navbar .container-xl {
    padding-right: 16px;
    padding-left: 16px;
  }

  .customer-query-body.theme-classic .page-body > .container-xl {
    padding-right: 16px;
    padding-left: 16px;
  }
}

@media (max-width: 767.98px) {
  .customer-query-body.theme-classic .results-header .customer-menu-panel {
    position: absolute;
    top: calc(100% + .4rem);
    right: 0;
    left: auto;
    width: min(280px, calc(100vw - 24px));
  }

  .customer-query-body.theme-classic .results-header .export-actions .customer-menu-panel {
    right: auto;
    left: 0;
  }

  .customer-query-body.theme-classic .results-header .results-more-actions .customer-menu-panel {
    right: 0;
    left: auto;
  }

  .customer-query-body.theme-classic .query-progress-wrap > .d-flex {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }

  .customer-query-body.theme-classic .query-progress-wrap > .d-flex > #progressText {
    white-space: normal;
  }
}

@media (max-width: 680px) {
  .customer-query-body.theme-classic .page-body > .container-xl {
    padding: 16px 12px 88px;
  }

  .customer-query-body.theme-classic .batch-details-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .customer-query-body.theme-classic .results-header .customer-menu-panel {
    right: 0;
    width: min(280px, calc(100vw - 24px));
  }
}

.customer-query-body.theme-classic #workspace,
.customer-query-body.theme-classic #batch-history,
.customer-query-body.theme-classic #resultsCard {
  scroll-margin-top: 76px;
}

.customer-query-body.theme-classic .customer-nav-link {
  cursor: pointer;
}

.customer-query-body.theme-classic .customer-nav-target-flash {
  animation: customer-nav-target-flash .9s ease both;
}

@keyframes customer-nav-target-flash {
  0% { box-shadow: 0 0 0 0 rgba(0, 113, 227, 0); }
  35% { box-shadow: 0 0 0 4px rgba(0, 113, 227, .12); }
  100% { box-shadow: 0 0 0 0 rgba(0, 113, 227, 0); }
}

@media (max-width: 1150px) and (min-width: 861px) {
  .customer-query-body.theme-classic .customer-account-expiry {
    min-width: 0;
  }

  .customer-query-body.theme-classic .customer-account-expiry-divider,
  .customer-query-body.theme-classic .customer-account-expiry #accountExpiryDays {
    display: none;
  }
}

@media (max-width: 860px) {
  .customer-query-body.theme-classic .customer-account-expiry {
    display: none !important;
  }

  .customer-query-body.theme-classic .batch-sidebar {
    gap: 8px 10px;
    padding: 10px 12px 8px;
  }

  .customer-query-body.theme-classic .batch-list {
    gap: 6px;
    padding-top: 1px;
    padding-bottom: 3px;
    scrollbar-width: thin;
    scroll-snap-type: x proximity;
  }

  .customer-query-body.theme-classic .batch-item {
    flex: 0 0 clamp(150px, calc(50vw - 28px), 190px);
    width: clamp(150px, calc(50vw - 28px), 190px);
    min-width: clamp(150px, calc(50vw - 28px), 190px);
    min-height: 62px;
    padding: 8px 9px;
    scroll-snap-align: start;
  }
}

@media (max-width: 680px) {
  .customer-query-body.theme-classic .customer-account-label {
    display: inline;
  }

  .customer-query-body.theme-classic .customer-account-trigger {
    min-width: 64px;
  }

  .customer-query-body.theme-classic .customer-account-actions {
    gap: 6px !important;
  }
}

/* 3.9.21 menu layering pass: keep account actions above the workbench and
   let nested export choices expand inside their owning menu. */
.customer-query-body.theme-classic .customer-navbar {
  z-index: 200;
}

.customer-query-body.theme-classic .customer-navbar .customer-menu-panel {
  z-index: 220;
  max-height: min(70vh, 420px);
  overflow-y: auto;
}

.customer-query-body.theme-classic .results-header {
  z-index: 40;
}

.customer-query-body.theme-classic .results-header .customer-menu-panel {
  z-index: 120;
  max-height: none;
  overflow: visible;
}

.customer-query-body.theme-classic .results-header .export-actions .image-export-menu {
  position: static;
  width: auto;
  max-width: none;
  margin: .25rem 0 .1rem;
  padding: .35rem;
  border-color: #edf0f4;
  background: #fbfcfe;
  box-shadow: none;
}

.customer-query-body.theme-classic .results-header .export-actions .image-export-heading {
  padding: .3rem .45rem .25rem;
}

.customer-query-body.theme-classic .results-header .export-actions .image-export-option {
  padding: .5rem;
}

@media (max-width: 767.98px) {
  .customer-query-body.theme-classic .results-header .export-actions .customer-menu-panel {
    right: auto;
    left: 0;
    width: min(280px, calc(100vw - 3.5rem));
  }

  .customer-query-body.theme-classic .results-header .results-more-actions {
    margin-left: auto;
  }

  .customer-query-body.theme-classic .results-header .results-more-actions .customer-menu-panel {
    right: 0;
    left: auto;
    width: min(260px, calc(100vw - 3.5rem));
  }

  .customer-query-body .query-card-header-actions {
    display: flex;
    align-items: center;
    gap: .5rem;
  }

  .customer-query-body #toggleQueryCard:not([hidden]) {
    display: inline-flex;
  }

  .customer-query-body #toggleQueryCard[hidden] {
    display: none;
  }

  .customer-query-body .query-card.is-collapsed .card-body {
    display: none;
  }
}

.customer-query-body #toggleQueryCard {
  display: none;
}

.customer-query-body .query-progress-wrap .progress-bar.is-stage-progress {
  background-image: linear-gradient(135deg, rgba(255, 255, 255, .32) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .32) 50%, rgba(255, 255, 255, .32) 75%, transparent 75%, transparent);
  background-size: 1.25rem 1.25rem;
  animation: query-stage-progress 1s linear infinite;
}

.customer-query-body .result-card-service-details > summary {
  color: var(--tblr-secondary);
  cursor: pointer;
  font-size: .8rem;
  font-weight: 600;
}

.customer-query-body .result-card-service-details[open] > summary {
  margin-bottom: .55rem;
}

@keyframes query-stage-progress {
  to { background-position: 1.25rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  .customer-query-body .query-progress-wrap .progress-bar.is-stage-progress {
    animation: none;
  }
}

/* Keep receipt columns contiguous; overflow stays inside the scrollable table area. */
@media (min-width: 768px) {
  .customer-query-body.theme-classic .results-table {
    width: 100%;
    min-width: 980px;
    table-layout: fixed;
  }

  .customer-query-body.theme-classic .results-table th.result-select-cell,
  .customer-query-body.theme-classic .results-table td.result-select-cell { width: 5.2%; min-width: 0; }
  .customer-query-body.theme-classic .results-table th[data-result-fixed="serial"],
  .customer-query-body.theme-classic .results-table td.sn { width: 18.8%; min-width: 0; }
  .customer-query-body.theme-classic .results-table [data-result-column="product_info"] { width: 18.8%; min-width: 0; }
  .customer-query-body.theme-classic .results-table [data-result-column="warranty_activation"] { width: 20.8%; min-width: 0; }
  .customer-query-body.theme-classic .results-table [data-result-column="service_records"] { width: 21.8%; min-width: 0; }
  .customer-query-body.theme-classic .results-table [data-result-column="result"] {
    width: 14.6%;
    min-width: 0;
    text-align: left;
  }
}

/* Final responsive overflow guard: desktop scrolls only the result list. */
@media (min-width: 768px) {
  html:has(body.customer-query-body),
  body.customer-query-body { overflow-y: auto; overflow-x: hidden; }
  body.customer-query-body .page-wrapper { height: auto; min-height: calc(100dvh - 64px); overflow: visible; }
  body.customer-query-body .page-body,
  body.customer-query-body .page-body > .container-xl { height: auto; min-height: 0; overflow: visible; }
  body.customer-query-body .customer-workspace,
  body.customer-query-body .customer-results-column,
  body.customer-query-body .results-card,
  body.customer-query-body .results-main { height: 100%; min-height: 0; }
  body.customer-query-body .results-card,
  body.customer-query-body .results-main { display: flex; flex-direction: column; }
  body.customer-query-body .batch-results-layout { flex: 1 1 auto; min-height: 0; overflow: hidden; }
  body.customer-query-body .results-table-wrap { flex: 1 1 auto; min-height: 0; max-height: none; }
}

@media (max-width: 767.98px) {
  body.customer-query-body .page-wrapper,
  body.customer-query-body .page-body,
  body.customer-query-body .page-body > .container-xl,
  body.customer-query-body .customer-workspace,
  body.customer-query-body .customer-results-column,
  body.customer-query-body .results-card,
  body.customer-query-body .results-main { height: auto; min-height: 0; overflow: visible; }
  body.customer-query-body .results-card,
  body.customer-query-body .results-main { display: block; }
  body.customer-query-body .batch-results-layout,
  body.customer-query-body .results-table-wrap { overflow: visible; }
}
