/* Customer-facing previews and narrow workspaces. */
#demo-dialog {box-sizing:border-box;width:min(580px,calc(100% - 24px));max-height:90vh;overflow:auto}
.message-address {display:grid;grid-template-columns:auto minmax(0,1fr);gap:4px 12px;color:#324960}
.message-address dd {margin:0;overflow-wrap:anywhere;white-space:pre-line}
.mail-preview,.sms-preview,.sample-document {border:1px solid #cad8e5;border-radius:16px;background:#fff;color:#14263a;padding:clamp(14px,3vw,26px);overflow-wrap:anywhere}
.mail-preview header,.sms-preview header {font-size:.85rem;font-weight:700;color:#365a80}
.message-body {white-space:pre-wrap;overflow-wrap:anywhere}
.mail-preview .message-body,.sms-bubble {margin:18px 0}
.sms-preview {width:min(100%,340px);margin:auto;background:#f1f5f9}
.sms-bubble {margin-left:12%;padding:14px 16px;background:#d7edff;border-radius:16px 16px 3px 16px}
.mail-preview a,.sms-bubble a {display:inline-block;margin-top:10px;text-decoration:underline;color:#054487}
.workspace,.billing-content,.form-grid > *, .panel,.top-grid > * {min-width:0}
.preview-media {max-width:100%;max-height:220px;object-fit:contain;border-radius:10px}
.demo-file {max-width:100%;font-size:0.9rem}
.preview-actions {display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.sample-link {overflow-wrap:anywhere}
.invoice-paper,.sample-site,.tool-select,.reader {overflow-wrap:anywhere}
@media(max-width:700px){.form-grid,.form-grid.three {grid-template-columns:minmax(0,1fr)}.email-compose .form-grid .form-grid {grid-column:1/-1}.billing-content{width:100%}.sample-body,.sample-hero{min-width:0}.sample-site .sample-site-head{flex-wrap:wrap}.sample-request input,.sample-request textarea,.field input,.field select,.field textarea{min-width:0;max-width:100%}.invoice-paper .simple-table {min-width:0}.sample-site-head>*{min-width:0}.lead-card-head,.lead-title,.lead-meta{min-width:0;overflow-wrap:anywhere}.office-head,.app-top,.form-inline{flex-wrap:wrap}}
.customer-frame {display:block;width:100%;max-width:1160px;min-height:500px;margin:16px auto;border:1px solid #b7c9db;border-radius:14px;background:#fff}
.customer-frame[data-device=Tablet]{max-width:760px}.customer-frame[data-device=Phone]{max-width:390px}
.message-logo{display:block;max-width:145px;max-height:72px;object-fit:contain}.message-hero{display:block;width:100%;max-height:200px;object-fit:cover;border-radius:10px}
.preview-actions {margin:14px 0}.web-media-preview{height:128px;width:auto;max-width:100%;object-fit:contain;background:#edf3fa;border-radius:10px}
@media print {body:has(#print-payroll)>:not(main),body:has(#print-payroll) main .app-top,body:has(#print-payroll) main nav,body:has(#print-payroll) main .button,body:has(#print-payroll) main .finance-label {display:none!important}}
