/* Page-specific responsive composition built on app.css. */
main.auth-card{width:min(520px,calc(100% - 20px))!important;margin:20px auto!important;padding:clamp(18px,5vw,28px)!important}
body:has(main.auth-card){display:grid;place-items:center;padding:0;overflow-x:hidden}
main.auth-card input,main.auth-card button{min-height:44px}
.settings-page .grid{grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr))}
.settings-page .grid>div,.settings-page .asset-card{min-width:0}
.settings-page input[type=checkbox]{transform:none}
.settings-page label:has(+ input[type=checkbox]){margin-bottom:8px}
.settings-page .hint,.settings-page .asset-link{overflow-wrap:anywhere}
.draft-body,.draft-meta,.outbox-page .cell-clamp{overflow-wrap:anywhere}

@media(max-width:768px){
 main.auth-card h1{margin-top:0}
 body:has(main.auth-card){display:block;padding:10px 0}
 .settings-page .grid>div:has(>input[type=checkbox]){display:grid;grid-template-columns:minmax(0,1fr) 44px;align-items:center;min-height:52px;padding:4px 0}.settings-page .grid>div:has(>input[type=checkbox]) label{margin:0}.settings-page .grid>div:has(>input[type=checkbox]) input{justify-self:center}
 .draft-card{padding:12px!important}.draft-actions{gap:8px!important}.draft-actions form,.draft-actions button,.draft-link{width:100%!important}
 .outbox-page colgroup{display:none}
 .lead-list-toolbar.bottom{margin-top:20px!important}
 .lead-bulk-actions label,.bulk-actions label{display:flex!important;align-items:center!important;width:100%}
 .job-metrics{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:8px!important}

 .leads-page .lead-list-table td:nth-child(1)::before{content:"Select"}.leads-page .lead-list-table td:nth-child(2)::before{content:"No."}.leads-page .lead-list-table td:nth-child(3)::before{content:"Company"}.leads-page .lead-list-table td:nth-child(4)::before{content:"Website"}.leads-page .lead-list-table td:nth-child(5)::before{content:"Email"}.leads-page .lead-list-table td:nth-child(6)::before{content:"Phone"}.leads-page .lead-list-table td:nth-child(7)::before{content:"City"}.leads-page .lead-list-table td:nth-child(8)::before{content:"Country"}.leads-page .lead-list-table td:nth-child(9)::before{content:"Industry"}.leads-page .lead-list-table td:nth-child(10)::before{content:"Created"}.leads-page .lead-list-table td:nth-child(11)::before{content:"Draft"}.leads-page .lead-list-table td:nth-child(12)::before{content:"Actions"}
 .outbox-page .table-wrap td:nth-child(1)::before{content:"Select"}.outbox-page .table-wrap td:nth-child(2)::before{content:"Company"}.outbox-page .table-wrap td:nth-child(3)::before{content:"To"}.outbox-page .table-wrap td:nth-child(4)::before{content:"Subject"}.outbox-page .table-wrap td:nth-child(5)::before{content:"Status"}.outbox-page .table-wrap td:nth-child(6)::before{content:"Scheduled"}.outbox-page .table-wrap td:nth-child(7)::before{content:"Sent"}.outbox-page .table-wrap td:nth-child(8)::before{content:"Error"}.outbox-page .table-wrap td:nth-child(9)::before{content:"Preview"}
 .contacts-page .table-wrap td:nth-child(1)::before{content:"Email"}.contacts-page .table-wrap td:nth-child(2)::before{content:"Confidence"}.contacts-page .table-wrap td:nth-child(3)::before{content:"Reason"}.contacts-page .table-wrap td:nth-child(4)::before{content:"Source type"}.contacts-page .table-wrap td:nth-child(5)::before{content:"Source URL"}.contacts-page .table-wrap td:nth-child(6)::before{content:"Selection"}.contacts-page .table-wrap td:nth-child(7)::before{content:"Selected"}.contacts-page .table-wrap td:nth-child(8)::before{content:"Action"}
 .campaigns-list-table td:nth-child(1)::before{content:"Name"}.campaigns-list-table td:nth-child(2)::before{content:"Country"}.campaigns-list-table td:nth-child(3)::before{content:"Region"}.campaigns-list-table td:nth-child(4)::before{content:"Status"}.campaigns-list-table td:nth-child(5)::before{content:"Created"}.campaigns-list-table td:nth-child(6)::before{content:"Open"}
 .locations-table td:nth-child(1)::before{content:"Location"}.locations-table td:nth-child(2)::before{content:"Type"}.locations-table td:nth-child(3)::before{content:"Population"}.locations-table td:nth-child(4)::before{content:"Target leads"}.locations-table td:nth-child(5)::before{content:"Priority"}.locations-table td:nth-child(6)::before{content:"Status"}
 .queries-table td:nth-child(1)::before{content:"Location"}.queries-table td:nth-child(2)::before{content:"Query"}.queries-table td:nth-child(3)::before{content:"Category"}.queries-table td:nth-child(4)::before{content:"Limit/run"}.queries-table td:nth-child(5)::before{content:"Priority"}.queries-table td:nth-child(6)::before{content:"Status"}.queries-table td:nth-child(7)::before{content:"Last run"}.queries-table td:nth-child(8)::before{content:"Results"}.queries-table td:nth-child(9)::before{content:"Imported"}.queries-table td:nth-child(10)::before{content:"Updated"}.queries-table td:nth-child(11)::before{content:"Duplicates"}.queries-table td:nth-child(12)::before{content:"Failed"}.queries-table td:nth-child(13)::before{content:"Est. requests"}
 .runs-table td:nth-child(1)::before{content:"Time"}.runs-table td:nth-child(2)::before{content:"Query"}.runs-table td:nth-child(3)::before{content:"Status"}.runs-table td:nth-child(4)::before{content:"Results"}.runs-table td:nth-child(5)::before{content:"Imported"}.runs-table td:nth-child(6)::before{content:"Updated"}.runs-table td:nth-child(7)::before{content:"Duplicates"}.runs-table td:nth-child(8)::before{content:"Failed"}.runs-table td:nth-child(9)::before{content:"Error"}

 /* Working lists stay as dense tables on mobile; horizontal scroll is easier than card stacks here. */
 .table-wrap{overflow-x:auto!important;overflow-y:hidden!important;border:1px solid var(--app-line)!important;border-radius:var(--app-radius)!important;-webkit-overflow-scrolling:touch!important}
 .table-wrap table{display:table!important;width:max-content!important;min-width:900px!important;max-width:none!important;table-layout:auto!important}
 .lead-list-table table,.outbox-page .table-wrap table{min-width:1120px!important}
 .table-wrap colgroup{display:table-column-group!important}
 .table-wrap thead{display:table-header-group!important}
 .table-wrap tbody{display:table-row-group!important}
 .table-wrap tr{display:table-row!important;width:auto!important;min-width:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
 .table-wrap th,.table-wrap td{display:table-cell!important;width:auto!important;max-width:none!important;padding:9px 10px!important;border-bottom:1px solid var(--app-line)!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;font-size:.9rem!important;vertical-align:middle!important}
 .table-wrap td::before{display:none!important;content:none!important}
 .table-wrap td *,.company-cell span,.lead-website,.lead-address,.source-url,.cell-clamp{white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;overflow-wrap:normal!important}
 .lead-actions{display:flex!important;align-items:center!important;gap:6px!important;flex-wrap:nowrap!important}
 .lead-actions form,.lead-actions button,.lead-actions .link-button,.manual-email-form{width:auto!important}
 .lead-email-form{display:flex!important;align-items:center!important;gap:6px!important}
 .lead-email-form .lead-email-input{width:170px!important;min-width:170px!important}
}
