.wcqt-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
  color: #1e293b;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.5;
}

.wcqt-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Search Controls */
.wcqt-search-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.wcqt-search-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
}

.wcqt-field-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.wcqt-input-flex {
  flex: 3;
  min-width: 260px;
}

.wcqt-btn-flex {
  min-width: 140px;
}

.wcqt-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #475569;
}

.wcqt-input-wrap {
  display: flex;
  width: 100%;
}

.wcqt-input {
  height: 44px;
  padding: 0 0.85rem;
  font-size: 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  color: inherit;
  box-sizing: border-box;
  width: 100%;
  font-family: monospace, monospace;
}

.wcqt-input:focus {
  outline: 2px solid #7c3aed;
  outline-offset: 1px;
  border-color: #7c3aed;
}

.wcqt-btn {
  height: 44px;
  min-height: 44px;
  padding: 0 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  box-sizing: border-box;
  transition: background-color 0.15s ease;
}

.wcqt-btn-primary {
  background: #7c3aed;
  color: #ffffff;
}

.wcqt-btn-primary:hover {
  background: #6d28d9;
}

/* Presets */
.wcqt-presets-row {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid #f1f5f9;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.wcqt-presets-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #64748b;
  margin-right: 0.25rem;
}

.wcqt-pills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.wcqt-pill-btn {
  height: 44px;
  padding: 0 0.85rem;
  font-size: 0.82rem;
  font-weight: 500;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}

.wcqt-pill-btn:hover {
  background: #e2e8f0;
}

.wcqt-pill-btn.active {
  background: #7c3aed;
  color: #ffffff;
  border-color: #7c3aed;
}

/* Output Grid Layout */
.wcqt-output-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Pod Cards */
.wcqt-pod-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.wcqt-pod-card.highlight {
  border-left: 4px solid #7c3aed;
}

.wcqt-pod-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #f1f5f9;
}

.wcqt-pod-tag {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #7c3aed;
}

.wcqt-copy-btn {
  height: 44px;
  padding: 0 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 6px;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
  cursor: pointer;
}

.wcqt-copy-btn:hover {
  background: #e2e8f0;
}

.wcqt-pod-content {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.wcqt-math-expr {
  font-size: 1.25rem;
  font-family: serif;
}

.wcqt-plain-repr {
  font-size: 0.92rem;
  color: #64748b;
  margin: 0;
}

.wcqt-primary-result {
  font-size: 1.6rem;
  font-weight: 700;
  color: #0f172a;
  font-family: monospace, monospace;
}

.wcqt-alt-form {
  font-size: 0.92rem;
  color: #475569;
  background: #f8fafc;
  padding: 0.6rem 0.85rem;
  border-radius: 6px;
}

/* Steps List */
.wcqt-steps-list {
  margin: 0;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.92rem;
  color: #334155;
}

.wcqt-steps-list li {
  line-height: 1.5;
}

/* Plot & Properties */
.wcqt-plot-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 260px;
}

.wcqt-svg-graph {
  width: 100%;
  max-width: 600px;
  height: auto;
}

.wcqt-props-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.wcqt-prop-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.wcqt-prop-name {
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
}

.wcqt-prop-val {
  font-size: 0.9rem;
  font-weight: 600;
  color: #0f172a;
}

/* Ad Containers */
.wcqt-ad-container {
  min-height: 280px;
  overflow: hidden;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 0.85rem;
  margin: 1.5rem 0;
}

/* In-Cluster Links */
.wcqt-related-section {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem;
}

.wcqt-related-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 1rem;
  color: #0f172a;
}

.wcqt-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.wcqt-related-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease;
}

.wcqt-related-card:hover {
  border-color: #7c3aed;
}

.wcqt-related-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #7c3aed;
}

.wcqt-related-desc {
  font-size: 0.82rem;
  color: #64748b;
}

.wcqt-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
