:root {
  --bg-base: #eef4ff;
  --bg-accent: #dce9ff;
  --panel: rgba(255, 255, 255, 0.92);
  --panel-strong: #ffffff;
  --line: rgba(44, 80, 141, 0.12);
  --text-main: #14213d;
  --text-soft: #60708f;
  --brand: #2563eb;
  --brand-deep: #1d4ed8;
  --shadow: 0 24px 60px rgba(30, 64, 175, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.18), transparent 28%),
    radial-gradient(circle at 85% 10%, rgba(14, 165, 233, 0.16), transparent 22%),
    linear-gradient(180deg, #f7faff 0%, var(--bg-base) 48%, var(--bg-accent) 100%);
}

.page-shell {
  width: min(1920px, 98.75vw);
  margin: 0 auto;
  padding: 16px 0;
}

.app-layout {
  display: grid;
  grid-template-columns: 376px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.sidebar {
  display: grid;
  grid-template-rows: minmax(320px, auto) minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  position: sticky;
  top: 16px;
  height: calc(100vh - 32px);
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  overflow-x: hidden;
  align-items: start;
  align-self: start;
  padding-inline: 6px;
}

.content-area {
  min-width: 0;
}

.panel,
.table-panel {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.panel,
.table-panel {
  padding: 20px;
}

.panel-query {
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: 320px;
  overflow: visible;
  padding-bottom: 22px;
}

.panel-filter {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  max-height: none;
  overflow: visible;
  flex: 1 1 auto;
}

.panel-summary-filter {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  max-height: none;
  overflow: visible;
  flex: 1 1 auto;
}

.table-panel {
  height: calc(100vh - 32px);
  min-height: calc(100vh - 32px);
  overflow: hidden;
}

.panel-head,
.table-head {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.panel-kicker {
  margin: 0 0 8px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.panel-query h2,
.panel-query .panel-badge,
.panel-query .field-label {
  display: none;
}

.panel-query .panel-kicker {
  margin-bottom: 0;
}

.panel-query .panel-head-inline {
  justify-content: flex-start;
  margin-bottom: 4px;
}

.query-concurrency-control {
  justify-content: flex-start;
  display: none;
}

.panel-head h2,
.table-head h2 {
  margin: 0;
  font-size: 22px;
}

.panel-filter .panel-head h2 {
  font-size: 18px;
}

.panel-summary-filter .panel-head h2 {
  font-size: 18px;
}

.summary-clear-button {
  min-width: 58px;
  color: #475569;
  background: rgba(255, 255, 255, 0.9);
}

.summary-clear-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.confirm-dialog {
  border: 0;
  padding: 0;
  background: transparent;
}

.confirm-dialog::backdrop {
  background: rgba(15, 23, 42, 0.34);
  backdrop-filter: blur(3px);
}

.confirm-dialog-card {
  width: min(420px, calc(100vw - 32px));
  margin: 0;
  padding: 24px 24px 20px;
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}

.confirm-dialog-card h3 {
  margin: 0;
  color: var(--text-main);
  font-size: 20px;
}

.confirm-dialog-message {
  margin: 12px 0 0;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.7;
}

.confirm-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.confirm-dialog-actions .primary-button {
  min-width: 92px;
}

.workbench-dialog {
  border: 0;
  padding: 0;
  background: transparent;
}

.workbench-dialog::backdrop {
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(4px);
}

.workbench-card {
  width: min(1120px, calc(100vw - 28px));
  height: min(88vh, 940px);
  padding: 24px;
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 28px 72px rgba(15, 23, 42, 0.2);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.workbench-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.workbench-head h3 {
  margin: 0;
  font-size: 24px;
  color: var(--text-main);
}

.workbench-subtitle {
  margin: 10px 0 0;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.7;
}

.workbench-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid rgba(37, 99, 235, 0.08);
  border-radius: 18px;
  background: #f8fbff;
}

.workbench-status {
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.6;
}

.workbench-toolbar-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.workbench-body {
  flex: 1 1 auto;
  overflow: auto;
  display: grid;
  gap: 16px;
  padding-right: 6px;
}

.workbench-empty {
  padding: 32px 20px;
  text-align: center;
  border: 1px dashed rgba(37, 99, 235, 0.14);
  border-radius: 18px;
  color: var(--text-soft);
  background: rgba(248, 250, 252, 0.9);
}

.workbench-carrier {
  border: 1px solid rgba(37, 99, 235, 0.1);
  border-radius: 22px;
  background: #ffffff;
  overflow: hidden;
}

.workbench-carrier-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 18px 14px;
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.88), rgba(255, 255, 255, 0.98));
  border-bottom: 1px solid rgba(37, 99, 235, 0.08);
}

.workbench-carrier-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.workbench-carrier-title h4 {
  margin: 0;
  font-size: 20px;
}

.workbench-code {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--brand-deep);
  font-size: 12px;
  font-weight: 700;
}

.workbench-carrier-meta {
  margin: 8px 0 0;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.7;
}

.workbench-switches {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.workbench-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(20, 33, 61, 0.06);
  color: var(--text-main);
  font-size: 13px;
  font-weight: 600;
}

.workbench-switch input {
  width: 16px;
  height: 16px;
}

.workbench-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 18px;
}

.workbench-block {
  border: 1px solid rgba(37, 99, 235, 0.08);
  border-radius: 18px;
  padding: 16px;
  background: rgba(248, 250, 252, 0.76);
}

.workbench-block.block-full {
  grid-column: 1 / -1;
}

.workbench-block h5 {
  margin: 0;
  font-size: 16px;
}

.workbench-block-tip {
  margin: 8px 0 0;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.6;
}

.workbench-block-list {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.7;
}

.workbench-fields {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.workbench-field {
  display: grid;
  gap: 6px;
}

.workbench-field label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
}

.workbench-field small {
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.5;
}

.workbench-field input,
.workbench-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-radius: 14px;
  background: #fff;
  color: var(--text-main);
  font: inherit;
  outline: none;
}

.workbench-field textarea {
  min-height: 104px;
  resize: vertical;
  line-height: 1.6;
}

.workbench-field input:focus,
.workbench-field textarea:focus {
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}

.panel-filter .panel-head > div {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.panel-filter .panel-head .panel-kicker {
  order: 2;
  margin-bottom: 0;
}

.panel-filter .panel-head h2 {
  order: 1;
}

.panel-summary-filter .panel-head > div {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.panel-summary-filter .panel-head .panel-kicker {
  order: 2;
  margin-bottom: 0;
}

.panel-summary-filter .panel-head h2 {
  order: 1;
}

.panel-head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.panel-badge,
.result-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.panel-badge {
  background: rgba(20, 33, 61, 0.06);
  color: var(--text-soft);
}

#active-filter-text {
  display: none;
}

.query-form {
  display: flex;
  flex-direction: column;
  flex: initial;
  min-height: auto;
  margin-top: 14px;
  height: auto;
}

.field-label {
  display: block;
  margin-bottom: 12px;
  font-weight: 700;
}

.tracking-input-wrap {
  position: relative;
}

.query-form textarea {
  width: 100%;
  min-height: 168px;
  flex: initial;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel-strong);
  color: var(--text-main);
  font: inherit;
  font-size: 14px;
  line-height: 1.75;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.query-form textarea:focus {
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.12);
  transform: translateY(-1px);
}

.tracking-count {
  position: absolute;
  right: 14px;
  bottom: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(20, 33, 61, 0.06);
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.4;
  pointer-events: none;
}

.query-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  margin-top: 14px;
}

.query-actions button {
  flex: 1 1 50%;
  min-width: 0;
}

button {
  border: 0;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 14px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(29, 78, 216, 0.16);
}

button:disabled {
  opacity: 0.72;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.primary-button {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
}

.secondary-button {
  color: var(--brand-deep);
  background: rgba(37, 99, 235, 0.1);
}

.ghost-button {
  color: var(--text-main);
  background: rgba(20, 33, 61, 0.06);
}

.ghost-button-inline {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
  box-shadow: none;
}

.ghost-button-inline:hover {
  box-shadow: none;
}

.helper-text {
  margin: 12px 0 0;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.6;
}

.events-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  max-height: 420px;
  overflow: auto;
  padding-right: 4px;
}

.event-card {
  padding: 14px;
  border: 1px solid rgba(37, 99, 235, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
}

.event-card-empty {
  color: var(--text-soft);
  text-align: center;
}

.event-card-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.event-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--brand-deep);
  font-size: 12px;
  font-weight: 700;
}

.event-time,
.event-meta {
  color: var(--text-soft);
  font-size: 12px;
}

.event-meta {
  margin: 10px 0 0;
}

.event-preview {
  margin: 10px 0 0;
  padding: 12px;
  overflow: auto;
  border-radius: 14px;
  background: #0f172a;
  color: #dbeafe;
  font-size: 12px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

.status-filters {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 6px;
  margin-top: 12px;
  width: 100%;
  flex: 0 1 auto;
  min-height: auto;
  max-height: none;
  overflow: visible;
  padding-right: 0;
}

.summary-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  flex: 0 0 calc(33.333% - 4px);
  width: calc(33.333% - 4px);
  max-width: calc(33.333% - 4px);
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid rgba(37, 99, 235, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--text-main);
  text-align: left;
  box-shadow: none;
}

.status-chip:hover {
  border-color: rgba(37, 99, 235, 0.2);
}

.status-chip.active {
  border-color: transparent;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #fff;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
}

.status-chip-label,
.status-chip-count {
  font-weight: 700;
  font-size: 11px;
}

.status-chip-label {
  min-width: 0;
  flex: 0 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-chip-count {
  min-width: auto;
  flex: 0 0 auto;
  text-align: left;
  opacity: 0.88;
}

.summary-chip {
  min-height: 31px;
  padding-inline: 10px;
  width: 100%;
  max-width: 100%;
}

.panel-filter .status-filters .status-chip {
  min-height: 28px;
  padding-inline: 7px;
  gap: 5px;
}

.panel-filter .status-chip-label,
.panel-filter .status-chip-count {
  font-size: 12px;
}

.panel-filter .status-chip:not(.active) .status-chip-label {
  color: var(--text-main);
}

.panel-filter .status-chip:not(.active) .status-chip-count {
  color: #6b7280;
}

.panel-filter .status-chip-count {
  min-width: auto;
  flex-basis: auto;
}

.panel-summary-filter .status-filters .status-chip {
  flex: initial;
  padding-inline: 8px;
}

.panel-summary-filter .status-chip-label,
.panel-summary-filter .status-chip-count {
  font-size: 12px;
}

.panel-summary-filter .status-chip:not(.active) .status-chip-label {
  color: var(--text-main);
}

.panel-summary-filter .status-chip:not(.active) .status-chip-count {
  color: #6b7280;
}

.table-panel {
  display: flex;
  flex-direction: column;
}

.table-head-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.table-head-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.result-badge {
  min-height: 36px;
}

.summary-action-button {
  min-width: 88px;
  color: var(--brand-deep);
  background: rgba(37, 99, 235, 0.1);
}

#result-badge {
  display: none;
}

.export-button {
  min-width: 72px;
}

.config-workbench-button {
  min-width: 104px;
}

.summary-action-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.summary-action-button.is-hidden {
  display: none;
}

.table-summary {
  margin: 10px 0 0;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.7;
}

.neutral {
  background: rgba(20, 33, 61, 0.08);
  color: var(--text-soft);
}

.success {
  background: rgba(15, 159, 110, 0.14);
  color: #0b7a54;
}

.warning {
  background: rgba(217, 119, 6, 0.14);
  color: #a55e08;
}

.danger {
  background: rgba(220, 38, 38, 0.14);
  color: #b91c1c;
}

.info {
  background: rgba(37, 99, 235, 0.14);
  color: var(--brand-deep);
}

.table-wrap {
  margin-top: 18px;
  flex: 1 1 auto;
  height: calc(100vh - 220px);
  min-height: 0;
  overflow-y: auto;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.88);
}

.table-footer {
  display: flex;
  flex: 0 0 auto;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-top: 14px;
}

.pagination-summary {
  color: var(--text-soft);
  font-size: 13px;
}

.pagination-controls,
.pagination-nav,
.pagination-pages,
.page-size-control {
  display: flex;
  align-items: center;
}

.pagination-controls {
  gap: 14px;
  margin-left: auto;
}

.pagination-nav,
.pagination-pages,
.page-size-control {
  gap: 8px;
}

.page-size-control {
  color: var(--text-soft);
  font-size: 13px;
}

.page-size-control select {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 10px;
  background: #fff;
  color: var(--text-main);
  font: inherit;
  outline: none;
}

.pagination-page,
.pagination-ellipsis {
  min-width: 34px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 13px;
}

.pagination-page {
  border: 1px solid rgba(37, 99, 235, 0.08);
  background: rgba(255, 255, 255, 0.88);
  color: var(--text-main);
  box-shadow: none;
}

.pagination-page.active {
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #fff;
  border-color: transparent;
}

.pagination-page:hover {
  box-shadow: none;
}

.pagination-ellipsis {
  color: var(--text-soft);
}

table {
  width: 100%;
  min-width: 1060px;
  border-collapse: collapse;
}

thead th {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 15px 16px;
  color: var(--text-main);
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  background: #f5f7fb;
  white-space: nowrap;
}

.th-copy-wrap,
.copy-tools {
  display: flex;
  align-items: center;
}

.th-copy-wrap {
  gap: 10px;
}

.th-copy-wrap > span {
  color: var(--text-main);
}

.table-sort-button {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text-main);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: none;
}

.table-sort-button:hover {
  color: var(--brand-deep);
  transform: none;
  box-shadow: none;
}

.table-sort-button.active {
  color: var(--brand-deep);
}

.sort-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 700;
}

.table-sort-button.active .sort-indicator {
  color: var(--brand-deep);
}

.copy-tools {
  gap: 8px;
}

.copy-button {
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid rgba(20, 33, 61, 0.1);
  border-radius: 999px;
  background: rgba(20, 33, 61, 0.04);
  color: #6b7280;
  font-size: 11px;
  font-weight: 600;
  box-shadow: none;
}

.copy-button:hover {
  background: rgba(20, 33, 61, 0.08);
  color: #4b5563;
  transform: translateY(-1px);
  box-shadow: none;
}

tbody td {
  padding: 15px 16px;
  border-top: 1px solid rgba(44, 80, 141, 0.08);
  font-size: 14px;
  line-height: 1.65;
  vertical-align: top;
}

tbody tr:hover {
  background: rgba(37, 99, 235, 0.04);
}

.empty-row td {
  padding: 42px 18px;
  text-align: center;
  color: var(--text-soft);
}

.tracking-code {
  font-weight: 700;
  letter-spacing: 0.02em;
}

.status-text {
  color: var(--text-main);
  font-weight: 600;
  white-space: nowrap;
}

.latest-track {
  min-width: 260px;
  max-width: 440px;
}

.transport-days-cell {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.35;
}

.transport-days-main {
  color: var(--text-main);
}

.transport-days-meta {
  color: var(--text-soft);
  font-size: 12px;
  margin-top: 2px;
}

@media (max-width: 1180px) {
  .app-layout {
    grid-template-columns: 304px minmax(0, 1fr);
  }

  .query-actions button {
    flex-basis: 50%;
  }

  .status-chip {
    flex-basis: calc(50% - 3px);
    width: calc(50% - 3px);
    max-width: calc(50% - 3px);
  }

  .summary-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .app-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    top: auto;
    grid-template-rows: auto auto auto;
    gap: 8px;
    height: auto;
    max-height: none;
    overflow: visible;
    padding-inline: 0;
  }

  .panel-query,
  .panel-filter,
  .panel-summary-filter,
  .table-panel {
    height: auto;
    min-height: auto;
    max-height: none;
  }

  .table-panel {
    overflow: visible;
  }

  .panel-query {
    overflow: visible;
  }

  .query-form {
    height: auto;
    flex: initial;
  }

  .query-form textarea {
    min-height: 150px;
    flex: initial;
    resize: vertical;
  }

  .status-filters {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .status-chip {
    flex-basis: calc(50% - 3px);
    width: calc(50% - 3px);
    max-width: calc(50% - 3px);
  }

  .summary-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .table-wrap {
    height: auto;
    min-height: 0;
    max-height: none;
  }

  .query-actions button {
    flex: 1 1 calc(33.333% - 7px);
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 8px, 1400px);
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .panel,
  .table-panel {
    padding: 18px;
    border-radius: 20px;
  }

  .panel-head,
  .table-head {
    flex-direction: column;
    align-items: stretch;
  }

  .panel-head-actions {
    justify-content: space-between;
  }

  .table-head-side {
    align-items: flex-start;
    text-align: left;
  }

  .table-head-actions {
    justify-content: flex-start;
  }

  .workbench-card {
    width: min(100vw - 16px, 1120px);
    height: min(92vh, 980px);
    padding: 18px;
  }

  .workbench-head,
  .workbench-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .workbench-toolbar-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .workbench-grid {
    grid-template-columns: 1fr;
  }

  .table-concurrency-control {
    justify-content: flex-start;
  }

  .th-copy-wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .table-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .pagination-controls {
    margin-left: 0;
    flex-direction: column;
    align-items: stretch;
  }

  .pagination-nav {
    flex-wrap: wrap;
  }

  .query-actions {
    flex-direction: column;
  }

  .query-actions button {
    flex: 1 1 100%;
    width: 100%;
  }

  .status-chip {
    flex-basis: 100%;
    width: 100%;
    max-width: 100%;
  }

  .summary-filters {
    grid-template-columns: 1fr;
  }

  .panel-query {
    padding-bottom: 20px;
  }

  .query-form textarea {
    min-height: 132px;
  }
}
