/* P4.9 — minimal secure handoff, friendly on desktop and mobile. */
.smet-handoff{
 display:grid;gap:12px;
 padding:clamp(18px,2.3vw,26px);
 border:1px solid #d8c8b6;border-radius:17px;
 background:linear-gradient(110deg,#f5f9f7,#fff 85%);
 margin:10px 0 22px;min-width:0;
}
.smet-handoff h2{font-size:clamp(20px,2.2vw,26px);margin:5px 0 8px;line-height:1.25}
.smet-handoff-head p{margin:0;line-height:1.65;max-width:850px;color:#666056;font-size:14px}
.smet-handoff-label{font-size:12px;letter-spacing:.035em;text-transform:uppercase;font-weight:700;color:#3a7154}
.smet-handoff-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.smet-handoff-actions .pilot-button{min-height:48px}
.smet-handoff-small{margin:0;color:#70665c;font-size:12px;line-height:1.6}
.smet-handoff-message{margin:0;color:#316248;font-size:14px;line-height:1.5}
.smet-handoff-message:empty{display:none}
.smet-handoff-restore[hidden]{display:none!important}
.smet-handoff-dialog{
 position:fixed;
 margin:auto;
 max-width:min(540px,calc(100vw - 24px));width:100%;
 max-height:calc(100dvh - 32px);
 border:1px solid #d8c5b5;border-radius:20px;
 background:#fff;box-shadow:0 28px 70px rgba(25,37,45,.2);
 padding:0;color:#2a302c;overflow:auto;
}
.smet-handoff-dialog::backdrop{background:rgba(20,30,37,.6)}
.smet-handoff-close{
 position:sticky;top:10px;float:right;margin:10px 11px 0 0;
 border:1px solid #dfd4c8;background:#fff;border-radius:50%;width:38px;height:38px;
 font-size:0;cursor:pointer;z-index:2;
}
.smet-handoff-close::before{content:"×";font-size:25px;line-height:1;font-weight:400}
.smet-handoff-modal-body{display:grid;gap:15px;padding:clamp(20px,3.2vw,30px);clear:both}
.smet-handoff-modal-body h2{font-size:clamp(22px,2.4vw,29px);margin:0;line-height:1.23}
.smet-handoff-modal-body>p{font-size:14px;color:#605b53;line-height:1.65;margin:0}
.smet-handoff-qr{display:block;width:min(100%,292px);height:auto;margin:3px auto 7px;border:8px solid white;background:white;image-rendering:pixelated}
.smet-handoff-link{display:grid;grid-template-columns:1fr auto;gap:9px;align-items:center;min-width:0}
.smet-handoff-link input{
 min-width:0;width:100%;min-height:46px;border:1px solid #d4c7ba;border-radius:9px;
 padding:10px;font:inherit;font-size:13px;color:#344033;background:#fbfaf7;
}
.smet-handoff-link button,.smet-handoff-import-actions button{min-height:46px;margin:0}
.smet-handoff-warning{border-left:3px solid #b67d38;padding:10px 12px;background:#fff7ed;color:#80512b!important}
.smet-handoff-import-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.smet-handoff button:focus-visible,.smet-handoff-dialog button:focus-visible,.smet-handoff-dialog input:focus-visible{
 outline:3px solid #3a7753;outline-offset:3px;
}
@media(max-width:580px){
 .smet-handoff{padding:18px 14px;border-radius:13px}
 .smet-handoff-actions{display:grid;grid-template-columns:1fr}
 .smet-handoff-actions .pilot-button{width:100%;min-height:49px}
 .smet-handoff-modal-body{padding:16px;gap:12px}
 .smet-handoff-link{grid-template-columns:1fr}
 .smet-handoff-link button{width:100%}
 .smet-handoff-import-actions{display:grid;grid-template-columns:1fr}
 .smet-handoff-import-actions button{width:100%}
}
@media print{.smet-handoff,.smet-handoff-dialog{display:none!important}}
