.fh-dialog{width:min(960px,96vw);border-top:5px solid #f04393}.fh-dialog .dialog-body{padding:24px}.fh-brand{display:block;width:100%;height:auto;background:#080808;border-radius:10px;margin-bottom:20px}.fh-section,.fh-review,.fh-intro,.fh-connection,.fh-send-panel{padding:20px;border:1px solid #e8dce1;border-radius:12px;margin:16px 0;background:#fff}.fh-section h3,.fh-intro h3,.fh-review h3{margin-top:0}.fh-section label{display:flex;flex-direction:column;gap:7px;margin:16px 0}.fh-section label.check-label{flex-direction:row;align-items:flex-start}.fh-section textarea,.fh-section select{width:100%}.fh-section summary,.fh-history summary{cursor:pointer;font-weight:700;color:#9e235a;min-height:32px}.fh-review{background:#fff5f9;border-left:4px solid #f04393}.fh-review dl{display:grid;grid-template-columns:90px 1fr;gap:10px;margin-bottom:0}.fh-review dt{font-weight:700}.fh-review dd{margin:0;overflow-wrap:anywhere}.fh-connection,.fh-warning{background:#fff5d9;padding:16px}.fh-connected{color:#216344;font-weight:600}.fh-email{overflow-wrap:anywhere;margin-top:20px}.fh-email>div{margin:auto}.fh-history{margin-top:25px;border-top:1px solid #ddd;padding-top:15px}.fh-history article{padding:14px 0;border-bottom:1px solid #eee;overflow-wrap:anywhere}.fh-history p{margin:6px 0}.fh-send-panel{position:sticky;bottom:-24px;border-top:3px solid #f04393;box-shadow:0 -6px 18px #0000000a}.fh-send-panel .tb-actions{margin-top:16px}.fh-dialog [data-fh-status]:not(:empty){padding:12px;border-radius:8px;background:#f3f4f5}.fh-dialog [data-fh-status].error-banner{background:#fff1f0}.fh-dialog [data-fh-pdf]{max-width:100%;overflow:auto}.fh-dialog [data-fh-pdf] canvas{max-width:100%;height:auto}.fh-dialog .primary{background:#b92466;color:white}.fh-dialog button:disabled{opacity:.5;cursor:not-allowed}@media(max-width:640px){.fh-dialog .dialog-body{padding:14px}.fh-section,.fh-review,.fh-intro{padding:14px}.fh-review dl{grid-template-columns:1fr;gap:4px}.fh-review dd{margin-bottom:10px}.fh-send-panel{position:static}.fh-email table th,.fh-email table td{display:block;width:100%!important}.fh-email table th{padding-bottom:0!important}.fh-email table td{padding-top:2px!important}}

.fh-dialog[open]{display:flex;flex-direction:column;max-height:92vh;overflow:hidden}.fh-dialog>.dialog-heading{flex-shrink:0}.fh-dialog>.dialog-body{min-height:0;overflow:auto}.fh-dialog [data-fh-result]:empty{display:none}.fh-dialog [data-fh-result]{font-weight:600;line-height:1.5}.fh-history [data-handover-state=accepted]>strong{color:#216344}
/* The dialog body owns scrolling. Nested forms must grow with their details,
   otherwise the shared dialog form height limit lets controls overlap history. */
.fh-dialog [data-fh-form]{display:block;max-height:none}
.fh-dialog [data-cq-form]{display:block;max-height:none}
.fh-dialog [data-cq-form]>label{display:flex;flex-direction:column;gap:7px;margin:18px 0}
.fh-dialog [data-cq-form] textarea,.fh-dialog [data-cq-form] select{width:100%}
.fh-dialog [data-cq-status]:not(:empty){padding:12px;border-radius:8px;background:#f3f4f5}
.fh-dialog [data-cq-status].error-banner{background:#fff1f0}
.fh-dialog [data-cq-viewer] canvas{max-width:100%;height:auto}
.oa-dialog[open]{display:flex;flex-direction:column;max-height:92vh;overflow:hidden;width:min(1000px,96vw)}.oa-dialog>.dialog-body{overflow:auto;min-height:0}.oa-dialog>.dialog-heading{flex-shrink:0}.oa-summary{white-space:pre-wrap;line-height:1.6}.oa-change{display:grid!important;grid-template-columns:22px 1fr;gap:12px;padding:18px 0;border-bottom:1px solid #e5dfe2}.oa-change>input{margin-top:4px}.oa-change>span{min-width:0}.oa-values{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin:10px 0;white-space:pre-wrap;overflow-wrap:anywhere}.oa-values>span{padding:12px;border-radius:8px;background:#f5f5f5}.oa-values>span:last-child{background:#fff0f7}.oa-values small{display:block;color:#666;margin-bottom:6px}.oa-original{margin:20px 0}.oa-dialog .dialog-footer{position:sticky;bottom:-24px;background:white}.tb-outlook-summary{white-space:pre-wrap;line-height:1.6}@media(max-width:640px){.oa-values{grid-template-columns:1fr}.oa-dialog .dialog-footer{position:static}}



.outlook-inbox-control{padding:16px;border:1px solid #e6d6df;border-radius:12px;background:#fff5f9;margin:0 0 18px}.outlook-inbox-control label{display:flex;flex-direction:column;gap:8px;font-weight:700}.outlook-inbox-control select{width:100%;min-width:0}.outlook-inbox-control p{font-size:14px;margin:12px 0}
