body .wp-site-blocks,
body main,
body .wp-block-post-content,
body .entry-content,
body .site-content,
body .content-area,
body .ast-container,
body .inside-article {
  max-width: 100% !important;
}

.mlsqt-shell {
  min-height: 100vh;
  background: linear-gradient(135deg, rgba(10,15,28,.94), rgba(17,24,39,.88));
  background-size: cover;
  background-position: center;
  padding: 32px 20px 56px;
  color: #e5e7eb;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.mlsqt-wrap {
  max-width: 1380px;
  margin: 0 auto;
}

.mlsqt-header {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: center;
  margin-bottom: 24px;
}

.mlsqt-brand img {
  width: 120px;
  max-width: 100%;
  display: block;
}

.mlsqt-header-copy h2 {
  margin: 0 0 6px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
  color: #fff;
}

.mlsqt-header-copy p {
  margin: 0;
  color: #cbd5e1;
  font-size: 16px;
}

.mlsqt-card {
  background: rgba(12, 18, 31, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 24px;
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 40px rgba(0,0,0,.22);
  padding: 24px;
}

.mlsqt-searchbar {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
}

.mlsqt-searchbar input {
  width: 100%;
  min-width: 0;
  background: rgba(17,24,39,.92);
  color: #fff;
  border: 1px solid rgba(148,163,184,.22);
  border-radius: 16px;
  padding: 18px 18px;
  font-size: 18px;
}

.mlsqt-searchbar button,
.mlsqt-chip {
  appearance: none;
  border: 0;
  cursor: pointer;
}

.mlsqt-searchbar button {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  border-radius: 16px;
  padding: 18px 24px;
  font-weight: 800;
  font-size: 16px;
  white-space: nowrap;
}

.mlsqt-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.mlsqt-dev-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.mlsqt-chip {
  background: rgba(30,41,59,.92);
  color: #e5e7eb;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 13px;
  line-height: 1.2;
}

.mlsqt-chip-utility {
  border: 1px solid rgba(148,163,184,.22);
}

.mlsqt-statusbar,
.mlsqt-detail-pill,
.mlsqt-side-card,
.mlsqt-debug {
  background: rgba(15,23,42,.88);
  border: 1px solid rgba(148,163,184,.18);
  border-radius: 14px;
}

.mlsqt-statusbar {
  padding: 12px 14px;
  margin-bottom: 14px;
  color: #cbd5e1;
}

.mlsqt-statusbar[data-state="error"] { color: #fecaca; border-color: #7f1d1d; }
.mlsqt-statusbar[data-state="success"] { color: #c7f9cc; border-color: #14532d; }
.mlsqt-statusbar[data-state="loading"] { color: #dbeafe; border-color: #1d4ed8; }

.mlsqt-details {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.mlsqt-detail-pill {
  padding: 10px 14px;
  color: #cbd5e1;
}

.mlsqt-detail-pill.is-warn {
  color: #fde68a;
}

.mlsqt-panels {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 420px);
  gap: 18px;
}

.mlsqt-panel-side {
  display: grid;
  gap: 18px;
}

.mlsqt-side-card {
  padding: 16px;
}

.mlsqt-side-card h3 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 16px;
}

.mlsqt-side-content {
  display: grid;
  gap: 10px;
}

.mlsqt-kv {
  display: grid;
  gap: 4px;
}

.mlsqt-kv span {
  color: #94a3b8;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.mlsqt-kv strong {
  color: #fff;
  font-size: 14px;
}

.mlsqt-side-content pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  color: #cbd5e1;
  font-size: 13px;
}

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

.mlsqt-result-card {
  background: rgba(15,23,42,.9);
  border: 1px solid rgba(148,163,184,.18);
  border-radius: 20px;
  overflow: hidden;
}

.mlsqt-ranking-card {
  min-height: 100%;
}

.mlsqt-result-media {
  aspect-ratio: 16 / 10;
  background: #0f172a;
}

.mlsqt-result-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mlsqt-no-image {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
}

.mlsqt-result-body {
  padding: 16px;
}

.mlsqt-result-body h3 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.2;
  color: #fff;
}

.mlsqt-price {
  font-size: 28px;
  line-height: 1;
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
}

.mlsqt-meta {
  color: #a8b5cc;
  font-size: 14px;
  margin-top: 5px;
}

.mlsqt-raw-shell {
  margin-top: 18px;
  background: rgba(15,23,42,.88);
  border: 1px solid rgba(148,163,184,.18);
  border-radius: 18px;
  padding: 16px;
}

.mlsqt-raw-shell h3 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 16px;
}

.mlsqt-raw-response {
  margin: 0;
  max-height: 320px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  color: #cbd5e1;
  font-size: 12px;
}

@media (max-width: 1024px) {
  .mlsqt-panels {
    grid-template-columns: 1fr;
  }

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

.mlsqt-empty {
  color: #94a3b8;
  padding: 16px 0;
}

.mlsqt-shell button.is-processing,
.mlsqt-shell button:disabled.is-processing {
  position: relative;
  cursor: wait;
  opacity: .78;
}

.mlsqt-shell button.is-processing::before {
  content: "";
  display: inline-block;
  width: 13px;
  height: 13px;
  margin-right: 8px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-top-color: transparent;
  vertical-align: -2px;
  animation: mlsqt-spin .75s linear infinite;
}

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

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

@media (max-width: 782px) {
  .mlsqt-shell { padding: 22px 14px 30px; }
  .mlsqt-header { grid-template-columns: 1fr; }
  .mlsqt-searchbar { grid-template-columns: 1fr; }
  .mlsqt-results { grid-template-columns: 1fr; }
  .mlsqt-searchbar input,
  .mlsqt-searchbar button { font-size: 16px; padding: 16px; }
}
