:root {
    color-scheme: dark;
    --bg: #080d13;
    --bg-deep: #060a0f;
    --panel: rgba(255, 255, 255, 0.025);
    --panel-strong: rgba(15, 23, 33, 0.92);
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(76, 139, 214, 0.4);
    --text: #e6edf7;
    --muted: #a9b5c7;
    --faint: #718096;
    --accent: #4c8bd6;
    --accent-bright: #68a7ef;
    --accent-soft: rgba(76, 139, 214, 0.18);
    --danger: #ff8f9b;
    --danger-bg: rgba(190, 52, 68, 0.13);
    --success: #8fd7b2;
    --success-bg: rgba(49, 151, 101, 0.13);
    --radius: 14px;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
    margin: 0;
    background: var(--bg);
    color: var(--text);
}

body {
    min-height: 100vh;
}

a {
    color: inherit;
}

button,
input,
textarea {
    font: inherit;
}

.brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.brand img {
    display: block;
    width: auto;
    height: 34px;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--accent-bright);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
}

.muted {
    color: var(--muted);
    line-height: 1.65;
}

.auth-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(420px, 0.85fr);
    min-height: 100vh;
}

.auth-visual {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    padding: clamp(32px, 5vw, 72px);
    background:
        radial-gradient(circle at 75% 42%, rgba(76, 139, 214, 0.22), transparent 30%),
        linear-gradient(145deg, #0b121c 0%, #080d13 55%, #060a0f 100%);
    border-right: 1px solid var(--border);
}

.auth-visual-grid {
    position: absolute;
    inset: 0;
    opacity: 0.2;
    background-image:
        linear-gradient(rgba(76, 139, 214, 0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(76, 139, 214, 0.12) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom right, transparent 5%, black 55%, transparent 100%);
}

.auth-visual-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
}

.auth-visual-content .brand {
    margin-bottom: clamp(100px, 18vh, 190px);
}

.auth-visual h1 {
    max-width: 680px;
    margin: 0;
    font-size: clamp(42px, 5.2vw, 76px);
    line-height: 1.01;
    letter-spacing: -0.045em;
}

.auth-lead {
    max-width: 520px;
    margin-top: 24px;
    color: var(--muted);
    font-size: 18px;
}

.circuit-board {
    position: absolute;
    right: -90px;
    bottom: -120px;
    width: min(620px, 70vw);
    aspect-ratio: 1;
    transform: rotate(-8deg);
    border: 1px solid rgba(76, 139, 214, 0.17);
    border-radius: 50%;
    background:
        radial-gradient(circle at center, rgba(76, 139, 214, 0.13), transparent 55%),
        repeating-radial-gradient(circle at center, transparent 0 39px, rgba(76, 139, 214, 0.1) 40px 41px);
}

.chip {
    position: absolute;
    display: grid;
    place-items: center;
    color: rgba(230, 237, 247, 0.65);
    font-size: 11px;
    letter-spacing: 0.1em;
    border: 1px solid rgba(76, 139, 214, 0.4);
    background: rgba(8, 13, 19, 0.8);
    box-shadow: 0 0 40px rgba(76, 139, 214, 0.15);
}

.chip-main {
    width: 118px;
    height: 118px;
    left: 205px;
    top: 198px;
}

.chip-small {
    width: 48px;
    height: 48px;
    left: 95px;
    top: 115px;
}

.trace {
    position: absolute;
    height: 1px;
    background: rgba(76, 139, 214, 0.5);
    transform-origin: left;
}

.trace-one {
    width: 180px;
    left: 24px;
    top: 256px;
}

.trace-two {
    width: 170px;
    left: 322px;
    top: 255px;
}

.trace-three {
    width: 160px;
    left: 270px;
    top: 370px;
    transform: rotate(55deg);
}

.node {
    position: absolute;
    width: 9px;
    height: 9px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 18px var(--accent);
}

.node-one { left: 17px; top: 252px; }
.node-two { left: 490px; top: 251px; }
.node-three { left: 358px; top: 488px; }

.auth-panel {
    display: grid;
    place-items: center;
    padding: 40px;
    background:
        radial-gradient(circle at 50% 25%, rgba(76, 139, 214, 0.08), transparent 30%),
        var(--bg-deep);
}

.auth-card,
.password-card {
    width: min(100%, 430px);
}

.auth-card h2,
.password-card h1 {
    margin: 0;
    font-size: 36px;
    letter-spacing: -0.03em;
}

.mobile-brand {
    display: none;
}

.form-stack {
    display: grid;
    gap: 20px;
    margin-top: 32px;
}

.form-stack label {
    display: grid;
    gap: 9px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
}

.form-stack input,
.form-stack textarea {
    width: 100%;
    padding: 0 15px;
    color: var(--text);
    outline: none;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.035);
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.form-stack input {
    height: 50px;
}

.form-stack textarea {
    min-height: 116px;
    padding-block: 13px;
    line-height: 1.5;
    resize: vertical;
}

.form-stack input:focus,
.form-stack textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(76, 139, 214, 0.15);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.button-primary {
    color: var(--text);
    border-color: var(--border-strong);
    background: var(--accent-soft);
}

.button-primary:hover {
    background: rgba(76, 139, 214, 0.28);
}

.button-secondary {
    color: var(--text);
    border-color: var(--border);
    background: var(--panel);
}

.button-danger {
    color: #ffd9dd;
    border-color: rgba(255, 143, 155, 0.32);
    background: rgba(190, 52, 68, 0.16);
}

.button-danger:hover {
    border-color: rgba(255, 143, 155, 0.55);
    background: rgba(190, 52, 68, 0.26);
}

.button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.password-card > .button-secondary {
    margin-top: 20px;
}

.button-compact {
    min-height: 42px;
}

.icon-button {
    position: relative;
    flex: 0 0 auto;
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
}

.icon-button.icon-button-large {
    width: 50px;
    min-width: 50px;
    height: 50px;
    min-height: 50px;
}

.ui-icon {
    display: block;
    width: 20px;
    height: 20px;
    pointer-events: none;
}

.icon-button .ui-icon {
    transition: transform 160ms ease;
}

.icon-button:hover .ui-icon {
    transform: scale(1.08);
}

.icon-button[title]::after {
    position: absolute;
    z-index: 20;
    left: 50%;
    bottom: calc(100% + 9px);
    width: max-content;
    max-width: 220px;
    padding: 7px 9px;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 7px;
    background: #111a25;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    content: attr(title);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 4px);
    transition: opacity 120ms ease, transform 120ms ease;
}

.icon-button[title]:hover::after,
.icon-button[title]:focus-visible::after {
    opacity: 1;
    transform: translate(-50%, 0);
}

.icon-button.is-loading .ui-icon {
    animation: icon-button-pulse 700ms ease-in-out infinite alternate;
}

@keyframes icon-button-pulse {
    to {
        transform: translateY(-2px);
        opacity: 0.55;
    }
}

.alert {
    margin-top: 24px;
    padding: 13px 15px;
    border: 1px solid;
    border-radius: 11px;
    font-size: 14px;
    line-height: 1.45;
}

.alert-error {
    color: var(--danger);
    border-color: rgba(255, 143, 155, 0.25);
    background: var(--danger-bg);
}

.alert-success {
    color: var(--success);
    border-color: rgba(143, 215, 178, 0.25);
    background: var(--success-bg);
}

.page-alert {
    margin: 0 0 18px;
}

.centered-page {
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 32px;
    background:
        radial-gradient(circle at 50% 20%, rgba(76, 139, 214, 0.14), transparent 35%),
        var(--bg);
}

.password-card {
    padding: 36px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--panel-strong);
    box-shadow: var(--shadow);
}

.password-card .brand {
    margin-bottom: 56px;
}

.app-shell {
    display: grid;
    grid-template-columns: 264px 1fr;
    min-height: 100vh;
}

.sidebar {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding: 26px 20px 20px;
    border-right: 1px solid var(--border);
    background: #080d13;
}

.sidebar .brand {
    padding: 0 10px;
}

.sidebar-nav {
    display: grid;
    gap: 7px;
    margin-top: 58px;
}

.nav-item {
    display: flex;
    align-items: center;
    min-height: 46px;
    padding: 0 13px;
    gap: 11px;
    color: var(--muted);
    border: 1px solid transparent;
    border-radius: 11px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.nav-item.active {
    color: var(--text);
    border-color: rgba(76, 139, 214, 0.25);
    background: var(--accent-soft);
}

.nav-item.disabled {
    opacity: 0.55;
}

.nav-icon {
    width: 20px;
    color: var(--accent-bright);
    font-size: 18px;
    text-align: center;
}

.soon {
    margin-left: auto;
    color: var(--faint);
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

.user-summary {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 7px;
}

.avatar {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    color: var(--accent-bright);
    background: var(--accent-soft);
    font-weight: 700;
}

.user-summary div {
    display: grid;
    gap: 2px;
}

.user-summary strong {
    font-size: 13px;
}

.user-summary div span {
    color: var(--faint);
    font-size: 11px;
}

.logout-button {
    width: 100%;
    margin-top: 10px;
    padding: 10px;
    color: var(--muted);
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.logout-button:hover {
    color: var(--text);
}

.logout-button.icon-button {
    display: grid;
    place-items: center;
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    margin: 10px 7px 0;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 11px;
}

.logout-button.icon-button:hover,
.logout-button.icon-button:focus-visible {
    border-color: var(--border);
    background: var(--panel);
}

.main-content {
    width: min(100%, 1440px);
    padding: 46px clamp(28px, 5vw, 78px);
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.page-header h1 {
    margin: 0;
    font-size: 34px;
    letter-spacing: -0.03em;
}

.welcome-card {
    position: relative;
    display: flex;
    justify-content: space-between;
    min-height: 270px;
    overflow: hidden;
    padding: clamp(30px, 4vw, 54px);
    border: 1px solid var(--border);
    border-radius: 24px;
    background:
        linear-gradient(110deg, rgba(76, 139, 214, 0.13), transparent 55%),
        var(--panel);
}

.welcome-card h2 {
    margin: 0;
    font-size: clamp(34px, 4vw, 54px);
    letter-spacing: -0.045em;
}

.welcome-card p:last-child {
    max-width: 600px;
    color: var(--muted);
    line-height: 1.65;
}

.welcome-mark {
    position: absolute;
    right: -80px;
    top: -90px;
    width: 360px;
    height: 360px;
    border: 1px solid rgba(76, 139, 214, 0.17);
    border-radius: 50%;
    box-shadow:
        inset 0 0 0 48px rgba(76, 139, 214, 0.025),
        inset 0 0 0 96px rgba(76, 139, 214, 0.025);
}

.welcome-mark span {
    position: absolute;
    inset: 130px;
    border: 2px solid rgba(76, 139, 214, 0.4);
    transform: rotate(45deg);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 18px;
}

.metric-card {
    min-height: 170px;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--panel);
}

.metric-label {
    display: block;
    margin-bottom: 25px;
    color: var(--accent-bright);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.metric-card strong {
    font-size: 20px;
}

.metric-card p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.card-link {
    color: var(--text);
    text-decoration-color: var(--accent);
    text-underline-offset: 4px;
}

.narrow-content {
    max-width: 980px;
}

.back-link {
    display: inline-block;
    margin-bottom: 28px;
    color: var(--muted);
    font-size: 14px;
    text-decoration: none;
}

.back-link:hover,
.table-link:hover {
    color: var(--text);
}

.empty-state {
    padding: clamp(36px, 6vw, 80px);
    border: 1px solid var(--border);
    border-radius: 22px;
    background:
        radial-gradient(circle at 90% 10%, rgba(76, 139, 214, 0.13), transparent 35%),
        var(--panel);
}

.empty-state h2 {
    max-width: 560px;
    margin: 0;
    font-size: clamp(30px, 4vw, 48px);
    letter-spacing: -0.04em;
}

.empty-state p:not(.eyebrow) {
    max-width: 570px;
    margin-bottom: 28px;
    color: var(--muted);
    line-height: 1.6;
}

.company-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.company-card {
    display: flex;
    min-height: 156px;
    padding: 22px;
    gap: 18px;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--panel);
    text-decoration: none;
    transition: border-color 160ms ease, background 160ms ease;
}

.company-card > .company-logo {
    width: 112px;
    height: 112px;
    border-radius: 18px;
}

.company-card:hover {
    border-color: rgba(76, 139, 214, 0.3);
    background: rgba(76, 139, 214, 0.06);
}

.company-logo {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 66px;
    height: 66px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 15px;
    color: var(--accent-bright);
    background: #f3f6fa;
    font-size: 24px;
    font-weight: 750;
}

.company-logo img {
    width: 100%;
    height: 100%;
    padding: 9px;
    object-fit: contain;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.38));
}

.company-logo-large {
    width: 72px;
    height: 72px;
}

.company-logo-header {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 220px;
    height: 88px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #f3f6fa;
}

.company-logo-header img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.38));
}

.company-card-body {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.company-card-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.company-card h2 {
    margin: 4px 0 9px;
    overflow: hidden;
    font-size: 20px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.company-card p {
    margin: 0 0 18px;
    overflow: hidden;
    color: var(--muted);
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.company-meta {
    color: var(--faint);
    font-size: 12px;
}

.badge {
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    padding: 0 9px;
    border: 1px solid;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}

.badge-active {
    color: var(--success);
    border-color: rgba(143, 215, 178, 0.23);
    background: var(--success-bg);
}

.badge-disabled {
    color: var(--muted);
    border-color: var(--border);
    background: var(--panel);
}

.company-heading {
    align-items: center;
}

.company-heading-main {
    display: flex;
    align-items: center;
    gap: 18px;
}

.company-heading-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.company-heading-main .eyebrow {
    margin-bottom: 7px;
}

.form-card,
.table-card {
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--panel);
}

.form-card h2,
.table-card h2 {
    margin: 0;
    font-size: 23px;
    letter-spacing: -0.025em;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.section-heading .eyebrow {
    margin-bottom: 7px;
}

.compact-stack {
    margin-top: 0;
}

.form-stack label small {
    margin-left: 6px;
    color: var(--faint);
    font-weight: 400;
}

.form-stack input[type="file"] {
    height: auto;
    padding: 13px;
    color: var(--muted);
    border-color: var(--border);
    background: rgba(255, 255, 255, 0.035);
}

.form-stack input[type="file"]::file-selector-button {
    margin-right: 12px;
    padding: 7px 11px;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.07);
    cursor: pointer;
}

.checkbox-row {
    grid-template-columns: auto 1fr;
    align-items: center;
}

.form-stack .checkbox-row input {
    width: 17px;
    height: 17px;
    accent-color: var(--accent);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.two-column-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.table-card {
    margin-top: 18px;
}

.count-badge {
    display: grid;
    place-items: center;
    min-width: 32px;
    height: 32px;
    padding: 0 9px;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--muted);
    background: var(--panel);
    font-size: 13px;
}

.table-scroll {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

th,
td {
    padding: 15px 14px;
    border-top: 1px solid var(--border);
    text-align: left;
    vertical-align: middle;
}

th {
    color: var(--faint);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

td {
    color: var(--muted);
}

td strong,
td span {
    display: block;
}

td strong {
    margin-bottom: 4px;
    color: var(--text);
}

.table-link {
    color: var(--accent-bright);
    font-weight: 700;
    text-decoration: none;
}

.reset-card {
    margin-top: 18px;
}

.empty-users {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.empty-users p {
    margin: 0;
}

.product-list {
    display: grid;
    gap: 10px;
}

.product-row {
    display: flex;
    align-items: center;
    min-height: 88px;
    padding: 15px;
    gap: 14px;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.02);
    text-decoration: none;
}

.product-row:hover,
.download-product-card:hover {
    border-color: rgba(76, 139, 214, 0.35);
    background: rgba(76, 139, 214, 0.07);
}

.product-mark,
.download-product-icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    color: var(--accent-bright);
    border: 1px solid var(--border-strong);
    border-radius: 11px;
    background: var(--accent-soft);
    font-size: 20px;
}

.product-row-content {
    display: grid;
    min-width: 0;
    flex: 1;
    gap: 4px;
}

.product-row-content > span,
.download-product-card small {
    overflow: hidden;
    color: var(--muted);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-row-content code,
.server-path-note code {
    width: fit-content;
    color: var(--faint);
    font-size: 11px;
}

.product-open {
    flex: 0 0 auto;
    color: var(--accent-bright);
    font-size: 12px;
    font-weight: 700;
}

.form-note {
    margin: -2px 0 4px;
    color: var(--faint);
    font-size: 12px;
    line-height: 1.55;
}

.download-catalog {
    display: grid;
    gap: 22px;
}

.download-customer {
    padding: 26px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--panel);
}

.download-customer .section-heading {
    margin-bottom: 20px;
}

.download-customer h2 {
    margin: 0;
    font-size: 23px;
}

.download-product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.download-product-card {
    display: flex;
    align-items: center;
    min-height: 92px;
    padding: 16px;
    gap: 14px;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.02);
    text-decoration: none;
}

.download-product-card > span:nth-child(2) {
    display: grid;
    min-width: 0;
    flex: 1;
    gap: 6px;
}

.download-empty {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 68px;
    padding: 16px 18px;
    gap: 18px;
    color: var(--muted);
    border: 1px dashed var(--border);
    border-radius: 12px;
}

.download-product-header {
    margin-bottom: 26px;
}

.page-description {
    max-width: 700px;
    margin: 12px 0 0;
    color: var(--muted);
    line-height: 1.55;
}

.file-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 14px;
    gap: 8px;
    color: var(--faint);
    font-size: 13px;
}

.file-breadcrumbs a {
    color: var(--accent-bright);
    text-decoration: none;
}

.download-files-card {
    margin-top: 0;
}

.file-name {
    display: flex;
    align-items: center;
    width: fit-content;
    gap: 10px;
    color: var(--text);
    text-decoration: none;
}

.file-name strong {
    margin: 0;
}

.file-icon {
    display: inline-grid;
    place-items: center;
    width: 25px;
    color: var(--accent-bright);
}

.file-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.file-actions form {
    margin: 0;
}

.table-action {
    color: var(--muted);
}

.danger-link,
.danger-eyebrow {
    color: var(--danger);
}

.danger-link:hover {
    color: #ffc0c7;
}

.server-path-note {
    margin: 14px 2px 0;
    color: var(--faint);
    font-size: 12px;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    padding: 0 !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.modal.upload-modal {
    width: min(650px, calc(100vw - 32px));
}

.upload-dropzone {
    display: grid;
    place-items: center;
    width: 100%;
    min-height: 190px;
    padding: 28px;
    gap: 7px;
    color: var(--text);
    border: 1px dashed rgba(104, 167, 239, 0.45);
    border-radius: 15px;
    background: rgba(76, 139, 214, 0.07);
    cursor: pointer;
    transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.upload-dropzone:hover,
.upload-dropzone.drag-active {
    border-color: var(--accent-bright);
    background: rgba(76, 139, 214, 0.14);
}

.upload-dropzone.drag-active {
    transform: scale(1.01);
}

.upload-dropzone-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin-bottom: 5px;
    color: var(--accent-bright);
    border: 1px solid var(--border-strong);
    border-radius: 13px;
    background: var(--accent-soft);
    font-size: 24px;
}

.upload-dropzone strong {
    font-size: 17px;
}

.upload-dropzone > span:last-child,
.upload-target {
    color: var(--muted);
    font-size: 12px;
}

.upload-target {
    margin: 14px 0 6px;
}

.upload-target code {
    color: var(--text);
}

.upload-queue {
    display: grid;
    max-height: 260px;
    overflow-y: auto;
    margin-top: 18px;
    gap: 9px;
}

.upload-row {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    overflow: hidden;
    padding: 13px 14px 16px;
    gap: 5px 14px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.025);
}

.upload-row-details {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.upload-row-details strong,
.upload-row-details span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.upload-row-details strong {
    font-size: 13px;
}

.upload-row-details span,
.upload-row-status {
    color: var(--faint);
    font-size: 11px;
}

.upload-row-status {
    align-self: center;
}

.upload-row[data-state="success"] .upload-row-status {
    color: var(--success);
}

.upload-row[data-state="error"] .upload-row-status {
    max-width: 230px;
    color: var(--danger);
    text-align: right;
}

.upload-row-progress {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.04);
}

.upload-row-progress span {
    display: block;
    width: 0;
    height: 100%;
    background: var(--accent-bright);
    transition: width 100ms linear;
}

.upload-row[data-state="success"] .upload-row-progress span {
    background: var(--success);
}

.upload-row[data-state="error"] .upload-row-progress span {
    background: var(--danger);
}

.modal {
    width: min(560px, calc(100vw - 32px));
    max-width: none;
    max-height: calc(100vh - 32px);
    padding: 0;
    color: var(--text);
    border: 0;
    border-radius: 20px;
    background: transparent;
    box-shadow: var(--shadow);
}

.modal::backdrop {
    background: rgba(2, 6, 10, 0.78);
    backdrop-filter: blur(5px);
}

.modal-card {
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 20px;
    background: #0d141d;
}

.modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 26px;
}

.modal-header .eyebrow {
    margin-bottom: 7px;
}

.modal-header h2 {
    margin: 0;
    font-size: 28px;
    letter-spacing: -0.03em;
}

.modal-close {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    padding: 0;
    color: var(--muted);
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.035);
    line-height: 1;
    cursor: pointer;
}

.modal-close:hover {
    color: var(--text);
    border-color: rgba(76, 139, 214, 0.35);
}

.modal-close:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 4px;
}

@media (max-width: 900px) {
    .auth-layout {
        grid-template-columns: 1fr;
    }

    .auth-visual {
        display: none;
    }

    .auth-panel {
        min-height: 100vh;
        padding: 28px;
    }

    .mobile-brand {
        display: block;
        margin-bottom: 80px;
    }

    .app-shell {
        grid-template-columns: 84px 1fr;
    }

    .sidebar {
        padding-inline: 13px;
    }

    .nav-item:not(.active) .soon,
    .nav-item {
        font-size: 0;
    }

    .sidebar .brand {
        justify-content: center;
        padding: 0;
    }

    .nav-item {
        justify-content: center;
        padding: 0;
    }

    .nav-icon {
        font-size: 19px;
    }

    .user-summary div,
    .logout-button {
        display: none;
    }

    .user-summary {
        justify-content: center;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .company-grid,
    .two-column-layout,
    .download-product-grid {
        grid-template-columns: 1fr;
    }

    .company-heading {
        align-items: flex-start;
    }

    .company-heading-actions {
        flex-wrap: wrap;
    }
}

@media (max-width: 620px) {
    .app-shell {
        display: block;
    }

    .sidebar {
        position: static;
        width: 100%;
        height: auto;
        flex-direction: row;
        align-items: center;
        padding: 14px 18px;
    }

    .sidebar-nav {
        display: none;
    }

    .sidebar-footer {
        margin: 0 0 0 auto;
        padding: 0;
        border: 0;
    }

    .main-content {
        padding: 28px 18px;
    }

    .welcome-mark {
        opacity: 0.4;
    }

    .page-header,
    .company-heading {
        align-items: flex-start;
        gap: 20px;
    }

    .company-heading-main {
        align-items: flex-start;
    }

    .company-logo-large {
        width: 58px;
        height: 58px;
    }

    .company-logo-header {
        width: 170px;
        height: 72px;
        padding: 8px;
    }

    .company-heading-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .company-heading-actions .badge {
        order: 3;
    }

    .company-card > .company-logo {
        width: 84px;
        height: 84px;
    }

    .form-card,
    .table-card {
        padding: 20px;
    }

    .company-grid {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column-reverse;
    }

    .empty-users,
    .download-empty,
    .modal-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .product-row {
        align-items: flex-start;
    }

    .download-product-header {
        align-items: stretch;
        flex-direction: column;
    }

    .download-product-header .button {
        width: 44px;
    }

    .product-open {
        display: none;
    }

    .modal-card {
        padding: 22px;
    }
}
