/* Lead form + card actions. Additive only; styles.css (live baseline) is untouched. */
.rent-summary [data-message-id]{margin-bottom:10px;min-height:46px;white-space:normal}
#leadDialog{border:1px solid var(--line);border-radius:var(--r);padding:22px 24px;width:600px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);overflow:auto;color:var(--ink);background:var(--card);box-shadow:var(--shadow);overscroll-behavior:contain}
#leadDialog::backdrop{background:rgba(31,26,23,.6)}
.lead-heading{display:flex;gap:12px;align-items:flex-start;justify-content:space-between;margin-bottom:14px}
.lead-heading h2{font-size:22px;margin:0}
.lead-heading .note{margin:2px 0 0;font-size:14px}
#leadClose{min-height:44px;flex:none}
.lead-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 14px}
.lead-wide{grid-column:1/-1}
#leadDialog label.f{margin-bottom:12px}
#leadDialog textarea{resize:vertical}
.lead-trap{position:absolute!important;left:-10000px;width:1px;height:1px;overflow:hidden}
.lead-errors{color:#8a0000;background:#fff1ef;border:1px solid #e8b4ab;padding:10px 12px;border-radius:10px;margin:0 0 12px;font-size:14px;font-weight:600}
.lead-err{display:block;color:#a80004;font-size:13px;margin-top:4px}
#leadDialog [aria-invalid=true]{border-color:var(--red)}
#leadResult{padding:6px 0 2px;overflow-wrap:anywhere}
#leadResult .lead-thanks{font-size:18px;font-weight:600;margin:6px 0 14px}
#leadResult .btn{margin:0 0 10px;min-height:46px;white-space:normal}
#leadResult textarea{margin:4px 0 12px;font-size:14px}
@media(max-width:640px){
  #leadDialog{padding:16px;width:100vw;max-width:100vw;max-height:100dvh;height:100dvh;margin:0;border-radius:0;border:0}
  .lead-fields{grid-template-columns:1fr}
}
.lead-send-error{color:#8a0000;background:#fff1ef;border:1px solid #e8b4ab;padding:12px;border-radius:10px;margin:0 0 12px;font-size:15px}
.lead-send-error p{margin:0 0 10px;font-weight:600}
.lead-send-error .btn{min-height:44px;margin-right:6px}
.lead-send-error a{font-weight:600;white-space:nowrap}
#leadResult.lead-success{text-align:center;padding:18px 0 4px}
.lead-check{color:var(--ok);display:flex;justify-content:center;margin:4px 0 10px}
#leadResult.lead-success .lead-thanks{font-size:20px;margin:0 0 20px}
#leadResult .lead-done{min-height:52px;font-size:17px;margin:0}
.lead-tour-box{margin:0 0 6px}
.lead-tour-toggle{display:inline-flex;align-items:center;min-height:44px;padding:6px 2px;margin:0 0 4px;border:0;background:none;color:var(--red);font:inherit;font-size:15px;font-weight:600;text-decoration:underline;text-underline-offset:3px;cursor:pointer;border-radius:6px}
.lead-tour-toggle:hover{text-decoration-thickness:2px}
.lead-tour-toggle:focus-visible{outline:2px solid var(--red);outline-offset:2px}
.lead-tour-box{position:relative}
/* Expanded: the toggle becomes a quiet 'Remove tour time' at the top right of the section heading. */
.lead-tour-on .lead-tour-toggle{position:absolute;top:-11px;right:0;margin:0;color:var(--muted);font-weight:500;font-size:14px}
.lead-tour-on .lead-tour legend{padding-right:140px}
.lead-tour{border:0;padding:0;margin:0 0 2px;min-width:0}
.lead-tour[hidden]{display:none}
.lead-tour legend{padding:0;margin:0 0 6px;font-weight:600;font-size:15px}
.lead-tour .lead-hint{display:block;font-weight:400;font-size:13px;color:var(--muted);margin-top:1px}
.lead-tour-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0 12px}
