body .nova-mobile-search { display:none; }
body .nova-mobile-search-dialog:not([open]) { display:none; }
body .nova-mobile-search-dialog { position:fixed; inset:auto 0 0; margin:0; width:100%; max-width:none; max-height:calc(100dvh - 24px); box-sizing:border-box; overflow:auto; overscroll-behavior:contain; padding:20px 20px max(24px,env(safe-area-inset-bottom)); border:1px solid #555; border-bottom:0; border-radius:24px 24px 0 0; background:#202020; color:#fff; font:1rem/1.4 var(--vixen-body); box-shadow:0 -12px 48px #0005; color-scheme:dark; }
body .nova-mobile-search-dialog[open] { animation:nova-search-sheet-enter 220ms cubic-bezier(.2,.7,.3,1); }
body .nova-mobile-search-dialog::backdrop { background:#0009; backdrop-filter:blur(2px); }
body .nova-mobile-search-dialog .nova-mobile-sheet-grip { width:34px; height:4px; border-radius:4px; background:#666; margin:-8px auto 16px; }
body .nova-mobile-search-dialog header { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:18px; }
body .nova-mobile-search-dialog :is(.nova-mobile-sheet-grip,header) { touch-action:none; user-select:none; }
body .nova-mobile-search-dialog .nova-mobile-sheet-grip { position:relative; }
body .nova-mobile-search-dialog .nova-mobile-sheet-grip::before { content:""; position:absolute; inset:-12px -30px; }
body .nova-mobile-search-dialog[data-swipe-ready] { animation:none; transform:translateY(var(--nova-sheet-drag,0px)); transition:transform 180ms ease-out; }
body .nova-mobile-search-dialog[data-swiping] { transition:none; }
body .nova-mobile-search-dialog[data-swipe-closing] { animation:nova-search-sheet-exit 200ms ease-in forwards; pointer-events:none; }
body .nova-mobile-search-dialog h2 { margin:0; font:1.5rem/1.1 var(--vixen-heading); letter-spacing: -0.04em !important; }
body .nova-mobile-search-dialog :is(button,input,select) { box-sizing:border-box; font:inherit; }
body .nova-mobile-search-dialog button { cursor:pointer; color:inherit; }
body .nova-mobile-search-dialog svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; }
body .nova-mobile-sheet-close { display:grid; place-items:center; flex:none; width:44px; height:44px; padding:0; border:1px solid #666; border-radius:50%; background:transparent; color:#fff!important; -webkit-tap-highlight-color:transparent; }
body .nova-mobile-filter-draft { margin:0; }
body .nova-mobile-search-dialog .nova-mobile-search-box { display:flex; align-items:center; min-width:0; height:50px; padding-left:12px; border:1px solid #666; border-radius:999px; background:#111; }
body .nova-mobile-search-dialog input[type=search] { min-width:0; width:100%; height:48px; padding:0 6px; border:0; background:transparent; color:#fff; font:16px/1.3 var(--vixen-body); }
body .nova-mobile-search-dialog .nova-mobile-search-glyph { display:flex; color:#bcbcbc; }
body .nova-mobile-search-clear { display:grid; place-items:center; flex:none; width:44px; height:44px; padding:0; border:0; border-radius:50%; background:transparent; color:#fff!important; cursor:pointer; }
body .nova-mobile-search-clear[hidden] { display:none!important; }
body .nova-mobile-search-clear svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; pointer-events:none; }
body :is(.nova-mobile-search-dialog,.nova-mobile-search) input[type=search]::-webkit-search-cancel-button { -webkit-appearance:none; appearance:none; display:none; }
body .nova-mobile-filter-fields { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:16px 12px; margin-top:18px; }
body .nova-mobile-filter-fields label { display:grid; gap:8px; min-width:0; font-size:.85rem; font-weight:600; }
body .nova-mobile-filter-fields label:first-child { grid-column:1 / -1; }
body .nova-mobile-filter-fields select { width:100%; min-width:0; max-width:100%; height:48px; padding:9px 10px; border:1px solid #666; border-radius:12px; background:#111; color:#fff; font:16px/1.3 var(--vixen-body); }
body .nova-mobile-filter-draft footer { display:flex; align-items:center; gap:12px; margin-top:24px; }
body .nova-mobile-filter-reset { min-height:48px; padding:8px 0; border:0; background:transparent; color:#ccc!important; font-size:.8rem!important; }
body .nova-mobile-filter-apply { flex:1; min-width:0; min-height:48px; padding:10px 12px; border:1px solid #fff; border-radius:999px; background:#fff; color:#111!important; font:1rem/1.2 var(--vixen-heading)!important; letter-spacing: -0.04em !important; }
body .nova-mobile-search-dialog :focus-visible { outline:2px solid #fff; outline-offset:3px; }
body .nova-mobile-search-dialog button:focus:not(:focus-visible) { outline:0; }
@keyframes nova-search-sheet-enter { from { transform:translateY(24px); opacity:.6; } to { transform:translateY(0); opacity:1; } }
@keyframes nova-search-sheet-exit { from { transform:translateY(var(--nova-sheet-drag,0px)); } to { transform:translateY(100%); } }
@media(prefers-reduced-motion:reduce) { body .nova-mobile-search-dialog[open] { animation:none; } }
@media(prefers-reduced-motion:reduce) { body .nova-mobile-search-dialog[data-swipe-ready] { transition:none; } }
@media(max-width:767px) {
    body #main-content .news-directory--nova .news-header--nova { margin-bottom:16px; }
    body #main-content .news-directory--nova .nova-search-toolbar.nova-mobile-ready { grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:8px; margin:8px 0 20px; padding:8px 0; }
    body #main-content .news-directory--nova .nova-mobile-ready .nova-filter-bar { display:block; margin:0; min-width:0; }
    body #main-content .news-directory--nova .nova-mobile-ready .nova-filter-bar>label,
    body #main-content .news-directory--nova .nova-mobile-ready .nova-filter-feedback { display:none; }
    body #main-content .news-directory--nova .nova-mobile-ready .nova-mobile-search { display:flex; align-items:center; min-width:0; min-height:50px; box-sizing:border-box; padding:2px 4px 2px 0; border:1px solid #666; border-radius:999px; background:#202020; }
    body #main-content .news-directory--nova .nova-mobile-search-box { display:flex; align-items:center; flex:1; gap:6px; min-width:0; padding-left:12px; }
    body #main-content .news-directory--nova .nova-mobile-search-glyph { display:flex; flex:none; color:#bcbcbc; }
    body #main-content .news-directory--nova .nova-mobile-search svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; }
    body #main-content .news-directory--nova .nova-mobile-search input[type=search] { flex:1 1 0; width:100%; min-width:0; min-height:44px; height:44px; padding:0; border:0; border-radius:0; background:transparent; color:#fff; font:16px/1.3 var(--vixen-body)!important; box-shadow:none; }
    body #main-content .news-directory--nova .nova-mobile-search input[type=search]:focus { outline:0; border:0; box-shadow:none; }
    body #main-content .news-directory--nova .nova-mobile-search:focus-within { outline:2px solid #fff; outline-offset:2px; }
    body #main-content .news-directory--nova .nova-mobile-search-clear { flex:0 0 44px; width:44px; min-width:44px; height:44px; min-height:44px; padding:0; border:0; background:transparent; color:#fff!important; }
    body #main-content .news-directory--nova .nova-mobile-filter-trigger { position:relative; display:grid; place-items:center; flex:none; width:44px; min-height:44px; padding:0; border:0; border-left:1px solid #555; border-radius:0; background:transparent; color:#fff; }
    /* Keep Safari touch focus inside the pill, not in a native square outline. */
    body #main-content .news-directory--nova .nova-mobile-search :is(.nova-mobile-filter-trigger,.nova-mobile-search-clear) { -webkit-appearance:none; appearance:none; -webkit-tap-highlight-color:transparent; }
    body #main-content .news-directory--nova .nova-mobile-search :is(.nova-mobile-filter-trigger,.nova-mobile-search-clear):focus { outline:0; box-shadow:none; }
    body #main-content .news-directory--nova .nova-mobile-filter-trigger:focus-visible::after { content:""; position:absolute; inset:4px; border:2px solid #fff; border-radius:50%; pointer-events:none; }
    body #main-content .news-directory--nova .nova-mobile-search .nova-mobile-search-clear:focus-visible { box-shadow:inset 0 0 0 2px #fff; }
    body #main-content .news-directory--nova .nova-mobile-filter-count { position:absolute; right:-1px; top:0; display:grid; place-items:center; min-width:16px; height:16px; border-radius:50%; background:#fff; color:#111; font:11px/1 var(--vixen-body); }
    body #main-content .news-directory--nova .nova-mobile-ready .nova-agenda-link { width:auto; min-height:50px; padding:8px 12px; font:.85rem/1.2 var(--vixen-body); font-weight:700; }
}
