/* Keep every icon-only dialog close control square, centred, and reachable. */
dialog :is(#close-modal,[data-media-close],.updates-close,.ml-auth-close,header [data-page-text-close]){box-sizing:border-box;display:grid;place-items:center;flex:0 0 44px;width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;max-width:44px;max-height:44px;padding:0!important;aspect-ratio:1;border-radius:50%!important;line-height:1!important;font-size:26px!important;font-weight:400;background:#27242e;color:#f2ecff;border:1px solid #514759;box-shadow:none;letter-spacing:0;text-indent:0;transform:none;z-index:8;cursor:pointer}
dialog :is(#close-modal,[data-media-close],.updates-close,.ml-auth-close,header [data-page-text-close]):hover{background:#3b3049;color:#fff}
dialog :is(#close-modal,[data-media-close],.updates-close,.ml-auth-close,header [data-page-text-close]):focus-visible{outline:2px solid #c4afff;outline-offset:3px}
#modal{padding:0;overflow:visible;max-height:calc(100dvh - 32px)}
#modal>#close-modal{position:absolute;top:12px!important;right:12px!important;margin:0}
#modal>#modal-body{box-sizing:border-box;max-height:calc(100dvh - 34px);overflow:auto;overscroll-behavior:contain;padding:30px;border-radius:inherit;scrollbar-width:thin;scrollbar-color:#62516f transparent}
#modal.auth-modal>#modal-body,#modal:has(.publish-sheet,.prepare-sheet,.generation-quote-sheet)>#modal-body{padding:0}
#modal:has(.delivery-detail){width:min(960px,calc(100vw - 32px));max-width:960px}
dialog.ml-auth{padding-top:56px;background:#17141e}
dialog.ml-auth .ml-auth-close{top:6px;right:8px}
dialog.ml-auth iframe{height:min(560px,calc(100dvh - 104px))}
dialog .updates-header{padding-right:76px}
dialog .updates-close{top:12px;right:12px}
.delivery-detail{min-width:0}
.dd-header{padding-right:36px;margin-bottom:23px}
#modal .dd-header h2{font-size:27px;line-height:1.25;letter-spacing:-.7px;margin:8px 0 11px;overflow-wrap:anywhere}
.dd-account-meta{display:flex;gap:7px 12px;align-items:center;flex-wrap:wrap;color:#b4aabd;font-size:13px}
.dd-account-meta>span+span:before{content:'·';margin-right:12px;color:#796c89}
.dd-role{color:#d5c4ff}
.dd-layout{display:grid;grid-template-columns:minmax(0,250px) minmax(0,1fr);gap:26px;align-items:start}
.dd-media{border:1px solid #3c3245;background:#131016;border-radius:15px;overflow:hidden;min-width:0}
.dd-media-frame{aspect-ratio:9/12;background:#09090c;display:grid;place-items:center;overflow:hidden}
.dd-media-frame>video,.dd-media-frame>img{display:block;max-height:100%;width:100%;height:100%;object-fit:contain}
.dd-media-copy{padding:15px;display:grid;gap:7px}.dd-media-copy>strong{font-size:13px;line-height:1.5;overflow-wrap:anywhere}.dd-media-copy>small{color:#a69bac;font-size:11px!important}
.dd-media-missing{padding:20px;text-align:center;color:#a79aac}.dd-media-missing>span{font-size:36px;color:#c1a6df}.dd-media-missing p{font-size:13px!important;line-height:1.5!important}.dd-media-missing small{font-size:11px!important}
.dd-thumbs{display:flex;gap:6px;overflow:auto;padding:3px 0}.dd-thumbs img{width:46px;height:58px;object-fit:cover;border-radius:6px;flex:none}
.dd-content{min-width:0}.dd-status{display:flex;gap:12px;border:1px solid #645039;background:#2b231b;border-radius:12px;padding:17px}.dd-status h3{margin:0 0 5px;color:#f3d5a7;font-size:18px;line-height:1.4}.dd-status p{margin:0;font-size:13px!important;line-height:1.6!important;color:#c7bdcc}.dd-status-dot{width:8px;height:8px;flex:none;border-radius:50%;background:#efc381;margin-top:9px}.dd-good{border-color:#385b48;background:#182b22}.dd-good h3{color:#b4e5c3}.dd-good .dd-status-dot{background:#9ad6aa}.dd-scheduled{background:#282034;border-color:#624b80}.dd-scheduled h3{color:#d3bbfa}.dd-scheduled .dd-status-dot{background:#c6a4fb}.dd-neutral{background:#24212a;border-color:#4e4358}.dd-neutral h3{color:#d9d0e2}
.dd-progress{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));list-style:none;padding:19px 0;margin:0;border-bottom:1px solid #3c3346;gap:9px}.dd-progress li{display:grid;gap:7px;align-content:start;color:#8b7d99;font-size:11px;line-height:1.4}.dd-progress li>span{display:grid;place-items:center;width:25px;height:25px;border-radius:50%;border:1px solid #57475e;font-weight:600}.dd-progress li.is-done{color:#d6c5ee}.dd-progress .is-done>span{background:#3e2d51;border-color:#73578f;color:#e2ceff}.dd-progress strong{font-weight:500}
.dd-facts{margin:18px 0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.dd-facts>div{min-width:0}.dd-facts dt{color:#a799b5;font-size:11px;margin-bottom:5px}.dd-facts dd{margin:0;color:#e6deef;font-size:13px;line-height:1.5;overflow-wrap:anywhere}
.dd-caption{padding:17px;border:1px solid #3c3346;background:#131018;border-radius:12px;margin:21px 0}.dd-caption h3,.dd-error h3{font-size:12px;text-transform:none;font-weight:650;letter-spacing:0;color:#c2b4d2;margin:0 0 10px}.dd-caption p{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px!important;line-height:1.7!important;color:#ede5f6}.dd-caption .dd-muted{color:#9d90ad}.dd-error{padding:16px;border-left:3px solid #d6a165;background:#2c231a;border-radius:6px;margin:18px 0}.dd-error h3{color:#edcd9e}.dd-error p{margin:0;font-size:13px!important;overflow-wrap:anywhere}.dd-error small{color:#c3ad93}
.dd-actions{display:flex;flex-wrap:wrap;gap:9px}.dd-actions button,.dd-actions .button{height:auto;min-height:44px;white-space:normal;padding:12px 16px;font-size:13px!important;line-height:1.45!important;overflow-wrap:anywhere}
.dd-note{font-size:11px!important;line-height:1.65!important;color:#9e91ad;margin:13px 0 20px}.dd-receipt{border-top:1px solid #3c3346;padding-top:14px}.dd-receipt summary{font-size:12px;color:#c3addd;cursor:pointer}.dd-receipt dl{display:grid;gap:14px;margin:15px 0 0}.dd-receipt dt{font-size:11px;color:#a18eaf;margin-bottom:5px}.dd-receipt dd{margin:0;font-family:monospace;font-size:11px;color:#cfc2dc;overflow-wrap:anywhere}
@media(max-width:640px){#modal>#modal-body{padding:22px 18px}#modal.auth-modal>#modal-body,#modal:has(.publish-sheet,.prepare-sheet,.generation-quote-sheet)>#modal-body{padding:0}#modal>#close-modal{top:9px!important;right:9px!important}.dd-header{padding-right:37px;margin-bottom:19px}#modal .dd-header h2{font-size:22px}.dd-account-meta{font-size:12px;gap:6px 8px}.dd-account-meta>span+span:before{margin-right:8px}.dd-layout{grid-template-columns:minmax(0,1fr);gap:19px}.dd-media{display:grid;grid-template-columns:100px minmax(0,1fr);align-items:center}.dd-media-frame{aspect-ratio:9/12}.dd-media-copy{padding:13px}.dd-media-copy>strong{font-size:12px}.dd-media-missing{padding:7px}.dd-media-missing>span{font-size:25px}.dd-media-missing p{font-size:10px!important}.dd-media-missing small{display:none}.dd-thumbs img{width:30px;height:40px}.dd-status{padding:15px}.dd-status h3{font-size:17px}.dd-status p{font-size:12px!important}.dd-facts{gap:13px}.dd-facts dd{font-size:12px}.dd-actions{display:grid;grid-template-columns:1fr}.dd-actions .button,.dd-actions button{width:100%}}

.dd-placement{margin:0 0 20px}.dd-placement p+p{margin-top:8px}.dd-placement strong{color:#e3d7f4;font-weight:600}
