#dasmLogoReviewStatus{margin:7px 0;font-size:.9rem;line-height:1.4;overflow-wrap:anywhere}
#dasmLogoReviewStatus.is-error{color:#b42727}
#dasmLogoApprovalList .logo-approval{display:flex;align-items:center;flex-wrap:wrap;gap:10px}
#dasmLogoApprovalList .dasm-logo-inline-confirm,#dasmLogoApprovalList .dasm-logo-inline-success{box-sizing:border-box;display:grid;gap:12px;width:100%;min-width:0;border:1px solid #a8ceb9;border-radius:12px;background:#effaf5;padding:14px;margin:8px 0}
#dasmLogoApprovalList .dasm-logo-inline-confirm{background:#fff9e8;border-color:#e0cc88}
#dasmLogoApprovalList .dasm-logo-confirm-actions{display:flex;gap:10px;flex-wrap:wrap}
#dasmLogoApprovalList [data-logo-review],#dasmLogoApprovalList [data-logo-proceed],#dasmLogoApprovalList [data-logo-cancel],#dasmLogoApprovalList [data-logo-success-done]{min-height:44px;touch-action:manipulation}

/* STAGING-only iPad Admin fit, preserving the existing STAGING 76dvh shell
   while leaving PROD scoring, underlying Admin content and other tabs intact. */
@media (min-width:641px) and (max-width:1366px){
 html body #adminModal:not(.hidden){display:grid!important;place-items:center!important;box-sizing:border-box!important;padding:24px!important}
 html body #adminModal .admin-modal-card{box-sizing:border-box!important;width:min(980px,calc(100vw - 48px))!important;height:min(76dvh,850px)!important;max-height:min(76dvh,850px)!important;min-height:0!important;padding:0!important;margin:0!important;overflow:hidden!important;display:flex!important;flex-direction:column!important;position:relative!important}
 html body #adminModal .admin-modal-card>.modal-head{display:flex!important;position:relative!important;top:auto!important;flex:0 0 auto!important;align-items:center!important;justify-content:space-between!important;z-index:60!important;margin:0!important;padding:12px 18px!important;border-bottom:1px solid #dce7e8!important;background:#fff!important;min-height:62px!important;box-sizing:border-box!important}
 html body #adminModal .admin-modal-card>.modal-head::after{display:none!important;content:none!important}
 html body #adminModal #closeAdmin{position:static!important;inset:auto!important;order:3!important;flex:0 0 44px!important;width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;margin:0 0 0 auto!important;transform:none!important;touch-action:manipulation!important}
 html body #adminModal #adminBody{flex:1 1 auto!important;min-height:0!important;overflow-x:hidden!important;overflow-y:auto!important;-webkit-overflow-scrolling:touch;overscroll-behavior:contain!important;padding:16px 22px 24px!important}
}
@media (max-width:640px){html body #adminModal #closeAdmin{width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;touch-action:manipulation!important}}

/* R8.350: large logo preview overlay. Isolated from Admin's scroll area. */
.dasm-logo-approval-overlay{position:fixed!important;inset:0!important;z-index:2147483000!important;display:grid!important;place-items:center!important;box-sizing:border-box!important;padding:max(18px,env(safe-area-inset-top,0px)) max(18px,env(safe-area-inset-right,0px)) max(18px,env(safe-area-inset-bottom,0px)) max(18px,env(safe-area-inset-left,0px))!important;background:rgba(3,20,29,.77)!important;backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);overflow-y:auto;overscroll-behavior:contain}
.dasm-logo-approval-overlay .dasm-logo-popup-card{box-sizing:border-box;display:flex;flex-direction:column;gap:14px;position:relative;width:min(510px,100%);max-width:100%;max-height:min(90dvh,760px);overflow-y:auto;overscroll-behavior:contain;min-height:0;padding:22px 24px 24px;background:#fff;color:#153950;border:1px solid #dbe5e8;border-radius:18px;box-shadow:0 28px 85px rgba(0,13,28,.38);outline:none}
.dasm-logo-popup-head{display:flex;align-items:start;justify-content:space-between;gap:12px}
.dasm-logo-popup-head h3{margin:2px 0 0;font-size:23px;line-height:1.2;color:#153950}
.dasm-logo-popup-kicker{font-size:10px;font-weight:850;letter-spacing:.09em;color:#607687;margin:0}
.dasm-logo-popup-x{flex:0 0 44px;width:44px;height:44px;border:1px solid #d9e4e8;border-radius:11px;background:#f7fbfc;color:#1b3445;font-size:28px;line-height:1;cursor:pointer;touch-action:manipulation}
.dasm-logo-popup-image{flex:0 0 auto;box-sizing:border-box;display:grid;place-items:center;width:100%;height:clamp(220px,36dvh,345px);min-height:0;padding:14px;border:1px solid #d5e2e8;border-radius:15px;background:linear-gradient(155deg,#f9fcfd,#eaf2f4);overflow:hidden}
.dasm-logo-popup-image img{display:block;max-width:100%;max-height:100%;width:100%;height:100%;object-fit:contain}
.dasm-logo-popup-team{font-size:17px;color:#153950;line-height:1.35;text-align:center;overflow-wrap:anywhere}
.dasm-logo-popup-copy{font-size:13px;line-height:1.5;color:#526978;margin:0}
.dasm-logo-popup-actions{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap;margin-top:2px}
.dasm-logo-popup-actions .button{min-height:44px;touch-action:manipulation;font-size:13px}
.dasm-logo-popup-card :is(button):focus-visible{outline:3px solid #1679b2;outline-offset:2px}
@media(max-width:640px){
 .dasm-logo-approval-overlay{padding:max(14px,env(safe-area-inset-top,0px)) 12px max(14px,env(safe-area-inset-bottom,0px))!important}
 .dasm-logo-approval-overlay .dasm-logo-popup-card{padding:16px;gap:11px;max-height:calc(100dvh - 44px);border-radius:14px}
 .dasm-logo-popup-head h3{font-size:20px}
 .dasm-logo-popup-image{height:clamp(170px,32dvh,270px);padding:10px}
 .dasm-logo-popup-actions .button{flex:1 1 auto}
}


/* R8.351: fit complete square badges including bottom lettering in popup. */
html body .dasm-logo-approval-overlay .dasm-logo-popup-image{
 display:flex!important;
 align-items:center!important;
 justify-content:center!important;
 flex:0 0 auto!important;
 box-sizing:border-box!important;
 width:100%!important;
 height:clamp(285px,45dvh,420px)!important;
 min-height:0!important;
 padding:12px!important;
 overflow:hidden!important;
}
html body .dasm-logo-approval-overlay .dasm-logo-popup-image > img{
 display:block!important;
 position:static!important;
 flex:0 1 auto!important;
 box-sizing:border-box!important;
 min-width:0!important;
 min-height:0!important;
 width:100%!important;
 height:100%!important;
 max-width:100%!important;
 max-height:100%!important;
 object-fit:contain!important;
 object-position:center center!important;
 border-radius:0!important;
 transform:none!important;
}
@media(max-width:640px){
 html body .dasm-logo-approval-overlay .dasm-logo-popup-image{
  height:clamp(195px,34dvh,295px)!important;
  padding:9px!important;
 }
}

/* R8.355: pending-logo Admin tile spacing only.
   Keep image and team together; move the two action buttons to their own row
   when the approval tile is narrow. No approval state/handler modifications. */
html body #adminModal #dasmLogoApprovalList .logo-approval{
 display:flex!important;
 flex-wrap:wrap!important;
 align-items:center!important;
 column-gap:12px!important;
 row-gap:10px!important;
 padding:12px!important;
 box-sizing:border-box!important;
}
html body #adminModal #dasmLogoApprovalList .logo-approval > img{
 flex:0 0 52px!important;
 box-sizing:border-box!important;
 width:52px!important;
 height:52px!important;
 object-fit:contain!important;
}
html body #adminModal #dasmLogoApprovalList .logo-approval > span{
 flex:1 1 calc(100% - 64px)!important;
 min-width:0!important;
 overflow-wrap:anywhere!important;
 line-height:1.35!important;
}
html body #adminModal #dasmLogoApprovalList .logo-approval > span strong,
html body #adminModal #dasmLogoApprovalList .logo-approval > span small{
 display:block!important;
 max-width:100%!important;
}
html body #adminModal #dasmLogoApprovalList .logo-approval > [data-logo-review]{
 flex:1 1 calc(50% - 6px)!important;
 min-width:0!important;
 min-height:44px!important;
 text-align:center!important;
 white-space:nowrap!important;
 margin:0!important;
}

/* R8.361 My DASM — approved STAGING R8.360 tablet Home Screen app clearance.
   Identical 30px offset, 86dvh cap, opaque header. No Admin/other modal edits. */
@media (display-mode:standalone) and (min-width:761px) and (max-width:1366px) {
  html body #accountModal:not(.hidden) > .modal-card {
    position:relative!important;
    top:30px!important;
    max-height:min(86dvh,calc(100dvh - 104px))!important;
  }
  html body #accountModal:not(.hidden) > .modal-card > .modal-head {
    background:#fff!important;
    -webkit-backdrop-filter:none!important;
    backdrop-filter:none!important;
  }
}

/* R8.365 PROD My DASM iPhone: exact STAGING R8.364 visual rules.
   Installed Home Screen app only; portrait iPhone only.
   Preserve iPad R8.361, all other modals and notification logic. */
@media (display-mode:standalone) and (max-width:760px) and (orientation:portrait) {
  html body #accountModal:not(.hidden) > .modal-card {
    position:relative!important;
    top:32px!important;
    max-height:min(84dvh,calc(100dvh - 112px))!important;
  }
  html body #accountModal:not(.hidden) > .modal-card > .modal-head {
    position:sticky!important;
    top:0!important;
    z-index:65!important;
    background:#fff!important;
    -webkit-backdrop-filter:none!important;
    backdrop-filter:none!important;
  }
}
