.rfq {
  --rfq-line: var(--line, #465263);
  --rfq-panel: var(--panel, #1c2430);
  --rfq-accent: var(--accent, #d7ff3f);
  --rfq-ink: var(--page, #11151c);
  --rfq-muted: var(--muted, #c3ccd7);
  --rfq-text: var(--text, #f3f6f9);
  min-width: 0;
}
.rfq [hidden] { display: none !important; }
.rfq h2, .rfq h3, .rfq h4 { margin: 0 0 .75rem; }
.rfq-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(15rem, 1fr); gap: 1.25rem; }
.rfq-main, .rfq-sidebar { min-width: 0; }
.rfq-main section { min-width: 0; }
.rfq-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.rfq-field { display: grid; align-content: start; gap: .35rem; min-width: 0; }
.rfq-wide { grid-column: 1 / -1; }
.rfq label, .rfq legend { font-weight: 650; }
.rfq input, .rfq textarea, .rfq select, .rfq button { font: inherit; }
.rfq input:not([type="checkbox"]), .rfq textarea, .rfq select {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: .55rem .65rem;
  border: 1px solid var(--rfq-line);
  border-radius: 4px;
  background: var(--rfq-ink);
  color: var(--rfq-text);
  color-scheme: dark;
}
.rfq textarea { resize: vertical; }
.rfq :focus-visible { outline: 2px solid var(--rfq-accent); outline-offset: 3px; }
.rfq [aria-invalid="true"] { border-color: #ffb5a8; }
.rfq small { display: block; color: var(--rfq-muted); line-height: 1.45; }
.rfq .rfq-required { margin-inline-start: .25em; color: var(--rfq-accent); }
.rfq-check { display: flex; align-items: baseline; gap: .55rem; min-height: 44px; }
.rfq-check input { accent-color: var(--rfq-accent); flex: 0 0 auto; }
.rfq-option-grid { margin: 0; border: 1px solid var(--rfq-line); display: grid; grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); gap: .4rem; }
.rfq-progress { display: flex; gap: .5rem; flex-wrap: wrap; list-style: none; padding: 0; margin: 1rem 0; }
.rfq-progress li { margin: 0; }
.rfq button { cursor: pointer; min-height: 44px; text-align: center; }
.rfq button:disabled { opacity: .65; cursor: default; }
.rfq-progress button, .rfq-button-secondary, .rfq-button-primary {
  border: 1px solid var(--rfq-line);
  border-radius: 4px;
  padding: .5rem .75rem;
  background: var(--rfq-panel);
  color: var(--rfq-text);
  font-weight: 650;
}
.rfq-progress button[aria-current="step"], .rfq-button-primary {
  background: var(--rfq-accent);
  border-color: var(--rfq-accent);
  color: var(--rfq-ink);
}
.rfq-progress button[aria-current="step"]:focus-visible, .rfq-button-primary:focus-visible {
  outline-color: var(--rfq-text);
}
.rfq-summary, .rfq-send, .rfq-import, .rfq-errors, .rfq-variant {
  margin-block: 0 1rem;
  padding: 1rem;
  border: 1px solid var(--rfq-line);
  border-radius: 4px;
  background: var(--rfq-panel);
}
.rfq-draft, .rfq-actions, .rfq-navigation { display: flex; flex-wrap: wrap; gap: .55rem; align-items: center; }
.rfq-draft small { flex-basis: 100%; }
.rfq-local-import { margin-bottom: 1rem; }
.rfq-contact-direct { color: var(--rfq-muted); }
.rfq-tool-list { list-style: none; padding: 0; margin-block: .75rem; }
.rfq-tool-list li { display: flex; align-items: center; flex-wrap: wrap; gap: .45rem .75rem; margin-block: .3rem; }
.rfq-navigation, .rfq-ack { margin-block: 1rem; }
.rfq-variant { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; align-items: start; }
.rfq-variant legend { grid-column: 1 / -1; overflow-wrap: anywhere; }
.rfq-variant label { font-size: .9rem; }
.rfq-variant button { align-self: end; }
.rfq-summary dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .3rem .8rem; }
.rfq-summary dt { font-weight: 650; }
.rfq-summary dd { margin: 0; overflow-wrap: anywhere; }
.rfq-send summary { cursor: pointer; padding-block: .4rem; }
.rfq-send pre { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; }
.rfq-errors { border-color: #ffb5a8; margin-block: 1rem 0; }
.rfq-status { overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .rfq-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 490px) {
  .rfq-fields, .rfq-variant { grid-template-columns: minmax(0, 1fr); }
  .rfq-summary dl { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .rfq-summary dd { margin-bottom: .4rem; }
}
