:root {
    --qa-bg: #111419;
    --qa-surface: #191d23;
    --qa-surface-2: #20252d;
    --qa-line: #303741;
    --qa-line-soft: #282e37;
    --qa-text: #f4f7fb;
    --qa-muted: #929ba8;
    --qa-blue: #3aa7ff;
    --qa-green: #48c78e;
    --qa-sidebar: 232px;
    --qa-topbar: 60px;
}

body.qa-shell-mounted {
    --bg-1: #111419;
    --bg-2: #15191f;
    --bg-3: #111419;
    --bg: #111419;
    --panel: #191d23;
    --panel-2: #20252d;
    --panel2: #20252d;
    --line: #303741;
    --text: #f4f7fb;
    --text-dim: #929ba8;
    --dim: #929ba8;
    --muted: #929ba8;
    --card-bg: #191d23;
    --card-border: #303741;
    --accent-1: #3aa7ff;
    --accent-2: #75c2ff;
    --accent: #3aa7ff;
    --cyan: #3aa7ff;
    --paper: #111419;
    --card: #191d23;
    --ink: #f4f7fb;
    --accent-soft: rgba(58, 167, 255, .12);
    --shadow: 0 10px 28px rgba(0, 0, 0, .16);
    display: block !important;
    min-width: 320px !important;
    min-height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
    background: var(--qa-bg) !important;
    color: var(--qa-text);
    font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    -webkit-font-smoothing: antialiased;
}

body.qa-shell-mounted[data-qa-route="/quant"] {
    --etrade-purple: #111419;
    --etrade-purple-light: #168ce3;
    --etrade-purple-dark: #0f1216;
    --etrade-purple-bg: #111419;
    --white: #191d23;
    --gray-50: #20252d;
    --gray-100: #242a32;
    --gray-200: #303741;
    --gray-300: #48515d;
    --gray-400: #77818e;
    --gray-500: #929ba8;
    --gray-600: #aeb6c0;
    --gray-700: #c8d0d9;
    --gray-800: #dce2e8;
    --gray-900: #f4f7fb;
}

body.qa-shell-mounted[data-qa-route="/quant"] .qa-app-content .configuration-section,
body.qa-shell-mounted[data-qa-route="/quant"] .qa-app-content .panel {
    color: var(--qa-text) !important;
}
body.qa-shell-mounted[data-qa-route="/quant"] .qa-app-content .configuration-section h3,
body.qa-shell-mounted[data-qa-route="/quant"] .qa-app-content .form-section > h3,
body.qa-shell-mounted[data-qa-route="/quant"] .qa-app-content .panel-title,
body.qa-shell-mounted[data-qa-route="/quant"] .qa-app-content .form-label,
body.qa-shell-mounted[data-qa-route="/quant"] .qa-app-content .form-check-label {
    color: #dce3eb !important;
}
body.qa-shell-mounted[data-qa-route="/quant"] .qa-app-content .form-control,
body.qa-shell-mounted[data-qa-route="/quant"] .qa-app-content .form-select {
    border-color: var(--qa-line) !important;
    background: #15191f !important;
    color: var(--qa-text) !important;
}

body.qa-shell-mounted[data-qa-route="/pdf-translator"] {
    --ink: #f4f7fb;
    --muted: #929ba8;
    --line: #303741;
    --panel: #20252d;
    --blue: #3aa7ff;
    --blue-dark: #168ce3;
    --blue-soft: rgba(58, 167, 255, .12);
    --shadow: none;
}
body.qa-shell-mounted[data-qa-route="/pdf-translator"] .qa-app-content .shell { display: block; min-height: calc(100vh - var(--qa-topbar)); }
body.qa-shell-mounted[data-qa-route="/pdf-translator"] .qa-app-content .shell > .sidebar {
    position: static;
    height: 54px;
    padding: 7px max(28px, calc((100% - 1180px) / 2));
    flex-direction: row;
    align-items: center;
    border-right: 0;
    border-bottom: 1px solid var(--qa-line);
    background: #15181d;
}
body.qa-shell-mounted[data-qa-route="/pdf-translator"] .qa-app-content .sidebar .brand { gap: 8px; color: var(--qa-text); font-size: 16px; }
body.qa-shell-mounted[data-qa-route="/pdf-translator"] .qa-app-content .sidebar .brand-mark { width: 32px; height: 32px; border-radius: 7px; background: #168ce3; font-size: 14px; }
body.qa-shell-mounted[data-qa-route="/pdf-translator"] .qa-app-content .sidebar nav { display: flex; gap: 6px; margin: 0 0 0 26px; }
body.qa-shell-mounted[data-qa-route="/pdf-translator"] .qa-app-content .sidebar .nav-item { width: auto; padding: 8px 12px; border-radius: 5px; color: var(--qa-muted); }
body.qa-shell-mounted[data-qa-route="/pdf-translator"] .qa-app-content .sidebar .nav-item.active { color: var(--qa-text); background: #242a32; }
body.qa-shell-mounted[data-qa-route="/pdf-translator"] .qa-app-content .sidebar .nav-icon { width: auto; font-size: 14px; }
body.qa-shell-mounted[data-qa-route="/pdf-translator"] .qa-app-content .sidebar-bottom { margin: 0 0 0 auto; }
body.qa-shell-mounted[data-qa-route="/pdf-translator"] .qa-app-content .sidebar-bottom p { display: none; }
body.qa-shell-mounted[data-qa-route="/pdf-translator"] .qa-app-content .auth-badge { padding: 7px 10px; border-color: var(--qa-line); background: #20252d; color: var(--qa-muted); font-size: 11px; }
body.qa-shell-mounted[data-qa-route="/pdf-translator"] .qa-app-content .upload-panel,
body.qa-shell-mounted[data-qa-route="/pdf-translator"] .qa-app-content .job-panel,
body.qa-shell-mounted[data-qa-route="/pdf-translator"] .qa-app-content .result-card {
    border-color: var(--qa-line);
    background: radial-gradient(circle at 50% 0%, rgba(58,167,255,.08), transparent 37%), #191d23;
    color: var(--qa-text);
}
body.qa-shell-mounted[data-qa-route="/pdf-translator"] .qa-app-content .language-picker label span,
body.qa-shell-mounted[data-qa-route="/pdf-translator"] .qa-app-content .secondary-button { background: #20252d; color: var(--qa-text); }

body.qa-shell-mounted *, body.qa-shell-mounted *::before, body.qa-shell-mounted *::after {
    box-sizing: border-box;
}

.qa-global-header {
    position: fixed;
    z-index: 10010;
    inset: 0 0 auto 0;
    height: var(--qa-topbar);
    display: flex;
    align-items: center;
    border-bottom: 1px solid #292f37;
    background: rgba(15, 18, 22, .97);
    backdrop-filter: blur(14px);
    color: var(--qa-text);
}

.qa-global-brand {
    width: var(--qa-sidebar);
    height: 100%;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-right: 1px solid #292f37;
    color: var(--qa-text) !important;
    text-decoration: none !important;
}

.qa-sidebar-brand {
    height: var(--qa-topbar);
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #292f37;
    color: var(--qa-text) !important;
    text-decoration: none !important;
}

.qa-brand-mark {
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    object-fit: contain;
}

.qa-brand-name { color: var(--qa-text); font-size: 16px; font-weight: 760; letter-spacing: -.025em; }
.qa-brand-tag { padding: 2px 5px; border: 1px solid #315779; border-radius: 3px; color: #9dd6ff; font-size: 8px; font-weight: 700; letter-spacing: .08em; }

.qa-global-topnav { height: 100%; display: flex; align-items: center; padding-left: 18px; }
.qa-global-topnav a {
    height: 100%;
    padding: 0 18px;
    display: flex;
    align-items: center;
    border-bottom: 2px solid transparent;
    color: #8f99a6 !important;
    text-decoration: none !important;
    font-size: 12px;
    font-weight: 650;
}
.qa-global-topnav a:hover, .qa-global-topnav a.active { color: var(--qa-text) !important; background: #1d2127; border-bottom-color: var(--qa-blue); }

.qa-header-context { margin-left: auto; padding-right: 20px; display: flex; align-items: center; gap: 10px; color: #8f99a6; font-size: 10px; }
.qa-live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--qa-green); box-shadow: 0 0 0 4px rgba(72, 199, 142, .1); }
.qa-menu-button { display: none; width: 38px; height: 38px; border: 0; background: transparent; color: var(--qa-text); font-size: 20px; cursor: pointer; }

.qa-global-sidebar {
    position: fixed;
    z-index: 10000;
    inset: 0 auto 0 0;
    width: var(--qa-sidebar);
    overflow-y: auto;
    border-right: 1px solid var(--qa-line-soft);
    background: #15181d;
    color: var(--qa-text);
    scrollbar-width: thin;
}

.qa-sidebar-inner { padding: 16px 13px 26px; }
.qa-nav-search { position: relative; display: block; margin-bottom: 17px; }
.qa-nav-search::before { content: "⌕"; position: absolute; z-index: 1; top: 7px; left: 10px; color: #6d7784; font-size: 17px; }
.qa-nav-search input {
    width: 100%;
    height: 36px;
    padding: 0 30px 0 34px;
    border: 1px solid var(--qa-line);
    border-radius: 5px;
    outline: 0;
    background: #101318;
    color: var(--qa-text);
    font: 11px Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.qa-nav-search input:focus { border-color: #3c759f; box-shadow: 0 0 0 3px rgba(58, 167, 255, .08); }
.qa-nav-search kbd { position: absolute; top: 10px; right: 9px; color: #69727e; font: 9px ui-monospace, monospace; }
.qa-nav-group { margin-top: 17px; }
.qa-nav-group:first-of-type { margin-top: 0; }
.qa-nav-label { margin: 0 9px 6px; color: #626d7b; font-size: 9px; font-weight: 780; letter-spacing: .12em; text-transform: uppercase; }
.qa-nav-item {
    min-height: 37px;
    margin: 2px 0;
    padding: 0 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 5px;
    color: #aab2bd !important;
    text-decoration: none !important;
    font-size: 11.5px;
    font-weight: 500;
    transition: background .15s, color .15s;
}
.qa-nav-item:hover, .qa-nav-item.active { color: var(--qa-text) !important; background: #22272e; }
.qa-nav-item.active { box-shadow: inset 2px 0 var(--qa-blue); }
.qa-nav-icon { width: 19px; color: #71808e; font: 12px/1 ui-monospace, monospace; text-align: center; }
.qa-nav-item:hover .qa-nav-icon, .qa-nav-item.active .qa-nav-icon { color: var(--qa-blue); }

.qa-app-content {
    position: relative;
    z-index: 0;
    width: auto !important;
    min-height: 100vh;
    margin: 0 0 0 var(--qa-sidebar) !important;
    padding-top: 0 !important;
    background: var(--qa-bg);
}

.qa-app-content .qa-legacy-navigation { display: none !important; }

body.qa-shell-mounted[data-qa-route="/events"] .qa-app-content { padding-right: 24px; padding-left: 24px; }

.qa-app-content > .container,
.qa-app-content > main,
.qa-app-content > .app,
.qa-app-content > .page {
    width: min(1540px, 100%) !important;
    max-width: 1540px !important;
    margin-right: auto !important;
    margin-left: auto !important;
}

body.qa-shell-mounted .qa-app-content a.back,
body.qa-shell-mounted .qa-app-content a[href="/"],
body.qa-shell-mounted .qa-app-content a[href="./"] { color: #8ccfff; }

body.qa-shell-mounted .qa-app-content button,
body.qa-shell-mounted .qa-app-content input,
body.qa-shell-mounted .qa-app-content select,
body.qa-shell-mounted .qa-app-content textarea { font-family: inherit; }

body.qa-shell-mounted .qa-app-content .card,
body.qa-shell-mounted .qa-app-content .panel,
body.qa-shell-mounted .qa-app-content .section,
body.qa-shell-mounted .qa-app-content .lit-card,
body.qa-shell-mounted .qa-app-content .metric {
    border-color: var(--qa-line) !important;
    box-shadow: none;
}

body.qa-shell-mounted .qa-app-content h1,
body.qa-shell-mounted .qa-app-content h2,
body.qa-shell-mounted .qa-app-content h3 { letter-spacing: -.025em; }

.qa-shell-backdrop { display: none; }
.qa-page-progress { position: fixed; z-index: 10020; top: 0; left: var(--qa-sidebar); width: 0; height: 2px; background: var(--qa-blue); transition: width .25s, opacity .25s; }
.qa-page-progress.loading { width: calc(100% - var(--qa-sidebar)); opacity: 1; animation: qa-progress 1.1s ease-in-out infinite alternate; }
@keyframes qa-progress { from { transform: scaleX(.35); transform-origin: left; } to { transform: scaleX(1); transform-origin: left; } }

@media (max-width: 960px) {
    :root { --qa-sidebar: 214px; }
    .qa-global-topnav a { padding: 0 12px; }
}

@media (min-width: 721px) {
    .qa-global-header { display: none; }
}

@media (max-width: 720px) {
    :root { --qa-topbar: 56px; }
    .qa-global-brand { width: auto; padding-left: 15px; border-right: 0; }
    .qa-global-topnav, .qa-header-context { display: none; }
    .qa-menu-button { display: block; margin-left: auto; margin-right: 7px; }
    .qa-global-sidebar { inset: var(--qa-topbar) auto 0 0; width: min(286px, 86vw); transform: translateX(-103%); box-shadow: 18px 0 36px rgba(0, 0, 0, .4); transition: transform .2s ease; }
    .qa-sidebar-brand { display: none; }
    .qa-global-sidebar.open { transform: translateX(0); }
    .qa-shell-backdrop { position: fixed; z-index: 9990; inset: var(--qa-topbar) 0 0; background: rgba(0, 0, 0, .5); }
    .qa-shell-backdrop.open { display: block; }
    .qa-app-content { margin-left: 0 !important; padding-top: var(--qa-topbar) !important; }
    .qa-page-progress { left: 0; }
    .qa-page-progress.loading { width: 100%; }
    .qa-app-content > .container,
    .qa-app-content > main,
    .qa-app-content > .app,
    .qa-app-content > .page { max-width: 100% !important; }
    body.qa-shell-mounted[data-qa-route="/events"] .qa-app-content { padding-right: 12px; padding-left: 12px; }
    body.qa-shell-mounted[data-qa-route="/pdf-translator"] .qa-app-content .shell > .sidebar { padding: 9px 14px; }
    body.qa-shell-mounted[data-qa-route="/pdf-translator"] .qa-app-content .sidebar nav { margin-left: auto; }
    body.qa-shell-mounted[data-qa-route="/pdf-translator"] .qa-app-content .sidebar-bottom { display: none; }
}
