.quote-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr));
  gap: .55rem;
  margin-bottom: .75rem;
  scroll-margin-top: 1rem;
}

.quote-summary {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: .14rem;
  min-width: 0;
  padding: .62rem .7rem;
  border: 1px solid var(--input-border);
  border-radius: .65rem;
  background: #fff;
  color: var(--green-deep);
  font: inherit;
  text-align: start;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.quote-summary:hover { background: var(--green-pale); }
.quote-summary-name { font-weight: 700; }
.quote-summary-team { color: var(--muted); font-size: .8125rem; }
.quote-summary strong { font-size: clamp(1rem, 2vw, 1.2rem); font-variant-numeric: tabular-nums; }
.quote-summary .sample-badge { font-size: .75rem; }

.quote-result-list {
  display: grid;
  gap: .25rem;
  margin: 0 0 .72rem;
  padding-inline-start: 1.2rem;
  color: var(--muted);
  font-size: .875rem;
  overflow-wrap: anywhere;
}

#quote-mismatches { color: var(--amber); }
.quote-tools, .quote-demo-controls { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; }
.quote-tools { justify-content: space-between; margin-block: .85rem; }
.quote-demo-controls select { width: auto; max-width: 100%; }
#add-quote:disabled { opacity: .55; cursor: default; }
.quote-card { scroll-margin-top: 1rem; }
.quote-remove { margin-inline-start: auto; }
.quote-coverage { margin-top: .5rem; white-space: pre-line; overflow-wrap: anywhere; }
.quote-card > .quote-fields > .field:last-child { grid-column: auto; }
.quote-terms { margin-block: .85rem .7rem; }
.quote-terms > summary { font-size: .875rem; font-weight: 700; cursor: pointer; }
.quote-terms .quote-fields { margin-top: .55rem; }
.quote-terms textarea { padding: .42rem .58rem; resize: vertical; }
.quote-notes-field { grid-column: 1 / -1; }
.quote-base-field { margin-top: .75rem; }
.quote-card .fee-row { grid-template-columns: minmax(0, 1fr) minmax(6.5rem, 1fr); }

.quote-charge-inputs {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(7rem, 1.2fr) minmax(2.75rem, .55fr);
  gap: .4rem;
}

.quote-card .fee-inputs { grid-column: 1 / -1; }
.quote-to-overview { margin-top: .6rem; }
.quote-share { margin-top: 1rem; }
.quote-share textarea { display: block; padding: .6rem; resize: vertical; background: #f7f9f7; }
#quote-copy-status { margin-top: .4rem; }
#quote-copy-status:empty { display: none; }

@media (min-width: 66rem) {
  .quote-card .fee-row { grid-template-columns: minmax(3.5rem, .62fr) minmax(6.5rem, .85fr) minmax(0, 2fr); }
  .quote-card .fee-inputs { grid-column: auto; }
}

@media (max-width: 31rem) {
  .quote-demo-controls select { flex: 1; min-width: 8rem; }
  .quote-demo-controls { width: 100%; }
  .quote-demo-controls .button { padding-inline: .58rem; }
}
