/* Canonical mobile app shell. Bottom-bar geometry belongs only here. */
.ddh-event-filters{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:14px;}
.ddh-legal-details{margin-top:6px;}
.ddh-legal-details summary{cursor:pointer;min-height:32px;}
.ddh-connection-status{position:fixed;top:max(8px,env(safe-area-inset-top));left:12px;right:12px;z-index:2100;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;border:1px solid #d59a22;border-radius:12px;background:#fff3d4;color:#382900;box-shadow:0 4px 18px #0003;font-size:14px;}
.ddh-connection-status button{min-height:44px;border:1px solid #685019;border-radius:8px;background:#fff;color:#382900;padding:8px 14px;}
.ddh-current-league-name{font-weight:750;overflow-wrap:anywhere;}
.ddh-event-context summary{cursor:pointer;display:flex;align-items:center;gap:6px;min-height:32px;font-size:12px;color:#c7d3df;}
.ddh-event-context summary::after{content:'⌄';flex:none;}
.ddh-event-context summary span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;}
.ddh-event-context>div{font-size:13px;line-height:1.4;color:#e2e9f1;overflow-wrap:anywhere;padding:4px 0 8px;}
.ddh-finished-view .ddh-danger-actions,.ddh-finished-view #previousScoringRepairCard,.ddh-finished-view #draftStartOrderControl,.ddh-finished-view .ddh-scoring-toolbar{display:none!important;}
body.ddh-refresh.ddh-route-following .ddh-following-card .text-muted{color:#c5d0df!important;}
body.ddh-refresh.ddh-route-support .cb-main>h1,body.ddh-refresh.ddh-route-support .cb-main>h2{color:#fff!important;}
@media(max-width:767.98px),(max-width:991.98px) and (max-height:500px){
 :root{--ddh-mobile-nav-height:70px;--ddh-mobile-page-pad:12px;--ddh-mobile-card-radius:14px;}
 @supports(overflow:clip){html,body.cb-app{overflow-x:clip!important;}}
 body.cb-app{padding-bottom:calc(86px + env(safe-area-inset-bottom))!important;font-size:16px;line-height:1.45;}
 body.ddh-refresh{background:#101820!important;}
 body.ddh-refresh::before{content:'';display:block!important;position:fixed;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(#10182055,#10182077),url('/assets/mobile-track-night-v1.png') center/cover no-repeat!important;}
 .cb-context-bar{display:none!important;}
 body.ddh-refresh .cb-navbar{padding:calc(6px + env(safe-area-inset-top)) 12px 6px!important;min-height:0;}
 body.ddh-refresh .cb-navbar>.container{padding:0!important;display:flex!important;flex-wrap:nowrap!important;gap:6px!important;}
 body.ddh-refresh .cb-brand-title{font-size:13px!important;max-width:110px!important;line-height:1.15!important;}
 .cb-brand-subtitle{display:none!important;}
 body.ddh-refresh .ddh-mobile-top-actions{display:flex!important;gap:5px!important;margin-left:auto!important;}
 .ddh-mobile-top-icon{width:40px!important;height:40px!important;min-height:40px!important;}
 body.ddh-refresh .ddh-mobile-top-actions [data-admin-mode-toggle]{min-height:40px!important;padding:6px!important;font-size:10px!important;max-width:76px;}
 .cb-navbar .navbar-collapse{position:absolute;left:10px;right:10px;top:100%;max-height:70dvh;overflow-y:auto;background:#111d29;border:1px solid #415061;border-radius:12px;padding:12px;z-index:1050;}
 body.ddh-refresh .ddh-mobile-app-header{display:block!important;padding:0 12px!important;margin:0!important;}
 body.ddh-refresh .ddh-mobile-app-header-inner{background:rgba(13,22,32,.94)!important;border:0!important;border-radius:0 0 12px 12px!important;padding:10px 12px!important;margin:0!important;box-shadow:none!important;}
 body.ddh-refresh .ddh-mobile-page-row{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:8px!important;margin:0!important;align-items:center!important;}
 .ddh-mobile-page-title-wrap{min-width:0;}
 body.ddh-refresh .ddh-mobile-page-title{font-size:20px!important;line-height:1.2!important;margin:0!important;}
 body.ddh-refresh .ddh-mobile-pill-action{min-width:58px;min-height:44px;padding:10px!important;font-size:12px!important;border-radius:10px!important;}
 body.ddh-refresh .cb-main.container{width:100%!important;max-width:100%!important;padding:0 12px!important;margin-top:14px!important;}
 body.ddh-refresh .cb-main .card.cb-card{border-radius:14px!important;box-shadow:0 3px 12px #0002!important;}
 body.ddh-refresh .cb-main .card-body{padding:16px!important;}
 body.ddh-refresh .cb-main .cb-page-heading{padding:10px!important;border-radius:12px!important;margin-bottom:12px!important;}
 body.ddh-refresh .cb-main :is(h3,h4,h5){font-weight:750!important;}
 body.ddh-refresh .cb-main :is(.btn,button,summary){touch-action:manipulation;}
 body.ddh-refresh .cb-main .btn{border-radius:10px!important;min-height:44px;box-shadow:none!important;font-size:14px!important;line-height:1.25!important;}
 body.ddh-refresh .cb-main .btn-accent{background:#f3b536!important;color:#17212b!important;}
 body.ddh-refresh .cb-main :is(input:not([type=checkbox]):not([type=radio]),select,textarea){font-size:16px!important;}
 .ddh-mobile-bottom-nav{display:grid!important;position:fixed!important;left:max(8px,env(safe-area-inset-left))!important;right:max(8px,env(safe-area-inset-right))!important;top:auto!important;bottom:max(8px,env(safe-area-inset-bottom))!important;margin:0!important;transform:translateZ(0)!important;grid-template-columns:repeat(var(--ddh-mobile-nav-count,5),minmax(0,1fr))!important;gap:2px!important;min-height:64px!important;padding:5px!important;border-radius:18px!important;background:#111c28!important;box-shadow:0 4px 20px #0005!important;z-index:1030;}
 .ddh-mobile-bottom-link{min-width:0!important;min-height:54px!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:5px!important;padding:4px 1px!important;border-radius:12px!important;}
 .ddh-mobile-bottom-link.is-active{background:#f3b536!important;color:#15202b!important;}
 .ddh-mobile-bottom-label{font-size:11px!important;line-height:1.2!important;white-space:nowrap!important;max-width:100%;}
 .ddh-mobile-bottom-mark,.ddh-mobile-bottom-mark svg{width:20px!important;height:20px!important;}
 body.ddh-mobile-keyboard-open .ddh-mobile-bottom-nav,body.ddh-social-open .ddh-mobile-bottom-nav,body.modal-open .ddh-mobile-bottom-nav{display:none!important;}
 body.ddh-social-open{touch-action:auto!important;overflow:hidden!important;}
 .ddh-chat-panel{position:fixed!important;top:var(--ddh-chat-top,0px)!important;left:0!important;right:0!important;bottom:auto!important;width:auto!important;height:var(--ddh-chat-height,100dvh)!important;max-height:none!important;border-radius:0!important;padding-top:env(safe-area-inset-top);padding-bottom:env(safe-area-inset-bottom);box-sizing:border-box;z-index:1200!important;}
 body.ddh-mobile-keyboard-open .ddh-chat-panel{padding-bottom:0;}
 .ddh-chat-form{flex-shrink:0;}
 .ddh-chat-panel .ddh-social-mobile-tools{display:flex!important;}
 .ddh-chat-panel .ddh-social-layout{display:block;min-height:0;overflow:hidden;}
 .ddh-chat-panel .ddh-social-conversation{display:flex;flex-direction:column;height:100%;min-height:0;}
 .ddh-chat-panel .ddh-social-sidebar{display:none!important;}
 .ddh-chat-panel.ddh-show-friends .ddh-social-sidebar{display:flex!important;position:absolute;inset:0;background:#202d3b;z-index:2;}
 .ddh-chat-panel.ddh-show-friends .ddh-social-conversation{visibility:hidden;}
 .ddh-chat-message-list,.ddh-chat-messages,.ddh-social-friends{overscroll-behavior:contain;touch-action:pan-y;}
 .ddh-chat-panel .ddh-chat-room-trigger{min-height:44px;white-space:normal!important;}
 .ddh-chat-room-option :is(strong,small){white-space:normal!important;overflow-wrap:anywhere;}
 .ddh-chat-panel .ddh-reaction-btn,.ddh-chat-panel .ddh-add-reaction,.ddh-chat-panel .ddh-chat-actions-toggle{min-height:44px;min-width:44px;}
 .ddh-chat-launcher{bottom:calc(80px + env(safe-area-inset-bottom))!important;}
 .ddh-legal-footer{margin-bottom:0!important;padding:14px!important;font-size:12px!important;}
 .ddh-league-tools{margin:12px 0;padding:12px;border:1px solid #495565;border-radius:12px;background:#101b27;color:#edf2f8;}
 .ddh-league-tools>summary{cursor:pointer;min-height:32px;font-weight:650;}
 .ddh-league-tools .cb-page-heading{margin-top:10px;}
 body.ddh-refresh.ddh-route-pools .ddh-mobile-league-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;margin:8px 0 0!important;}
 body.ddh-refresh.ddh-route-pools #your-pools{margin-bottom:12px;}
 body.ddh-refresh.ddh-route-pools .ddh-mobile-my-league-org-title strong{white-space:normal!important;text-overflow:clip!important;overflow:visible!important;font-size:17px!important;}
 body.ddh-refresh.ddh-route-pools .ddh-mobile-my-league-org-head{padding:12px!important;}
 body.ddh-refresh.ddh-route-pools .ddh-mobile-my-league-org-title{flex-basis:100%!important;}
 body.ddh-refresh.ddh-route-pools .ddh-mobile-my-league-org-body{padding:8px!important;}
 body.ddh-refresh.ddh-route-pools .ddh-mobile-my-league-main{padding:12px!important;}
 .ddh-settings-section>summary,.ddh-advanced-section>summary{font-size:16px;font-weight:700;cursor:pointer;min-height:44px;padding:8px 0;}
 .ddh-section-content{padding-top:10px;}
 .ddh-settings-section .card-body{padding:0!important;}
 body.ddh-refresh .ddh-scoring-toolbar{top:6px!important;padding:10px!important;z-index:30;}
 .ddh-finished-view .ddh-advanced-section{display:none;}
 body.ddh-refresh.ddh-route-admin .nav-pills,body.ddh-refresh.ddh-route-organization-admin .ddh-org-manager-tabs{gap:4px!important;padding:6px!important;border-radius:12px!important;}
 body.ddh-refresh .cb-main [role=tablist] .nav-link{min-height:44px!important;}
 body.ddh-refresh .ddh-ml-completed-night-btns{display:flex;flex-wrap:wrap;gap:6px;}
 body.ddh-refresh .ddh-ml-panel{padding:12px!important;}
 .ddh-user-collapsed td:not(:first-child){display:none!important;}
 .ddh-user-editor-toggle{display:block;width:100%;background:#e8eef5;border:1px solid #b9c5d1;border-radius:10px;padding:12px;color:#172536;text-align:left;font-weight:700;min-height:44px;}
 body.ddh-refresh.ddh-route-following .ddh-following-card{background:#182632!important;}
 body.ddh-refresh.ddh-route-support .cb-main{background:rgba(14,24,35,.94);border-radius:14px;padding:16px!important;color:#fff;}
 body.ddh-refresh.ddh-route-support .cb-main>div:first-child{color:#fff!important;}
 .ddh-route-support .cb-main>div:first-child .text-muted{color:#c5d0df!important;}
 .modal-dialog{margin:8px!important;max-width:calc(100% - 16px)!important;}
 .modal-content{max-height:calc(100dvh - 16px - env(safe-area-inset-top) - env(safe-area-inset-bottom));}
 .modal-body{overflow-y:auto;overscroll-behavior:contain;}
 .ddh-team-result-tabs{gap:6px!important;}
 .ddh-team-result-tabs .btn{flex:1 1 auto;}
}
@media(max-width:350px){body.ddh-refresh .cb-brand-title{display:none!important;}.ddh-mobile-bottom-label{font-size:11px!important;}}
@media(prefers-reduced-motion:reduce){html,body{scroll-behavior:auto!important;}.ddh-mobile-bottom-nav,.ddh-mobile-bottom-link{transition:none!important;}}
@media(max-width:767.98px),(max-width:991.98px) and (max-height:500px){
 body.ddh-refresh .ddh-mobile-page-title{color:#f4f7fb!important;}
 .ddh-mobile-bottom-link{color:#cbd6e3!important;text-decoration:none!important;font-weight:650;}
 .ddh-chat-launcher-copy{display:none!important;}
 .ddh-chat-launcher{width:60px!important;height:60px!important;padding:8px!important;}
 body.ddh-route-pools #myAllPoolsGroup{display:grid!important;}
 body.ddh-route-pools #your-pools .card-body>h5,body.ddh-route-pools #your-pools .card-body>.d-none.d-md-block{display:none!important;}
}
body.ddh-refresh.ddh-route-support .support-heading h2{color:#f4f7fb!important;}
body.ddh-refresh.ddh-route-support .support-heading p,body.ddh-refresh.ddh-route-support .support-app>.support-hint{color:#c7d2df!important;}
body.ddh-refresh.ddh-route-support .support-card{color:#19212b!important;}
body.ddh-refresh.ddh-route-support .support-card .support-hint{color:#536171!important;}
body.cb-app.ddh-refresh.ddh-route-following .cb-main .ddh-following-card .ddh-following-org .text-muted{color:#c7d3df!important;}
body.cb-app.ddh-refresh.ddh-route-following .cb-main .ddh-following-card>.card-body>div .text-muted{color:#526171!important;}
body.cb-app.ddh-refresh.ddh-route-following .cb-main .ddh-following-card .ddh-following-org .text-muted{color:#c7d3df!important;}
@media(max-width:767.98px),(max-width:991.98px) and (max-height:500px){
 .ddh-following-org-main{flex-direction:column!important;}
 .ddh-following-org-main>div{width:100%;min-width:0;}
 .ddh-following-org-main h6{font-size:18px;overflow-wrap:break-word;}
 .ddh-following-actions{display:grid!important;grid-template-columns:1fr 1fr;}
 .ddh-following-grid{grid-template-columns:minmax(0,1fr);}
}
body.cb-app.ddh-refresh.ddh-route-following .cb-main .ddh-following-card>.card-body .ddh-following-org .text-muted{color:#c7d3df!important;}
