/* Phone proposal setup — compact, scan-first controls. Desktop and tablet stay unchanged. */
@media (max-width: 680px) {
  #app .customer-proposal-modal {
    align-items: stretch;
    padding: 0 !important;
    background: #06111a !important;
    backdrop-filter: none !important;
  }

  #app .customer-proposal-dialog {
    width: 100%;
    max-height: 100svh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  #app .customer-proposal-dialog > header {
    position: sticky;
    top: 0;
    z-index: 5;
    grid-template-columns: 38px minmax(0, 1fr) 36px;
    gap: 10px;
    padding: 10px 12px;
  }

  #app .customer-proposal-dialog .proposal-start-icon {
    width: 36px;
    height: 36px;
    border-width: 1px;
    box-shadow: none;
  }

  #app .customer-proposal-dialog .proposal-start-icon svg {
    width: 19px;
    height: 19px;
  }

  #app .customer-proposal-dialog > header small,
  #app .customer-proposal-dialog > header p {
    display: none;
  }

  #app .customer-proposal-dialog > header h2 {
    margin: 0;
    font-size: 17px;
    line-height: 1.2;
  }

  #app .customer-proposal-close {
    width: 34px;
    height: 34px;
  }

  #app .customer-proposal-identity {
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 10px;
    min-height: 58px;
    margin: 10px 12px 0;
    padding: 9px 11px;
    border-radius: 9px;
  }

  #app .customer-proposal-identity > span {
    width: 36px;
    height: 36px;
    box-shadow: none;
  }

  #app .customer-proposal-identity > span svg {
    width: 20px;
    height: 20px;
  }

  #app .customer-proposal-identity > div > strong {
    font-size: 16px !important;
  }

  #app .customer-proposal-identity > div > small {
    margin-top: 2px !important;
    font-size: 12px !important;
    line-height: 1.3 !important;
  }

  #app .customer-proposal-identity > button {
    grid-column: auto;
    padding: 7px;
    font-size: 0;
  }

  #app .customer-proposal-identity > button svg {
    width: 18px;
    height: 18px;
  }

  #app .customer-proposal-fields {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 9px;
    padding: 10px 12px 0;
  }

  #app .customer-proposal-fields label:first-child,
  #app .customer-proposal-fields label:has(select[name="property_id"]) {
    grid-column: 1 / -1;
  }

  #app .customer-proposal-fields label {
    gap: 4px;
    min-width: 0;
    font-size: 11px;
    font-weight: 750;
  }

  #app .customer-proposal-fields input,
  #app .customer-proposal-fields select {
    min-width: 0;
    height: 42px;
    padding: 0 10px;
    font-size: 14px;
  }

  #app .customer-proposal-start-method,
  #app .customer-proposal-modules {
    padding: 12px 12px 0;
  }

  #app .customer-proposal-start-method h3,
  #app .customer-proposal-modules h3 {
    margin: 0 0 8px;
    font-size: 15px;
  }

  #app .customer-proposal-start-method > div {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  #app .customer-proposal-start-method button {
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 5px;
    min-width: 0;
    min-height: 68px;
    padding: 8px 4px;
    text-align: center;
    border-radius: 9px;
  }

  #app .customer-proposal-start-method button > svg {
    width: 21px;
    height: 21px;
  }

  #app .customer-proposal-start-method button strong {
    font-size: 11px;
    line-height: 1.15;
  }

  #app .customer-proposal-start-method button small,
  #app .customer-proposal-modules > div:first-child p,
  #app .customer-proposal-module small,
  #app .customer-proposal-combine-note {
    display: none;
  }

  #app .customer-proposal-module-grid {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  #app .customer-proposal-module {
    min-height: 58px;
    grid-template-columns: 38px minmax(0, 1fr) 26px;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 9px;
  }

  #app .customer-proposal-module .module-icon {
    width: 36px;
    height: 36px;
  }

  #app .customer-proposal-module .module-icon svg {
    width: 20px;
    height: 20px;
  }

  #app .customer-proposal-module strong {
    font-size: 15px;
  }

  #app .customer-proposal-module .module-check {
    position: static;
    grid-column: 3;
    grid-row: 1;
    width: 24px;
    height: 24px;
  }

  #app .customer-proposal-dialog > footer {
    position: sticky;
    bottom: 0;
    z-index: 5;
    display: block;
    margin-top: 12px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(8, 21, 32, .98);
  }

  #app .customer-proposal-dialog > footer > span {
    display: none;
  }

  #app .customer-proposal-dialog > footer .primary {
    width: 100%;
    min-height: 46px;
  }
}
