/* Current customer frontend: single canonical UI. */
#frontPage.front-swiss {
  display: block;
  width: 100%;
  min-height: 100dvh;
  padding: 0;
}

#frontPage.front-swiss.hidden {
  display: none !important;
}

#frontPage button {
  cursor: pointer;
  transition: color 150ms ease, background 150ms ease, border-color 150ms ease, box-shadow 150ms ease, opacity 150ms ease;
}

#frontPage button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.swiss-brand,
.swiss-service,
.swiss-label-row,
.swiss-panel-head,
.swiss-panel-actions,
.swiss-card-toolbar,
.swiss-card-toolbar > div,
.swiss-sheet-head,
.swiss-search-wrap,
.swiss-history-filters,
.swiss-pagination,
.swiss-pagination > div,
.swiss-footer {
  display: flex;
  align-items: center;
}

.swiss-label-row,
.swiss-panel-head,
.swiss-card-toolbar,
.swiss-sheet-head,
.swiss-pagination,
.swiss-footer {
  justify-content: space-between;
}

.swiss-brand-mark {
  display: grid;
  place-items: center;
}

.swiss-channel,
.swiss-channel-skeleton,
.swiss-ledger-row,
.swiss-data-row,
.swiss-history-row {
  width: 100%;
  display: grid;
  align-items: center;
  text-align: left;
}

.swiss-channel strong,
.swiss-channel small,
.swiss-batch-summary span,
.swiss-batch-summary strong,
.swiss-history-card small,
.swiss-history-card strong {
  display: block;
}

.swiss-status-mark,
.swiss-history-status i {
  display: inline-block;
  margin-right: 6px;
  border-radius: 50%;
}

.swiss-ledger-row.unused .swiss-status-mark {
  background: #d58a00;
}

.swiss-ledger-row.failed .swiss-status-mark,
.swiss-ledger-row.invalid .swiss-status-mark,
.swiss-history-row.failed .swiss-history-status i,
.swiss-history-row.expired .swiss-history-status i {
  background: #d44242;
}

.swiss-history-row.failed,
.swiss-history-row.expired {
  color: #818a94;
  background: #fafafa;
}

.swiss-history-card small {
  color: #929ca6;
  font-size: 7px;
}

.swiss-history-empty {
  display: grid;
  place-content: center;
  text-align: center;
}

.swiss-history-tools {
  display: grid;
  align-items: center;
}

.swiss-search-wrap {
  width: 100%;
  min-width: 0;
}

.swiss-search-wrap input {
  width: 100%;
  min-width: 0;
  flex: 1;
}

.swiss-pagination > span {
  color: #8a95a0;
  font-size: 8px;
}

.swiss-mono {
  font-family: "SFMono-Regular", "Cascadia Mono", Consolas, monospace;
  font-variant-numeric: tabular-nums;
}

.swiss-timer-row strong.expired {
  color: #d44242;
}

.swiss-toast {
  position: fixed;
  z-index: 300;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.swiss-toast.show {
  opacity: 1;
  transform: translateY(0);
}
/* Simple workspace redesign */
body.swiss-front-active {
  color: #18202a;
  background: #f3f5f7;
  font-family: "Avenir Next", "PingFang SC", "Microsoft YaHei UI", sans-serif;
}

#frontPage.front-swiss {
  min-height: 100dvh;
  color: #18202a;
}

.swiss-masthead {
  width: 100%;
  min-height: 64px;
  display: flex;
  align-items: center;
  position: static;
  padding: 0 max(22px, calc((100vw - 1080px) / 2));
  border: 0;
  border-bottom: 1px solid #e2e6ea;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.swiss-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
}

.swiss-brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  color: #fff;
  background: #2563eb;
  box-shadow: none;
  font-family: "Avenir Next", sans-serif;
  font-size: 16px;
  font-weight: 800;
}

.swiss-brand-copy {
  color: #18202a;
  font-size: 14px;
  font-weight: 750;
  line-height: 1;
  letter-spacing: 0;
}

.swiss-masthead-center {
  display: none;
}

.swiss-service {
  margin-left: auto;
  padding: 0;
  border: 0;
  color: #6b7683;
  font-size: 11px;
  letter-spacing: 0;
}

.swiss-service i {
  width: 7px;
  height: 7px;
  background: #16a16d;
  box-shadow: 0 0 0 4px rgba(22, 161, 109, 0.1);
}

.swiss-layout {
  width: min(1080px, calc(100% - 32px));
  display: block;
  margin: 0 auto;
  padding: 24px 0 40px;
}

.swiss-console {
  min-height: 0;
  position: static;
  padding: 24px;
  border: 1px solid #e0e4e8;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(25, 35, 45, 0.055);
}

.swiss-section-index {
  display: none;
}

.swiss-console h1 {
  margin: 0;
  color: #18202a;
  font-family: "Avenir Next", "PingFang SC", sans-serif;
  font-size: 25px;
  font-weight: 750;
  line-height: 1.3;
  letter-spacing: -0.025em;
}

.swiss-console h1 br {
  display: none;
}

.swiss-console h1 span {
  color: inherit;
}

.swiss-lead {
  max-width: none;
  margin: 6px 0 20px;
  color: #74808c;
  font-size: 12px;
  line-height: 1.6;
}

.swiss-mode-switch {
  width: 276px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0 0 20px;
  padding: 3px;
  border: 0;
  border-radius: 10px;
  background: #f0f2f5;
}

.swiss-mode-switch button,
.swiss-mode-switch button + button {
  min-height: 34px;
  border: 0;
  border-radius: 8px;
  color: #66717e;
  background: transparent;
  font-size: 11px;
  font-weight: 650;
}

.swiss-mode-switch button.active {
  color: #18202a;
  background: #fff;
  box-shadow: 0 1px 5px rgba(23, 31, 40, 0.1);
}

.swiss-field-group {
  margin-top: 16px;
}

.swiss-field-group.query-disabled {
  display: none;
}

.swiss-label-row {
  margin-bottom: 7px;
}

.swiss-label-row label {
  color: #35404c;
  font-size: 11px;
  font-weight: 650;
}

.swiss-label-row span {
  color: #9aa3ad;
  font-family: inherit;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0;
}

#frontPage .swiss-channel-list {
  height: auto;
  max-height: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
  gap: 8px;
  padding: 0;
  overflow: visible;
}

.swiss-channel,
.swiss-channel-skeleton {
  min-height: 48px;
  grid-template-columns: 24px 1fr auto;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid #dce1e6;
  border-radius: 10px;
  color: #27313c;
  background: #fff;
}

.swiss-channel:hover:not(:disabled) {
  border-color: #9eb7f5;
  background: #f8faff;
}

.swiss-channel.selected {
  color: #1d4ed8;
  border-color: #2563eb;
  background: #f4f7ff;
  box-shadow: inset 0 0 0 1px #2563eb;
}

.swiss-channel-index {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: #617080;
  background: #eef1f4;
  font-size: 8px;
}

.swiss-channel.selected .swiss-channel-index {
  color: #fff;
  background: #2563eb;
}

.swiss-channel strong {
  font-family: "SFMono-Regular", "Cascadia Mono", monospace;
  font-size: 12px;
}

.swiss-channel small {
  display: none;
}

.swiss-stock {
  padding: 3px 6px;
  border: 0;
  border-radius: 999px;
  color: #087a55;
  background: #eaf8f2;
  font-size: 8px;
}

#frontPage .front-textarea {
  min-height: 112px;
  max-height: 220px;
  padding: 11px 13px;
  border: 1px solid #dce1e6;
  border-radius: 11px;
  color: #27313c;
  background: #fafbfc;
  font-family: "SFMono-Regular", "Cascadia Mono", Consolas, monospace;
  font-size: 11px;
  line-height: 1.7;
}

#frontPage .front-textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.swiss-input-note {
  margin-top: 6px;
  color: #939da7;
  font-size: 9px;
}

.swiss-input-note kbd {
  border: 0;
  border-radius: 5px;
  background: #f0f2f5;
}

#frontPage .front-msg {
  min-height: 22px;
  margin: 6px 230px 0 0;
  color: #d63a3a;
  font-size: 10px;
}

#frontPage .primary-action {
  width: 210px;
  height: 42px;
  margin: -28px 0 0 auto;
  display: grid;
  grid-template-columns: 18px 1fr 18px;
  padding: 0 13px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: #2563eb;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
}

#frontPage .primary-action:hover:not(:disabled) {
  border: 0;
  background: #1d4ed8;
  box-shadow: 0 5px 14px rgba(37, 99, 235, 0.23);
}

.swiss-privacy-note {
  display: none;
}

.swiss-workspace {
  min-width: 0;
}

.swiss-batch-panel,
.swiss-history-panel {
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid #e0e4e8;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(25, 35, 45, 0.045);
}

.swiss-batch-panel:has(#frontResults.hidden) {
  display: none;
}

.swiss-batch-panel {
  min-height: 0;
  border-bottom: 1px solid #e0e4e8;
}

.swiss-panel-head {
  min-height: 64px;
  padding: 13px 18px;
  border-bottom: 1px solid #e7eaed;
}

.swiss-panel-head h2 {
  margin: 0;
  color: #202a35;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
}

.swiss-count {
  margin-left: 5px;
  padding: 2px 6px;
  border-radius: 999px;
  color: #2563eb;
  background: #edf3ff;
  font-family: inherit;
  font-size: 9px;
}

.swiss-panel-actions {
  gap: 7px;
}

.swiss-outline-btn,
.swiss-black-btn {
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid #dce1e6;
  border-radius: 8px;
  color: #475361;
  background: #fff;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0;
}

.swiss-black-btn {
  color: #fff;
  border-color: #2563eb;
  background: #2563eb;
}

.swiss-outline-btn:hover,
.swiss-black-btn:hover {
  color: #fff;
  border-color: #1d4ed8;
  background: #1d4ed8;
}

#frontPage .front-result {
  min-height: 0;
}

.swiss-empty-state {
  display: none;
}

.swiss-results {
  animation: simple-fade 180ms ease both;
}

.swiss-batch-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid #e7eaed;
  background: #fafbfc;
}

.swiss-batch-summary > div {
  min-height: 55px;
  padding: 9px 11px;
  border: 1px solid #e4e8ec;
  border-radius: 10px;
  background: #fff;
}

.swiss-batch-summary span {
  color: #89939e;
  font-size: 8px;
  letter-spacing: 0;
}

.swiss-batch-summary strong {
  margin-top: 3px;
  color: #27313c;
  font-family: inherit;
  font-size: 20px;
  font-weight: 700;
}

.swiss-batch-summary .alert strong {
  color: #dc3c3c;
}

.swiss-batch-summary p {
  grid-column: 1 / -1;
  margin: 0;
  padding: 0 2px;
  color: #7f8994;
  font-size: 9px;
}

.swiss-ledger-wrap,
.swiss-history-table-wrap {
  overflow-x: auto;
}

.swiss-ledger-row {
  min-width: 720px;
  min-height: 44px;
  grid-template-columns: 48px minmax(140px, 1.1fr) 115px minmax(190px, 1.5fr) 68px;
  border-bottom: 1px solid #edf0f2;
  color: #46515e;
  font-size: 9px;
}

.swiss-ledger-row > span {
  padding: 7px 10px;
}

.swiss-ledger-head {
  min-height: 30px;
  color: #84909b;
  background: #fff;
  font-size: 8px;
  letter-spacing: 0;
}

.swiss-ledger-row.selectable:hover,
.swiss-ledger-row.selected {
  background: #f7f9fc;
}

.swiss-ledger-row.selected {
  box-shadow: inset 3px 0 0 #2563eb;
}

.swiss-status-mark,
.swiss-history-status i {
  width: 6px;
  height: 6px;
  background: #16a16d;
}

.swiss-copy-mini {
  min-height: 25px;
  padding: 0 8px;
  border: 1px solid #dce1e6;
  border-radius: 7px;
  color: #4f5d6b;
  background: #fff;
  font-family: inherit;
  font-size: 8px;
}

.swiss-copy-mini:hover {
  color: #2563eb;
  border-color: #9eb7f5;
  background: #f4f7ff;
}

.swiss-card-section {
  border-top: 1px solid #e7eaed;
}

.swiss-card-toolbar {
  min-height: 46px;
  padding: 0 18px;
  color: #35404c;
  background: #f8f9fb;
}

.swiss-card-toolbar span,
.swiss-card-toolbar strong {
  font-size: 9px;
  letter-spacing: 0;
}

.swiss-card-toolbar button {
  min-height: 27px;
  padding: 0 9px;
  border: 1px solid #dce1e6;
  border-radius: 7px;
  color: #4d5966;
  background: #fff;
  font-size: 8px;
}

.swiss-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 14px 18px 18px;
  background: #fff;
}

.swiss-virtual-card {
  display: none;
}

.swiss-data-sheet {
  overflow: hidden;
  border: 1px solid #e0e4e8;
  border-radius: 11px;
}

.swiss-sheet-head {
  min-height: 38px;
  padding: 0 11px;
  border-bottom: 1px solid #e5e9ec;
  background: #fafbfc;
}

.swiss-sheet-head strong {
  color: #33404d;
  font-size: 10px;
}

.swiss-sheet-head button {
  color: #2563eb;
  font-size: 8px;
}

.swiss-data-row {
  min-height: 32px;
  grid-template-columns: 90px 1fr;
  padding: 0 11px;
  border-bottom: 1px solid #edf0f2;
}

.swiss-data-row span {
  color: #8b96a1;
  font-size: 8px;
  letter-spacing: 0;
}

.swiss-data-row strong {
  color: #34404d;
  font-size: 9px;
  font-weight: 600;
}

button.swiss-data-row:hover {
  background: #f8faff;
}

.swiss-timer-row strong {
  color: #078659;
}

.swiss-history-panel {
  min-height: 0;
}

.swiss-history-titlebar {
  border-bottom: 1px solid #e7eaed;
}

.swiss-history-tools {
  min-height: 52px;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 16px;
  padding: 8px 18px;
  border: 0;
  border-bottom: 1px solid #e7eaed;
  background: #fff;
}

.swiss-search-wrap span {
  color: #8b96a1;
  font-size: 17px;
}

.swiss-search-wrap input {
  height: 32px;
  padding: 0 10px;
  border: 1px solid #dfe4e8;
  border-radius: 8px;
  color: #35404c;
  background: #fafbfc;
  font-size: 9px;
}

.swiss-history-filters {
  gap: 3px;
  padding: 3px;
  border: 0;
  border-radius: 8px;
  background: #f0f2f5;
}

.swiss-history-filters button,
.swiss-history-filters button + button {
  height: 27px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  color: #6f7a86;
  background: transparent;
  font-size: 8px;
}

.swiss-history-filters button.active {
  color: #28323d;
  background: #fff;
  box-shadow: 0 1px 4px rgba(25, 34, 43, 0.1);
}

.swiss-history-row {
  min-width: 880px;
  min-height: 48px;
  grid-template-columns: minmax(250px, 1.8fr) 86px 68px 116px 145px 158px 64px;
  border-bottom: 1px solid #edf0f2;
  color: #53606d;
  font-size: 8px;
}

.swiss-history-row > span:first-child {
  padding-left: 24px;
}

.swiss-history-head {
  min-height: 29px;
  color: #8a95a0;
  background: #fafbfc;
  font-size: 7px;
  letter-spacing: 0;
}

.swiss-history-card strong {
  color: #35404c;
  font-size: 9px;
}

.swiss-history-empty {
  min-height: 120px;
}

.swiss-history-empty span {
  color: #9aa4ae;
  font-size: 8px;
  letter-spacing: 0;
}

.swiss-history-empty strong {
  margin-top: 5px;
  color: #687480;
  font-size: 11px;
  font-weight: 550;
}

.swiss-pagination {
  min-height: 48px;
  padding: 0 18px;
  border-top: 0;
}

.swiss-pagination > div {
  gap: 3px;
  border: 0;
}

.swiss-pagination button,
.swiss-pagination button:last-child {
  width: 28px;
  height: 27px;
  border: 1px solid #e0e4e8;
  border-radius: 7px;
  color: #64717d;
  background: #fff;
  font-size: 8px;
}

.swiss-pagination button.active {
  color: #fff;
  border-color: #2563eb;
  background: #2563eb;
}

.swiss-footer {
  width: min(1080px, calc(100% - 32px));
  min-height: 46px;
  margin: 0 auto;
  padding: 0;
  color: #8a95a0;
  background: transparent;
  font-size: 8px;
  letter-spacing: 0;
}

.swiss-toast {
  right: 18px;
  bottom: 18px;
  padding: 10px 14px;
  border: 0;
  border-radius: 9px;
  color: #fff;
  background: #26313d;
  box-shadow: 0 8px 24px rgba(20, 29, 38, 0.2);
}

@keyframes simple-fade {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 760px) {
  .swiss-masthead {
    min-height: 58px;
    padding: 0 14px;
  }

  .swiss-layout {
    width: calc(100% - 20px);
    padding: 10px 0 24px;
  }

  .swiss-console {
    padding: 17px;
    border-radius: 14px;
  }

  .swiss-console h1 {
    font-size: 21px;
  }

  .swiss-mode-switch {
    width: 100%;
  }

  #frontPage .swiss-channel-list {
    grid-template-columns: 1fr;
  }

  #frontPage .front-msg {
    margin-right: 0;
  }

  #frontPage .primary-action {
    width: 100%;
    margin: 4px 0 0;
  }

  .swiss-panel-head,
  .swiss-history-titlebar {
    min-height: 58px;
    align-items: center;
    flex-direction: row;
    padding: 11px 14px;
  }

  .swiss-panel-actions {
    width: auto;
  }

  .swiss-batch-summary {
    grid-template-columns: 1fr 1fr;
    padding: 11px 14px;
  }

  .swiss-detail-grid {
    grid-template-columns: 1fr;
    padding: 11px 14px 14px;
  }

  .swiss-history-tools {
    grid-template-columns: 1fr;
    padding: 10px 14px;
  }

  .swiss-history-filters {
    width: 100%;
  }

  .swiss-history-filters button {
    flex: 1;
  }

  .swiss-footer {
    width: calc(100% - 24px);
  }
}

/* Dedicated query dialog and activation progress */
.header-query-button {
  min-height: 32px;
  margin-left: auto;
  margin-right: 20px;
  padding: 0 13px;
  border: 1px solid #d8dee5;
  border-radius: 9px;
  color: #334150;
  background: #fff;
  font-size: 10px;
  font-weight: 650;
}

.header-query-button:hover {
  color: #1d4ed8;
  border-color: #9db5f2;
  background: #f5f8ff;
}

.swiss-service {
  margin-left: 0;
}

#frontPage .primary-action {
  width: 100%;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 8px 0 0;
  border-radius: 11px;
  background: #2563eb;
  box-shadow: none;
}

#frontPage .primary-action.loading {
  display: none;
}

.activate-button-icon {
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: #2563eb;
  background: #fff;
  font-size: 10px;
  font-weight: 900;
}

#frontPage .front-msg {
  margin-right: 0;
}

.activation-progress {
  margin-top: 8px;
  padding: 12px 14px;
  border: 1px solid #d9e3fb;
  border-radius: 11px;
  background: #f6f8ff;
}

.activation-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #344254;
  font-size: 10px;
  font-weight: 650;
}

.activation-progress-head strong {
  color: #2563eb;
  font-size: 10px;
}

.activation-progress-track {
  height: 7px;
  margin-top: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #dfe6f5;
}

.activation-progress-track i {
  width: 0;
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb, #5b82ed);
  transition: width 280ms ease;
}

.activation-progress-current {
  margin-top: 7px;
  color: #7d8896;
  font-family: "SFMono-Regular", "Cascadia Mono", monospace;
  font-size: 8px;
}

body.query-modal-open {
  overflow: hidden;
}

.query-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 18px;
}

.query-modal.hidden {
  display: none !important;
}

.query-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(21, 28, 36, 0.42);
  backdrop-filter: blur(4px);
}

.query-dialog {
  width: min(680px, 100%);
  max-height: min(760px, calc(100dvh - 36px));
  position: relative;
  z-index: 1;
  overflow: hidden;
  border: 1px solid #dfe4e8;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(20, 29, 38, 0.22);
  animation: query-dialog-in 180ms ease both;
}

.query-dialog-head {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 18px;
  border-bottom: 1px solid #e6e9ec;
}

.query-dialog-head h2 {
  margin: 0;
  color: #202a35;
  font-size: 17px;
  font-weight: 720;
}

.query-dialog-head p {
  margin: 4px 0 0;
  color: #7f8994;
  font-size: 10px;
}

.query-close-button {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 9px;
  color: #687582;
  background: #f1f3f5;
  font-size: 20px;
  line-height: 1;
}

.query-dialog-body {
  max-height: calc(100dvh - 112px);
  padding: 17px 18px 19px;
  overflow-y: auto;
}

.query-input-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 7px;
  color: #4b5866;
  font-size: 10px;
  font-weight: 650;
}

.query-input-head span {
  color: #929ca6;
  font-weight: 500;
}

.query-textarea {
  width: 100%;
  min-height: 112px;
  resize: vertical;
  padding: 11px 12px;
  border: 1px solid #dce1e6;
  border-radius: 10px;
  outline: none;
  color: #33404d;
  background: #fafbfc;
  font-family: "SFMono-Regular", "Cascadia Mono", monospace;
  font-size: 10px;
  line-height: 1.65;
}

.query-textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.query-message {
  min-height: 20px;
  display: flex;
  align-items: center;
  color: #d63a3a;
  font-size: 9px;
}

.query-submit-button {
  width: 100%;
  height: 40px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: #2563eb;
  font-size: 10px;
  font-weight: 700;
}

.query-submit-button:disabled {
  opacity: 0.65;
}

.query-results:empty {
  display: none;
}

.query-results {
  margin-top: 14px;
  border: 1px solid #e1e5e9;
  border-radius: 11px;
  overflow: hidden;
}

.query-summary {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 9px 12px;
  border-bottom: 1px solid #e8ebee;
  background: #f8f9fb;
  color: #6f7a86;
  font-size: 9px;
}

.query-summary strong {
  color: #303c49;
  font-size: 12px;
}

.query-summary .ok strong {
  color: #0b8b60;
}

.query-summary .unused strong {
  color: #c17a00;
}

.query-summary .invalid strong {
  color: #d44242;
}

.query-result-actions {
  display: flex;
  gap: 7px;
  padding: 9px 12px;
  border-bottom: 1px solid #e8ebee;
}

.query-result-actions:empty {
  display: none;
}

.query-result-actions button,
.query-result-row button {
  min-height: 27px;
  padding: 0 8px;
  border: 1px solid #dbe1e6;
  border-radius: 7px;
  color: #4c5966;
  background: #fff;
  font-size: 8px;
}

.query-result-list {
  max-height: 270px;
  overflow-y: auto;
}

.query-result-row {
  min-height: 48px;
  display: grid;
  grid-template-columns: minmax(130px, 1fr) 60px minmax(150px, 1.3fr) 48px;
  align-items: center;
  gap: 9px;
  padding: 7px 11px;
  border-bottom: 1px solid #edf0f2;
  color: #62707d;
  font-size: 8px;
}

.query-result-row:last-child {
  border-bottom: 0;
}

.query-result-row > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.query-result-row.activated {
  min-height: 68px;
}

.query-result-detail {
  display: grid;
  gap: 2px;
  white-space: normal !important;
}

.query-result-detail strong {
  overflow: hidden;
  color: #394653;
  font-size: 9px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.query-result-detail small {
  color: #8a95a0;
  font-size: 7px;
  line-height: 1.45;
}

.query-status {
  width: fit-content;
  padding: 3px 6px;
  border-radius: 999px;
  color: #087a55;
  background: #eaf8f2;
}

.query-result-row.unused .query-status {
  color: #a56600;
  background: #fff4dc;
}

.query-result-row.invalid .query-status {
  color: #c53838;
  background: #fff0f0;
}

@keyframes query-dialog-in {
  from { opacity: 0; transform: translateY(8px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 620px) {
  .header-query-button {
    margin-right: 12px;
  }

  .swiss-service {
    display: none;
  }

  .query-dialog-head {
    min-height: 68px;
  }

  .query-result-row {
    grid-template-columns: minmax(120px, 1fr) 58px 44px;
  }

  .query-result-row > span:nth-child(3) {
    display: none;
  }
}
