/* MATCH corrections based on the latest real mobile screenshots. */

/* The canonical 3:1 logo must always be fully visible. */
.topbar-brand,.erp-brand,.modal-brand-logo-wrap{background:transparent!important}
.topbar-brand-logo,.erp-brand img,.modal-brand-logo,.login-card img{object-fit:contain!important;object-position:center!important;background:transparent!important}
.topbar-brand-logo{aspect-ratio:3/1!important;width:min(210px,48vw)!important;height:auto!important;max-height:56px!important}

/* Housing controls must keep the approved modern component styling on mobile. */
.housing-intent{display:flex!important;gap:8px!important;align-items:center!important;flex-wrap:wrap!important;margin:16px 0!important}
.room-context{display:grid!important;gap:8px!important;margin:12px 0 16px!important}
.room-context-options{display:flex!important;gap:8px!important;align-items:center!important;overflow-x:auto!important;scrollbar-width:none!important}
.room-context-options::-webkit-scrollbar{display:none!important;width:0!important;height:0!important}
.choice-chip{appearance:none!important;-webkit-appearance:none!important;border:1px solid var(--line)!important;background:#fff!important;color:var(--text)!important;border-radius:12px!important;min-height:44px!important;padding:9px 14px!important;font-weight:750!important;white-space:nowrap!important}
.choice-chip.active{border-color:var(--primary)!important;background:#e4f4eb!important;color:var(--primary)!important}

/* Dynamic extra fields remain contained at every responsive width. */
.custom-fields{margin-top:18px!important}.custom-field-row{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr) 44px!important;gap:8px!important;align-items:center!important;margin-top:8px!important}.custom-field-row .control{min-width:0!important}

@media(max-width:760px){.topbar-brand-logo{width:min(174px,45vw)!important;max-height:52px!important}.custom-field-row{grid-template-columns:1fr 1fr 42px!important}}
@media(max-width:430px){.topbar-brand-logo{width:min(164px,44vw)!important}.custom-field-row{grid-template-columns:1fr!important}.custom-field-row .remove-custom{justify-self:end!important}}
