/* More room for desktop test navigation; retain question and mobile styling. */
@media(min-width:701px){
    .nneq-wrap {max-width:1040px!important;width:calc(100% - 48px);margin-inline:auto!important}
    .nneq-two-col {display:grid!important;grid-template-columns:minmax(0,1fr) 380px;gap:24px!important;align-items:start}
    .nneq-col-question {width:auto!important;min-width:0}
    .nneq-col-dots {width:auto!important;min-width:0;box-sizing:border-box;padding:20px!important;top:100px!important}
    .nneq-dots {display:grid!important;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px!important}
    .nneq-dots .nneq-dot {width:100%!important;height:30px!important;min-width:0;box-sizing:border-box;display:flex;align-items:center;justify-content:center;font-size:11px}
    .nneq-dots-legend {gap:10px 14px!important}
    .nneq-dots-scroll {max-height:60vh!important;padding-right:6px;scrollbar-gutter:stable}
}
@media(min-width:701px) and (max-width:960px){
    .nneq-wrap {width:calc(100% - 32px)}
    .nneq-two-col {grid-template-columns:minmax(0,1fr) 310px;gap:16px!important}
    .nneq-col-dots {padding:16px!important}
    .nneq-dots {grid-template-columns:repeat(6,minmax(0,1fr))}
}

.nneq-mobile-bar,
.nneq-drawer-heading,
.nneq-drawer-help,
.nneq-drawer-backdrop { display: none; }
.nneq-drawer-backdrop[hidden] { display: none !important; }

@media (max-width: 700px) {
    #nnEqWrap {
        width: 100%;
        box-sizing: border-box;
        padding-left: max(16px, env(safe-area-inset-left));
        padding-right: max(16px, env(safe-area-inset-right));
    }
    #nnEqWrap.nneq-mobile-ready .nneq-mobile-bar {
        position: sticky;
        top: var(--nneq-header-offset, 74px);
        z-index: 990;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 10px 0;
        margin-bottom: 12px;
        background: #f6f9fa;
        border-bottom: 1px solid #dce8e5;
    }
    #nnEqWrap .nneq-mobile-timer-slot:empty { display: none; }
    #nnEqWrap .nneq-mobile-timer-slot .nneq-timer {
        width: auto;
        min-height: 44px;
        margin: 0;
        padding: 8px 12px;
        box-sizing: border-box;
        font-size: 14px;
        font-variant-numeric: tabular-nums;
        white-space: nowrap;
    }
    #nnEqWrap .nneq-question-toggle,
    #nnEqWrap .nneq-drawer-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
        min-height: 44px;
        padding: 8px 12px;
        border: 1px solid #cfe4dd;
        border-radius: 10px;
        background: #fff;
        color: #0e7a65;
        font: inherit;
        font-size: 13px;
        font-weight: 700;
        cursor: pointer;
    }
    #nnEqWrap .nneq-question-toggle { margin-left: auto; white-space: nowrap; }
    #nnEqWrap .nneq-question-count {
        padding: 3px 6px;
        border-radius: 6px;
        background: #edf8f5;
        font-size: 11px;
    }
    #nnEqWrap.nneq-mobile-ready .nneq-col-dots {
        display: none;
        position: fixed;
        inset: 0 0 0 auto;
        z-index: 2001;
        width: min(360px, 92vw);
        height: 100vh;
        height: 100dvh;
        max-height: none;
        margin: 0;
        padding: max(18px, env(safe-area-inset-top)) 16px max(18px, env(safe-area-inset-bottom));
        box-sizing: border-box;
        border: 0;
        border-left: 1px solid #dce8e5;
        border-radius: 16px 0 0 16px;
        background: #fff;
        box-shadow: -8px 0 32px rgba(44, 62, 80, .14);
        overflow: hidden;
    }
    #nnEqWrap.nneq-drawer-open .nneq-col-dots { display: flex; flex-direction: column; }
    #nnEqWrap .nneq-drawer-heading { display: flex; align-items: flex-start; gap: 10px; flex: none; }
    #nnEqWrap .nneq-drawer-heading h2 { margin: 0; font-size: 20px; color: #2c3e50; }
    #nnEqWrap .nneq-drawer-heading p,
    #nnEqWrap .nneq-drawer-help { margin: 8px 0 16px; font-size: 12px; line-height: 1.5; color: #647381; }
    #nnEqWrap .nneq-drawer-close { flex: none; width: 44px; margin-left: auto; padding: 0; font-size: 24px; }
    #nnEqWrap .nneq-dots-legend { display: flex; flex: none; gap: 8px 12px; }
    #nnEqWrap .nneq-drawer-help { display: block; flex: none; }
    #nnEqWrap .nneq-dots-scroll { flex: 1; min-height: 0; max-height: none; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 2px 4px 12px 0; }
    #nnEqWrap .nneq-dots { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
    #nnEqWrap .nneq-dot { width: 100%; height: 44px; min-width: 0; min-height: 44px; border-radius: 10px; font-size: 12px; }
    #nnEqWrap .nneq-drawer-backdrop:not([hidden]) {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 2000;
        width: 100%;
        height: 100%;
        margin: 0;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: rgba(23, 33, 43, .42);
        cursor: pointer;
    }
    #nnEqWrap .nneq-question-card { scroll-margin-top: calc(var(--nneq-header-offset, 74px) + 84px); }
    #nnEqWrap .nneq-question-toggle:focus-visible,
    #nnEqWrap .nneq-drawer-close:focus-visible,
    #nnEqWrap .nneq-dot:focus-visible { outline: 2px solid #16a085; outline-offset: 2px; }
}
