.account-handover{max-width:1280px;margin:auto}.ah-head{display:flex;gap:16px;justify-content:space-between;align-items:start;flex-wrap:wrap}.ah-head h1{margin:0;color:var(--org-ink,#123b60)}.ah-head p{color:#475467;max-width:62ch}.ah-head button,.account-handover button{min-height:42px;margin:3px;padding:8px 13px;border:1px solid #1b5e91;border-radius:9px;background:#fff;color:#123b60;font-weight:700}.ah-head button:first-child,.ah-form button[type=submit]{background:#123b60;color:#fff}.ah-table-wrap{overflow:auto;border:1px solid #d9e4eb;border-radius:12px;overscroll-behavior:contain}.ah-table-wrap table{min-width:920px;width:100%;border-collapse:collapse}.ah-table-wrap th,.ah-table-wrap td{padding:11px;border-bottom:1px solid #e5edf2;text-align:right;white-space:nowrap}.ah-table-wrap th{background:#f3f7fa;color:#123b60}.ah-hint,.ah-message{padding:10px;border-radius:9px;background:#f5f8fb;color:#475467}.ah-form{display:grid;gap:13px;max-width:850px}.ah-form label{display:grid;gap:6px;font-weight:700}.ah-form select,.ah-form input{min-height:44px;min-width:0;border:1px solid #aabac7;border-radius:8px;padding:8px;font:inherit}.ah-declaration{padding:14px;border-right:4px solid #1b5e91;background:#f3f7fa;line-height:1.8}.ah-signature{display:block;width:100%;height:auto;touch-action:none;border:2px dashed #52728b;border-radius:10px;background:#fff;max-height:220px}@media(max-width:640px){.ah-head button{width:100%;margin:3px 0}.account-handover{min-width:0}.ah-form{grid-template-columns:minmax(0,1fr)}}@media print{.org-header,.org-sidebar,.org-bottom,button{display:none!important}.org-panel{box-shadow:none;border:0}}

.ah-directory-state{padding:12px;background:#f3f7fa;color:#123b60;line-height:1.7;overflow-wrap:anywhere}.ah-form>*{min-width:0}.ah-form select,.ah-form input{width:100%;box-sizing:border-box;max-width:100%}.ah-form button:disabled{opacity:.65;cursor:not-allowed}.account-handover{overflow-wrap:anywhere}

.account-handover canvas{display:block;width:100%;max-width:600px;height:auto;min-height:120px;border:2px solid #123b60;background:white;border-radius:8px}.account-handover canvas:focus-visible{outline:3px solid #a46f00;outline-offset:3px}

/* Safe capability preview stays in the existing full-page host. */
.account-handover[data-availability="PREVIEW_ONLY"]{min-width:0;color:#173b57}
.account-handover[data-availability="PREVIEW_ONLY"] .ah-head{position:static;background:#f2f6fa;padding:18px;border:1px solid #bdcddd;border-radius:14px;color:#173b57}
.account-handover[data-availability="PREVIEW_ONLY"] button{min-height:44px;max-width:100%;white-space:normal}
.ah-unavailable-actions{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0}
.account-handover button:disabled{opacity:1;color:#4b5563;background:#f3f4f6;border-color:#9ca3af;cursor:not-allowed}
.ah-blank-preview{margin-block:16px;border:1px solid #bdcddd;border-radius:12px;padding:14px}
.ah-blank-preview summary{cursor:pointer;font-weight:800;min-height:44px}
.ah-paper{max-width:760px;margin:18px auto;padding:20px;background:#fff;border:1px solid #aabac7;color:#172d40;line-height:1.8;overflow-wrap:anywhere}
.ah-paper h2,.ah-paper h3{text-align:center}.ah-paper dl{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:12px}.ah-paper dd{margin:0;overflow:hidden}.ah-paper dt{font-weight:700}
@media(max-width:640px){.ah-paper{padding:12px}.ah-paper dl{grid-template-columns:minmax(0,1fr)}.ah-head>div{min-width:0;width:100%}}
@media print{.ah-blank-preview{border:0}.ah-paper{border:0;padding:0;max-width:none}}
.ah-paper-fields{margin-block:16px;padding:14px;background:#f2f6fa;border:1px solid #bdcddd;border-radius:10px}.ah-paper-fields input,.ah-paper-fields textarea{font:inherit;min-height:44px;width:100%;max-width:100%;box-sizing:border-box}.ah-paper-fields textarea{min-height:110px}.ah-paper-fields button{margin:8px 4px}.ah-paper dd{white-space:pre-wrap}.activityWizardStep{scroll-margin-top:90px}
