/* Shared screen density. Printed documents and positioned PDF fields retain their geometry. */
@media screen{
.shell .card{padding:19px;margin-bottom:15px;border-radius:10px}
.shell .card.doc-sidebar{padding:13px}.shell .card.doc-preview{padding:14px}
.shell .card.authcard{padding:27px}
.shell .grid{gap:12px 13px}
.shell .split{gap:15px}
.shell .pagehead{gap:17px;margin-bottom:18px}
.shell h1{font-size:32px}.shell h2{font-size:21px;margin-bottom:12px}
.shell h3{margin-bottom:8px}
.shell input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=file]):not([type=range]):not([type=color]):not([type=button]):not([type=submit]),.shell select{padding:8px 10px;margin-top:5px;font-size:14px;min-height:36px}
.shell .file-rename input{height:36px}
.shell .crm-contact-picker button{min-height:30px;padding:3px 8px}
.shell textarea{padding:9px 10px;margin-top:5px;font-size:14px;line-height:1.4}
.shell .crm-call-form textarea{min-height:102px}
.shell th{padding:9px}.shell td{padding:10px 9px;font-size:13px}
.shell .btn,.shell button{min-height:36px;height:auto;padding:8px 13px;font-size:13px}
.shell .btn.mini{min-height:30px;padding:6px 10px;font-size:12px}
.shell .metrics{gap:10px;margin-bottom:17px}.shell .metric{padding:13px}
.shell .actions{gap:8px}.shell .autosave-status{padding:8px 12px;margin-bottom:12px}
.shell .address-check{padding:14px}.shell .address-check>p{margin-bottom:10px}
.shell .w9-form-grid{gap:10px 12px}
.shell .completion-create-card h2,.shell .w9-create-card h2{margin-top:17px;margin-bottom:12px}
.shell .crm-flow-step{padding-top:17px;padding-bottom:17px}
.shell .portalfooter{margin-top:27px;padding-top:15px;padding-bottom:15px}
.client-portal main{margin-top:27px}.client-portal .card{padding:20px}
.client-portal .document-grid{gap:17px;margin-bottom:20px}
.client-portal .auth{margin-top:46px;margin-bottom:46px}
.client-portal label{margin-bottom:13px}.client-portal input{padding:9px 10px;font-size:15px;margin-top:5px}
.client-portal .file{padding:12px 0}.client-portal .welcome{margin-bottom:20px}
.client-portal .upload-form{gap:13px}.client-portal h1{font-size:27px}
.public-signing main>.card,.public-signing .doc-sign-controls{padding:24px;margin-bottom:19px}
.public-signing .signature-action input:not([type=checkbox]){padding:10px;margin-top:6px}
.public-signing .signature-action button{padding:12px;font-size:15px}
@media(max-width:600px){
.shell .card{padding:15px}.shell .card.authcard{padding:21px}
.shell .grid{gap:11px}.shell h1{font-size:28px}
.shell input:not([type=checkbox]):not([type=radio]):not([type=hidden]),.shell select,.shell button,.shell .btn{min-height:40px}
.client-portal .card{padding:17px}.client-portal .auth{margin:18px auto}
.public-signing main>.card,.public-signing .doc-sign-controls{padding:16px}
}
}
/* Compact summaries and collapsed panels: content determines the height. */
@media screen{
.shell .crm-metrics{gap:8px;margin-bottom:12px;align-items:stretch}
.shell .crm-metrics>div{padding:9px 12px;min-height:0;border-radius:7px}
.shell .crm-metrics strong{font-size:21px;line-height:1.15;margin:0}
.shell .crm-metrics span{font-size:10.5px;line-height:1.25;margin-top:3px}
.shell .metrics{margin-bottom:12px;gap:8px}
.shell .metrics:not(.crm-lead-summary) .metric{padding:9px 12px;min-height:0}
.shell .metrics:not(.crm-lead-summary) .metric strong{font-size:21px;line-height:1.15}
.shell .metrics:not(.crm-lead-summary) .metric span{line-height:1.25}
.shell .card{margin-bottom:12px}
.shell details.card:not([open]){padding:10px 14px}
.shell details.card>summary{line-height:1.3;margin:0}
.shell details.card:not([open])>summary h2,.shell details.card:not([open])>summary h3{margin:0}
.shell .card-heading{align-items:center;gap:10px;margin-bottom:10px}
.shell .card-heading h2,.shell .card>h2:last-child{margin:0}
.shell .pagehead{margin-bottom:14px;gap:14px}
.shell .pagehead .sub{margin-top:5px;line-height:1.35}
.shell .crm-subnav{margin-bottom:16px}
.shell .doc-tabs{margin-bottom:10px}.shell .doc-w9-tabs{margin-bottom:16px}
.shell .tier-guide-grid{gap:10px;margin:12px 0}
.shell .tier-guide-grid article{padding:11px;gap:10px}
.shell .profile-card{padding:13px}.shell .profile-grid{gap:13px;margin-top:11px}
.client-portal .card{padding:18px}.client-portal .document-grid{gap:14px;margin-bottom:16px}
.client-portal .welcome{padding-top:5px;padding-bottom:8px;margin-bottom:16px}
@media(max-width:600px){.shell .crm-metrics>div{padding:8px 10px}.shell .crm-metrics strong{font-size:20px}.shell details.card:not([open]){padding:10px 12px}.client-portal .card{padding:16px}}
}
