/* ==========================================================================
   NEXUS UI Components
   ========================================================================== */

.nx-button{
    appearance:none;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:.55rem;
    min-height:42px;
    padding:.65rem 1rem;
    border:1px solid transparent;
    border-radius:10px;
    font:inherit;
    font-weight:650;
    line-height:1;
    cursor:pointer;
    transition:
        transform .16s ease,
        background-color .16s ease,
        border-color .16s ease,
        color .16s ease,
        box-shadow .16s ease;
}

.nx-button:hover{
    transform:translateY(-1px);
}

.nx-button:active{
    transform:translateY(0);
}

.nx-button:focus-visible{
    outline:3px solid rgba(59,130,246,.3);
    outline-offset:2px;
}

.nx-button--primary{
    background:#2563eb;
    color:#fff;
    box-shadow:0 8px 18px rgba(37,99,235,.22);
}

.nx-button--primary:hover{
    background:#1d4ed8;
}

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

.nx-button--ghost{
    background:transparent;
    border-color:var(--border);
    color:var(--muted);
}

.nx-button--danger{
    background:#dc2626;
    color:#fff;
}

.nx-button__icon{
    width:18px;
    height:18px;
}

.nx-badge{
    display:inline-flex;
    align-items:center;
    gap:.35rem;
    padding:.35rem .65rem;
    border-radius:999px;
    font-size:.76rem;
    font-weight:700;
    line-height:1;
}

.nx-badge--neutral{
    background:#334155;
    color:#e2e8f0;
}

.nx-badge--success{
    background:rgba(22,163,74,.16);
    color:#4ade80;
}

.nx-badge--warning{
    background:rgba(217,119,6,.16);
    color:#fbbf24;
}

.nx-badge--danger{
    background:rgba(220,38,38,.16);
    color:#f87171;
}

.nx-badge--info{
    background:rgba(37,99,235,.16);
    color:#60a5fa;
}

.nx-badge__icon{
    width:14px;
    height:14px;
}

.nx-card{
    overflow:hidden;
    background:var(--panel);
    border:1px solid var(--border);
    border-radius:16px;
    box-shadow:0 14px 34px rgba(0,0,0,.16);
}

.nx-card__header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:1.25rem 1.4rem;
    border-bottom:1px solid var(--border);
}

.nx-card__heading{
    display:flex;
    align-items:center;
    gap:.8rem;
}

.nx-card__header-icon{
    width:24px;
    height:24px;
    color:#60a5fa;
}

.nx-card__title{
    margin:0;
    font-size:1.05rem;
    font-weight:750;
}

.nx-card__subtitle{
    margin:.25rem 0 0;
    color:var(--muted);
    font-size:.85rem;
}

.nx-card__body{
    padding:1.4rem;
}

.nx-stat-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:1rem;
}

.nx-stat-card{
    display:flex;
    align-items:flex-start;
    gap:1rem;
    min-width:0;
    padding:1.25rem;
    background:var(--panel);
    border:1px solid var(--border);
    border-radius:16px;
}

.nx-stat-card__icon{
    display:flex;
    align-items:center;
    justify-content:center;
    width:46px;
    height:46px;
    flex:0 0 46px;
    border-radius:13px;
    background:rgba(37,99,235,.14);
    color:#60a5fa;
}

.nx-stat-card__icon .nx-icon{
    width:24px;
    height:24px;
}

.nx-stat-card__content{
    min-width:0;
}

.nx-stat-card__label{
    margin:0;
    color:var(--muted);
    font-size:.82rem;
    font-weight:650;
}

.nx-stat-card__value{
    margin:.3rem 0 0;
    font-size:1.7rem;
    font-weight:800;
    letter-spacing:-.03em;
}

.nx-stat-card__detail{
    margin:.3rem 0 0;
    color:var(--muted);
    font-size:.76rem;
}

.nx-avatar{
    position:relative;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    overflow:visible;
    border-radius:50%;
    background:linear-gradient(145deg,#2563eb,#7c3aed);
    color:#fff;
    font-weight:800;
    user-select:none;
}

.nx-avatar img{
    width:100%;
    height:100%;
    border-radius:inherit;
    object-fit:cover;
}

.nx-avatar--small{
    width:32px;
    height:32px;
    font-size:.72rem;
}

.nx-avatar--medium{
    width:42px;
    height:42px;
    font-size:.86rem;
}

.nx-avatar--large{
    width:64px;
    height:64px;
    font-size:1.1rem;
}

.nx-avatar--online::after{
    content:"";
    position:absolute;
    right:0;
    bottom:0;
    width:10px;
    height:10px;
    border:2px solid var(--panel);
    border-radius:50%;
    background:#22c55e;
}

/* ==========================================================================
   Command Center
   ========================================================================== */

.nx-page{
    display:flex;
    flex-direction:column;
    gap:1.5rem;
}

.nx-page-header{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:1.5rem;
}

.nx-page-header__eyebrow{
    margin:0 0 .4rem;
    color:#60a5fa;
    font-size:.76rem;
    font-weight:800;
    letter-spacing:.12em;
    text-transform:uppercase;
}

.nx-page-header__title{
    margin:0;
    font-size:clamp(1.8rem,3vw,2.5rem);
    font-weight:800;
    letter-spacing:-.04em;
}

.nx-page-header__description{
    max-width:720px;
    margin:.65rem 0 0;
    color:var(--muted);
    line-height:1.6;
}

.nx-page-header__actions{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:.75rem;
    flex-wrap:wrap;
}

.nx-dashboard-grid{
    display:grid;
    grid-template-columns:minmax(0,2fr) minmax(280px,1fr);
    gap:1.25rem;
    align-items:start;
}

.nx-dashboard-grid__main,
.nx-dashboard-grid__aside{
    display:flex;
    flex-direction:column;
    gap:1.25rem;
    min-width:0;
}

.nx-activity-list{
    display:flex;
    flex-direction:column;
}

.nx-activity-item{
    display:grid;
    grid-template-columns:auto minmax(0,1fr) auto;
    align-items:center;
    gap:1rem;
    padding:1rem 0;
    border-bottom:1px solid var(--border);
}

.nx-activity-item:first-child{
    padding-top:0;
}

.nx-activity-item:last-child{
    padding-bottom:0;
    border-bottom:0;
}

.nx-activity-item__icon{
    display:flex;
    align-items:center;
    justify-content:center;
    width:42px;
    height:42px;
    border-radius:12px;
    background:var(--panel2);
    color:#60a5fa;
}

.nx-activity-item__icon .nx-icon{
    width:21px;
    height:21px;
}

.nx-activity-item__content{
    min-width:0;
}

.nx-activity-item__title{
    margin:0;
    color:var(--text);
    font-size:.92rem;
    font-weight:700;
}

.nx-activity-item__meta{
    margin:.3rem 0 0;
    color:var(--muted);
    font-size:.8rem;
    line-height:1.5;
}

.nx-quick-actions{
    display:grid;
    grid-template-columns:1fr;
    gap:.65rem;
}

.nx-quick-action{
    width:100%;
    justify-content:flex-start;
}

.nx-dashboard-health-card{
    margin-top:0;
}

.nx-health-list{
    display:flex;
    flex-direction:column;
    gap:.9rem;
}

.nx-health-item{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:1rem;
}

.nx-health-item__label{
    color:var(--text);
    font-size:.86rem;
    font-weight:650;
}

@media (max-width:1100px){
    .nx-stat-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

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

@media (max-width:720px){
    .nx-page-header{
        flex-direction:column;
    }

    .nx-page-header__actions{
        width:100%;
        justify-content:flex-start;
    }

    .nx-stat-grid{
        grid-template-columns:1fr;
    }

    .nx-activity-item{
        grid-template-columns:auto minmax(0,1fr);
    }

    .nx-activity-item > .nx-badge{
        grid-column:2;
        justify-self:start;
    }
}

/* ==========================================================================
   People Cells
   ========================================================================== */

.nx-person-cell{
    display:flex;
    align-items:center;
    gap:.75rem;
    min-width:190px;
}

.nx-person-cell > div{
    display:flex;
    flex-direction:column;
    gap:.2rem;
}

.nx-person-cell strong{
    color:var(--text);
    font-size:.88rem;
}

.nx-person-cell small{
    color:var(--muted);
    font-size:.74rem;
}


/* ==========================================================================
   Contact Profile
   ========================================================================== */

.nx-profile-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    padding: 1.35rem 1.5rem;
    border: 1px solid var(--border, #334155);
    border-radius: 1rem;
    background: var(--surface, #1e293b);
}

.nx-profile-summary__identity {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

.nx-profile-summary__avatar {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 3.75rem;
    height: 3.75rem;
    border: 1px solid rgba(96, 165, 250, 0.35);
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.16);
    color: #60a5fa;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.nx-profile-summary__name {
    margin: 0;
    color: var(--text, #f8fafc);
    font-size: 1.35rem;
    line-height: 1.2;
}

.nx-profile-summary__meta {
    margin: 0.35rem 0 0;
    color: var(--muted, #94a3b8);
    line-height: 1.5;
}

.nx-profile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.nx-profile-grid > .nx-card {
    margin: 0;
    min-width: 0;
}

.nx-detail-list {
    margin: 0;
}

.nx-detail-list__row {
    display: grid;
    grid-template-columns: minmax(9rem, 11rem) minmax(0, 1fr);
    align-items: start;
    gap: 1rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.nx-detail-list__row:first-child {
    padding-top: 0;
}

.nx-detail-list__row:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.nx-detail-list dt {
    color: var(--muted, #94a3b8);
    font-size: 0.84rem;
    font-weight: 700;
}

.nx-detail-list dd {
    min-width: 0;
    margin: 0;
    color: var(--text, #f8fafc);
    overflow-wrap: anywhere;
}

.nx-address {
    margin: 0;
    color: var(--text, #f8fafc);
    font-style: normal;
    line-height: 1.75;
}

.nx-notes {
    color: var(--text, #f8fafc);
    line-height: 1.7;
}

.nx-empty-message {
    margin: 0;
    color: var(--muted, #94a3b8);
}

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

@media (max-width: 620px) {
    .nx-profile-summary {
        flex-direction: column;
        align-items: flex-start;
    }

    .nx-detail-list__row {
        grid-template-columns: 1fr;
        gap: 0.3rem;
    }
}


/* ==========================================================================
   Document Library
   ========================================================================== */

.nx-document-search {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.nx-document-search__field {
    flex: 1 1 auto;
    min-width: 0;
}

.nx-document-search__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 0 0 auto;
}

.nx-document-list {
    display: flex;
    flex-direction: column;
}

.nx-document-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1rem;
    padding: 1.1rem 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.nx-document-item:first-child {
    padding-top: 0;
}

.nx-document-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.nx-document-item__icon {
    display: grid;
    place-items: center;
    width: 2.9rem;
    height: 2.9rem;
    border: 1px solid rgba(96, 165, 250, 0.28);
    border-radius: 0.8rem;
    background: rgba(37, 99, 235, 0.12);
    color: #60a5fa;
}

.nx-document-item__body {
    min-width: 0;
}

.nx-document-item__heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.nx-document-item__name {
    margin: 0;
    color: var(--text, #f8fafc);
    font-size: 0.98rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.nx-document-item__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem 0.9rem;
    margin-top: 0.45rem;
    color: var(--muted, #94a3b8);
    font-size: 0.78rem;
}

.nx-document-item__description {
    margin: 0.7rem 0 0;
    color: var(--muted, #94a3b8);
    font-size: 0.86rem;
    line-height: 1.6;
}

.nx-document-item__actions {
    display: flex;
    flex: 0 0 auto;
    gap: 0.5rem;
}

.nx-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 18rem;
    padding: 2rem;
    text-align: center;
}

.nx-empty-state__icon {
    display: grid;
    place-items: center;
    width: 4rem;
    height: 4rem;
    margin-bottom: 1rem;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.12);
    color: #60a5fa;
}

.nx-empty-state__title {
    margin: 0;
    color: var(--text, #f8fafc);
    font-size: 1.15rem;
}

.nx-empty-state__text {
    max-width: 34rem;
    margin: 0.6rem 0 1.25rem;
    color: var(--muted, #94a3b8);
    line-height: 1.6;
}

.nx-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.nx-pagination__summary {
    color: var(--muted, #94a3b8);
    font-size: 0.82rem;
}

.nx-pagination__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

@media (max-width: 720px) {
    .nx-document-search {
        flex-direction: column;
        align-items: stretch;
    }

    .nx-document-search__actions {
        flex-wrap: wrap;
    }

    .nx-document-item__heading {
        flex-direction: column;
    }

    .nx-document-item__actions {
        width: 100%;
    }

    .nx-pagination {
        flex-direction: column;
        align-items: flex-start;
    }
}


/* ==========================================================================
   Document Upload
   ========================================================================== */

.nx-document-upload-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.nx-upload-zone {
    position: relative;
    display: flex;
    min-height: 20rem;
    padding: 2.5rem;
    overflow: hidden;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed rgba(96, 165, 250, 0.35);
    border-radius: 1rem;
    background:
        radial-gradient(
            circle at top,
            rgba(37, 99, 235, 0.1),
            transparent 65%
        ),
        rgba(15, 23, 42, 0.26);
    cursor: pointer;
    text-align: center;
    transition:
        border-color 160ms ease,
        background 160ms ease,
        transform 160ms ease;
}

.nx-upload-zone:hover,
.nx-upload-zone:focus-visible,
.nx-upload-zone--dragging {
    border-color: rgba(96, 165, 250, 0.8);
    background:
        radial-gradient(
            circle at top,
            rgba(37, 99, 235, 0.2),
            transparent 70%
        ),
        rgba(30, 41, 59, 0.42);
    outline: none;
}

.nx-upload-zone--dragging {
    transform: scale(1.01);
}

.nx-upload-zone--selected {
    border-style: solid;
    border-color: rgba(52, 211, 153, 0.46);
}

.nx-upload-zone--error {
    border-color: rgba(248, 113, 113, 0.65);
}

.nx-upload-zone__input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.nx-upload-zone__icon {
    display: grid;
    place-items: center;
    width: 4.5rem;
    height: 4.5rem;
    margin-bottom: 1.15rem;
    border: 1px solid rgba(96, 165, 250, 0.3);
    border-radius: 1.1rem;
    background: rgba(37, 99, 235, 0.14);
    color: #60a5fa;
}

.nx-upload-zone__icon .nx-icon {
    width: 2rem;
    height: 2rem;
}

.nx-upload-zone__title {
    margin: 0;
    color: var(--text, #f8fafc);
    font-size: 1.2rem;
}

.nx-upload-zone__text {
    margin: 0.55rem 0 1rem;
    color: var(--muted, #94a3b8);
}

.nx-upload-zone__button {
    display: inline-flex;
    min-height: 2.6rem;
    padding: 0.65rem 1rem;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(96, 165, 250, 0.4);
    border-radius: 0.65rem;
    background: rgba(37, 99, 235, 0.16);
    color: #bfdbfe;
    font-size: 0.86rem;
    font-weight: 700;
}

.nx-upload-zone__formats {
    margin: 1.1rem 0 0;
    color: var(--muted, #94a3b8);
    font-size: 0.78rem;
}

.nx-upload-zone__limit {
    margin: 0.35rem 0 0;
    color: var(--muted, #94a3b8);
    font-size: 0.75rem;
}

.nx-upload-selection {
    display: flex;
    margin-top: 1rem;
    padding: 0.9rem 1rem;
    align-items: center;
    gap: 0.85rem;
    border: 1px solid rgba(52, 211, 153, 0.25);
    border-radius: 0.8rem;
    background: rgba(16, 185, 129, 0.08);
}

.nx-upload-selection--error {
    border-color: rgba(248, 113, 113, 0.3);
    background: rgba(239, 68, 68, 0.08);
}

.nx-upload-selection__icon {
    display: grid;
    place-items: center;
    width: 2.6rem;
    height: 2.6rem;
    flex: 0 0 auto;
    border-radius: 0.65rem;
    background: rgba(16, 185, 129, 0.13);
    color: #34d399;
}

.nx-upload-selection--error .nx-upload-selection__icon {
    background: rgba(239, 68, 68, 0.12);
    color: #f87171;
}

.nx-upload-selection__body {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 0.2rem;
}

.nx-upload-selection__body strong {
    overflow: hidden;
    color: var(--text, #f8fafc);
    font-size: 0.88rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nx-upload-selection__body span {
    color: var(--muted, #94a3b8);
    font-size: 0.76rem;
}

.nx-upload-selection__remove {
    display: grid;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    flex: 0 0 auto;
    place-items: center;
    border: 0;
    border-radius: 0.55rem;
    background: transparent;
    color: var(--muted, #94a3b8);
    cursor: pointer;
}

.nx-upload-selection__remove:hover {
    background: rgba(248, 113, 113, 0.12);
    color: #f87171;
}

.nx-form-grid {
    display: grid;
    gap: 1.25rem;
}

.nx-form-grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.nx-field--full {
    grid-column: 1 / -1;
}

.nx-field-help {
    margin: 0.45rem 0 0;
    color: var(--muted, #94a3b8);
    font-size: 0.75rem;
    line-height: 1.5;
}

.nx-field-error {
    margin: 0.45rem 0 0;
    color: #fca5a5;
    font-size: 0.78rem;
    line-height: 1.5;
}

.nx-field-counter {
    display: flex;
    margin-top: 0.4rem;
    justify-content: space-between;
    color: var(--muted, #94a3b8);
    font-size: 0.72rem;
}

.nx-input--error {
    border-color: rgba(248, 113, 113, 0.65) !important;
}

.nx-form-actions {
    display: flex;
    padding: 0.25rem 0 1rem;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
}

.nx-button--loading {
    cursor: wait;
    opacity: 0.72;
}

.nx-alert {
    display: flex;
    padding: 1rem;
    align-items: flex-start;
    gap: 0.8rem;
    border-radius: 0.8rem;
}

.nx-alert strong {
    display: block;
    margin-bottom: 0.2rem;
}

.nx-alert p {
    margin: 0;
    line-height: 1.5;
}

.nx-alert--danger {
    border: 1px solid rgba(248, 113, 113, 0.28);
    background: rgba(239, 68, 68, 0.09);
    color: #fecaca;
}

@media (max-width: 720px) {
    .nx-upload-zone {
        min-height: 17rem;
        padding: 1.5rem;
    }

    .nx-form-grid--two {
        grid-template-columns: 1fr;
    }

    .nx-field--full {
        grid-column: auto;
    }

    .nx-form-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .nx-form-actions .nx-button {
        width: 100%;
    }
}


/* ===========================================================
   NEXUS FORM SYSTEM
   =========================================================== */

.nx-form-group{
    margin-bottom:1.5rem;
}

.nx-form-group label{
    display:block;
    margin-bottom:.55rem;
    font-weight:600;
    color:var(--nx-text,#f8fafc);
    font-size:.95rem;
}

.nx-form-group input,
.nx-form-group textarea,
.nx-form-group select{

    width:100%;
    box-sizing:border-box;

    background:#0f172a;
    color:#f8fafc;

    border:1px solid #334155;
    border-radius:10px;

    padding:.80rem .90rem;

    font-size:.95rem;

    transition:
        border-color .2s,
        box-shadow .2s,
        background .2s;
}

.nx-form-group textarea{

    resize:vertical;
    min-height:180px;
    line-height:1.5;
    font-family:inherit;
}

.nx-form-group input:focus,
.nx-form-group textarea:focus,
.nx-form-group select:focus{

    outline:none;

    border-color:#3b82f6;

    box-shadow:
        0 0 0 3px rgba(59,130,246,.20);

    background:#111c31;
}

.nx-form-actions{

    margin-top:2rem;

    display:flex;

    gap:1rem;

    flex-wrap:wrap;
}



/* ==========================================================
   NEXUS TOP BAR ACCOUNT
   ========================================================== */

.nx-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 72px;
    padding: 12px 24px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(8, 15, 28, 0.92);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.16);
    backdrop-filter: blur(16px);
}

.nx-topbar__brand {
    display: flex;
    align-items: baseline;
    gap: 12px;
    min-width: 0;
}

.nx-topbar__brand-name {
    color: #f8fafc;
    font-size: 1.12rem;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.nx-topbar__brand-section {
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.nx-topbar__account {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nx-topbar__rank-icon {
    display: block;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(96, 165, 250, 0.25));
}

.nx-topbar__identity {
    display: grid;
    gap: 2px;
    min-width: 0;
    text-align: right;
}

.nx-topbar__user-name {
    overflow: hidden;
    color: #f8fafc;
    font-size: 0.92rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nx-topbar__role {
    color: #94a3b8;
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.025em;
}

.nx-topbar__role--jedi {
    color: #93c5fd;
    text-shadow: 0 0 12px rgba(59, 130, 246, 0.35);
}

.nx-topbar__logout-form {
    margin: 0 0 0 6px;
}

.nx-topbar__logout {
    min-height: 36px;
    padding: 0 13px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 9px;
    background: rgba(15, 23, 42, 0.78);
    color: #cbd5e1;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition:
        border-color 160ms ease,
        background-color 160ms ease,
        color 160ms ease;
}

.nx-topbar__logout:hover {
    border-color: rgba(248, 113, 113, 0.5);
    background: rgba(127, 29, 29, 0.22);
    color: #fecaca;
}

.nx-topbar__logout:focus-visible {
    outline: 3px solid rgba(96, 165, 250, 0.35);
    outline-offset: 2px;
}

@media (max-width: 700px) {
    .nx-topbar {
        align-items: flex-start;
        padding: 12px 16px;
    }

    .nx-topbar__brand-section {
        display: none;
    }

    .nx-topbar__rank-icon {
        width: 32px;
        height: 32px;
        flex-basis: 32px;
    }

    .nx-topbar__identity {
        display: none;
    }

    .nx-topbar__logout-form {
        margin-left: 0;
    }
}
