@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

html[data-ui-theme="refined"] {
    --bs-body-bg: #0d1522;
    --bs-body-color: #d9e4f2;
    --primary-color: #7ccbbd;
    --secondary-color: #89a4ff;
    --success-color: #86d9a5;
    --info-color: #84c2ff;
    --warning-color: #f2c46d;
    --danger-color: #ef9aa3;
    --light-color: #f2f6fb;
    --dark-color: #09111d;

    --ref-bg: #0d1522;
    --ref-bg-soft: rgba(15, 23, 36, 0.88);
    --ref-surface: rgba(18, 27, 41, 0.88);
    --ref-surface-strong: rgba(22, 33, 50, 0.96);
    --ref-surface-muted: rgba(14, 21, 34, 0.78);
    --ref-border: rgba(152, 177, 220, 0.16);
    --ref-border-strong: rgba(188, 209, 245, 0.24);
    --ref-shadow: 0 22px 55px rgba(2, 7, 16, 0.34);
    --ref-shadow-soft: 0 14px 34px rgba(2, 7, 16, 0.24);
    --ref-text: #d9e4f2;
    --ref-text-muted: #91a2ba;
    --ref-text-soft: #b8c6d9;
    --ref-highlight: rgba(124, 203, 189, 0.18);
    --ref-highlight-strong: rgba(124, 203, 189, 0.32);
    --ref-blue-glow: rgba(137, 164, 255, 0.24);
    --ref-warm-glow: rgba(242, 196, 109, 0.18);
    --ref-radius: 24px;
    --ref-radius-sm: 16px;
    color-scheme: dark;
}

html[data-ui-theme="refined"][data-ui-tone="light"] {
    --bs-body-bg: #eef3f8;
    --bs-body-color: #1f2d3d;
    --primary-color: #2f8f83;
    --secondary-color: #5f7de8;
    --success-color: #2f9f68;
    --info-color: #377fda;
    --warning-color: #d89a2f;
    --danger-color: #d9656a;
    --light-color: #ffffff;
    --dark-color: #152235;

    --ref-bg: #eef3f8;
    --ref-bg-soft: rgba(255, 255, 255, 0.84);
    --ref-surface: rgba(255, 255, 255, 0.84);
    --ref-surface-strong: rgba(255, 255, 255, 0.94);
    --ref-surface-muted: rgba(244, 248, 252, 0.96);
    --ref-border: rgba(124, 146, 178, 0.18);
    --ref-border-strong: rgba(124, 146, 178, 0.28);
    --ref-shadow: 0 22px 50px rgba(81, 105, 134, 0.16);
    --ref-shadow-soft: 0 16px 34px rgba(81, 105, 134, 0.12);
    --ref-text: #1f2d3d;
    --ref-text-muted: #6f8198;
    --ref-text-soft: #4f647f;
    --ref-highlight: rgba(47, 143, 131, 0.14);
    --ref-highlight-strong: rgba(47, 143, 131, 0.22);
    --ref-blue-glow: rgba(95, 125, 232, 0.14);
    --ref-warm-glow: rgba(216, 154, 47, 0.12);
    color-scheme: light;
}

html[data-ui-theme="refined"] body {
    font-family: 'Manrope', 'Segoe UI', sans-serif !important;
    color: var(--ref-text) !important;
    background:
        radial-gradient(circle at 0% 0%, rgba(124, 203, 189, 0.16), transparent 24%),
        radial-gradient(circle at 100% 0%, rgba(137, 164, 255, 0.18), transparent 28%),
        radial-gradient(circle at 50% 100%, rgba(242, 196, 109, 0.08), transparent 26%),
        linear-gradient(180deg, #0b121e 0%, #0d1522 50%, #0b1320 100%) !important;
    background-attachment: fixed !important;
    letter-spacing: -0.01em;
    isolation: isolate;
}

html[data-ui-theme="refined"] body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 140px 140px;
    mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
    opacity: 0.28;
    z-index: -1;
}

html[data-ui-theme="refined"] ::selection {
    background: rgba(124, 203, 189, 0.28);
    color: #f6fbff;
}

html[data-ui-theme="refined"] h1,
html[data-ui-theme="refined"] h2,
html[data-ui-theme="refined"] h3,
html[data-ui-theme="refined"] h4,
html[data-ui-theme="refined"] h5,
html[data-ui-theme="refined"] h6,
html[data-ui-theme="refined"] .h1,
html[data-ui-theme="refined"] .h2,
html[data-ui-theme="refined"] .h3,
html[data-ui-theme="refined"] .h4,
html[data-ui-theme="refined"] .h5,
html[data-ui-theme="refined"] .h6 {
    color: #f5f8fc !important;
    letter-spacing: -0.03em;
}

html[data-ui-theme="refined"] a {
    color: #a9cbff;
}

html[data-ui-theme="refined"] a:hover {
    color: #d7e7ff;
}

html[data-ui-theme="refined"] .text-muted,
html[data-ui-theme="refined"] small,
html[data-ui-theme="refined"] .form-text {
    color: var(--ref-text-muted) !important;
}

html[data-ui-theme="refined"] .text-light {
    color: #edf4ff !important;
}

html[data-ui-theme="refined"] .text-secondary {
    color: #b6c3d7 !important;
}

html[data-ui-theme="refined"] .text-primary {
    color: var(--primary-color) !important;
}

html[data-ui-theme="refined"] .text-info {
    color: var(--info-color) !important;
}

html[data-ui-theme="refined"] .text-success {
    color: var(--success-color) !important;
}

html[data-ui-theme="refined"] .text-warning {
    color: var(--warning-color) !important;
}

html[data-ui-theme="refined"] .text-danger {
    color: var(--danger-color) !important;
}

html[data-ui-theme="refined"] .bg-dark,
html[data-ui-theme="refined"] .bg-black {
    background: rgba(9, 14, 24, 0.9) !important;
}

html[data-ui-theme="refined"] .bg-secondary {
    background: rgba(29, 40, 57, 0.82) !important;
}

html[data-ui-theme="refined"] .border-secondary,
html[data-ui-theme="refined"] .border-bottom,
html[data-ui-theme="refined"] .border-top {
    border-color: var(--ref-border) !important;
}

html[data-ui-theme="refined"] #wrapper {
    width: 100%;
}

html[data-ui-theme="refined"] #page-content-wrapper {
    min-width: 0;
    padding: 2rem 2.2rem 8.5rem !important;
}

html[data-ui-theme="refined"] .refined-nav-item {
    display: flex !important;
}

html[data-ui-theme="refined"] .refined-theme-group {
    display: block !important;
    margin-top: 1rem;
}

html[data-ui-theme="refined"] .sidebar-group-label {
    margin: 0 0 0.65rem;
    padding: 0 0.2rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ref-text-muted);
}

html[data-ui-theme="refined"] .theme-choice-stack {
    display: grid;
    gap: 0.4rem;
}

html[data-ui-theme="refined"] .theme-choice-btn {
    border: 1px solid rgba(188, 209, 245, 0.08) !important;
    background: rgba(255, 255, 255, 0.03) !important;
}

html[data-ui-theme="refined"] .theme-choice-btn.is-active {
    background: linear-gradient(180deg, rgba(124, 203, 189, 0.18), rgba(137, 164, 255, 0.14)) !important;
    border-color: rgba(124, 203, 189, 0.22) !important;
    color: #f8fbff !important;
}

html[data-ui-theme="refined"] .theme-choice-btn.is-active i {
    color: inherit !important;
}

html[data-ui-theme="refined"] .sidebar-heading-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background:
        radial-gradient(circle at 28% 25%, rgba(255, 255, 255, 0.18), transparent 42%),
        linear-gradient(145deg, rgba(124, 203, 189, 0.18), rgba(137, 164, 255, 0.14));
    border: 1px solid rgba(124, 203, 189, 0.18);
    color: #a7e2d6;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 10px 22px rgba(12, 24, 38, 0.16);
}

html[data-ui-theme="refined"] .sidebar-brand-glyph {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3px;
    width: 18px;
    height: 18px;
    transform: rotate(-8deg);
}

html[data-ui-theme="refined"] .sidebar-brand-glyph span {
    display: block;
    border-radius: 4px;
    background: linear-gradient(180deg, rgba(236, 249, 255, 0.96), rgba(171, 241, 225, 0.92));
    box-shadow: inset 0 -1px 0 rgba(18, 53, 64, 0.14);
}

html[data-ui-theme="refined"] .sidebar-brand-glyph span:nth-child(1) {
    border-top-left-radius: 7px;
}

html[data-ui-theme="refined"] .sidebar-brand-glyph span:nth-child(2) {
    background: linear-gradient(180deg, rgba(218, 234, 255, 0.96), rgba(147, 178, 255, 0.9));
}

html[data-ui-theme="refined"] .sidebar-brand-glyph span:nth-child(3) {
    background: linear-gradient(180deg, rgba(209, 246, 240, 0.96), rgba(116, 205, 185, 0.9));
}

html[data-ui-theme="refined"] .sidebar-brand-glyph span:nth-child(4) {
    background: linear-gradient(180deg, rgba(255, 226, 173, 0.95), rgba(242, 196, 109, 0.92));
    border-bottom-right-radius: 7px;
}

html[data-ui-theme="refined"] .sidebar-brand-glyph::after {
    content: "";
    position: absolute;
    right: -3px;
    top: -3px;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #f5cb73;
    box-shadow: 0 0 0 2px rgba(13, 21, 34, 0.42);
}

html[data-ui-theme="refined"] .refined-shortcut {
    position: relative;
}

html[data-ui-theme="refined"] .refined-shortcut::after {
    content: "Quick";
    margin-left: auto;
    font-size: 0.68rem;
    line-height: 1;
    padding: 0.28rem 0.48rem;
    border-radius: 999px;
    background: rgba(124, 203, 189, 0.14);
    color: #cfece6;
    border: 1px solid rgba(124, 203, 189, 0.18);
}

html[data-ui-theme="refined"] .card,
html[data-ui-theme="refined"] .logs-drawer,
html[data-ui-theme="refined"] .notification-dropdown,
html[data-ui-theme="refined"] .toast,
html[data-ui-theme="refined"] .modal-content,
html[data-ui-theme="refined"] #sidebar-wrapper {
    background:
        linear-gradient(180deg, rgba(20, 30, 45, 0.94) 0%, rgba(12, 18, 29, 0.96) 100%) !important;
    border: 1px solid var(--ref-border) !important;
    border-top-color: var(--ref-border-strong) !important;
    border-radius: var(--ref-radius) !important;
    box-shadow: var(--ref-shadow) !important;
    backdrop-filter: blur(18px) saturate(115%) !important;
    -webkit-backdrop-filter: blur(18px) saturate(115%) !important;
}

html[data-ui-theme="refined"] .card::before,
html[data-ui-theme="refined"] .modal-content::before,
html[data-ui-theme="refined"] .toast::before,
html[data-ui-theme="refined"] #sidebar-wrapper::before {
    display: none !important;
}

html[data-ui-theme="refined"] .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 28px 65px rgba(2, 7, 16, 0.4) !important;
}

html[data-ui-theme="refined"] .card-header {
    padding: 1.35rem 1.5rem 1rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent) !important;
    border-bottom: 1px solid rgba(188, 209, 245, 0.09) !important;
    color: #f6f9fd;
    letter-spacing: -0.02em;
}

html[data-ui-theme="refined"] .card-body {
    padding: 1.45rem;
}

html[data-ui-theme="refined"] .card-footer {
    border-top: 1px solid rgba(188, 209, 245, 0.08) !important;
    background: transparent !important;
}

html[data-ui-theme="refined"] .top-bar {
    justify-content: space-between !important;
    align-items: center !important;
    gap: 1rem;
    padding: 1rem 1.15rem !important;
    margin-bottom: 1.6rem;
    border: 1px solid var(--ref-border) !important;
    border-radius: 22px !important;
    background: rgba(14, 22, 35, 0.76) !important;
    backdrop-filter: blur(16px) saturate(110%) !important;
    box-shadow: var(--ref-shadow-soft) !important;
}

html[data-ui-theme="refined"] .quick-launch-bar {
    margin-bottom: 0 !important;
    padding: 0 !important;
    gap: 0.75rem !important;
    overflow: visible !important;
}

html[data-ui-theme="refined"] .quick-launch-bar .btn {
    min-width: 140px;
    height: 52px;
    border-radius: 16px !important;
}

html[data-ui-theme="refined"] .btn {
    border-radius: 14px !important;
    padding: 0.72rem 1.15rem;
    border: 1px solid transparent !important;
    font-weight: 700;
    letter-spacing: -0.01em;
    box-shadow: 0 12px 24px rgba(2, 7, 16, 0.22) !important;
}

html[data-ui-theme="refined"] .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 28px rgba(2, 7, 16, 0.28) !important;
}

html[data-ui-theme="refined"] .btn:focus-visible,
html[data-ui-theme="refined"] .form-control:focus,
html[data-ui-theme="refined"] .form-select:focus,
html[data-ui-theme="refined"] .form-check-input:focus {
    box-shadow: 0 0 0 0.22rem rgba(124, 203, 189, 0.18) !important;
}

html[data-ui-theme="refined"] .btn-primary {
    background: linear-gradient(135deg, #82d1c3 0%, #7ebeff 100%) !important;
    color: #07111d !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

html[data-ui-theme="refined"] .btn-success {
    background: linear-gradient(135deg, #87d9a5 0%, #6dcfb0 100%) !important;
    color: #08120d !important;
}

html[data-ui-theme="refined"] .btn-info {
    background: linear-gradient(135deg, #84c2ff 0%, #90d6ff 100%) !important;
    color: #07111d !important;
}

html[data-ui-theme="refined"] .btn-warning {
    background: linear-gradient(135deg, #f2c46d 0%, #f7d58d 100%) !important;
    color: #1d1506 !important;
}

html[data-ui-theme="refined"] .btn-danger {
    background: linear-gradient(135deg, #ef9aa3 0%, #f4b0a0 100%) !important;
    color: #19090c !important;
}

html[data-ui-theme="refined"] .btn-secondary {
    background: linear-gradient(135deg, rgba(137, 164, 255, 0.24), rgba(255, 255, 255, 0.08)) !important;
    border-color: rgba(137, 164, 255, 0.26) !important;
    color: #edf3ff !important;
}

html[data-ui-theme="refined"] .btn-outline-light,
html[data-ui-theme="refined"] .btn-outline-secondary,
html[data-ui-theme="refined"] .btn-outline-info,
html[data-ui-theme="refined"] .btn-outline-success,
html[data-ui-theme="refined"] .btn-outline-danger {
    background: rgba(255, 255, 255, 0.03) !important;
}

html[data-ui-theme="refined"] .btn-outline-light {
    border-color: rgba(188, 209, 245, 0.16) !important;
    color: var(--ref-text-soft) !important;
}

html[data-ui-theme="refined"] .btn-outline-secondary {
    border-color: rgba(137, 164, 255, 0.22) !important;
    color: #c9d7f5 !important;
}

html[data-ui-theme="refined"] .btn-outline-info {
    border-color: rgba(132, 194, 255, 0.24) !important;
    color: #cfe9ff !important;
}

html[data-ui-theme="refined"] .btn-outline-success {
    border-color: rgba(134, 217, 165, 0.24) !important;
    color: #d5f0df !important;
}

html[data-ui-theme="refined"] .btn-outline-danger {
    border-color: rgba(239, 154, 163, 0.24) !important;
    color: #ffd8dc !important;
}

html[data-ui-theme="refined"] .btn-outline-light:hover,
html[data-ui-theme="refined"] .btn-outline-secondary:hover,
html[data-ui-theme="refined"] .btn-outline-info:hover,
html[data-ui-theme="refined"] .btn-outline-success:hover,
html[data-ui-theme="refined"] .btn-outline-danger:hover {
    background: rgba(255, 255, 255, 0.07) !important;
    color: #f8fbff !important;
}

html[data-ui-theme="refined"] .btn-link {
    box-shadow: none !important;
}

html[data-ui-theme="refined"] .btn-warning.text-dark,
html[data-ui-theme="refined"] .btn-info.text-white,
html[data-ui-theme="refined"] .btn-primary.text-white,
html[data-ui-theme="refined"] .btn-success.text-white {
    color: #07111d !important;
}

html[data-ui-theme="refined"] .badge {
    border-radius: 999px !important;
    padding: 0.45rem 0.72rem;
    font-weight: 700;
    letter-spacing: 0;
}

html[data-ui-theme="refined"] .theme-toggle-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding-inline: 0.9rem !important;
    border-radius: 999px !important;
    gap: 0.05rem;
}

html[data-ui-theme="refined"] .theme-toggle-btn .badge {
    min-width: 3.35rem;
    background: rgba(132, 194, 255, 0.16) !important;
    color: #d7ecff !important;
    border: 1px solid rgba(132, 194, 255, 0.24);
}

html[data-ui-theme="refined"] .theme-toggle-btn.is-active {
    background: linear-gradient(135deg, rgba(124, 203, 189, 0.2), rgba(137, 164, 255, 0.18)) !important;
    border-color: rgba(124, 203, 189, 0.28) !important;
    color: #f6fbff !important;
}

html[data-ui-theme="refined"] .theme-toggle-btn.is-active .badge {
    background: linear-gradient(135deg, #82d1c3, #9fc2ff) !important;
    color: #07111d !important;
    border-color: transparent !important;
}

html[data-ui-theme="refined"] .alert {
    background: rgba(17, 26, 39, 0.78) !important;
    border: 1px solid rgba(188, 209, 245, 0.12) !important;
    border-radius: 18px !important;
    color: var(--ref-text) !important;
}

html[data-ui-theme="refined"] .alert-info {
    border-color: rgba(132, 194, 255, 0.22) !important;
    background: rgba(132, 194, 255, 0.09) !important;
}

html[data-ui-theme="refined"] .alert-warning {
    border-color: rgba(242, 196, 109, 0.22) !important;
    background: rgba(242, 196, 109, 0.09) !important;
}

html[data-ui-theme="refined"] .alert-danger {
    border-color: rgba(239, 154, 163, 0.22) !important;
    background: rgba(239, 154, 163, 0.1) !important;
}

html[data-ui-theme="refined"] .form-control,
html[data-ui-theme="refined"] .form-select {
    background: rgba(10, 17, 29, 0.82) !important;
    border: 1px solid rgba(188, 209, 245, 0.12) !important;
    color: #eef4ff !important;
    border-radius: 14px !important;
    min-height: 48px;
}

html[data-ui-theme="refined"] .form-control::placeholder {
    color: rgba(145, 162, 186, 0.85) !important;
}

html[data-ui-theme="refined"] .form-check-input {
    background-color: rgba(10, 17, 29, 0.92) !important;
    border-color: rgba(188, 209, 245, 0.22) !important;
}

html[data-ui-theme="refined"] .form-check-input:checked {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

html[data-ui-theme="refined"] .modal-header,
html[data-ui-theme="refined"] .modal-footer,
html[data-ui-theme="refined"] .toast-header {
    border-color: rgba(188, 209, 245, 0.1) !important;
    background: rgba(255, 255, 255, 0.02) !important;
}

html[data-ui-theme="refined"] .btn-close {
    filter: invert(1) brightness(1.3);
}

html[data-ui-theme="refined"] .toast-body {
    color: var(--ref-text) !important;
}

html[data-ui-theme="refined"] .table,
html[data-ui-theme="refined"] .table-dark {
    --bs-table-bg: transparent;
    --bs-table-color: var(--ref-text);
    --bs-table-hover-bg: rgba(255, 255, 255, 0.04);
    --bs-table-hover-color: #f6fbff;
    margin-bottom: 0;
}

html[data-ui-theme="refined"] .table > :not(caption) > * > * {
    border-bottom-color: rgba(188, 209, 245, 0.08) !important;
    padding-top: 0.95rem;
    padding-bottom: 0.95rem;
}

html[data-ui-theme="refined"] .table-secondary,
html[data-ui-theme="refined"] .table-dark thead,
html[data-ui-theme="refined"] .table-dark tfoot {
    --bs-table-bg: rgba(255, 255, 255, 0.04);
    --bs-table-color: #f3f7fc;
}

html[data-ui-theme="refined"] .progress {
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 999px;
}

html[data-ui-theme="refined"] .progress-bar {
    background: linear-gradient(90deg, #82d1c3, #8dbcff) !important;
}

html[data-ui-theme="refined"] .list-group-item {
    background: rgba(255, 255, 255, 0.025) !important;
    border: 1px solid rgba(188, 209, 245, 0.08) !important;
    color: var(--ref-text-soft) !important;
    border-radius: 16px !important;
    margin-bottom: 0.45rem;
}

html[data-ui-theme="refined"] .list-group-item:hover {
    background: rgba(255, 255, 255, 0.045) !important;
}

html[data-ui-theme="refined"] #progress-list-container .card {
    border-radius: 18px !important;
}

html[data-ui-theme="refined"] .batch-action-bar {
    background: linear-gradient(135deg, rgba(124, 203, 189, 0.14), rgba(137, 164, 255, 0.12)) !important;
    border: 1px solid rgba(124, 203, 189, 0.2) !important;
    border-radius: 18px !important;
    box-shadow: var(--ref-shadow-soft) !important;
}

html[data-ui-theme="refined"] #explorer-container,
html[data-ui-theme="refined"] #picker-container,
html[data-ui-theme="refined"] #yandex-container,
html[data-ui-theme="refined"] #pdf-container {
    background: rgba(9, 14, 24, 0.46) !important;
    border: 1px solid rgba(188, 209, 245, 0.08) !important;
    border-radius: 20px !important;
}

html[data-ui-theme="refined"] .explorer-breadcrumb {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(188, 209, 245, 0.1) !important;
    border-radius: 18px !important;
}

html[data-ui-theme="refined"] .explorer-breadcrumb span {
    color: #d9e8fd;
}

html[data-ui-theme="refined"] .explorer-breadcrumb span:hover,
html[data-ui-theme="refined"] .explorer-breadcrumb span.active {
    background: rgba(124, 203, 189, 0.12) !important;
    color: #f7fbff !important;
    text-shadow: none !important;
}

html[data-ui-theme="refined"] .explorer-item {
    background: rgba(255, 255, 255, 0.028) !important;
    border: 1px solid rgba(188, 209, 245, 0.08) !important;
    border-radius: 18px !important;
}

html[data-ui-theme="refined"] .explorer-item:hover {
    background: rgba(255, 255, 255, 0.055) !important;
    border-color: rgba(124, 203, 189, 0.2) !important;
}

html[data-ui-theme="refined"] #explorer-list.grid-view {
    gap: 1rem;
}

html[data-ui-theme="refined"] #explorer-list.grid-view .explorer-item {
    padding: 0.95rem;
    background: linear-gradient(180deg, rgba(20, 30, 45, 0.84), rgba(13, 19, 30, 0.94)) !important;
}

html[data-ui-theme="refined"] #explorer-list.grid-view .explorer-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 30px rgba(2, 7, 16, 0.24) !important;
}

html[data-ui-theme="refined"] #explorer-list.grid-view .explorer-thumb-container {
    background: rgba(9, 14, 24, 0.72) !important;
    border: 1px solid rgba(188, 209, 245, 0.06) !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.015) !important;
}

html[data-ui-theme="refined"] .explorer-actions .btn-xs,
html[data-ui-theme="refined"] .yandex-actions .btn-xs,
html[data-ui-theme="refined"] .btn-xs {
    width: 40px;
    height: 40px;
    min-width: 40px;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(188, 209, 245, 0.08) !important;
    box-shadow: none !important;
    line-height: 1 !important;
}

html[data-ui-theme="refined"] .yandex-actions .btn-xs i,
html[data-ui-theme="refined"] .yandex-actions .btn.btn-xs i {
    font-size: 1rem !important;
    line-height: 1 !important;
    margin: 0 !important;
}

html[data-ui-theme="refined"] .yandex-actions .btn-xs.text-info,
html[data-ui-theme="refined"] .yandex-actions .fa-download {
    color: #8dbcff !important;
}

html[data-ui-theme="refined"] .yandex-actions .btn.text-danger,
html[data-ui-theme="refined"] .yandex-actions .btn-xs.text-danger,
html[data-ui-theme="refined"] .yandex-actions .fa-trash-alt {
    color: #ef9aa3 !important;
}

html[data-ui-theme="refined"] .yandex-section-header {
    margin: 0.35rem;
    border-radius: 16px;
}

html[data-ui-theme="refined"] .yandex-section-header:hover {
    background: rgba(255, 255, 255, 0.045) !important;
}

html[data-ui-theme="refined"] .yandex-item {
    margin: 0 0.45rem;
    border-radius: 14px;
    border-bottom: none !important;
}

html[data-ui-theme="refined"] .yandex-item:hover {
    background: rgba(255, 255, 255, 0.05) !important;
}

html[data-ui-theme="refined"] .pdf-card-muted {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(188, 209, 245, 0.08) !important;
    border-radius: 16px !important;
}

html[data-ui-theme="refined"] .pdf-card-muted:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(188, 209, 245, 0.12) !important;
}

html[data-ui-theme="refined"] .photo-grid {
    gap: 1.2rem;
}

html[data-ui-theme="refined"] .photo-item .card,
html[data-ui-theme="refined"] .row .card.h-100.shadow-sm.border-0.position-relative,
html[data-ui-theme="refined"] .row .card.h-100.border-0.shadow-sm {
    background: linear-gradient(180deg, rgba(18, 27, 41, 0.92), rgba(11, 17, 27, 0.96)) !important;
    border: 1px solid rgba(188, 209, 245, 0.08) !important;
}

html[data-ui-theme="refined"] .photo-item img,
html[data-ui-theme="refined"] .card-img-top.rounded,
html[data-ui-theme="refined"] .img-fluid.rounded,
html[data-ui-theme="refined"] .img-thumbnail {
    background: rgba(8, 13, 22, 0.8) !important;
    border-radius: 14px !important;
}

html[data-ui-theme="refined"] .btn-check + .btn-outline-primary {
    border-color: rgba(132, 194, 255, 0.2) !important;
    color: #d7e9ff !important;
    background: rgba(255, 255, 255, 0.03) !important;
}

html[data-ui-theme="refined"] .btn-check:checked + .btn-outline-primary {
    background: linear-gradient(135deg, rgba(124, 203, 189, 0.24), rgba(137, 164, 255, 0.22)) !important;
    border-color: rgba(124, 203, 189, 0.28) !important;
    color: #f7fbff !important;
    box-shadow: none !important;
}

html[data-ui-theme="refined"] .log-console-muted,
html[data-ui-theme="refined"] #scriptOutput,
html[data-ui-theme="refined"] pre#executionOutput {
    background: rgba(8, 13, 22, 0.9) !important;
    color: #9ae0b6 !important;
    border: 1px solid rgba(134, 217, 165, 0.08) !important;
    border-radius: 18px !important;
    font-family: 'IBM Plex Mono', 'Consolas', monospace !important;
}

html[data-ui-theme="refined"] .log-entry,
html[data-ui-theme="refined"] #notification-list .notification-item {
    border-bottom-color: rgba(188, 209, 245, 0.06) !important;
}

html[data-ui-theme="refined"] .notification-time {
    color: #a4b6cb;
}

html[data-ui-theme="refined"] .notification-text {
    color: var(--ref-text-soft);
}

html[data-ui-theme="refined"] #sidebar-pdf-list .list-group-item {
    background: rgba(255, 255, 255, 0.02) !important;
}

html[data-ui-theme="refined"] .toast {
    border-radius: 20px !important;
}

html[data-ui-theme="refined"] #sidebar-wrapper .list-group-item {
    background: transparent !important;
    border: 1px solid transparent !important;
    color: rgba(226, 236, 248, 0.68) !important;
}

html[data-ui-theme="refined"] #sidebar-wrapper .list-group-item i {
    color: rgba(226, 236, 248, 0.58) !important;
}

html[data-ui-theme="refined"] #sidebar-wrapper .list-group-item:hover {
    background: rgba(255, 255, 255, 0.055) !important;
    color: #f8fbff !important;
    transform: none !important;
}

html[data-ui-theme="refined"] #sidebar-wrapper .list-group-item.active {
    background: linear-gradient(180deg, rgba(124, 203, 189, 0.18), rgba(137, 164, 255, 0.14)) !important;
    border-color: rgba(124, 203, 189, 0.2) !important;
    color: #f8fbff !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

html[data-ui-theme="refined"] #sidebar-wrapper .list-group-item.active i {
    color: #f8fbff !important;
    filter: none !important;
}

html[data-ui-theme="refined"] .refined-optional-nav-group {
    display: none !important;
}

html[data-ui-theme="refined"] .refined-mobile-logs-item {
    display: none !important;
}

html[data-ui-theme="refined"] .sidebar-secondary-group {
    padding-top: 0.8rem;
    margin-top: 0.8rem;
    border-top: 1px solid rgba(188, 209, 245, 0.08);
}

html[data-ui-theme="refined"] .sidebar-secondary-group .list-group-item {
    color: #dbe7fb !important;
}

html[data-ui-theme="refined"][data-ui-tone="light"] body {
    color: var(--ref-text) !important;
    background:
        radial-gradient(circle at 0% 0%, rgba(47, 143, 131, 0.12), transparent 26%),
        radial-gradient(circle at 100% 0%, rgba(95, 125, 232, 0.13), transparent 32%),
        radial-gradient(circle at 50% 100%, rgba(216, 154, 47, 0.08), transparent 28%),
        linear-gradient(180deg, #f7fafc 0%, #eef3f8 54%, #e9eff6 100%) !important;
}

html[data-ui-theme="refined"][data-ui-tone="light"] body::before {
    background:
        linear-gradient(rgba(23, 39, 61, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(23, 39, 61, 0.025) 1px, transparent 1px);
    opacity: 0.5;
}

html[data-ui-theme="refined"][data-ui-tone="light"] ::selection {
    background: rgba(47, 143, 131, 0.18);
    color: #102030;
}

html[data-ui-theme="refined"][data-ui-tone="light"] h1,
html[data-ui-theme="refined"][data-ui-tone="light"] h2,
html[data-ui-theme="refined"][data-ui-tone="light"] h3,
html[data-ui-theme="refined"][data-ui-tone="light"] h4,
html[data-ui-theme="refined"][data-ui-tone="light"] h5,
html[data-ui-theme="refined"][data-ui-tone="light"] h6,
html[data-ui-theme="refined"][data-ui-tone="light"] .h1,
html[data-ui-theme="refined"][data-ui-tone="light"] .h2,
html[data-ui-theme="refined"][data-ui-tone="light"] .h3,
html[data-ui-theme="refined"][data-ui-tone="light"] .h4,
html[data-ui-theme="refined"][data-ui-tone="light"] .h5,
html[data-ui-theme="refined"][data-ui-tone="light"] .h6,
html[data-ui-theme="refined"][data-ui-tone="light"] .text-light,
html[data-ui-theme="refined"][data-ui-tone="light"] .text-white {
    color: #18283c !important;
}

html[data-ui-theme="refined"][data-ui-tone="light"] a {
    color: #356fd3;
}

html[data-ui-theme="refined"][data-ui-tone="light"] a:hover {
    color: #2357ac;
}

html[data-ui-theme="refined"][data-ui-tone="light"] .text-muted,
html[data-ui-theme="refined"][data-ui-tone="light"] small,
html[data-ui-theme="refined"][data-ui-tone="light"] .form-text,
html[data-ui-theme="refined"][data-ui-tone="light"] .text-secondary {
    color: #61758f !important;
}

html[data-ui-theme="refined"][data-ui-tone="light"] .bg-dark,
html[data-ui-theme="refined"][data-ui-tone="light"] .bg-black,
html[data-ui-theme="refined"][data-ui-tone="light"] .bg-secondary {
    background: rgba(255, 255, 255, 0.72) !important;
    color: var(--ref-text) !important;
}

html[data-ui-theme="refined"][data-ui-tone="light"] .card,
html[data-ui-theme="refined"][data-ui-tone="light"] .logs-drawer,
html[data-ui-theme="refined"][data-ui-tone="light"] .notification-dropdown,
html[data-ui-theme="refined"][data-ui-tone="light"] .toast,
html[data-ui-theme="refined"][data-ui-tone="light"] .modal-content,
html[data-ui-theme="refined"][data-ui-tone="light"] #sidebar-wrapper,
html[data-ui-theme="refined"][data-ui-tone="light"] .top-bar,
html[data-ui-theme="refined"][data-ui-tone="light"] #explorer-container,
html[data-ui-theme="refined"][data-ui-tone="light"] #picker-container,
html[data-ui-theme="refined"][data-ui-tone="light"] #yandex-container,
html[data-ui-theme="refined"][data-ui-tone="light"] #pdf-container,
html[data-ui-theme="refined"][data-ui-tone="light"] .pdf-list-sidebar,
html[data-ui-theme="refined"][data-ui-tone="light"] .log-console-muted,
html[data-ui-theme="refined"][data-ui-tone="light"] #scriptOutput,
html[data-ui-theme="refined"][data-ui-tone="light"] pre#executionOutput {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(245, 248, 252, 0.98) 100%) !important;
    border-color: rgba(124, 146, 178, 0.16) !important;
    color: var(--ref-text) !important;
    box-shadow: var(--ref-shadow) !important;
}

html[data-ui-theme="refined"][data-ui-tone="light"] .card-header,
html[data-ui-theme="refined"][data-ui-tone="light"] .logs-drawer-header,
html[data-ui-theme="refined"][data-ui-tone="light"] .modal-header,
html[data-ui-theme="refined"][data-ui-tone="light"] .modal-footer,
html[data-ui-theme="refined"][data-ui-tone="light"] .toast-header {
    background: linear-gradient(180deg, rgba(47, 143, 131, 0.06), rgba(255, 255, 255, 0.45)) !important;
    border-bottom-color: rgba(124, 146, 178, 0.14) !important;
    color: var(--ref-text) !important;
}

html[data-ui-theme="refined"][data-ui-tone="light"] .alert {
    background: rgba(255, 255, 255, 0.82) !important;
    border-color: rgba(124, 146, 178, 0.2) !important;
    color: #1b2e42 !important;
}

html[data-ui-theme="refined"][data-ui-tone="light"] .alert-info {
    background: rgba(55, 127, 218, 0.12) !important;
    border-color: rgba(55, 127, 218, 0.22) !important;
    color: #214f88 !important;
}

html[data-ui-theme="refined"][data-ui-tone="light"] .alert-success {
    background: rgba(47, 159, 104, 0.13) !important;
    border-color: rgba(47, 159, 104, 0.24) !important;
    color: #1e6543 !important;
}

html[data-ui-theme="refined"][data-ui-tone="light"] .alert-warning {
    background: rgba(216, 154, 47, 0.15) !important;
    border-color: rgba(216, 154, 47, 0.26) !important;
    color: #7a5014 !important;
}

html[data-ui-theme="refined"][data-ui-tone="light"] .alert-danger {
    background: rgba(217, 101, 106, 0.13) !important;
    border-color: rgba(217, 101, 106, 0.24) !important;
    color: #8b3438 !important;
}

html[data-ui-theme="refined"][data-ui-tone="light"] .form-control,
html[data-ui-theme="refined"][data-ui-tone="light"] .form-select,
html[data-ui-theme="refined"][data-ui-tone="light"] .list-group-item,
html[data-ui-theme="refined"][data-ui-tone="light"] .btn-outline-light,
html[data-ui-theme="refined"][data-ui-tone="light"] .btn-outline-secondary,
html[data-ui-theme="refined"][data-ui-tone="light"] .btn-outline-info,
html[data-ui-theme="refined"][data-ui-tone="light"] .btn-outline-success,
html[data-ui-theme="refined"][data-ui-tone="light"] .btn-outline-danger {
    background: rgba(255, 255, 255, 0.74) !important;
    border-color: rgba(124, 146, 178, 0.16) !important;
    color: var(--ref-text) !important;
}

html[data-ui-theme="refined"][data-ui-tone="light"] .form-check-input {
    background-color: #d8dee8 !important;
    border-color: #aeb9c8 !important;
    box-shadow: none !important;
}

html[data-ui-theme="refined"][data-ui-tone="light"] .form-check-input:hover {
    background-color: #cfd7e2 !important;
    border-color: #99a8bc !important;
}

html[data-ui-theme="refined"][data-ui-tone="light"] .form-check-input:checked {
    background-color: #7a8ca4 !important;
    border-color: #7a8ca4 !important;
}

html[data-ui-theme="refined"][data-ui-tone="light"] .list-group-item:hover,
html[data-ui-theme="refined"][data-ui-tone="light"] .btn-outline-light:hover,
html[data-ui-theme="refined"][data-ui-tone="light"] .btn-outline-secondary:hover,
html[data-ui-theme="refined"][data-ui-tone="light"] .btn-outline-info:hover,
html[data-ui-theme="refined"][data-ui-tone="light"] .btn-outline-success:hover,
html[data-ui-theme="refined"][data-ui-tone="light"] .btn-outline-danger:hover {
    background: rgba(243, 248, 252, 0.98) !important;
    color: #162637 !important;
}

html[data-ui-theme="refined"][data-ui-tone="light"] .btn-secondary {
    background: rgba(95, 125, 232, 0.12) !important;
    border-color: rgba(95, 125, 232, 0.18) !important;
    color: #3653b7 !important;
}

html[data-ui-theme="refined"][data-ui-tone="light"] .explorer-breadcrumb {
    background: rgba(255, 255, 255, 0.72) !important;
    border-color: rgba(124, 146, 178, 0.16) !important;
}

html[data-ui-theme="refined"][data-ui-tone="light"] .explorer-breadcrumb span {
    color: #5f7390 !important;
}

html[data-ui-theme="refined"][data-ui-tone="light"] .explorer-breadcrumb i,
html[data-ui-theme="refined"][data-ui-tone="light"] .explorer-breadcrumb .text-muted {
    color: #7487a0 !important;
}

html[data-ui-theme="refined"][data-ui-tone="light"] .explorer-breadcrumb span:hover,
html[data-ui-theme="refined"][data-ui-tone="light"] .explorer-breadcrumb span.active {
    background: rgba(47, 143, 131, 0.12) !important;
    color: #26465f !important;
}

html[data-ui-theme="refined"][data-ui-tone="light"] .badge {
    background: rgba(47, 143, 131, 0.18) !important;
    color: #184d47 !important;
    border-color: rgba(47, 143, 131, 0.2) !important;
}

html[data-ui-theme="refined"][data-ui-tone="light"] .table,
html[data-ui-theme="refined"][data-ui-tone="light"] .table-dark {
    color: var(--ref-text) !important;
}

html[data-ui-theme="refined"][data-ui-tone="light"] .table-secondary,
html[data-ui-theme="refined"][data-ui-tone="light"] .table-dark thead,
html[data-ui-theme="refined"][data-ui-tone="light"] .table-dark tfoot,
html[data-ui-theme="refined"][data-ui-tone="light"] .table > :not(caption) > * > * {
    background: rgba(255, 255, 255, 0.65) !important;
    border-bottom-color: rgba(124, 146, 178, 0.14) !important;
    color: var(--ref-text) !important;
}

html[data-ui-theme="refined"][data-ui-tone="light"] #sidebar-wrapper .list-group-item,
html[data-ui-theme="refined"][data-ui-tone="light"] .theme-choice-btn,
html[data-ui-theme="refined"][data-ui-tone="light"] .sidebar-secondary-group .list-group-item {
    color: #1b2e42 !important;
    font-weight: 600;
}

html[data-ui-theme="refined"][data-ui-tone="light"] #sidebar-wrapper .list-group-item i,
html[data-ui-theme="refined"][data-ui-tone="light"] .theme-choice-btn i,
html[data-ui-theme="refined"][data-ui-tone="light"] .sidebar-secondary-group .list-group-item i,
html[data-ui-theme="refined"][data-ui-tone="light"] .sidebar-heading-mark i {
    color: #21384f !important;
}

html[data-ui-theme="refined"][data-ui-tone="light"] .sidebar-heading-mark {
    background:
        radial-gradient(circle at 28% 25%, rgba(255, 255, 255, 0.72), transparent 42%),
        linear-gradient(145deg, rgba(95, 125, 232, 0.12), rgba(47, 143, 131, 0.12));
    border-color: rgba(124, 146, 178, 0.18) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.62),
        0 12px 24px rgba(110, 128, 155, 0.14);
}

html[data-ui-theme="refined"][data-ui-tone="light"] .sidebar-brand-glyph span {
    box-shadow: inset 0 -1px 0 rgba(45, 65, 90, 0.08);
}

html[data-ui-theme="refined"][data-ui-tone="light"] .sidebar-brand-glyph::after {
    box-shadow: 0 0 0 2px rgba(238, 243, 248, 0.92);
}

html[data-ui-theme="refined"][data-ui-tone="light"] .sidebar-group-label {
    color: #566f8c !important;
}

html[data-ui-theme="refined"][data-ui-tone="light"] .refined-shortcut::after {
    background: rgba(47, 143, 131, 0.14) !important;
    color: #406864 !important;
    border-color: rgba(47, 143, 131, 0.18) !important;
}

html[data-ui-theme="refined"][data-ui-tone="light"] #sidebar-wrapper .list-group-item.active,
html[data-ui-theme="refined"][data-ui-tone="light"] .theme-choice-btn.is-active {
    background: linear-gradient(180deg, rgba(47, 143, 131, 0.18), rgba(95, 125, 232, 0.12)) !important;
    border-color: rgba(47, 143, 131, 0.22) !important;
    color: #183046 !important;
}

html[data-ui-theme="refined"][data-ui-tone="light"] #sidebar-wrapper .list-group-item.active i,
html[data-ui-theme="refined"][data-ui-tone="light"] .theme-choice-btn.is-active i {
    color: #183046 !important;
}

html[data-ui-theme="refined"][data-ui-tone="light"] #sidebarToggle,
html[data-ui-theme="refined"][data-ui-tone="light"] #sidebarClose,
html[data-ui-theme="refined"][data-ui-tone="light"] .gallery-nav {
    background: rgba(255, 255, 255, 0.78) !important;
    border-color: rgba(124, 146, 178, 0.18) !important;
    color: var(--ref-text) !important;
    box-shadow: var(--ref-shadow-soft) !important;
}

html[data-ui-theme="refined"][data-ui-tone="light"] .yandex-section-header {
    background: rgba(255, 255, 255, 0.72) !important;
    border-bottom-color: rgba(124, 146, 178, 0.14) !important;
    color: #1b2e42 !important;
}

html[data-ui-theme="refined"][data-ui-tone="light"] .yandex-section-header .text-light,
html[data-ui-theme="refined"][data-ui-tone="light"] .yandex-section-header span {
    color: #1b2e42 !important;
}

html[data-ui-theme="refined"][data-ui-tone="light"] .yandex-section-header .text-muted,
html[data-ui-theme="refined"][data-ui-tone="light"] .yandex-section-header small,
html[data-ui-theme="refined"][data-ui-tone="light"] .yandex-section-header .chevron {
    color: #61758f !important;
}

html[data-ui-theme="refined"][data-ui-tone="light"] .yandex-item {
    background: rgba(255, 255, 255, 0.62) !important;
    border-bottom-color: rgba(124, 146, 178, 0.12) !important;
    color: #203246 !important;
}

html[data-ui-theme="refined"][data-ui-tone="light"] .yandex-item span,
html[data-ui-theme="refined"][data-ui-tone="light"] .yandex-item .text-truncate {
    color: #203246 !important;
}

html[data-ui-theme="refined"][data-ui-tone="light"] .yandex-item .fa-folder {
    color: #5f7de8 !important;
}

html[data-ui-theme="refined"][data-ui-tone="light"] .yandex-item .fa-file-alt,
html[data-ui-theme="refined"][data-ui-tone="light"] .yandex-item .text-info {
    color: #3d6fc5 !important;
}

html[data-ui-theme="refined"][data-ui-tone="light"] .yandex-actions .btn-xs.text-info {
    color: #3d6fc5 !important;
}

html[data-ui-theme="refined"][data-ui-tone="light"] .yandex-actions .btn.text-danger,
html[data-ui-theme="refined"][data-ui-tone="light"] .yandex-actions .text-danger {
    color: #c95158 !important;
}

html[data-ui-theme="refined"][data-ui-tone="light"] .yandex-actions .btn-xs,
html[data-ui-theme="refined"][data-ui-tone="light"] .yandex-actions .btn.btn-xs {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 999px !important;
    line-height: 1 !important;
    background: rgba(255, 255, 255, 0.92) !important;
    border: 1px solid rgba(124, 146, 178, 0.12) !important;
    box-shadow: none !important;
}

html[data-ui-theme="refined"][data-ui-tone="light"] .yandex-actions .btn-xs:hover,
html[data-ui-theme="refined"][data-ui-tone="light"] .yandex-actions .btn.btn-xs:hover {
    background: rgba(247, 250, 253, 1) !important;
    box-shadow: none !important;
}

html[data-ui-theme="refined"][data-ui-tone="light"] .yandex-actions .btn.text-danger,
html[data-ui-theme="refined"][data-ui-tone="light"] .yandex-actions .btn-xs.text-danger {
    background: rgba(255, 255, 255, 0.92) !important;
    border-color: rgba(201, 81, 88, 0.14) !important;
    box-shadow: none !important;
}

html[data-ui-theme="refined"][data-ui-tone="light"] .yandex-actions .btn-xs i,
html[data-ui-theme="refined"][data-ui-tone="light"] .yandex-actions .btn.btn-xs i {
    font-size: 1rem !important;
    line-height: 1 !important;
    margin: 0 !important;
}

html[data-ui-theme="refined"][data-ui-tone="light"] .yandex-actions .fa-download,
html[data-ui-theme="refined"][data-ui-tone="light"] .yandex-actions .btn-xs.text-info i {
    color: #3b6fcf !important;
}

html[data-ui-theme="refined"][data-ui-tone="light"] .yandex-actions .fa-trash-alt,
html[data-ui-theme="refined"][data-ui-tone="light"] .yandex-actions .btn.text-danger i,
html[data-ui-theme="refined"][data-ui-tone="light"] .yandex-actions .btn-xs.text-danger i {
    color: #cf5a60 !important;
}

html[data-ui-theme="refined"] .logs-drawer {
    background: linear-gradient(180deg, rgba(15, 22, 34, 0.98), rgba(10, 16, 27, 0.98)) !important;
}

html[data-ui-theme="refined"] .logs-drawer-header {
    background: rgba(255, 255, 255, 0.02) !important;
    border-bottom: 1px solid rgba(188, 209, 245, 0.08) !important;
}

html[data-ui-theme="refined"] .pdf-list-sidebar {
    background: rgba(7, 12, 21, 0.72) !important;
}

html[data-ui-theme="refined"] #pdfViewerModal {
    position: fixed !important;
    inset: 0 !important;
}

html[data-ui-theme="refined"] #pdfViewerModal .modal-dialog {
    width: 100vw !important;
    max-width: none !important;
    height: 100dvh !important;
    margin: 0 !important;
}

html[data-ui-theme="refined"] #pdfViewerModal .modal-content {
    width: 100% !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
}

html[data-ui-theme="refined"] #pdfViewerModal .modal-body {
    min-width: 0;
    min-height: 0;
    overflow: hidden !important;
}

html[data-ui-theme="refined"] #pdfViewerModal #pdf-main-view {
    min-width: 0;
    min-height: 0;
    overflow: auto !important;
    -webkit-overflow-scrolling: touch;
}

html[data-ui-theme="refined"] #pdfViewerModal #pdf-container {
    min-height: 100%;
    align-items: flex-start !important;
}

html[data-ui-theme="refined"]:not([data-ui-tone="light"]) #moveModal .modal-content,
html[data-ui-theme="refined"]:not([data-ui-tone="light"]) #progressModal .modal-content,
html[data-ui-theme="refined"]:not([data-ui-tone="light"]) #imageModal .modal-content,
html[data-ui-theme="refined"]:not([data-ui-tone="light"]) #imageViewerModal .modal-content {
    color: var(--ref-text) !important;
    background: linear-gradient(180deg, rgba(20, 30, 45, 0.98), rgba(11, 17, 27, 0.98)) !important;
    border-color: var(--ref-border) !important;
}

html[data-ui-theme="refined"] .gallery-nav {
    background: rgba(7, 12, 21, 0.48) !important;
    border-radius: 999px !important;
}

html[data-ui-theme="refined"] .gallery-nav:hover {
    background: rgba(7, 12, 21, 0.74) !important;
}

html[data-ui-theme="refined"] #editor-modal-overlay {
    background: rgba(4, 8, 16, 0.88) !important;
}

@media (min-width: 992px) {
    html[data-ui-theme="refined"] #wrapper {
        padding-left: 280px !important;
        padding-right: 360px !important;
    }

    html[data-ui-theme="refined"] .top-bar {
        display: none !important;
    }

    html[data-ui-theme="refined"] .logs-drawer {
        top: 0 !important;
        right: 0 !important;
        width: 360px !important;
        height: 100vh !important;
        margin-right: 0 !important;
        border-radius: 0 !important;
        border-left: 1px solid rgba(188, 209, 245, 0.08) !important;
    }

    html[data-ui-theme="refined"] #sidebar-wrapper {
        display: flex !important;
        flex-direction: column !important;
        top: 0 !important;
        bottom: auto !important;
        left: 18px !important;
        width: 244px !important;
        min-width: 244px !important;
        height: auto !important;
        max-height: calc(100vh - 24px) !important;
        overflow-y: auto !important;
        padding: 0.9rem 1rem 1rem !important;
        border-radius: 0 0 28px 28px !important;
        background: rgba(14, 22, 35, 0.9) !important;
        border: 1px solid rgba(188, 209, 245, 0.1) !important;
        border-top: none !important;
        box-shadow: 0 18px 36px rgba(2, 7, 16, 0.28) !important;
        transform: none !important;
        justify-content: flex-start !important;
        align-items: stretch !important;
    }

    html[data-ui-theme="refined"] .sidebar-heading,
    html[data-ui-theme="refined"] #sidebar-wrapper .mt-auto {
        display: flex !important;
    }

    html[data-ui-theme="refined"] .sidebar-heading {
        width: 100% !important;
        padding: 0 0 1rem 0 !important;
        margin-bottom: 0.8rem;
        border-bottom: 1px solid rgba(188, 209, 245, 0.08);
    }

    html[data-ui-theme="refined"] #sidebar-wrapper .list-group {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.45rem !important;
        align-items: stretch !important;
    }

    html[data-ui-theme="refined"] #sidebar-wrapper .list-group-item {
        width: 100% !important;
        height: auto !important;
        min-height: 52px !important;
        border-radius: 18px !important;
        padding: 0.85rem 0.95rem !important;
        display: flex !important;
        flex-direction: row !important;
        justify-content: flex-start !important;
        align-items: center !important;
        gap: 0.1rem !important;
        font-size: 0.88rem !important;
        text-align: left !important;
    }

    html[data-ui-theme="refined"] #sidebar-wrapper .list-group-item i {
        width: 24px !important;
        font-size: 1.05rem !important;
        margin: 0 0.85rem 0 0 !important;
        flex-shrink: 0;
    }

    html[data-ui-theme="refined"] #sidebar-wrapper .list-group-item.active {
        transform: none !important;
    }

    html[data-ui-theme="refined"] #sidebar-wrapper .refined-mobile-logs-item,
    html[data-ui-theme="refined"] #sidebar-wrapper .refined-optional-nav-group {
        display: none !important;
    }

    html[data-ui-theme="refined"] #sidebar-wrapper .sidebar-secondary-group {
        display: flex !important;
        width: 100% !important;
        margin-top: 0.8rem !important;
        padding-top: 0.8rem !important;
        border-top: 1px solid rgba(188, 209, 245, 0.08) !important;
    }

    html[data-ui-theme="refined"] #page-content-wrapper {
        padding: 1.75rem 1.9rem 2rem !important;
    }
}

@media (max-width: 991.98px) {
    html[data-ui-theme="refined"] .refined-mobile-logs-item {
        display: flex !important;
    }

    html[data-ui-theme="refined"] #page-content-wrapper {
        padding: 1rem 1rem 1.5rem !important;
    }

    html[data-ui-theme="refined"] #page-content-wrapper::before {
        content: "";
        position: fixed;
        inset: 0;
        background: rgba(4, 8, 16, 0.46);
        backdrop-filter: blur(3px);
        -webkit-backdrop-filter: blur(3px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s ease;
        z-index: 10010;
    }

    html[data-ui-theme="refined"] #sidebar-wrapper.show ~ #page-content-wrapper::before {
        opacity: 1;
        pointer-events: auto;
    }

    html[data-ui-theme="refined"] #sidebarClose {
        display: none !important;
    }

    html[data-ui-theme="refined"] .top-bar {
        position: static !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
    }

    html[data-ui-theme="refined"] #sidebarToggle {
        position: fixed !important;
        top: 50% !important;
        left: 0 !important;
        margin: 0 !important;
        width: 44px;
        height: 72px;
        padding: 0 !important;
        border-radius: 0 18px 18px 0 !important;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        border-left: none !important;
        background: rgba(16, 24, 37, 0.58) !important;
        border-color: rgba(188, 209, 245, 0.16) !important;
        backdrop-filter: blur(16px) saturate(115%) !important;
        -webkit-backdrop-filter: blur(16px) saturate(115%) !important;
        box-shadow: 0 10px 28px rgba(2, 7, 16, 0.26) !important;
        transform: translateY(-50%) !important;
        z-index: 10016 !important;
    }

    html[data-ui-theme="refined"] #sidebar-wrapper.show ~ #page-content-wrapper #sidebarToggle {
        opacity: 0 !important;
        pointer-events: none !important;
    }

    html[data-ui-theme="refined"] .quick-launch-bar {
        display: none !important;
    }

    html[data-ui-theme="refined"] #sidebar-wrapper {
        display: flex !important;
        flex-direction: column !important;
        top: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 258px !important;
        max-width: 74vw !important;
        height: 100vh !important;
        margin-left: 0 !important;
        padding: 0.95rem 0.78rem 1rem !important;
        background: rgba(10, 16, 26, 0.9) !important;
        border: 1px solid rgba(188, 209, 245, 0.08) !important;
        border-right: none !important;
        border-radius: 0 22px 22px 0 !important;
        transform: translateX(calc(-100% - 10px)) !important;
        justify-content: flex-start !important;
        align-items: stretch !important;
        overflow-y: auto !important;
        z-index: 10020 !important;
        transition: transform 0.24s ease !important;
        box-shadow: 14px 0 36px rgba(2, 7, 16, 0.34) !important;
    }

    html[data-ui-theme="refined"] #sidebar-wrapper.show {
        transform: translateX(0) !important;
    }

    html[data-ui-theme="refined"] .sidebar-heading,
    html[data-ui-theme="refined"] #sidebar-wrapper .mt-auto {
        display: flex !important;
    }

    html[data-ui-theme="refined"] .sidebar-heading {
        width: 100% !important;
        min-height: 40px;
        padding: 0 0 0.65rem 0 !important;
        margin-bottom: 0.45rem;
        border-bottom: 1px solid rgba(188, 209, 245, 0.06);
    }

    html[data-ui-theme="refined"] .sidebar-heading-mark {
        width: 30px;
        height: 30px;
        border-radius: 10px;
    }

    html[data-ui-theme="refined"] #sidebar-wrapper .list-group {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.32rem !important;
        align-items: stretch !important;
        width: 100% !important;
        min-width: 0 !important;
        flex: 1 1 auto !important;
    }

    html[data-ui-theme="refined"] #sidebar-wrapper .list-group-item {
        width: 100% !important;
        height: auto !important;
        min-height: 42px !important;
        border-radius: 14px !important;
        padding: 0.68rem 0.76rem !important;
        display: flex !important;
        flex-direction: row !important;
        justify-content: flex-start !important;
        align-items: center !important;
        font-size: 0.8rem !important;
        text-align: left !important;
        margin: 0 !important;
        flex: 0 0 auto !important;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
        line-height: 1.2 !important;
        word-break: break-word !important;
    }

    html[data-ui-theme="refined"] #sidebar-wrapper .list-group-item i {
        width: 20px !important;
        font-size: 0.9rem !important;
        margin: 0 0.68rem 0 0 !important;
    }

    html[data-ui-theme="refined"] #sidebar-wrapper .list-group-item.active {
        width: 100% !important;
        flex: 0 0 auto !important;
        min-height: 42px !important;
        padding: 0.68rem 0.76rem !important;
        border-radius: 14px !important;
        display: flex !important;
        flex-direction: row !important;
        justify-content: flex-start !important;
        align-items: center !important;
        gap: 0 !important;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03) !important;
    }

    html[data-ui-theme="refined"] #sidebar-wrapper .list-group-item.active i {
        font-size: 0.95rem !important;
        margin: 0 0.72rem 0 0 !important;
        filter: none !important;
    }

    html[data-ui-theme="refined"] #sidebar-wrapper .refined-mobile-logs-item {
        display: flex !important;
    }

    html[data-ui-theme="refined"] #sidebar-wrapper .refined-optional-nav-group {
        display: none !important;
    }

    html[data-ui-theme="refined"] #sidebar-wrapper .sidebar-secondary-group {
        display: flex !important;
        width: 100% !important;
        margin-top: 0.8rem !important;
        padding-top: 0.8rem !important;
        border-top: 1px solid rgba(188, 209, 245, 0.08) !important;
    }

    html[data-ui-theme="refined"] #sidebarClose {
        width: 36px;
        height: 36px;
        margin-left: auto;
        border-radius: 10px !important;
        display: none !important;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.03) !important;
        border: 1px solid rgba(188, 209, 245, 0.08) !important;
    }

    html[data-ui-theme="refined"] #sidebar-wrapper .mt-auto {
        width: 100% !important;
    }

    html[data-ui-theme="refined"] #sidebar-wrapper .sidebar-secondary-group.mt-auto {
        margin-top: auto !important;
        padding-top: 0.8rem !important;
        border-top: 1px solid rgba(188, 209, 245, 0.08) !important;
    }

    html[data-ui-theme="refined"] .refined-shortcut::after {
        display: none !important;
    }

    html[data-ui-theme="refined"] .batch-action-bar {
        top: 14px !important;
        left: 14px !important;
        right: 14px !important;
    }

    html[data-ui-theme="refined"] .card-header {
        padding: 1.1rem 1.1rem 0.9rem !important;
    }

    html[data-ui-theme="refined"] .card-body {
        padding: 1.1rem !important;
    }

    html[data-ui-theme="refined"] #explorer-list.grid-view {
        gap: 0.4rem;
    }

    html[data-ui-theme="refined"] #explorer-list.grid-view .explorer-item {
        border-radius: 12px !important;
    }
}
