/* Compact discovery and profile utilities; preserve the established action order. */
.recent-section{margin-bottom:20px}.recent-section .workspace-section-heading{margin-bottom:12px;flex-wrap:wrap}
.recent-section h2{font-size:16px}.recent-section [data-recent-clear]{min-height:44px;font-size:12px;gap:8px}
.recent-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;list-style:none;margin:0;padding:0}
.recent-list>li{min-width:0}.recent-factory{display:flex;align-items:center;gap:12px;min-height:64px;padding:10px 12px;border:1px solid var(--line,#dce5ef);border-radius:10px;background:#f7f9fc;text-decoration:none;transition:background .15s ease,border-color .15s ease}
.recent-factory{height:100%}.recent-factory:hover{background:#edf3fa;border-color:#a9bdd5}.recent-factory:focus-visible{outline:2px solid var(--navy,#002b66);outline-offset:2px}
.recent-logo{display:grid;place-items:center;width:36px;height:36px;flex-shrink:0;background:white;border-radius:8px;overflow:hidden}.recent-logo img{width:36px;height:36px;object-fit:contain}
.recent-identity{min-width:0;flex:1}.recent-identity strong{display:block;font-size:13px;font-weight:600;overflow-wrap:anywhere;line-height:1.7}.recent-identity small{display:block;font-size:12px;color:#526c8c;margin-top:2px}.recent-factory>.icon{width:16px;flex-shrink:0}
.recent-empty{font-size:13px;color:#526c8c;line-height:1.9;margin:0}.recent-list>.recent-message{grid-column:1/-1}.recent-message .button{margin-top:8px}
#recent-status{font-size:12px;line-height:1.8;margin:12px 0 0;color:#526c8c}#recent-status:empty{display:none}
.profile-contact-export{border-top:1px solid #dce5ef;margin-top:16px;padding-top:16px}.profile-contact-export .button{font-size:13px;min-height:44px;gap:8px;width:100%}.profile-contact-export p{font-size:12px;line-height:1.8;color:#526c8c;margin:8px 0 0}
.profile-qr-dialog{box-sizing:border-box;width:calc(100% - 32px);max-width:400px;max-height:calc(100dvh - 32px);overflow:auto;padding:20px;border:1px solid #dce5ef;border-radius:16px;background:white;color:#002b66;box-shadow:0 20px 70px #002b6626}
.profile-qr-dialog::backdrop{background:#001b3f80}.profile-qr-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}.profile-qr-heading h2{font-size:18px;margin:0}.profile-qr-heading button{flex-shrink:0;min-width:44px;min-height:44px}
.profile-qr-name{font-size:14px;margin:8px 0 12px;font-weight:600;overflow-wrap:anywhere}.profile-qr-image{text-align:center}.profile-qr-image canvas{max-width:100%;width:224px;height:auto;vertical-align:middle}
.profile-qr-dialog #profile-qr-help,.profile-qr-local,.profile-qr-dialog [role=status]{font-size:12px;line-height:1.9;margin:12px 0;color:#526c8c}.profile-qr-dialog [role=status]:empty{display:none}.profile-qr-dialog .profile-qr-local{background:#fff6eb;border-radius:8px;padding:8px 12px;color:#824218}
.profile-qr-url{display:block;font-size:11px;color:#526c8c;overflow-wrap:anywhere;line-height:1.7}.profile-qr-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}.profile-qr-actions .button{flex:1;min-height:44px;white-space:nowrap;font-size:12px;padding-inline:10px}
@media(max-width:700px){.recent-list{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.recent-factory{transition:none}}
@media print{.profile-contact-export,.profile-qr-dialog{display:none!important}}
