/* Focused, light workspaces for the design and quoting journeys. */
.ai-mode-badge,
.fq-mode {
  color: #515154;
  background: #fff;
  border: 1px solid #e5e5e7;
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 12px;
  line-height: 1.4;
}
.ai-mode-badge svg { color: #0071e3; width: 16px; height: 16px; }
.ai-flow {
  border: 0;
  border-radius: 24px;
  padding: 25px 32px;
  margin-bottom: 28px;
  background: #fff;
  gap: 20px;
}
.ai-flow > div { color: #6e6e73; gap: 12px; }
.ai-flow > div > span {
  width: 32px;
  height: 32px;
  font-size: 12px;
  border-color: #d2d2d7;
  color: #6e6e73;
  flex-shrink: 0;
}
.ai-flow > div.active { color: #1d1d1f; }
.ai-flow > div.active > span { background: #eaf3ff; border-color: transparent; color: #0071e3; }
.ai-flow b { font-size: 14px; font-weight: 600; }
.ai-flow small { font-size: 12px; color: #6e6e73; margin-left: 3px; }
.ai-flow > i { color: #b0b0b6; }
.design-layout { grid-template-columns: minmax(0, .86fr) minmax(0, 1.32fr); gap: 24px; align-items: start; }
.design-conversation { min-width: 0; min-height: 0; padding: 28px; border-radius: 24px; border: 0; }
.ai-panel-title { gap: 13px; padding-bottom: 24px; border-color: #e5e5e7; }
.ai-assistant-mark {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 13px;
  background: linear-gradient(145deg, #e5f0ff, #f1eaff);
  color: #0071e3;
}
.ai-panel-title h2 { font-size: 19px; letter-spacing: -.5px; line-height: 1.35; color: #1d1d1f; }
.ai-panel-title p { font-size: 10px; letter-spacing: 1.3px; margin-top: 7px; color: #6e6e73; }
.ai-local-label { font-size: 11px; padding: 5px 8px; color: #6e6e73; background: #f5f5f7; border-radius: 6px; white-space: nowrap; }
.ai-message { margin-top: 28px; }
.ai-message strong { font-size: 17px; font-weight: 600; color: #1d1d1f; line-height: 1.6; }
.ai-message p { font-size: 13px; color: #6e6e73; margin-top: 10px; line-height: 1.8; }
.design-examples { gap: 8px; margin: 20px 0 28px; }
.design-examples button {
  min-height: 38px;
  font-size: 12px;
  padding: 9px 12px;
  color: #515154;
  border-color: #e5e5e7;
  background: #fff;
  border-radius: 999px;
  gap: 6px;
}
.design-examples button:hover { background: #f5f5f7; }
.design-examples button.active { color: #0071e3; background: #edf5ff; border-color: #bad8fa; }
.design-examples svg { width: 15px; height: 15px; }
.design-input-label { font-size: 13px; color: #515154; margin-bottom: 11px; }
#design-prompt {
  min-height: 160px;
  border: 1px solid #d2d2d7;
  border-radius: 14px;
  background: #fff;
  padding: 15px 16px;
  font-size: 14px;
  line-height: 1.85;
  color: #1d1d1f;
}
#design-prompt::placeholder { color: #86868b; }
#design-prompt:focus { border-color: #0071e3; box-shadow: 0 0 0 3px #0071e324; }
.design-input-footer { gap: 16px; margin-top: 16px; }
.design-input-footer > span { color: #6e6e73; font-size: 12px; line-height: 1.7; max-width: 140px; }
.design-input-footer .btn { min-height: 44px; padding: 11px 18px; font-size: 13px; border-radius: 999px; }
.design-input-footer .btn-dark { color: #fff; background: #0071e3; border-color: #0071e3; }
.design-input-footer .btn-dark:hover { background: #0077ed; }
.ai-result-message { margin-top: 28px; gap: 12px; padding: 20px; border: 0; border-radius: 16px; background: #f5f5f7; }
.ai-message-symbol { color: #0071e3; }
.ai-message-symbol svg { width: 19px; height: 19px; }
.ai-result-message strong { color: #1d1d1f; font-weight: 600; font-size: 14px; line-height: 1.6; }
.ai-result-message p { color: #515154; font-size: 13px; line-height: 1.85; margin-top: 9px; }
.ai-response-chips { margin-top: 13px; gap: 7px; }
.ai-response-chips span { color: #515154; font-size: 11px; background: #fff; padding: 5px 8px; border-radius: 6px; }
.ai-honesty-note { margin-top: 23px; gap: 9px; color: #6e6e73; }
.ai-honesty-note > i { flex-shrink: 0; }
.ai-honesty-note svg { width: 16px; height: 16px; margin-top: 3px; }
.ai-honesty-note p { font-size: 12px; line-height: 1.85; }
.design-preview { height: 440px; border: 1px solid #e5e5e7; border-radius: 24px; background: #ececef; }
.preview-toolbar { inset: 27px 28px auto; gap: 20px; }
.preview-label { color: #6e6e73; font-size: 10px; letter-spacing: 1.7px; }
.preview-toolbar h3 { margin-top: 9px; font-size: 18px; font-weight: 600; color: #1d1d1f; }
.model-version { font-size: 11px; color: #515154; background: #ffffffbd; border-color: #e5e5e7; border-radius: 999px; padding: 7px 11px; flex-shrink: 0; }
.preview-corner-info { left: 28px; bottom: 25px; gap: 8px; }
.preview-corner-info span { background: #ffffffcc; border-color: #dedee3; border-radius: 6px; font-size: 11px; color: #515154; padding: 6px 10px; }
.preview-controls { right: 24px; bottom: 20px; gap: 12px; color: #6e6e73; }
.preview-controls > span { font-size: 11px; }
.preview-controls > span svg { width: 14px; height: 14px; }
.preview-controls button { width: 40px; height: 40px; color: #515154; background: #ffffffcc; border-color: #dedee3; border-radius: 50%; }
.preview-controls button:hover { color: #0071e3; background: #fff; }
.preview-controls button svg { width: 17px; height: 17px; }
.design-model-facts { border: 0; border-radius: 20px; padding: 22px 4px; margin: 16px 0 24px; }
.design-model-facts > div { padding: 0 18px; border-color: #e5e5e7; min-width: 0; }
.design-model-facts small { color: #6e6e73; font-size: 11px; line-height: 1.5; }
.design-model-facts b { color: #1d1d1f; font-size: 15px; font-weight: 600; margin-top: 9px; line-height: 1.5; overflow-wrap: anywhere; }
.design-model-facts .fit-pass { color: #268049; font-size: 13px; }
.design-model-facts .fit-fail { color: #a95b13; font-size: 13px; }
.design-params { padding: 28px; border: 0; border-radius: 24px; }
.ai-section-title { margin-bottom: 23px; gap: 16px; }
.ai-section-title h3 { font-size: 19px; font-weight: 600; letter-spacing: -.4px; color: #1d1d1f; }
.ai-section-title span { font-size: 11px; color: #6e6e73; }
.design-param-grid { gap: 20px 14px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.design-param-grid label:nth-child(-n+2), .design-param-grid label:nth-child(7), .apply-parameter { grid-column: span 2; }
.design-param-grid label { font-size: 12px; color: #515154; gap: 9px; }
.design-param-grid input,
.design-param-grid select {
  min-height: 44px;
  padding: 11px 12px;
  font-size: 14px;
  border-color: #d2d2d7;
  border-radius: 10px;
  background: #fff;
  color: #1d1d1f;
}
.design-param-grid input:focus,
.design-param-grid select:focus { border-color: #0071e3; box-shadow: 0 0 0 3px #0071e324; }
.apply-parameter .btn { min-height: 44px; padding: 11px 17px; font-size: 13px; border-radius: 999px; }
.design-params .field-hint { font-size: 12px; color: #6e6e73; line-height: 1.8; margin-top: 20px; }
.ai-error { color: #a03e24; background: #fff4ee; border-color: #f0d4c7; border-radius: 12px; font-size: 13px; line-height: 1.8; padding: 13px 16px; margin-top: 15px; }
.ai-design-bottom { gap: 24px; padding: 30px 0; margin-bottom: 28px; border-color: #d2d2d7; flex-wrap: wrap; }
.ai-design-review { gap: 13px; }
.ai-design-review > i { color: #6e6e73; padding: 12px; border-radius: 14px; background: #e8e8ed; flex-shrink: 0; }
.ai-design-review svg { width: 22px; height: 22px; }
.ai-design-review h3 { font-size: 15px; font-weight: 600; color: #1d1d1f; }
.ai-design-review p { color: #6e6e73; font-size: 12px; line-height: 1.8; max-width: 480px; margin-top: 6px; }
.ai-design-actions { gap: 10px; flex-wrap: wrap; max-width: none; }
.ai-design-actions .btn { min-height: 44px; padding: 11px 17px; border-radius: 999px; font-size: 13px; }
.ai-design-history { padding: 28px; border-radius: 24px; border: 0; }
.ai-design-history .panel-title { margin-bottom: 20px; gap: 18px; }
.ai-design-history .panel-title h2 { font-size: 22px; letter-spacing: -.5px; color: #1d1d1f; }
.ai-design-history .muted { color: #6e6e73; font-size: 12px; }
.design-empty-history { font-size: 13px; padding: 16px 0; color: #6e6e73; }
.design-history-row { padding: 22px 0; gap: 15px; border-color: #e5e5e7; }
.design-history-icon { padding: 12px; border-radius: 12px; color: #0071e3; background: #edf5ff; }
.design-history-row strong { font-size: 15px; font-weight: 600; color: #1d1d1f; }
.design-history-row strong small { font-size: 12px; color: #6e6e73; margin-left: 8px; font-weight: 400; }
.design-history-row p { font-size: 12px; color: #6e6e73; line-height: 1.7; margin-top: 6px; }
.design-history-row .small-btn { min-height: 40px; padding: 10px 15px; font-size: 12px; border-radius: 999px; flex-shrink: 0; }

/* Quoting keeps the number in focus while showing every assumption nearby. */
.fq-workspace { font-family: Inter, 'Source Han Sans', sans-serif; color: #1d1d1f; }
.fq-intro { gap: 20px; border: 0; border-radius: 24px; background: #fff; padding: 28px 32px; margin-bottom: 28px; }
.fq-intro-icon { width: 54px; height: 54px; color: #0071e3; background: #edf5ff; border-radius: 16px; }
.fq-intro-icon svg { width: 27px; height: 27px; }
.fq-intro .eyebrow { color: #6e6e73; font-size: 10px; letter-spacing: 1.5px; }
.fq-intro h2 { color: #1d1d1f; font-size: 24px; letter-spacing: -.6px; margin: 8px 0; line-height: 1.4; }
.fq-intro p { color: #6e6e73; font-size: 13px; line-height: 1.8; }
.fq-live { color: #6e6e73; font-size: 12px; gap: 8px; }
.fq-live > span { width: 7px; height: 7px; background: #268049; }
.fq-layout { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 24px; }
.fq-card { border: 0; border-radius: 24px; background: #fff; padding: 28px; margin-bottom: 24px; }
.fq-card header { margin-bottom: 24px; gap: 18px; }
.fq-card header > div { gap: 11px; }
.fq-card header h3 { color: #1d1d1f; font-size: 20px; letter-spacing: -.4px; line-height: 1.4; }
.fq-card header > span { font-size: 10px; color: #6e6e73; letter-spacing: 1px; }
.fq-step { width: 30px; height: 30px; color: #0071e3; background: #edf5ff; border-radius: 50%; font-size: 11px; flex-shrink: 0; }
.fq-fields { gap: 21px 18px; }
.fq-field { font-size: 13px; color: #515154; gap: 9px; }
.fq-field input,
.fq-field select {
  min-height: 46px;
  padding: 12px 13px;
  font-size: 14px;
  border-color: #d2d2d7;
  border-radius: 10px;
  color: #1d1d1f;
  background: #fff;
}
.fq-field input:focus,
.fq-field select:focus { border-color: #0071e3; box-shadow: 0 0 0 3px #0071e324; }
.fq-field small { color: #6e6e73; font-size: 12px; line-height: 1.75; }
.fq-input-wrap input { padding-right: 72px; }
.fq-input-wrap > span { font-size: 11px; color: #6e6e73; right: 13px; }
.fq-dimensions { padding: 20px 0 18px; border-color: #e5e5e7; }
.fq-dimensions > span { font-size: 13px; color: #515154; margin-bottom: 15px; }
.fq-dimensions > div { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.fq-dimensions .fq-field { font-size: 12px; }
.fq-dimensions .fq-input-wrap input { padding-right: 38px; }
.fq-dimensions > small { font-size: 12px; color: #6e6e73; line-height: 1.75; margin-top: 13px; }
.fq-example-note { background: #f5f5f7; color: #6e6e73; border: 0; border-radius: 12px; font-size: 12px; line-height: 1.85; padding: 15px 17px; margin-bottom: 23px; }
.fq-input-note { padding: 14px 0 0; gap: 11px; font-size: 12px; color: #6e6e73; line-height: 1.8; }
.fq-input-note i { color: #6e6e73; flex-shrink: 0; }
.fq-field .fq-field-error { color: #b23d25; font-size: 12px; }
.fq-field input.fq-input-invalid { border-color: #c65037; background: #fff8f5; }
.fq-estimate { color: #1d1d1f; background: #fff; border-radius: 24px; padding: 32px; margin-bottom: 24px; border: 1px solid #e5e5e7; }
.fq-estimate .eyebrow { color: #6e6e73; font-size: 11px; letter-spacing: 1.5px; }
.fq-pending { color: #95601a; background: #fff6e7; border-color: #eddfc6; border-radius: 999px; font-size: 11px; padding: 6px 10px; }
.fq-project-name { color: #515154; font-size: 15px; margin-top: 30px; line-height: 1.7; }
.fq-total { color: #1d1d1f; font-size: clamp(36px, 3.9vw, 56px); font-weight: 600; letter-spacing: -2px; line-height: 1.15; margin-top: 14px; }
.fq-total-note { color: #6e6e73; font-size: 12px; margin-top: 12px; line-height: 1.7; }
.fq-unit { border-color: #e5e5e7; margin-top: 28px; padding-top: 23px; gap: 20px; }
.fq-unit > span { color: #6e6e73; font-size: 12px; }
.fq-unit strong { color: #1d1d1f; font-size: 21px; margin-top: 10px; font-weight: 600; line-height: 1.5; letter-spacing: -.4px; }
.fq-unit strong small { color: #6e6e73; font-size: 12px; }
.fq-scenario { margin-top: 24px; padding: 18px 20px; background: #f5f5f7; border: 0; border-radius: 14px; }
.fq-scenario > span { color: #515154; font-size: 12px; }
.fq-scenario strong { color: #1d1d1f; font-size: 19px; font-weight: 600; margin: 10px 0; line-height: 1.5; letter-spacing: -.4px; }
.fq-scenario small { color: #6e6e73; font-size: 11px; line-height: 1.8; }
.fq-quote-actions { margin-top: 25px; gap: 10px; grid-template-columns: 1.25fr 1fr; }
.fq-quote-actions .btn { min-height: 44px; border-radius: 999px; padding: 11px 14px; font-size: 13px; }
.fq-download { border: 1px solid #d2d2d7; color: #0071e3; background: #fff; }
.fq-download:hover { background: #f5f5f7; }
.fq-draft-only { color: #6e6e73; font-size: 11px; line-height: 1.8; margin-top: 16px; }
.fq-cost-bar { height: 10px; border-radius: 999px; background: #f5f5f7; }
.fq-cost-bar span:nth-child(1), .fq-cost-legend > span:nth-child(1) i { background: #0071e3 !important; }
.fq-cost-bar span:nth-child(2), .fq-cost-legend > span:nth-child(2) i { background: #74adf1 !important; }
.fq-cost-bar span:nth-child(3), .fq-cost-legend > span:nth-child(3) i { background: #a9bed7 !important; }
.fq-cost-bar span:nth-child(4), .fq-cost-legend > span:nth-child(4) i { background: #d2d2d7 !important; }
.fq-cost-legend { flex-wrap: wrap; gap: 16px; margin: 16px 0 21px; }
.fq-cost-legend > span { color: #6e6e73; font-size: 12px; gap: 7px; }
.fq-cost-legend i { width: 8px; height: 8px; border-radius: 50%; }
.fq-cost-row { font-size: 13px; color: #515154; padding: 12px 0; gap: 18px; }
.fq-cost-row > div { gap: 6px; min-width: 0; }
.fq-cost-row small { font-size: 11px; color: #6e6e73; line-height: 1.8; }
.fq-cost-row strong { font-size: 14px; color: #1d1d1f; font-weight: 400; max-width: 50%; white-space: normal; overflow-wrap: anywhere; text-align: right; }
.fq-cost-summary { border-color: #e5e5e7; margin-top: 12px; padding-top: 13px; }
.fq-material-math { border-color: #e5e5e7; margin-top: 15px; padding-top: 18px; }
.fq-material-math summary { color: #0071e3; font-size: 13px; line-height: 1.8; }
.fq-material-math p { color: #6e6e73; font-size: 12px; line-height: 1.95; margin-top: 16px; }
.fq-drafts header { margin-bottom: 20px; }
.fq-draft-list { scrollbar-color: #c9c9ce transparent; max-height: 400px; padding-right: 6px; }
.fq-draft-list:focus-visible { outline-color: #0071e3; border-radius: 6px; }
.fq-draft-row { border-color: #e5e5e7; padding: 19px 0; gap: 16px; }
.fq-draft-row > span { gap: 12px; }
.fq-draft-row > span > i { color: #0071e3; }
.fq-draft-row > span strong { font-size: 14px; font-weight: 600; color: #1d1d1f; max-width: 230px; }
.fq-draft-row small { font-size: 11px; color: #6e6e73; margin-top: 7px; }
.fq-draft-row > strong { font-size: 13px; color: #0071e3; gap: 5px; max-width: 48%; white-space: normal; overflow-wrap: anywhere; }
.fq-draft-row svg { width: 17px; height: 17px; }
.fq-draft-row > strong svg { width: 14px; height: 14px; }
.fq-draft-row:hover { background: #f5f5f7; }
.fq-empty-drafts, .fq-draft-hint, .fq-drafts .fq-draft-hint { font-size: 12px; color: #6e6e73; line-height: 1.85; }
.fq-drafts .fq-draft-hint { margin-top: 17px; }
.fq-method { margin-top: 28px; border: 0; background: #fff; border-radius: 24px; padding: 25px 28px; }
.fq-method > summary { font-size: 15px; color: #1d1d1f; gap: 12px; line-height: 1.65; }
.fq-method > summary span { font-size: 12px; color: #6e6e73; }
.fq-method > summary svg { width: 19px; height: 19px; color: #6e6e73; }
.fq-method > summary:after { color: #0071e3; font-size: 23px; }
.fq-method > div { padding-top: 22px; font-size: 13px; color: #515154; line-height: 1.9; }
.fq-method li + li { margin-top: 12px; }
.fq-method p { padding: 20px; background: #f5f5f7; border-radius: 12px; margin-top: 22px; font-size: 12px; line-height: 2; }
.fq-invalid { background: #fff; border-color: #edcbbf; }
.fq-invalid h2 { color: #1d1d1f; font-size: 26px; margin: 28px 0 15px; }
.fq-invalid > p { color: #6e6e73; font-size: 13px; line-height: 1.8; }
.fq-invalid ul { color: #a03e24; font-size: 13px; line-height: 1.9; margin: 22px 0; padding-left: 20px; }
.fq-confirm-price { color: #1d1d1f; font-size: 44px; letter-spacing: -1.4px; margin: 10px 0 22px; }
.fq-confirm-price small { color: #6e6e73; font-size: 13px; letter-spacing: 0; }
.fq-confirm h3 { font-size: 20px; color: #1d1d1f; }
.fq-confirm p { font-size: 13px; color: #515154; line-height: 1.9; margin-top: 18px; }
.fq-confirm .fq-example-note { margin-top: 20px; }
.fq-saved-data { margin-top: 24px; border-color: #e5e5e7; padding: 14px 0; }
.fq-saved-data .fq-cost-row { font-size: 13px; }
.fq-saved-data .fq-cost-row strong { font-size: 14px; }

@media (max-width: 1200px) {
  .ai-flow small { display: none; }
  .design-conversation, .design-params, .fq-card { padding: 24px; }
  .ai-panel-title h2 { font-size: 17px; }
  .design-examples { gap: 7px; }
  .design-examples button { padding: 8px 10px; }
  .design-input-footer { align-items: flex-end; }
  .design-input-footer > span { max-width: 110px; }
  .design-input-footer .btn { padding: 11px 14px; font-size: 12px; }
  .design-model-facts > div { padding: 0 14px; }
  .design-model-facts b { font-size: 14px; }
  .ai-design-bottom { flex-direction: column; align-items: stretch; }
  .ai-design-review p { max-width: none; }
  .ai-design-actions { justify-content: flex-start; }
  .fq-estimate { padding: 26px; }
  .fq-live { display: none; }
  .fq-card header > span { font-size: 9px; letter-spacing: .7px; }
  .fq-unit strong { font-size: 19px; }
  .fq-scenario strong { font-size: 17px; }
  .fq-draft-row > span strong { max-width: 170px; }
}
@media (max-width: 980px) {
  .design-layout, .fq-layout { grid-template-columns: minmax(0, 1fr); }
  .design-conversation { padding: 28px; }
  .design-preview { height: 470px; }
  .design-input-footer > span { max-width: none; }
  .ai-panel-title h2 { font-size: 21px; }
  .design-model-facts b { font-size: 18px; }
  .design-model-facts small { font-size: 12px; }
  .ai-design-actions { flex-wrap: wrap; max-width: none; }
  .fq-card header > span { font-size: 10px; }
  .fq-result-column { display: block; }
  .fq-total { font-size: 56px; }
  .fq-draft-row > span strong { max-width: 340px; }
  .fq-intro h2 { font-size: 23px; }
}
@media (max-width: 600px) {
  .ai-flow { padding: 20px 14px; border-radius: 20px; margin-bottom: 20px; gap: 8px; }
  .ai-flow > div { gap: 7px; }
  .ai-flow > div > span { width: 26px; height: 26px; font-size: 10px; }
  .ai-flow b { font-size: 11px; white-space: nowrap; }
  .ai-flow > i { font-size: 11px; }
  .design-layout { gap: 20px; }
  .design-conversation, .design-params { padding: 22px 20px; border-radius: 20px; }
  .ai-panel-title { gap: 11px; }
  .ai-panel-title h2 { font-size: 18px; }
  .ai-panel-title p { font-size: 9px; letter-spacing: 1px; }
  .ai-assistant-mark { width: 38px; height: 38px; border-radius: 12px; }
  .ai-local-label { padding: 4px 6px; font-size: 10px; }
  .ai-message strong { font-size: 16px; }
  .design-examples { margin: 18px 0 24px; }
  .design-examples button { font-size: 11px; gap: 5px; padding: 8px 10px; }
  .design-examples svg { width: 14px; height: 14px; }
  #design-prompt { font-size: 15px; }
  .design-input-footer { gap: 12px; align-items: center; }
  .design-input-footer > span { max-width: 125px; font-size: 11px; }
  .design-input-footer .btn { font-size: 12px; }
  .ai-result-message { padding: 17px; }
  .design-preview { height: 370px; border-radius: 20px; }
  .preview-toolbar { inset: 22px 20px auto; gap: 12px; }
  .preview-toolbar h3 { font-size: 16px; }
  .preview-label { font-size: 9px; }
  .model-version { font-size: 10px; padding: 6px 9px; }
  .preview-corner-info { left: 20px; bottom: 22px; gap: 6px; }
  .preview-corner-info span { font-size: 10px; padding: 5px 8px; }
  .preview-controls { right: 17px; bottom: 17px; }
  .preview-controls > span { display: none; }
  .design-model-facts { grid-template-columns: 1.15fr 1fr 1fr; padding: 19px 0; border-radius: 16px; margin: 14px 0 20px; }
  .design-model-facts > div { padding: 0 11px; }
  .design-model-facts small { font-size: 10px; }
  .design-model-facts b { font-size: 12px; }
  .design-model-facts .fit-pass, .design-model-facts .fit-fail { font-size: 11px; }
  .ai-section-title { align-items: flex-start; gap: 12px; margin-bottom: 20px; }
  .ai-section-title h3 { font-size: 17px; }
  .ai-section-title span { font-size: 10px; max-width: 78px; line-height: 1.5; }
  .design-param-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 13px; }
  .design-param-grid label:nth-child(-n+2), .design-param-grid label:nth-child(7), .apply-parameter { grid-column: span 1; }
  .design-param-grid input, .design-param-grid select { font-size: 15px; }
  .apply-parameter .btn { font-size: 12px; padding: 11px 14px; width: 100%; }
  .ai-design-bottom { padding: 24px 0; margin-bottom: 24px; gap: 22px; }
  .ai-design-review { align-items: flex-start; }
  .ai-design-review h3 { font-size: 14px; line-height: 1.7; }
  .ai-design-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ai-design-actions .btn { font-size: 12px; padding: 11px 12px; }
  .ai-design-actions .btn svg { width: 15px; height: 15px; }
  .ai-design-history { padding: 24px 20px; border-radius: 20px; }
  .ai-design-history .panel-title { align-items: flex-start; flex-direction: column; gap: 9px; }
  .ai-design-history .panel-title h2 { font-size: 21px; }
  .design-history-row { flex-wrap: wrap; gap: 12px; }
  .design-history-row strong { font-size: 14px; }
  .design-history-row p { font-size: 11px; }
  .design-history-row .small-btn { font-size: 11px; padding: 10px 12px; }
  .fq-mode { font-size: 11px; max-width: 170px; }
  .fq-intro { padding: 23px 20px; gap: 14px; align-items: flex-start; margin-bottom: 20px; border-radius: 20px; }
  .fq-intro-icon { width: 42px; height: 42px; border-radius: 12px; }
  .fq-intro-icon svg { width: 23px; height: 23px; }
  .fq-intro h2 { font-size: 19px; line-height: 1.5; margin: 7px 0 9px; }
  .fq-intro p { font-size: 12px; }
  .fq-intro .eyebrow { font-size: 9px; letter-spacing: 1px; }
  .fq-layout { gap: 0; }
  .fq-card { padding: 24px 20px; border-radius: 20px; margin-bottom: 20px; }
  .fq-card header { gap: 12px; }
  .fq-card header h3 { font-size: 18px; }
  .fq-card header > span { font-size: 8px; letter-spacing: .6px; }
  .fq-step { width: 27px; height: 27px; font-size: 10px; }
  .fq-fields { gap: 20px 14px; }
  .fq-field { font-size: 12px; }
  .fq-field input, .fq-field select { font-size: 15px; }
  .fq-input-wrap input { padding-right: 64px; }
  .fq-input-wrap > span { font-size: 10px; right: 10px; }
  .fq-dimensions > div { gap: 9px; }
  .fq-dimensions .fq-field { font-size: 11px; }
  .fq-dimensions .fq-input-wrap input { padding-left: 10px; padding-right: 31px; font-size: 14px; }
  .fq-example-note { padding: 14px 15px; }
  .fq-estimate { padding: 26px 23px; border-radius: 20px; margin-bottom: 20px; }
  .fq-total { font-size: 44px; }
  .fq-unit { gap: 15px; }
  .fq-unit strong { font-size: 20px; }
  .fq-scenario { padding: 16px; }
  .fq-scenario strong { font-size: 17px; }
  .fq-quote-actions .btn { font-size: 12px; padding: 11px 12px; }
  .fq-draft-row > span strong { max-width: 175px; }
  .fq-draft-row > strong { font-size: 12px; }
  .fq-method { padding: 23px 20px; border-radius: 20px; margin-top: 20px; }
  .fq-method > summary { font-size: 14px; gap: 10px; }
  .fq-method > summary span { display: none; }
  .fq-method > summary:after { margin-left: auto; }
  .fq-method p { padding: 16px; font-size: 12px; }
  .fq-confirm-price { font-size: 38px; }
  .fq-confirm-price small { display: block; margin: 10px 0 0; }
}
@media (max-width: 380px) {
  .ai-flow { gap: 5px; padding: 18px 11px; }
  .ai-flow > div { gap: 5px; }
  .ai-flow > div > span { width: 23px; height: 23px; }
  .ai-flow b { font-size: 10px; }
  .ai-local-label { display: none; }
  .design-input-footer { align-items: stretch; flex-direction: column; }
  .design-input-footer > span { max-width: none; }
  .fq-fields { grid-template-columns: 1fr; }
  .fq-card header > span { font-size: 7px; }
  .fq-quote-actions { grid-template-columns: 1fr; }
  .fq-draft-row { align-items: flex-start; flex-direction: column; }
  .fq-draft-row > span strong { max-width: 240px; }
  .fq-total { font-size: 39px; }
}
