/* ============================================================
   星云壁纸 - 高级感UI前端样式 (Glassmorphism & Modern UI)
   ============================================================ */

.nw-wallpaper-wrap {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 16px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---- 顶部操作按钮 (微渐变与柔和投影) ---- */
.nw-action-btn {
    padding: 10px 22px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    outline: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.nw-btn-primary {
    background: linear-gradient(135deg, #24bce2 0%, #0ea5e9 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(36,188,226,.3);
}
.nw-btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(36,188,226,.4);
}
.nw-btn-primary:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}
.nw-btn-outline {
    background: transparent;
    border: 2px solid #e2e8f0;
    color: #475569;
}
.nw-btn-outline:hover, .nw-btn-outline.active {
    border-color: #24bce2;
    color: #24bce2;
    background: rgba(36,188,226,.05);
}

/* ---- 分类导航 (圆润胶囊风格) ---- */
.nw-cat-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 35px;
    padding: 0 4px;
}
.nw-cat-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 50px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 14px;
    cursor: pointer;
    transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    user-select: none;
    outline: none;
    box-shadow: 0 2px 0 rgba(0,0,0,0.02);
}
.nw-cat-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
    transform: translateY(-1px);
}
.nw-cat-btn.active {
    background: linear-gradient(135deg, #24bce2 0%, #0ea5e9 100%);
    color: #fff;
    box-shadow: 0 6px 15px rgba(36,188,226,.35);
}

/* ============================================================
   布局模式适配
   ============================================================ */
.nw-layout-grid .nw-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}
.nw-layout-grid .nw-card { aspect-ratio: 9 / 16; }
.nw-layout-grid .nw-card img { width: 100%; height: 100%; object-fit: cover; }

.nw-layout-masonry .nw-grid { column-count: 4; column-gap: 18px; margin-bottom: 40px; }
.nw-empty-state { column-span: all; display: block !important; width: 100% !important; text-align: center; padding: 80px 0; color: #94a3b8; }
.nw-perm-badge { opacity: 0; transition: opacity 0.35s ease; }
.nw-card:hover .nw-perm-badge { opacity: 1; }
.nw-empty-state i { font-size: 56px; display: block; margin-bottom: 15px; opacity: 0.4; }
.nw-empty-state p { margin: 0; font-size: 15px; font-weight: 500; }
.nw-layout-masonry .nw-card { break-inside: avoid; margin-bottom: 18px; display: inline-block; width: 100%; }
.nw-layout-masonry .nw-card img { width: 100%; height: auto; display: block; }

@media (max-width: 1400px) { .nw-layout-masonry .nw-grid { column-count: 4; column-gap: 16px; } }
@media (max-width: 1200px) { .nw-layout-masonry .nw-grid { column-count: 3; column-gap: 16px; } }
@media (max-width: 900px) { .nw-layout-masonry .nw-grid { column-count: 2; column-gap: 14px; } .nw-layout-masonry .nw-card { margin-bottom: 14px; } }
@media (max-width: 768px) {
    .nw-layout-masonry .nw-grid { column-count: 2; column-gap: 10px; }
    .nw-layout-masonry .nw-card { margin-bottom: 10px; border-radius: 10px; }
    .nw-layout-grid .nw-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
}
@media (max-width: 480px) {
    .nw-layout-masonry .nw-grid { column-count: 2; column-gap: 8px; }
    .nw-layout-masonry .nw-card { margin-bottom: 8px; border-radius: 8px; }
}

/* ---- 卡片通用高级样式 ---- */
.nw-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    background: #f8fafc;
    transform: translateZ(0);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid rgba(255,255,255,0.8);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.nw-card:hover {
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
    z-index: 2;
}
.nw-card-inner { width: 100%; height: 100%; position: relative; border-radius: 16px; overflow: hidden; }
.nw-card img { transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1); }
.nw-card:hover img { transform: scale(1.06); }

/* ---- 卡片信息遮罩 (磨砂玻璃与顺滑渐变) ---- */
.nw-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15,23,42,0.9) 0%, rgba(15,23,42,0.3) 50%, transparent 100%);
    opacity: 0;
    transition: opacity .4s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    pointer-events: none;
    padding-bottom: 60px; /* 给底部头像和统计留出空间 */
}
.nw-card:hover .nw-card-overlay { opacity: 1; }
.nw-card-title {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    padding: 12px 18px 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 2px 4px rgba(0,0,0,0.4);
    transform: translateY(10px);
    transition: transform 0.3s ease;
}
.nw-card:hover .nw-card-title { transform: translateY(0); }

.nw-card-tags {
    padding: 0 18px 12px;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    -ms-overflow-style: none; 
    scrollbar-width: none;
    transform: translateY(10px);
    transition: transform 0.3s ease;
}
.nw-card:hover .nw-card-tags { transform: translateY(0); }
.nw-card-tags::-webkit-scrollbar { display: none; }

/* 胶囊标签 */
.nw-list-tag {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    pointer-events: auto;
}
.nw-list-tag:hover { background: #24bce2; border-color: #24bce2; }


/* ============================================================
   发布弹窗与上传区域美化
   ============================================================ */
.nw-modal {
    position: fixed !important; inset: 0 !important; z-index: 999999 !important;
    display: none; align-items: center; justify-content: center;
}
.nw-modal-mask {
    position: absolute; inset: 0;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.nw-modal-content {
    position: relative; z-index: 1000000;
    background: #fff; width: 90%; max-width: 850px;
    border-radius: 24px; box-shadow: 0 25px 50px rgba(0,0,0,.25);
    display: flex; flex-direction: column; max-height: 85vh;
}

/* ---- 上传弹窗头部 ---- */
.nw-upload-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 28px 20px;
    border-bottom: 1px solid #f1f5f9;
    position: relative;
}
.nw-upload-header-icon {
    width: 48px; height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, #e0f2fe, #bae6fd);
    color: #0284c7;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}
.nw-upload-header-text h3 {
    margin: 0 0 4px 0;
    font-size: 18px; font-weight: 700;
    color: #0f172a;
}
.nw-upload-header-text p {
    margin: 0;
    font-size: 13px; color: #94a3b8;
}
.nw-upload-header .nw-modal-close {
    position: absolute;
    right: 20px; top: 20px;
    background: #f1f5f9; border: none;
    width: 36px; height: 36px;
    border-radius: 50%;
    font-size: 16px; color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
    display: flex; align-items: center; justify-content: center;
}
.nw-upload-header .nw-modal-close:hover {
    background: #fee2e2; color: #ef4444;
}

/* ---- 上传弹窗主体 ---- */
.nw-upload-body {
    padding: 24px 28px;
    overflow-y: auto;
    max-height: 55vh;
}
.nw-upload-body .nw-form-group { margin-bottom: 20px; }
.nw-upload-body .nw-form-group label {
    font-size: 13px; font-weight: 700;
    color: #475569;
    display: block; margin-bottom: 8px;
    text-transform: uppercase; letter-spacing: 0.5px;
}
.nw-upload-body .nw-form-group select {
    width: 100%; padding: 12px 15px;
    border: 2px solid #e2e8f0; border-radius: 12px;
    font-size: 15px; outline: none; background: #f8fafc;
    color: #334155; font-weight: 500;
    transition: all 0.3s ease; box-sizing: border-box;
    cursor: pointer;
}
.nw-upload-body .nw-form-group select:focus {
    border-color: #24bce2; background: #fff;
    box-shadow: 0 0 0 4px rgba(36,188,226,0.1);
}

/* ---- 上传标签切换 (分段控件) ---- */
.nw-upload-tabs {
    display: flex; gap: 4px;
    background: #f1f5f9; padding: 5px;
    border-radius: 14px;
    margin-bottom: 18px;
}
.nw-upload-tab {
    flex: 1; padding: 12px 20px;
    border: none; border-radius: 10px;
    background: transparent; color: #64748b;
    font-size: 14px; font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex; align-items: center; justify-content: center;
    gap: 8px;
    outline: none;
}
.nw-upload-tab:hover:not(.active) {
    color: #334155;
    background: rgba(255,255,255,0.6);
}
.nw-upload-tab.active {
    background: #fff;
    color: #0f172a;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
}
.nw-upload-tab i { font-size: 16px; }

/* ---- 上传面板 ---- */
.nw-upload-panel { padding-top: 4px; }

/* ---- 拖拽上传区 ---- */
.nw-dropzone {
    border: 2px dashed #cbd5e1;
    border-radius: 16px;
    padding: 50px 20px;
    text-align: center;
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}
.nw-dropzone:hover {
    border-color: #24bce2;
    background: #f0f9ff;
}
.nw-dropzone.dragover {
    border-color: #24bce2;
    background: #e0f2fe;
    transform: scale(0.98);
    border-style: solid;
}
.nw-dropzone.dragover .nw-drop-icon {
    color: #0284c7;
    transform: scale(1.1);
}
.nw-drop-icon {
    font-size: 44px; color: #94a3b8;
    margin-bottom: 14px; transition: all 0.3s ease;
}
.nw-dropzone h4 {
    margin: 0 0 8px 0;
    font-size: 17px; color: #1e293b; font-weight: 600;
}
.nw-dropzone > p {
    margin: 0 0 14px 0;
    font-size: 14px; color: #64748b;
}
.nw-drop-limits {
    display: flex; gap: 16px; justify-content: center;
    flex-wrap: wrap;
}
.nw-drop-limits span {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 12px; color: #94a3b8;
    background: #f1f5f9; padding: 5px 12px;
    border-radius: 20px;
    font-weight: 500;
}

/* ---- 外链面板 ---- */
.nw-url-input-wrap { margin-bottom: 12px; }
.nw-url-input-wrap textarea {
    resize: vertical;
    font-family: "SF Mono", "Monaco", "Menlo", monospace;
    font-size: 13px;
    line-height: 1.6;
}
.nw-url-hint {
    font-size: 12px; color: #94a3b8;
    margin-top: 8px;
    display: flex; align-items: center; gap: 5px;
}
#nw-url-add-btn {
    width: 100%; justify-content: center;
    border-radius: 12px; border-style: dashed;
    padding: 12px; font-size: 15px;
}

/* ---- 上传队列 ---- */
#nw-upload-queue { margin-top: 24px; }
.nw-queue-header {
    display: flex; justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}
.nw-queue-title {
    font-size: 15px; font-weight: 700;
    color: #1e293b;
    display: flex; align-items: center; gap: 8px;
}
.nw-queue-title i { color: #24bce2; }
.nw-queue-badge {
    background: linear-gradient(135deg, #24bce2, #0ea5e9);
    color: #fff; font-size: 13px; font-weight: 700;
    min-width: 24px; height: 24px; line-height: 24px;
    border-radius: 12px; text-align: center;
    padding: 0 8px;
}
.nw-queue-empty {
    text-align: center; padding: 40px 20px;
    color: #cbd5e1;
}
.nw-queue-empty i { font-size: 48px; display: block; margin-bottom: 12px; }
.nw-queue-empty p { margin: 0; font-size: 14px; color: #94a3b8; }

#nw-upload-list { display: flex; flex-direction: column; gap: 12px; }

/* ---- 上传弹窗底部 ---- */
.nw-upload-footer {
    padding: 18px 28px 24px;
    border-top: 1px solid #f1f5f9;
    display: flex; gap: 12px;
    background: #fafbfc;
    border-radius: 0 0 24px 24px;
}
.nw-upload-footer button {
    flex: 1; justify-content: center;
    border-radius: 12px; padding: 13px 20px;
    font-size: 15px;
}
.nw-upload-footer .nw-btn-outline {
    flex: 0 0 auto; min-width: 100px;
}
.nw-up-btn-count { font-size: 12px; opacity: 0.8; margin-left: 4px; }


/* ============================================================
   响应式微调
   ============================================================ */
@media (max-width: 768px) {
    .nw-action-bar { flex-direction: column; gap: 15px; align-items: stretch; }
    .nw-cat-nav {
        flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto;
        padding-bottom: 10px; scrollbar-width: none;
    }
    .nw-card { border-radius: 12px; }
    .nw-card-inner { border-radius: 12px; }

    .nw-upload-header { padding: 18px 16px 14px; }
    .nw-upload-header-icon { width: 40px; height: 40px; font-size: 18px; border-radius: 10px; }
    .nw-upload-header-text h3 { font-size: 16px; }
    .nw-upload-body { padding: 16px; max-height: 50vh; }
    .nw-upload-footer { padding: 14px 16px 18px; flex-direction: column; }
    .nw-upload-footer .nw-btn-outline { order: 2; min-width: auto; }
    .nw-upload-footer .nw-btn-primary { order: 1; }
    .nw-dropzone { padding: 30px 16px; }
    .nw-dropzone h4 { font-size: 15px; }
    .nw-upload-tab { padding: 10px 14px; font-size: 13px; }
    .nw-upload-tab span { display: none; }
    .nw-upload-tab i { font-size: 18px; }
}

/* Zibll night mode */
.dark-theme .nw-top-tabs,
.dark-theme .nw-upload-tabs {
    background: #2d2e31;
}
.dark-theme .nw-top-tab,
.dark-theme .nw-upload-tab {
    color: #b4b6bb;
}
.dark-theme .nw-top-tab:hover:not(.active),
.dark-theme .nw-upload-tab:hover:not(.active) {
    color: #f8fafc;
    background: rgba(255,255,255,.06);
}
.dark-theme .nw-top-tab.active,
.dark-theme .nw-upload-tab.active {
    background: #43454a;
    color: #38bdf8;
    box-shadow: none;
}
.dark-theme .nw-btn-outline,
.dark-theme .nw-cat-btn,
.dark-theme .nw-ori-btn {
    background: #323335 !important;
    border-color: #43454a !important;
    color: #b4b6bb !important;
}
.dark-theme .nw-cat-btn:hover,
.dark-theme .nw-btn-outline:hover {
    background: #37383a !important;
    color: #f8fafc !important;
}
.dark-theme .nw-cat-btn.active {
    background: linear-gradient(135deg, #24bce2 0%, #0ea5e9 100%) !important;
    color: #fff !important;
}
.dark-theme .nw-card,
.dark-theme .nw-modal-content,
.dark-theme .nw-up-item {
    background: #323335;
    border-color: rgba(148,163,184,.14);
}
.dark-theme .nw-download-perms,
.dark-theme .nw-upload-footer {
    background: #2d2e31 !important;
    border-color: #43454a !important;
}
.dark-theme .nw-download-perms label,
.dark-theme .nw-download-perms span,
.dark-theme .nw-upload-body .nw-form-group label,
.dark-theme .nw-upload-header-text h3 {
    color: #e5eef7 !important;
}
.dark-theme .nw-premium-input,
.dark-theme .nw-upload-body .nw-form-group select,
.dark-theme .nw-download-perms select,
.dark-theme .nw-download-perms input {
    background: #292a2d !important;
    border-color: #43454a !important;
    color: #e5eef7 !important;
}
.dark-theme .nw-pure-box {
    background: #323335 !important;
    color: #e5eef7 !important;
}
.dark-theme .nw-pure-cancel {
    background: #43454a !important;
    color: #e5eef7 !important;
}

/* ============================================================
   Wallpaper gallery product polish
   ============================================================ */
.nw-wallpaper-wrap {
    --nw-accent: #0ea5e9;
    --nw-accent-strong: #0284c7;
    --nw-ink: #0f172a;
    --nw-muted: #64748b;
    --nw-line: #e2e8f0;
    --nw-soft: #f8fafc;
    --nw-panel: rgba(255, 255, 255, .92);
    padding: 22px 14px 36px;
}

.nw-top-tabs {
    width: 100% !important;
    gap: 4px !important;
    margin-bottom: 16px !important;
    padding: 4px !important;
    border: 1px solid rgba(226, 232, 240, .9);
    border-radius: 15px !important;
    background: rgba(248, 250, 252, .88) !important;
    box-shadow: 0 10px 32px rgba(15, 23, 42, .04);
}
.nw-top-tab {
    flex: 1 1 0;
    justify-content: center;
    min-height: 42px;
    padding: 9px 18px !important;
    border-radius: 11px !important;
    color: var(--nw-muted) !important;
    font-size: 14px !important;
}
.nw-top-tab.active {
    color: var(--nw-accent-strong) !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, .08) !important;
}

.nw-action-bar {
    align-items: center;
    margin-bottom: 14px !important;
    padding: 13px;
    border: 1px solid rgba(226, 232, 240, .9);
    border-radius: 18px;
    background: var(--nw-panel);
    box-shadow: 0 12px 34px rgba(15, 23, 42, .055);
}
.nw-bar-left,
.nw-bar-right {
    align-items: center;
    gap: 8px !important;
}
.nw-action-btn {
    min-height: 40px;
    padding: 9px 15px;
    border-radius: 11px;
    font-size: 13px;
    letter-spacing: .01em;
}
.nw-btn-primary {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    box-shadow: 0 7px 16px rgba(14, 165, 233, .22);
}
.nw-btn-outline {
    border: 1px solid var(--nw-line);
    background: #fff;
}

.nw-layout-switch {
    gap: 3px !important;
    padding: 3px !important;
    border: 1px solid rgba(226, 232, 240, .9);
    border-radius: 11px !important;
    background: #f8fafc !important;
}
.nw-layout-switch .nw-cat-btn {
    min-height: 32px;
    padding: 6px 11px !important;
    border-radius: 8px;
    box-shadow: none;
}

.nw-sort-group {
    gap: 3px !important;
    padding: 3px;
    border: 1px solid rgba(226, 232, 240, .9);
    border-radius: 11px;
    background: #f8fafc;
}
.nw-sort-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border-radius: 8px;
    color: var(--nw-muted) !important;
    font-size: 13px;
    line-height: 1;
    transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}
.nw-sort-btn:hover {
    color: var(--nw-ink) !important;
}
.nw-sort-btn.active {
    background: #fff;
    color: var(--nw-accent-strong) !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .08);
}

.nw-orientation-filter {
    justify-content: flex-start !important;
    gap: 5px !important;
    margin-bottom: 12px !important;
    padding: 4px;
    overflow-x: auto;
    border: 1px solid rgba(226, 232, 240, .8);
    border-radius: 13px;
    background: rgba(248, 250, 252, .85);
    scrollbar-width: none;
}
.nw-orientation-filter::-webkit-scrollbar,
.nw-cat-nav::-webkit-scrollbar {
    display: none;
}
.nw-ori-btn {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 7px 13px !important;
    border-color: transparent !important;
    border-radius: 9px !important;
    background: transparent !important;
    font-size: 13px !important;
}
.nw-ori-btn.active {
    background: #fff !important;
    color: var(--nw-accent-strong) !important;
    border-color: #fff !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .08) !important;
}

.nw-cat-nav {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 7px;
    margin-bottom: 22px;
    padding: 2px 1px 6px;
    overflow-x: auto;
    scrollbar-width: none;
}
.nw-cat-btn {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 8px 15px;
    border: 1px solid transparent;
    border-radius: 10px;
    box-shadow: none;
    font-size: 13px;
}
.nw-cat-btn.active {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    box-shadow: 0 7px 16px rgba(14, 165, 233, .2);
}

.nw-card,
.nw-card-inner {
    border-radius: 14px;
}
.nw-layout-masonry .nw-card.nw-loaded {
    box-shadow: 0 8px 24px rgba(15, 23, 42, .075) !important;
}
.nw-layout-masonry .nw-card:hover {
    box-shadow: 0 16px 34px rgba(15, 23, 42, .14) !important;
}

/* The public gallery must never expose the retired batch console. */
#nw-tab-browse > .nw-bulk-action-bar,
#nw-tab-browse > #nw-bulk-edit-modal {
    display: none !important;
}

@media (max-width: 768px) {
    .nw-wallpaper-wrap {
        padding: 12px 8px 26px;
    }
    .nw-action-bar {
        gap: 10px !important;
        padding: 10px;
        border-radius: 15px;
    }
    .nw-bar-left,
    .nw-bar-right {
        width: 100%;
    }
    .nw-bar-left {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .nw-bar-left .nw-action-btn {
        justify-content: center;
        min-width: 0;
        padding: 8px 9px;
        white-space: nowrap;
    }
    .nw-bar-right {
        justify-content: space-between;
        flex-wrap: nowrap !important;
        gap: 7px !important;
        overflow-x: auto;
        scrollbar-width: none;
    }
    .nw-layout-switch,
    .nw-sort-group {
        flex: 0 0 auto;
    }
    .nw-sort-btn {
        padding: 7px 8px;
        font-size: 12px;
    }
    .nw-orientation-filter {
        margin-bottom: 10px !important;
    }
    .nw-cat-nav {
        margin-bottom: 16px;
        padding-bottom: 4px;
    }
}

@media (max-width: 560px) {
    .nw-top-tab {
        padding: 8px 10px !important;
        font-size: 13px !important;
    }
    .nw-bar-left {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .nw-bar-left .nw-btn-primary {
        grid-column: 1 / -1;
    }
    .nw-sort-btn i {
        display: none;
    }
}

.dark-theme .nw-action-bar,
.dark-theme .nw-top-tabs,
.dark-theme .nw-orientation-filter,
.dark-theme .nw-layout-switch,
.dark-theme .nw-sort-group {
    border-color: #43454a;
    background: rgba(45, 46, 49, .92) !important;
}
.dark-theme .nw-sort-btn.active,
.dark-theme .nw-ori-btn.active,
.dark-theme .nw-btn-outline {
    background: #43454a !important;
    color: #38bdf8 !important;
}
