/* N5TG V110 — final phone/tablet containment and reporter editor sheet */
@media(max-width:980px){
    html,body{max-width:100%!important;overflow-x:hidden!important}

    html body .rn-v109-dashboard,
    html body .rn-v41-dashboard.rn-v109-dashboard{
        display:block!important;
        position:relative!important;
        width:calc(100% - 20px)!important;
        max-width:900px!important;
        min-width:0!important;
        min-height:0!important;
        height:auto!important;
        margin:10px auto 88px!important;
        padding:0!important;
        overflow:visible!important;
    }

    html body .rn-v109-dashboard>.rn-v41-sidebar{display:none!important}

    html body .rn-v109-dashboard>.rn-dashboard-grid,
    html body .rn-v41-dashboard.rn-v109-dashboard>.rn-dashboard-grid{
        display:grid!important;
        grid-template-columns:1fr!important;
        grid-auto-flow:row!important;
        gap:14px!important;
        position:relative!important;
        width:100%!important;
        max-width:100%!important;
        min-width:0!important;
        height:auto!important;
        max-height:none!important;
        margin:0!important;
        padding:0!important;
        overflow:visible!important;
    }

    html body .rn-v109-dashboard>.rn-dashboard-grid>*,
    html body .rn-v109-dashboard .rn-dashboard-card,
    html body .rn-v109-dashboard .rn-dashboard-card:first-child,
    html body .rn-v109-dashboard .rn-dashboard-card:nth-child(2),
    html body .rn-v109-dashboard .rn-v109-dashboard-hero,
    html body .rn-v109-dashboard .rn-v109-policy-card{
        grid-column:1/-1!important;
        grid-row:auto!important;
        position:relative!important;
        width:100%!important;
        max-width:100%!important;
        min-width:0!important;
        height:auto!important;
        max-height:none!important;
        margin:0!important;
        overflow:hidden!important;
    }

    html body .rn-v109-dashboard .rn-dashboard-card table{
        display:block!important;
        width:100%!important;
        max-width:100%!important;
        overflow-x:auto!important;
        -webkit-overflow-scrolling:touch!important;
    }

    html body .rn-v109-dashboard img,
    html body .rn-v109-dashboard video,
    html body .rn-v109-dashboard iframe{max-width:100%!important}

    html body .rn-v109-dashboard input,
    html body .rn-v109-dashboard select,
    html body .rn-v109-dashboard textarea,
    html body .rn-v109-dashboard button{
        max-width:100%!important;
        font-size:16px!important;
    }

    html body .rn-v109-dashboard>.rn-v41-mobile-dock,
    html body .rn-v41-dashboard.rn-v109-dashboard>.rn-v41-mobile-dock{
        display:flex!important;
        position:fixed!important;
        inset:auto 8px calc(var(--rn-site-bottom-menu-height,0px) + 8px + env(safe-area-inset-bottom)) 8px!important;
        z-index:2147481000!important;
        align-items:center!important;
        justify-content:flex-start!important;
        gap:5px!important;
        width:auto!important;
        max-width:calc(100vw - 16px)!important;
        min-width:0!important;
        height:58px!important;
        min-height:58px!important;
        max-height:58px!important;
        margin:0!important;
        padding:7px!important;
        border:1px solid var(--rn-line)!important;
        border-radius:17px!important;
        background:var(--rn-surface)!important;
        box-shadow:0 14px 40px rgba(10,20,46,.28)!important;
        overflow-x:auto!important;
        overflow-y:hidden!important;
        overscroll-behavior-x:contain!important;
        scrollbar-width:none!important;
        white-space:nowrap!important;
        transform:none!important;
    }

    html body .rn-v109-dashboard>.rn-v41-mobile-dock::-webkit-scrollbar{display:none!important}

    html body .rn-v109-dashboard>.rn-v41-mobile-dock a{
        display:inline-flex!important;
        flex:0 0 auto!important;
        align-items:center!important;
        justify-content:center!important;
        width:auto!important;
        min-width:68px!important;
        max-width:none!important;
        height:42px!important;
        min-height:42px!important;
        max-height:42px!important;
        margin:0!important;
        padding:8px 11px!important;
        border:0!important;
        border-radius:11px!important;
        background:transparent!important;
        color:var(--rn-muted)!important;
        font-size:11px!important;
        line-height:1!important;
        font-weight:850!important;
        text-align:center!important;
        text-decoration:none!important;
        white-space:nowrap!important;
    }

    html body .rn-v109-dashboard>.rn-v41-mobile-dock a.active{
        background:var(--rn-primary)!important;
        color:#fff!important;
    }

    html.rn-news-editor-mobile-open,
    html.rn-news-editor-mobile-open body{
        width:100%!important;
        height:100%!important;
        overflow:hidden!important;
        overscroll-behavior:none!important;
    }

    html body .rn-news-editor-modal{
        display:none!important;
        position:fixed!important;
        inset:0!important;
        z-index:2147483000!important;
        width:100vw!important;
        max-width:100vw!important;
        height:var(--rn-mobile-viewport-height,100dvh)!important;
        min-height:var(--rn-mobile-viewport-height,100dvh)!important;
        max-height:var(--rn-mobile-viewport-height,100dvh)!important;
        margin:0!important;
        padding:0!important;
        align-items:stretch!important;
        justify-content:stretch!important;
        background:rgba(4,8,18,.72)!important;
        overflow:hidden!important;
        overscroll-behavior:none!important;
    }

    html body .rn-news-editor-modal.active{display:flex!important}

    html body .rn-news-editor-modal .rn-news-editor-box{
        position:relative!important;
        display:block!important;
        width:100vw!important;
        max-width:100vw!important;
        min-width:0!important;
        height:var(--rn-mobile-viewport-height,100dvh)!important;
        min-height:var(--rn-mobile-viewport-height,100dvh)!important;
        max-height:var(--rn-mobile-viewport-height,100dvh)!important;
        margin:0!important;
        padding:74px 14px calc(92px + env(safe-area-inset-bottom))!important;
        border:0!important;
        border-radius:0!important;
        background:#f5f7fb!important;
        color:#14213d!important;
        box-shadow:none!important;
        overflow-x:hidden!important;
        overflow-y:auto!important;
        overscroll-behavior:contain!important;
        -webkit-overflow-scrolling:touch!important;
    }

    html[data-rn-dashboard-theme="dark"] body .rn-news-editor-modal .rn-news-editor-box{
        background:#0b111d!important;
        color:#edf2fb!important;
    }

    html body .rn-news-editor-modal .rn-news-editor-box>h2{
        position:absolute!important;
        top:0!important;
        left:0!important;
        right:0!important;
        z-index:8!important;
        display:flex!important;
        align-items:center!important;
        height:62px!important;
        min-height:62px!important;
        margin:0!important;
        padding:0 62px 0 16px!important;
        border-bottom:1px solid #dfe5ef!important;
        background:#fff!important;
        color:#14213d!important;
        font-size:20px!important;
        line-height:1.2!important;
        box-shadow:0 5px 18px rgba(15,28,58,.08)!important;
    }

    html[data-rn-dashboard-theme="dark"] body .rn-news-editor-modal .rn-news-editor-box>h2{
        border-color:#273246!important;
        background:#111827!important;
        color:#edf2fb!important;
    }

    html body .rn-news-editor-modal .rn-news-editor-close{
        position:absolute!important;
        top:10px!important;
        right:10px!important;
        z-index:12!important;
        display:grid!important;
        place-items:center!important;
        width:42px!important;
        height:42px!important;
        min-width:42px!important;
        min-height:42px!important;
        margin:0!important;
        padding:0!important;
        border:1px solid #dfe5ef!important;
        border-radius:50%!important;
        background:#f5f7fb!important;
        color:#14213d!important;
        font-size:27px!important;
        line-height:1!important;
    }

    html[data-rn-dashboard-theme="dark"] body .rn-news-editor-modal .rn-news-editor-close{
        border-color:#344158!important;
        background:#1b2536!important;
        color:#fff!important;
    }

    html body .rn-news-editor-modal .rn-reporter-message{
        width:100%!important;
        max-width:100%!important;
        margin:0 0 12px!important;
        overflow-wrap:anywhere!important;
    }

    html body .rn-news-editor-modal .rn-editor-row,
    html body .rn-news-editor-modal .rn-color-grid{
        display:grid!important;
        grid-template-columns:1fr!important;
        gap:12px!important;
        width:100%!important;
        max-width:100%!important;
        min-width:0!important;
    }

    html body .rn-news-editor-modal .rn-color-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}

    html body .rn-news-editor-modal .rn-editor-field,
    html body .rn-news-editor-modal .rn-location-selector-wrap,
    html body .rn-news-editor-modal .rn-color-sheet,
    html body .rn-news-editor-modal .rn-color-chip{
        display:block!important;
        width:100%!important;
        max-width:100%!important;
        min-width:0!important;
        height:auto!important;
        margin:0 0 14px!important;
        overflow:visible!important;
    }

    html body .rn-news-editor-modal label{
        display:block!important;
        margin:0 0 7px!important;
        color:#26344f!important;
        font-size:13px!important;
        line-height:1.35!important;
        font-weight:800!important;
    }

    html[data-rn-dashboard-theme="dark"] body .rn-news-editor-modal label{color:#dce4f2!important}

    html body .rn-news-editor-modal input:not([type="checkbox"]):not([type="color"]),
    html body .rn-news-editor-modal select,
    html body .rn-news-editor-modal textarea{
        display:block!important;
        width:100%!important;
        max-width:100%!important;
        min-width:0!important;
        min-height:48px!important;
        margin:0!important;
        padding:11px 12px!important;
        border:1px solid #d6deea!important;
        border-radius:11px!important;
        outline:0!important;
        background:#fff!important;
        color:#14213d!important;
        font-size:16px!important;
        line-height:1.35!important;
        box-shadow:none!important;
    }

    html[data-rn-dashboard-theme="dark"] body .rn-news-editor-modal input:not([type="checkbox"]):not([type="color"]),
    html[data-rn-dashboard-theme="dark"] body .rn-news-editor-modal select,
    html[data-rn-dashboard-theme="dark"] body .rn-news-editor-modal textarea{
        border-color:#344158!important;
        background:#111827!important;
        color:#edf2fb!important;
    }

    html body .rn-news-editor-modal input[type="file"]{
        min-height:52px!important;
        padding:9px!important;
        overflow:hidden!important;
    }

    html body .rn-news-editor-modal .rn-color-chip{
        padding:10px!important;
        border:1px solid #dfe5ef!important;
        border-radius:12px!important;
        background:#fff!important;
    }

    html[data-rn-dashboard-theme="dark"] body .rn-news-editor-modal .rn-color-chip{
        border-color:#2b374d!important;
        background:#111827!important;
    }

    html body .rn-news-editor-modal input[type="color"]{
        display:block!important;
        width:100%!important;
        height:42px!important;
        min-height:42px!important;
        padding:3px!important;
        border:1px solid #d6deea!important;
        border-radius:9px!important;
        background:transparent!important;
    }

    html body .rn-news-editor-modal .wp-editor-wrap,
    html body .rn-news-editor-modal .wp-editor-container,
    html body .rn-news-editor-modal .mce-tinymce,
    html body .rn-news-editor-modal .mce-container,
    html body .rn-news-editor-modal .quicktags-toolbar{
        width:100%!important;
        max-width:100%!important;
        min-width:0!important;
        box-sizing:border-box!important;
    }

    html body .rn-news-editor-modal .wp-editor-wrap{
        border:1px solid #d6deea!important;
        border-radius:12px!important;
        background:#fff!important;
        overflow:hidden!important;
    }

    html body .rn-news-editor-modal .mce-toolbar-grp,
    html body .rn-news-editor-modal .quicktags-toolbar{
        overflow-x:auto!important;
        overflow-y:hidden!important;
        -webkit-overflow-scrolling:touch!important;
    }

    html body .rn-news-editor-modal .mce-edit-area iframe,
    html body .rn-news-editor-modal textarea#rn_news_editor{
        width:100%!important;
        min-height:260px!important;
        max-width:100%!important;
    }

    html body .rn-news-editor-modal .rn-editor-actions{
        position:fixed!important;
        left:0!important;
        right:0!important;
        bottom:0!important;
        z-index:10!important;
        display:grid!important;
        grid-template-columns:1fr 1fr!important;
        gap:9px!important;
        width:100%!important;
        max-width:100vw!important;
        min-height:76px!important;
        margin:0!important;
        padding:10px 12px calc(10px + env(safe-area-inset-bottom))!important;
        border-top:1px solid #dfe5ef!important;
        background:rgba(255,255,255,.96)!important;
        box-shadow:0 -8px 26px rgba(15,28,58,.12)!important;
        backdrop-filter:blur(14px)!important;
    }

    html[data-rn-dashboard-theme="dark"] body .rn-news-editor-modal .rn-editor-actions{
        border-color:#273246!important;
        background:rgba(17,24,39,.96)!important;
    }

    html body .rn-news-editor-modal .rn-editor-actions .rn-dashboard-btn{
        width:100%!important;
        min-width:0!important;
        min-height:48px!important;
        margin:0!important;
        padding:10px!important;
        border-radius:12px!important;
        font-size:13px!important;
    }
}

@media(max-width:600px){
    html body .rn-v109-dashboard,
    html body .rn-v41-dashboard.rn-v109-dashboard{width:calc(100% - 12px)!important;margin-top:6px!important}

    html body .rn-v109-dashboard .rn-v109-dashboard-hero{
        display:grid!important;
        grid-template-columns:minmax(0,1fr) 44px!important;
        gap:12px!important;
        padding:18px!important;
    }

    html body .rn-v109-dashboard .rn-v109-dashboard-hero>div{min-width:0!important}
    html body .rn-v109-dashboard .rn-v109-dashboard-hero h1{overflow-wrap:anywhere!important}
    html body .rn-v109-dashboard .rn-dashboard-card{padding:16px!important}
    html body .rn-v109-dashboard .rn-profile-preview{align-items:flex-start!important}
    html body .rn-v109-dashboard .rn-v109-policy-links{grid-template-columns:1fr!important}
}

@media(max-width:380px){
    html body .rn-news-editor-modal .rn-color-grid{grid-template-columns:1fr!important}
    html body .rn-v109-dashboard>.rn-v41-mobile-dock a{min-width:62px!important;padding-inline:9px!important;font-size:10px!important}
}
