.nvidia-page {
    background: #f5f7fc;
    color: #24304b;
}

html:has(.nvidia-page) { scrollbar-gutter: stable; }
html:has(#nv-driver-dialog[open]), .nvidia-page:has(#nv-driver-dialog[open]) { overflow: hidden; }
#nv-driver-dialog { overscroll-behavior: contain; }

.nvidia-page .menu {
    display: inline-block;
    padding: 4px 0;
}

.nvidia-page .menu:hover { color: #dce8ff; }
.nvidia-page .menu[aria-current="page"] { font-weight: bold; }

.nvidia-browser, .nv-dialog {
    --nv-blue: #4169e1;
    --nv-border: #dfe5f1;
    --nv-muted: #4b5870;
    font-size: 15px;
    line-height: 1.6;
}

.nvidia-browser *, .nv-dialog * { box-sizing: border-box; }
.nvidia-browser [hidden], .nv-dialog [hidden] { display: none !important; }
.nvidia-browser button, .nvidia-browser input, .nv-dialog button { font: inherit; }
.nvidia-browser button, .nv-dialog button { cursor: pointer; }
.nvidia-browser button:disabled { cursor: wait; opacity: .6; }
.nvidia-browser :is(button, a, input):focus-visible, .nv-dialog :is(button, a):focus-visible {
    outline: 3px solid #9bb6ff;
    outline-offset: 3px;
}

.nv-toolbar { display: flex; align-items: end; gap: 16px; margin-bottom: 24px; }
.nv-search { flex: 1; max-width: 620px; }
.nv-search-field { position: relative; }
.nv-search-field svg { position: absolute; top: 14px; left: 15px; width: 20px; height: 20px; color: #8090b0; pointer-events: none; }
.nv-search input { width: 100%; height: 48px; border: 1px solid #cbd5e7; border-radius: 10px; background: #fff; color: #24304b; padding: 10px 16px 10px 45px; }
.nv-search input::placeholder { color: #7c879b; }
.nv-search input:focus { border-color: var(--nv-blue); box-shadow: 0 0 0 3px #4169e114; }
.nv-button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 18px; border: 1px solid transparent; border-radius: 9px; font-weight: 700; text-align: center; }
.nv-button-secondary { color: #465e96; border-color: #d3dced; background: #fff; white-space: nowrap; }
.nv-button-secondary:hover { background: #edf2ff; border-color: #9fb4eb; }

.nv-status { padding: 22px; border: 1px solid var(--nv-border); border-radius: 12px; background: #fff; color: var(--nv-muted); }
.nv-status-error { color: #ae3646; border-color: #f0cbd2; background: #fff7f8; }
.nv-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.nv-tab { padding: 9px 15px; border: 1px solid #dce3f0; border-radius: 9px; background: #fff; color: #5b6982; line-height: 1.4; }
.nv-tab:hover { border-color: #a7b9e9; color: #305bd5; background: #f0f4ff; }
.nv-tab[aria-selected="true"] { color: #fff; border-color: var(--nv-blue); background: var(--nv-blue); box-shadow: 0 3px 8px #4169e125; font-weight: 700; }
.nv-tab-count { display: inline-block; margin-left: 8px; opacity: .72; font-size: 12px; }
.nv-products { background: #fff; border: 1px solid var(--nv-border); border-radius: 14px; overflow: hidden; box-shadow: 0 4px 20px #243b6905; }
.nv-table { width: 100%; table-layout: fixed; text-align: left; }
.nv-table th { padding: 12px 24px; font-size: 15px; color: #465b80; font-weight: 700; background: #f3f6fc; border-top: 1px solid #edf0f7; border-bottom: 1px solid var(--nv-border); }
.nv-table th:nth-child(1) { width: 23%; }
.nv-table th:nth-child(2) { width: 28%; }
.nv-table td { padding: 18px 24px; border-bottom: 1px solid #edf0f7; vertical-align: middle; overflow-wrap: anywhere; }
.nv-table tr:last-child td { border-bottom: none; }
.nv-table tbody tr:hover { background: #fafbff; }
.nv-table td:first-child { color: var(--nv-muted); font-size: 15px; }
.nv-table td:nth-child(2) { font-weight: 700; color: #263e70; }
.nv-os-list { display: flex; flex-wrap: wrap; gap: 7px; }
.nv-os { border: 1px solid #dce5ff; border-radius: 6px; background: #f3f6ff; color: #3b60ba; padding: 5px 10px; font-size: 12px !important; text-align: left; line-height: 1.5; }
.nv-os:hover { background: #4169e1; border-color: #4169e1; color: #fff; }
.nv-empty { padding: 48px 24px; text-align: center; color: var(--nv-muted); }
.nv-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.nv-dialog { box-sizing: border-box; width: 740px; max-width: calc(100vw - 32px); max-height: 85vh; padding: 0; border: 1px solid #d6deef; border-radius: 18px; background: #f5f7fc; color: #24304b; box-shadow: 0 24px 90px #18284640; overflow: auto; }
.nv-dialog::backdrop { background: #18284685; backdrop-filter: blur(3px); }
.nv-dialog-header { display: flex; justify-content: space-between; align-items: start; gap: 16px; padding: 18px 20px; background: #fff; border-bottom: 1px solid var(--nv-border); }
.nv-dialog-header h2 { font-size: 22px; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
#nv-driver-os { color: var(--nv-muted); margin-top: 6px; }
.nv-close { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 1px solid #e2e7f1; border-radius: 50%; background: #f6f8fd; color: #6c7b96; font-size: 24px !important; line-height: 1; }
.nv-close:hover { background: #e8eeff; color: #315bd0; }
.nv-close svg { display: block; }
.nv-dialog-body { padding: 16px 20px; }
.nv-loading { padding: 16px; margin-bottom: 12px; border: 1px solid var(--nv-border); border-radius: 12px; background: #fff; }
.nv-loading-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 12px; }
.nv-loading p { margin: 0; }
#nv-driver-loading-message { font-weight: 700; }
#nv-driver-elapsed { color: var(--nv-muted); font-size: 13px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.nv-progress { height: 5px; margin: 12px 0; overflow: hidden; border-radius: 3px; background: #e8eeff; }
.nv-progress span { display: block; width: 35%; height: 100%; border-radius: inherit; background: var(--nv-blue); animation: nv-progress-slide 1.4s ease-in-out infinite; }
#nv-driver-languages { color: var(--nv-muted); font-size: 13px; }
@keyframes nv-progress-slide { from { transform: translateX(-100%); } to { transform: translateX(286%); } }
@media (prefers-reduced-motion: reduce) { .nv-progress span { animation: none; width: 100%; opacity: .5; } }
.nv-driver-card { background: #fff; border: 1px solid var(--nv-border); border-radius: 12px; padding: 16px; }
.nv-driver-card + .nv-driver-card { margin-top: 12px; }
.nv-driver-card h3 { font-size: 17px; font-weight: 700; line-height: 1.5; margin: 8px 0 12px; }
.nv-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.nv-tag { display: inline-block; color: #3d61bc; background: #edf2ff; border-radius: 5px; padding: 3px 8px; font-size: 11px; font-weight: 700; }
.nv-tag-neutral { color: #67738b; background: #f1f3f7; }
.nv-driver-facts { width: 100%; border-collapse: collapse; text-align: left; }
.nv-driver-facts th { color: var(--nv-muted); font-size: 13px; font-weight: 400; padding: 0 8px 4px 0; }
.nv-driver-facts td { font-weight: 700; padding: 8px 8px 8px 0; vertical-align: middle; }
.nv-driver-facts tbody tr + tr { border-top: 1px solid var(--nv-border); }
.nv-driver-facts th:last-child, .nv-driver-facts .nv-driver-actions { padding-right: 0; text-align: right; }
.nv-driver-actions a { color: #fff; background: var(--nv-blue); font-size: 13px; min-height: 38px; padding: 7px 14px; }
.nv-driver-actions a:hover { background: #3157cc; }

@media (max-width: 900px) {
    .nv-table th, .nv-table td { padding-left: 16px; padding-right: 16px; }
    .nv-table th:nth-child(1) { width: 24%; }
    .nv-table th:nth-child(2) { width: 30%; }
}

@media (max-width: 640px) {
    .nv-toolbar { flex-direction: column; align-items: stretch; gap: 10px; }
    .nv-search { max-width: none; }
    .nv-search input { font-size: 13px; padding-left: 35px; }
    .nv-search-field svg { left: 10px; width: 17px; }
    .nv-tabs { gap: 6px; }
    .nv-tab { font-size: 12px; padding: 7px 10px; }
    .nv-table thead { display: none; }
    .nv-table, .nv-table tbody, .nv-table tr, .nv-table td { display: block; width: 100%; }
    .nv-table tr { padding: 16px; border-top: 1px solid var(--nv-border); }
    .nv-table td { padding: 0; border: none; }
    .nv-table td:nth-child(2) { margin: 4px 0 12px; }
    .nv-dialog-header { padding: 16px; }
    .nv-dialog-header h2 { font-size: 18px; }
    .nv-dialog-body { padding: 16px; }
    .nv-driver-card { padding: 12px; }
    .nv-driver-facts { font-size: 12px; }
    .nv-driver-facts th { font-size: 11px; }
    .nv-driver-facts th, .nv-driver-facts td { padding-right: 6px; }
    .nv-driver-actions a { font-size: 12px; padding: 6px 8px; min-height: 34px; white-space: nowrap; }
}
