.mx {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #08090a;
    color: #f4f4f5;
    font-family: Satoshi, Inter, "Segoe UI", sans-serif;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
    -webkit-font-smoothing: antialiased;
    text-align: left;
}

.mx svg { flex: none; width: 19px; height: 19px; }
.mx b { font-weight: 700; }

.mx__bar {
    display: flex;
    flex: none;
    align-items: center;
    gap: 8px;
    min-height: 70px;
    padding: 0 10px 0 6px;
    border-bottom: 1px solid #161618;
    background: #060708;
}

.mx__rail, .mx__pills { display: flex; align-items: center; gap: 6px; }
.mx__rail { flex: 1; padding: 0 4px; }

.mx-sec {
    position: relative;
    display: grid;
    flex: none;
    justify-items: center;
    align-content: center;
    gap: 5px;
    min-width: 72px;
    height: 54px;
    border-radius: 10px;
    padding: 0 12px;
    background: #131417;
    color: #9a9aa3;
    font-size: 11.5px;
    font-weight: 650;
    line-height: 1.15;
    white-space: nowrap;
}

.mx-sec.is-on { background: #24252a; color: #fff; }
.mx-sec__ic { display: grid; place-items: center; width: 20px; height: 20px; }
.mx-sec--icon { min-width: 0; width: 48px; padding: 0; }

.mx-sec__tag {
    position: absolute;
    top: 3px;
    right: 9px;
    min-width: 17px;
    border-radius: 999px;
    padding: 1px 5px;
    background: #f87171;
    box-shadow: 0 0 0 2px #131417;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    text-align: center;
}

.mx-st { gap: 7px; min-width: 76px; color: #f4f4f5; }
.mx-st i { width: 12px; height: 12px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .2); }
.mx-div { flex: none; width: 1px; height: 34px; margin: 0 4px; background: #26262b; }

.mx__dash {
    display: grid;
    flex: 1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 12px;
    min-height: 0;
    padding: 14px 16px;
}

.mx-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 14px;
    background: #111215;
    box-shadow: 0 1px 0 rgba(0, 0, 0, .6), 0 18px 34px -22px rgba(0, 0, 0, .95);
}

.mx-card__head {
    display: flex;
    flex: none;
    align-items: center;
    gap: 10px;
    min-height: 50px;
    padding: 0 10px 0 16px;
    border-bottom: 1px solid rgba(255, 255, 255, .045);
}

.mx-card__head h3 { margin: 0; font-size: 13.5px; font-weight: 700; letter-spacing: -.01em; }

.mx-count {
    border-radius: 999px;
    padding: 2px 9px;
    background: #16171a;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(0, 0, 0, .3);
    color: #a1a1aa;
    font-size: 11px;
    font-weight: 600;
}

.mx-btn {
    display: inline-flex;
    align-items: center;
    height: 32px;
    margin-left: auto;
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 9px;
    padding: 0 13px;
    background: #1a1b1f;
    color: #dcdce0;
    font-size: 12.5px;
    font-weight: 650;
}

.mx-btn--go { border-color: transparent; background: #f4f4f5; color: #000; }
.mx-card__body { display: flex; flex: 1; flex-direction: column; gap: 6px; min-height: 0; overflow: hidden; padding: 12px 14px; }
.mx-card.is-flush .mx-card__body { padding: 0; }

.mx-item {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 10px;
    padding: 10px 12px;
    background: #111215;
}

.mx-item.is-alarm { border-color: rgba(248, 113, 113, .24); background: rgba(248, 113, 113, .05); }

.mx-item.is-alarm::before {
    flex: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f87171;
    box-shadow: 0 0 0 3px rgba(248, 113, 113, .16);
    content: "";
}

.mx-item__main { display: flex; flex: 1; flex-direction: column; gap: 2px; min-width: 0; }
.mx-item__main b { font-size: 12.5px; }
.mx-item__main span { color: #a1a1aa; font-size: 11px; }

.mx-prio {
    display: inline-block;
    margin-right: 6px;
    border: 1px solid;
    border-radius: 5px;
    padding: 0 6px;
    font-size: 11px;
    font-weight: 800;
    line-height: 18px;
    vertical-align: 1px;
}

.mx-prio--p1 { color: #f87171; }
.mx-prio--p2 { color: #fbbf24; }

.mx-pill {
    flex: none;
    border: 1px solid;
    border-radius: 999px;
    padding: 2px 9px;
    font-size: 11.5px;
    font-weight: 650;
}

.mx-pill--alarm { border-color: rgba(248, 113, 113, .4); background: rgba(248, 113, 113, .08); color: #fca5a5; }
.mx-pill--ready { border-color: rgba(52, 211, 153, .32); background: rgba(52, 211, 153, .07); color: #6ee7b7; }

.mx-table { display: flex; flex-direction: column; }

.mx-tr {
    --st: #71717a;
    display: grid;
    grid-template-columns: 112px minmax(0, 1.3fr) minmax(0, 1fr) 82px;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    border-bottom: 1px solid rgba(255, 255, 255, .045);
    padding: 0 16px;
}

.mx-tr:last-child { border-bottom: 0; }
.mx-th { min-height: 34px; color: #77777f; font-size: 11px; font-weight: 600; }
.mx-st--ready { --st: #22c55e; }
.mx-st--route { --st: #38bdf8; }
.mx-st--alarm { --st: #ef4444; }
.mx-st--busy { --st: #f97316; }
.mx-st--warn { --st: #eab308; }

.mx-sign {
    display: inline-block;
    border: 1px solid color-mix(in srgb, var(--st), transparent 55%);
    border-radius: 7px;
    padding: 3px 8px;
    background: color-mix(in srgb, var(--st) 14%, #111215);
    color: color-mix(in srgb, var(--st) 35%, #f4f4f5);
    font-size: 11.5px;
    letter-spacing: .02em;
}

.mx-who { display: flex; flex-direction: column; gap: 1px; line-height: 1.25; }
.mx-who b { font-size: 12.5px; font-weight: 650; }
.mx-who small, .mx-at { color: #a1a1aa; font-size: 11px; }
.mx-at { font-size: 12px; text-align: right; }
.mx-state { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; }
.mx-state i { width: 7px; height: 7px; border-radius: 50%; background: var(--st); box-shadow: 0 0 0 3px color-mix(in srgb, var(--st), transparent 78%); }

.mx__foot {
    display: grid;
    flex: none;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    min-height: 54px;
    padding: 0 12px 0 8px;
    border-top: 1px solid #161618;
    background: #060708;
}

.mx-me { display: flex; align-items: center; gap: 10px; padding: 4px; }

.mx-me__pic {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid #2a2a2f;
    border-radius: 50%;
    background: #131315;
    color: #a1a1aa;
    font-weight: 700;
}

.mx-me__txt { display: flex; flex-direction: column; gap: 1px; line-height: 1.25; }
.mx-me__txt small { color: #a1a1aa; font-size: 11px; }
.mx-live { display: flex; gap: 6px; }

.mx-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 26px;
    border: 1px solid #1c1c1f;
    border-radius: 999px;
    padding: 0 10px;
    background: #0a0a0b;
    color: #a1a1aa;
    font-size: 11.5px;
    font-weight: 600;
}

.mx-chip b { color: #f4f4f5; font-weight: 650; }
.mx-chip--link i { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .14); }
.mx-clock { display: flex; flex-direction: column; align-items: flex-end; justify-self: end; line-height: 1.2; }
.mx-clock b { font-size: 15px; letter-spacing: -.01em; }
.mx-clock span { color: #a1a1aa; font-size: 11px; }
