.cq-dialog { width: min(1120px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; }
.cq-shell { display: flex; flex-direction: column; max-height: calc(100dvh - 28px); }
.cq-dialog .dialog-heading, .cq-dialog .dialog-footer { flex: 0 0 auto; }
.cq-dialog .dialog-heading p { margin-bottom: 0; line-height: 1.5; }
.cq-body { overflow: auto; padding: 18px 24px; min-height: 0; }
.cq-selection > label, .cq-controls label { font-weight: 700; }
.cq-hint { margin: 6px 0 12px; font-size: 13px; line-height: 1.6; color: #52616b; }
.cq-dialog input, .cq-dialog select { width: 100%; min-width: 0; padding: 10px 12px; border: 1px solid #bcc9d1; border-radius: 8px; background: white; color: #183342; font: inherit; }
#cq-results { border: 1px solid #bcc9d1; border-radius: 8px; max-height: 250px; overflow: auto; margin-top: 6px; }
#cq-results > p { padding: 10px; }
.cq-result-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; font-size: 13px; line-height: 1.5; }
.cq-result-tools > div { display: flex; flex-wrap: wrap; gap: 6px; }
.cq-result-tools[hidden] { display: none; }
.cq-option { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: white; color: #183342; border: 0; border-bottom: 1px solid #edf1f3; padding: 10px 14px; cursor: pointer; font: inherit; }
.cq-option.active, .cq-option:hover, .cq-option[aria-selected="true"] { background: #edf6f9; }
.cq-option[aria-disabled="true"] { background: #faf2ef; color: #853e32; }
.cq-option strong, .cq-option small { display: block; overflow-wrap: anywhere; }
.cq-option small { margin-top: 4px; color: #62717b; }
.cq-check { font-size: 22px; color: #25617c; }
.cq-selected-title { display: flex; align-items: center; justify-content: space-between; margin: 14px 0 8px; }
#cq-selected { display: flex; flex-wrap: wrap; gap: 6px; max-height: 150px; overflow: auto; }
.cq-chip { display: inline-flex; gap: 8px; max-width: 100%; align-items: center; border: 1px solid #bbd4df; border-radius: 7px; padding: 8px 10px; background: #eff7fa; color: #244c60; font: inherit; cursor: pointer; }
.cq-chip span { overflow-wrap: anywhere; min-width: 0; }
.cq-chip b { font-size: 18px; }
.cq-controls { display: grid; grid-template-columns: minmax(0, 2fr) minmax(120px, 1fr) auto; align-items: end; gap: 14px; margin-top: 18px; }
.cq-controls select { display: block; margin-top: 6px; }
.cq-controls button { min-height: 43px; }
#cq-status { background: #edf6f9; padding: 10px 12px; border-radius: 8px; line-height: 1.6; }
#cq-status.cq-error { background: #fff0ec; color: #9b3024; }
.cq-preview-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid #dae2e7; padding-top: 18px; margin-top: 12px; }
.cq-preview-heading h3 { font-size: 18px; margin: 0 0 6px; overflow-wrap: anywhere; }
.cq-preview-heading p { font-size: 13px; line-height: 1.6; margin: 0 0 10px; }
.cq-exports { display: flex; flex-shrink: 0; gap: 8px; }
.cq-filter { display: block; margin: 12px 0; font-size: 13px; }
.cq-filter input { display: block; margin-top: 6px; }
.cq-table { table-layout: fixed; width: 100%; border-collapse: collapse; font-size: 14px; }
.cq-table th { background: #edf2f5; text-align: left; }
.cq-table th, .cq-table td { padding: 11px 9px; border-bottom: 1px solid #dce5ea; vertical-align: top; overflow-wrap: anywhere; }
.cq-table th:nth-child(1) { width: 14%; }
.cq-table th:nth-child(2) { width: 44%; }
.cq-table th:nth-child(3) { width: 21%; }
.cq-table small { display: block; margin-top: 6px; line-height: 1.5; }
.cq-price-up { color: #a34219; } .cq-price-down { color: #216547; }
@media(max-width:650px) {
  .cq-body { padding: 14px; }
  .cq-dialog input, .cq-dialog select { font-size: 16px; }
  .cq-controls { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .cq-preview-heading { align-items: stretch; flex-direction: column; }
  .cq-exports { flex-wrap: wrap; }
  .cq-table { font-size: 12px; }
  .cq-table th, .cq-table td { padding: 8px 4px; }
  .cq-table th:nth-child(1) { width: 17%; }
  .cq-table th:nth-child(2) { width: 35%; }
  .cq-table th:nth-child(3) { width: 25%; }
}
