:root {
    --bg: #f3f6f8;
    --panel: #ffffff;
    --ink: #13202a;
    --muted: #657481;
    --dark: #101820;
    --dark-2: #17232e;
    --line: #dfe8ee;
    --brand: #28c7b7;
    --brand-dark: #08766c;
    --warn: #f3b43f;
    --danger: #e84b4b;
    --ok: #20b894;
    --shadow: 0 18px 55px rgba(16, 24, 32, .10);
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

body {
    margin: 0;
    font-family: "Manrope", "Segoe UI", Arial, sans-serif;
    background: var(--bg);
    color: var(--ink);
}

/* Горный мастер: рабочая доска комплексов */
.mining-master-screen {
    --mm-page: #edf3f7;
    --mm-panel: #ffffff;
    --mm-panel-soft: #f7fafc;
    --mm-ink: #13202a;
    --mm-muted: #667584;
    --mm-line: #d7e3eb;
    --mm-shadow: 0 18px 45px rgba(15, 27, 38, .09);
    --mm-green: #2f8d53;
    --mm-yellow: #d6a400;
    --mm-blue: #2f9bd6;
    --mm-red: #df2f2b;
    --mm-gray: #95a0a5;
    --mm-tile-w: 82px;
    --mm-tile-h: 58px;
    --mm-tile-font: 34px;
    --mm-exc-font: 32px;
    --mm-complex-gap: 12px;
    --mm-complex-pad: 13px;
    --mm-complex-min-h: 140px;
    --mm-complex-card-min: 276px;
    --mm-complex-title: 20px;
    --mm-badge-font: 12px;
    overflow-x: hidden;
    background: var(--mm-page);
}

.mining-master-screen.mm-night {
    --mm-page: #07111a;
    --mm-panel: #101b26;
    --mm-panel-soft: #0c1620;
    --mm-ink: #e5edf3;
    --mm-muted: #93a4b4;
    --mm-line: #2f4355;
    --mm-shadow: 0 18px 48px rgba(0, 0, 0, .34);
    background: var(--mm-page);
    color: var(--mm-ink);
}

.mining-master-screen.mm-night .app-header {
    background: linear-gradient(135deg, #07111a 0%, #0b1b28 100%);
}

.admin-employees-header.mining-master-work-header .topline {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    align-items: center;
    min-height: auto;
}

.admin-employees-header.mining-master-work-header .admin-user-pill {
    display: none;
}

.admin-employees-header.mining-master-work-header .mining-master-nav {
    position: static;
    display: flex;
    flex: 1 1 760px;
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: none;
    margin-left: auto;
    transform: none;
}

.admin-employees-header.mining-master-work-header .nav-pill {
    min-width: 88px;
}

.admin-employees-header.mining-master-work-header .nav-pill.is-active {
    background: #1b7da8;
    border-color: #1b7da8;
    color: #ffffff;
}

.mm-mobile-tab,
.mm-mobile-only-panel {
    display: none;
}

.mining-master-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: end;
    margin-top: 14px;
}

.mm-shift-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.mm-shift-actions form,
.mm-shift-form {
    margin: 0;
}

.mm-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    margin: 0;
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 10px 16px;
    font-weight: 900;
    cursor: pointer;
}

.mm-action-button.secondary {
    border-color: #c9d8e1;
    background: #edf4f7;
    color: #7b8a96;
}

.mm-action-button.primary {
    border-color: #1b7da8;
    background: #1b7da8;
    color: #ffffff;
}

.mm-action-button.danger {
    border-color: rgba(223, 47, 43, .45);
    background: #fff7f6;
    color: #b42320;
}

.mm-action-button:disabled {
    cursor: not-allowed;
    opacity: .48;
}

.mining-master-app {
    display: grid;
    gap: 14px;
    color: var(--mm-ink);
}

.mining-master-app > .message {
    position: fixed;
    right: 18px;
    bottom: 14px;
    z-index: 1200;
    width: min(460px, calc(100vw - 36px));
    margin: 0;
    box-shadow: 0 18px 42px rgba(15, 27, 38, .18);
    pointer-events: none;
}

.mining-master-screen.mm-night .mining-master-app > .message {
    box-shadow: 0 18px 42px rgba(0, 0, 0, .42);
}

.mm-hidden-form {
    display: none;
}

.mm-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(130px, .18fr)) minmax(360px, 1fr);
    gap: 12px;
}

.mm-metric,
.mm-search-card,
.mm-card {
    border: 1px solid var(--mm-line);
    border-radius: 8px;
    background: var(--mm-panel);
    box-shadow: var(--mm-shadow);
}

.mm-metric {
    min-height: 76px;
    padding: 15px 16px;
    border-left: 5px solid var(--mm-gray);
}

.mm-metric.metric-volume {
    border-left-color: var(--mm-green);
}

.mm-metric.metric-trips {
    border-left-color: var(--mm-blue);
}

.mm-metric.metric-active {
    border-left-color: #8d63dc;
}

.mm-metric.metric-warning {
    border-left-color: var(--mm-yellow);
}

.mm-metric span,
.mm-metric small,
.mm-section-head p,
.mm-complex-title span,
.mm-complex-title small,
.mm-search-head span,
.mm-shift-status-grid span,
.mm-chart-notes span {
    color: var(--mm-muted);
}

.mm-metric span,
.mm-metric small {
    display: block;
    font-size: 12px;
    font-weight: 800;
}

.mm-metric small {
    display: none;
}

.mm-metric strong {
    display: block;
    margin: 7px 0 3px;
    color: var(--mm-ink);
    font-size: 32px;
    line-height: 1;
}

.mm-search-card {
    display: grid;
    grid-template-columns: minmax(120px, .55fr) minmax(180px, .75fr) auto;
    gap: 12px;
    align-items: center;
    padding: 15px 16px;
}

.mm-search-head {
    display: grid;
    gap: 3px;
}

.mm-search-card input {
    width: 100%;
    min-height: 44px;
    margin: 0;
    border-color: var(--mm-line);
    background: var(--mm-panel-soft);
    color: var(--mm-ink);
}

.mm-filter-pills {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.mm-filter-pills button {
    min-height: 36px;
    width: auto;
    margin: 0;
    border: 1px solid var(--mm-line);
    border-radius: 9px;
    background: var(--mm-panel-soft);
    color: var(--mm-ink);
    font-size: 13px;
    font-weight: 850;
}

.mm-filter-pills button.is-active {
    background: #1b7da8;
    border-color: #1b7da8;
    color: #ffffff;
}

.mm-tab-panel[hidden] {
    display: none;
}

.mm-desktop-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
    gap: 14px;
    align-items: start;
}

.mm-side-stack {
    position: sticky;
    top: 12px;
    display: grid;
    gap: 14px;
    align-content: start;
    max-height: calc(100dvh - 24px);
    overflow: auto;
    padding-right: 2px;
    scrollbar-gutter: stable;
}

.mm-desktop-companion {
    min-height: 0;
}

.mm-card {
    padding: 18px;
}

.mm-section-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    margin-bottom: 8px;
}

.mm-section-head h2,
.mm-equipment-zone h3,
.mm-dashboard-side h2,
.mm-shift-card h2 {
    margin: 0;
}

.mm-section-head p {
    display: none;
}

.mm-search-head span {
    display: none;
}

.mm-mode-pill,
.mm-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    min-height: 28px;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 900;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mm-mode-pill {
    background: #fff2d7;
    color: #825300;
}

.mm-complex-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--mm-complex-card-min, 250px)), 1fr));
    gap: var(--mm-complex-gap);
}

.mm-complex-card {
    position: relative;
    display: block;
    min-height: var(--mm-complex-min-h);
    min-width: 0;
    padding: var(--mm-complex-pad);
    overflow: hidden;
    border: 2px solid var(--mm-line);
    border-radius: 8px;
    background: var(--mm-panel);
    transition: border-color .15s ease, background .15s ease, transform .15s ease;
}

.mm-complex-card::before {
    content: "";
    position: absolute;
    right: 10px;
    bottom: 7px;
    z-index: 0;
    width: clamp(92px, 34%, 158px);
    height: clamp(58px, 40%, 106px);
    background-image: var(--exc-icon);
    background-repeat: no-repeat;
    background-position: right bottom;
    background-size: contain;
    opacity: .12;
    pointer-events: none;
}

.mm-complex-card > * {
    position: relative;
    z-index: 1;
}

.mm-complex-card::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 0;
    width: 7px;
    background: var(--mm-complex-accent, transparent);
    opacity: .88;
    pointer-events: none;
}

.mm-complex-number {
    position: absolute;
    top: 7px;
    left: 8px;
    right: auto;
    z-index: 2;
    display: grid;
    place-items: center;
    min-width: 58px;
    height: 30px;
    padding: 0 9px;
    border: 1px solid rgba(89, 104, 115, .24);
    border-radius: 8px;
    background: rgba(255, 255, 255, .78);
    color: #253744;
    font-size: 16px;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 5px 12px rgba(15, 27, 38, .08);
}

.mm-complex-release-form {
    position: absolute;
    top: 7px;
    left: auto;
    right: 8px;
    z-index: 3;
    margin: 0;
}

.mm-icon-danger-button {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    min-height: 30px;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(223, 47, 43, .42);
    border-radius: 8px;
    background: rgba(253, 228, 225, .94);
    color: #a22220;
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
}

.mm-icon-danger-button:hover,
.mm-icon-danger-button:focus-visible {
    background: #df2f2b;
    color: #ffffff;
}

.mm-night .mm-complex-number {
    background: rgba(14, 24, 34, .78);
    border-color: rgba(132, 152, 168, .28);
    color: #e8f0f5;
}

.mm-complex-card.state-danger {
    --mm-complex-accent: var(--mm-red);
    border-color: var(--mm-red);
    background: rgba(223, 47, 43, .15);
    box-shadow: inset 0 0 0 1px rgba(223, 47, 43, .14), 0 10px 24px rgba(223, 47, 43, .10);
}

.mm-complex-card.state-warning {
    --mm-complex-accent: var(--mm-yellow);
    border-color: var(--mm-yellow);
    background: rgba(214, 164, 0, .18);
    box-shadow: inset 0 0 0 1px rgba(214, 164, 0, .16), 0 10px 24px rgba(214, 164, 0, .09);
}

.mm-complex-card.state-neutral {
    --mm-complex-accent: var(--mm-gray);
    border-color: rgba(149, 160, 165, .72);
    background: rgba(149, 160, 165, .12);
}

.mm-complex-card.state-normal {
    --mm-complex-accent: var(--mm-green);
    border-color: rgba(47, 141, 83, .58);
    background: rgba(47, 141, 83, .045);
}

.mm-night .mm-complex-card.state-danger {
    background: rgba(223, 47, 43, .20);
    box-shadow: inset 0 0 0 1px rgba(255, 120, 120, .16), 0 10px 28px rgba(0, 0, 0, .22);
}

.mm-night .mm-complex-card.state-warning {
    background: rgba(214, 164, 0, .20);
    box-shadow: inset 0 0 0 1px rgba(255, 215, 90, .16), 0 10px 28px rgba(0, 0, 0, .22);
}

.mm-night .mm-complex-card.state-neutral {
    background: rgba(149, 160, 165, .13);
}

.mm-night .mm-complex-card.state-normal {
    background: rgba(47, 141, 83, .10);
}

.mm-complexes-panel.is-fit-1 {
    --mm-tile-w: 74px;
    --mm-tile-h: 52px;
    --mm-tile-font: 30px;
    --mm-exc-font: 29px;
    --mm-complex-gap: 10px;
    --mm-complex-pad: 11px;
    --mm-complex-min-h: 126px;
    --mm-complex-title: 18px;
    --mm-badge-font: 11px;
    --mm-complex-card-min: 248px;
}

.mm-complexes-panel.is-fit-2 {
    --mm-tile-w: 66px;
    --mm-tile-h: 46px;
    --mm-tile-font: 27px;
    --mm-exc-font: 26px;
    --mm-complex-gap: 8px;
    --mm-complex-pad: 9px;
    --mm-complex-min-h: 112px;
    --mm-complex-title: 16px;
    --mm-badge-font: 10px;
    --mm-complex-card-min: 220px;
}

.mm-complexes-panel.is-fit-3 {
    --mm-tile-w: 58px;
    --mm-tile-h: 40px;
    --mm-tile-font: 24px;
    --mm-exc-font: 23px;
    --mm-complex-gap: 6px;
    --mm-complex-pad: 7px;
    --mm-complex-min-h: 96px;
    --mm-complex-title: 15px;
    --mm-badge-font: 10px;
    --mm-complex-card-min: 194px;
}

.mm-complexes-panel.is-fit-4 {
    --mm-tile-w: 50px;
    --mm-tile-h: 35px;
    --mm-tile-font: 21px;
    --mm-exc-font: 21px;
    --mm-complex-gap: 5px;
    --mm-complex-pad: 6px;
    --mm-complex-min-h: 84px;
    --mm-complex-title: 14px;
    --mm-badge-font: 9px;
    --mm-complex-card-min: 170px;
}

.mm-complex-card.is-drop-target,
.mm-garage-zone.is-drop-target {
    border-color: #1b7da8;
    background: rgba(27, 125, 168, .10);
    transform: translateY(-1px);
}

.mm-complex-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: var(--mm-complex-gap);
    align-items: center;
    margin-bottom: var(--mm-complex-gap);
    padding-right: 48px;
}

.mm-complex-title {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.mm-complex-title h3 {
    margin: 0;
    overflow: hidden;
    color: var(--mm-ink);
    font-size: var(--mm-complex-title);
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mm-complex-title span,
.mm-complex-title small {
    overflow: hidden;
    font-size: 12px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mm-status-badge.status-green {
    background: #e2f5e9;
    color: #146c36;
}

.mm-status-badge.status-yellow {
    background: #fff4cc;
    color: #755100;
}

.mm-status-badge.status-blue {
    background: #e1f2fb;
    color: #176d99;
}

.mm-status-badge.status-red {
    background: #fde4e1;
    color: #a22220;
}

.mm-status-badge.status-gray {
    background: #eef2f4;
    color: #596873;
}

.mm-complex-card .mm-truck-row {
    display: grid;
    grid-template-columns: repeat(3, var(--mm-tile-w));
    justify-content: start;
    gap: calc(var(--mm-complex-gap) - 5px);
    align-content: start;
    align-items: start;
    min-height: calc(var(--mm-complex-min-h) - (var(--mm-complex-pad) * 2));
    overflow: hidden;
    padding: 36px 1px 2px;
}

.mm-zone-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.mm-truck-row.garage {
    flex: 1;
}

.mm-equipment-tile {
    box-sizing: border-box;
    position: relative;
    display: inline-grid;
    place-items: center;
    width: var(--mm-tile-w);
    height: var(--mm-tile-h);
    min-width: var(--mm-tile-w);
    margin: 0;
    overflow: hidden;
    border: 2px solid var(--mm-line);
    border-radius: 8px;
    background: #ffffff;
    color: #2e3d48;
    box-shadow: 0 7px 14px rgba(15, 27, 38, .08);
    cursor: default;
}

.mm-night .mm-equipment-tile {
    background: #0e1822;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .28);
}

.mm-equipment-tile[data-mm-draggable="true"] {
    cursor: grab;
    touch-action: none;
    user-select: none;
}

.mm-equipment-tile[data-mm-draggable="true"]:active {
    cursor: grabbing;
}

.mm-equipment-tile.is-dragging {
    opacity: .55;
}

.mm-complex-card.is-dragging {
    opacity: .62;
}

.mm-drag-ghost {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1300;
    opacity: .92;
    pointer-events: none;
    transform: translate(-9999px, -9999px);
}

.mm-complex-card.mm-drag-ghost {
    width: var(--mm-tile-w) !important;
    height: var(--mm-tile-h) !important;
    min-height: 0;
    padding: 0;
}

.mm-complex-card.mm-drag-ghost .mm-complex-release-form,
.mm-complex-card.mm-drag-ghost .mm-truck-row {
    display: none;
}

.mm-equipment-tile img {
    position: absolute;
    inset: -4px 3px 0;
    width: calc(100% - 6px);
    height: calc(100% + 6px);
    object-fit: contain;
    opacity: .96;
    pointer-events: none;
}

.mm-equipment-tile strong {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    color: #2e3d48;
    font-size: var(--mm-tile-font);
    font-weight: 900;
    line-height: 1;
    text-align: center;
    text-shadow:
        -1px 0 rgba(250, 252, 247, .78),
        0 1px rgba(250, 252, 247, .78),
        1px 0 rgba(250, 252, 247, .78),
        0 -1px rgba(250, 252, 247, .78),
        0 1px 2px rgba(15, 23, 31, .18);
}

.mm-excavator-tile strong {
    font-size: var(--mm-exc-font);
}

.mm-equipment-tile.status-green {
    border-color: var(--mm-green);
}

.mm-equipment-tile.status-yellow {
    border-color: var(--mm-yellow);
}

.mm-equipment-tile.status-blue {
    border-color: var(--mm-blue);
}

.mm-equipment-tile.status-red {
    border-color: var(--mm-red);
}

.mm-equipment-tile.status-gray {
    border-color: var(--mm-gray);
}

.mm-equipment-detail[hidden] {
    display: none;
}

.mm-equipment-detail {
    position: fixed;
    inset: 0;
    z-index: 1600;
    display: grid;
    place-items: center;
    padding: 18px;
}

.mm-equipment-detail-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 18, 28, .42);
}

.mm-equipment-detail-panel {
    position: relative;
    z-index: 1;
    width: min(520px, calc(100vw - 28px));
    max-height: calc(100dvh - 36px);
    overflow: auto;
    padding: 18px;
    border: 1px solid var(--mm-line);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(10, 18, 28, .28);
}

.mm-night .mm-equipment-detail-panel {
    border-color: rgba(129, 154, 181, .28);
    background: #101a25;
    color: #edf5ff;
}

.mm-detail-close {
    position: absolute;
    top: 10px;
    right: 10px;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(185, 28, 28, .28);
    border-radius: 10px;
    background: #fff1f1;
    color: #b91c1c;
    font-size: 0;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
}

.mm-detail-close::before,
.mm-detail-close::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 3px;
    border-radius: 999px;
    background: currentColor;
}

.mm-detail-close::before {
    transform: rotate(45deg);
}

.mm-detail-close::after {
    transform: rotate(-45deg);
}

.mm-night .mm-detail-close {
    background: rgba(185, 28, 28, .16);
    color: #ffb4b4;
}

.mm-detail-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding-right: 38px;
}

.mm-detail-icon {
    width: 112px;
    height: 78px;
    min-width: 112px;
    cursor: default;
}

.mm-detail-icon strong {
    font-size: 44px;
}

.mm-detail-head span {
    display: block;
    margin-bottom: 3px;
    color: var(--mm-muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.mm-detail-head h2 {
    margin: 0;
    color: var(--mm-ink);
    font-size: 26px;
    line-height: 1.05;
}

.mm-night .mm-detail-head h2 {
    color: #f3f8ff;
}

.mm-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.mm-detail-tags mark,
.mm-detail-tags small {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
}

.mm-detail-tags mark {
    background: rgba(37, 137, 176, .14);
    color: var(--mm-blue);
}

.mm-detail-tags small {
    background: rgba(100, 116, 139, .12);
    color: var(--mm-muted);
}

.mm-night .mm-detail-tags mark {
    background: rgba(76, 173, 218, .2);
    color: #8fd5f2;
}

.mm-night .mm-detail-tags small {
    background: rgba(148, 163, 184, .16);
    color: #bdc9d8;
}

.mm-detail-employee[hidden] {
    display: none;
}

.mm-detail-employee {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    margin-top: 16px;
    padding: 12px;
    border: 1px solid rgba(37, 137, 176, .2);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(37, 137, 176, .1), rgba(35, 132, 91, .08));
}

.mm-night .mm-detail-employee {
    border-color: rgba(76, 173, 218, .25);
    background: linear-gradient(135deg, rgba(76, 173, 218, .14), rgba(72, 184, 123, .1));
}

.mm-detail-employee-photo {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, .9);
    border-radius: 16px;
    background: #dbe7ef;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .16);
}

.mm-night .mm-detail-employee-photo {
    border-color: rgba(237, 245, 255, .28);
    background: #243242;
}

.mm-detail-employee-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mm-detail-employee-photo span {
    color: var(--mm-ink);
    font-size: 20px;
    font-weight: 900;
}

.mm-night .mm-detail-employee-photo span {
    color: #edf5ff;
}

.mm-detail-employee-info {
    min-width: 0;
}

.mm-detail-employee-info span {
    display: block;
    margin-bottom: 3px;
    color: var(--mm-muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.mm-detail-employee-info strong {
    display: block;
    overflow: hidden;
    color: var(--mm-ink);
    font-size: 17px;
    font-weight: 900;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mm-night .mm-detail-employee-info strong {
    color: #f3f8ff;
}

.mm-detail-employee-info a {
    display: inline-flex;
    margin-top: 5px;
    color: var(--mm-blue);
    font-size: 15px;
    font-weight: 900;
    text-decoration: none;
}

.mm-detail-employee-info a[aria-disabled="true"] {
    color: var(--mm-muted);
    pointer-events: none;
}

.mm-night .mm-detail-employee-info a {
    color: #8fd5f2;
}

.mm-detail-list {
    display: grid;
    grid-template-columns: minmax(92px, .65fr) minmax(0, 1fr);
    gap: 8px 12px;
    margin: 16px 0 0;
}

.mm-detail-list dt,
.mm-detail-list dd {
    min-height: 34px;
    margin: 0;
    padding: 8px 0;
    border-top: 1px solid rgba(207, 220, 230, .72);
}

.mm-detail-list dt {
    color: var(--mm-muted);
    font-size: 12px;
    font-weight: 800;
}

.mm-detail-list dd {
    color: var(--mm-ink);
    font-size: 15px;
    font-weight: 900;
    text-align: right;
}

.mm-night .mm-detail-list dt,
.mm-night .mm-detail-list dd {
    border-top-color: rgba(129, 154, 181, .18);
}

.mm-night .mm-detail-list dd {
    color: #edf5ff;
}

.mm-empty-inline {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 9px 12px;
    border: 1px dashed var(--mm-line);
    border-radius: 8px;
    color: var(--mm-muted);
    font-size: 13px;
    font-weight: 800;
}

.mm-garage-card .mm-section-head {
    margin-bottom: 8px;
}

.mm-garage-release-form {
    flex: 0 0 auto;
    margin: 0;
}

.mm-release-all-button {
    width: auto;
    min-height: 34px;
    margin: 0;
    padding: 8px 12px;
    border: 1px solid rgba(223, 47, 43, .34);
    border-radius: 8px;
    background: #fff7f6;
    color: #a22220;
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
}

.mm-release-all-button:hover,
.mm-release-all-button:focus-visible {
    background: #df2f2b;
    color: #ffffff;
}

.mm-garage-zone {
    display: flex;
    gap: 12px;
    align-items: center;
    min-height: 70px;
    margin-top: 0;
    padding: 10px 12px;
    border: 1px solid var(--mm-line);
    border-radius: 8px;
    background: var(--mm-panel-soft);
}

.mm-side-stack .mm-garage-zone {
    display: grid;
    grid-template-rows: auto minmax(86px, .35fr) auto minmax(0, 1fr);
    align-items: stretch;
    min-height: min(58dvh, 520px);
}

.mm-side-stack .mm-truck-row.garage {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(74px, 1fr));
    min-height: 0;
    max-height: min(52dvh, 470px);
    overflow: auto;
    align-content: start;
    padding-right: 2px;
    scrollbar-gutter: stable;
}

.mm-garage-title {
    min-width: 66px;
    color: var(--mm-ink);
    font-size: 16px;
    font-weight: 900;
}

.mm-equipment-zone {
    border: 1px solid var(--mm-line);
    border-left: 5px solid var(--mm-gray);
    border-radius: 8px;
    background: var(--mm-panel-soft);
}

.zone-ok {
    border-left-color: var(--mm-green);
}

.zone-warn {
    border-left-color: var(--mm-yellow);
}

.zone-active {
    border-left-color: var(--mm-blue);
}

.zone-danger {
    border-left-color: var(--mm-red);
}

.zone-neutral {
    border-left-color: var(--mm-gray);
}

.mm-equipment-zones {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.mm-equipment-zone {
    display: grid;
    align-content: start;
    gap: 12px;
    min-height: 190px;
    padding: 14px;
}

.mm-equipment-zone h3 {
    font-size: 16px;
}

.mm-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 330px);
    gap: 14px;
}

.mm-chart-summary {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 20px;
    align-items: center;
    margin-bottom: 18px;
}

.mm-donut {
    display: grid;
    place-items: center;
    width: 152px;
    height: 152px;
    border: 22px solid #d7efe5;
    border-top-color: var(--mm-green);
    border-right-color: var(--mm-blue);
    border-radius: 50%;
}

.mm-donut span {
    color: var(--mm-ink);
    font-size: 34px;
    font-weight: 900;
    line-height: 1;
}

.mm-donut small {
    color: var(--mm-muted);
    font-size: 12px;
    font-weight: 900;
}

.mm-chart-notes {
    display: grid;
    gap: 6px;
}

.mm-chart-notes strong {
    font-size: 34px;
}

.mm-bars {
    display: grid;
    gap: 10px;
}

.mm-bar-row {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr) 88px;
    gap: 10px;
    align-items: center;
}

.mm-bar-row span,
.mm-bar-row strong {
    font-size: 13px;
    font-weight: 900;
}

.mm-bar-row strong {
    text-align: right;
}

.mm-bar-track {
    height: 16px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--mm-panel-soft);
}

.mm-bar-track i {
    display: block;
    height: 100%;
    min-width: 8px;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--mm-green), var(--mm-blue));
}

.mm-dashboard-side {
    display: grid;
    gap: 10px;
    align-content: start;
}

.mm-dashboard-side a {
    display: flex;
    align-items: center;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid var(--mm-line);
    border-radius: 8px;
    background: var(--mm-panel-soft);
    color: var(--mm-ink);
    text-decoration: none;
}

.mm-shift-status-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.mm-shift-status-grid div {
    display: grid;
    gap: 6px;
    padding: 14px;
    border: 1px solid var(--mm-line);
    border-radius: 8px;
    background: var(--mm-panel-soft);
}

.mm-shift-status-grid strong {
    overflow: hidden;
    color: var(--mm-ink);
    font-size: 20px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mm-equipment-tile.is-filtered-out {
    display: none;
}

.mining-master-app.is-observer .mm-complexes-panel {
    outline: 2px dashed rgba(214, 164, 0, .45);
    outline-offset: 4px;
}

.mm-active-excavator-rail {
    display: none;
}

.mm-dispatcher-shell {
    display: none;
}

@media (min-width: 1041px) {
    body.mining-master-screen > .mining-master-work-header,
    body.mining-master-screen > .mining-master-app {
        display: none !important;
    }

    body.mining-master-screen {
        display: block;
        margin: 0;
        background: #071015;
        overflow: hidden;
    }

    body.mining-master-screen > .mm-dispatcher-shell {
        display: block;
    }

    .mm-dispatcher-shell .dispatcher-board {
        --truck-garage-columns: 3;
        grid-template-columns: var(--gd-excavator-garage-width) minmax(0, 1fr) var(--truck-garage-width);
        grid-template-rows: clamp(108px, 11vh, 126px) minmax(0, 1fr);
        gap: 10px;
    }

    .mm-dispatcher-shell .dispatcher-topbar {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .mm-dispatcher-shell .dispatcher-left {
        grid-column: 1;
        grid-row: 2;
        display: block;
        min-height: 0;
        overflow: hidden;
    }

    .mm-dispatcher-shell .dispatcher-excavator-garage {
        height: 100%;
        min-height: 0;
        padding: 0;
        overflow: hidden;
        border: 0;
        background: transparent;
    }

    .mm-dispatcher-shell .dispatcher-excavators {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: repeat(12, var(--gd-equipment-slot-h));
        grid-auto-rows: var(--gd-equipment-slot-h);
        gap: var(--gd-equipment-slot-gap);
        height: 100%;
        overflow: hidden;
    }

    .mm-dispatcher-shell .dispatcher-equipment-tile {
        width: 100%;
        height: auto;
        min-height: 0;
    }

    .mm-dispatcher-shell .dispatcher-complexes {
        grid-column: 2;
        grid-row: 2;
        min-height: 0;
        overflow: hidden;
    }

    .mm-dispatcher-shell .dispatcher-zone-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-template-rows: repeat(3, minmax(0, 1fr));
        gap: 10px;
        width: 100%;
        height: 100%;
        min-height: 0;
        overflow: hidden;
    }

    .mm-dispatcher-shell .dispatcher-complex-card {
        min-height: 0;
    }

    .mm-dispatcher-shell .dispatcher-complex-card .complex-assigned-trucks {
        position: absolute;
        right: 16px;
        bottom: clamp(31px, 3.4vh, 40px);
        left: 16px;
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        align-content: flex-start;
        min-height: 0;
        max-height: 42%;
        overflow: hidden;
    }

    .mm-dispatcher-shell .dispatcher-complex-card .dispatcher-truck-tile {
        flex: 0 0 var(--gd-truck-slot-w);
        width: var(--gd-truck-slot-w);
        height: var(--gd-truck-slot-h);
        min-height: 0;
    }

    .mm-dispatcher-shell .dispatcher-right {
        grid-column: 3;
        grid-row: 2;
        min-height: 0;
        overflow: hidden;
    }

    .mm-dispatcher-shell .dispatcher-truck-garage {
        height: 100%;
        min-height: 0;
        padding: 6px 6px 6px 8px;
    }

    .mm-dispatcher-shell .dispatcher-trucks {
        display: grid;
        grid-template-columns: repeat(var(--truck-garage-columns), var(--gd-truck-slot-w));
        grid-auto-rows: var(--gd-truck-slot-h);
        gap: var(--gd-truck-slot-gap);
        height: 100%;
        overflow-y: auto;
        overflow-x: hidden;
        padding-right: 2px;
    }

    .mm-dispatcher-shell .dispatcher-truck-tile {
        width: 100%;
        height: auto;
        min-height: 0;
    }

    .mm-dispatcher-search {
        width: 100%;
        min-height: 28px;
        margin: 0;
        padding: 5px 8px;
        border: 1px solid var(--gd-line);
        border-radius: 3px;
        background: var(--gd-panel-soft);
        color: var(--gd-ink);
        font: inherit;
        font-size: 13px;
        font-weight: 800;
    }

    .mm-dispatcher-shell .mm-dispatcher-shift-form {
        margin: 0;
    }

    .mm-dispatcher-shell .mm-shift-top-button {
        min-width: 74px;
        width: auto;
        padding: 0 10px;
        text-transform: uppercase;
    }

    .mm-dispatcher-shell .mm-shift-top-button.is-ok {
        border-color: var(--gd-green);
        color: var(--gd-green);
    }

    .mm-dispatcher-shell .mm-shift-top-button.is-danger {
        border-color: var(--gd-red);
        color: var(--gd-red);
    }

    .dispatcher-inline-button {
        width: 100%;
        min-height: 28px;
        margin: 0;
        padding: 5px 8px;
        border: 1px solid var(--gd-line);
        border-radius: 3px;
        background: var(--gd-panel-soft);
        color: var(--gd-ink);
        font: inherit;
        font-size: 12px;
        font-weight: 900;
        line-height: 1;
        text-transform: uppercase;
    }

    .dispatcher-inline-button.is-ok {
        border-color: var(--gd-green);
        color: var(--gd-green);
    }

    .dispatcher-inline-button.is-danger {
        border-color: var(--gd-red);
        color: var(--gd-red);
    }
}

@media (max-width: 1040px) {
    .mm-dispatcher-shell {
        display: none !important;
    }
}

@media (min-width: 1041px) {
    html:has(body.mining-master-screen),
    body.mining-master-screen {
        height: 100dvh;
        min-height: 100dvh;
        overflow: hidden;
    }

    body.mining-master-screen {
        display: grid;
        grid-template-rows: auto minmax(0, 1fr);
    }

    .mm-complex-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .mining-master-app {
        grid-template-rows: auto minmax(0, 1fr);
        min-height: 0;
        overflow: hidden;
    }

    .mm-tab-panel.is-active {
        min-height: 0;
        overflow: hidden;
    }

    .mm-desktop-grid {
        height: 100%;
        min-height: 0;
    }

    .mm-complexes-panel,
    .mm-desktop-companion,
    .mm-garage-card {
        height: 100%;
        min-height: 0;
        overflow: hidden;
    }

    .mm-complexes-panel {
        display: grid;
        grid-template-rows: auto minmax(0, 1fr);
    }

    .mm-complex-grid {
        grid-auto-rows: minmax(0, 1fr);
        min-height: 0;
        overflow: hidden;
        align-content: start;
    }

    .mm-side-stack {
        position: static;
        display: grid;
        grid-template-rows: minmax(0, 1fr);
        height: 100%;
        max-height: none;
        overflow: hidden;
    }

    .mm-desktop-companion {
        display: grid;
        grid-template-rows: minmax(0, 1fr);
        height: 100%;
        min-height: 0;
    }

    .mm-garage-card {
        display: grid;
        grid-template-rows: auto minmax(0, 1fr);
        height: 100%;
        min-height: 0;
    }

    .mm-side-stack .mm-garage-zone {
        height: 100%;
        min-height: 0;
        overflow: hidden;
    }

    .mm-side-stack .mm-truck-row.garage {
        height: auto;
        max-height: none;
        overflow: auto;
    }

    .mining-master-screen {
        --gd-bg: #dce4e7;
        --gd-top: #eef3f4;
        --gd-panel: #f7faf9;
        --gd-panel-soft: #e9f0ee;
        --gd-ink: #162022;
        --gd-muted: #647277;
        --gd-line: #cdd7da;
        --gd-line-soft: #dde5e7;
        --gd-green: #198e55;
        --gd-green-soft: #dff5ea;
        --gd-yellow: #c88712;
        --gd-yellow-soft: #fff0c9;
        --gd-red: #d64a42;
        --gd-red-soft: #ffe2df;
        --gd-cyan: #168ba4;
        --gd-cyan-soft: #d9f2f7;
        --gd-gray-soft: #edf1f2;
        --gd-shadow: 0 14px 30px rgba(53, 70, 78, .18);
        --mm-page: var(--gd-bg);
        --mm-panel: var(--gd-panel);
        --mm-panel-soft: var(--gd-panel-soft);
        --mm-ink: var(--gd-ink);
        --mm-muted: var(--gd-muted);
        --mm-line: var(--gd-line);
        --mm-shadow: var(--gd-shadow);
        --mm-green: var(--gd-green);
        --mm-yellow: var(--gd-yellow);
        --mm-blue: var(--gd-cyan);
        --mm-red: var(--gd-red);
        --mm-gray: #8e9ea6;
        background: var(--gd-bg);
        color: var(--gd-ink);
        font-family: "Roboto Condensed", "Arial Narrow", "Segoe UI", Arial, sans-serif;
    }

    .mining-master-screen.mm-night {
        --gd-bg: #050b0f;
        --gd-top: #0b151b;
        --gd-panel: #10191f;
        --gd-panel-soft: #0b151b;
        --gd-ink: #edf5f7;
        --gd-muted: #8c9ca4;
        --gd-line: #23333c;
        --gd-line-soft: #18262e;
        --gd-green: #7bd319;
        --gd-green-soft: rgba(123, 211, 25, .14);
        --gd-yellow: #ffb21d;
        --gd-yellow-soft: rgba(255, 178, 29, .16);
        --gd-red: #ff524b;
        --gd-red-soft: rgba(255, 82, 75, .16);
        --gd-cyan: #2aa9d8;
        --gd-cyan-soft: rgba(42, 169, 216, .15);
        --gd-gray-soft: rgba(142, 158, 166, .12);
        --gd-shadow: 0 12px 30px rgba(0, 0, 0, .32);
    }

    .mining-master-work-header {
        background: var(--gd-top) !important;
        border-bottom: 1px solid var(--gd-line-soft);
        box-shadow: none;
    }

    .mining-master-screen.mm-night .app-header {
        background: var(--gd-top) !important;
    }

    .mining-master-work-header .header-inner.wide-shell {
        width: 100%;
        max-width: none;
        padding: 10px 16px 12px;
    }

    .admin-employees-header.mining-master-work-header .topline {
        display: grid;
        grid-template-columns: minmax(240px, 1fr) minmax(0, auto);
        gap: 12px;
        align-items: center;
        color: var(--gd-muted);
        font-size: 13px;
        font-weight: 800;
    }

    .admin-employees-header.mining-master-work-header .mining-master-nav {
        display: flex;
        flex: 0 1 auto;
        flex-wrap: nowrap;
        gap: 8px;
        justify-content: flex-end;
        overflow: hidden;
    }

    .admin-employees-header.mining-master-work-header .nav-pill {
        min-width: 0;
        min-height: 34px;
        padding: 7px 14px;
        border: 1px solid var(--gd-line);
        border-radius: 5px;
        background: var(--gd-panel-soft);
        color: var(--gd-ink);
        font-size: 13px;
        font-weight: 900;
        line-height: 1;
        box-shadow: none;
    }

    .admin-employees-header.mining-master-work-header .nav-pill.is-active,
    .mm-filter-pills button.is-active {
        border-color: var(--gd-cyan);
        background: var(--gd-cyan);
        color: #ffffff;
    }

    .mining-master-heading {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 16px;
        align-items: end;
        margin-top: 18px;
    }

    .mining-master-heading h1 {
        margin: 0;
        overflow: hidden;
        color: var(--gd-ink);
        font-size: 34px;
        font-weight: 900;
        line-height: 1;
        white-space: nowrap;
    }

    .mining-master-heading p {
        margin: 7px 0 0;
        overflow: hidden;
        color: var(--gd-muted);
        font-size: 14px;
        font-weight: 600;
        line-height: 1.1;
        white-space: nowrap;
    }

    .mm-action-button {
        min-height: 38px;
        border-radius: 6px;
        padding: 8px 18px;
        font-size: 14px;
        line-height: 1;
    }

    .mm-action-button.primary {
        border-color: var(--gd-cyan);
        background: var(--gd-cyan);
    }

    .mm-action-button.danger {
        border-color: rgba(214, 74, 66, .52);
        background: var(--gd-red-soft);
        color: var(--gd-red);
    }

    .mm-action-button.secondary {
        border-color: var(--gd-line);
        background: var(--gd-panel-soft);
        color: var(--gd-muted);
    }

    .mining-master-app.wide-page {
        width: 100%;
        max-width: none;
        padding: 12px 16px 14px;
    }

    .mm-metrics {
        grid-template-columns: repeat(4, minmax(112px, 172px)) minmax(360px, 1fr);
        gap: 10px;
    }

    .mm-metric,
    .mm-search-card,
    .mm-card,
    .mm-equipment-zone,
    .mm-dashboard-side a,
    .mm-shift-status-grid div {
        border: 1px solid var(--gd-line-soft);
        border-radius: 6px;
        background: var(--gd-panel);
        box-shadow: var(--gd-shadow);
    }

    .mm-metric {
        min-height: 68px;
        padding: 10px 12px;
        border-left-width: 4px;
    }

    .mm-metric span,
    .mm-metric small,
    .mm-search-head strong,
    .mm-section-head h2,
    .mm-garage-title,
    .mm-equipment-zone h3,
    .mm-dashboard-side h2,
    .mm-shift-card h2 {
        color: var(--gd-ink);
    }

    .mm-metric span {
        color: var(--gd-muted);
        font-size: 11px;
        line-height: 1.05;
        white-space: nowrap;
    }

    .mm-metric strong {
        margin: 6px 0 0;
        color: var(--gd-ink);
        font-size: 30px;
    }

    .mm-search-card {
        grid-template-columns: minmax(120px, .5fr) minmax(240px, .88fr) auto;
        gap: 10px;
        min-height: 68px;
        padding: 10px 14px;
    }

    .mm-search-card input {
        min-height: 40px;
        border: 1px solid var(--gd-line);
        border-radius: 6px;
        background: var(--gd-panel-soft);
        color: var(--gd-ink);
        font-family: inherit;
    }

    .mm-filter-pills {
        gap: 6px;
    }

    .mm-filter-pills button {
        min-height: 36px;
        border-color: var(--gd-line);
        border-radius: 5px;
        background: var(--gd-panel-soft);
        color: var(--gd-ink);
        font-family: inherit;
        font-size: 12px;
        line-height: 1;
    }

    .mm-desktop-grid {
        grid-template-columns: minmax(0, 2fr) minmax(310px, 1fr);
        gap: 12px;
    }

    .mm-card {
        padding: 14px;
    }

    .mm-section-head {
        min-height: 34px;
        margin-bottom: 8px;
    }

    .mm-section-head h2 {
        font-size: 24px;
        font-weight: 900;
        line-height: 1;
    }

    .mm-complex-grid {
        gap: 10px;
    }

    .mm-complex-card {
        border-radius: 6px;
        background: var(--gd-panel);
        box-shadow: none;
    }

    .mm-complex-card::after {
        display: none;
    }

    .mm-complex-card.state-danger {
        border-color: var(--gd-red);
        background: color-mix(in srgb, var(--gd-red-soft) 60%, var(--gd-panel));
        box-shadow: inset 0 0 0 1px rgba(214, 74, 66, .16);
    }

    .mm-complex-card.state-warning {
        border-color: var(--gd-yellow);
        background: color-mix(in srgb, var(--gd-yellow-soft) 60%, var(--gd-panel));
        box-shadow: inset 0 0 0 1px rgba(200, 135, 18, .16);
    }

    .mm-complex-card.state-normal {
        border-color: rgba(25, 142, 85, .78);
        background: color-mix(in srgb, var(--gd-green-soft) 54%, var(--gd-panel));
    }

    .mm-complex-card.state-neutral {
        border-color: rgba(142, 158, 166, .68);
        background: color-mix(in srgb, var(--gd-gray-soft) 70%, var(--gd-panel));
    }

    .mm-complex-number {
        top: 8px;
        left: 8px;
        min-width: 58px;
        height: 28px;
        border-color: var(--gd-line);
        border-radius: 5px;
        background: color-mix(in srgb, var(--gd-panel) 84%, transparent);
        color: var(--gd-ink);
        font-size: 15px;
        box-shadow: 0 8px 18px rgba(22, 32, 34, .08);
    }

    .mm-icon-danger-button {
        width: 28px;
        height: 28px;
        min-height: 28px;
        border-color: rgba(214, 74, 66, .52);
        border-radius: 6px;
        background: var(--gd-red-soft);
        color: var(--gd-red);
        font-size: 20px;
    }

    .mm-complex-card .mm-truck-row {
        gap: 7px;
        padding-top: 38px;
    }

    .mm-equipment-tile {
        border-width: 1px;
        border-radius: 5px;
        background: var(--gd-panel);
        box-shadow: 0 6px 14px rgba(22, 32, 34, .10);
    }

    .mm-equipment-tile.status-green {
        background: var(--gd-green-soft);
        border-color: var(--gd-green);
    }

    .mm-equipment-tile.status-yellow {
        background: var(--gd-yellow-soft);
        border-color: var(--gd-yellow);
    }

    .mm-equipment-tile.status-blue {
        background: var(--gd-cyan-soft);
        border-color: var(--gd-cyan);
    }

    .mm-equipment-tile.status-red {
        background: var(--gd-red-soft);
        border-color: var(--gd-red);
    }

    .mm-equipment-tile.status-gray {
        background: var(--gd-gray-soft);
        border-color: #8e9ea6;
    }

    .mm-equipment-tile strong {
        color: #26343a;
        text-shadow:
            -1px 0 rgba(247, 250, 249, .82),
            0 1px rgba(247, 250, 249, .82),
            1px 0 rgba(247, 250, 249, .82),
            0 -1px rgba(247, 250, 249, .82),
            0 1px 2px rgba(15, 23, 31, .18);
    }

    .mining-master-screen.mm-night .mm-equipment-tile strong {
        color: #edf5f7;
        text-shadow:
            -1px 0 rgba(5, 11, 15, .86),
            0 1px rgba(5, 11, 15, .86),
            1px 0 rgba(5, 11, 15, .86),
            0 -1px rgba(5, 11, 15, .86),
            0 1px 2px rgba(0, 0, 0, .42);
    }

    .mm-side-stack .mm-garage-zone {
        grid-template-rows: auto minmax(78px, .28fr) auto minmax(0, 1fr);
        border-color: var(--gd-line-soft);
        border-radius: 6px;
        background: var(--gd-panel-soft);
    }

    .mm-side-stack .mm-truck-row.garage {
        grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
        gap: 7px;
    }

    .mm-garage-title {
        font-size: 15px;
        line-height: 1;
    }

    .mm-release-all-button {
        min-height: 32px;
        border-color: rgba(214, 74, 66, .42);
        border-radius: 5px;
        background: var(--gd-red-soft);
        color: var(--gd-red);
        font-family: inherit;
        font-size: 12px;
        line-height: 1;
    }

    .mm-mode-pill,
    .mm-status-badge,
    .mm-empty-inline {
        border-radius: 5px;
        font-family: inherit;
    }

    .mm-equipment-detail-panel {
        border: 1px solid var(--gd-line);
        border-radius: 8px;
        background: var(--gd-panel);
        color: var(--gd-ink);
        box-shadow: var(--gd-shadow);
    }

    .mm-detail-head h2,
    .mm-detail-list dd,
    .mm-detail-employee-info strong {
        color: var(--gd-ink);
    }

    .mm-detail-head span,
    .mm-detail-list dt,
    .mm-detail-employee-info span {
        color: var(--gd-muted);
    }

    /* Mining master desktop: dispatcher workboard composition */
    .mining-master-screen.mm-night {
        background: #050b0f;
    }

    .mining-master-screen.mm-night .mining-master-work-header {
        background: #071015 !important;
        border-bottom: 1px solid #18262e;
    }

    .mining-master-screen.mm-night .mining-master-work-header .header-inner.wide-shell {
        padding: 10px 14px 8px;
    }

    .mining-master-screen.mm-night .admin-employees-header.mining-master-work-header .topline {
        grid-template-columns: minmax(270px, 1fr) minmax(0, auto);
        color: #8c9ca4;
    }

    .mining-master-screen.mm-night .admin-employees-header.mining-master-work-header .topline > span:first-child {
        text-transform: uppercase;
    }

    .mining-master-screen.mm-night .admin-employees-header.mining-master-work-header .nav-pill {
        min-height: 36px;
        border-color: #23333c;
        border-radius: 3px;
        background: #10191f;
        color: #aebbc0;
        text-transform: uppercase;
        letter-spacing: .02em;
    }

    .mining-master-screen.mm-night .admin-employees-header.mining-master-work-header .nav-pill.is-active {
        border-color: #7bd319;
        background: rgba(123, 211, 25, .08);
        color: #7bd319;
    }

    .mining-master-screen.mm-night .mining-master-heading {
        margin-top: 8px;
    }

    .mining-master-screen.mm-night .mining-master-heading h1 {
        color: #edf5f7;
        font-size: 28px;
        font-weight: 900;
        text-transform: uppercase;
    }

    .mining-master-screen.mm-night .mining-master-heading p {
        color: #8c9ca4;
        font-size: 13px;
    }

    .mining-master-screen.mm-night .mm-action-button {
        border-radius: 3px;
        text-transform: uppercase;
    }

    .mining-master-screen.mm-night .mm-action-button.primary {
        border-color: #7bd319;
        background: rgba(123, 211, 25, .10);
        color: #7bd319;
    }

    .mining-master-screen.mm-night .mm-action-button.danger {
        border-color: #ff524b;
        background: rgba(255, 82, 75, .10);
        color: #ff524b;
    }

    .mining-master-screen.mm-night .mining-master-app.wide-page {
        gap: 12px;
        padding: 0 10px 10px;
        background: #050b0f;
    }

    .mining-master-screen.mm-night .mm-metrics {
        grid-template-columns: repeat(4, minmax(120px, .55fr)) minmax(430px, 2fr);
        gap: 0;
        border-top: 1px solid #18262e;
        border-bottom: 1px solid #18262e;
        background: #071015;
    }

    .mining-master-screen.mm-night .mm-metric,
    .mining-master-screen.mm-night .mm-search-card {
        min-height: 58px;
        padding: 9px 12px;
        border: 0;
        border-left: 1px solid #18262e;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .mining-master-screen.mm-night .mm-metric:first-child {
        border-left: 0;
    }

    .mining-master-screen.mm-night .mm-metric span,
    .mining-master-screen.mm-night .mm-search-head strong {
        color: #8c9ca4;
        font-size: 11px;
        font-weight: 800;
    }

    .mining-master-screen.mm-night .mm-metric strong {
        margin-top: 3px;
        color: #edf5f7;
        font-size: 22px;
    }

    .mining-master-screen.mm-night .mm-metric.metric-active strong {
        color: #7bd319;
    }

    .mining-master-screen.mm-night .mm-metric.metric-warning strong {
        color: #ff524b;
    }

    .mining-master-screen.mm-night .mm-search-card input {
        min-height: 34px;
        border-color: #23333c;
        border-radius: 3px;
        background: #0b151b;
        color: #edf5f7;
    }

    .mining-master-screen.mm-night .mm-filter-pills button {
        min-height: 34px;
        border-color: #23333c;
        border-radius: 3px;
        background: #10191f;
        color: #aebbc0;
        text-transform: uppercase;
    }

    .mining-master-screen.mm-night .mm-filter-pills button.is-active {
        border-color: #7bd319;
        background: rgba(123, 211, 25, .08);
        color: #7bd319;
    }

    .mining-master-screen.mm-night .mm-desktop-grid {
        grid-template-columns: minmax(0, 1fr) 308px;
        gap: 10px;
        height: 100%;
    }

    .mining-master-screen.mm-night .mm-card {
        border: 1px solid #18262e;
        border-radius: 5px;
        background: #071015;
        box-shadow: none;
    }

    .mining-master-screen.mm-night .mm-complexes-panel {
        padding: 0;
        border: 0;
        background: transparent;
        outline: 0;
    }

    .mining-master-screen.mm-night .mm-complexes-panel > .mm-section-head {
        display: none;
    }

    .mining-master-screen.mm-night .mm-complex-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-auto-rows: minmax(0, 1fr);
        gap: 10px 12px;
        height: 100%;
    }

    .mining-master-screen.mm-night .mm-complex-card {
        min-height: 0;
        border-width: 2px;
        border-radius: 6px;
        background: #071015;
        box-shadow: inset 0 0 0 1px rgba(142, 158, 166, .14);
    }

    .mining-master-screen.mm-night .mm-complex-card::before {
        right: 16px;
        bottom: 12px;
        width: 34%;
        height: 34%;
        opacity: .06;
    }

    .mining-master-screen.mm-night .mm-complex-card.state-normal {
        border-color: #7bd319;
        background: linear-gradient(135deg, rgba(123, 211, 25, .07), rgba(7, 16, 21, .96) 58%);
    }

    .mining-master-screen.mm-night .mm-complex-card.state-warning {
        border-color: #ffb21d;
        background: linear-gradient(135deg, rgba(255, 178, 29, .13), rgba(7, 16, 21, .96) 58%);
    }

    .mining-master-screen.mm-night .mm-complex-card.state-danger {
        border-color: #ff524b;
        background: linear-gradient(135deg, rgba(255, 82, 75, .16), rgba(7, 16, 21, .96) 58%);
    }

    .mining-master-screen.mm-night .mm-complex-card.state-neutral {
        border-color: #23333c;
        background: #050b0f;
        opacity: .82;
    }

    .mining-master-screen.mm-night .mm-complex-number {
        top: 18px;
        left: 18px;
        min-width: 0;
        height: auto;
        padding: 0;
        border: 0;
        background: transparent;
        color: #edf5f7;
        font-size: 46px;
        font-weight: 900;
        line-height: .9;
        box-shadow: none;
        text-transform: uppercase;
    }

    .mining-master-screen.mm-night .mm-complex-card .mm-truck-row {
        grid-template-columns: repeat(4, var(--mm-tile-w));
        gap: 8px;
        min-height: 0;
        padding: 116px 16px 14px;
    }

    .mining-master-screen.mm-night .mm-icon-danger-button {
        top: auto;
        border-radius: 3px;
    }

    .mining-master-screen.mm-night .mm-equipment-tile {
        border: 3px solid #657780;
        border-radius: 5px;
        background: #10191f;
        box-shadow: none;
    }

    .mining-master-screen.mm-night .mm-equipment-tile img {
        opacity: .72;
    }

    .mining-master-screen.mm-night .mm-equipment-tile strong {
        color: #edf5f7;
        font-size: calc(var(--mm-tile-font) * .84);
    }

    .mining-master-screen.mm-night .mm-equipment-tile.status-green {
        border-color: #7bd319;
        background: rgba(123, 211, 25, .12);
    }

    .mining-master-screen.mm-night .mm-equipment-tile.status-yellow {
        border-color: #ffb21d;
        background: rgba(255, 178, 29, .16);
    }

    .mining-master-screen.mm-night .mm-equipment-tile.status-blue {
        border-color: #2aa9d8;
        background: rgba(42, 169, 216, .14);
    }

    .mining-master-screen.mm-night .mm-equipment-tile.status-red {
        border-color: #ff524b;
        background: rgba(255, 82, 75, .18);
    }

    .mining-master-screen.mm-night .mm-equipment-tile.status-gray {
        border-color: #657780;
        background: rgba(142, 158, 166, .09);
    }

    .mining-master-screen.mm-night .mm-side-stack,
    .mining-master-screen.mm-night .mm-desktop-companion,
    .mining-master-screen.mm-night .mm-garage-card {
        background: transparent;
    }

    .mining-master-screen.mm-night .mm-garage-card {
        padding: 10px;
        border-color: #18262e;
        border-radius: 5px;
        background: #071015;
    }

    .mining-master-screen.mm-night .mm-garage-card .mm-section-head {
        min-height: 28px;
        margin-bottom: 8px;
    }

    .mining-master-screen.mm-night .mm-garage-card .mm-section-head h2 {
        color: #edf5f7;
        font-size: 18px;
        text-transform: uppercase;
    }

    .mining-master-screen.mm-night .mm-release-all-button {
        border-color: #23333c;
        border-radius: 3px;
        background: #10191f;
        color: #aebbc0;
    }

    .mining-master-screen.mm-night .mm-garage-zone {
        gap: 8px;
        padding: 0;
        border: 0;
        background: transparent;
    }

    .mining-master-screen.mm-night .mm-garage-title {
        color: #8c9ca4;
        font-size: 12px;
        text-transform: uppercase;
    }

    .mining-master-screen.mm-night .mm-side-stack .mm-truck-row.garage {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        overflow-y: auto;
        overflow-x: hidden;
        scrollbar-color: #23333c transparent;
    }

    .mining-master-screen.mm-night .mm-side-stack .mm-truck-row.garage .mm-equipment-tile {
        width: 100%;
        min-width: 0;
        height: 68px;
    }

    .mining-master-screen.mm-night .mm-side-stack .mm-truck-row.garage .mm-equipment-tile strong {
        font-size: 26px;
    }
}

@media (min-width: 1041px) {
    body.mining-master-screen {
        display: block;
        background: #dce7ea;
    }

    body.mining-master-screen .mining-master-work-header,
    body.mining-master-screen .mm-metrics {
        display: none;
    }

    body.mining-master-screen .mining-master-app.wide-page {
        display: block;
        width: 100vw;
        height: 100vh;
        max-width: none;
        min-height: 0;
        margin: 0;
        padding: 6px;
        overflow: hidden;
        background: #dce7ea;
        font-family: "Roboto Condensed", "Arial Narrow", "Segoe UI", Arial, sans-serif;
    }

    body.mining-master-screen.mm-night .mining-master-app.wide-page {
        background: #071015;
    }

    body.mining-master-screen .mm-tab-panel.is-active[data-mm-panel="complexes"] {
        display: block;
        width: 100%;
        height: 100%;
        overflow: hidden;
    }

    body.mining-master-screen .mm-desktop-grid {
        display: grid;
        grid-template-columns: 94px minmax(0, 1fr) 300px;
        gap: 8px;
        width: 100%;
        height: 100%;
        min-height: 0;
        align-items: stretch;
    }

    .mm-active-excavator-rail {
        display: grid;
        grid-auto-rows: 70px;
        gap: 8px;
        align-content: start;
        min-height: 0;
        padding: 0;
        overflow: hidden;
    }

    .mm-active-excavator-rail .mm-equipment-tile,
    .mm-rail-placeholder {
        width: 94px;
        height: 70px;
        min-width: 94px;
        border-width: 4px;
        border-radius: 6px;
        background: rgba(247, 250, 249, .82);
        box-shadow: none;
    }

    .mm-rail-placeholder {
        border: 1px solid rgba(149, 160, 165, .28);
        opacity: .48;
    }

    .mm-active-excavator-rail .mm-equipment-tile strong {
        position: absolute;
        top: 4px;
        left: 6px;
        width: auto;
        height: auto;
        color: #10191f;
        font-size: 20px;
        text-shadow: none;
    }

    .mm-active-excavator-rail .mm-equipment-tile img {
        inset: 8px 9px 10px;
        width: calc(100% - 18px);
        height: calc(100% - 18px);
        opacity: .62;
    }

    body.mining-master-screen .mm-complexes-panel {
        display: block;
        height: 100%;
        min-height: 0;
        padding: 0;
        overflow: hidden;
        border: 0;
        background: transparent;
        box-shadow: none;
        outline: 0;
    }

    body.mining-master-screen .mm-complexes-panel > .mm-section-head {
        display: none;
    }

    body.mining-master-screen .mm-complex-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-auto-rows: minmax(0, 1fr);
        gap: 10px 12px;
        width: 100%;
        height: 100%;
        min-height: 0;
        overflow: hidden;
    }

    body.mining-master-screen .mm-complex-card {
        position: relative;
        min-height: 0;
        padding: 0;
        overflow: hidden;
        border-width: 4px;
        border-radius: 7px;
        background: #f4f8f7;
        box-shadow:
            inset 0 0 0 1px rgba(255, 255, 255, .86),
            0 0 0 1px rgba(105, 123, 130, .14);
    }

    body.mining-master-screen .mm-complex-placeholder {
        min-height: 0;
        border: 4px solid rgba(149, 160, 165, .24);
        border-radius: 7px;
        background: #d4e0e4;
        box-shadow:
            inset 0 0 0 1px rgba(255, 255, 255, .50),
            0 0 0 1px rgba(105, 123, 130, .10);
        opacity: .72;
    }

    body.mining-master-screen .mm-complex-card::after {
        display: none;
    }

    body.mining-master-screen .mm-complex-card::before {
        right: 20px;
        bottom: 14px;
        width: 32%;
        height: 32%;
        opacity: .08;
    }

    body.mining-master-screen .mm-complex-card.state-danger {
        border-color: #e64d45;
        background: #fde0dc;
    }

    body.mining-master-screen .mm-complex-card.state-warning {
        border-color: #d68c00;
        background: #fff1c7;
    }

    body.mining-master-screen .mm-complex-card.state-normal {
        border-color: #168e54;
        background: #f7fbfa;
    }

    body.mining-master-screen .mm-complex-card.state-neutral {
        border-color: #b9c7cd;
        background: #d4e0e4;
        opacity: .86;
    }

    body.mining-master-screen .mm-complex-number {
        position: absolute;
        top: 24px;
        left: 20px;
        z-index: 2;
        display: block;
        min-width: 0;
        height: auto;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        color: #142023;
        font-size: 48px;
        font-weight: 900;
        line-height: .9;
        box-shadow: none;
        text-transform: uppercase;
    }

    body.mining-master-screen .mm-complex-card .mm-truck-row {
        position: absolute;
        right: 16px;
        bottom: 16px;
        left: 16px;
        display: grid;
        grid-template-columns: repeat(4, 86px);
        gap: 9px;
        min-height: 0;
        padding: 0;
        align-content: start;
        overflow: hidden;
    }

    body.mining-master-screen .mm-complex-card .mm-equipment-tile {
        width: 86px;
        height: 70px;
        min-width: 86px;
        border-width: 3px;
        border-radius: 6px;
        box-shadow: none;
    }

    body.mining-master-screen .mm-complex-card .mm-equipment-tile strong,
    body.mining-master-screen .mm-side-stack .mm-equipment-tile strong {
        position: absolute;
        top: 4px;
        left: 6px;
        width: auto;
        height: auto;
        color: #142023;
        font-size: 16px;
        line-height: 1;
        text-shadow: none;
    }

    body.mining-master-screen .mm-complex-card .mm-equipment-tile img,
    body.mining-master-screen .mm-side-stack .mm-equipment-tile img {
        inset: 11px 8px 11px;
        width: calc(100% - 16px);
        height: calc(100% - 22px);
        opacity: .74;
    }

    body.mining-master-screen .mm-icon-danger-button {
        display: none;
    }

    body.mining-master-screen .mm-side-stack {
        display: block;
        position: static;
        height: 100%;
        min-height: 0;
        overflow: hidden;
    }

    body.mining-master-screen .mm-desktop-companion,
    body.mining-master-screen .mm-garage-card {
        display: block;
        height: 100%;
        min-height: 0;
        overflow: hidden;
    }

    body.mining-master-screen .mm-garage-card {
        padding: 6px;
        border: 0;
        border-radius: 7px;
        background: #edf4f6;
        box-shadow: none;
    }

    body.mining-master-screen .mm-garage-card .mm-section-head,
    body.mining-master-screen .mm-garage-card .mm-garage-title:first-of-type,
    body.mining-master-screen .mm-garage-card .mm-equipment-row,
    body.mining-master-screen .mm-garage-card .mm-garage-title {
        display: none;
    }

    body.mining-master-screen .mm-garage-zone {
        display: block;
        height: 100%;
        min-height: 0;
        padding: 0;
        overflow: hidden;
        border: 0;
        background: transparent;
    }

    body.mining-master-screen .mm-side-stack .mm-truck-row.garage {
        display: grid;
        grid-template-columns: repeat(3, 86px);
        grid-auto-rows: 70px;
        gap: 8px;
        align-content: start;
        justify-content: center;
        height: 100%;
        max-height: none;
        min-height: 0;
        overflow-y: auto;
        overflow-x: hidden;
        padding: 0 6px 0 0;
        scrollbar-color: rgba(105, 123, 130, .48) transparent;
        scrollbar-width: thin;
    }

    body.mining-master-screen .mm-garage-card .mm-equipment-row {
        display: none !important;
    }

    body.mining-master-screen .mm-desktop-companion .mm-garage-zone > .mm-truck-row.garage.mm-equipment-row {
        display: none !important;
    }

    body.mining-master-screen .mm-side-stack .mm-truck-row.garage .mm-equipment-tile {
        width: 86px;
        height: 70px;
        min-width: 86px;
        border-width: 4px;
        border-radius: 5px;
        background: #f7faf9;
        box-shadow: none;
    }

    body.mining-master-screen .mm-equipment-tile.status-green {
        border-color: #168e54;
        background: #e6f4ec;
    }

    body.mining-master-screen .mm-equipment-tile.status-yellow {
        border-color: #d68c00;
        background: #fff0bf;
    }

    body.mining-master-screen .mm-equipment-tile.status-blue {
        border-color: #2aa9d8;
        background: #d8f0f8;
    }

    body.mining-master-screen .mm-equipment-tile.status-red {
        border-color: #e64d45;
        background: #fbd9d5;
    }

    body.mining-master-screen .mm-equipment-tile.status-gray {
        border-color: #657780;
        background: #f7faf9;
    }

    body.mining-master-screen.mm-night .mm-complex-card {
        background: #071015;
        box-shadow: inset 0 0 0 1px rgba(142, 158, 166, .16);
    }

    body.mining-master-screen.mm-night .mm-complex-card.state-danger {
        border-color: #ff524b;
        background: linear-gradient(135deg, rgba(255, 82, 75, .16), #071015 58%);
    }

    body.mining-master-screen.mm-night .mm-complex-card.state-warning {
        border-color: #ffb21d;
        background: linear-gradient(135deg, rgba(255, 178, 29, .16), #071015 58%);
    }

    body.mining-master-screen.mm-night .mm-complex-card.state-normal {
        border-color: #7bd319;
        background: linear-gradient(135deg, rgba(123, 211, 25, .08), #071015 58%);
    }

    body.mining-master-screen.mm-night .mm-complex-card.state-neutral {
        border-color: #23333c;
        background: #050b0f;
    }

    body.mining-master-screen.mm-night .mm-complex-placeholder {
        border-color: #23333c;
        background: #050b0f;
        box-shadow: inset 0 0 0 1px rgba(142, 158, 166, .12);
        opacity: .72;
    }

    body.mining-master-screen.mm-night .mm-complex-number,
    body.mining-master-screen.mm-night .mm-complex-card .mm-equipment-tile strong,
    body.mining-master-screen.mm-night .mm-side-stack .mm-equipment-tile strong,
    body.mining-master-screen.mm-night .mm-active-excavator-rail .mm-equipment-tile strong {
        color: #edf5f7;
    }

    body.mining-master-screen.mm-night .mm-garage-card {
        background: #071015;
    }

    body.mining-master-screen.mm-night .mm-active-excavator-rail .mm-equipment-tile,
    body.mining-master-screen.mm-night .mm-side-stack .mm-truck-row.garage .mm-equipment-tile {
        background: #10191f;
    }
}

@media (min-width: 1041px) {
    body.mining-master-screen {
        display: grid;
        grid-template-rows: clamp(150px, 16.5vh, 178px) minmax(0, 1fr);
        height: 100vh;
        min-height: 100vh;
        overflow: hidden;
        background: #dce7ea;
        font-family: "Roboto Condensed", "Arial Narrow", "Segoe UI", Arial, sans-serif;
    }

    body.mining-master-screen .mining-master-work-header {
        display: block;
        height: 100%;
        min-height: 0;
        overflow: hidden;
        padding: 0;
        border-bottom: 1px solid #cfdadd;
        background: #eef3f4 !important;
        color: #162022;
        box-shadow: none;
    }

    body.mining-master-screen.mm-night .mining-master-work-header {
        border-bottom-color: #18262e;
        background: #071015 !important;
        color: #edf5f7;
    }

    body.mining-master-screen .mining-master-work-header .header-inner.wide-shell {
        display: grid;
        grid-template-rows: 42px minmax(0, 1fr);
        width: 100%;
        height: 100%;
        max-width: none;
        padding: 10px 22px 12px;
    }

    body.mining-master-screen .admin-employees-header.mining-master-work-header .topline {
        display: grid;
        grid-template-columns: minmax(270px, 1fr) auto;
        gap: 12px;
        align-items: center;
        min-height: 0;
        color: #647277;
        font-size: 13px;
        font-weight: 700;
    }

    body.mining-master-screen.mm-night .admin-employees-header.mining-master-work-header .topline {
        color: #8c9ca4;
    }

    body.mining-master-screen .admin-employees-header.mining-master-work-header .topline > span:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
        text-transform: none;
        white-space: nowrap;
    }

    body.mining-master-screen .admin-employees-header.mining-master-work-header .mining-master-nav {
        display: flex;
        flex: 0 1 auto;
        flex-wrap: nowrap;
        gap: 8px;
        justify-content: flex-end;
        max-width: none;
        overflow: hidden;
    }

    body.mining-master-screen .admin-employees-header.mining-master-work-header .nav-pill {
        min-width: 0;
        min-height: 36px;
        padding: 8px 14px;
        border: 1px solid #cdd7da;
        border-radius: 4px;
        background: #e9f0ee;
        color: #344247;
        font-size: 13px;
        font-weight: 900;
        line-height: 1;
        text-transform: uppercase;
        box-shadow: none;
    }

    body.mining-master-screen.mm-night .admin-employees-header.mining-master-work-header .nav-pill {
        border-color: #23333c;
        background: #10191f;
        color: #aebbc0;
    }

    body.mining-master-screen .admin-employees-header.mining-master-work-header .nav-pill.is-active {
        border-color: #198e55;
        background: rgba(25, 142, 85, .08);
        color: #198e55;
    }

    body.mining-master-screen.mm-night .admin-employees-header.mining-master-work-header .nav-pill.is-active {
        border-color: #7bd319;
        background: rgba(123, 211, 25, .08);
        color: #7bd319;
    }

    body.mining-master-screen .mining-master-heading {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 18px;
        align-items: end;
        min-height: 0;
        margin: 0;
    }

    body.mining-master-screen .mining-master-heading h1 {
        margin: 0;
        overflow: hidden;
        color: #162022;
        font-size: clamp(28px, 2.35vw, 42px);
        font-weight: 900;
        line-height: .95;
        text-transform: uppercase;
        white-space: nowrap;
    }

    body.mining-master-screen.mm-night .mining-master-heading h1 {
        color: #edf5f7;
    }

    body.mining-master-screen .mining-master-heading p {
        margin: 8px 0 0;
        overflow: hidden;
        color: #647277;
        font-size: 15px;
        font-weight: 500;
        line-height: 1.08;
        white-space: nowrap;
    }

    body.mining-master-screen.mm-night .mining-master-heading p {
        color: #8c9ca4;
    }

    body.mining-master-screen .mm-action-button {
        min-height: 38px;
        border-radius: 4px;
        padding: 9px 18px;
        font-size: 14px;
        font-weight: 900;
        line-height: 1;
        text-transform: uppercase;
    }

    body.mining-master-screen .mm-action-button.primary {
        border-color: #198e55;
        background: rgba(25, 142, 85, .10);
        color: #198e55;
    }

    body.mining-master-screen.mm-night .mm-action-button.primary {
        border-color: #7bd319;
        background: rgba(123, 211, 25, .10);
        color: #7bd319;
    }

    body.mining-master-screen .mm-action-button.danger {
        border-color: #d64a42;
        background: rgba(214, 74, 66, .10);
        color: #d64a42;
    }

    body.mining-master-screen.mm-night .mm-action-button.danger {
        border-color: #ff524b;
        background: rgba(255, 82, 75, .10);
        color: #ff524b;
    }

    body.mining-master-screen .mining-master-app.wide-page {
        display: grid;
        grid-template-rows: clamp(58px, 6.2vh, 70px) minmax(0, 1fr);
        gap: 10px;
        width: 100vw;
        height: 100%;
        max-width: none;
        min-height: 0;
        margin: 0;
        padding: 0 10px 10px;
        overflow: hidden;
        background: #dce7ea;
    }

    body.mining-master-screen.mm-night .mining-master-app.wide-page {
        background: #071015;
    }

    body.mining-master-screen .mm-metrics {
        display: grid !important;
        grid-template-columns: repeat(4, minmax(118px, .58fr)) minmax(430px, 2fr);
        gap: 0;
        min-height: 0;
        border-top: 1px solid #cfdadd;
        border-bottom: 1px solid #cfdadd;
        background: #eef3f4;
    }

    body.mining-master-screen.mm-night .mm-metrics {
        border-top-color: #18262e;
        border-bottom-color: #18262e;
        background: #071015;
    }

    body.mining-master-screen .mm-metric,
    body.mining-master-screen .mm-search-card {
        min-height: 0;
        padding: 9px 12px;
        border: 0;
        border-left: 1px solid #cfdadd;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    body.mining-master-screen.mm-night .mm-metric,
    body.mining-master-screen.mm-night .mm-search-card {
        border-left-color: #18262e;
    }

    body.mining-master-screen .mm-metric:first-child {
        border-left: 0;
    }

    body.mining-master-screen .mm-metric span,
    body.mining-master-screen .mm-search-head strong {
        color: #647277;
        font-size: 11px;
        font-weight: 800;
        line-height: 1;
    }

    body.mining-master-screen.mm-night .mm-metric span,
    body.mining-master-screen.mm-night .mm-search-head strong {
        color: #8c9ca4;
    }

    body.mining-master-screen .mm-metric strong {
        margin: 5px 0 0;
        color: #162022;
        font-size: 23px;
        line-height: 1;
    }

    body.mining-master-screen.mm-night .mm-metric strong {
        color: #edf5f7;
    }

    body.mining-master-screen .mm-metric.metric-active strong {
        color: #198e55;
    }

    body.mining-master-screen.mm-night .mm-metric.metric-active strong {
        color: #7bd319;
    }

    body.mining-master-screen .mm-metric.metric-warning strong {
        color: #d64a42;
    }

    body.mining-master-screen.mm-night .mm-metric.metric-warning strong {
        color: #ff524b;
    }

    body.mining-master-screen .mm-search-card {
        display: grid;
        grid-template-columns: minmax(120px, .4fr) minmax(220px, .95fr) auto;
        gap: 10px;
        align-items: center;
    }

    body.mining-master-screen .mm-search-card input {
        min-height: 36px;
        border: 1px solid #cdd7da;
        border-radius: 4px;
        background: #e9f0ee;
        color: #162022;
    }

    body.mining-master-screen.mm-night .mm-search-card input {
        border-color: #23333c;
        background: #0b151b;
        color: #edf5f7;
    }

    body.mining-master-screen .mm-filter-pills button {
        min-height: 36px;
        border-color: #cdd7da;
        border-radius: 4px;
        background: #e9f0ee;
        color: #344247;
        text-transform: uppercase;
    }

    body.mining-master-screen.mm-night .mm-filter-pills button {
        border-color: #23333c;
        background: #10191f;
        color: #aebbc0;
    }

    body.mining-master-screen .mm-filter-pills button.is-active {
        border-color: #198e55;
        background: rgba(25, 142, 85, .08);
        color: #198e55;
    }

    body.mining-master-screen.mm-night .mm-filter-pills button.is-active {
        border-color: #7bd319;
        background: rgba(123, 211, 25, .08);
        color: #7bd319;
    }
}

@media (max-width: 1180px) {
    .mm-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mm-search-card {
        grid-column: 1 / -1;
    }

    .mm-desktop-grid,
    .mm-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .mm-equipment-zones {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .wide-shell,
    .wide-page {
        width: min(100% - 24px, 100%);
    }

    .admin-employees-header.mining-master-work-header .topline {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
        justify-items: stretch;
    }

    .admin-employees-header.mining-master-work-header .topline > span:first-child {
        justify-self: center;
        text-align: center;
    }

    .admin-employees-header.mining-master-work-header .mining-master-nav {
        position: static;
        display: flex;
        flex-wrap: nowrap;
        flex: 0 0 auto;
        gap: 8px;
        align-content: start;
        justify-content: stretch;
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        padding-bottom: 2px;
        margin-left: 0;
        scrollbar-width: none;
        transform: none;
    }

    .admin-employees-header.mining-master-work-header .mining-master-nav::-webkit-scrollbar {
        display: none;
    }

    .mm-mobile-tab {
        display: inline-flex;
    }

    .admin-employees-header.mining-master-work-header .nav-pill {
        flex: 0 0 auto;
        width: auto;
        min-width: 88px;
        min-height: 36px;
        padding: 8px 10px;
    }

    .mining-master-heading {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .mm-shift-actions {
        display: grid;
        grid-template-columns: 1fr;
        justify-content: stretch;
    }

    .mm-shift-actions form,
    .mm-shift-actions button {
        width: 100%;
    }

    .mm-complex-grid,
    .mm-equipment-zones,
    .mm-shift-status-grid {
        grid-template-columns: 1fr;
    }

    .mm-metrics {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 8px;
    }

    .mm-metric {
        min-height: 68px;
        padding: 10px 9px;
    }

    .mm-metric span {
        min-height: 24px;
        font-size: 10px;
        line-height: 1.15;
    }

    .mm-metric strong {
        margin: 3px 0 0;
        font-size: 24px;
    }

    .mm-metric small {
        display: none;
    }

    .mm-search-card {
        grid-template-columns: 1fr;
        grid-column: 1 / -1;
        padding: 12px;
    }

    .mm-filter-pills {
        justify-content: stretch;
    }

    .mm-filter-pills button {
        flex: 1;
    }

    .mm-card {
        padding: 13px;
    }

    .mm-side-stack,
    .mm-desktop-companion {
        display: none;
    }

    .mm-mobile-only-panel.is-active {
        display: block;
    }

    .mm-complex-head {
        grid-template-columns: minmax(0, 1fr) auto;
        padding-right: 48px;
    }

    .mm-status-badge {
        grid-column: 1 / -1;
        justify-self: start;
    }

    .mm-equipment-tile {
        width: 78px;
        height: 56px;
        min-width: 78px;
    }

    .mm-equipment-tile strong {
        font-size: 32px;
    }

    .mm-equipment-detail {
        align-items: end;
        padding: 0;
    }

    .mm-equipment-detail-panel {
        width: 100%;
        max-height: 82dvh;
        padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
        border-right: 0;
        border-bottom: 0;
        border-left: 0;
        border-radius: 18px 18px 0 0;
    }

    .mm-detail-head {
        grid-template-columns: 96px minmax(0, 1fr);
        gap: 12px;
    }

    .mm-detail-icon {
        width: 96px;
        height: 68px;
        min-width: 96px;
    }

    .mm-detail-icon strong {
        font-size: 38px;
    }

    .mm-detail-head h2 {
        font-size: 22px;
    }

    .mm-garage-zone {
        display: grid;
    }

    .mm-mobile-only-panel .mm-garage-zone {
        min-height: calc(100dvh - 310px);
        align-items: stretch;
    }

    .mm-mobile-only-panel .mm-truck-row.garage {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
        max-height: calc(100dvh - 360px);
        overflow: auto;
        align-content: start;
        padding-right: 2px;
        scrollbar-gutter: stable;
    }

    .mm-chart-summary,
    .mm-bar-row {
        grid-template-columns: 1fr;
    }

    .mm-bar-row strong {
        text-align: left;
    }
}

body.modal-open {
    overflow: hidden;
}

a {
    color: var(--brand-dark);
    font-weight: 700;
}

.app-confirm-modal[hidden] {
    display: none;
}

.app-confirm-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(16, 24, 32, .56);
    backdrop-filter: blur(4px);
}

.app-confirm-dialog {
    position: relative;
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 16px;
    width: min(480px, calc(100vw - 32px));
    padding: 24px;
    border: 1px solid rgba(16, 24, 32, .08);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 28px 90px rgba(16, 24, 32, .26);
}

.app-confirm-close,
.app-confirm-accent {
    display: none;
}

.app-confirm-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: #fff0ed;
    color: var(--danger);
    font-size: 24px;
    font-weight: 900;
}

.app-confirm-content h2 {
    margin: 2px 0 8px;
    font-size: 24px;
}

.app-confirm-content p {
    margin: 0;
    color: var(--muted);
    line-height: 1.45;
}

.app-confirm-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 8px;
}

.app-confirm-actions button {
    width: auto;
    min-width: 130px;
    padding: 12px 16px;
    border-radius: 14px;
}

.app-confirm-actions .secondary {
    background: #e9f0f4;
    color: var(--ink);
}

.app-confirm-actions .danger {
    background: var(--danger);
    color: #ffffff;
}

.shared-shift-dialog {
    position: relative;
}

.shared-shift-accent {
    display: none;
}

.shared-shift-close {
    position: absolute;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.shared-shift-login-field,
.shared-shift-device-choice {
    display: grid;
}

.shared-shift-login-field input,
.shared-shift-phone-shell,
.shared-shift-device-option {
    width: 100%;
}

.shared-shift-device-option {
    cursor: pointer;
}

.shared-shift-device-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.shared-shift-device-option span {
    pointer-events: none;
}

#app-confirm-modal.dispatcher-day {
    --gd-panel: #f7faf9;
    --gd-panel-soft: #e9f0ee;
    --gd-ink: #162022;
    --gd-muted: #647277;
    --gd-line: #cdd7da;
    --gd-line-soft: #dde5e7;
    --gd-green: #198e55;
    --gd-green-soft: #dff5ea;
    --gd-red: #d64a42;
    --gd-red-soft: #ffe2df;
    --gd-shadow: 0 14px 30px rgba(53, 70, 78, .18);
}

#app-confirm-modal.dispatcher-night {
    --gd-panel: #10191f;
    --gd-panel-soft: #0b151b;
    --gd-ink: #edf5f7;
    --gd-muted: #8c9ca4;
    --gd-line: #23333c;
    --gd-line-soft: #18262e;
    --gd-green: #7bd319;
    --gd-green-soft: rgba(123, 211, 25, .14);
    --gd-red: #ff524b;
    --gd-red-soft: rgba(255, 82, 75, .16);
    --gd-shadow: 0 12px 30px rgba(0, 0, 0, .32);
}

.dispatcher-shell .app-confirm-modal,
#app-confirm-modal.dispatcher-day,
#app-confirm-modal.dispatcher-night {
    background: rgba(2, 8, 12, .58);
    backdrop-filter: blur(3px);
}

.dispatcher-shell .app-confirm-dialog:not(.shared-shift-dialog),
#app-confirm-modal.dispatcher-day .app-confirm-dialog,
#app-confirm-modal.dispatcher-night .app-confirm-dialog {
    grid-template-columns: 8px 44px minmax(0, 1fr);
    gap: 0 12px;
    align-items: start;
    width: min(540px, calc(100vw - 40px));
    min-height: 0;
    padding: 16px 22px;
    border: 1px solid var(--gd-line);
    border-radius: 8px;
    background: var(--gd-panel);
    color: var(--gd-ink);
    font-family: "Roboto Condensed", "Arial Narrow", "Segoe UI", Arial, sans-serif;
    letter-spacing: 0;
    box-shadow: 0 26px 80px rgba(0, 0, 0, .42);
}

.dispatcher-shell.dispatcher-day .app-confirm-modal,
#app-confirm-modal.dispatcher-day {
    background: rgba(222, 232, 235, .72);
}

.dispatcher-shell.dispatcher-night .app-confirm-modal,
#app-confirm-modal.dispatcher-night {
    background: rgba(2, 8, 12, .68);
}

.dispatcher-shell .app-confirm-close,
#app-confirm-modal.dispatcher-day .app-confirm-close,
#app-confirm-modal.dispatcher-night .app-confirm-close {
    position: absolute;
    top: 12px;
    right: 16px;
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--gd-muted);
    font-family: "Roboto Condensed", "Arial Narrow", "Segoe UI", Arial, sans-serif;
    font-size: 30px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    transition: color .15s ease, text-shadow .15s ease, transform .15s ease;
}

.dispatcher-shell .app-confirm-close:hover,
.dispatcher-shell .app-confirm-close:focus-visible,
#app-confirm-modal.dispatcher-day .app-confirm-close:hover,
#app-confirm-modal.dispatcher-day .app-confirm-close:focus-visible,
#app-confirm-modal.dispatcher-night .app-confirm-close:hover,
#app-confirm-modal.dispatcher-night .app-confirm-close:focus-visible {
    color: var(--gd-ink);
    outline: none;
    text-shadow: 0 0 12px color-mix(in srgb, var(--gd-muted) 45%, transparent);
    transform: translateY(-1px);
}

.dispatcher-shell .app-confirm-accent,
#app-confirm-modal.dispatcher-day .app-confirm-accent,
#app-confirm-modal.dispatcher-night .app-confirm-accent {
    display: block;
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: start;
    width: 3px;
    height: 52px;
    margin-top: 2px;
    border-radius: 999px;
    background: var(--gd-red);
    box-shadow: 0 0 14px color-mix(in srgb, var(--gd-red) 28%, transparent);
}

.dispatcher-shell .app-confirm-icon,
#app-confirm-modal.dispatcher-day .app-confirm-icon,
#app-confirm-modal.dispatcher-night .app-confirm-icon {
    grid-column: 2;
    width: 44px;
    height: 44px;
    border: 1px solid color-mix(in srgb, var(--gd-red) 62%, var(--gd-line));
    border-radius: 8px;
    background: var(--gd-red-soft);
    color: var(--gd-red);
    font-size: 28px;
    font-weight: 900;
    line-height: 1;
    box-shadow: inset 0 0 18px color-mix(in srgb, var(--gd-red) 12%, transparent);
}

.dispatcher-shell .app-confirm-content,
#app-confirm-modal.dispatcher-day .app-confirm-content,
#app-confirm-modal.dispatcher-night .app-confirm-content {
    grid-column: 3;
    padding-right: 22px;
}

.dispatcher-shell .app-confirm-content h2,
#app-confirm-modal.dispatcher-day .app-confirm-content h2,
#app-confirm-modal.dispatcher-night .app-confirm-content h2 {
    margin: 0 0 8px;
    color: var(--gd-ink);
    font-size: 23px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
}

.dispatcher-shell .app-confirm-content p,
#app-confirm-modal.dispatcher-day .app-confirm-content p,
#app-confirm-modal.dispatcher-night .app-confirm-content p {
    color: var(--gd-muted);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.35;
}

.dispatcher-shell .shared-shift-login-field {
    color: var(--gd-muted);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.dispatcher-shell .shared-shift-device-choice {
    column-gap: 8px;
    row-gap: 4px;
    margin-top: 0;
}

.dispatcher-shell .shared-shift-device-choice legend {
    color: var(--gd-muted);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.dispatcher-shell .shared-shift-device-option {
    min-height: 40px;
    border: 1px solid var(--gd-line);
    border-radius: 5px;
    background: var(--gd-panel-soft);
    color: var(--gd-muted);
    font-family: "Roboto Condensed", "Arial Narrow", "Segoe UI", Arial, sans-serif;
    font-size: 15px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
}

.dispatcher-shell.dispatcher-day .shared-shift-device-option {
    background: #ffffff;
}

.dispatcher-shell .shared-shift-device-option:has(input:checked) {
    border-color: color-mix(in srgb, var(--gd-green) 78%, var(--gd-line));
    background: var(--gd-green-soft);
    color: var(--gd-green);
}

.dispatcher-shell .shared-shift-phone-shell {
    border-radius: 5px;
    background: var(--gd-panel-soft);
}

.dispatcher-shell.dispatcher-day .shared-shift-phone-shell {
    background: #ffffff;
}

.dispatcher-shell .shared-shift-login-field input {
    min-height: 54px;
    border: 1px solid var(--gd-line);
    border-radius: 5px;
    background: var(--gd-panel-soft);
    color: var(--gd-ink);
    font-family: "Roboto Condensed", "Arial Narrow", "Segoe UI", Arial, sans-serif;
    font-size: 22px;
    font-weight: 900;
}

.dispatcher-shell .shared-shift-login-field input:focus {
    border-color: var(--gd-green);
    outline: 0;
    box-shadow: 0 0 0 1px var(--gd-green);
}

.dispatcher-shell.dispatcher-day .shared-shift-login-field input {
    background: #ffffff;
}

.dispatcher-shell .shared-shift-login-field input::placeholder,
.dispatcher-shell .shared-shift-phone-hint {
    color: color-mix(in srgb, var(--gd-muted) 72%, transparent);
    font-size: 22px;
    font-weight: 900;
}

.dispatcher-shell .app-confirm-actions button,
#app-confirm-modal.dispatcher-day .app-confirm-actions button,
#app-confirm-modal.dispatcher-night .app-confirm-actions button {
    min-width: 112px;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid var(--gd-line);
    border-radius: 6px;
    font-family: "Roboto Condensed", "Arial Narrow", "Segoe UI", Arial, sans-serif;
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
}

.dispatcher-shell .app-confirm-actions,
#app-confirm-modal.dispatcher-day .app-confirm-actions,
#app-confirm-modal.dispatcher-night .app-confirm-actions {
    grid-column: 2 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 112px 160px;
    gap: 12px;
    align-items: center;
    margin-top: 28px;
}

.dispatcher-shell .app-confirm-actions .secondary,
#app-confirm-modal.dispatcher-day .app-confirm-actions .secondary,
#app-confirm-modal.dispatcher-night .app-confirm-actions .secondary {
    grid-column: 2;
}

.dispatcher-shell .app-confirm-actions .danger,
#app-confirm-modal.dispatcher-day .app-confirm-actions .danger,
#app-confirm-modal.dispatcher-night .app-confirm-actions .danger {
    grid-column: 3;
}

.dispatcher-shell .app-confirm-actions .secondary,
#app-confirm-modal.dispatcher-day .app-confirm-actions .secondary,
#app-confirm-modal.dispatcher-night .app-confirm-actions .secondary {
    border-color: var(--gd-red);
    background: var(--gd-red-soft);
    color: var(--gd-red);
}

.dispatcher-shell .app-confirm-actions .danger,
#app-confirm-modal.dispatcher-day .app-confirm-actions .danger,
#app-confirm-modal.dispatcher-night .app-confirm-actions .danger {
    border-color: var(--gd-green);
    background: var(--gd-green-soft);
    color: color-mix(in srgb, var(--gd-green) 70%, #101800);
}

.dispatcher-shell .app-confirm-actions button:hover,
.dispatcher-shell .app-confirm-actions button:focus-visible,
#app-confirm-modal.dispatcher-day .app-confirm-actions button:hover,
#app-confirm-modal.dispatcher-day .app-confirm-actions button:focus-visible,
#app-confirm-modal.dispatcher-night .app-confirm-actions button:hover,
#app-confirm-modal.dispatcher-night .app-confirm-actions button:focus-visible {
    outline: none;
    transform: translateY(-1px);
    box-shadow: 0 0 16px color-mix(in srgb, currentColor 22%, transparent);
}

#app-confirm-modal.is-shift-end-confirm.dispatcher-day .app-confirm-dialog,
#app-confirm-modal.is-shift-end-confirm.dispatcher-night .app-confirm-dialog {
    grid-template-columns: 10px minmax(0, 1fr);
    gap: 0 18px;
    width: min(540px, calc(100vw - 40px));
    padding: 22px 24px;
}

#app-confirm-modal.is-shift-end-confirm.dispatcher-day .app-confirm-icon,
#app-confirm-modal.is-shift-end-confirm.dispatcher-night .app-confirm-icon {
    display: none;
}

#app-confirm-modal.is-shift-end-confirm.dispatcher-day .app-confirm-accent,
#app-confirm-modal.is-shift-end-confirm.dispatcher-night .app-confirm-accent {
    grid-column: 1;
    grid-row: 1 / span 3;
    height: 58px;
    margin-top: 4px;
}

#app-confirm-modal.is-shift-end-confirm.dispatcher-day .app-confirm-content,
#app-confirm-modal.is-shift-end-confirm.dispatcher-night .app-confirm-content {
    grid-column: 2;
    padding-right: 36px;
}

#app-confirm-modal.is-shift-end-confirm.dispatcher-day .app-confirm-content h2,
#app-confirm-modal.is-shift-end-confirm.dispatcher-night .app-confirm-content h2 {
    margin: 0 0 10px;
    font-size: 23px;
    line-height: 1;
}

#app-confirm-modal.is-shift-end-confirm.dispatcher-day .app-confirm-content p,
#app-confirm-modal.is-shift-end-confirm.dispatcher-night .app-confirm-content p {
    max-width: 450px;
    font-size: 13px;
    line-height: 1.3;
}

.app-confirm-shift-summary {
    grid-column: 2;
    display: grid;
    gap: 10px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid color-mix(in srgb, var(--gd-line) 78%, transparent);
}

.app-confirm-shift-summary[hidden] {
    display: none;
}

.app-confirm-shift-summary h3 {
    margin: 0;
    color: var(--gd-muted);
    font-family: "Roboto Condensed", "Arial Narrow", "Segoe UI", Arial, sans-serif;
    font-size: 15px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
}

.app-confirm-shift-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border: 1px solid var(--gd-line);
    border-radius: 6px;
    background: color-mix(in srgb, var(--gd-panel-soft) 72%, transparent);
}

.app-confirm-shift-grid div {
    min-width: 0;
    padding: 12px 14px;
}

.app-confirm-shift-grid div + div {
    border-left: 1px solid color-mix(in srgb, var(--gd-line) 78%, transparent);
}

.app-confirm-shift-grid span {
    display: block;
    margin-bottom: 6px;
    color: var(--gd-muted);
    font-family: "Roboto Condensed", "Arial Narrow", "Segoe UI", Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
}

.app-confirm-shift-grid strong {
    display: block;
    overflow: hidden;
    color: var(--gd-ink);
    font-family: "Roboto Condensed", "Arial Narrow", "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#app-confirm-modal.is-shift-end-confirm.dispatcher-day .app-confirm-actions,
#app-confirm-modal.is-shift-end-confirm.dispatcher-night .app-confirm-actions {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) minmax(136px, 1fr);
    gap: 16px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid color-mix(in srgb, var(--gd-line) 78%, transparent);
}

#app-confirm-modal.is-shift-end-confirm.dispatcher-day .app-confirm-actions .secondary,
#app-confirm-modal.is-shift-end-confirm.dispatcher-day .app-confirm-actions .danger,
#app-confirm-modal.is-shift-end-confirm.dispatcher-night .app-confirm-actions .secondary,
#app-confirm-modal.is-shift-end-confirm.dispatcher-night .app-confirm-actions .danger {
    grid-column: auto;
    width: 100%;
    min-width: 0;
}

#app-confirm-modal.is-shift-end-confirm.dispatcher-day .app-confirm-actions button,
#app-confirm-modal.is-shift-end-confirm.dispatcher-night .app-confirm-actions button {
    min-height: 34px;
    font-size: 14px;
}

#app-confirm-modal.is-shift-end-confirm.dispatcher-day .app-confirm-actions .danger,
#app-confirm-modal.is-shift-end-confirm.dispatcher-night .app-confirm-actions .danger {
    background: linear-gradient(180deg, color-mix(in srgb, var(--gd-green) 76%, #ffffff) 0%, var(--gd-green) 100%);
    color: #111a08;
}

.dispatcher-shell [data-shared-shift-login-modal] .app-confirm-actions .danger {
    border-color: color-mix(in srgb, var(--gd-green) 78%, var(--gd-line));
    background: var(--gd-green-soft);
    color: var(--gd-green);
}

.dispatcher-shell [data-shared-shift-login-modal] {
    padding: 14px;
}

.dispatcher-shell .shared-shift-dialog {
    --shift-dialog-green: #75d313;
    --shift-dialog-red: #ef2e29;
    display: grid;
    grid-template-columns: 8px minmax(0, 1fr);
    gap: 0 10px;
    width: min(500px, calc(100vw - 40px));
    max-height: calc(100vh - 48px);
    overflow: hidden;
    padding: 16px 20px;
    border: 1px solid var(--gd-line);
    border-radius: 12px;
    background: var(--gd-panel);
    color: var(--gd-ink);
    font-family: "Roboto Condensed", "Arial Narrow", "Segoe UI", Arial, sans-serif;
    letter-spacing: 0;
    box-shadow: 0 28px 80px rgba(0, 0, 0, .36);
}

.dispatcher-shell.dispatcher-day .shared-shift-dialog {
    --gd-panel: #ffffff;
    --gd-panel-soft: #ffffff;
    --gd-ink: #152027;
    --gd-muted: #5f6973;
    --gd-line: #cbd3da;
    --gd-green: #55b319;
    --gd-green-soft: rgba(117, 211, 19, .12);
    --gd-red: #e8312d;
    --gd-red-soft: rgba(232, 49, 45, .08);
    box-shadow: 0 18px 60px rgba(30, 46, 58, .22);
}

.dispatcher-shell.dispatcher-night .shared-shift-dialog {
    --gd-panel: #08151d;
    --gd-panel-soft: rgba(8, 21, 29, .72);
    --gd-ink: #f2f7fa;
    --gd-muted: #a0adb8;
    --gd-line: #2b4450;
    --gd-green: #7bd319;
    --gd-green-soft: rgba(123, 211, 25, .14);
    --gd-red: #ff3e3a;
    --gd-red-soft: rgba(255, 62, 58, .11);
    background:
        radial-gradient(circle at 100% 0%, rgba(25, 102, 112, .18), transparent 32%),
        linear-gradient(135deg, #07121a 0%, #0b1d28 100%);
}

.dispatcher-shell .shared-shift-accent {
    display: block;
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 3px;
    height: 50px;
    margin-top: 2px;
    border-radius: 999px;
    background: var(--gd-red);
    justify-self: center;
}

.dispatcher-shell .shared-shift-close {
    top: 12px;
    right: 14px;
    width: 24px;
    height: 24px;
    padding: 0;
    color: var(--gd-muted);
    font-size: 28px;
    font-weight: 300;
    line-height: 22px;
    transition: color .16s ease;
}

.dispatcher-shell .shared-shift-close:hover {
    color: var(--gd-red);
}

.dispatcher-shell .shared-shift-dialog .app-confirm-content {
    grid-column: 2;
    display: grid;
    gap: 0;
}

.dispatcher-shell .shared-shift-dialog .app-confirm-content h2 {
    margin: 0 30px 5px 0;
    color: var(--gd-ink);
    font-size: 21px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
}

.dispatcher-shell .shared-shift-dialog .app-confirm-content p {
    max-width: 330px;
    margin: 0 0 8px;
    color: var(--gd-muted);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.25;
}

.dispatcher-shell .shared-shift-login-field {
    gap: 4px;
    margin: 0 0 7px;
    color: var(--gd-muted);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .015em;
    text-transform: uppercase;
}

.dispatcher-shell .shared-shift-login-field small {
    color: var(--gd-muted);
    font-size: 10px;
    font-weight: 500;
    line-height: 1.25;
    text-transform: none;
}

.dispatcher-shell .shared-shift-phone-shell {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    min-height: 34px;
    border: 1px solid var(--gd-line);
    border-radius: 6px;
    background: var(--gd-panel-soft);
    overflow: hidden;
    transition: border-color .14s ease, background .14s ease, box-shadow .14s ease;
}

.dispatcher-shell .shared-shift-country-code {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-right: 1px solid var(--gd-line);
    color: var(--gd-ink);
    font-size: 16px;
    font-weight: 900;
    line-height: 1;
}

.dispatcher-shell .shared-shift-country-code span {
    display: none;
}

.dispatcher-shell .shared-shift-login-field input {
    min-height: 34px;
    border: 1px solid var(--gd-line);
    border-radius: 6px;
    background: var(--gd-panel-soft);
    color: var(--gd-ink);
    font-family: "Roboto Condensed", "Arial Narrow", "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: .035em;
    transition: border-color .14s ease, background .14s ease, box-shadow .14s ease;
}

.dispatcher-shell .shared-shift-phone-shell input {
    min-height: 0;
    border: 0;
    border-radius: 0;
    padding: 0 12px;
    background: transparent;
}

.dispatcher-shell .shared-shift-login-field > input {
    padding: 0 14px;
}

.dispatcher-shell .shared-shift-login-field input:focus {
    border-color: var(--gd-green);
    outline: 0;
    box-shadow: none;
}

.dispatcher-shell .shared-shift-phone-shell:focus-within {
    border-color: var(--gd-green);
    box-shadow: none;
}

.dispatcher-shell .shared-shift-login-field input::placeholder {
    color: color-mix(in srgb, var(--gd-muted) 78%, transparent);
    font-size: 16px;
    font-weight: 500;
    opacity: 1;
}

.dispatcher-shell .shared-shift-device-choice {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 8px;
    row-gap: 4px;
    margin: 0 0 8px;
    padding: 0;
    border: 0;
}

.dispatcher-shell .shared-shift-device-choice legend {
    grid-column: 1 / -1;
    margin: 0 0 2px;
    color: var(--gd-muted);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .015em;
    text-transform: uppercase;
}

.dispatcher-shell .shared-shift-device-option {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    border: 1px solid var(--gd-line);
    border-radius: 6px;
    background: var(--gd-panel-soft);
    color: var(--gd-muted);
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    transition: border-color .14s ease, background .14s ease, color .14s ease, transform .14s ease;
}

.dispatcher-shell .shared-shift-device-option:hover {
    border-color: color-mix(in srgb, var(--gd-green) 55%, var(--gd-line));
    background: color-mix(in srgb, var(--gd-green-soft) 65%, var(--gd-panel-soft));
    color: var(--gd-ink);
}

.dispatcher-shell .shared-shift-device-option:has(input:checked) {
    border-color: var(--gd-green);
    background: var(--gd-green-soft);
    color: var(--gd-green);
}

.dispatcher-shell .shared-shift-device-option:has(input:checked)::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -1px;
    width: 26px;
    height: 4px;
    transform: translateX(-50%);
    border-radius: 6px 6px 0 0;
    background: var(--gd-green);
}

.dispatcher-shell .shared-shift-dialog .app-confirm-actions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 110px 145px;
    gap: 10px;
    align-items: center;
    margin-top: 0;
    padding-top: 8px;
    border-top: 1px solid var(--gd-line);
}

.dispatcher-shell .shared-shift-dialog .app-confirm-actions button {
    min-width: 0;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 6px;
    font-family: "Roboto Condensed", "Arial Narrow", "Segoe UI", Arial, sans-serif;
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    transition: border-color .14s ease, background .14s ease, color .14s ease, transform .14s ease;
}

.dispatcher-shell .shared-shift-dialog .app-confirm-actions button:hover {
    transform: translateY(-1px);
}

.dispatcher-shell .shared-shift-dialog .app-confirm-actions .secondary {
    grid-column: 2;
    border: 1px solid var(--gd-red);
    background: var(--gd-red-soft);
    color: var(--gd-red);
}

.dispatcher-shell .shared-shift-dialog .app-confirm-actions .secondary:hover {
    background: color-mix(in srgb, var(--gd-red-soft) 74%, var(--gd-red) 16%);
    border-color: color-mix(in srgb, var(--gd-red) 80%, var(--gd-line));
}

.dispatcher-shell .shared-shift-dialog .app-confirm-actions .danger {
    grid-column: 3;
    border: 1px solid var(--gd-green);
    background: var(--gd-green-soft);
    color: var(--gd-green);
}

.dispatcher-shell .shared-shift-dialog .app-confirm-actions .danger:hover {
    background: color-mix(in srgb, var(--gd-green-soft) 70%, var(--gd-green) 16%);
    border-color: color-mix(in srgb, var(--gd-green) 82%, var(--gd-line));
}

@media (max-width: 760px) {
    .dispatcher-shell .shared-shift-dialog {
        grid-template-columns: 14px minmax(0, 1fr);
        width: min(100%, calc(100vw - 22px));
        padding: 18px 16px;
        gap: 0 14px;
    }

    .dispatcher-shell .shared-shift-accent {
        height: 90px;
    }

    .dispatcher-shell .shared-shift-close {
        top: 14px;
        right: 14px;
        width: 38px;
        height: 38px;
        font-size: 40px;
    }

    .dispatcher-shell .shared-shift-dialog .app-confirm-content h2 {
        margin-right: 44px;
        font-size: 28px;
    }

    .dispatcher-shell .shared-shift-dialog .app-confirm-content p {
        margin-bottom: 30px;
        font-size: 18px;
    }

    .dispatcher-shell .shared-shift-phone-shell {
        grid-template-columns: 96px minmax(0, 1fr);
        min-height: 64px;
    }

    .dispatcher-shell .shared-shift-country-code,
    .dispatcher-shell .shared-shift-login-field input,
    .dispatcher-shell .shared-shift-login-field input::placeholder {
        font-size: 24px;
    }

    .dispatcher-shell .shared-shift-phone-shell input,
    .dispatcher-shell .shared-shift-login-field > input {
        padding: 0 16px;
    }

    .dispatcher-shell .shared-shift-login-field {
        margin-bottom: 24px;
    }

    .dispatcher-shell .shared-shift-device-choice {
        gap: 12px;
        margin-bottom: 34px;
    }

    .dispatcher-shell .shared-shift-device-option {
        min-height: 58px;
        font-size: 20px;
    }

    .dispatcher-shell .shared-shift-dialog .app-confirm-actions {
        grid-template-columns: 1fr;
        gap: 12px;
        padding-top: 22px;
    }

    .dispatcher-shell .shared-shift-dialog .app-confirm-actions .secondary,
    .dispatcher-shell .shared-shift-dialog .app-confirm-actions .danger {
        grid-column: 1;
    }
}

@media (max-width: 760px) {
    .login-page.unified-login-screen {
        min-height: 100dvh;
        place-items: start center;
        padding: max(12px, env(safe-area-inset-top)) 10px max(14px, env(safe-area-inset-bottom));
        overflow: auto;
        overscroll-behavior: contain;
        background: #040b10;
    }

    .dispatcher-shell .unified-login-dialog {
        grid-template-columns: 4px minmax(0, 1fr);
        align-content: start;
        width: min(100%, 364px);
        max-height: none;
        min-height: auto;
        margin: 0 auto;
        padding: 13px 14px 14px 12px;
        gap: 0 12px;
        border-radius: 12px;
    }

    .dispatcher-shell .unified-login-dialog .shared-shift-accent {
        width: 4px;
        height: 42px;
        margin-top: 3px;
    }

    .dispatcher-shell .unified-login-dialog .app-confirm-content {
        gap: 0;
    }

    .dispatcher-shell .unified-login-dialog .app-confirm-content h2 {
        max-width: none;
        margin: 0 0 4px;
        font-size: clamp(24px, 6.4vw, 28px);
        line-height: .96;
    }

    .dispatcher-shell .unified-login-dialog .app-confirm-content p {
        max-width: 100%;
        margin: 0 0 10px;
        font-size: 13px;
        line-height: 1.15;
    }

    .dispatcher-shell .unified-login-dialog .shared-shift-login-field {
        margin-bottom: 8px;
        gap: 4px;
        font-size: 12px;
    }

    .dispatcher-shell .unified-login-dialog .shared-shift-login-field small {
        min-height: 13px;
        font-size: 11px;
        line-height: 1.15;
    }

    .dispatcher-shell .unified-login-dialog .shared-shift-phone-shell {
        grid-template-columns: 62px minmax(0, 1fr);
        width: 100%;
        min-height: 44px;
        border-radius: 6px;
    }

    .dispatcher-shell .unified-login-dialog .shared-shift-country-code,
    .dispatcher-shell .unified-login-dialog .shared-shift-login-field input,
    .dispatcher-shell .unified-login-dialog .shared-shift-login-field input::placeholder {
        font-size: clamp(18px, 5vw, 21px);
    }

    .dispatcher-shell .unified-login-dialog .shared-shift-country-code {
        padding-bottom: 2px;
    }

    .dispatcher-shell .unified-login-dialog .shared-shift-login-field input {
        width: 100%;
        min-width: 0;
        min-height: 44px;
        border-radius: 6px;
        font-weight: 700;
        letter-spacing: 0;
    }

    .dispatcher-shell .unified-login-dialog .shared-shift-phone-shell input,
    .dispatcher-shell .unified-login-dialog .shared-shift-login-field > input {
        padding: 0 14px;
    }

    .dispatcher-shell .unified-login-dialog .shared-shift-device-choice {
        gap: 8px;
        margin: 0 0 10px;
    }

    .dispatcher-shell .unified-login-dialog .shared-shift-device-choice legend {
        font-size: 12px;
    }

    .dispatcher-shell .unified-login-dialog .shared-shift-device-option {
        min-height: 42px;
        border-radius: 6px;
        font-size: clamp(15px, 4.4vw, 18px);
    }

    .dispatcher-shell .unified-login-dialog .app-confirm-actions {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        padding-top: 10px;
    }

    .dispatcher-shell .unified-login-dialog .app-confirm-actions .secondary,
    .dispatcher-shell .unified-login-dialog .app-confirm-actions .danger {
        grid-column: auto;
        width: 100%;
        min-height: 42px;
        border-radius: 6px;
        font-size: 15px;
    }

    .dispatcher-shell .unified-login-dialog .app-confirm-actions a {
        min-height: 42px;
        border-radius: 6px;
        font-size: 15px;
    }

    .login-page.unified-login-screen.is-login-keyboard-active {
        padding-top: max(8px, env(safe-area-inset-top));
    }

    .login-page.unified-login-screen.is-login-keyboard-active .unified-login-dialog {
        width: min(100%, 360px);
        padding: 10px 12px 10px 10px;
    }

    .login-page.unified-login-screen.is-login-keyboard-active .unified-login-dialog .shared-shift-accent {
        height: 34px;
    }

    .login-page.unified-login-screen.is-login-keyboard-active .unified-login-dialog .app-confirm-content h2 {
        font-size: clamp(22px, 6.2vw, 27px);
        white-space: nowrap;
    }

    .login-page.unified-login-screen.is-login-keyboard-active .unified-login-dialog .app-confirm-content p {
        display: none;
    }

    .login-page.unified-login-screen.is-login-keyboard-active .unified-login-dialog .shared-shift-login-field {
        margin-bottom: 7px;
    }

    .login-page.unified-login-screen.is-login-keyboard-active .unified-login-dialog .shared-shift-phone-shell,
    .login-page.unified-login-screen.is-login-keyboard-active .unified-login-dialog .shared-shift-login-field input {
        min-height: 42px;
    }

    .login-page.unified-login-screen.is-login-keyboard-active .unified-login-dialog .shared-shift-country-code,
    .login-page.unified-login-screen.is-login-keyboard-active .unified-login-dialog .shared-shift-login-field input,
    .login-page.unified-login-screen.is-login-keyboard-active .unified-login-dialog .shared-shift-login-field input::placeholder {
        font-size: clamp(18px, 5vw, 21px);
    }

    .login-page.unified-login-screen.is-login-keyboard-active .unified-login-dialog .shared-shift-device-option,
    .login-page.unified-login-screen.is-login-keyboard-active .unified-login-dialog .app-confirm-actions .secondary,
    .login-page.unified-login-screen.is-login-keyboard-active .unified-login-dialog .app-confirm-actions .danger,
    .login-page.unified-login-screen.is-login-keyboard-active .unified-login-dialog .app-confirm-actions a {
        min-height: 42px;
    }
}

@media (max-width: 380px), (max-height: 760px) {
    .dispatcher-shell .unified-login-dialog {
        padding: 10px 12px 10px 10px;
        gap: 0 12px;
    }

    .dispatcher-shell .unified-login-dialog .shared-shift-accent {
        height: 36px;
    }

    .dispatcher-shell .unified-login-dialog .app-confirm-content h2 {
        font-size: clamp(22px, 6.2vw, 27px);
    }

    .dispatcher-shell .unified-login-dialog .app-confirm-content p {
        margin-bottom: 8px;
        font-size: 12px;
        line-height: 1.15;
    }

    .dispatcher-shell .unified-login-dialog .shared-shift-login-field {
        margin-bottom: 7px;
    }

    .dispatcher-shell .unified-login-dialog .shared-shift-phone-shell,
    .dispatcher-shell .unified-login-dialog .shared-shift-login-field input {
        min-height: 42px;
    }

    .dispatcher-shell .unified-login-dialog .shared-shift-device-option,
    .dispatcher-shell .unified-login-dialog .app-confirm-actions .secondary,
    .dispatcher-shell .unified-login-dialog .app-confirm-actions .danger,
    .dispatcher-shell .unified-login-dialog .app-confirm-actions a {
        min-height: 42px;
    }
}

#app-confirm-modal.dispatcher-day .shared-shift-dialog,
#app-confirm-modal.dispatcher-night .shared-shift-dialog {
    display: grid;
    grid-template-columns: 10px minmax(0, 1fr);
    gap: 0 12px;
    width: min(540px, calc(100vw - 40px));
    max-height: calc(100vh - 72px);
    overflow: hidden;
    padding: 18px 24px;
}

#app-confirm-modal.dispatcher-day .shared-shift-accent,
#app-confirm-modal.dispatcher-night .shared-shift-accent {
    display: block;
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 3px;
    height: 58px;
    margin-top: 2px;
    justify-self: center;
}

#app-confirm-modal.dispatcher-day .shared-shift-close,
#app-confirm-modal.dispatcher-night .shared-shift-close {
    top: 12px;
    right: 16px;
    width: 26px;
    height: 26px;
    font-size: 30px;
    line-height: 24px;
}

#app-confirm-modal.dispatcher-day .shared-shift-dialog .app-confirm-content,
#app-confirm-modal.dispatcher-night .shared-shift-dialog .app-confirm-content {
    grid-column: 2;
    display: grid;
    gap: 0;
}

#app-confirm-modal.dispatcher-day .shared-shift-dialog .app-confirm-content h2,
#app-confirm-modal.dispatcher-night .shared-shift-dialog .app-confirm-content h2 {
    margin: 0 34px 6px 0;
    font-size: 23px;
    line-height: 1;
}

#app-confirm-modal.dispatcher-day .shared-shift-dialog .app-confirm-content p,
#app-confirm-modal.dispatcher-night .shared-shift-dialog .app-confirm-content p {
    max-width: 350px;
    margin: 0 0 10px;
    font-size: 13px;
    line-height: 1.25;
}

#app-confirm-modal.dispatcher-day .shared-shift-login-field,
#app-confirm-modal.dispatcher-night .shared-shift-login-field {
    gap: 4px;
    margin: 0 0 8px;
    font-size: 13px;
}

#app-confirm-modal.dispatcher-day .shared-shift-login-field small,
#app-confirm-modal.dispatcher-night .shared-shift-login-field small {
    font-size: 11px;
    line-height: 1.2;
}

#app-confirm-modal.dispatcher-day .shared-shift-phone-shell,
#app-confirm-modal.dispatcher-night .shared-shift-phone-shell {
    grid-template-columns: 78px minmax(0, 1fr);
    min-height: 38px;
    border: 1px solid var(--gd-line);
    border-radius: 6px;
}

#app-confirm-modal.dispatcher-day .shared-shift-country-code span,
#app-confirm-modal.dispatcher-night .shared-shift-country-code span {
    display: none;
}

#app-confirm-modal.dispatcher-day .shared-shift-country-code,
#app-confirm-modal.dispatcher-night .shared-shift-country-code,
#app-confirm-modal.dispatcher-day .shared-shift-login-field input,
#app-confirm-modal.dispatcher-night .shared-shift-login-field input,
#app-confirm-modal.dispatcher-day .shared-shift-login-field input::placeholder,
#app-confirm-modal.dispatcher-night .shared-shift-login-field input::placeholder {
    font-size: 18px;
}

#app-confirm-modal.dispatcher-day .shared-shift-login-field input,
#app-confirm-modal.dispatcher-night .shared-shift-login-field input {
    min-height: 38px;
    border-radius: 6px;
}

#app-confirm-modal.dispatcher-day .shared-shift-phone-shell input,
#app-confirm-modal.dispatcher-night .shared-shift-phone-shell input {
    min-height: 0;
    padding: 0 14px;
}

#app-confirm-modal.dispatcher-day .shared-shift-login-field > input,
#app-confirm-modal.dispatcher-night .shared-shift-login-field > input {
    padding: 0 16px;
}

#app-confirm-modal.dispatcher-day .shared-shift-device-choice,
#app-confirm-modal.dispatcher-night .shared-shift-device-choice {
    column-gap: 8px;
    row-gap: 4px;
    margin: 0 0 10px;
}

#app-confirm-modal.dispatcher-day .shared-shift-device-choice legend,
#app-confirm-modal.dispatcher-night .shared-shift-device-choice legend {
    margin: 0 0 2px;
    font-size: 13px;
}

#app-confirm-modal.dispatcher-day .shared-shift-device-option,
#app-confirm-modal.dispatcher-night .shared-shift-device-option {
    min-height: 34px;
    font-size: 14px;
    border-radius: 6px;
}

#app-confirm-modal.dispatcher-day .shared-shift-device-option:has(input:checked)::after,
#app-confirm-modal.dispatcher-night .shared-shift-device-option:has(input:checked)::after {
    width: 30px;
    height: 4px;
}

#app-confirm-modal.dispatcher-day .shared-shift-dialog .app-confirm-actions,
#app-confirm-modal.dispatcher-night .shared-shift-dialog .app-confirm-actions {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) 120px 160px;
    gap: 12px;
    padding-top: 10px;
}

#app-confirm-modal.dispatcher-day .shared-shift-dialog .app-confirm-actions button,
#app-confirm-modal.dispatcher-night .shared-shift-dialog .app-confirm-actions button {
    min-height: 34px;
    padding: 0 12px;
    font-size: 14px;
    border-radius: 6px;
}

#app-confirm-modal.dispatcher-day .shared-shift-dialog .app-confirm-actions .secondary,
#app-confirm-modal.dispatcher-night .shared-shift-dialog .app-confirm-actions .secondary {
    border: 1px solid var(--gd-red);
    background: var(--gd-red-soft);
    color: var(--gd-red);
}

#app-confirm-modal.dispatcher-day .shared-shift-dialog .app-confirm-actions .danger,
#app-confirm-modal.dispatcher-night .shared-shift-dialog .app-confirm-actions .danger {
    border: 1px solid var(--gd-green);
    background: var(--gd-green-soft);
    color: var(--gd-green);
}

#app-confirm-modal.dispatcher-day .shared-shift-device-option:hover,
#app-confirm-modal.dispatcher-night .shared-shift-device-option:hover {
    border-color: color-mix(in srgb, var(--gd-green) 55%, var(--gd-line));
    background: color-mix(in srgb, var(--gd-green-soft) 65%, var(--gd-panel-soft));
    color: var(--gd-ink);
}

@media (max-width: 720px) {
    #app-confirm-modal.dispatcher-day,
    #app-confirm-modal.dispatcher-night {
        place-items: center;
        align-content: center;
        min-height: 100dvh;
        padding: 18px 14px;
    }

    .dispatcher-shell .app-confirm-dialog:not(.shared-shift-dialog),
    #app-confirm-modal.dispatcher-day .app-confirm-dialog,
    #app-confirm-modal.dispatcher-night .app-confirm-dialog {
        grid-template-columns: 3px 52px minmax(0, 1fr);
        gap: 0 12px;
        width: min(420px, calc(100vw - 24px));
        max-height: calc(100dvh - 36px);
        min-height: 0;
        padding: 22px 18px;
        overflow-y: auto;
    }

    .dispatcher-shell .app-confirm-accent,
    #app-confirm-modal.dispatcher-day .app-confirm-accent,
    #app-confirm-modal.dispatcher-night .app-confirm-accent {
        height: 58px;
        margin-top: 4px;
    }

    .dispatcher-shell .app-confirm-icon,
    #app-confirm-modal.dispatcher-day .app-confirm-icon,
    #app-confirm-modal.dispatcher-night .app-confirm-icon {
        width: 48px;
        height: 48px;
        font-size: 30px;
    }

    .dispatcher-shell .app-confirm-content,
    #app-confirm-modal.dispatcher-day .app-confirm-content,
    #app-confirm-modal.dispatcher-night .app-confirm-content {
        padding-right: 32px;
    }

    .dispatcher-shell .app-confirm-content h2,
    #app-confirm-modal.dispatcher-day .app-confirm-content h2,
    #app-confirm-modal.dispatcher-night .app-confirm-content h2 {
        font-size: 22px;
    }

    .dispatcher-shell .app-confirm-content p,
    #app-confirm-modal.dispatcher-day .app-confirm-content p,
    #app-confirm-modal.dispatcher-night .app-confirm-content p {
        font-size: 15px;
    }

    .dispatcher-shell .app-confirm-actions,
    #app-confirm-modal.dispatcher-day .app-confirm-actions,
    #app-confirm-modal.dispatcher-night .app-confirm-actions {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-top: 26px;
    }

    .dispatcher-shell .app-confirm-actions button,
    #app-confirm-modal.dispatcher-day .app-confirm-actions button,
    #app-confirm-modal.dispatcher-night .app-confirm-actions button {
        min-height: 54px;
        padding: 0 16px;
        font-size: 16px;
    }

    .dispatcher-shell .app-confirm-actions .secondary,
    .dispatcher-shell .app-confirm-actions .danger,
    #app-confirm-modal.dispatcher-day .app-confirm-actions .secondary,
    #app-confirm-modal.dispatcher-day .app-confirm-actions .danger,
    #app-confirm-modal.dispatcher-night .app-confirm-actions .secondary,
    #app-confirm-modal.dispatcher-night .app-confirm-actions .danger {
        grid-column: 1;
        width: 100%;
        min-width: 0;
    }

    #app-confirm-modal.is-shift-end-confirm.dispatcher-day .app-confirm-dialog,
    #app-confirm-modal.is-shift-end-confirm.dispatcher-night .app-confirm-dialog {
        grid-template-columns: 3px 52px minmax(0, 1fr);
        gap: 0 12px;
        width: min(420px, calc(100vw - 24px));
        max-height: calc(100dvh - 36px);
        padding: 22px 18px;
    }

    #app-confirm-modal.is-shift-end-confirm.dispatcher-day .app-confirm-icon,
    #app-confirm-modal.is-shift-end-confirm.dispatcher-night .app-confirm-icon {
        display: grid;
        grid-column: 2;
        width: 48px;
        height: 48px;
        font-size: 30px;
    }

    #app-confirm-modal.is-shift-end-confirm.dispatcher-day .app-confirm-accent,
    #app-confirm-modal.is-shift-end-confirm.dispatcher-night .app-confirm-accent {
        grid-column: 1;
        grid-row: 1 / span 2;
        height: 58px;
        margin-top: 4px;
    }

    #app-confirm-modal.is-shift-end-confirm.dispatcher-day .app-confirm-content,
    #app-confirm-modal.is-shift-end-confirm.dispatcher-night .app-confirm-content {
        grid-column: 3;
        padding-right: 32px;
    }

    #app-confirm-modal.is-shift-end-confirm.dispatcher-day .app-confirm-content h2,
    #app-confirm-modal.is-shift-end-confirm.dispatcher-night .app-confirm-content h2 {
        margin: 0 0 8px;
        font-size: 22px;
        line-height: 1;
    }

    #app-confirm-modal.is-shift-end-confirm.dispatcher-day .app-confirm-content p,
    #app-confirm-modal.is-shift-end-confirm.dispatcher-night .app-confirm-content p {
        max-width: none;
        font-size: 15px;
        line-height: 1.35;
    }

    #app-confirm-modal.is-shift-end-confirm.dispatcher-day .app-confirm-shift-summary,
    #app-confirm-modal.is-shift-end-confirm.dispatcher-night .app-confirm-shift-summary {
        grid-column: 1 / -1;
        gap: 12px;
        margin-top: 22px;
        padding-top: 18px;
    }

    #app-confirm-modal.is-shift-end-confirm.dispatcher-day .app-confirm-shift-summary h3,
    #app-confirm-modal.is-shift-end-confirm.dispatcher-night .app-confirm-shift-summary h3 {
        font-size: 17px;
    }

    #app-confirm-modal.is-shift-end-confirm.dispatcher-day .app-confirm-shift-grid div,
    #app-confirm-modal.is-shift-end-confirm.dispatcher-night .app-confirm-shift-grid div {
        padding: 11px 12px;
    }

    #app-confirm-modal.is-shift-end-confirm.dispatcher-day .app-confirm-shift-grid span,
    #app-confirm-modal.is-shift-end-confirm.dispatcher-night .app-confirm-shift-grid span {
        font-size: 11px;
    }

    #app-confirm-modal.is-shift-end-confirm.dispatcher-day .app-confirm-shift-grid strong,
    #app-confirm-modal.is-shift-end-confirm.dispatcher-night .app-confirm-shift-grid strong {
        font-size: 16px;
    }

    #app-confirm-modal.is-shift-end-confirm.dispatcher-day .app-confirm-actions,
    #app-confirm-modal.is-shift-end-confirm.dispatcher-night .app-confirm-actions {
        grid-column: 1 / -1;
        grid-template-columns: 1fr;
        gap: 14px;
        margin-top: 24px;
        padding-top: 18px;
    }

    #app-confirm-modal.is-shift-end-confirm.dispatcher-day .app-confirm-actions .secondary,
    #app-confirm-modal.is-shift-end-confirm.dispatcher-day .app-confirm-actions .danger,
    #app-confirm-modal.is-shift-end-confirm.dispatcher-night .app-confirm-actions .secondary,
    #app-confirm-modal.is-shift-end-confirm.dispatcher-night .app-confirm-actions .danger {
        grid-column: 1;
        width: 100%;
        min-width: 0;
    }

    #app-confirm-modal.is-shift-end-confirm.dispatcher-day .app-confirm-actions button,
    #app-confirm-modal.is-shift-end-confirm.dispatcher-night .app-confirm-actions button {
        min-height: 54px;
        padding: 0 16px;
        font-size: 16px;
    }
}

#app-confirm-modal.dispatcher-day .shared-shift-dialog .app-confirm-actions button:hover,
#app-confirm-modal.dispatcher-night .shared-shift-dialog .app-confirm-actions button:hover {
    transform: translateY(-1px);
}

#app-confirm-modal.dispatcher-day .shared-shift-dialog .app-confirm-actions .secondary:hover,
#app-confirm-modal.dispatcher-night .shared-shift-dialog .app-confirm-actions .secondary:hover {
    background: color-mix(in srgb, var(--gd-red-soft) 74%, var(--gd-red) 16%);
    border-color: color-mix(in srgb, var(--gd-red) 80%, var(--gd-line));
}

#app-confirm-modal.dispatcher-day .shared-shift-dialog .app-confirm-actions .danger:hover,
#app-confirm-modal.dispatcher-night .shared-shift-dialog .app-confirm-actions .danger:hover {
    background: color-mix(in srgb, var(--gd-green-soft) 70%, var(--gd-green) 16%);
    border-color: color-mix(in srgb, var(--gd-green) 82%, var(--gd-line));
}

@media (max-width: 760px) {
    #app-confirm-modal.dispatcher-day .shared-shift-dialog,
    #app-confirm-modal.dispatcher-night .shared-shift-dialog {
        width: min(100%, calc(100vw - 22px));
        max-height: calc(100vh - 22px);
        padding: 20px 16px;
    }

    #app-confirm-modal.dispatcher-day .shared-shift-dialog .app-confirm-actions,
    #app-confirm-modal.dispatcher-night .shared-shift-dialog .app-confirm-actions {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    #app-confirm-modal.dispatcher-day .shared-shift-dialog .app-confirm-actions .secondary,
    #app-confirm-modal.dispatcher-night .shared-shift-dialog .app-confirm-actions .secondary,
    #app-confirm-modal.dispatcher-day .shared-shift-dialog .app-confirm-actions .danger,
    #app-confirm-modal.dispatcher-night .shared-shift-dialog .app-confirm-actions .danger {
        grid-column: 1;
    }
}

.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(circle at 78% 18%, rgba(40, 199, 183, .25), transparent 28%),
        linear-gradient(135deg, #101820 0%, #152535 52%, #0b1117 100%);
    color: #ffffff;
}

.login-card {
    width: min(430px, 100%);
    background: rgba(23, 35, 46, .94);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .34);
}

.login-card p,
.login-card .muted {
    color: #b8c7d3;
}

.login-device-choice {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 14px 0 16px;
    padding: 0;
    border: 0;
}

.login-device-choice legend {
    grid-column: 1 / -1;
    margin-bottom: 2px;
    color: #d8e3ea;
    font-size: 13px;
    font-weight: 800;
}

.login-device-option {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border: 1px solid rgba(184, 199, 211, .32);
    border-radius: 12px;
    color: #d8e3ea;
    background: rgba(255, 255, 255, .06);
    font-weight: 800;
    cursor: pointer;
}

.login-device-option input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.login-device-option:has(input:checked) {
    border-color: rgba(40, 199, 183, .88);
    color: #ffffff;
    background: rgba(40, 199, 183, .20);
}

.app-header {
    background:
        radial-gradient(circle at 88% 18%, rgba(40, 199, 183, .28), transparent 24%),
        linear-gradient(135deg, #101820 0%, #162534 100%);
    color: #ffffff;
    padding: 24px 28px 30px;
}

.header-inner,
.page {
    width: min(1180px, calc(100vw - 32px));
    margin: 0 auto;
}

.header-inner {
    position: relative;
}

.wide-shell,
.wide-page {
    width: min(1680px, calc(100vw - 56px));
}

.topline {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    color: #b8c7d3;
    font-size: 14px;
    min-width: 0;
}

.topline-nav {
    position: absolute;
    right: 0;
    top: 50%;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px 12px;
    align-items: center;
    min-width: 0;
    max-width: min(52vw, 680px);
    transform: translateY(-50%);
}

.topline-nav a,
.topline-nav .link-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-height: 32px;
    max-width: 100%;
    padding: 7px 11px;
    border: 1px solid rgba(40, 199, 183, .28);
    border-radius: 999px;
    background: rgba(40, 199, 183, .10);
    color: var(--brand);
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}

.topline-nav a:hover,
.topline-nav .link-button:hover,
.topline-nav a:focus-visible,
.topline-nav .link-button:focus-visible {
    background: rgba(40, 199, 183, .20);
    border-color: rgba(40, 199, 183, .58);
    color: #ffffff;
    filter: none;
    outline: none;
    transform: translateY(-1px);
}

.app-header h1,
.login-card h1 {
    margin: 14px 0 8px;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.1;
}

.app-header p {
    margin: 0;
    max-width: 760px;
    color: #c8d5df;
    line-height: 1.45;
}

.page {
    padding: 24px 0 42px;
}

.card {
    background: var(--panel);
    border: 1px solid rgba(16, 24, 32, .06);
    border-radius: 22px;
    padding: 22px;
    box-shadow: var(--shadow);
    margin-bottom: 18px;
}

.card h2 {
    margin: 0 0 14px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 14px;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.metric-card {
    background: var(--panel);
    border-radius: 22px;
    padding: 20px;
    box-shadow: var(--shadow);
    border-left: 8px solid var(--brand);
}

.metric-card.danger {
    border-left-color: var(--danger);
}

.metric-card.warning {
    border-left-color: var(--warn);
}

.metric-card.success {
    border-left-color: var(--ok);
}

.metric {
    font-size: 36px;
    font-weight: 800;
    margin-top: 8px;
}

.tile {
    background: #eef5f7;
    border-radius: 16px;
    padding: 14px;
}

.tile-link {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 78px;
    border: 1px solid rgba(12, 96, 98, .10);
    color: var(--ink);
    text-decoration: none;
    cursor: pointer;
    box-shadow:
        0 10px 18px rgba(17, 35, 48, .07),
        inset 0 1px 0 rgba(255, 255, 255, .92);
    transition: background .15s ease, border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.tile-link:hover,
.tile-link:focus-visible {
    background: #dff3f3;
    border-color: rgba(0, 128, 124, .28);
    box-shadow:
        0 16px 30px rgba(17, 35, 48, .14),
        0 0 0 3px rgba(45, 194, 181, .16),
        inset 0 1px 0 rgba(255, 255, 255, .96);
    filter: none;
    outline: none;
    transform: translateY(-3px) scale(1.015);
}

.tile-link:active {
    box-shadow:
        0 6px 14px rgba(17, 35, 48, .10),
        inset 0 2px 5px rgba(17, 35, 48, .10);
    transform: translateY(1px) scale(.995);
}

.tile-link span {
    color: var(--brand-dark);
    font-weight: 800;
}

.tile strong {
    display: block;
    margin-bottom: 5px;
    color: var(--muted);
}

.excavator-work-screen {
    overflow-x: hidden;
}

.excavator-work-header {
    padding: 18px 24px 20px;
}

.excavator-work-header h1 {
    margin-top: 10px;
}

.excavator-work-header p {
    overflow-wrap: anywhere;
}

.excavator-work-page {
    display: grid;
    gap: 16px;
    width: min(1500px, calc(100vw - 40px));
    padding-top: 18px;
}

.excavator-status-strip {
    display: grid;
    grid-template-columns: minmax(260px, 1.45fr) repeat(4, minmax(150px, 1fr));
    gap: 12px;
}

.excavator-status-card {
    min-width: 0;
    padding: 16px;
    border: 1px solid rgba(16, 24, 32, .07);
    border-left: 7px solid #9fb1bf;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(16, 24, 32, .08);
}

.excavator-status-card span {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.excavator-status-card strong {
    display: block;
    overflow-wrap: anywhere;
    font-size: 22px;
    line-height: 1.08;
}

.excavator-status-card.status-current,
.excavator-status-card.status-ok {
    border-left-color: var(--ok);
}

.excavator-status-card.status-warning {
    border-left-color: var(--warn);
    background: #fffaf0;
}

.excavator-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(330px, 430px);
    gap: 16px;
    align-items: start;
}

.excavator-trip-card,
.excavator-active-card {
    margin-bottom: 0;
    border-radius: 18px;
}

.excavator-work-screen .section-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.excavator-work-screen .section-title-row.compact {
    margin-top: 18px;
    margin-bottom: 10px;
}

.excavator-work-screen .section-title-row h2,
.excavator-work-screen .section-title-row h3,
.excavator-work-screen .section-title-row p {
    margin: 0;
}

.excavator-work-screen .section-title-row p {
    margin-top: 5px;
    max-width: 640px;
}

.excavator-work-screen .section-title-row button {
    width: auto;
    min-width: 170px;
    margin-top: 0;
    white-space: nowrap;
}

.excavator-form-grid {
    display: grid;
    grid-template-columns: minmax(260px, 1.4fr) repeat(2, minmax(170px, 1fr));
    gap: 12px;
    align-items: end;
}

.excavator-form-grid.secondary {
    grid-template-columns: repeat(4, minmax(150px, 1fr));
    align-items: start;
}

.excavator-field {
    min-width: 0;
}

.excavator-field.field-wide {
    grid-column: span 2;
}

.excavator-field label {
    margin-top: 0;
    font-size: 13px;
}

.excavator-field select,
.excavator-field input,
.excavator-field textarea {
    margin-top: 0;
    border-radius: 14px;
    background: #f8fbfc;
}

.excavator-field textarea {
    min-height: 86px;
    resize: vertical;
}

.excavator-assignment-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.excavator-assignment,
.active-trip-item,
.excavator-empty-state {
    border: 1px solid rgba(16, 24, 32, .08);
    border-radius: 16px;
    background: #f8fbfc;
}

.excavator-assignment {
    display: grid;
    gap: 4px;
    padding: 13px;
    border-left: 6px solid var(--ok);
}

.excavator-assignment.is-busy {
    border-left-color: var(--warn);
    background: #fffaf0;
}

.excavator-assignment strong {
    font-size: 20px;
}

.excavator-assignment span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.excavator-assignment em {
    width: fit-content;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(32, 184, 148, .12);
    color: #08765e;
    font-size: var(--mm-badge-font);
    font-style: normal;
    font-weight: 900;
}

.excavator-assignment.is-busy em {
    background: rgba(243, 180, 63, .18);
    color: #9b6200;
}

.excavator-active-card {
    position: sticky;
    top: 12px;
}

.excavator-active-list {
    display: grid;
    gap: 10px;
}

.active-trip-item {
    display: grid;
    gap: 12px;
    padding: 14px;
    border-left: 6px solid var(--warn);
}

.active-trip-item strong {
    display: block;
    font-size: 20px;
}

.active-trip-item span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.active-trip-item dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
}

.active-trip-item dl div {
    min-width: 0;
    padding: 8px;
    border-radius: 12px;
    background: #ffffff;
}

.active-trip-item dt {
    margin-bottom: 3px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.active-trip-item dd {
    margin: 0;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.excavator-empty-state {
    padding: 14px;
    color: var(--muted);
    font-weight: 800;
}

.muted {
    color: var(--muted);
    overflow-wrap: anywhere;
}

label {
    display: block;
    margin: 14px 0 6px;
    font-weight: 700;
}

input,
select,
textarea,
button {
    width: 100%;
    padding: 14px;
    border-radius: 14px;
    font-size: 16px;
}

input,
select,
textarea {
    border: 1px solid #ccd7df;
    background: #ffffff;
    color: var(--ink);
}

input.is-valid {
    border-color: var(--ok);
    box-shadow: 0 0 0 3px rgba(32, 184, 148, .16);
}

input.is-invalid {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgba(232, 75, 75, .14);
}

.input-hint {
    display: block;
    margin: -4px 0 12px;
    color: #b8c7d3;
    font-size: 13px;
    line-height: 1.35;
}

.input-hint.is-valid {
    color: #6ee7cf;
}

.input-hint.is-invalid {
    color: #ffb4a9;
}

textarea {
    font-family: inherit;
    resize: vertical;
}

.login-card input {
    margin: 18px 0 12px;
    background: #0d151c;
    border-color: #4b647a;
    color: #ffffff;
    text-align: center;
    font-size: 22px;
}

button,
.button-link {
    border: 0;
    background: var(--brand);
    color: #081216;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.15;
    vertical-align: middle;
    appearance: none;
    -webkit-appearance: none;
}

button:hover,
.button-link:hover {
    filter: brightness(.96);
}

button:disabled {
    cursor: not-allowed;
    filter: grayscale(.4);
    opacity: .55;
}

.dispatcher-shell .unified-login-dialog .app-confirm-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 6px;
    font-family: "Roboto Condensed", "Arial Narrow", "Segoe UI", Arial, sans-serif;
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
    transition: border-color .14s ease, background .14s ease, color .14s ease, transform .14s ease;
}

.dispatcher-shell .unified-login-dialog .message {
    grid-column: 1 / -1;
    margin: 10px 0 0;
    padding: 9px 11px;
    border: 1px solid var(--gd-red);
    border-radius: 6px;
    background: var(--gd-red-soft);
    color: var(--gd-red);
    font-family: "Roboto Condensed", "Arial Narrow", "Segoe UI", Arial, sans-serif;
    font-size: 12px;
    font-weight: 900;
}

.button-secondary {
    background: #e9f0f4;
    color: var(--ink);
}

.button-small {
    border-radius: 10px;
    font-size: 13px;
    padding: 8px 10px;
}

.button-muted {
    background: #e9f0f4;
    color: var(--ink);
}

.badge {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    background: #e9f0f4;
    color: var(--ink);
    font-size: 13px;
    font-weight: 800;
}

.access-code {
    display: inline-block;
    min-width: 72px;
    margin-right: 8px;
    padding: 7px 10px;
    border: 1px solid rgba(40, 199, 183, .42);
    border-radius: 12px;
    background: #ecfffc;
    color: var(--brand-dark);
    font-family: Arial, sans-serif;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: .08em;
    text-align: center;
}

.generated-pin {
    margin: 18px 0;
    padding: 18px 20px;
    border: 1px solid rgba(40, 199, 183, .45);
    border-radius: 18px;
    background: #ecfffc;
    color: var(--brand-dark);
    font-size: 34px;
    font-weight: 900;
    letter-spacing: .16em;
    text-align: center;
}

.inline-action {
    margin: 0 0 6px;
}

.inline-form {
    display: inline-block;
    margin: 0 6px 6px 0;
}

.inline-form button {
    width: auto;
    padding: 8px 10px;
    font-size: 13px;
}

.actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 12px;
}

.actions .button-link,
.actions button {
    width: auto;
    min-width: 170px;
}

.message {
    padding: 13px 14px;
    border-radius: 14px;
    margin-bottom: 14px;
}

.message.success {
    background: #ddfff8;
    color: #075a52;
}

.message.error,
.errors {
    background: #ffe9e5;
    color: #8b1d10;
}

.highlight-warning {
    border: 2px solid var(--warn);
}

.highlight-success {
    border: 2px solid var(--brand);
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 11px 10px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

th {
    font-size: 13px;
    color: var(--muted);
}

.filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 12px;
    align-items: end;
}

.filter-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    align-items: end;
    padding: 18px;
    border: 1px solid rgba(211, 225, 234, .9);
    border-radius: 22px;
    background: #f8fbfc;
}

.filter-form label {
    display: grid;
    gap: 8px;
    margin: 0;
}

.filter-form input,
.filter-form select,
.filter-form button,
.filter-form .button-link {
    min-height: 52px;
    margin: 0;
}

.filter-form input,
.filter-form select {
    min-width: 220px;
    background: #ffffff;
}

.filter-form button,
.filter-form .button-link {
    width: auto;
    min-width: 180px;
    padding: 13px 18px;
    border-radius: 14px;
}

.employee-list-toolbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.employee-list-toolbar h2 {
    margin: 0 0 4px;
}

.employee-list-toolbar p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.employee-list-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.employee-list-actions .button-link {
    min-width: 160px;
    min-height: 42px;
    padding: 10px 14px;
    border-radius: 12px;
    box-shadow: 0 10px 18px rgba(17, 35, 48, .08);
    transition: box-shadow .15s ease, transform .15s ease, filter .15s ease;
}

.employee-list-actions .button-link:hover,
.employee-list-actions .button-link:focus-visible {
    box-shadow: 0 14px 26px rgba(17, 35, 48, .14);
    filter: none;
    outline: none;
    transform: translateY(-4px);
}

.employee-list-filters {
    display: grid;
    grid-template-columns: minmax(300px, 1.6fr) minmax(210px, .85fr) minmax(240px, .95fr) 190px;
    gap: 8px;
    align-items: end;
    padding: 14px;
    border: 1px solid rgba(211, 225, 234, .9);
    border-radius: 18px;
    background: #f8fbfc;
}

.employee-list-filters .field {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.employee-list-filters label {
    margin: 0;
    color: var(--ink);
    font-size: 13px;
}

.employee-list-filters input,
.employee-list-filters select,
.employee-list-filters button,
.employee-list-filters .filter-reset-link {
    width: 100%;
    height: 54px;
    min-height: 54px;
    margin: 0;
    padding-top: 0;
    padding-bottom: 0;
}

.employee-list-filters input,
.employee-list-filters select {
    background: #ffffff;
}

.employee-list-filters button,
.employee-list-filters .filter-reset-link {
    border-radius: 13px;
    box-shadow: 0 12px 22px rgba(21, 160, 148, .22);
    transition: box-shadow .15s ease, transform .15s ease, filter .15s ease;
}

.employee-list-filters .field-submit {
    align-self: end;
}

.employee-list-filters button:hover,
.employee-list-filters button:focus-visible,
.employee-list-filters .filter-reset-link:hover,
.employee-list-filters .filter-reset-link:focus-visible {
    box-shadow: 0 16px 28px rgba(21, 160, 148, .30);
    filter: none;
    outline: none;
    transform: translateY(-2px);
}

.employee-list-filters button:active {
    box-shadow: 0 8px 16px rgba(21, 160, 148, .20);
    transform: translateY(1px);
}

.filter-reset-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(232, 75, 75, .28);
    border-radius: 13px;
    background: rgba(232, 75, 75, .07);
    color: #d93636;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    transition: background .15s ease, border-color .15s ease, box-shadow .15s ease, color .15s ease, transform .15s ease;
}

.filter-reset-link:hover,
.filter-reset-link:focus-visible {
    background: rgba(232, 75, 75, .16);
    border-color: rgba(232, 75, 75, .62);
    box-shadow: 0 12px 22px rgba(232, 75, 75, .18);
    color: #a72222;
    filter: none;
    outline: none;
    transform: translateY(-1px);
}

.admin-page {
    width: min(1760px, calc(100vw - 44px));
}

html:has(body.employees-admin-screen),
body.employees-admin-screen {
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
}

.admin-employees-header {
    padding: 14px 24px 16px;
}

.admin-employees-header .topline {
    font-size: 12px;
}

.admin-employees-header h1 {
    margin: 8px 0 5px;
    font-size: clamp(28px, 2.7vw, 36px);
    line-height: 1;
}

.admin-employees-header p {
    max-width: 680px;
    font-size: 12px;
    line-height: 1.3;
}

.admin-employees-header .admin-user-pill {
    position: absolute;
    right: 248px;
    top: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 22px;
    border-radius: 999px;
    background: #0e6f6a;
    color: #eafbfb;
    font-size: 12px;
    font-weight: 800;
    transform: translateY(-50%);
}

.admin-employees-header .nav-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: auto;
    min-height: 34px;
    min-width: 88px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    background: #eef5f7;
    color: var(--ink);
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 10px 22px rgba(0, 0, 0, .08);
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.admin-employees-header .nav-pill:hover,
.admin-employees-header .nav-pill:focus-visible {
    filter: none;
    outline: none;
    transform: translateY(-1px);
    box-shadow: 0 14px 26px rgba(0, 0, 0, .14);
}

.employees-admin-screen .admin-page {
    display: flex;
    flex-direction: column;
    height: calc(100dvh - 92px);
    min-height: 0;
    padding: 12px 0 12px;
}

.admin-control-card {
    flex: 0 0 auto;
    padding: 16px 18px;
    margin-bottom: 14px;
}

.admin-filter-bar {
    grid-template-columns: minmax(300px, 1.45fr) minmax(180px, .82fr) minmax(210px, .95fr) minmax(210px, .95fr) minmax(116px, .38fr);
    gap: 12px;
    padding: 10px 10px 12px;
    border-radius: 14px;
    align-items: end;
}

.select-field {
    position: relative;
}

.select-field select {
    appearance: none;
    padding-right: 46px;
    cursor: pointer;
}

.select-field::after {
    content: "";
    position: absolute;
    right: 16px;
    bottom: 18px;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--muted);
    border-bottom: 2px solid var(--muted);
    pointer-events: none;
    transform: rotate(45deg);
}

.section-title-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 12px;
    margin-bottom: 12px;
}

.section-title-row h2 {
    margin: 0 0 3px;
    font-size: 24px;
    line-height: 1.05;
}

.section-title-row p {
    max-width: 760px;
    margin: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: normal;
}

.section-title-row .badge {
    align-self: center;
    margin-top: 0;
}

.admin-employee-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(286px, 306px);
    gap: 20px;
    align-items: stretch;
    flex: 1 1 auto;
    min-height: 0;
}

.admin-employee-list-card,
.admin-dnd-panel {
    margin-bottom: 0;
}

.admin-employee-list-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    padding: 20px 24px 22px;
}

.admin-employee-list {
    display: grid;
    align-content: start;
    flex: 1 1 auto;
    gap: 10px;
    min-height: 0;
    overflow-y: auto;
    padding: 0 5px 6px 0;
    scrollbar-gutter: stable;
}

.admin-employee-row {
    display: grid;
    grid-template-columns: minmax(280px, 1.35fr) minmax(120px, .52fr) minmax(150px, .68fr) minmax(170px, .78fr) minmax(150px, .72fr);
    gap: 16px;
    align-items: center;
    min-height: 52px;
    padding: 8px 12px;
    border: 1px solid #dce8ef;
    border-left: 4px solid var(--brand);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(16, 24, 32, .06);
    cursor: grab;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease, background .15s ease;
}

.admin-employee-row:hover,
.admin-employee-row:focus-within {
    border-color: rgba(40, 199, 183, .58);
    box-shadow: 0 18px 38px rgba(16, 24, 32, .12);
    transform: translateY(-2px);
}

.admin-employee-row:focus-visible {
    outline: 3px solid rgba(40, 199, 183, .24);
    outline-offset: 2px;
}

.admin-employee-row:active {
    cursor: grabbing;
}

.admin-employee-row.is-dragging {
    opacity: .72;
    transform: scale(.995);
}

.admin-employee-row.status-active {
    border-left-color: var(--ok);
}

.admin-employee-row.status-not_activated {
    border-left-color: var(--warn);
    background: #fffaf0;
}

.admin-employee-row.status-deactivated,
.admin-employee-row.status-archived,
.admin-employee-row.status-dismissed,
.admin-employee-row.status-deleted {
    border-left-color: var(--danger);
    background: #fff6f6;
}

.employee-mini-cell {
    display: flex;
    align-items: center;
    align-self: stretch;
    min-width: 0;
}

.employee-mini-card {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    color: var(--ink);
    text-decoration: none !important;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    min-height: 38px;
    padding: 0;
}

.employee-mini-card *,
.employee-mini-card:hover *,
.employee-mini-card:focus-visible * {
    text-decoration: none !important;
}

.admin-employee-row form[hidden],
.employee-row-actions,
.row-open-link,
.drag-handle {
    display: none !important;
}

.employee-mini-avatar {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    overflow: hidden;
    border: 2px solid rgba(32, 184, 148, .58);
    border-radius: 999px;
    background: #e7fbf7;
    color: var(--brand-dark);
    font-size: 12px;
    font-weight: 900;
    box-shadow: 0 8px 18px rgba(32, 184, 148, .12);
}

.status-not_activated .employee-mini-avatar {
    border-color: rgba(243, 180, 63, .72);
    background: #fff3d5;
    color: #8c5b00;
}

.status-deactivated .employee-mini-avatar,
.status-archived .employee-mini-avatar,
.status-dismissed .employee-mini-avatar,
.status-deleted .employee-mini-avatar {
    border-color: rgba(232, 75, 75, .62);
    background: #ffe8e8;
    color: #9f2727;
}

.employee-mini-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.employee-mini-main {
    display: grid;
    align-content: center;
    gap: 2px;
    min-width: 0;
}

.employee-mini-main strong,
.employee-mini-main small,
.employee-mini-phone,
.employee-mini-residence {
    overflow-wrap: anywhere;
}

.employee-mini-main strong {
    font-size: 13px;
    line-height: 1.25;
}

.employee-search-highlight {
    padding: 0 2px;
    border-radius: 5px;
    background: rgba(243, 180, 63, .30);
    color: inherit;
    box-shadow: inset 0 -1px 0 rgba(243, 180, 63, .65);
}

.employee-mini-main small,
.employee-mini-phone,
.employee-mini-residence {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.35;
}

.employee-state-cell {
    display: grid;
    align-self: stretch;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
}

.employee-state-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: fit-content;
    max-width: 100%;
    min-height: 22px;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 900;
    line-height: 1.15;
    white-space: nowrap;
}

.employee-state-active {
    background: #e8f8f5;
    color: #08766c;
}

.employee-state-not_activated {
    background: #fff1cf;
    color: #8c5b00;
}

.employee-state-deactivated,
.employee-state-archived,
.employee-state-dismissed,
.employee-state-deleted {
    background: #ffe1e1;
    color: #a72f2f;
}

.employee-mini-accesses {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-self: stretch;
    align-content: center;
    align-items: center;
}

.status-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 22px;
    padding: 3px 10px;
    border-radius: 6px;
    background: #e8f8f5;
    color: #08766c;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.15;
    text-align: center;
}

.chip-label {
    color: inherit;
    font-size: .78em;
    font-weight: 900;
    letter-spacing: .02em;
    opacity: .62;
}

.status-chip.access-not_activated {
    background: #fff1cf;
    color: #8c5b00;
}

.status-chip.access-blocked,
.status-chip.access-deactivated {
    background: #ffe1e1;
    color: #a72f2f;
}

.admin-dnd-panel {
    position: sticky;
    top: 0;
    display: grid;
    grid-template-rows: auto auto minmax(76px, 1fr) minmax(76px, 1fr) auto minmax(76px, 1fr) minmax(76px, 1fr) auto;
    align-content: stretch;
    gap: 10px;
    height: 100%;
    max-height: 100%;
    overflow: hidden;
    padding: 20px 18px 18px;
}

.dnd-group-label {
    margin: 4px 0 -2px;
    color: #8a9aaa;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.employee-drag-preview {
    position: fixed;
    left: -9999px;
    top: -9999px;
    z-index: 2000;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    max-width: 300px;
    min-width: 170px;
    padding: 8px 12px 8px 8px;
    border: 1px solid var(--admin-line, rgba(8, 118, 108, .38));
    border-left: 4px solid var(--admin-green, #1f9a63);
    border-radius: 8px;
    background: var(--admin-panel, rgba(255, 255, 255, .92));
    color: var(--ink);
    box-shadow:
        0 16px 36px rgba(16, 24, 32, .30),
        0 0 0 1px rgba(255, 255, 255, .62);
    filter: none;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.15;
    opacity: .75;
    pointer-events: none;
    white-space: nowrap;
}

.employee-drag-preview.is-visible {
    left: 0;
    top: 0;
}

.employee-drag-preview .employee-mini-avatar {
    width: 38px;
    height: 38px;
    border-width: 2px;
    border-radius: 6px;
    font-size: 14px;
}

.employee-drag-preview-text {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.employee-drag-preview-name {
    overflow: hidden;
    max-width: 220px;
    text-overflow: ellipsis;
}

.employee-drag-preview-status {
    overflow: hidden;
    max-width: 240px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    line-height: 1.15;
    text-overflow: ellipsis;
}

.transparent-drag-image {
    position: fixed;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.dnd-panel-head {
    display: grid;
    gap: 3px;
    min-height: 44px;
    align-content: start;
}

.admin-dnd-panel h2 {
    margin: 0;
    font-size: 24px;
    line-height: 1.05;
}

.admin-dnd-panel p {
    min-height: 16px;
    margin: 0;
    overflow: hidden;
    font-size: 13px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dnd-zone {
    position: relative;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 12px;
    row-gap: 3px;
    align-items: center;
    width: 100%;
    min-height: 76px;
    padding: 12px 14px;
    border: 1px solid rgba(40, 199, 183, .24);
    border-left: 6px solid var(--brand);
    border-radius: 16px;
    background: linear-gradient(135deg, #f3fffd 0%, #f8fbfc 70%);
    color: var(--ink);
    text-align: left;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .95),
        0 10px 22px rgba(16, 24, 32, .055);
    transition: background .15s ease, border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.dnd-zone::before {
    content: "вњ“";
    display: grid;
    grid-row: 1 / span 2;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(40, 199, 183, .34);
    border-radius: 10px;
    background: rgba(40, 199, 183, .12);
    color: #08766c;
    font-size: 20px;
    font-weight: 900;
    line-height: 1;
}

.admin-dnd-panel .dnd-zone {
    align-content: center;
}

.dnd-zone strong {
    align-self: end;
    font-size: 14px;
    line-height: 1.15;
}

.dnd-zone span {
    align-self: start;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.25;
}

.dnd-zone.warning {
    border-color: rgba(243, 180, 63, .32);
    border-left-color: var(--warn);
    background: linear-gradient(135deg, #fff8e8 0%, #f8fbfc 72%);
}

.dnd-zone.warning::before {
    content: "!";
    border-color: rgba(243, 180, 63, .48);
    background: rgba(243, 180, 63, .16);
    color: #8c5b00;
}

.dnd-zone.danger {
    border-color: rgba(232, 75, 75, .30);
    border-left-color: var(--danger);
    background: linear-gradient(135deg, #fff3f3 0%, #f8fbfc 72%);
}

.dnd-zone.danger::before {
    content: "Г—";
    border-color: rgba(232, 75, 75, .44);
    background: rgba(232, 75, 75, .14);
    color: #a72f2f;
}

.dnd-zone:hover,
.dnd-zone:focus-visible,
.dnd-zone.is-drag-over {
    background: #e8f8f5;
    border-color: rgba(40, 199, 183, .65);
    box-shadow: 0 16px 34px rgba(16, 24, 32, .13);
    filter: none;
    outline: none;
    transform: translateY(-2px);
}

.dnd-zone.warning:hover,
.dnd-zone.warning:focus-visible,
.dnd-zone.warning.is-drag-over {
    background: #fff7e4;
    border-color: rgba(243, 180, 63, .72);
}

.dnd-zone.danger:hover,
.dnd-zone.danger:focus-visible,
.dnd-zone.danger.is-drag-over {
    background: #fff0f0;
    border-color: rgba(232, 75, 75, .70);
}

.dnd-hint {
    padding: 8px;
    border: 1px solid #d8e5ec;
    border-radius: 12px;
    background: #f5f9fb;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.45;
}


.dnd-zone.success {
    border-color: rgba(32, 184, 148, .30);
    border-left-color: var(--ok);
    background: linear-gradient(135deg, #effdf7 0%, #f8fbfc 72%);
}

.dnd-zone.success::before {
    content: "вњ“";
    border-color: rgba(32, 184, 148, .44);
    background: rgba(32, 184, 148, .14);
    color: #08766c;
}

.dnd-zone.success:hover,
.dnd-zone.success:focus-visible,
.dnd-zone.success.is-drag-over {
    background: #e8f8f5;
    border-color: rgba(32, 184, 148, .68);
}

.system-admin-dashboard-screen {
    overflow-x: hidden;
}

.system-admin-dashboard-screen .admin-page {
    display: grid;
    gap: 14px;
    padding: 12px 0 22px;
}

.system-admin-header .topline > span:first-child {
    max-width: min(42vw, 520px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.system-admin-dashboard {
    --dashboard-card-radius: 16px;
}

.system-admin-metrics {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}

.admin-metric-card {
    position: relative;
    display: grid;
    min-width: 0;
    min-height: 116px;
    align-content: start;
    gap: 6px;
    overflow: hidden;
    padding: 16px 16px 14px;
    border: 1px solid #dce8ef;
    border-radius: var(--dashboard-card-radius);
    background: #ffffff;
    color: var(--ink);
    text-decoration: none;
    box-shadow: 0 14px 32px rgba(16, 24, 32, .075);
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.admin-metric-card:hover,
.admin-metric-card:focus-visible {
    border-color: rgba(40, 199, 183, .54);
    box-shadow: 0 20px 42px rgba(16, 24, 32, .13);
    filter: none;
    outline: none;
    transform: translateY(-2px);
}

.metric-accent {
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: var(--brand);
}

.metric-active .metric-accent {
    background: var(--ok);
}

.metric-warning .metric-accent {
    background: var(--warn);
}

.metric-danger .metric-accent {
    background: var(--danger);
}

.metric-neutral .metric-accent {
    background: #9aa9b6;
}

.metric-value {
    color: var(--brand-dark);
    font-size: 31px;
    font-weight: 950;
    line-height: .95;
}

.metric-label {
    overflow-wrap: anywhere;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.2;
}

.metric-hint {
    margin-top: auto;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
}

.system-admin-main-grid,
.system-admin-secondary-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr);
    gap: 14px;
    align-items: stretch;
}

.system-admin-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(310px, 330px);
    gap: 14px;
    align-items: stretch;
}

.admin-dashboard-panel {
    margin: 0;
    padding: 18px;
    border-radius: var(--dashboard-card-radius);
}

.admin-summary-list,
.admin-dashboard-list,
.admin-compact-table,
.admin-quick-actions,
.dashboard-action-panel {
    display: grid;
    gap: 10px;
}

.admin-summary-row,
.admin-dashboard-row,
.compact-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(120px, auto) minmax(74px, auto);
    gap: 12px;
    align-items: center;
    min-height: 48px;
    padding: 10px 12px;
    border: 1px solid #dce8ef;
    border-left: 5px solid var(--brand);
    border-radius: 13px;
    background: #ffffff;
    color: var(--ink);
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(16, 24, 32, .045);
}

.admin-summary-row:hover,
.admin-summary-row:focus-visible,
.admin-dashboard-row:hover,
.admin-dashboard-row:focus-visible,
.compact-row:hover,
.compact-row:focus-visible {
    border-color: rgba(40, 199, 183, .52);
    box-shadow: 0 14px 28px rgba(16, 24, 32, .10);
    filter: none;
    outline: none;
}

.summary-main,
.row-primary,
.compact-main {
    min-width: 0;
    overflow: hidden;
    font-weight: 900;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-summary-row span:not(.summary-main),
.admin-dashboard-row span:not(.row-primary):not(.row-description):not(.conflict-row-actions),
.compact-row span:not(.compact-main) {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.25;
}

.admin-summary-row strong,
.admin-dashboard-row strong,
.compact-row strong {
    justify-self: end;
    color: var(--brand-dark);
    font-size: 11px;
    line-height: 1.2;
    text-transform: uppercase;
}

.row-ok,
.compact-row.status-active {
    border-left-color: var(--ok);
}

.row-warning,
.compact-row.status-not_activated {
    border-left-color: var(--warn);
    background: #fffaf0;
}

.row-danger,
.compact-row.status-deactivated,
.compact-row.status-archived,
.compact-row.status-dismissed,
.compact-row.status-deleted {
    border-left-color: var(--danger);
    background: #fff6f6;
}

.row-neutral {
    border-left-color: #9aa9b6;
}

.admin-quick-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.admin-quick-actions .button-link {
    min-height: 44px;
    padding-inline: 14px;
}

.admin-quick-actions .quick-action-button {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 18px;
    gap: 12px;
    align-items: center;
    justify-items: stretch;
    min-height: 58px;
    overflow: hidden;
    padding: 12px 14px 12px 16px;
    border: 1px solid rgba(8, 118, 108, .26);
    border-bottom-color: rgba(8, 118, 108, .36);
    border-radius: 14px;
    background: linear-gradient(180deg, #34d1c3 0%, #21b8aa 100%);
    color: #061719;
    font-size: 16px;
    font-weight: 950;
    line-height: 1.18;
    text-align: left;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .34),
        0 12px 24px rgba(8, 118, 108, .20);
    transition: border-color .15s ease, box-shadow .15s ease, filter .15s ease, transform .15s ease;
}

.admin-quick-actions .quick-action-button::before,
.admin-quick-actions .quick-action-button::after {
    display: grid;
    place-items: center;
    line-height: 1;
}

.admin-quick-actions .quick-action-button::before {
    content: none;
}

.admin-quick-actions .quick-action-button::after {
    content: ">";
    justify-self: end;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    color: rgba(6, 23, 25, .62);
    font-size: 15px;
    font-weight: 950;
}

.admin-quick-actions .quick-action-button:hover,
.admin-quick-actions .quick-action-button:focus-visible {
    border-color: rgba(8, 118, 108, .46);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .38),
        0 16px 32px rgba(8, 118, 108, .26);
    filter: none;
    outline: none;
    transform: translateY(-2px);
}

.admin-quick-actions .quick-action-button:active {
    box-shadow:
        inset 0 2px 8px rgba(8, 118, 108, .22),
        0 8px 18px rgba(8, 118, 108, .18);
    transform: translateY(0);
}

.admin-quick-actions .quick-action-button.button-secondary {
    border-color: rgba(134, 155, 169, .28);
    border-bottom-color: rgba(134, 155, 169, .44);
    background: linear-gradient(180deg, #ffffff 0%, #edf4f7 100%);
    color: var(--ink);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .95),
        0 12px 24px rgba(16, 24, 32, .10);
}

.admin-quick-actions .quick-action-button.button-secondary::before {
    border-color: rgba(8, 118, 108, .18);
    background: #e8f8f5;
    color: var(--brand-dark);
}

.admin-quick-actions .quick-action-button.button-secondary:hover,
.admin-quick-actions .quick-action-button.button-secondary:focus-visible {
    border-color: rgba(8, 118, 108, .32);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .95),
        0 16px 30px rgba(16, 24, 32, .15);
}

.admin-quick-actions .quick-action-button.button-danger-soft {
    border-color: rgba(232, 75, 75, .28);
    border-bottom-color: rgba(232, 75, 75, .44);
    background: linear-gradient(180deg, #fff9f9 0%, #ffe8e8 100%);
    color: #a72f2f;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .90),
        0 12px 24px rgba(232, 75, 75, .12);
}

.admin-quick-actions .quick-action-button.button-danger-soft::before {
    border-color: rgba(232, 75, 75, .24);
    background: #ffe1e1;
    color: #a72f2f;
}

.admin-quick-actions .quick-action-button.button-danger-soft:hover,
.admin-quick-actions .quick-action-button.button-danger-soft:focus-visible {
    border-color: rgba(232, 75, 75, .48);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .90),
        0 16px 30px rgba(232, 75, 75, .18);
}

.button-link.button-danger-soft {
    border-color: rgba(232, 75, 75, .24);
    background: #fff0f0;
    color: #a72f2f;
}

.badge.badge-link {
    color: var(--brand-dark);
    text-decoration: none;
}

.dashboard-action-panel {
    align-content: start;
}

.dashboard-action-panel .dnd-zone {
    min-height: 74px;
    text-decoration: none;
}

.dashboard-action-panel .dnd-zone.neutral {
    border-color: rgba(126, 143, 157, .30);
    border-left-color: #9aa9b6;
    background: linear-gradient(135deg, #f4f7f9 0%, #f8fbfc 72%);
}

.dashboard-action-panel .dnd-zone.neutral::before {
    content: "в‡©";
    border-color: rgba(126, 143, 157, .36);
    background: rgba(126, 143, 157, .12);
    color: #526170;
}

.dashboard-action-panel .dnd-zone.info::before {
    content: "в†»";
}

.conflicts-dashboard-card {
    display: grid;
    gap: 12px;
}

.conflicts-dashboard-card h2 {
    margin: 0;
    font-size: 24px;
    line-height: 1.05;
}

.conflict-row {
    grid-template-columns: minmax(130px, .78fr) minmax(170px, .9fr) minmax(84px, auto) minmax(220px, 1fr) auto;
}

.row-description {
    min-width: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.conflict-row-actions,
.admin-dashboard-footer-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.conflict-row-actions .inline-form {
    margin: 0;
}

.admin-dashboard-footer-actions {
    justify-content: flex-start;
}

.dnd-reason-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(8, 18, 28, .46);
}

.dnd-reason-modal[hidden] {
    display: none;
}

.dnd-reason-dialog {
    width: min(420px, 100%);
    padding: 22px;
    border: 1px solid #d8e5ec;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(16, 24, 32, .28);
}

.dnd-reason-dialog h2 {
    margin: 0 0 8px;
    font-size: 22px;
}

.dnd-reason-dialog p {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
}

.dnd-reason-dialog textarea {
    width: 100%;
    min-height: 112px;
    resize: vertical;
}

.dnd-reason-error {
    margin-top: 8px;
    color: #a72f2f;
    font-size: 12px;
    font-weight: 800;
}

.dnd-reason-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 14px;
}

.dnd-reason-actions button {
    width: auto;
    min-height: 42px;
    padding: 10px 16px;
}
.empty-state {
    padding: 22px;
    border: 1px dashed #cbdbe5;
    border-radius: 18px;
    background: #f8fbfc;
    color: var(--muted);
}

.checkline {
    display: flex;
    gap: 8px;
    align-items: center;
    font-weight: 700;
}

.checkline input[type="checkbox"] {
    width: auto;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 8px;
    margin: 10px 0 18px;
}

.checkbox-grid .checkline {
    background: #eef5f7;
    border: 1px solid #d8e5ec;
    border-radius: 14px;
    flex-direction: column;
    align-items: stretch;
    margin: 0;
    padding: 12px;
}

.checkbox-grid .checkline label {
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 0;
}

.checkbox-grid .checkline input[type="text"] {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
}

.checklist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 18px;
}

.checklist-section {
    margin-bottom: 0;
}

.checklist-items {
    display: grid;
    gap: 12px;
}

.checklist-item {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 12px;
    align-items: start;
    background: #f6fafc;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 14px;
    transition: background .15s ease, border-color .15s ease, opacity .15s ease;
}

.checklist-item.is-done {
    background: #ecfdf9;
    border-color: rgba(40, 190, 174, .45);
}

.checklist-item p {
    margin: 0 0 8px;
    line-height: 1.45;
}

.checklist-item a {
    display: inline-block;
    margin-right: 10px;
}

.check-mark {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 10px;
    background: #ffffff;
    border: 2px solid var(--brand);
    color: var(--brand-dark);
    font-weight: 900;
    cursor: pointer;
}

.check-mark input {
    width: 18px;
    height: 18px;
    min-height: 0;
    margin: 0;
    padding: 0;
    accent-color: var(--brand);
    cursor: pointer;
}

.form-switch {
    margin-top: 16px;
}

.compact-page {
    max-width: 780px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 18px;
}

.bar-row {
    margin: 0 0 18px;
}

.bar-row-title {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 7px;
    color: var(--muted);
}

.bar-row-title strong {
    color: var(--ink);
}

.bar-track {
    height: 14px;
    background: #e8f0f4;
    border-radius: 999px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    min-width: 8px;
    background: linear-gradient(90deg, var(--brand), var(--brand-dark));
    border-radius: 999px;
}

.bar-fill.brand-2 {
    background: linear-gradient(90deg, #f3b43f, #f98b24);
}

.bar-fill.plan {
    background: linear-gradient(90deg, #9fb1bf, #657481);
}

.bar-fill.shift-day {
    background: linear-gradient(90deg, var(--brand), var(--brand-dark));
}

.bar-fill.shift-night {
    background: linear-gradient(90deg, #f3b43f, #f98b24);
}

.bar-fill.shift-unknown {
    background: linear-gradient(90deg, #9fb1bf, #657481);
}

.bar-row.compact {
    margin-bottom: 12px;
}

.shift-compare-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.shift-card {
    background: #f6fafc;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 16px;
}

.shift-card.day {
    border-left: 8px solid var(--brand);
}

.shift-card.night {
    border-left: 8px solid var(--warn);
}

.shift-card.unknown {
    border-left: 8px solid #9fb1bf;
}

.shift-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 12px 0 14px;
}

.shift-metrics div {
    background: #ffffff;
    border-radius: 14px;
    padding: 10px;
}

.shift-metrics span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 4px;
}

.trend-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 14px;
}

.trend-card {
    background: #f6fafc;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 14px;
}

.trend-card.active {
    border-color: var(--brand);
    box-shadow: inset 0 0 0 2px rgba(33, 168, 154, 0.18);
}

.trend-date {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 10px;
}

.trend-values,
.trend-meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.trend-values div {
    background: #ffffff;
    border-radius: 14px;
    flex: 1;
    padding: 10px;
}

.trend-values span,
.trend-meta {
    color: var(--muted);
    font-size: 13px;
}

.trend-values span {
    display: block;
    margin-bottom: 4px;
}

.trend-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.trend-summary-card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 16px;
}

.trend-summary-card.success {
    border-left: 8px solid var(--ok);
}

.trend-summary-card.danger {
    border-left: 8px solid var(--danger);
}

.trend-summary-card span,
.trend-summary-card small {
    color: var(--muted);
    display: block;
}

.trend-summary-card strong {
    display: block;
    font-size: 24px;
    margin: 8px 0 6px;
}

.success-text {
    color: var(--ok);
}

.danger-text {
    color: var(--danger);
}

.mining-master-screen {
    background: #eef3f5;
}

.mining-master-header .app-header {
    min-height: 0;
}

.mining-master-title {
    align-items: flex-start;
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 1fr);
}

.mining-master-title h1 {
    margin-bottom: 6px;
}

.shift-badge {
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 16px;
    color: #e6f3f5;
    margin-top: 2px;
    min-width: 172px;
    padding: 12px 14px;
    text-align: left;
    width: fit-content;
}

.shift-badge span,
.master-metric-card span,
.panel-heading span,
.lane-head span,
.assignment-meta,
.truck-chip span {
    color: var(--muted);
    font-size: 13px;
}

.shift-badge span {
    color: #bad0d8;
    display: block;
}

.shift-badge strong {
    color: #ffffff;
    display: block;
    font-size: 18px;
    margin-top: 4px;
}

.mining-master-page {
    display: grid;
    gap: 14px;
}

.master-metrics {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.master-metric-card,
.assignment-form-panel,
.free-trucks-panel,
.assignment-lane {
    background: #ffffff;
    border: 1px solid rgba(196, 211, 220, .9);
    border-radius: 8px;
    box-shadow: 0 14px 28px rgba(17, 35, 48, .08);
}

.master-metric-card {
    border-left: 6px solid #8ea2af;
    min-height: 86px;
    padding: 14px 16px;
}

.master-metric-card.pending {
    border-left-color: var(--warn);
}

.master-metric-card.success {
    border-left-color: var(--ok);
}

.master-metric-card strong {
    color: var(--ink);
    display: block;
    font-size: 34px;
    line-height: 1;
    margin-top: 9px;
}

.master-workspace {
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(320px, .9fr) minmax(420px, 1.1fr);
}

.assignment-form-panel,
.free-trucks-panel,
.assignment-lane {
    padding: 16px;
}

.panel-heading,
.lane-head {
    align-items: flex-start;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 12px;
}

.panel-heading h2 {
    font-size: 20px;
    margin: 2px 0 0;
}

.master-assignment-form {
    display: grid;
    gap: 10px;
}

.master-assignment-form label {
    display: grid;
    gap: 6px;
    margin: 0;
}

.master-assignment-form select,
.master-assignment-form button {
    margin: 0;
    min-height: 46px;
}

.master-assignment-form button {
    border-radius: 8px;
    margin-top: 2px;
}

.master-hint {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
    margin: 12px 0 0;
}

.free-truck-list {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(auto-fit, minmax(138px, 1fr));
}

.truck-chip,
.assignment-card {
    background: #f7fafb;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.truck-chip {
    padding: 10px 12px;
}

.truck-chip strong,
.truck-chip span {
    display: block;
}

.truck-chip strong {
    font-size: 18px;
}

.assignment-board {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.lane-head {
    border-bottom: 1px solid var(--line);
    padding-bottom: 10px;
}

.lane-head strong {
    align-items: center;
    background: #eef5f7;
    border-radius: 999px;
    color: var(--ink);
    display: inline-flex;
    font-size: 14px;
    justify-content: center;
    min-width: 34px;
    padding: 5px 9px;
}

.assignment-lane.pending {
    border-top: 5px solid var(--warn);
}

.assignment-lane.accepted {
    border-top: 5px solid var(--ok);
}

.assignment-lane.recent {
    border-top: 5px solid #8ea2af;
}

.assignment-list {
    display: grid;
    gap: 8px;
}

.assignment-card {
    display: grid;
    gap: 8px;
    padding: 12px;
}

.assignment-card.compact {
    align-items: center;
    grid-template-columns: minmax(0, 1fr) auto;
}

.assignment-pair {
    display: grid;
    gap: 2px;
}

.assignment-pair strong {
    font-size: 20px;
}

.assignment-pair span {
    color: var(--muted);
}

.assignment-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
}

.status-pill {
    align-self: center;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    padding: 5px 9px;
    white-space: nowrap;
}

.status-pill.status-pending {
    background: #fff5dc;
    color: #7a4a00;
}

.status-pill.status-accepted {
    background: #def8ec;
    color: #0b6845;
}

.status-pill.status-cancelled {
    background: #eef2f4;
    color: #586874;
}

.empty-state {
    background: #f7fafb;
    border: 1px dashed #c8d7df;
    border-radius: 8px;
    color: var(--muted);
    font-size: 14px;
    padding: 14px;
}

.employee-profile-head {
    align-items: flex-start;
    display: flex;
    gap: 18px;
    margin: 8px 0 22px;
}

.employee-photo-box {
    display: grid;
    flex: 0 0 132px;
    gap: 8px;
}

.employee-photo-card {
    align-items: center;
    background: #ffffff;
    border: 2px solid var(--line);
    border-radius: 26px;
    padding: 0;
    cursor: pointer;
    display: flex;
    flex: 0 0 132px;
    height: 132px;
    justify-content: center;
    overflow: hidden;
    position: relative;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
    width: 132px;
}

.employee-photo-card:has(img) .employee-photo-plus {
    display: none;
}

.employee-photo-card:hover,
.employee-photo-card:focus-within {
    border-color: var(--brand);
    box-shadow: 0 14px 28px rgba(33, 168, 154, 0.18);
    transform: translateY(-1px);
}

.employee-photo-card img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.employee-photo-placeholder {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
}

.employee-photo-head {
    background: #c6d3da;
    border-radius: 999px;
    display: block;
    height: 42px;
    width: 42px;
}

.employee-photo-body {
    background: #c6d3da;
    border-radius: 28px 28px 12px 12px;
    display: block;
    height: 42px;
    width: 74px;
}

.employee-photo-plus {
    align-items: center;
    background: var(--ok);
    border: 2px solid #ffffff;
    border-radius: 999px;
    bottom: 8px;
    color: #ffffff;
    display: flex;
    font-size: 20px;
    font-weight: 900;
    height: 28px;
    justify-content: center;
    line-height: 1;
    position: absolute;
    right: 8px;
    width: 28px;
}

.employee-photo-controls {
    align-items: center;
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 4px;
}

.employee-photo-control {
    align-items: center;
    appearance: none;
    background: #ffffff;
    border: 1px solid currentColor;
    border-radius: 999px;
    cursor: pointer;
    display: flex;
    flex: 0 0 28px;
    font-family: Arial, sans-serif;
    font-size: 0;
    font-weight: 500;
    height: 28px;
    justify-content: center;
    line-height: 1;
    margin: 0;
    min-height: 0;
    padding: 0;
    text-decoration: none;
    width: 28px;
}

.employee-photo-control.add {
    color: var(--ok);
}

.employee-photo-control.remove {
    color: var(--danger);
}

.employee-photo-control::before {
    align-items: center;
    display: flex;
    font-size: 16px;
    font-weight: 700;
    height: 100%;
    justify-content: center;
    line-height: 1;
    width: 100%;
}

.employee-photo-control.add::before {
    content: "+";
}

.employee-photo-control.remove::before {
    content: "-";
}

.employee-photo-control:hover {
    background: #f8fbfc;
    transform: translateY(-1px);
}

.employee-profile-text {
    display: grid;
    gap: 6px;
}

.employee-profile-text strong {
    color: var(--ink);
    font-size: 28px;
    line-height: 1.1;
}

.employee-profile-text span {
    color: var(--ink);
    font-weight: 700;
}

.employee-profile-text small {
    color: var(--muted);
    max-width: 520px;
}

.employee-profile-text > small:not(.employee-photo-selected):not(.employee-photo-hint) {
    display: none;
}

.employee-photo-selected {
    display: block;
}

.employee-photo-upload-field input[type="file"] {
    border: 0;
    display: none;
    height: 1px;
    min-height: 0;
    min-width: 0;
    opacity: 0;
    overflow: hidden;
    padding: 0;
    position: absolute;
    right: auto;
    width: 1px;
}

.employee-photo-modal[hidden] {
    display: none;
}

.employee-photo-modal {
    align-items: center;
    background: rgba(8, 19, 29, 0.82);
    bottom: 0;
    display: flex;
    justify-content: center;
    left: 0;
    padding: 36px;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 1000;
}

.employee-photo-modal img {
    background: #ffffff;
    border-radius: 18px;
    max-height: min(82vh, 900px);
    max-width: min(88vw, 900px);
    object-fit: contain;
}

.employee-photo-modal-close {
    align-items: center;
    background: #ffffff;
    border: 0;
    border-radius: 999px;
    color: var(--ink);
    cursor: pointer;
    display: flex;
    font-size: 30px;
    font-weight: 900;
    height: 44px;
    justify-content: center;
    min-height: 0;
    padding: 0;
    position: fixed;
    right: 26px;
    top: 22px;
    width: 44px;
}

.employee-detail-screen {
    overflow-x: hidden;
}

.employee-detail-screen .admin-page {
    display: grid;
    gap: 14px;
    padding: 12px 0 24px;
}

.employee-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(330px, 360px);
    gap: 14px;
    align-items: start;
}

.employee-detail-bottom-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr);
    gap: 14px;
    align-items: start;
}

.employee-detail-card {
    margin: 0;
    padding: 14px;
    border-radius: 16px;
}

.employee-detail-card-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
    margin-bottom: 10px;
}

.employee-detail-card-head h2 {
    margin: 0 0 3px;
    font-size: 22px;
    line-height: 1.05;
}

.employee-detail-card-head p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.3;
}

.employee-detail-profile-head {
    align-items: center;
    min-height: 126px;
    margin: 0 0 12px;
    padding: 12px;
    border: 1px solid #dce8ef;
    border-radius: 16px;
    background: linear-gradient(135deg, #f3fffd 0%, #ffffff 72%);
}

.employee-detail-summary strong {
    font-size: 23px;
}

.employee-detail-summary span {
    width: fit-content;
    padding: 5px 10px;
    border-radius: 999px;
    background: #e8f8f5;
    color: var(--brand-dark);
    font-size: 12px;
    font-weight: 900;
}

.employee-detail-summary .employee-photo-hint {
    max-width: 660px;
    line-height: 1.35;
}

.employee-detail-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.employee-detail-field {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.employee-detail-field.field-wide {
    grid-column: 1 / -1;
}

.employee-detail-field label,
.employee-access-issue-form label {
    margin: 0;
    color: var(--ink);
    font-size: 12px;
    font-weight: 900;
    line-height: 1.2;
}

.employee-detail-field input,
.employee-detail-field select,
.employee-access-issue-form select,
.employee-access-actions input {
    width: 100%;
    min-width: 0;
    height: 46px;
    min-height: 46px;
    margin: 0;
    border-color: #d6e3ea;
    border-radius: 12px;
    background: #ffffff;
    font-size: 14px;
}

.employee-detail-field textarea {
    width: 100%;
    min-width: 0;
    margin: 0;
    border-color: #d6e3ea;
    border-radius: 12px;
    background: #ffffff;
    font-size: 14px;
}

.employee-detail-field textarea {
    min-height: 70px;
    resize: vertical;
}

.employee-card-v2 {
    display: grid;
    gap: 14px;
    margin: 0;
}

.employee-card-v2-top {
    display: grid;
    grid-template-columns: 235px minmax(0, 640px);
    gap: 22px;
    align-items: start;
}

.employee-card-v2-photo-box {
    justify-items: center;
    align-content: start;
    width: 235px;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.employee-card-v2-photo {
    width: 235px;
    height: 235px;
    flex-basis: 235px;
    border-radius: 18px;
}

.employee-card-v2-photo .employee-photo-head {
    width: 46px;
    height: 46px;
}

.employee-card-v2-photo .employee-photo-body {
    width: 84px;
    height: 46px;
}

.employee-card-v2-photo-controls {
    display: flex;
    justify-content: center;
    gap: 18px;
}

.employee-photo-symbol {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    min-height: 22px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--brand-dark);
    cursor: pointer;
    font-family: inherit;
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
}

.employee-photo-symbol.remove {
    color: var(--danger);
}

.employee-photo-symbol:disabled {
    color: #b8c6cf;
    cursor: not-allowed;
}

.employee-card-v2-name-grid {
    display: grid;
    gap: 7px;
    max-width: 640px;
}

.employee-card-v2-grid,
.employee-card-v2-textareas {
    display: grid;
    gap: 12px 18px;
    margin-top: 14px;
}

.employee-card-v2-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.employee-card-v2-textareas {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.employee-card-v2 .employee-detail-field {
    gap: 4px;
}

.employee-card-v2-grid .employee-detail-field input,
.employee-card-v2-grid .employee-detail-field select,
.employee-card-v2-textareas .employee-detail-field textarea,
.employee-card-v2-name-grid .employee-detail-field input {
    width: 100%;
    min-width: 0;
    margin: 0;
    border-color: #d6e3ea;
    border-radius: 10px;
    background: #ffffff;
    font-size: 14px;
}

.employee-card-v2-grid .employee-detail-field input,
.employee-card-v2-grid .employee-detail-field select,
.employee-card-v2-name-grid .employee-detail-field input {
    height: 46px;
    min-height: 46px;
}

.employee-card-v2-textareas .employee-detail-field textarea {
    min-height: 88px;
    resize: vertical;
}

.employee-card-v2-hidden {
    display: none;
}

.employee-detail-save-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 14px;
}

.employee-detail-save-row button,
.employee-access-issue-form button {
    min-height: 46px;
    border-radius: 13px;
    box-shadow: 0 12px 24px rgba(8, 118, 108, .18);
}

.employee-detail-screen .employee-detail-save-row button,
.employee-detail-screen .employee-access-issue-form button,
.employee-detail-screen .employee-danger-actions button,
.employee-detail-screen .employee-access-actions button {
    min-height: 46px;
    font-size: 15px;
    line-height: 1.15;
}

.employee-detail-side {
    display: grid;
    gap: 14px;
}

.employee-access-issue-form {
    display: grid;
    gap: 10px;
}

.employee-danger-actions {
    display: grid;
    gap: 10px;
}

.employee-danger-actions form,
.employee-access-actions form {
    margin: 0;
}

.employee-danger-actions button {
    width: 100%;
    min-height: 44px;
    border-radius: 13px;
}

.button-warning {
    background: var(--warn);
    color: #2f2100;
}

.button-danger {
    background: var(--danger);
    color: #ffffff;
}

.employee-danger-note {
    margin: 12px 0 0;
    font-size: 12px;
    line-height: 1.4;
}

.employee-access-list {
    display: grid;
    gap: 10px;
}

.employee-access-card {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid #dce8ef;
    border-left: 5px solid var(--brand);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 10px 22px rgba(16, 24, 32, .055);
}

.employee-access-card.access-activated {
    border-left-color: var(--ok);
}

.employee-access-card.access-not_activated {
    border-left-color: var(--warn);
    background: #fffaf0;
}

.employee-access-card.access-blocked,
.employee-access-card.access-deactivated {
    border-left-color: var(--danger);
    background: #fff6f6;
}

.employee-access-main {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: space-between;
}

.employee-access-main strong {
    font-size: 16px;
    line-height: 1.2;
}

.employee-access-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.employee-access-actions {
    display: grid;
    grid-template-columns: minmax(210px, 1fr) auto auto;
    gap: 8px;
    align-items: center;
}

.employee-access-actions form:first-child {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.employee-log-list {
    display: grid;
    gap: 8px;
}

.employee-log-row {
    display: grid;
    grid-template-columns: minmax(118px, auto) minmax(0, 1fr);
    gap: 4px 12px;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid #dce8ef;
    border-left: 5px solid #9aa9b6;
    border-radius: 13px;
    background: #ffffff;
}

.employee-log-row span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.employee-log-row strong {
    font-size: 13px;
    line-height: 1.25;
}

.employee-log-row span:last-child {
    grid-column: 2;
}

.admin-employee-detail-shell .employee-detail-page {
    display: grid;
    gap: 12px;
    padding-top: 14px;
    padding-bottom: 14px;
    overflow: hidden;
}

.admin-employee-detail-shell .employee-detail-grid {
    grid-template-columns: minmax(0, 1fr) minmax(380px, 430px);
    gap: 12px;
    align-items: start;
    min-height: 0;
}

.admin-employee-detail-shell .employee-detail-card {
    border: 1px solid var(--admin-line);
    border-radius: 8px;
    background: var(--admin-panel);
    box-shadow: var(--admin-shadow);
}

.admin-employee-detail-shell .employee-profile-form {
    display: grid;
    gap: 10px;
}

.admin-employee-detail-shell .employee-detail-card-head {
    margin-bottom: 4px;
}

.admin-employee-detail-shell .employee-detail-card-head h2 {
    color: var(--admin-ink);
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.admin-employee-detail-shell .employee-detail-card-head p,
.admin-employee-detail-shell .muted {
    color: var(--admin-muted);
}

.admin-employee-detail-shell .employee-state-badge,
.admin-employee-detail-shell .status-chip,
.admin-employee-detail-shell .admin-chip {
    border-radius: 8px;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.admin-employee-detail-shell .employee-profile-head {
    padding: 0;
}

.admin-employee-detail-shell .employee-card-v2-top {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.admin-employee-detail-shell .employee-card-v2-photo-box {
    width: 220px;
}

.admin-employee-detail-shell .employee-card-v2-photo {
    width: 220px;
    height: 220px;
    flex-basis: 220px;
    border: 1px solid var(--admin-line);
    border-radius: 8px;
    background: color-mix(in srgb, var(--admin-panel-soft) 82%, var(--admin-green) 18%);
}

.admin-employee-detail-shell .employee-card-v2-photo img {
    border-radius: 8px;
}

.admin-employee-detail-shell .employee-card-v2-photo-controls {
    min-height: 28px;
    margin-top: 8px;
}

.admin-employee-detail-shell .employee-photo-symbol {
    min-width: 34px;
    min-height: 28px;
    color: var(--admin-green);
    font-size: 28px;
}

.admin-employee-detail-shell .employee-photo-symbol.remove {
    color: var(--admin-red);
}

.admin-employee-detail-shell .employee-photo-symbol:disabled {
    color: var(--admin-muted);
    opacity: .45;
}

.admin-employee-detail-shell .employee-card-v2-name-grid {
    gap: 7px;
    max-width: none;
}

.admin-employee-detail-shell .employee-detail-field label,
.admin-employee-detail-shell .employee-access-issue-form label {
    color: var(--admin-ink);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0;
}

.admin-employee-detail-shell .employee-detail-field input,
.admin-employee-detail-shell .employee-detail-field select,
.admin-employee-detail-shell .employee-detail-field textarea,
.admin-employee-detail-shell .employee-access-issue-form select,
.admin-employee-detail-shell .employee-access-actions input {
    border-color: var(--admin-line);
    border-radius: 8px;
    background: var(--admin-panel);
    color: var(--admin-ink);
    font-size: 14px;
}

.admin-employee-detail-shell .employee-detail-field input,
.admin-employee-detail-shell .employee-detail-field select,
.admin-employee-detail-shell .employee-access-issue-form select,
.admin-employee-detail-shell .employee-access-actions input,
.admin-employee-detail-shell .employee-card-v2-grid .employee-detail-field input,
.admin-employee-detail-shell .employee-card-v2-grid .employee-detail-field select,
.admin-employee-detail-shell .employee-card-v2-name-grid .employee-detail-field input {
    height: 40px;
    min-height: 40px;
}

.admin-employee-detail-shell .employee-card-v2-grid,
.admin-employee-detail-shell .employee-card-v2-textareas {
    gap: 10px 12px;
    margin-top: 8px;
}

.admin-employee-detail-shell .employee-card-v2-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-employee-detail-shell .employee-card-v2-textareas .employee-detail-field textarea {
    min-height: 82px;
}

.admin-employee-detail-shell .employee-detail-save-row {
    margin-top: 4px;
}

.admin-employee-detail-shell .employee-detail-save-row button,
.admin-employee-detail-shell .employee-access-issue-form button,
.admin-employee-detail-shell .employee-danger-actions button,
.admin-employee-detail-shell .employee-access-actions button {
    min-height: 40px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    box-shadow: none;
}

.admin-employee-detail-shell .employee-detail-save-row button,
.admin-employee-detail-shell .employee-access-issue-form button {
    background: var(--admin-green);
    color: #061311;
}

.admin-employee-detail-shell .employee-detail-side,
.admin-employee-detail-shell .employee-detail-bottom-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    min-width: 0;
}

.admin-employee-detail-shell .employee-access-issue-form,
.admin-employee-detail-shell .employee-danger-actions,
.admin-employee-detail-shell .employee-access-list,
.admin-employee-detail-shell .employee-log-list {
    gap: 8px;
}

.admin-employee-detail-shell .employee-access-card,
.admin-employee-detail-shell .employee-log-row {
    border-color: var(--admin-line);
    border-radius: 8px;
    background: var(--admin-panel);
    box-shadow: none;
}

.admin-employee-detail-shell .employee-access-card.access-not_activated {
    background: color-mix(in srgb, var(--admin-panel) 86%, var(--admin-yellow) 14%);
}

.admin-employee-detail-shell .employee-access-card.access-blocked,
.admin-employee-detail-shell .employee-access-card.access-deactivated {
    background: color-mix(in srgb, var(--admin-panel) 88%, var(--admin-red) 12%);
}

.admin-employee-detail-shell .employee-access-actions {
    grid-template-columns: 1fr;
}

.admin-employee-detail-shell .employee-access-actions form:first-child {
    grid-template-columns: 1fr;
}

.admin-employee-detail-shell .employee-access-meta {
    grid-template-columns: 1fr;
    color: var(--admin-muted);
}

.admin-employee-detail-shell .employee-log-row {
    grid-template-columns: minmax(86px, auto) minmax(0, 1fr);
}

.admin-employee-detail-shell .employee-log-row span,
.admin-employee-detail-shell .employee-log-row strong,
.admin-employee-detail-shell .employee-access-main strong {
    color: var(--admin-ink);
}

.admin-employee-detail-shell .employee-log-row span {
    color: var(--admin-muted);
}

.admin-employee-detail-shell.admin-night .employee-detail-field input,
.admin-employee-detail-shell.admin-night .employee-detail-field select,
.admin-employee-detail-shell.admin-night .employee-detail-field textarea,
.admin-employee-detail-shell.admin-night .employee-access-issue-form select,
.admin-employee-detail-shell.admin-night .employee-access-actions input {
    background: var(--admin-panel-soft);
}

@media (max-width: 1180px) {
    .admin-employee-detail-shell .employee-detail-grid {
        grid-template-columns: 1fr;
        overflow: visible;
    }

    .admin-employee-detail-shell .employee-card-v2-top {
        grid-template-columns: 180px minmax(0, 1fr);
    }

    .admin-employee-detail-shell .employee-card-v2-photo-box,
    .admin-employee-detail-shell .employee-card-v2-photo {
        width: 180px;
    }

    .admin-employee-detail-shell .employee-card-v2-photo {
        height: 180px;
        flex-basis: 180px;
    }
}

@media (max-width: 720px) {
    .admin-employee-detail-shell .employee-card-v2-top,
    .admin-employee-detail-shell .employee-card-v2-grid,
    .admin-employee-detail-shell .employee-card-v2-textareas {
        grid-template-columns: 1fr;
    }

    .admin-employee-detail-shell .employee-card-v2-photo-box,
    .admin-employee-detail-shell .employee-card-v2-photo {
        width: min(220px, 100%);
    }

    .admin-employee-detail-shell .employee-card-v2-photo {
        height: min(220px, 58vw);
        flex-basis: auto;
    }
}

.employee-create-screen {
    overflow-x: hidden;
}

.employee-create-screen .admin-page {
    display: grid;
    gap: 10px;
    padding: 10px 0 16px;
}

.employee-create-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(330px, 360px);
    gap: 12px;
    align-items: start;
}

.employee-create-card {
    margin: 0;
    padding: 14px;
    border-radius: 16px;
}

.employee-create-main {
    display: grid;
    gap: 10px;
}

.employee-create-section {
    display: grid;
    gap: 9px;
    padding: 11px 12px;
    border: 1px solid #dce8ef;
    border-radius: 16px;
    background: #ffffff;
}

.employee-create-section h3 {
    margin: 0;
    font-size: 17px;
    line-height: 1.15;
}

.employee-create-access-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, .88fr);
    gap: 12px;
    align-items: end;
}

.employee-create-checkline {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    min-height: 52px;
    margin: 0;
    padding: 8px 10px;
    border: 1px solid rgba(243, 180, 63, .34);
    border-left: 5px solid var(--warn);
    border-radius: 14px;
    background: #fffaf0;
    cursor: pointer;
}

.employee-create-checkline input {
    width: 18px;
    height: 18px;
    margin: 0;
}

.employee-create-checkline span {
    display: grid;
    gap: 2px;
}

.employee-create-checkline strong {
    font-size: 13px;
    line-height: 1.2;
}

.employee-create-checkline small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.25;
}

.employee-create-side {
    display: grid;
    gap: 12px;
}

.employee-create-access-stack {
    display: grid;
    gap: 12px;
}

.employee-create-photo {
    width: 120px;
    height: 120px;
    min-height: 120px;
}

.employee-create-card-v2 .employee-create-photo {
    width: 235px;
    height: 235px;
    min-height: 235px;
    flex-basis: 235px;
}

.employee-create-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.employee-create-profile-head .employee-photo-selected {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.employee-create-profile-head {
    margin-bottom: 0;
}

.employee-create-result-list {
    display: grid;
    gap: 10px;
}

.employee-create-result-list .admin-summary-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 5px 10px;
}

.employee-create-result-list .summary-main {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
}

.employee-create-result-list .admin-summary-row span:not(.summary-main) {
    justify-self: start;
}

.employee-create-result-list .admin-summary-row strong {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
}

.employee-create-actions {
    display: grid;
    gap: 10px;
}

.employee-create-actions button,
.employee-create-actions .button-link {
    width: 100%;
    min-height: 46px;
    border-radius: 13px;
    font-size: 15px;
    line-height: 1.15;
}

.employee-create-main .employee-detail-fields,
.employee-profile-form .employee-detail-fields {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.employee-create-main .employee-detail-field.field-wide,
.employee-profile-form .employee-detail-field.field-wide {
    grid-column: 1 / -1;
}

.system-admin-references-screen {
    overflow-x: hidden;
}

.system-admin-references-screen .admin-page {
    display: grid;
    gap: 14px;
    padding: 12px 0 18px;
}

.references-control-card,
.references-list-card,
.references-side-card {
    margin: 0;
    border-radius: 16px;
}

.references-control-card {
    padding: 16px 18px;
}

.references-filter-bar {
    display: grid;
    grid-template-columns: minmax(300px, 1.45fr) minmax(210px, .8fr) minmax(180px, .72fr) minmax(118px, .36fr);
    gap: 12px;
    align-items: end;
    padding: 10px 10px 12px;
    border: 1px solid rgba(211, 225, 234, .9);
    border-radius: 14px;
    background: #f8fbfc;
}

.references-filter-bar .field {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.references-filter-bar label {
    margin: 0;
    color: var(--ink);
    font-size: 13px;
    font-weight: 900;
    line-height: 1.2;
}

.references-filter-bar input,
.references-filter-bar select,
.references-filter-bar button {
    width: 100%;
    height: 46px;
    min-height: 46px;
    margin: 0;
    font-size: 14px;
}

.references-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(310px, 360px);
    gap: 14px;
    align-items: start;
}

.references-list-card {
    padding: 18px 20px;
}

.references-list {
    display: grid;
    gap: 14px;
}

.references-section {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.references-section-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.references-section-head h3 {
    margin: 0;
    font-size: 17px;
    line-height: 1.15;
}

.references-section-head span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.references-section-list {
    display: grid;
    gap: 8px;
}

.reference-row {
    display: grid;
    grid-template-columns: minmax(230px, 1fr) 86px 120px 104px;
    gap: 10px;
    align-items: center;
    min-height: 52px;
    padding: 8px 10px;
    border: 1px solid #dce8ef;
    border-left: 4px solid var(--brand);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(16, 24, 32, .055);
}

.reference-row-ok {
    border-left-color: var(--ok);
}

.reference-row-warning {
    border-left-color: var(--warn);
    background: #fffaf0;
}

.reference-main {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.reference-main strong {
    overflow: hidden;
    color: var(--ink);
    font-size: 14px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.reference-main span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.reference-count {
    justify-self: start;
    min-width: 44px;
    padding: 5px 9px;
    border-radius: 999px;
    background: #eef5f7;
    color: var(--ink);
    font-size: 13px;
    font-weight: 900;
    text-align: center;
}

.reference-state {
    justify-self: start;
    width: fit-content;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
}

.reference-state-ok {
    background: #e8f8f5;
    color: var(--brand-dark);
}

.reference-state-warning {
    background: rgba(243, 180, 63, .18);
    color: #9b6200;
}

.reference-state-danger {
    background: rgba(239, 68, 68, .14);
    color: #b4232f;
}

.reference-state-neutral {
    background: #eef5f7;
    color: #526170;
}

.reference-open {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 12px;
    border-radius: 12px;
    background: var(--brand);
    color: var(--ink);
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 10px 18px rgba(17, 35, 48, .08);
}

.reference-open:hover,
.reference-open:focus-visible {
    filter: none;
    outline: none;
    transform: translateY(-1px);
}

.reference-open.is-disabled {
    background: #e8eff3;
    color: var(--muted);
    box-shadow: none;
}

.references-side {
    display: grid;
    gap: 14px;
}

.references-side-card {
    padding: 14px;
}

.references-status-list,
.references-actions {
    display: grid;
    gap: 10px;
}

.references-status-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    min-height: 46px;
    padding: 8px 10px;
    border: 1px solid #dce8ef;
    border-left: 5px solid #9aa9b6;
    border-radius: 12px;
    background: #ffffff;
}

.references-status-row.row-ok {
    border-left-color: var(--ok);
}

.references-status-row.row-warning {
    border-left-color: var(--warn);
    background: #fffaf0;
}

.references-status-row.row-neutral {
    border-left-color: #9aa9b6;
}

.references-status-row span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.references-status-row strong {
    font-size: 16px;
    line-height: 1;
}

.references-actions .button-link {
    width: 100%;
    min-height: 46px;
    border-radius: 13px;
    font-size: 15px;
    line-height: 1.15;
}

.system-admin-reference-detail-screen {
    overflow-x: hidden;
}

.system-admin-reference-detail-screen .admin-page {
    display: grid;
    gap: 14px;
    padding: 12px 0 18px;
}

.reference-detail-control-card,
.reference-records-card,
.reference-editor-card {
    margin: 0;
    border-radius: 16px;
}

.reference-detail-control-card {
    padding: 16px 18px;
}

.reference-detail-filter-bar {
    display: grid;
    grid-template-columns: minmax(300px, 1fr) minmax(180px, .45fr) minmax(118px, .22fr);
    gap: 12px;
    align-items: end;
    padding: 10px 10px 12px;
    border: 1px solid rgba(211, 225, 234, .9);
    border-radius: 14px;
    background: #f8fbfc;
}

.reference-detail-filter-bar .field {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.reference-detail-filter-bar label,
.reference-editor-fields label {
    margin: 0;
    color: var(--ink);
    font-size: 13px;
    font-weight: 900;
    line-height: 1.2;
}

.reference-detail-filter-bar input,
.reference-detail-filter-bar select,
.reference-detail-filter-bar button,
.reference-detail-filter-bar a,
.reference-editor-fields input,
.reference-editor-fields select {
    width: 100%;
    height: 46px;
    min-height: 46px;
    margin: 0;
    font-size: 14px;
}

.reference-detail-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(330px, 380px);
    gap: 14px;
    align-items: start;
}

.reference-records-card {
    padding: 18px 20px;
}

.reference-record-list {
    display: grid;
    gap: 8px;
}

.reference-record-row {
    display: grid;
    grid-template-columns: minmax(180px, .9fr) minmax(260px, 1.35fr) 96px 94px;
    gap: 10px;
    align-items: center;
    min-height: 58px;
    padding: 9px 10px;
    border: 1px solid #dce8ef;
    border-left: 4px solid var(--brand);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(16, 24, 32, .055);
}

.reference-record-row-ok {
    border-left-color: var(--ok);
}

.reference-record-row-neutral {
    border-left-color: #9aa9b6;
    background: #f8fbfc;
}

.reference-record-row.is-selected {
    border-color: rgba(24, 172, 158, .45);
    box-shadow: 0 0 0 2px rgba(46, 199, 184, .16), 0 12px 26px rgba(16, 24, 32, .08);
}

.reference-record-main,
.reference-record-preview {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.reference-record-main strong {
    overflow: hidden;
    color: var(--ink);
    font-size: 14px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.reference-record-main span,
.reference-record-preview span {
    overflow: hidden;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.reference-record-preview b {
    color: #516273;
}

.reference-empty-state {
    display: grid;
    gap: 4px;
    min-height: 112px;
    place-content: center;
    border: 1px dashed #c9dbe5;
    border-radius: 14px;
    background: #f8fbfc;
    color: var(--muted);
    text-align: center;
}

.reference-empty-state strong {
    color: var(--ink);
    font-size: 16px;
}

.reference-editor-side {
    display: grid;
    gap: 14px;
}

.reference-editor-card {
    padding: 14px;
}

.reference-editor-form,
.reference-editor-fields {
    display: grid;
    gap: 10px;
}

.reference-editor-fields {
    grid-template-columns: 1fr;
}

.reference-editor-fields .employee-detail-field {
    display: grid;
    gap: 6px;
}

.reference-editor-fields textarea {
    width: 100%;
    min-height: 92px;
    margin: 0;
    font-size: 14px;
    resize: vertical;
}

.reference-editor-fields .field-checkbox {
    grid-template-columns: auto 1fr;
    align-items: center;
    min-height: 46px;
    padding: 8px 10px;
    border: 1px solid #d5e5ee;
    border-radius: 12px;
    background: #f8fbfc;
}

.reference-editor-fields .field-checkbox label {
    grid-column: 2;
    grid-row: 1;
}

.reference-editor-fields .field-checkbox input {
    grid-column: 1;
    grid-row: 1;
    width: 20px;
    height: 20px;
    min-height: 20px;
}

.reference-save-button {
    width: 100%;
    min-height: 46px;
    border-radius: 13px;
    font-size: 15px;
}

.reference-messages {
    display: grid;
    gap: 8px;
    margin: 10px 0;
}

.reference-message {
    padding: 9px 10px;
    border: 1px solid #d5e5ee;
    border-radius: 12px;
    background: #f8fbfc;
    color: var(--ink);
    font-size: 13px;
    font-weight: 800;
}

.reference-message-success {
    border-color: rgba(24, 172, 158, .32);
    background: #e8f8f5;
    color: var(--brand-dark);
}

.field-error,
.form-errors {
    color: #b4232f;
    font-size: 12px;
    font-weight: 800;
}

.references-actions form {
    margin: 0;
}

.references-actions button.button-link {
    width: 100%;
    min-height: 46px;
    border: 0;
    border-radius: 13px;
    font-size: 15px;
    cursor: pointer;
}

.button-warning {
    background: var(--warn);
    color: var(--ink);
}

.system-admin-conflicts-screen {
    overflow-x: hidden;
}

.system-admin-conflicts-screen .admin-page {
    display: grid;
    gap: 14px;
    padding: 12px 0 18px;
}

.conflict-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.conflict-metric {
    display: grid;
    gap: 6px;
    min-height: 84px;
    padding: 14px 16px;
    border: 1px solid #dce8ef;
    border-left: 5px solid #9aa9b6;
    border-radius: 16px;
    background: #ffffff;
    color: var(--ink);
    text-decoration: none;
    box-shadow: 0 12px 26px rgba(16, 24, 32, .07);
}

.conflict-metric span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
}

.conflict-metric strong {
    font-size: 30px;
    line-height: 1;
}

.conflict-metric.metric-danger {
    border-left-color: #ef4444;
    background: #fff5f5;
}

.conflict-metric.metric-warning {
    border-left-color: var(--warn);
    background: #fffaf0;
}

.conflict-metric.metric-ok {
    border-left-color: var(--ok);
}

.conflicts-control-card,
.conflicts-list-card,
.conflicts-side-card {
    margin: 0;
    border-radius: 16px;
}

.conflicts-control-card,
.conflicts-list-card {
    padding: 16px 18px;
}

.conflicts-filter-bar {
    display: grid;
    grid-template-columns: minmax(300px, 1fr) minmax(180px, .45fr) minmax(118px, .22fr);
    gap: 12px;
    align-items: end;
    padding: 10px 10px 12px;
    border: 1px solid rgba(211, 225, 234, .9);
    border-radius: 14px;
    background: #f8fbfc;
}

.conflicts-filter-bar .field {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.conflicts-filter-bar label {
    margin: 0;
    color: var(--ink);
    font-size: 13px;
    font-weight: 900;
    line-height: 1.2;
}

.conflicts-filter-bar input,
.conflicts-filter-bar select,
.conflicts-filter-bar a {
    width: 100%;
    height: 46px;
    min-height: 46px;
    margin: 0;
    font-size: 14px;
}

.conflicts-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(310px, 360px);
    gap: 14px;
    align-items: start;
}

.conflicts-list {
    display: grid;
    gap: 9px;
}

.admin-conflict-row {
    display: grid;
    gap: 8px;
    min-height: 118px;
    padding: 12px;
    border: 1px solid #dce8ef;
    border-left: 5px solid #9aa9b6;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(16, 24, 32, .055);
}

.admin-conflict-row.conflict-state-danger {
    border-left-color: #ef4444;
    background: #fff8f8;
}

.admin-conflict-row.conflict-state-warning {
    border-left-color: var(--warn);
    background: #fffaf0;
}

.admin-conflict-row.conflict-state-ok {
    border-left-color: var(--ok);
}

.conflict-row-head,
.conflict-row-meta,
.admin-conflict-actions {
    display: grid;
    gap: 8px;
    align-items: center;
}

.conflict-row-head {
    grid-template-columns: minmax(0, 1fr) auto;
}

.conflict-row-head strong {
    overflow: hidden;
    font-size: 16px;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.conflict-row-meta {
    grid-template-columns: minmax(120px, .55fr) minmax(170px, .9fr) minmax(120px, .6fr) minmax(140px, .72fr);
}

.conflict-row-meta span,
.conflict-comment {
    overflow: hidden;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-conflict-row p {
    margin: 0;
    color: var(--ink);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.32;
}

.conflict-comment {
    padding: 7px 9px;
    border: 1px dashed #c9dbe5;
    border-radius: 10px;
    background: #f8fbfc;
}

.admin-conflict-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-conflict-actions .inline-form {
    margin: 0;
}

.admin-conflict-actions button {
    width: 100%;
    min-height: 46px;
    border: 0;
    border-radius: 13px;
    font-size: 15px;
    cursor: pointer;
}

.conflicts-side {
    display: grid;
    gap: 14px;
}

.conflicts-side-card {
    padding: 14px;
}

.system-admin-logs-screen {
    overflow-x: hidden;
}

.system-admin-logs-screen .admin-page {
    display: grid;
    gap: 14px;
    padding: 12px 0 18px;
}

.log-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.log-metric {
    display: grid;
    gap: 6px;
    min-height: 84px;
    padding: 14px 16px;
    border: 1px solid #dce8ef;
    border-left: 5px solid #9aa9b6;
    border-radius: 16px;
    background: #ffffff;
    color: var(--ink);
    text-decoration: none;
    box-shadow: 0 12px 26px rgba(16, 24, 32, .07);
}

.log-metric span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
}

.log-metric strong {
    font-size: 30px;
    line-height: 1;
}

.log-metric.metric-warning {
    border-left-color: var(--warn);
    background: #fffaf0;
}

.log-metric.metric-ok {
    border-left-color: var(--ok);
}

.log-metric.metric-danger {
    border-left-color: #ef4444;
    background: #fff8f8;
}

.logs-control-card,
.logs-list-card,
.logs-side-card {
    margin: 0;
    border-radius: 16px;
}

.logs-control-card,
.logs-list-card {
    padding: 16px 18px;
}

.logs-filter-bar {
    display: grid;
    grid-template-columns: minmax(300px, 1fr) minmax(180px, .45fr) minmax(118px, .22fr);
    gap: 12px;
    align-items: end;
    padding: 10px 10px 12px;
    border: 1px solid rgba(211, 225, 234, .9);
    border-radius: 14px;
    background: #f8fbfc;
}

.logs-filter-bar .field {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.logs-filter-bar label {
    margin: 0;
    color: var(--ink);
    font-size: 13px;
    font-weight: 900;
    line-height: 1.2;
}

.logs-filter-bar input,
.logs-filter-bar select,
.logs-filter-bar a {
    width: 100%;
    height: 46px;
    min-height: 46px;
    margin: 0;
    font-size: 14px;
}

.logs-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(310px, 360px);
    gap: 14px;
    align-items: start;
}

.admin-log-list {
    display: grid;
    gap: 9px;
}

.admin-log-row {
    display: grid;
    gap: 8px;
    min-height: 106px;
    padding: 12px;
    border: 1px solid #dce8ef;
    border-left: 5px solid #9aa9b6;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(16, 24, 32, .055);
}

.admin-log-row.log-state-danger {
    border-left-color: #ef4444;
    background: #fff8f8;
}

.admin-log-row.log-state-warning {
    border-left-color: var(--warn);
    background: #fffaf0;
}

.admin-log-row.log-state-ok {
    border-left-color: var(--ok);
}

.log-row-head,
.log-row-meta,
.log-row-object,
.log-row-diff {
    display: grid;
    gap: 8px;
}

.log-row-head {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
}

.log-row-head strong {
    overflow: hidden;
    font-size: 16px;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.log-row-meta {
    grid-template-columns: minmax(120px, .55fr) minmax(170px, .9fr) minmax(140px, .7fr);
}

.log-row-meta span,
.log-row-object span,
.log-row-diff span {
    overflow: hidden;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.log-row-object {
    grid-template-columns: minmax(180px, .8fr) minmax(260px, 1fr);
    align-items: center;
}

.log-row-object strong {
    overflow: hidden;
    color: var(--ink);
    font-size: 14px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.log-row-diff {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 7px 9px;
    border: 1px dashed #c9dbe5;
    border-radius: 10px;
    background: #f8fbfc;
}

.log-row-diff b {
    color: #526170;
}

.logs-side {
    display: grid;
    gap: 14px;
}

.logs-side-card {
    padding: 14px;
}

.system-admin-exports-screen {
    overflow-x: hidden;
}

.system-admin-exports-screen .admin-page {
    display: grid;
    gap: 14px;
    padding: 12px 0 18px;
}

.export-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.export-metric {
    display: grid;
    gap: 6px;
    min-height: 84px;
    padding: 14px 16px;
    border: 1px solid #dce8ef;
    border-left: 5px solid #9aa9b6;
    border-radius: 16px;
    background: #ffffff;
    color: var(--ink);
    text-decoration: none;
    box-shadow: 0 12px 26px rgba(16, 24, 32, .07);
}

.export-metric span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
}

.export-metric strong {
    font-size: 28px;
    line-height: 1;
}

.export-metric.metric-ok {
    border-left-color: var(--ok);
}

.export-metric.metric-warning {
    border-left-color: var(--warn);
    background: #fffaf0;
}

.exports-control-card,
.exports-list-card,
.exports-side-card {
    margin: 0;
    border-radius: 16px;
}

.exports-control-card,
.exports-list-card {
    padding: 16px 18px;
}

.exports-filter-bar {
    display: grid;
    grid-template-columns: minmax(300px, 1fr) minmax(180px, .45fr) minmax(118px, .22fr);
    gap: 12px;
    align-items: end;
    padding: 10px 10px 12px;
    border: 1px solid rgba(211, 225, 234, .9);
    border-radius: 14px;
    background: #f8fbfc;
}

.exports-filter-bar .field {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.exports-filter-bar label {
    margin: 0;
    color: var(--ink);
    font-size: 13px;
    font-weight: 900;
    line-height: 1.2;
}

.exports-filter-bar input,
.exports-filter-bar select,
.exports-filter-bar button {
    width: 100%;
    height: 46px;
    min-height: 46px;
    margin: 0;
    font-size: 14px;
}

.exports-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(310px, 360px);
    gap: 14px;
    align-items: start;
}

.exports-group-list,
.exports-group,
.exports-list {
    display: grid;
    gap: 10px;
}

.exports-group {
    min-width: 0;
}

.exports-group-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.exports-group-head h3 {
    margin: 0;
    font-size: 17px;
    line-height: 1.15;
}

.exports-group-head span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}

.export-row {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 80px 104px 96px;
    gap: 10px;
    align-items: center;
    min-height: 60px;
    padding: 9px 10px;
    border: 1px solid #dce8ef;
    border-left: 5px solid #9aa9b6;
    border-radius: 14px;
    background: #ffffff;
    color: var(--ink);
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(16, 24, 32, .055);
}

.export-row-ok {
    border-left-color: var(--ok);
}

.export-row-warning {
    border-left-color: var(--warn);
    background: #fffaf0;
}

.export-main {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.export-main strong,
.export-download {
    overflow: hidden;
    color: var(--ink);
    font-size: 14px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.export-main span {
    overflow: hidden;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.export-count {
    justify-self: start;
    min-width: 44px;
    padding: 5px 9px;
    border-radius: 999px;
    background: #eef5f7;
    color: var(--ink);
    font-size: 13px;
    font-weight: 900;
    text-align: center;
}

.export-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: end;
    min-height: 38px;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--brand);
    box-shadow: 0 10px 18px rgba(17, 35, 48, .08);
}

.exports-side {
    display: grid;
    gap: 14px;
}

.exports-side-card {
    padding: 14px;
}

.system-admin-exports-screen {
    background: #dce4e7;
}

.admin-exports-shell {
    --admin-interface-scale: .90;
    --admin-bg: #dce4e7;
    --admin-top: #eef3f4;
    --admin-panel: #f7faf9;
    --admin-panel-soft: #e9f0ee;
    --admin-ink: #162022;
    --admin-muted: #647277;
    --admin-line: #cdd7da;
    --admin-line-soft: #dde5e7;
    --admin-green: #198e55;
    --admin-green-bright: #7bd319;
    --admin-green-soft: #dff5ea;
    --admin-cyan: #168ba4;
    --admin-cyan-soft: #dff3f7;
    --admin-yellow: #c88712;
    --admin-yellow-soft: #fff0c9;
    --admin-red: #d64a42;
    --admin-red-soft: #ffe2df;
    --admin-gray: #8e9ea6;
    --admin-gray-soft: #edf2f4;
    --admin-shadow: 0 14px 30px rgba(53, 70, 78, .14);
    min-height: calc(100dvh / var(--admin-interface-scale));
    width: 100%;
    overflow: hidden;
    background: var(--admin-bg);
    color: var(--admin-ink);
    font-family: "Roboto Condensed", "Arial Narrow", "Segoe UI", Arial, sans-serif;
    letter-spacing: 0;
    zoom: var(--admin-interface-scale);
}

@supports not (zoom: 1) {
    .admin-exports-shell {
        min-height: calc(100dvh / var(--admin-interface-scale));
        width: calc(100% / var(--admin-interface-scale));
        transform: scale(var(--admin-interface-scale));
        transform-origin: top left;
    }
}

.admin-exports-shell.admin-night {
    --admin-bg: #050b0f;
    --admin-top: #0b151b;
    --admin-panel: #10191f;
    --admin-panel-soft: #0b151b;
    --admin-ink: #edf5f7;
    --admin-muted: #8c9ca4;
    --admin-line: #23333c;
    --admin-line-soft: #18262e;
    --admin-green: #7bd319;
    --admin-green-soft: rgba(123, 211, 25, .14);
    --admin-cyan: #38c4df;
    --admin-cyan-soft: rgba(56, 196, 223, .14);
    --admin-yellow: #f2b23a;
    --admin-yellow-soft: rgba(242, 178, 58, .16);
    --admin-red: #ff524b;
    --admin-red-soft: rgba(255, 82, 75, .16);
    --admin-gray: #6f828b;
    --admin-gray-soft: rgba(111, 130, 139, .18);
    --admin-shadow: 0 18px 34px rgba(0, 0, 0, .34);
}

.admin-exports-shell * {
    box-sizing: border-box;
}

.admin-exports-shell a {
    color: inherit;
}

.admin-console-header {
    display: grid;
    grid-template-columns: minmax(230px, 300px) minmax(0, 1fr) minmax(260px, 330px);
    min-height: 108px;
    border-bottom: 1px solid var(--admin-line);
    background: var(--admin-top);
}

.admin-console-identity,
.admin-console-main,
.admin-console-actions {
    min-width: 0;
    padding: 16px 20px;
}

.admin-console-identity {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    border-right: 1px solid var(--admin-line-soft);
}

.admin-console-avatar {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border: 1px solid color-mix(in srgb, var(--admin-green) 45%, var(--admin-line));
    border-radius: 8px;
    background: var(--admin-green-soft);
    color: var(--admin-green);
    font-size: 24px;
    font-weight: 900;
    text-transform: uppercase;
}

.admin-console-identity strong,
.admin-console-identity em {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-console-identity strong {
    font-size: 16px;
    font-weight: 900;
}

.admin-console-identity em {
    margin-top: 4px;
    color: var(--admin-muted);
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
    text-transform: uppercase;
}

.admin-console-main {
    display: grid;
    grid-template-rows: auto auto;
    gap: 10px;
    border-right: 1px solid var(--admin-line-soft);
}

.admin-console-title span {
    display: block;
    color: var(--admin-green);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.admin-console-title h1 {
    margin: 2px 0 0;
    color: var(--admin-ink);
    font-size: 36px;
    font-weight: 900;
    line-height: .96;
    text-transform: uppercase;
}

.admin-console-title p {
    max-width: 760px;
    margin: 5px 0 0;
    overflow: hidden;
    color: var(--admin-muted);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-console-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.admin-console-nav a,
.admin-utility-link,
.admin-button,
.admin-theme-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    margin: 0;
    border: 1px solid var(--admin-line);
    border-radius: 6px;
    background: var(--admin-panel-soft);
    color: var(--admin-muted);
    font-family: inherit;
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    transition: transform .14s ease, border-color .14s ease, background .14s ease, color .14s ease, box-shadow .14s ease;
}

.admin-console-nav a {
    min-width: 112px;
    padding: 0 13px;
}

.admin-console-nav a.is-active {
    border-color: var(--admin-green);
    background: color-mix(in srgb, var(--admin-green) 12%, var(--admin-panel));
    color: var(--admin-green);
    box-shadow: inset 0 -3px 0 var(--admin-green);
}

.admin-console-actions {
    display: grid;
    grid-template-columns: 44px repeat(2, minmax(0, 1fr));
    gap: 10px;
    align-content: center;
}

.admin-theme-button {
    position: relative;
    width: 44px;
    min-width: 44px;
    padding: 0;
    overflow: hidden;
    font-size: 0;
    cursor: pointer;
}

.admin-theme-button::before,
.admin-theme-button::after {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    transition: opacity .15s ease;
}

.admin-theme-button[data-theme-icon="sun"]::before {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #f2b23a;
    box-shadow:
        0 -8px 0 -5px #f2b23a,
        0 8px 0 -5px #f2b23a,
        8px 0 0 -5px #f2b23a,
        -8px 0 0 -5px #f2b23a,
        6px 6px 0 -5px #f2b23a,
        -6px 6px 0 -5px #f2b23a,
        6px -6px 0 -5px #f2b23a,
        -6px -6px 0 -5px #f2b23a;
}

.admin-theme-button[data-theme-icon="moon"]::before {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #d9f3ff;
}

.admin-theme-button[data-theme-icon="moon"]::after {
    width: 14px;
    height: 14px;
    transform: translate(5px, -3px);
    border-radius: 50%;
    background: var(--admin-panel-soft);
}

.admin-console-nav a:hover,
.admin-utility-link:hover,
.admin-button:hover,
.admin-theme-button:hover,
.export-row:hover,
.export-metric:hover {
    transform: translateY(-1px);
    border-color: color-mix(in srgb, var(--admin-green) 52%, var(--admin-line));
    color: var(--admin-ink);
    box-shadow: 0 10px 20px rgba(16, 24, 32, .08);
    filter: none;
}

.admin-exports-shell.admin-night .admin-console-nav a:hover,
.admin-exports-shell.admin-night .admin-utility-link:hover,
.admin-exports-shell.admin-night .admin-button:hover,
.admin-exports-shell.admin-night .admin-theme-button:hover,
.admin-exports-shell.admin-night .export-row:hover,
.admin-exports-shell.admin-night .export-metric:hover {
    box-shadow: 0 12px 24px rgba(0, 0, 0, .36);
}

.admin-console-nav a:active,
.admin-utility-link:active,
.admin-button:active,
.admin-theme-button:active,
.export-row:active,
.export-metric:active {
    transform: translateY(0);
}

.admin-console-page {
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    gap: 12px;
    width: calc(100% - 32px);
    height: calc(100dvh - 108px);
    min-height: 0;
    margin: 0 auto;
    padding: 12px 0 16px;
    overflow: hidden;
}

.admin-exports-shell .export-metrics {
    gap: 10px;
}

.admin-exports-shell .export-metric,
.admin-exports-shell .exports-control-card,
.admin-exports-shell .exports-list-card,
.admin-exports-shell .exports-side-card {
    border: 1px solid var(--admin-line);
    border-radius: 8px;
    background: var(--admin-panel);
    color: var(--admin-ink);
    box-shadow: var(--admin-shadow);
}

.admin-exports-shell .export-metric {
    position: relative;
    min-height: 92px;
    padding: 14px 16px 13px 20px;
    overflow: hidden;
}

.admin-exports-shell .export-metric::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: var(--admin-gray);
}

.admin-exports-shell .export-metric.metric-ok::before {
    background: var(--admin-green);
}

.admin-exports-shell .export-metric.metric-warning::before {
    background: var(--admin-yellow);
}

.admin-exports-shell .export-metric.metric-info::before {
    background: var(--admin-cyan);
}

.admin-exports-shell .export-metric.metric-warning {
    background: color-mix(in srgb, var(--admin-yellow-soft) 38%, var(--admin-panel));
}

.admin-exports-shell .export-metric span,
.admin-exports-shell .export-metric small {
    color: var(--admin-muted);
    font-size: 12px;
    font-weight: 900;
    line-height: 1.15;
    text-transform: uppercase;
}

.admin-exports-shell .export-metric strong {
    color: var(--admin-ink);
    font-size: 32px;
    font-weight: 900;
    line-height: .95;
}

.admin-exports-shell .export-metric small {
    text-transform: none;
}

.admin-exports-shell .exports-control-card,
.admin-exports-shell .exports-list-card,
.admin-exports-shell .exports-side-card {
    padding: 14px 16px;
}

.admin-section-title {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: start;
    margin-bottom: 12px;
}

.admin-section-title.compact {
    grid-template-columns: 1fr;
}

.admin-section-title h2,
.admin-section-title p {
    margin: 0;
}

.admin-section-title h2 {
    color: var(--admin-ink);
    font-size: 20px;
    font-weight: 900;
    line-height: 1.05;
    text-transform: uppercase;
}

.admin-section-title p {
    margin-top: 4px;
    color: var(--admin-muted);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.25;
}

.admin-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 3px 8px;
    border: 1px solid var(--admin-line);
    border-radius: 5px;
    background: var(--admin-gray-soft);
    color: var(--admin-muted);
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

.admin-chip-ok {
    border-color: color-mix(in srgb, var(--admin-green) 44%, var(--admin-line));
    background: var(--admin-green-soft);
    color: var(--admin-green);
}

.admin-chip-warning {
    border-color: color-mix(in srgb, var(--admin-yellow) 44%, var(--admin-line));
    background: var(--admin-yellow-soft);
    color: var(--admin-yellow);
}

.admin-chip-danger {
    border-color: color-mix(in srgb, var(--admin-red) 44%, var(--admin-line));
    background: var(--admin-red-soft);
    color: var(--admin-red);
}

.admin-chip-neutral {
    border-color: var(--admin-line);
    background: var(--admin-gray-soft);
    color: var(--admin-muted);
}

.admin-chip-info {
    border-color: color-mix(in srgb, var(--admin-cyan) 44%, var(--admin-line));
    background: var(--admin-cyan-soft);
    color: var(--admin-cyan);
}

#app-confirm-modal.admin-day,
#app-confirm-modal.admin-night {
    --admin-bg: #dce4e7;
    --admin-ink: #162022;
    --admin-muted: #647277;
    --admin-line: #cdd7da;
    --admin-panel: #f7faf9;
    --admin-panel-soft: #e9f0ee;
    --admin-green: #198e55;
    --admin-green-soft: #dff5ea;
    --admin-yellow: #d89412;
    --admin-yellow-soft: #fff4d9;
    --admin-red: #d64a42;
    --admin-red-soft: #ffe2df;
    background: color-mix(in srgb, var(--admin-bg) 78%, rgba(16, 24, 32, .62));
    backdrop-filter: blur(3px);
}

#app-confirm-modal.admin-night {
    --admin-bg: #050b0f;
    --admin-ink: #edf5f7;
    --admin-muted: #8c9ca4;
    --admin-line: #23333c;
    --admin-panel: #10191f;
    --admin-panel-soft: #0b151b;
    --admin-green: #7bd319;
    --admin-green-soft: rgba(123, 211, 25, .14);
    --admin-yellow: #ffb93e;
    --admin-yellow-soft: rgba(255, 185, 62, .14);
    --admin-red: #ff524b;
    --admin-red-soft: rgba(255, 82, 75, .16);
}

#app-confirm-modal.admin-day .app-confirm-dialog,
#app-confirm-modal.admin-night .app-confirm-dialog {
    grid-template-columns: 4px 44px minmax(0, 1fr);
    gap: 0 12px;
    align-items: start;
    width: min(520px, calc(100vw - 40px));
    padding: 18px 20px;
    border: 1px solid var(--admin-line);
    border-radius: 8px;
    background: var(--admin-panel);
    color: var(--admin-ink);
    font-family: "Roboto Condensed", "Arial Narrow", "Segoe UI", Arial, sans-serif;
    box-shadow: 0 26px 70px rgba(16, 24, 32, .24);
}

#app-confirm-modal.admin-night .app-confirm-dialog {
    box-shadow: 0 26px 80px rgba(0, 0, 0, .48);
}

#app-confirm-modal.admin-day .app-confirm-close,
#app-confirm-modal.admin-night .app-confirm-close {
    position: absolute;
    top: 12px;
    right: 14px;
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--admin-muted);
    font-size: 28px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
}

#app-confirm-modal.admin-day .app-confirm-close:hover,
#app-confirm-modal.admin-night .app-confirm-close:hover,
#app-confirm-modal.admin-day .app-confirm-close:focus-visible,
#app-confirm-modal.admin-night .app-confirm-close:focus-visible {
    color: var(--admin-ink);
    outline: none;
}

#app-confirm-modal.admin-day .app-confirm-accent,
#app-confirm-modal.admin-night .app-confirm-accent {
    display: block;
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: stretch;
    width: 4px;
    min-height: 52px;
    border-radius: 4px;
    background: var(--admin-red);
}

#app-confirm-modal.admin-day .app-confirm-icon,
#app-confirm-modal.admin-night .app-confirm-icon {
    grid-column: 2;
    width: 44px;
    height: 44px;
    border: 1px solid color-mix(in srgb, var(--admin-red) 58%, var(--admin-line));
    border-radius: 8px;
    background: var(--admin-red-soft);
    color: var(--admin-red);
    font-size: 26px;
    font-weight: 900;
    line-height: 1;
}

#app-confirm-modal.admin-day .app-confirm-content,
#app-confirm-modal.admin-night .app-confirm-content {
    grid-column: 3;
    padding-right: 22px;
}

#app-confirm-modal.admin-day .app-confirm-content h2,
#app-confirm-modal.admin-night .app-confirm-content h2 {
    margin: 0 0 8px;
    color: var(--admin-ink);
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
}

#app-confirm-modal.admin-day .app-confirm-content p,
#app-confirm-modal.admin-night .app-confirm-content p {
    color: var(--admin-muted);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
}

#app-confirm-modal.admin-day .app-confirm-actions,
#app-confirm-modal.admin-night .app-confirm-actions {
    grid-column: 2 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 112px 160px;
    gap: 12px;
    align-items: center;
    margin-top: 24px;
}

#app-confirm-modal.admin-day .app-confirm-actions button,
#app-confirm-modal.admin-night .app-confirm-actions button {
    min-width: 0;
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid var(--admin-line);
    border-radius: 6px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
}

#app-confirm-modal.admin-day .app-confirm-actions .secondary,
#app-confirm-modal.admin-night .app-confirm-actions .secondary {
    grid-column: 2;
    background: var(--admin-panel-soft);
    color: var(--admin-ink);
}

#app-confirm-modal.admin-day .app-confirm-actions .danger,
#app-confirm-modal.admin-night .app-confirm-actions .danger {
    grid-column: 3;
    background: var(--admin-red);
    color: #ffffff;
}

.admin-exports-shell .exports-filter-bar {
    grid-template-columns: minmax(300px, 1fr) minmax(190px, .42fr) minmax(122px, .2fr);
    gap: 10px;
    padding: 10px;
    border-color: var(--admin-line);
    border-radius: 8px;
    background: var(--admin-panel-soft);
}

.admin-exports-shell .exports-filter-bar label {
    color: var(--admin-muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.admin-exports-shell .exports-filter-bar input,
.admin-exports-shell .exports-filter-bar select,
.admin-exports-shell .exports-filter-bar button {
    height: 40px;
    min-height: 40px;
    border: 1px solid var(--admin-line);
    border-radius: 6px;
    background: var(--admin-panel);
    color: var(--admin-ink);
    font-family: inherit;
    font-size: 14px;
    font-weight: 800;
}

.admin-exports-shell .exports-filter-bar input,
.admin-exports-shell .exports-filter-bar select {
    padding: 0 12px;
}

.admin-exports-shell .exports-filter-bar input::placeholder {
    color: color-mix(in srgb, var(--admin-muted) 78%, transparent);
}

.admin-button {
    min-width: 118px;
    padding: 0 14px;
}

.admin-button-primary {
    border-color: var(--admin-green);
    background: var(--admin-green);
    color: #fff;
}

.admin-button-secondary {
    background: var(--admin-panel-soft);
    color: var(--admin-ink);
}

.admin-button-danger {
    border-color: color-mix(in srgb, var(--admin-red) 44%, var(--admin-line));
    background: color-mix(in srgb, var(--admin-red-soft) 54%, var(--admin-panel));
    color: var(--admin-red);
}

.admin-button-warning {
    border-color: color-mix(in srgb, var(--admin-yellow) 46%, var(--admin-line));
    background: color-mix(in srgb, var(--admin-yellow-soft) 56%, var(--admin-panel));
    color: color-mix(in srgb, var(--admin-yellow) 84%, var(--admin-ink));
}

.admin-conflicts-shell .conflict-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.admin-conflicts-shell .conflict-metric,
.admin-conflicts-shell .conflicts-control-card,
.admin-conflicts-shell .conflicts-list-card,
.admin-conflicts-shell .conflicts-side-card {
    border: 1px solid var(--admin-line);
    border-radius: 8px;
    background: var(--admin-panel);
    color: var(--admin-ink);
    box-shadow: var(--admin-shadow);
}

.admin-conflicts-shell .conflict-metric {
    position: relative;
    display: grid;
    min-height: 92px;
    gap: 5px;
    align-content: start;
    padding: 14px 16px 13px 20px;
    overflow: hidden;
    text-decoration: none;
}

.admin-conflicts-shell .conflict-metric::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: var(--admin-gray);
}

.admin-conflicts-shell .conflict-metric.metric-ok::before {
    background: var(--admin-green);
}

.admin-conflicts-shell .conflict-metric.metric-warning::before {
    background: var(--admin-yellow);
}

.admin-conflicts-shell .conflict-metric.metric-danger::before {
    background: var(--admin-red);
}

.admin-conflicts-shell .conflict-metric.metric-warning {
    background: color-mix(in srgb, var(--admin-yellow-soft) 38%, var(--admin-panel));
}

.admin-conflicts-shell .conflict-metric.metric-danger {
    background: color-mix(in srgb, var(--admin-red-soft) 34%, var(--admin-panel));
}

.admin-conflicts-shell .conflict-metric span,
.admin-conflicts-shell .conflict-metric small {
    color: var(--admin-muted);
    font-size: 12px;
    font-weight: 900;
    line-height: 1.15;
    text-transform: uppercase;
}

.admin-conflicts-shell .conflict-metric strong {
    color: var(--admin-ink);
    font-size: 32px;
    font-weight: 900;
    line-height: .95;
}

.admin-conflicts-shell .conflict-metric small {
    text-transform: none;
}

.admin-conflicts-shell .conflicts-control-card,
.admin-conflicts-shell .conflicts-list-card,
.admin-conflicts-shell .conflicts-side-card {
    padding: 14px 16px;
}

.admin-conflicts-shell .conflicts-filter-bar {
    display: grid;
    grid-template-columns: minmax(300px, 1fr) minmax(190px, .42fr) minmax(122px, .2fr);
    gap: 10px;
    padding: 10px;
    border: 1px solid var(--admin-line);
    border-radius: 8px;
    background: var(--admin-panel-soft);
}

.admin-conflicts-shell .conflicts-filter-bar label {
    color: var(--admin-muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.admin-conflicts-shell .conflicts-filter-bar input,
.admin-conflicts-shell .conflicts-filter-bar select,
.admin-conflicts-shell .conflicts-filter-bar .admin-button {
    height: 40px;
    min-height: 40px;
    border: 1px solid var(--admin-line);
    border-radius: 6px;
    background: var(--admin-panel);
    color: var(--admin-ink);
    font-family: inherit;
    font-size: 14px;
    font-weight: 800;
}

.admin-conflicts-shell .conflicts-filter-bar input,
.admin-conflicts-shell .conflicts-filter-bar select {
    padding: 0 12px;
}

.admin-conflicts-shell .conflicts-filter-bar input::placeholder {
    color: color-mix(in srgb, var(--admin-muted) 78%, transparent);
}

.admin-conflicts-shell .conflicts-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 350px);
    gap: 12px;
    min-height: 0;
    overflow: hidden;
}

.admin-conflicts-shell .conflicts-list-card,
.admin-conflicts-shell .conflicts-side {
    min-height: 0;
    overflow: auto;
    scrollbar-gutter: stable;
}

.admin-conflicts-shell .conflicts-list,
.admin-conflicts-shell .conflicts-side,
.admin-conflicts-shell .conflicts-side-actions {
    display: grid;
    gap: 10px;
}

.admin-conflicts-shell .admin-conflict-row {
    position: relative;
    display: grid;
    grid-template-columns: 4px minmax(0, 1fr) minmax(250px, 310px);
    gap: 10px;
    min-height: 108px;
    padding: 10px;
    border: 1px solid var(--admin-line);
    border-left: 0;
    border-radius: 8px;
    background: var(--admin-panel);
    color: var(--admin-ink);
}

.admin-conflicts-shell .conflict-row-accent {
    align-self: stretch;
    width: 4px;
    border-radius: 4px;
    background: var(--admin-gray);
}

.admin-conflicts-shell .conflict-state-ok .conflict-row-accent {
    background: var(--admin-green);
}

.admin-conflicts-shell .conflict-state-warning .conflict-row-accent {
    background: var(--admin-yellow);
}

.admin-conflicts-shell .conflict-state-danger .conflict-row-accent {
    background: var(--admin-red);
}

.admin-conflicts-shell .conflict-state-warning {
    background: color-mix(in srgb, var(--admin-yellow-soft) 30%, var(--admin-panel));
}

.admin-conflicts-shell .conflict-state-danger {
    background: color-mix(in srgb, var(--admin-red-soft) 28%, var(--admin-panel));
}

.admin-conflicts-shell .conflict-main,
.admin-conflicts-shell .admin-conflict-actions {
    min-width: 0;
}

.admin-conflicts-shell .conflict-row-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.admin-conflicts-shell .conflict-row-head strong {
    overflow: hidden;
    color: var(--admin-ink);
    font-size: 16px;
    font-weight: 900;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.admin-conflicts-shell .conflict-row-meta {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-top: 8px;
}

.admin-conflicts-shell .conflict-row-meta span {
    overflow: hidden;
    color: var(--admin-muted);
    font-size: 12px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-conflicts-shell .admin-conflict-row p,
.admin-conflicts-shell .conflict-comment {
    margin: 8px 0 0;
    color: var(--admin-muted);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.25;
}

.admin-conflicts-shell .conflict-comment {
    padding: 8px 10px;
    border: 1px dashed var(--admin-line);
    border-radius: 7px;
    background: var(--admin-panel-soft);
    color: var(--admin-ink);
}

.admin-conflicts-shell .admin-conflict-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    align-content: center;
}

.admin-conflicts-shell .admin-conflict-actions form {
    margin: 0;
}

.admin-conflicts-shell .admin-conflict-actions .admin-button,
.admin-conflicts-shell .conflicts-side-actions .admin-button {
    width: 100%;
    min-width: 0;
    min-height: 40px;
    font-size: 13px;
}

.admin-status-row.row-danger {
    border-left-color: var(--admin-red);
}

.admin-logs-shell .log-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.admin-logs-shell .log-metric,
.admin-logs-shell .logs-control-card,
.admin-logs-shell .logs-list-card,
.admin-logs-shell .logs-side-card {
    border: 1px solid var(--admin-line);
    border-radius: 8px;
    background: var(--admin-panel);
    color: var(--admin-ink);
    box-shadow: var(--admin-shadow);
}

.admin-logs-shell .log-metric {
    position: relative;
    display: grid;
    min-height: 92px;
    gap: 5px;
    align-content: start;
    padding: 14px 16px 13px 20px;
    overflow: hidden;
    text-decoration: none;
}

.admin-logs-shell .log-metric::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: var(--admin-gray);
}

.admin-logs-shell .log-metric.metric-ok::before {
    background: var(--admin-green);
}

.admin-logs-shell .log-metric.metric-warning::before {
    background: var(--admin-yellow);
}

.admin-logs-shell .log-metric.metric-danger::before {
    background: var(--admin-red);
}

.admin-logs-shell .log-metric.metric-warning {
    background: color-mix(in srgb, var(--admin-yellow-soft) 38%, var(--admin-panel));
}

.admin-logs-shell .log-metric.metric-danger {
    background: color-mix(in srgb, var(--admin-red-soft) 34%, var(--admin-panel));
}

.admin-logs-shell .log-metric span,
.admin-logs-shell .log-metric small {
    color: var(--admin-muted);
    font-size: 12px;
    font-weight: 900;
    line-height: 1.15;
    text-transform: uppercase;
}

.admin-logs-shell .log-metric strong {
    color: var(--admin-ink);
    font-size: 32px;
    font-weight: 900;
    line-height: .95;
}

.admin-logs-shell .log-metric small {
    text-transform: none;
}

.admin-logs-shell .logs-control-card,
.admin-logs-shell .logs-list-card,
.admin-logs-shell .logs-side-card {
    padding: 14px 16px;
}

.admin-logs-shell .logs-filter-bar {
    display: grid;
    grid-template-columns: minmax(300px, 1fr) minmax(190px, .42fr) minmax(122px, .2fr);
    gap: 10px;
    padding: 10px;
    border: 1px solid var(--admin-line);
    border-radius: 8px;
    background: var(--admin-panel-soft);
}

.admin-logs-shell .logs-filter-bar label {
    color: var(--admin-muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.admin-logs-shell .logs-filter-bar input,
.admin-logs-shell .logs-filter-bar select,
.admin-logs-shell .logs-filter-bar .admin-button {
    height: 40px;
    min-height: 40px;
    border: 1px solid var(--admin-line);
    border-radius: 6px;
    background: var(--admin-panel);
    color: var(--admin-ink);
    font-family: inherit;
    font-size: 14px;
    font-weight: 800;
}

.admin-logs-shell .logs-filter-bar input,
.admin-logs-shell .logs-filter-bar select {
    padding: 0 12px;
}

.admin-logs-shell .logs-filter-bar input::placeholder {
    color: color-mix(in srgb, var(--admin-muted) 78%, transparent);
}

.admin-logs-shell .logs-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 350px);
    gap: 12px;
    min-height: 0;
    overflow: hidden;
}

.admin-logs-shell .logs-list-card,
.admin-logs-shell .logs-side {
    min-height: 0;
    overflow: auto;
    scrollbar-gutter: stable;
}

.admin-logs-shell .admin-log-list,
.admin-logs-shell .logs-side,
.admin-logs-shell .logs-side-actions {
    display: grid;
    gap: 10px;
}

.admin-logs-shell .admin-log-row {
    position: relative;
    display: grid;
    grid-template-columns: 4px minmax(0, 1fr);
    gap: 10px;
    min-height: 94px;
    padding: 10px;
    border: 1px solid var(--admin-line);
    border-left: 0;
    border-radius: 8px;
    background: var(--admin-panel);
    color: var(--admin-ink);
}

.admin-logs-shell .log-row-accent {
    align-self: stretch;
    width: 4px;
    border-radius: 4px;
    background: var(--admin-gray);
}

.admin-logs-shell .log-state-ok .log-row-accent {
    background: var(--admin-green);
}

.admin-logs-shell .log-state-warning .log-row-accent {
    background: var(--admin-yellow);
}

.admin-logs-shell .log-state-danger .log-row-accent {
    background: var(--admin-red);
}

.admin-logs-shell .log-state-warning {
    background: color-mix(in srgb, var(--admin-yellow-soft) 30%, var(--admin-panel));
}

.admin-logs-shell .log-state-danger {
    background: color-mix(in srgb, var(--admin-red-soft) 28%, var(--admin-panel));
}

.admin-logs-shell .log-main {
    min-width: 0;
}

.admin-logs-shell .log-row-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.admin-logs-shell .log-row-head strong {
    overflow: hidden;
    color: var(--admin-ink);
    font-size: 16px;
    font-weight: 900;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.admin-logs-shell .log-row-meta {
    display: grid;
    grid-template-columns: minmax(130px, .22fr) minmax(180px, .34fr) minmax(180px, .44fr);
    gap: 8px;
    margin-top: 8px;
}

.admin-logs-shell .log-row-meta span {
    overflow: hidden;
    color: var(--admin-muted);
    font-size: 12px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-logs-shell .log-row-object,
.admin-logs-shell .log-row-diff {
    display: grid;
    gap: 4px;
    margin-top: 8px;
}

.admin-logs-shell .log-row-object strong {
    overflow: hidden;
    color: var(--admin-ink);
    font-size: 14px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-logs-shell .log-row-object span,
.admin-logs-shell .log-row-diff span {
    color: var(--admin-muted);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.25;
}

.admin-logs-shell .log-row-diff {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 8px 10px;
    border: 1px dashed var(--admin-line);
    border-radius: 7px;
    background: var(--admin-panel-soft);
}

.admin-logs-shell .logs-side-actions .admin-button {
    width: 100%;
    min-width: 0;
    min-height: 40px;
    font-size: 13px;
}

.admin-exports-shell .exports-workspace {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 350px);
    gap: 12px;
    min-height: 0;
    overflow: hidden;
}

.admin-exports-shell .exports-list-card,
.admin-exports-shell .exports-side {
    min-height: 0;
    overflow: auto;
    scrollbar-gutter: stable;
}

.admin-exports-shell .exports-group-list,
.admin-exports-shell .exports-group,
.admin-exports-shell .exports-list,
.admin-exports-shell .exports-side,
.admin-exports-shell .exports-side-actions,
.admin-status-list {
    display: grid;
    gap: 10px;
}

.admin-exports-shell .exports-group-head {
    min-height: 30px;
    padding: 0 2px;
}

.admin-exports-shell .exports-group-head h3 {
    color: var(--admin-ink);
    font-size: 16px;
    font-weight: 900;
    text-transform: uppercase;
}

.admin-exports-shell .exports-group-head span {
    color: var(--admin-muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.admin-exports-shell .export-row {
    position: relative;
    grid-template-columns: 4px minmax(260px, 1fr) 64px 86px 104px;
    gap: 10px;
    min-height: 54px;
    padding: 8px 10px;
    border-color: var(--admin-line);
    border-left: 0;
    border-radius: 8px;
    background: var(--admin-panel);
    color: var(--admin-ink);
    box-shadow: none;
}

.admin-exports-shell .export-row-accent {
    align-self: stretch;
    width: 4px;
    border-radius: 4px;
    background: var(--admin-gray);
}

.admin-exports-shell .export-row-ok .export-row-accent {
    background: var(--admin-green);
}

.admin-exports-shell .export-row-warning {
    background: color-mix(in srgb, var(--admin-yellow-soft) 34%, var(--admin-panel));
}

.admin-exports-shell .export-row-warning .export-row-accent {
    background: var(--admin-yellow);
}

.admin-exports-shell .export-main strong,
.admin-exports-shell .export-download {
    color: var(--admin-ink);
    font-size: 15px;
    font-weight: 900;
}

.admin-exports-shell .export-main span {
    color: var(--admin-muted);
    font-size: 12px;
    font-weight: 800;
}

.admin-exports-shell .export-count {
    width: 54px;
    min-width: 54px;
    height: 32px;
    border: 1px solid var(--admin-line);
    border-radius: 5px;
    background: var(--admin-panel-soft);
    color: var(--admin-ink);
    font-size: 14px;
    font-weight: 900;
}

.admin-exports-shell .export-row .admin-chip {
    width: 86px;
    min-height: 28px;
    padding: 0 8px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: none;
}

.admin-exports-shell .export-row .admin-chip-ok {
    border-color: color-mix(in srgb, var(--admin-green) 34%, var(--admin-line));
    background: color-mix(in srgb, var(--admin-green-soft) 58%, var(--admin-panel));
    color: color-mix(in srgb, var(--admin-green) 74%, var(--admin-ink));
}

.admin-exports-shell .export-row .admin-chip-neutral {
    border-color: var(--admin-line);
    background: var(--admin-gray-soft);
    color: var(--admin-muted);
}

.admin-exports-shell .export-download {
    width: 104px;
    min-height: 32px;
    padding: 0 12px;
    border: 1px solid color-mix(in srgb, var(--admin-green) 42%, var(--admin-line));
    border-radius: 6px;
    background: color-mix(in srgb, var(--admin-green) 12%, var(--admin-panel-soft));
    color: color-mix(in srgb, var(--admin-green) 78%, var(--admin-ink));
    font-size: 13px;
    letter-spacing: 0;
    text-transform: none;
}

.admin-exports-shell .export-row:hover .export-download {
    border-color: var(--admin-green);
    background: var(--admin-green);
    color: #fff;
}

.admin-status-row {
    display: grid;
    gap: 4px;
    min-height: 54px;
    padding: 10px 12px;
    border: 1px solid var(--admin-line);
    border-left: 4px solid var(--admin-gray);
    border-radius: 8px;
    background: var(--admin-panel-soft);
}

.admin-status-row.row-ok {
    border-left-color: var(--admin-green);
}

.admin-status-row.row-warning {
    border-left-color: var(--admin-yellow);
}

.admin-status-row span {
    color: var(--admin-muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.admin-status-row strong {
    overflow: hidden;
    color: var(--admin-ink);
    font-size: 14px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-dashboard-shell .admin-dashboard-page {
    grid-template-rows: auto auto minmax(0, 1fr);
}

.admin-dashboard-shell .dashboard-metrics {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}

.admin-dashboard-shell .dashboard-metric,
.admin-dashboard-shell .dashboard-panel {
    border: 1px solid var(--admin-line);
    border-radius: 8px;
    background: var(--admin-panel);
    color: var(--admin-ink);
    box-shadow: var(--admin-shadow);
}

.admin-dashboard-shell .dashboard-metric {
    position: relative;
    display: grid;
    min-height: 92px;
    gap: 5px;
    align-content: start;
    padding: 14px 14px 12px 20px;
    overflow: hidden;
    text-decoration: none;
}

.admin-dashboard-shell .dashboard-metric::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: var(--admin-gray);
}

.admin-dashboard-shell .dashboard-metric.metric-ok::before {
    background: var(--admin-green);
}

.admin-dashboard-shell .dashboard-metric.metric-warning::before {
    background: var(--admin-yellow);
}

.admin-dashboard-shell .dashboard-metric.metric-danger::before {
    background: var(--admin-red);
}

.admin-dashboard-shell .dashboard-metric.metric-warning {
    background: color-mix(in srgb, var(--admin-yellow-soft) 38%, var(--admin-panel));
}

.admin-dashboard-shell .dashboard-metric.metric-danger {
    background: color-mix(in srgb, var(--admin-red-soft) 34%, var(--admin-panel));
}

.admin-dashboard-shell .dashboard-metric span,
.admin-dashboard-shell .dashboard-metric small {
    color: var(--admin-muted);
    font-size: 12px;
    font-weight: 900;
    line-height: 1.15;
    text-transform: uppercase;
}

.admin-dashboard-shell .dashboard-metric strong {
    color: var(--admin-ink);
    font-size: 32px;
    font-weight: 900;
    line-height: .95;
}

.admin-dashboard-shell .dashboard-metric small {
    text-transform: none;
}

.admin-dashboard-shell .dashboard-top-grid,
.admin-dashboard-shell .dashboard-workspace {
    display: grid;
    gap: 12px;
    min-height: 0;
}

.admin-dashboard-shell .dashboard-top-grid,
.admin-dashboard-shell .dashboard-workspace {
    grid-template-columns: minmax(0, 1fr) minmax(420px, .68fr);
}

.admin-dashboard-shell .dashboard-workspace {
    overflow: hidden;
}

.admin-dashboard-shell .dashboard-main-column,
.admin-dashboard-shell .dashboard-side-column {
    display: grid;
    gap: 12px;
    min-height: 0;
    overflow: auto;
    scrollbar-gutter: auto;
}

.admin-dashboard-shell .dashboard-side-column {
    overflow: hidden;
}

.admin-dashboard-shell .dashboard-panel {
    min-width: 0;
    min-height: 0;
    padding: 14px 16px;
}

.admin-dashboard-shell .dashboard-system-panel,
.admin-dashboard-shell .dashboard-quick-panel {
    min-height: 198px;
}

.admin-dashboard-shell .dashboard-quick-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.admin-dashboard-shell .dashboard-quick-actions .admin-button {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 0 12px;
    font-size: 13px;
    line-height: 1.1;
}

.admin-dashboard-shell .admin-status-row,
.admin-dashboard-shell .dashboard-row,
.admin-dashboard-shell .dashboard-conflict-row {
    color: var(--admin-ink);
    text-decoration: none;
}

.admin-dashboard-shell .admin-status-row {
    min-height: 46px;
    background: var(--admin-panel-soft);
}

.admin-dashboard-shell .admin-status-row:hover,
.admin-dashboard-shell .dashboard-row:hover,
.admin-dashboard-shell .dashboard-conflict-row:hover,
.admin-dashboard-shell .dashboard-metric:hover {
    transform: translateY(-1px);
    border-color: color-mix(in srgb, var(--admin-green) 52%, var(--admin-line));
    box-shadow: 0 10px 20px rgba(16, 24, 32, .08);
    filter: none;
}

.admin-dashboard-shell.admin-night .admin-status-row:hover,
.admin-dashboard-shell.admin-night .dashboard-row:hover,
.admin-dashboard-shell.admin-night .dashboard-conflict-row:hover,
.admin-dashboard-shell.admin-night .dashboard-metric:hover {
    box-shadow: 0 12px 24px rgba(0, 0, 0, .36);
}

.admin-dashboard-shell .dashboard-row-list,
.admin-dashboard-shell .dashboard-conflict-list {
    display: grid;
    gap: 10px;
}

.admin-dashboard-shell .dashboard-main-column > .dashboard-list-panel {
    overflow: hidden;
}

.admin-dashboard-shell .dashboard-side-column > .dashboard-list-panel {
    overflow: hidden;
}

.admin-dashboard-shell .dashboard-recent-employees-panel {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    height: 100%;
}

.admin-dashboard-shell .dashboard-main-column > .dashboard-list-panel .dashboard-row-list {
    max-height: calc(100% - 58px);
    overflow: auto;
    scrollbar-gutter: stable;
}

.admin-dashboard-shell .dashboard-side-column > .dashboard-list-panel .dashboard-row-list {
    max-height: none;
    overflow: visible;
    scrollbar-gutter: auto;
}

.admin-dashboard-shell .dashboard-recent-employees-panel .dashboard-row-list {
    align-content: start;
    gap: 12px;
    overflow: hidden;
}

.admin-dashboard-shell .dashboard-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(96px, auto) minmax(82px, auto);
    gap: 10px;
    align-items: center;
    min-height: 48px;
    padding: 9px 12px;
    border: 1px solid var(--admin-line);
    border-left: 4px solid var(--admin-gray);
    border-radius: 8px;
    background: var(--admin-panel);
    transition: transform .14s ease, border-color .14s ease, box-shadow .14s ease;
}

.admin-dashboard-shell .dashboard-row-list.compact .dashboard-row {
    min-height: 52px;
}

.admin-dashboard-shell .dashboard-row-main {
    min-width: 0;
    overflow: hidden;
    color: var(--admin-ink);
    font-size: 14px;
    font-weight: 900;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-dashboard-shell .dashboard-row span:not(.dashboard-row-main) {
    overflow: hidden;
    color: var(--admin-muted);
    font-size: 12px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-dashboard-shell .dashboard-row strong {
    justify-self: end;
    color: var(--admin-green);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    white-space: nowrap;
}

.admin-dashboard-shell .dashboard-row.row-neutral {
    border-left-color: var(--admin-gray);
}

.admin-dashboard-shell .dashboard-row.status-active {
    border-left-color: var(--admin-green);
}

.admin-dashboard-shell .dashboard-row.status-deactivated,
.admin-dashboard-shell .dashboard-row.status-archived,
.admin-dashboard-shell .dashboard-row.status-dismissed,
.admin-dashboard-shell .dashboard-row.status-deleted {
    border-left-color: var(--admin-red);
    background: color-mix(in srgb, var(--admin-red-soft) 24%, var(--admin-panel));
}

.admin-dashboard-shell .dashboard-conflict-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(250px, 300px);
    gap: 10px;
    align-items: center;
    min-height: 62px;
    padding: 9px 10px;
    border: 1px solid var(--admin-line);
    border-left: 4px solid var(--admin-red);
    border-radius: 8px;
    background: color-mix(in srgb, var(--admin-red-soft) 24%, var(--admin-panel));
    transition: transform .14s ease, border-color .14s ease, box-shadow .14s ease;
}

.admin-dashboard-shell .dashboard-conflicts-panel {
    display: grid;
    grid-template-rows: auto minmax(0, auto);
    max-height: 230px;
}

.admin-dashboard-shell .dashboard-conflicts-panel .admin-section-title {
    margin-bottom: 10px;
}

.admin-dashboard-shell .dashboard-conflicts-panel .dashboard-conflict-list {
    max-height: 144px;
    overflow: auto;
    scrollbar-gutter: stable;
}

.admin-dashboard-shell .dashboard-conflict-main {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.admin-dashboard-shell .dashboard-conflict-main strong {
    overflow: hidden;
    color: var(--admin-ink);
    font-size: 14px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-dashboard-shell .dashboard-conflict-main span,
.admin-dashboard-shell .dashboard-conflict-main small {
    overflow: hidden;
    color: var(--admin-muted);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-dashboard-shell .dashboard-conflict-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    justify-content: stretch;
    min-width: 0;
}

.admin-dashboard-shell .dashboard-conflict-actions .inline-form {
    margin: 0;
}

.admin-mini-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    min-height: 32px;
    padding: 0 8px;
    border: 1px solid var(--admin-line);
    border-radius: 6px;
    background: var(--admin-panel-soft);
    color: var(--admin-ink);
    font-family: inherit;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    cursor: pointer;
}

.admin-mini-button-ok {
    border-color: var(--admin-green);
    background: var(--admin-green);
    color: #fff;
}

.admin-dashboard-shell .dashboard-empty {
    min-height: 42px;
    padding: 11px 12px;
    border: 1px dashed var(--admin-line);
    border-radius: 8px;
    background: var(--admin-panel-soft);
    color: var(--admin-muted);
    font-size: 13px;
    font-weight: 800;
}

.admin-references-shell .references-page {
    grid-template-rows: auto minmax(0, 1fr);
}

.admin-references-shell .references-control-card,
.admin-references-shell .references-list-card,
.admin-references-shell .references-side-card {
    border: 1px solid var(--admin-line);
    border-radius: 8px;
    background: var(--admin-panel);
    color: var(--admin-ink);
    box-shadow: var(--admin-shadow);
}

.admin-references-shell .references-control-card,
.admin-references-shell .references-list-card,
.admin-references-shell .references-side-card {
    padding: 14px 16px;
}

.admin-references-shell .references-filter-bar {
    display: grid;
    grid-template-columns: minmax(300px, 1.35fr) minmax(190px, .7fr) minmax(180px, .62fr) minmax(122px, .22fr);
    gap: 10px;
    align-items: end;
    padding: 10px;
    border: 1px solid var(--admin-line);
    border-radius: 8px;
    background: var(--admin-panel-soft);
}

.admin-references-shell .references-filter-bar .field {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.admin-references-shell .references-filter-bar label {
    margin: 0;
    color: var(--admin-muted);
    font-size: 11px;
    font-weight: 900;
    line-height: 1.1;
    text-transform: uppercase;
}

.admin-references-shell .references-filter-bar input,
.admin-references-shell .references-filter-bar select,
.admin-references-shell .references-filter-bar button {
    width: 100%;
    height: 40px;
    min-height: 40px;
    margin: 0;
    border: 1px solid var(--admin-line);
    border-radius: 6px;
    background: var(--admin-panel);
    color: var(--admin-ink);
    font-family: inherit;
    font-size: 14px;
    font-weight: 800;
}

.admin-references-shell .references-filter-bar input,
.admin-references-shell .references-filter-bar select {
    padding: 0 12px;
}

.admin-references-shell .references-filter-bar input::placeholder {
    color: color-mix(in srgb, var(--admin-muted) 78%, transparent);
}

.admin-references-shell .references-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 350px);
    gap: 12px;
    min-height: 0;
    overflow: hidden;
}

.admin-references-shell .references-list-card,
.admin-references-shell .references-side {
    min-height: 0;
    overflow: auto;
    scrollbar-gutter: stable;
}

.admin-references-shell .references-list,
.admin-references-shell .references-section,
.admin-references-shell .references-section-list,
.admin-references-shell .references-side,
.admin-references-shell .references-actions {
    display: grid;
    gap: 10px;
}

.admin-references-shell .references-section-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    min-height: 30px;
    padding: 0 2px;
}

.admin-references-shell .references-section-head h3 {
    margin: 0;
    color: var(--admin-ink);
    font-size: 16px;
    font-weight: 900;
    line-height: 1.1;
    text-transform: uppercase;
}

.admin-references-shell .references-section-head span {
    color: var(--admin-muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.admin-references-shell .reference-row {
    display: grid;
    grid-template-columns: 4px minmax(240px, 1fr) 64px 86px 104px;
    gap: 10px;
    align-items: center;
    min-height: 54px;
    padding: 8px 10px;
    border: 1px solid var(--admin-line);
    border-left: 0;
    border-radius: 8px;
    background: var(--admin-panel);
    color: var(--admin-ink);
    box-shadow: none;
}

.admin-references-shell .reference-row::before {
    content: "";
    align-self: stretch;
    width: 4px;
    border-radius: 4px;
    background: var(--admin-gray);
}

.admin-references-shell .reference-row-ok::before {
    background: var(--admin-green);
}

.admin-references-shell .reference-row-warning {
    background: color-mix(in srgb, var(--admin-yellow-soft) 34%, var(--admin-panel));
}

.admin-references-shell .reference-row-warning::before {
    background: var(--admin-yellow);
}

.admin-references-shell .reference-main {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.admin-references-shell .reference-main strong {
    overflow: hidden;
    color: var(--admin-ink);
    font-size: 15px;
    font-weight: 900;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-references-shell .reference-main span {
    overflow: hidden;
    color: var(--admin-muted);
    font-size: 12px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-references-shell .reference-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    min-width: 54px;
    height: 32px;
    padding: 0 8px;
    border: 1px solid var(--admin-line);
    border-radius: 5px;
    background: var(--admin-panel-soft);
    color: var(--admin-ink);
    font-size: 14px;
    font-weight: 900;
}

.admin-references-shell .reference-row .admin-chip {
    width: 86px;
    min-height: 28px;
    padding: 0 8px;
    border-radius: 5px;
    font-size: 11px;
    text-transform: none;
}

.admin-references-shell .reference-open {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 104px;
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid color-mix(in srgb, var(--admin-green) 42%, var(--admin-line));
    border-radius: 6px;
    background: color-mix(in srgb, var(--admin-green) 12%, var(--admin-panel-soft));
    color: color-mix(in srgb, var(--admin-green) 78%, var(--admin-ink));
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
    text-transform: none;
    box-shadow: none;
}

.admin-references-shell .reference-row:hover,
.admin-references-shell .reference-row:focus-within {
    transform: translateY(-1px);
    border-color: color-mix(in srgb, var(--admin-green) 52%, var(--admin-line));
    box-shadow: 0 10px 20px rgba(16, 24, 32, .08);
    filter: none;
}

.admin-references-shell.admin-night .reference-row:hover,
.admin-references-shell.admin-night .reference-row:focus-within {
    box-shadow: 0 12px 24px rgba(0, 0, 0, .36);
}

.admin-references-shell .reference-row:hover .reference-open,
.admin-references-shell .reference-open:hover,
.admin-references-shell .reference-open:focus-visible {
    border-color: var(--admin-green);
    background: var(--admin-green);
    color: #fff;
    outline: none;
}

.admin-references-shell .reference-open.is-disabled {
    border-color: var(--admin-line);
    background: var(--admin-gray-soft);
    color: var(--admin-muted);
}

.admin-references-shell .references-side-card .admin-button {
    width: 100%;
    min-height: 40px;
    font-size: 13px;
}

.admin-employees-shell .employees-page {
    grid-template-rows: auto minmax(0, 1fr);
}

.admin-employees-shell .employees-control-card,
.admin-employees-shell .admin-employee-list-card,
.admin-employees-shell .admin-dnd-panel {
    border: 1px solid var(--admin-line);
    border-radius: 8px;
    background: var(--admin-panel);
    color: var(--admin-ink);
    box-shadow: var(--admin-shadow);
}

.admin-employees-shell .employees-control-card,
.admin-employees-shell .admin-employee-list-card,
.admin-employees-shell .admin-dnd-panel {
    padding: 14px 16px;
}

.admin-employees-shell .employee-list-toolbar {
    grid-template-columns: minmax(0, 1fr) auto;
}

.admin-employees-shell .employee-list-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.admin-employees-shell .employee-list-actions .admin-button {
    min-width: 136px;
    min-height: 40px;
}

.admin-employees-shell .employees-filter-bar {
    display: grid;
    grid-template-columns: minmax(300px, 1.35fr) minmax(180px, .68fr) minmax(190px, .72fr) minmax(190px, .72fr) minmax(122px, .22fr);
    gap: 10px;
    align-items: end;
    padding: 10px;
    border: 1px solid var(--admin-line);
    border-radius: 8px;
    background: var(--admin-panel-soft);
}

.admin-employees-shell .employees-filter-bar .field {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.admin-employees-shell .employees-filter-bar label {
    margin: 0;
    color: var(--admin-muted);
    font-size: 11px;
    font-weight: 900;
    line-height: 1.1;
    text-transform: uppercase;
}

.admin-employees-shell .employees-filter-bar input,
.admin-employees-shell .employees-filter-bar select,
.admin-employees-shell .employees-filter-bar .admin-button {
    width: 100%;
    height: 40px;
    min-height: 40px;
    margin: 0;
    border: 1px solid var(--admin-line);
    border-radius: 6px;
    background: var(--admin-panel);
    color: var(--admin-ink);
    font-family: inherit;
    font-size: 14px;
    font-weight: 800;
}

.admin-employees-shell .employees-filter-bar input,
.admin-employees-shell .employees-filter-bar select {
    padding: 0 12px;
}

.admin-employees-shell .employees-filter-bar input::placeholder {
    color: color-mix(in srgb, var(--admin-muted) 78%, transparent);
}

.admin-employees-shell .employees-filter-bar .admin-button {
    background: var(--admin-panel-soft);
    font-size: 13px;
    font-weight: 900;
}

.admin-employees-shell .admin-employee-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 350px);
    gap: 12px;
    min-height: 0;
    overflow: hidden;
}

.admin-employees-shell .admin-employee-list-card,
.admin-employees-shell .admin-dnd-panel {
    min-height: 0;
    overflow: auto;
    scrollbar-gutter: stable;
}

.admin-employees-shell .admin-employee-list {
    display: grid;
    gap: 10px;
    align-content: start;
    min-height: 0;
    overflow: visible;
    padding: 0;
}

.admin-employees-shell .admin-employee-row {
    position: relative;
    display: grid;
    grid-template-columns: 4px minmax(260px, 1.25fr) minmax(120px, .5fr) minmax(142px, .58fr) minmax(190px, .76fr) minmax(150px, .58fr);
    gap: 10px;
    align-items: center;
    min-height: 54px;
    padding: 8px 10px;
    border: 1px solid var(--admin-line);
    border-left: 0;
    border-radius: 8px;
    background: var(--admin-panel);
    color: var(--admin-ink);
    box-shadow: none;
    cursor: grab;
}

.admin-employees-shell .admin-employee-row::before {
    content: "";
    align-self: stretch;
    width: 4px;
    border-radius: 4px;
    background: var(--admin-gray);
}

.admin-employees-shell .admin-employee-row.status-active::before {
    background: var(--admin-green);
}

.admin-employees-shell .admin-employee-row.status-not_activated {
    background: color-mix(in srgb, var(--admin-yellow-soft) 34%, var(--admin-panel));
}

.admin-employees-shell .admin-employee-row.status-not_activated::before {
    background: var(--admin-yellow);
}

.admin-employees-shell .admin-employee-row.status-deactivated,
.admin-employees-shell .admin-employee-row.status-archived,
.admin-employees-shell .admin-employee-row.status-dismissed,
.admin-employees-shell .admin-employee-row.status-deleted {
    background: color-mix(in srgb, var(--admin-red-soft) 28%, var(--admin-panel));
}

.admin-employees-shell .admin-employee-row.status-deactivated::before,
.admin-employees-shell .admin-employee-row.status-archived::before,
.admin-employees-shell .admin-employee-row.status-dismissed::before,
.admin-employees-shell .admin-employee-row.status-deleted::before {
    background: var(--admin-red);
}

.admin-employees-shell .admin-employee-row:hover,
.admin-employees-shell .admin-employee-row:focus-within {
    transform: translateY(-1px);
    border-color: color-mix(in srgb, var(--admin-green) 52%, var(--admin-line));
    box-shadow: 0 10px 20px rgba(16, 24, 32, .08);
    filter: none;
}

.admin-employees-shell.admin-night .admin-employee-row:hover,
.admin-employees-shell.admin-night .admin-employee-row:focus-within {
    box-shadow: 0 12px 24px rgba(0, 0, 0, .36);
}

.admin-employees-shell .admin-employee-row.is-dragging {
    opacity: .68;
    transform: scale(.995);
}

.admin-employees-shell .employee-mini-card {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 9px;
    min-height: 38px;
}

.admin-employees-shell .employee-mini-avatar {
    width: 36px;
    height: 36px;
    border: 1px solid color-mix(in srgb, var(--admin-green) 42%, var(--admin-line));
    border-radius: 6px;
    background: var(--admin-green-soft);
    color: var(--admin-green);
    box-shadow: none;
}

.admin-employees-shell .employee-mini-main strong,
.admin-employees-shell .employee-mini-phone,
.admin-employees-shell .employee-mini-residence {
    color: var(--admin-ink);
}

.admin-employees-shell .employee-mini-main strong {
    font-size: 15px;
    font-weight: 900;
    line-height: 1.15;
}

.admin-employees-shell .employee-mini-main small,
.admin-employees-shell .employee-mini-phone,
.admin-employees-shell .employee-mini-residence {
    color: var(--admin-muted);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
}

.admin-employees-shell .employee-state-badge,
.admin-employees-shell .status-chip {
    min-height: 28px;
    padding: 0 8px;
    border: 1px solid var(--admin-line);
    border-radius: 5px;
    background: var(--admin-gray-soft);
    color: var(--admin-muted);
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    text-transform: none;
}

.admin-employees-shell .employee-state-active,
.admin-employees-shell .status-chip.access-active {
    border-color: color-mix(in srgb, var(--admin-green) 44%, var(--admin-line));
    background: var(--admin-green-soft);
    color: var(--admin-green);
}

.admin-employees-shell .employee-state-not_activated,
.admin-employees-shell .status-chip.access-not_activated {
    border-color: color-mix(in srgb, var(--admin-yellow) 44%, var(--admin-line));
    background: var(--admin-yellow-soft);
    color: var(--admin-yellow);
}

.admin-employees-shell .employee-state-deactivated,
.admin-employees-shell .employee-state-archived,
.admin-employees-shell .employee-state-dismissed,
.admin-employees-shell .employee-state-deleted,
.admin-employees-shell .status-chip.access-blocked,
.admin-employees-shell .status-chip.access-deactivated {
    border-color: color-mix(in srgb, var(--admin-red) 44%, var(--admin-line));
    background: var(--admin-red-soft);
    color: var(--admin-red);
}

.admin-employees-shell .chip-label {
    display: none;
}

.admin-employees-shell .employee-search-highlight {
    border-radius: 4px;
    background: var(--admin-yellow-soft);
    box-shadow: inset 0 -1px 0 var(--admin-yellow);
}

.admin-employees-shell .empty-state {
    min-height: 54px;
    padding: 16px;
    border: 1px dashed var(--admin-line);
    border-radius: 8px;
    background: var(--admin-panel-soft);
    color: var(--admin-muted);
    font-size: 13px;
    font-weight: 800;
}

.admin-employees-shell .admin-dnd-panel {
    position: relative;
    top: auto;
    display: grid;
    grid-template-rows: auto auto repeat(2, minmax(68px, auto)) auto repeat(2, minmax(68px, auto)) auto;
    align-content: start;
    gap: 10px;
}

.admin-employees-shell .admin-dnd-panel h2 {
    color: var(--admin-ink);
    font-size: 20px;
    font-weight: 900;
    text-transform: uppercase;
}

.admin-employees-shell .admin-dnd-panel p,
.admin-employees-shell .dnd-hint {
    color: var(--admin-muted);
    font-size: 12px;
    font-weight: 800;
    white-space: normal;
}

.admin-employees-shell .dnd-group-label {
    color: var(--admin-muted);
    font-size: 11px;
}

.admin-employees-shell .dnd-zone {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
    min-height: 68px;
    padding: 10px 12px;
    border: 1px solid var(--admin-line);
    border-left: 4px solid var(--admin-gray);
    border-radius: 8px;
    background: var(--admin-panel-soft);
    color: var(--admin-ink);
    box-shadow: none;
    text-align: left;
}

.admin-employees-shell .dnd-zone::before {
    display: none;
}

.admin-employees-shell .dnd-zone.success {
    border-left-color: var(--admin-green);
    background: color-mix(in srgb, var(--admin-green-soft) 46%, var(--admin-panel));
}

.admin-employees-shell .dnd-zone.warning {
    border-left-color: var(--admin-yellow);
    background: color-mix(in srgb, var(--admin-yellow-soft) 46%, var(--admin-panel));
}

.admin-employees-shell .dnd-zone.danger {
    border-left-color: var(--admin-red);
    background: color-mix(in srgb, var(--admin-red-soft) 42%, var(--admin-panel));
}

.admin-employees-shell .dnd-zone strong {
    color: var(--admin-ink);
    font-size: 14px;
    font-weight: 900;
    line-height: 1.1;
    text-transform: uppercase;
}

.admin-employees-shell .dnd-zone span {
    color: var(--admin-muted);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
}

.admin-employees-shell .dnd-zone:hover,
.admin-employees-shell .dnd-zone:focus-visible,
.admin-employees-shell .dnd-zone.is-drag-over {
    transform: translateY(-1px);
    border-color: color-mix(in srgb, var(--admin-green) 52%, var(--admin-line));
    box-shadow: 0 10px 20px rgba(16, 24, 32, .08);
    outline: none;
}

.admin-employees-shell.admin-night .dnd-zone:hover,
.admin-employees-shell.admin-night .dnd-zone:focus-visible,
.admin-employees-shell.admin-night .dnd-zone.is-drag-over {
    box-shadow: 0 12px 24px rgba(0, 0, 0, .36);
}

.admin-employees-shell .dnd-hint {
    border-color: var(--admin-line);
    border-radius: 8px;
    background: var(--admin-panel-soft);
}

.admin-employees-shell .dnd-reason-dialog {
    display: grid;
    gap: 10px;
    width: min(520px, calc(100vw - 40px));
    padding: 18px 20px;
    border: 1px solid var(--admin-line);
    border-radius: 8px;
    background: var(--admin-panel);
    color: var(--admin-ink);
    box-shadow: 0 26px 70px rgba(16, 24, 32, .24);
}

.admin-employees-shell.admin-night .dnd-reason-dialog {
    box-shadow: 0 26px 80px rgba(0, 0, 0, .48);
}

.admin-employees-shell .dnd-reason-dialog h2 {
    margin: 0;
    color: var(--admin-ink);
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
}

.admin-employees-shell .dnd-reason-dialog p,
.admin-employees-shell .dnd-reason-error {
    color: var(--admin-muted);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
}

.admin-employees-shell .dnd-reason-dialog p {
    margin: 0;
}

.admin-employees-shell .dnd-reason-dialog textarea {
    min-height: 118px;
    padding: 10px 12px;
    border-color: var(--admin-line);
    border-radius: 6px;
    background: var(--admin-panel-soft);
    color: var(--admin-ink);
    font-family: inherit;
    font-size: 14px;
    font-weight: 800;
}

.admin-employees-shell .dnd-reason-dialog textarea:focus {
    border-color: var(--admin-green);
    outline: none;
    box-shadow: 0 0 0 1px var(--admin-green);
}

.admin-employees-shell .dnd-reason-error {
    margin-top: 0;
    color: var(--admin-red);
}

.admin-employees-shell .dnd-reason-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 112px 160px;
    gap: 12px;
    margin-top: 4px;
}

.admin-employees-shell .dnd-reason-actions button {
    min-width: 0;
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid var(--admin-line);
    border-radius: 6px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
}

.admin-employees-shell .dnd-reason-actions .secondary {
    grid-column: 2;
    background: var(--admin-panel-soft);
    color: var(--admin-ink);
}

.admin-employees-shell .dnd-reason-actions .danger {
    grid-column: 3;
    background: var(--admin-red);
    color: #ffffff;
}

@media (max-width: 1180px) {
    .admin-console-header {
        grid-template-columns: 1fr;
    }

    .admin-console-identity,
    .admin-console-main,
    .admin-console-actions {
        border-right: 0;
        border-bottom: 1px solid var(--admin-line-soft);
    }

    .admin-console-actions {
        grid-template-columns: 44px repeat(2, 120px);
        justify-content: center;
    }

    .admin-console-page {
        height: auto;
        min-height: calc(100dvh - 1px);
        overflow: visible;
    }

    .admin-exports-shell .exports-workspace,
    .admin-conflicts-shell .conflicts-workspace,
    .admin-logs-shell .logs-workspace {
        grid-template-columns: 1fr;
        overflow: visible;
    }

    .admin-dashboard-shell .dashboard-metrics {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .admin-dashboard-shell .dashboard-top-grid,
    .admin-dashboard-shell .dashboard-workspace {
        grid-template-columns: 1fr;
        overflow: visible;
    }

    .admin-references-shell .references-workspace {
        grid-template-columns: 1fr;
        overflow: visible;
    }

    .admin-employees-shell .admin-employee-workspace {
        grid-template-columns: 1fr;
        overflow: visible;
    }

    .admin-dashboard-shell .dashboard-main-column,
    .admin-dashboard-shell .dashboard-side-column,
    .admin-references-shell .references-list-card,
    .admin-references-shell .references-side,
    .admin-employees-shell .admin-employee-list-card,
    .admin-employees-shell .admin-dnd-panel {
        overflow: visible;
    }

    .admin-dashboard-shell .dashboard-recent-employees-panel {
        height: auto;
    }

    .admin-exports-shell .exports-list-card,
    .admin-exports-shell .exports-side,
    .admin-conflicts-shell .conflicts-list-card,
    .admin-conflicts-shell .conflicts-side,
    .admin-logs-shell .logs-list-card,
    .admin-logs-shell .logs-side {
        overflow: visible;
    }
}

@media (max-width: 720px) {
    .admin-exports-shell {
        width: 100%;
        min-height: 100dvh;
        overflow: visible;
    }

    .admin-console-identity,
    .admin-console-main,
    .admin-console-actions {
        padding: 14px 12px;
    }

    .admin-console-title h1 {
        font-size: 30px;
    }

    .admin-console-title p {
        white-space: normal;
    }

    .admin-console-nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-console-nav a {
        min-width: 0;
    }

    .admin-console-actions {
        grid-template-columns: 44px repeat(2, minmax(0, 1fr));
    }

    .admin-console-page {
        width: calc(100% - 16px);
        padding-top: 8px;
    }

    .admin-exports-shell .export-metrics,
    .admin-exports-shell .exports-filter-bar,
    .admin-conflicts-shell .conflict-metrics,
    .admin-conflicts-shell .conflicts-filter-bar,
    .admin-conflicts-shell .admin-conflict-row,
    .admin-logs-shell .log-metrics,
    .admin-logs-shell .logs-filter-bar,
    .admin-logs-shell .admin-log-row,
    .admin-dashboard-shell .dashboard-metrics,
    .admin-dashboard-shell .dashboard-quick-actions,
    .admin-references-shell .references-filter-bar,
    .admin-references-shell .reference-row,
    .admin-employees-shell .employees-filter-bar,
    .admin-employees-shell .admin-employee-row,
    .admin-exports-shell .export-row {
        grid-template-columns: 1fr;
    }

    .admin-references-shell .reference-row::before,
    .admin-employees-shell .admin-employee-row::before {
        width: 100%;
        height: 4px;
    }

    .admin-references-shell .reference-count,
    .admin-references-shell .reference-row .admin-chip,
    .admin-references-shell .reference-open {
        justify-self: stretch;
        width: 100%;
    }

    .admin-dashboard-shell .dashboard-row,
    .admin-dashboard-shell .dashboard-conflict-row {
        grid-template-columns: 1fr;
    }

    .admin-dashboard-shell .dashboard-row strong,
    .admin-dashboard-shell .dashboard-conflict-actions {
        justify-self: stretch;
        justify-content: stretch;
    }

    .admin-dashboard-shell .dashboard-conflict-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .admin-dashboard-shell .admin-mini-button {
        width: 100%;
    }

    .admin-exports-shell .export-row-accent,
    .admin-conflicts-shell .conflict-row-accent,
    .admin-logs-shell .log-row-accent {
        width: 100%;
        height: 4px;
    }

    .admin-exports-shell .export-download,
    .admin-exports-shell .export-count,
    .admin-exports-shell .admin-chip,
    .admin-conflicts-shell .admin-conflict-actions,
    .admin-conflicts-shell .conflict-row-head .admin-chip {
        justify-self: stretch;
    }

    .admin-conflicts-shell .conflict-row-head,
    .admin-conflicts-shell .conflict-row-meta,
    .admin-logs-shell .log-row-head,
    .admin-logs-shell .log-row-meta,
    .admin-logs-shell .log-row-diff {
        grid-template-columns: 1fr;
    }

    .admin-employees-shell .employee-state-cell,
    .admin-employees-shell .employee-mini-accesses,
    .admin-employees-shell .employee-mini-residence,
    .admin-employees-shell .employee-list-actions,
    .admin-employees-shell .employee-list-actions .admin-button,
    .admin-employees-shell .employee-state-badge,
    .admin-employees-shell .status-chip {
        justify-self: stretch;
        width: 100%;
    }
}

@media (min-width: 1041px) {
    html:has(body.employee-detail-screen),
    body.employee-detail-screen,
    html:has(body.employee-create-screen),
    body.employee-create-screen,
    html:has(body.system-admin-references-screen),
    body.system-admin-references-screen,
    html:has(body.system-admin-reference-detail-screen),
    body.system-admin-reference-detail-screen,
    html:has(body.system-admin-conflicts-screen),
    body.system-admin-conflicts-screen,
    html:has(body.system-admin-logs-screen),
    body.system-admin-logs-screen,
    html:has(body.system-admin-dashboard-screen),
    body.system-admin-dashboard-screen,
    html:has(body.system-admin-employees-screen),
    body.system-admin-employees-screen,
    html:has(body.system-admin-exports-screen),
    body.system-admin-exports-screen {
        height: 100dvh;
        max-height: 100dvh;
        overflow: hidden;
    }

    .employee-detail-screen .admin-page,
    .employee-create-screen .admin-page,
    .system-admin-references-screen .admin-page,
    .system-admin-reference-detail-screen .admin-page,
    .system-admin-conflicts-screen .admin-page,
    .system-admin-logs-screen .admin-page,
    .system-admin-employees-screen .admin-page,
    .system-admin-exports-screen .admin-page {
        height: calc(100dvh - 108px);
        min-height: 0;
        overflow: hidden;
    }

    .system-admin-references-screen .references-workspace,
    .system-admin-reference-detail-screen .reference-detail-workspace,
    .system-admin-conflicts-screen .conflicts-workspace,
    .system-admin-logs-screen .logs-workspace,
    .system-admin-employees-screen .admin-employee-workspace,
    .system-admin-exports-screen .exports-workspace {
        min-height: 0;
        overflow: hidden;
    }

    .system-admin-references-screen .references-list-card,
    .system-admin-references-screen .references-side,
    .system-admin-reference-detail-screen .reference-records-card,
    .system-admin-reference-detail-screen .reference-editor-side,
    .system-admin-conflicts-screen .conflicts-list-card,
    .system-admin-conflicts-screen .conflicts-side,
    .system-admin-logs-screen .logs-list-card,
    .system-admin-logs-screen .logs-side,
    .system-admin-employees-screen .admin-employee-list-card,
    .system-admin-employees-screen .admin-dnd-panel,
    .system-admin-exports-screen .exports-list-card,
    .system-admin-exports-screen .exports-side {
        max-height: 100%;
        min-height: 0;
        overflow-y: auto;
        scrollbar-gutter: stable;
    }

    .employee-create-layout {
        height: 100%;
        min-height: 0;
    }

    .employee-create-main,
    .employee-create-side {
        max-height: 100%;
        min-height: 0;
        overflow: hidden;
    }

    .employee-detail-screen .employee-detail-page {
        grid-template-columns: minmax(0, 1fr) minmax(390px, 420px);
        grid-template-rows: minmax(0, 1fr);
        align-items: stretch;
    }

    .employee-detail-screen .employee-detail-grid {
        display: contents;
    }

    .employee-detail-screen .employee-profile-form {
        grid-column: 1;
        grid-row: 1;
        max-height: 100%;
        min-height: 0;
        overflow: hidden;
        scrollbar-gutter: stable;
    }

    .employee-detail-screen .employee-detail-card {
        padding: 11px;
        border-radius: 14px;
    }

    .employee-detail-screen .employee-detail-card-head {
        margin-bottom: 8px;
    }

    .employee-detail-screen .employee-detail-card-head h2 {
        font-size: 21px;
    }

    .employee-detail-screen .employee-detail-profile-head {
        min-height: 96px;
        margin-bottom: 7px;
        padding: 9px;
        border-radius: 14px;
    }

    .employee-detail-screen .employee-photo-box {
        flex-basis: 86px;
        gap: 5px;
    }

    .employee-detail-screen .employee-photo-card {
        width: 86px;
        height: 86px;
        flex-basis: 86px;
        border-radius: 20px;
    }

    .employee-detail-screen .employee-photo-head {
        width: 28px;
        height: 28px;
    }

    .employee-detail-screen .employee-photo-body {
        width: 50px;
        height: 28px;
    }

    .employee-detail-screen .employee-photo-controls {
        gap: 6px;
    }

    .employee-detail-screen .employee-photo-control {
        width: 24px;
        height: 24px;
        min-height: 24px;
        font-size: 14px;
    }

    .employee-detail-screen .employee-detail-summary strong {
        font-size: 22px;
    }

    .employee-detail-screen .employee-detail-summary .employee-photo-hint {
        line-height: 1.2;
    }

    .employee-detail-screen .employee-detail-fields {
        gap: 6px 10px;
    }

    .employee-detail-screen .employee-detail-field {
        gap: 4px;
    }

    .employee-detail-screen .employee-detail-field input,
    .employee-detail-screen .employee-detail-field select {
        height: 46px;
        min-height: 46px;
        border-radius: 10px;
        font-size: 14px;
    }

    .employee-detail-screen .employee-detail-field textarea {
        min-height: 82px;
        border-radius: 10px;
        font-size: 14px;
    }

    .employee-detail-screen .employee-card-v2-top {
        grid-template-columns: 235px minmax(0, 640px);
        gap: 22px;
    }

    .employee-detail-screen .employee-card-v2-photo-box {
        flex-basis: auto;
        gap: 14px;
        width: 235px;
        min-height: 0;
        padding: 0;
    }

    .employee-detail-screen .employee-card-v2-photo {
        width: 235px;
        height: 235px;
        flex-basis: 235px;
        border-radius: 18px;
    }

    .employee-detail-screen .employee-card-v2-photo .employee-photo-head {
        width: 46px;
        height: 46px;
    }

    .employee-detail-screen .employee-card-v2-photo .employee-photo-body {
        width: 84px;
        height: 46px;
    }

    .employee-detail-screen .employee-card-v2-grid {
        gap: 10px 14px;
        margin-top: 12px;
    }

    .employee-detail-screen .employee-card-v2-textareas {
        gap: 10px 14px;
        margin-top: 10px;
    }

    .employee-detail-screen .employee-card-v2-textareas .employee-detail-field textarea {
        min-height: 82px;
    }

    .employee-detail-screen .employee-detail-save-row {
        margin-top: 7px;
    }

    .employee-detail-screen .employee-detail-save-row button,
    .employee-detail-screen .employee-access-issue-form button {
        min-height: 46px;
    }

    .employee-detail-screen .employee-detail-side {
        grid-column: 2;
        grid-row: 1;
        align-content: start;
        min-height: 0;
        max-height: 100%;
        overflow-y: auto;
        padding-right: 3px;
        scrollbar-gutter: stable;
    }

    .employee-detail-screen .employee-detail-bottom-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
        min-height: 0;
        overflow: visible;
    }

    .employee-detail-screen .employee-access-list-card,
    .employee-detail-screen .employee-log-card {
        min-height: 0;
        overflow: visible;
    }

    .employee-detail-screen .employee-access-list,
    .employee-detail-screen .employee-log-list {
        min-height: 0;
        overflow-y: auto;
        padding-right: 3px;
        scrollbar-gutter: stable;
    }

    .employee-detail-screen .employee-access-actions,
    .employee-detail-screen .employee-access-actions form:first-child {
        grid-template-columns: 1fr;
    }

    .employee-detail-screen .employee-access-actions button {
        width: 100%;
    }
}

@media (min-width: 1600px) {
    .employee-detail-screen .employee-detail-page {
        grid-template-columns: minmax(760px, 1fr) minmax(720px, 760px);
    }

    .employee-detail-screen .employee-detail-side {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        grid-template-rows: auto minmax(0, 1fr);
        align-content: stretch;
        align-items: stretch;
        overflow: hidden;
        padding-right: 0;
    }

    .employee-detail-screen .employee-access-issue-card {
        grid-column: 1;
        grid-row: 1;
    }

    .employee-detail-screen .employee-danger-card {
        grid-column: 1;
        grid-row: 2;
        min-height: 0;
    }

    .employee-detail-screen .employee-detail-bottom-grid {
        grid-column: 2;
        grid-row: 1 / span 2;
        grid-template-rows: auto auto;
        align-content: start;
        overflow: hidden;
    }

    .employee-detail-screen .employee-access-list-card {
        overflow: hidden;
    }
}

@media (max-width: 1040px) {
    .excavator-status-strip,
    .excavator-workspace,
    .excavator-form-grid,
    .excavator-form-grid.secondary {
        grid-template-columns: 1fr;
    }

    .excavator-active-card {
        position: static;
    }

    .excavator-field.field-wide {
        grid-column: auto;
    }

    .master-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .master-workspace,
    .assignment-board {
        grid-template-columns: 1fr;
    }

    .system-admin-metrics {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .system-admin-main-grid,
    .system-admin-workspace,
    .system-admin-secondary-grid,
    .references-workspace,
    .references-filter-bar,
    .reference-detail-workspace,
    .reference-detail-filter-bar,
    .conflict-metrics,
    .conflicts-workspace,
    .conflicts-filter-bar,
    .log-metrics,
    .logs-workspace,
    .logs-filter-bar,
    .export-metrics,
    .exports-workspace,
    .exports-filter-bar {
        grid-template-columns: 1fr;
    }

    .employee-detail-grid,
    .employee-detail-bottom-grid,
    .employee-create-layout {
        grid-template-columns: 1fr;
    }

    .employee-create-access-grid {
        grid-template-columns: 1fr;
    }

    .employee-access-actions {
        grid-template-columns: 1fr;
    }

    .employee-access-actions form:first-child {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .reference-row {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px 10px;
    }

    .reference-count,
    .reference-state,
    .reference-open {
        justify-self: start;
    }

    .reference-open {
        grid-column: 1 / -1;
        width: 100%;
    }

    .reference-record-row {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px 10px;
    }

    .reference-record-preview {
        grid-column: 1 / -1;
    }

    .reference-record-row .reference-open {
        grid-column: 1 / -1;
        width: 100%;
    }

    .dashboard-action-panel {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-action-panel .dnd-panel-head,
    .dashboard-action-panel .dnd-hint {
        grid-column: 1 / -1;
    }

    .conflict-row {
        grid-template-columns: minmax(0, 1fr) minmax(140px, auto) minmax(92px, auto);
    }

    .conflict-row .row-description,
    .conflict-row-actions {
        grid-column: 1 / -1;
    }

    .conflict-row-actions {
        justify-content: flex-start;
    }

    .conflict-row-meta,
    .admin-conflict-actions,
    .log-row-meta,
    .log-row-object,
    .log-row-diff,
    .export-row {
        grid-template-columns: 1fr;
    }

    .export-download {
        justify-self: stretch;
        text-align: center;
    }

    .employees-admin-screen {
        height: auto;
        overflow: auto;
    }

    .employees-admin-screen .admin-page {
        height: auto;
        min-height: 0;
    }

    .admin-employees-header .admin-user-pill {
        position: static;
        width: fit-content;
        transform: none;
    }

    .admin-employee-list-card {
        display: flex;
        flex-direction: column;
        height: 100%;
        min-height: 0;
        padding-top: 16px;
    }

    .admin-employee-list {
        overflow: visible;
        padding-right: 0;
    }

    .topline {
        align-items: flex-start;
        flex-direction: column;
    }

    .topline-nav {
        position: static;
        justify-content: flex-start;
        max-width: 100%;
        transform: none;
    }

    .employee-list-toolbar {
        display: grid;
    }

    .employee-list-actions {
        justify-content: flex-start;
    }

    .employee-list-filters,
    .admin-filter-bar {
        grid-template-columns: repeat(2, minmax(220px, 1fr));
    }

    .admin-employee-workspace {
        grid-template-columns: 1fr;
    }

    .admin-dnd-panel {
        position: relative;
        top: auto;
        grid-template-rows: auto auto repeat(2, minmax(78px, auto)) auto repeat(2, minmax(78px, auto)) auto;
        height: auto;
        max-height: none;
        overflow: visible;
        padding: 16px 14px 14px;
    }

    .admin-employee-row {
        grid-template-columns: minmax(240px, 1.2fr) minmax(110px, .55fr) minmax(140px, .8fr);
    }

    .employee-state-cell,
    .employee-mini-accesses,
    .employee-mini-residence {
        grid-column: auto;
    }
}

@media (max-width: 760px) {
    .excavator-work-header {
        padding: 16px 12px 18px;
    }

    .excavator-work-header .topline {
        gap: 12px;
    }

    .excavator-work-header .topline-nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        gap: 8px;
    }

    .excavator-work-header .topline-nav a,
    .excavator-work-header .topline-nav .link-button {
        width: 100%;
        min-width: 0;
        padding-right: 8px;
        padding-left: 8px;
    }

    .excavator-work-header .topline-nav a:last-child {
        grid-column: 1 / -1;
    }

    .excavator-work-header h1,
    .excavator-work-header p {
        max-width: 100%;
    }

    .excavator-work-page {
        width: min(100% - 24px, 1180px);
        padding-top: 14px;
    }

    .excavator-status-strip {
        gap: 10px;
    }

    .excavator-status-card,
    .excavator-trip-card,
    .excavator-active-card {
        border-radius: 14px;
    }

    .excavator-status-card {
        padding: 13px;
    }

    .excavator-work-screen .section-title-row {
        display: grid;
        grid-template-columns: 1fr;
    }

    .excavator-work-screen .section-title-row button {
        width: 100%;
    }

    .excavator-assignment-list,
    .active-trip-item dl {
        grid-template-columns: 1fr;
    }

    .mining-master-title {
        align-items: stretch;
        display: grid;
    }

    .shift-badge {
        margin-top: 0;
        min-width: 0;
        text-align: left;
    }

    .master-metrics,
    .free-truck-list {
        grid-template-columns: 1fr;
    }

    .master-metric-card {
        min-height: 74px;
    }

    .master-metric-card strong {
        font-size: 28px;
    }

    .assignment-card.compact {
        grid-template-columns: 1fr;
    }

    .status-pill {
        justify-self: flex-start;
    }

    .system-admin-header .topline > span:first-child {
        max-width: 100%;
    }

    .system-admin-metrics,
    .admin-quick-actions,
    .dashboard-action-panel {
        grid-template-columns: 1fr;
    }

    .admin-metric-card {
        min-height: 92px;
    }

    .admin-summary-row,
    .admin-dashboard-row,
    .compact-row,
    .conflict-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .summary-main,
    .row-primary,
    .compact-main,
    .row-description {
        white-space: normal;
    }

    .admin-summary-row strong,
    .admin-dashboard-row strong,
    .compact-row strong {
        justify-self: flex-start;
    }

    .employee-detail-card {
        padding: 16px 14px;
    }

    .employee-detail-card-head,
    .employee-detail-fields,
    .employee-create-main .employee-detail-fields,
    .employee-profile-form .employee-detail-fields,
    .employee-create-access-grid,
    .employee-access-meta,
    .employee-access-actions,
    .employee-access-actions form:first-child,
    .employee-log-row {
        grid-template-columns: 1fr;
    }

    .employee-card-v2-top,
    .employee-card-v2-grid,
    .employee-card-v2-textareas {
        grid-template-columns: 1fr;
    }

    .employee-card-v2-photo-box {
        width: 100%;
        min-height: 156px;
    }

    .employee-detail-card-head .employee-state-badge,
    .employee-detail-save-row button,
    .employee-access-issue-form button,
    .employee-create-actions button,
    .employee-create-actions .button-link,
    .employee-access-actions button,
    .employee-danger-actions button {
        width: 100%;
    }

    .employee-log-row span:last-child {
        grid-column: auto;
    }

    .conflict-row-actions,
    .admin-dashboard-footer-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .conflict-row-actions .inline-form,
    .conflict-row-actions button,
    .admin-dashboard-footer-actions .button-link {
        width: 100%;
    }

    .app-header {
        padding: 20px 16px 26px;
    }

    .page,
    .header-inner,
    .admin-page {
        width: min(100% - 24px, 1180px);
    }

    .actions .button-link,
    .actions button {
        width: 100%;
    }

    .bar-row-title {
        display: block;
    }

    .shift-metrics {
        grid-template-columns: 1fr;
    }

    .employee-list-actions .button-link,
    .employee-list-filters {
        width: 100%;
    }

    .employee-list-filters,
    .admin-filter-bar {
        grid-template-columns: 1fr;
        padding: 14px;
    }

    .section-title-row,
    .admin-employee-row {
        display: grid;
    }

    .admin-employee-row {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 14px;
    }

    .admin-dnd-panel {
        position: relative;
        top: auto;
        grid-template-rows: auto auto repeat(2, minmax(78px, auto)) auto repeat(2, minmax(78px, auto)) auto;
        height: auto;
        max-height: none;
        overflow: visible;
        padding: 16px 14px 14px;
    }

    .dnd-zone {
        min-height: 78px;
    }

    .employee-profile-head {
        align-items: flex-start;
    }

    .employee-photo-card {
        flex-basis: 112px;
        height: 112px;
        width: 112px;
    }

    .employee-photo-box {
        flex-basis: 112px;
    }

    .employee-profile-text strong {
        font-size: 23px;
    }
}

/* Админские кнопки: единое центрирование текста после экранных override. */
body.employee-detail-screen,
body.employee-create-screen,
body.system-admin-reference-detail-screen,
body.system-admin-conflicts-screen,
body.system-admin-logs-screen {
    --admin-interface-scale: .90;
    min-height: 100dvh;
    overflow-x: hidden;
}

body.employee-detail-screen .app-header,
body.employee-detail-screen .admin-page,
body.employee-create-screen .app-header,
body.employee-create-screen .admin-page,
body.system-admin-reference-detail-screen .app-header,
body.system-admin-reference-detail-screen .admin-page,
body.system-admin-conflicts-screen .app-header,
body.system-admin-conflicts-screen .admin-page,
body.system-admin-logs-screen .app-header,
body.system-admin-logs-screen .admin-page {
    width: calc(100% / var(--admin-interface-scale));
    zoom: var(--admin-interface-scale);
}

@supports not (zoom: 1) {
    body.employee-detail-screen .app-header,
    body.employee-detail-screen .admin-page,
    body.employee-create-screen .app-header,
    body.employee-create-screen .admin-page,
    body.system-admin-reference-detail-screen .app-header,
    body.system-admin-reference-detail-screen .admin-page,
    body.system-admin-conflicts-screen .app-header,
    body.system-admin-conflicts-screen .admin-page,
    body.system-admin-logs-screen .app-header,
    body.system-admin-logs-screen .admin-page {
        transform: scale(var(--admin-interface-scale));
        transform-origin: top left;
    }
}

@media (min-width: 1041px) {
    body.employee-detail-screen,
    body.employee-create-screen,
    body.system-admin-reference-detail-screen,
    body.system-admin-conflicts-screen,
    body.system-admin-logs-screen {
        height: 100dvh;
        max-height: 100dvh;
    }

    .employee-detail-screen .admin-page,
    .employee-create-screen .admin-page,
    .system-admin-reference-detail-screen .admin-page,
    .system-admin-conflicts-screen .admin-page,
    .system-admin-logs-screen .admin-page {
        height: calc((100dvh - 108px) / var(--admin-interface-scale));
    }
}

@media (max-width: 720px) {
    body.employee-detail-screen,
    body.employee-create-screen,
    body.system-admin-reference-detail-screen,
    body.system-admin-conflicts-screen,
    body.system-admin-logs-screen {
        overflow-x: hidden;
        overflow-y: auto;
    }

    body.employee-detail-screen .app-header,
    body.employee-detail-screen .admin-page,
    body.employee-create-screen .app-header,
    body.employee-create-screen .admin-page,
    body.system-admin-reference-detail-screen .app-header,
    body.system-admin-reference-detail-screen .admin-page,
    body.system-admin-conflicts-screen .app-header,
    body.system-admin-conflicts-screen .admin-page,
    body.system-admin-logs-screen .app-header,
    body.system-admin-logs-screen .admin-page {
        width: 100%;
        zoom: 1;
    }
}

.system-admin-dashboard-screen button,
.system-admin-dashboard-screen .button-link,
.system-admin-dashboard-screen .nav-pill,
.system-admin-employees-screen button,
.system-admin-employees-screen .button-link,
.system-admin-employees-screen .nav-pill,
.employees-admin-screen button,
.employees-admin-screen .button-link,
.employees-admin-screen .nav-pill,
.employee-detail-screen button,
.employee-detail-screen .button-link,
.employee-detail-screen .nav-pill,
.employee-create-screen button,
.employee-create-screen .button-link,
.employee-create-screen .nav-pill,
.system-admin-references-screen button,
.system-admin-references-screen .button-link,
.system-admin-references-screen .nav-pill,
.system-admin-reference-detail-screen button,
.system-admin-reference-detail-screen .button-link,
.system-admin-reference-detail-screen .nav-pill,
.system-admin-conflicts-screen button,
.system-admin-conflicts-screen .button-link,
.system-admin-conflicts-screen .nav-pill,
.system-admin-logs-screen button,
.system-admin-logs-screen .button-link,
.system-admin-logs-screen .nav-pill,
.system-admin-exports-screen button,
.system-admin-exports-screen .button-link,
.system-admin-exports-screen .nav-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.15;
    text-align: center;
    vertical-align: middle;
    appearance: none;
    -webkit-appearance: none;
}
/* Горный диспетчер: Figma GD/K + GD/L */
.dispatcher-control-screen {
    margin: 0;
    background: #071015;
    overflow: hidden;
}

.dispatcher-shell {
    --gd-header-h: clamp(108px, 11vh, 126px);
    --gd-header-scrollbar-comp: 17px;
    --gd-bg: #12191d;
    --gd-top: #1a2125;
    --gd-panel: #20272a;
    --gd-panel-soft: #25342e;
    --gd-ink: #f3f7f8;
    --gd-muted: #9aa6aa;
    --gd-line: #3a474c;
    --gd-line-soft: #2a353a;
    --gd-green: #198e55;
    --gd-green-soft: rgba(67, 197, 115, .18);
    --gd-yellow: #c88712;
    --gd-yellow-soft: rgba(230, 161, 27, .18);
    --gd-red: #d64a42;
    --gd-red-soft: rgba(224, 76, 68, .20);
    --gd-cyan: #168ba4;
    --gd-shadow: 0 12px 28px rgba(0, 0, 0, .24);
    min-height: 100vh;
    padding: 8px;
    background: var(--gd-bg);
    color: var(--gd-ink);
    font-family: "Roboto Condensed", "Arial Narrow", "Segoe UI", Arial, sans-serif;
    letter-spacing: 0;
    height: 100vh;
    overflow: hidden;
    -webkit-user-select: none;
    user-select: none;
}

.dispatcher-shell input,
.dispatcher-shell textarea,
.dispatcher-shell select,
.dispatcher-shell [contenteditable="true"] {
    -webkit-user-select: text;
    user-select: text;
}

.dispatcher-shell.dispatcher-day {
    --gd-bg: #dce4e7;
    --gd-top: #eef3f4;
    --gd-panel: #f7faf9;
    --gd-panel-soft: #e9f0ee;
    --gd-ink: #162022;
    --gd-muted: #647277;
    --gd-line: #cdd7da;
    --gd-line-soft: #dde5e7;
    --gd-green: #198e55;
    --gd-green-soft: #dff5ea;
    --gd-yellow: #c88712;
    --gd-yellow-soft: #fff0c9;
    --gd-red: #d64a42;
    --gd-red-soft: #ffe2df;
    --gd-cyan: #168ba4;
    --gd-shadow: 0 14px 30px rgba(53, 70, 78, .18);
}

.dispatcher-compat-title {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.dispatcher-shell.dispatcher-night {
    --gd-bg: #050b0f;
    --gd-top: #0b151b;
    --gd-panel: #10191f;
    --gd-panel-soft: #0b151b;
    --gd-ink: #edf5f7;
    --gd-muted: #8c9ca4;
    --gd-line: #23333c;
    --gd-line-soft: #18262e;
    --gd-green: #7bd319;
    --gd-green-soft: rgba(123, 211, 25, .14);
    --gd-yellow: #ffb21d;
    --gd-yellow-soft: rgba(255, 178, 29, .16);
    --gd-red: #ff524b;
    --gd-red-soft: rgba(255, 82, 75, .16);
    --gd-cyan: #2aa9d8;
    --gd-shadow: 0 12px 30px rgba(0, 0, 0, .32);
}

.dispatcher-notice-modal[hidden] {
    display: none;
}

.dispatcher-notice-modal {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(2, 8, 12, .62);
    backdrop-filter: blur(3px);
}

.dispatcher-notice-dialog {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    width: min(520px, calc(100vw - 32px));
    padding: 18px;
    border: 1px solid color-mix(in srgb, var(--gd-yellow) 52%, var(--gd-line));
    border-radius: 14px;
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--gd-panel) 92%, var(--gd-yellow)), var(--gd-panel));
    color: var(--gd-ink);
    box-shadow: 0 26px 80px rgba(0, 0, 0, .42);
}

.dispatcher-notice-mark {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid color-mix(in srgb, var(--gd-yellow) 72%, transparent);
    border-radius: 10px;
    background: color-mix(in srgb, var(--gd-yellow) 18%, transparent);
    color: var(--gd-yellow);
    font-size: 24px;
    font-weight: 900;
    line-height: 1;
}

.dispatcher-notice-copy h2 {
    margin: 0 0 4px;
    font-size: 20px;
    font-weight: 900;
    line-height: 1.1;
    text-transform: uppercase;
}

.dispatcher-notice-copy p {
    margin: 0;
    color: var(--gd-muted);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
}

.dispatcher-notice-dialog button {
    width: 86px;
    min-height: 40px;
    border: 1px solid color-mix(in srgb, var(--gd-cyan) 70%, var(--gd-line));
    border-radius: 10px;
    background: color-mix(in srgb, var(--gd-cyan) 18%, var(--gd-panel));
    color: var(--gd-ink);
    font-family: inherit;
    font-size: 15px;
    font-weight: 900;
    text-transform: uppercase;
    cursor: pointer;
}

.dispatcher-notice-dialog button:focus-visible {
    outline: 2px solid var(--gd-cyan);
    outline-offset: 2px;
}

.dispatcher-board {
    display: grid;
    grid-template-columns: clamp(286px, 17.8vw, 360px) minmax(0, 1fr) clamp(270px, 16.4vw, 340px);
    grid-template-rows: var(--gd-header-h) minmax(0, 1fr) minmax(0, 1fr) clamp(176px, 21.5vh, 230px);
    gap: 10px 12px;
    width: 100%;
    height: calc(100vh - 16px);
    max-height: none;
    margin: 0;
    background: var(--gd-bg);
    overflow: hidden;
}

.dispatcher-topbar {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(260px, 1.45fr) minmax(96px, .52fr) minmax(94px, .5fr) minmax(210px, 1.16fr) minmax(94px, .5fr) minmax(136px, .74fr) minmax(142px, .78fr) minmax(98px, .52fr) minmax(98px, .52fr) minmax(66px, .36fr) minmax(76px, .42fr);
    align-items: stretch;
    background: var(--gd-top);
    border-bottom: 1px solid var(--gd-line-soft);
    overflow: hidden;
}

.dispatcher-title,
.dispatcher-kpi,
.dispatcher-clock {
    min-width: 0;
    padding: 12px 10px;
    border-left: 1px solid var(--gd-line-soft);
}

.dispatcher-title {
    position: relative;
    border-left: 0;
    padding-left: 18px;
}

.dispatcher-title > strong {
    display: block;
    overflow: hidden;
    font-size: 25px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.dispatcher-title > span,
.dispatcher-kpi span,
.dispatcher-kpi em,
.dispatcher-clock span {
    display: block;
    color: var(--gd-muted);
    font-size: 11px;
    font-style: normal;
    font-weight: 700;
    line-height: 1.05;
    white-space: nowrap;
}

.dispatcher-title > span {
    margin-top: 7px;
    font-size: 16px;
    font-weight: 500;
}

.dispatcher-kpi strong,
.dispatcher-clock strong {
    display: block;
    overflow: hidden;
    margin-top: 5px;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.02;
}

.dispatcher-kpi.kpi-wide strong {
    font-size: 17px;
    white-space: nowrap;
}

.dispatcher-kpi:not(.kpi-wide):not(.kpi-compact):not(.kpi-alert) strong {
    font-size: 17px;
}

.dispatcher-kpi.kpi-compact {
    text-align: center;
}

.dispatcher-kpi.kpi-compact em {
    margin-top: 2px;
    color: var(--gd-green);
    font-size: 9px;
}

.dispatcher-kpi.kpi-alert strong {
    color: var(--gd-red);
    text-align: center;
}

.dispatcher-clock {
    position: relative;
    text-align: center;
}

.dispatcher-theme-button {
    position: absolute;
    right: 6px;
    bottom: 5px;
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 18px;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 1px solid var(--gd-line);
    border-radius: 3px;
    background: var(--gd-panel-soft);
    color: var(--gd-muted);
    font: inherit;
    font-size: 9px;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
}

.dispatcher-clock strong {
    margin-top: 0;
    font-size: 22px;
    white-space: nowrap;
}

.is-ok { color: var(--gd-green) !important; }
.is-warning { color: var(--gd-yellow) !important; }
.is-danger { color: var(--gd-red) !important; }
.is-info { color: var(--gd-cyan) !important; }

.dispatcher-left {
    grid-row: 2 / 5;
    display: grid;
    grid-template-rows: 422px 230px;
    gap: 10px;
    min-width: 0;
}

.dispatcher-excavators {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 9px 14px;
}

.dispatcher-equipment-tile {
    height: 100px;
    min-width: 0;
    padding: 7px 6px 5px;
    border: 1px solid var(--gd-green);
    border-radius: 5px;
    background: var(--gd-green-soft);
    overflow: hidden;
}

.dispatcher-equipment-tile.status-yellow {
    border-color: var(--gd-yellow);
    background: var(--gd-yellow-soft);
}

.dispatcher-equipment-tile.status-red {
    border-color: var(--gd-red);
    background: var(--gd-red-soft);
}

.dispatcher-night .dispatcher-equipment-tile {
    background: rgba(123, 211, 25, .09);
}

.dispatcher-night .dispatcher-equipment-tile.status-yellow {
    background: rgba(255, 178, 29, .11);
}

.dispatcher-night .dispatcher-equipment-tile.status-red {
    background: rgba(255, 82, 75, .13);
}

.tile-head strong,
.tile-head span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tile-head strong {
    font-size: 15px;
    line-height: 1;
}

.tile-head span {
    margin-top: 3px;
    color: var(--gd-muted);
    font-size: 12px;
    line-height: 1;
}

.equipment-progress {
    position: relative;
    color: var(--gd-green);
    display: grid;
    place-items: center;
    border-radius: 8px;
    background:
        conic-gradient(from -90deg, currentColor 0 var(--progress), color-mix(in srgb, currentColor 18%, transparent) var(--progress) 100%);
    box-shadow:
        inset 0 0 0 1px color-mix(in srgb, currentColor 32%, transparent),
        0 0 9px color-mix(in srgb, currentColor 18%, transparent);
}

.status-yellow .equipment-progress,
.status-risk .equipment-progress { color: var(--gd-yellow); }
.status-red .equipment-progress,
.status-danger .equipment-progress { color: var(--gd-red); }

.equipment-progress img {
    position: absolute;
    object-fit: contain;
}

.equipment-progress::before {
    content: "";
    position: absolute;
    inset: 4px;
    z-index: 0;
    border-radius: 5px;
    background: var(--gd-panel);
}

.equipment-progress-track-img {
    z-index: 1;
    opacity: .78;
    filter: saturate(.86) brightness(.96);
}

.equipment-progress-fill-img {
    display: none;
}

.equipment-progress-tile {
    width: 42px;
    height: 42px;
    margin: 2px auto 0;
    border-radius: 7px;
}

.equipment-progress-tile img {
    left: 7px;
    top: 10px;
    width: 28px;
    height: 21px;
}

.equipment-progress-tile span {
    position: absolute;
    right: -5px;
    bottom: -11px;
    left: -5px;
    color: currentColor;
    font-size: 8px;
    font-weight: 900;
    line-height: 1;
    text-align: center;
}

.equipment-progress-complex {
    position: relative;
    grid-column: 2;
    grid-row: 2;
    align-self: center;
    justify-self: center;
    width: clamp(92px, 8vw, 124px);
    height: clamp(92px, 8vw, 124px);
    margin-top: clamp(2px, .8vh, 12px);
}

.equipment-progress-complex img {
    left: 50%;
    top: 50%;
    width: 68%;
    height: 52%;
    transform: translate(-50%, -50%);
    object-fit: contain;
}

.equipment-progress-complex strong {
    position: absolute;
    left: 50%;
    top: 52%;
    transform: translate(-50%, -50%);
    color: currentColor;
    font-size: clamp(17px, 1.18vw, 24px);
    font-weight: 900;
    line-height: 1;
    text-align: center;
    text-shadow: 0 1px 5px var(--gd-bg);
}

.tile-state {
    margin-top: 7px;
    color: var(--gd-green);
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    text-align: center;
}

.status-yellow .tile-state { color: var(--gd-yellow); }
.status-red .tile-state { color: var(--gd-red); }

.dispatcher-balance,
.dispatcher-actions-panel,
.dispatcher-journal,
.dispatcher-forecast,
.dispatcher-losses,
.dispatcher-list-card,
.dispatcher-details {
    border: 1px solid var(--gd-line);
    border-radius: 6px;
    background: var(--gd-panel);
    box-shadow: var(--gd-shadow);
}

.dispatcher-balance {
    padding: 8px 10px;
    overflow: hidden;
}

.dispatcher-balance h2,
.dispatcher-actions-panel h2,
.dispatcher-journal h2,
.dispatcher-forecast h2,
.dispatcher-losses h2,
.dispatcher-list-card h2,
.dispatcher-details summary {
    margin: 0;
    color: var(--gd-ink);
    font-size: 19px;
    font-weight: 800;
    line-height: 1.1;
}

.balance-metrics {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
    margin-top: 12px;
}

.balance-metrics span {
    min-width: 0;
    text-align: center;
}

.balance-metrics em {
    display: block;
    overflow: hidden;
    color: var(--gd-muted);
    font-size: 9px;
    font-style: normal;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.balance-metrics strong {
    display: block;
    margin-top: 3px;
    font-size: 21px;
    line-height: 1;
}

.balance-table { margin-top: 14px; }

.balance-row {
    display: grid;
    grid-template-columns: 1fr 62px 52px 50px;
    align-items: center;
    min-height: 19px;
    border-top: 1px solid var(--gd-line-soft);
    font-size: 13px;
}

.balance-head {
    min-height: 17px;
    border-top: 0;
    color: var(--gd-muted);
    font-size: 10px;
}

.balance-row span,
.balance-row b { text-align: center; }
.balance-plus { color: var(--gd-green); }
.balance-minus { color: var(--gd-red); }

.dispatcher-complexes {
    grid-column: 2;
    grid-row: 2 / 4;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 10px;
    min-width: 0;
}

.dispatcher-complex-card {
    --complex-accent: var(--gd-green);
    position: relative;
    display: grid;
    grid-template-columns: minmax(72px, .72fr) minmax(112px, .92fr) minmax(94px, .78fr);
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 8px;
    min-width: 0;
    padding: clamp(14px, 1vw, 20px) clamp(14px, 1vw, 22px) clamp(46px, 4.7vh, 58px);
    border: 2px solid var(--gd-green);
    border-radius: 7px;
    background: var(--gd-panel);
    box-shadow: var(--gd-shadow);
    overflow: hidden;
}

.dispatcher-complex-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 4;
    padding: 3px;
    border-radius: 7px;
    background: conic-gradient(
        from -90deg,
        var(--complex-accent) 0 var(--complex-progress),
        color-mix(in srgb, var(--complex-accent) 18%, transparent) var(--complex-progress) 100%
    );
    pointer-events: none;
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.dispatcher-tools[hidden],
.dispatcher-tools {
    display: none !important;
}

.dispatcher-complex-card.status-risk {
    --complex-accent: var(--gd-yellow);
    border-color: var(--gd-yellow);
    background: var(--gd-yellow-soft);
}

.dispatcher-complex-card.status-danger {
    --complex-accent: var(--gd-red);
    border-color: var(--gd-red);
    background: var(--gd-red-soft);
}

.dispatcher-night .dispatcher-complex-card {
    background: radial-gradient(circle at 45% 30%, rgba(123, 211, 25, .12), transparent 38%), var(--gd-panel);
}

.dispatcher-night .dispatcher-complex-card.status-risk {
    background: radial-gradient(circle at 45% 30%, rgba(255, 178, 29, .15), transparent 38%), var(--gd-panel);
}

.dispatcher-night .dispatcher-complex-card.status-danger {
    background: radial-gradient(circle at 45% 30%, rgba(255, 82, 75, .15), transparent 38%), var(--gd-panel);
}

.complex-head h2 {
    position: static;
    margin: 0;
    font-size: clamp(34px, 3.2vw, 48px);
    font-weight: 600;
    line-height: 1;
}

.complex-head {
    grid-column: 1 / -1;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
}

.complex-head span {
    position: static;
    min-width: clamp(58px, 18%, 78px);
    padding: 5px 10px;
    border: 1px solid var(--gd-green);
    border-radius: 3px;
    color: var(--gd-green);
    background: var(--gd-green-soft);
    font-size: clamp(12px, .85vw, 15px);
    font-weight: 900;
    text-align: center;
}

.status-risk .complex-head span {
    border-color: var(--gd-yellow);
    color: var(--gd-yellow);
    background: var(--gd-yellow-soft);
}

.status-danger .complex-head span {
    border-color: var(--gd-red);
    color: var(--gd-red);
    background: var(--gd-red-soft);
}

.complex-equipment {
    position: absolute;
    left: 50%;
    top: 61%;
    z-index: 2;
    width: 34%;
    max-width: 190px;
    transform: translateX(-50%);
    color: var(--gd-ink);
    font-size: clamp(10px, .66vw, 13px);
    font-weight: 800;
    line-height: 1.05;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.complex-trucks {
    position: static;
    grid-column: 1;
    grid-row: 2;
    align-self: end;
    justify-self: start;
    width: 100%;
    min-height: 50px;
}

.complex-trucks img {
    width: clamp(34px, 3.2vw, 48px);
    height: clamp(25px, 2.4vw, 36px);
    object-fit: contain;
    opacity: .8;
}

.complex-trucks span {
    display: block;
    margin-left: clamp(54px, 4.2vw, 66px);
    margin-top: -22px;
    color: var(--gd-muted);
    font-size: clamp(9px, .7vw, 12px);
    font-weight: 800;
}

.complex-trucks strong {
    display: block;
    margin-left: clamp(54px, 4.2vw, 66px);
    color: var(--gd-ink);
    font-size: clamp(22px, 1.6vw, 28px);
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.complex-plan {
    position: static;
    grid-column: 3;
    grid-row: 2;
    align-self: center;
    justify-self: stretch;
    width: clamp(112px, 31%, 148px);
    width: 100%;
    margin: 0;
}

.complex-plan dt {
    margin-top: clamp(8px, 1.2vh, 14px);
    color: var(--gd-muted);
    font-size: clamp(10px, .72vw, 13px);
    font-weight: 700;
    line-height: 1;
    text-align: right;
}

.complex-plan dd {
    margin: 3px 0 0;
    color: var(--gd-ink);
    font-size: clamp(15px, .92vw, 18px);
    font-weight: 900;
    line-height: 1.05;
    text-align: right;
    white-space: nowrap;
}

.complex-status {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: clamp(30px, 9%, 42px);
    padding-top: clamp(6px, 1%, 10px);
    color: var(--gd-green);
    background: var(--gd-green-soft);
    font-size: clamp(16px, 1.15vw, 22px);
    font-weight: 900;
    text-align: center;
}

.status-risk .complex-status {
    color: var(--gd-yellow);
    background: var(--gd-yellow-soft);
}

.status-danger .complex-status {
    color: var(--gd-red);
    background: var(--gd-red-soft);
}

.dispatcher-complex-card {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr) auto auto;
    gap: clamp(8px, 1vh, 12px);
    padding: clamp(14px, 1vw, 18px) clamp(14px, 1vw, 18px) clamp(38px, 4.6vh, 46px);
}

.complex-main {
    display: grid;
    grid-template-columns: minmax(112px, .9fr) minmax(132px, 1fr);
    gap: clamp(10px, 1.2vw, 18px);
    align-items: center;
    min-height: 0;
}

.complex-machine {
    display: grid;
    justify-items: center;
    gap: 6px;
    min-width: 0;
}

.complex-machine .equipment-progress-complex {
    grid-column: auto;
    grid-row: auto;
    width: clamp(96px, 7vw, 130px);
    height: clamp(96px, 7vw, 130px);
    margin: 0;
}

.complex-equipment {
    position: static;
    width: min(100%, 180px);
    max-width: none;
    transform: none;
    color: var(--gd-ink);
    font-size: clamp(11px, .75vw, 13px);
    letter-spacing: .01em;
}

.complex-plan {
    grid-column: auto;
    grid-row: auto;
    display: grid;
    gap: clamp(8px, 1vh, 12px);
    align-self: stretch;
    justify-self: stretch;
    width: 100%;
}

.complex-plan div {
    min-width: 0;
    padding-bottom: 7px;
    border-bottom: 1px solid var(--gd-line-soft);
}

.complex-plan div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.complex-plan dt {
    margin: 0 0 4px;
    text-align: left;
}

.complex-plan dd {
    overflow: hidden;
    margin: 0;
    text-align: left;
    text-overflow: ellipsis;
}

.complex-truckline {
    display: grid;
    grid-template-columns: minmax(110px, .72fr) minmax(0, 1fr);
    gap: 10px;
    align-items: end;
    min-width: 0;
}

.complex-trucks {
    grid-column: auto;
    grid-row: auto;
    display: grid;
    grid-template-columns: clamp(36px, 3vw, 48px) minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 8px;
    align-items: center;
    align-self: auto;
    width: auto;
    min-height: 42px;
}

.complex-trucks img {
    grid-row: 1 / 3;
    align-self: center;
    width: clamp(32px, 2.7vw, 43px);
    height: clamp(24px, 2vw, 32px);
}

.complex-trucks span,
.complex-trucks strong {
    overflow: hidden;
    margin: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.complex-trucks span {
    align-self: end;
}

.complex-trucks strong {
    align-self: start;
}

.complex-truck-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 4px;
    min-width: 0;
    max-height: 42px;
    overflow: hidden;
}

.complex-truck-chips span,
.complex-truck-chips em {
    max-width: 56px;
    overflow: hidden;
    padding: 3px 6px;
    border: 1px solid rgba(142, 158, 166, .4);
    border-radius: 3px;
    background: rgba(142, 158, 166, .12);
    color: var(--gd-ink);
    font-size: clamp(9px, .65vw, 11px);
    font-style: normal;
    font-weight: 900;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.complex-truck-chips em {
    max-width: none;
    color: var(--gd-muted);
}

.complex-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: clamp(34px, 9.4%, 44px);
    padding: 0 12px;
    line-height: 1;
}

.complex-status strong,
.complex-status span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.complex-status strong {
    flex: 0 0 auto;
    font-size: clamp(15px, 1.06vw, 20px);
}

.complex-status span {
    min-width: 0;
    color: color-mix(in srgb, currentColor 74%, var(--gd-muted));
    font-size: clamp(9px, .68vw, 12px);
    font-weight: 800;
}

.balance-zero { color: var(--gd-ink); }

.dispatcher-right {
    grid-column: 3;
    grid-row: 2 / 4;
    display: grid;
    grid-template-rows: 300px 162px;
    gap: 10px;
    min-width: 0;
}

.dispatcher-actions-panel,
.dispatcher-journal {
    padding: 9px 8px;
    overflow: hidden;
}

.dispatcher-journal {
    min-height: 0;
}

.dispatcher-action-item {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 8px;
    min-height: 55px;
    margin-top: 7px;
    padding: 6px;
    border: 1px solid var(--gd-yellow);
    border-radius: 4px;
    background: var(--gd-yellow-soft);
}

.dispatcher-action-item.status-danger {
    border-color: var(--gd-red);
    background: var(--gd-red-soft);
}

.dispatcher-action-item.status-success {
    border-color: var(--gd-green);
    background: var(--gd-green-soft);
}

.dispatcher-action-item > strong {
    display: grid;
    place-items: center;
    width: 34px;
    min-height: 41px;
    border-radius: 3px;
    background: rgba(0, 0, 0, .08);
    font-size: 24px;
}

.dispatcher-action-item h3,
.dispatcher-action-item p {
    margin: 0;
    overflow-wrap: anywhere;
    white-space: normal;
}

.dispatcher-action-item h3 {
    color: var(--gd-yellow);
    font-size: 11px;
    font-weight: 900;
    line-height: 1.05;
    text-transform: uppercase;
}

.dispatcher-action-item.status-danger h3 { color: var(--gd-red); }
.dispatcher-action-item.status-success h3 { color: var(--gd-green); }

.dispatcher-action-item p,
.dispatcher-action-item span {
    display: block;
    margin-top: 2px;
    color: var(--gd-ink);
    font-size: 8px;
    font-weight: 800;
    line-height: 1.1;
}

.journal-row {
    display: grid;
    grid-template-columns: 38px 42px 1fr;
    gap: 6px;
    align-items: start;
    min-height: 32px;
    padding: 5px 0 4px;
    border-bottom: 1px solid var(--gd-line-soft);
}

.journal-row time {
    color: var(--gd-muted);
    font-size: 12px;
}

.journal-row strong {
    position: relative;
    padding-left: 8px;
    font-size: 13px;
}

.journal-row strong::before {
    content: "";
    position: absolute;
    left: 0;
    top: -2px;
    bottom: -12px;
    width: 3px;
    border-radius: 2px;
    background: var(--gd-yellow);
}

.journal-row.status-danger strong::before { background: var(--gd-red); }
.journal-row.status-success strong::before { background: var(--gd-green); }

.journal-row span {
    overflow: hidden;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.12;
    text-transform: uppercase;
}

.dispatcher-forecast {
    grid-column: 2;
    grid-row: 4;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 212px 100px;
    grid-template-rows: 36px 1fr;
    gap: 0 12px;
    min-width: 0;
    padding: 9px 10px;
}

.dispatcher-forecast h2 { grid-column: 1 / -1; }

.forecast-chart {
    position: relative;
    align-self: stretch;
    min-height: 92px;
    border: 1px solid var(--gd-line-soft);
    background:
        linear-gradient(var(--gd-line-soft) 1px, transparent 1px) 0 0 / 100% 30px,
        linear-gradient(90deg, var(--gd-line-soft) 1px, transparent 1px) 0 0 / 50px 100%,
        linear-gradient(to top, var(--gd-green-soft), transparent 58%);
    overflow: hidden;
}

.forecast-chart i {
    position: absolute;
    left: calc((var(--p) - 12) * 3.2%);
    bottom: calc(var(--p) * .78%);
    width: 54px;
    height: 2px;
    background: var(--gd-green);
    transform: rotate(-8deg);
}

.forecast-chart i:nth-child(even) {
    background: var(--gd-cyan);
    transform: translateY(10px) rotate(-8deg);
}

.dispatcher-forecast dl {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-content: start;
    gap: 3px 14px;
    margin: 0;
}

.dispatcher-forecast dt {
    color: var(--gd-muted);
    font-size: 11px;
    font-weight: 900;
}

.dispatcher-forecast dd {
    margin: 0 0 3px;
    font-size: 20px;
    font-weight: 900;
    line-height: 1;
}

.forecast-rate {
    align-self: end;
    justify-self: end;
    font-size: 21px;
}

.dispatcher-losses {
    grid-column: 3;
    grid-row: 4;
    display: grid;
    grid-template-columns: 92px 1fr;
    grid-template-rows: 36px 1fr;
    gap: 0 10px;
    padding: 9px 10px;
    min-height: 0;
    overflow: hidden;
}

.dispatcher-losses h2 { grid-column: 1 / -1; }

.loss-donut {
    width: 78px;
    height: 78px;
    align-self: center;
    justify-self: center;
    border-radius: 50%;
    background: conic-gradient(var(--gd-yellow) 0 40%, var(--gd-red) 40% 56%, var(--gd-cyan) 56% 68%, var(--gd-green) 68% 79%, #8fa0bb 79% 87%, #aab4b8 87% 100%);
    box-shadow: inset 0 0 0 18px var(--gd-panel);
}

.loss-list {
    align-self: center;
    min-width: 0;
}

.loss-list > strong {
    display: block;
    margin-bottom: 4px;
    font-size: 11px;
    text-align: right;
}

.loss-list span {
    display: grid;
    grid-template-columns: 1fr 28px;
    gap: 6px;
    min-height: 13px;
    font-size: 9px;
    line-height: 1;
}

.loss-list em {
    overflow: hidden;
    font-style: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.loss-list b { text-align: right; }

.dispatcher-tools {
    width: min(1376px, calc(100vw - 16px));
    margin: 12px auto 0;
    padding-bottom: 28px;
    color: var(--gd-ink);
}

.dispatcher-tool-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    margin-bottom: 10px;
    padding: 14px;
    border: 1px solid var(--gd-line);
    border-radius: 8px;
    background: var(--gd-panel);
    box-shadow: var(--gd-shadow);
}

.dispatcher-tool-head h2,
.dispatcher-tool-head p { margin: 0; }

.dispatcher-tool-head h2 { font-size: 22px; }

.dispatcher-tool-head p {
    margin-top: 4px;
    color: var(--gd-muted);
}

.dispatcher-tool-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.dispatcher-details {
    margin-bottom: 10px;
    padding: 12px;
}

.dispatcher-details summary { cursor: pointer; }

.dispatcher-filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(180px, 1fr)) repeat(3, minmax(150px, .8fr)) auto;
    gap: 10px;
    align-items: end;
    margin-top: 12px;
}

.dispatcher-filters label {
    color: var(--gd-muted);
    font-size: 12px;
    font-weight: 900;
}

.dispatcher-filters select,
.dispatcher-filters input[type="text"],
.dispatcher-filters button,
.dispatcher-inline-form input,
.dispatcher-inline-form button {
    width: 100%;
    min-height: 36px;
    border: 1px solid var(--gd-line);
    border-radius: 6px;
    padding: 7px 9px;
    background: var(--gd-panel-soft);
    color: var(--gd-ink);
    font: inherit;
}

.dispatcher-filters button,
.dispatcher-inline-form button {
    border-color: var(--gd-green);
    background: var(--gd-green);
    color: #ffffff;
    font-weight: 900;
    cursor: pointer;
}

.dispatcher-filters .checkline {
    display: flex;
    gap: 6px;
    align-items: center;
    min-height: 36px;
}

.dispatcher-filters .checkline input { width: auto; }

.dispatcher-lists-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.dispatcher-list-card {
    min-width: 0;
    padding: 12px;
}

.dispatcher-table-wrap {
    max-height: 340px;
    margin-top: 10px;
    overflow: auto;
}

.dispatcher-list-card table {
    width: 100%;
    border-collapse: collapse;
    font-family: "Manrope", "Segoe UI", Arial, sans-serif;
    font-size: 13px;
}

.dispatcher-list-card th,
.dispatcher-list-card td {
    padding: 8px;
    border-bottom: 1px solid var(--gd-line-soft);
    text-align: left;
    vertical-align: top;
}

.dispatcher-list-card th {
    color: var(--gd-muted);
    font-size: 11px;
    text-transform: uppercase;
    white-space: nowrap;
}

.dispatcher-inline-form {
    display: grid;
    grid-template-columns: minmax(100px, 1fr) auto;
    gap: 6px;
    margin: 0 0 6px;
}

.dispatcher-inline-form button {
    min-width: 92px;
    padding-inline: 10px;
}

.dispatcher-messages {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 20;
    width: min(460px, calc(100vw - 36px));
}

/* Dispatcher workboard prototype: excavator garage / complex zones / truck garage */
.dispatcher-board {
    --gd-equipment-slot-w: clamp(68px, calc(5.4vw - 14px), 92px);
    --gd-equipment-slot-h: calc((100% - (11 * var(--gd-equipment-slot-gap))) / 12);
    --gd-equipment-slot-gap: 6px;
    --gd-truck-slot-w: var(--gd-equipment-slot-w);
    --gd-truck-slot-h: var(--gd-equipment-slot-h);
    --gd-truck-slot-gap: var(--gd-equipment-slot-gap);
    --gd-excavator-garage-width: clamp(82px, 5.4vw, 106px);
    --truck-garage-columns: 3;
    --truck-garage-scrollbar-w: 0px;
    --truck-garage-width: min(
        calc(
            (var(--truck-garage-columns) * var(--gd-truck-slot-w)) +
            ((var(--truck-garage-columns) - 1) * var(--gd-truck-slot-gap)) +
            14px +
            var(--truck-garage-scrollbar-w)
        ),
        43vw
    );
    grid-template-columns: var(--gd-excavator-garage-width) minmax(0, 1fr) var(--truck-garage-width);
    grid-template-rows: var(--gd-header-h) minmax(0, 1fr);
    gap: 10px;
}

.dispatcher-board.is-excavator-garage-empty {
    grid-template-columns: 0 minmax(0, 1fr) var(--truck-garage-width);
    column-gap: 0;
}

.dispatcher-board.is-excavator-garage-empty.is-complex-dragging {
    grid-template-columns: var(--gd-excavator-garage-width) minmax(0, 1fr) var(--truck-garage-width);
    column-gap: 10px;
}

.dispatcher-board.is-truck-garage-empty {
    --truck-garage-width: 0px;
}

.dispatcher-topbar {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 58px minmax(32px, 1fr);
    gap: 4px;
    padding: 7px 10px 7px;
}

.dispatcher-title,
.dispatcher-kpi,
.dispatcher-clock {
    padding: 0;
}

.dispatcher-nav-row {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 516px minmax(590px, auto) minmax(78px, auto);
    align-items: center;
    gap: 10px;
    min-width: 0;
    height: 58px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--gd-line-soft);
}

.dispatcher-nav {
    display: flex;
    min-width: 0;
    width: 516px;
    gap: 6px;
    justify-content: center;
    overflow: hidden;
}

.dispatcher-top-actions a,
.dispatcher-theme-button,
.dispatcher-shift-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 10px;
    border: 1px solid var(--gd-line);
    border-radius: 4px;
    background: var(--gd-panel-soft);
    color: var(--gd-muted);
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
    transition:
        transform .16s ease,
        border-color .16s ease,
        background .16s ease,
        color .16s ease,
        box-shadow .16s ease,
        filter .16s ease;
    will-change: transform;
}

.dispatcher-top-actions a,
.dispatcher-top-actions button:not([data-dispatcher-theme-toggle]),
.dispatcher-shift-button {
    flex: 0 0 auto;
    min-width: 82px;
}

.dispatcher-shift-button {
    width: 150px;
    padding: 0 8px;
}

.dispatcher-top-actions a[href$="/logout/"],
.dispatcher-top-actions a[href$="/logout"] {
    width: 74px;
}

.dispatcher-day .dispatcher-top-actions a,
.dispatcher-day .dispatcher-theme-button,
.dispatcher-day .dispatcher-shift-button {
    background: #f7fbfa;
    color: #3f4d52;
    box-shadow: inset 0 -1px 0 rgba(22, 32, 34, .08);
}

.dispatcher-day .dispatcher-top-actions a:hover,
.dispatcher-day .dispatcher-theme-button:hover,
.dispatcher-day .dispatcher-shift-button:hover {
    background: color-mix(in srgb, #ffffff 86%, var(--gd-green-soft));
    color: var(--gd-ink);
    box-shadow: 0 8px 18px rgba(32, 62, 70, .14), inset 0 0 0 1px rgba(80, 214, 74, .16);
}

.dispatcher-top-actions a:hover,
.dispatcher-theme-button:hover,
.dispatcher-shift-button:hover {
    border-color: var(--gd-cyan);
    color: var(--gd-text);
    animation: dispatcher-button-pulse .9s ease-in-out infinite;
    background: color-mix(in srgb, var(--gd-panel-soft) 78%, var(--gd-cyan) 12%);
    box-shadow: 0 0 0 1px rgba(52, 194, 211, .14), 0 10px 22px rgba(0, 0, 0, .28);
    filter: saturate(1.12);
}

.dispatcher-top-actions a:active,
.dispatcher-theme-button:active,
.dispatcher-shift-button:active {
    transform: translateY(0) scale(.985);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, .24);
}

.dispatcher-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 122px;
    width: 122px;
    min-height: 34px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: rgba(95, 123, 131, .12);
    color: var(--gd-muted);
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow: inset 0 0 0 1px rgba(132, 158, 165, .1);
    transition:
        transform .16s ease,
        border-color .16s ease,
        background .16s ease,
        color .16s ease,
        box-shadow .16s ease,
        filter .16s ease;
    will-change: transform;
}

.dispatcher-nav a:hover {
    border-color: rgba(52, 194, 211, .55);
    color: var(--gd-text);
    background: rgba(52, 194, 211, .08);
    animation: dispatcher-button-pulse .9s ease-in-out infinite;
}

.dispatcher-nav a.is-active {
    border-color: var(--gd-green);
    background: rgba(80, 214, 74, .14);
    color: var(--gd-green);
}

.dispatcher-day .dispatcher-nav a {
    background: #edf3f2;
    color: #435157;
    box-shadow: inset 0 0 0 1px rgba(27, 54, 61, .08);
}

.dispatcher-day .dispatcher-nav a:hover {
    background: #ffffff;
    color: var(--gd-ink);
}

.dispatcher-day .dispatcher-nav a.is-active {
    background: var(--gd-green-soft);
    color: var(--gd-green);
}

.dispatcher-analytics-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
    padding: 6px 0;
    border-bottom: 1px solid var(--gd-line-soft);
}

.dispatcher-subnav {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1 1 auto;
    min-width: 0;
    padding: 0;
    border-bottom: 0;
    overflow-x: auto;
}

.dispatcher-toolbar-spacer {
    flex: 1 1 auto;
    min-width: 0;
}

.dispatcher-subnav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 82px;
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid var(--gd-line);
    border-radius: 4px;
    background: rgba(15, 28, 32, .76);
    color: var(--gd-muted);
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
    transition:
        transform .16s ease,
        border-color .16s ease,
        background .16s ease,
        color .16s ease,
        box-shadow .16s ease,
        filter .16s ease;
    will-change: transform;
}

.dispatcher-subnav a:hover {
    border-color: var(--gd-cyan);
    color: var(--gd-text);
    animation: dispatcher-button-pulse .9s ease-in-out infinite;
}

.dispatcher-subnav a.is-active {
    border-color: var(--gd-green);
    background: rgba(80, 214, 74, .12);
    color: var(--gd-green);
}

.dispatcher-day .dispatcher-subnav a {
    background: #f7fbfa;
    color: #3f4d52;
    box-shadow: inset 0 -1px 0 rgba(22, 32, 34, .08);
}

.dispatcher-day .dispatcher-subnav a:hover {
    background: #ffffff;
    color: var(--gd-ink);
}

.dispatcher-day .dispatcher-subnav a.is-active {
    background: var(--gd-green-soft);
    color: var(--gd-green);
}

.dispatcher-top-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    width: 590px;
    min-width: 590px;
}

.dispatcher-shift-form {
    margin: 0;
}

.dispatcher-shift-button {
    border-color: rgba(80, 214, 74, .72);
    background: rgba(80, 214, 74, .10);
    color: var(--gd-green);
    cursor: pointer;
}

.dispatcher-shift-button.is-danger {
    border-color: rgba(255, 80, 74, .72);
    background: rgba(255, 80, 74, .08);
    color: var(--gd-red);
}

.dispatcher-shift-button:hover {
    border-color: color-mix(in srgb, var(--gd-green) 88%, #ffffff);
    background: rgba(80, 214, 74, .18);
    color: color-mix(in srgb, var(--gd-green) 86%, #ffffff);
    box-shadow: 0 0 0 1px rgba(80, 214, 74, .18), 0 0 20px rgba(80, 214, 74, .22), 0 10px 24px rgba(0, 0, 0, .3);
}

.dispatcher-shift-button.is-danger:hover {
    border-color: color-mix(in srgb, var(--gd-red) 86%, #ffffff);
    background: rgba(255, 80, 74, .16);
    color: color-mix(in srgb, var(--gd-red) 86%, #ffffff);
    box-shadow: 0 0 0 1px rgba(255, 80, 74, .18), 0 0 20px rgba(255, 80, 74, .2), 0 10px 24px rgba(0, 0, 0, .3);
}

.dispatcher-day .dispatcher-shift-button {
    background: #eefaf2;
    color: var(--gd-green);
}

.dispatcher-day .dispatcher-shift-button.is-danger {
    background: #fff0ee;
    color: var(--gd-red);
}

.dispatcher-day .dispatcher-shift-button:hover {
    background: color-mix(in srgb, #eefaf2 72%, var(--gd-green) 14%);
    box-shadow: 0 8px 18px rgba(45, 91, 62, .16), inset 0 0 0 1px rgba(80, 214, 74, .18);
}

.dispatcher-day .dispatcher-shift-button.is-danger:hover {
    background: color-mix(in srgb, #fff0ee 76%, var(--gd-red) 12%);
    box-shadow: 0 8px 18px rgba(130, 58, 46, .16), inset 0 0 0 1px rgba(255, 80, 74, .16);
}

.dispatcher-active-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex: 0 0 176px;
    width: 176px;
    max-width: 176px;
    min-height: 28px;
    margin: 0;
    padding: 0 9px;
    border: 1px solid rgba(80, 214, 74, .38);
    border-radius: 4px;
    background: rgba(80, 214, 74, .08);
    color: var(--gd-green);
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
}

.dispatcher-active-badge span,
.dispatcher-active-badge strong,
.dispatcher-active-badge em {
    display: inline-flex;
    margin: 0;
    font-size: 10px;
    line-height: 1;
    white-space: nowrap;
}

.dispatcher-active-badge span,
.dispatcher-active-badge em {
    color: var(--gd-muted);
    font-style: normal;
    font-weight: 900;
}

.dispatcher-active-badge strong {
    overflow: hidden;
    max-width: 122px;
    color: inherit;
    font-weight: 900;
    text-overflow: ellipsis;
}

.dispatcher-active-badge.is-muted {
    border-color: var(--gd-line);
    background: rgba(95, 123, 131, .08);
    color: var(--gd-muted);
}

.dispatcher-day .dispatcher-active-badge {
    background: #eefaf2;
}

.dispatcher-day .dispatcher-active-badge.is-muted {
    background: #eef3f4;
}

.dispatcher-kpi-row {
    display: grid;
    grid-template-columns: minmax(112px, .64fr) minmax(86px, .46fr) minmax(210px, 1.16fr) minmax(96px, .52fr) minmax(132px, .72fr) minmax(138px, .74fr) minmax(94px, .52fr) minmax(94px, .52fr) minmax(60px, .34fr);
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    opacity: .92;
}

.dispatcher-kpi-row .dispatcher-kpi {
    display: grid;
    align-content: center;
    min-width: 0;
    padding: 0 8px;
    border-left: 1px solid var(--gd-line-soft);
}

.dispatcher-kpi-row .dispatcher-kpi:first-child {
    border-left: 0;
    padding-left: 0;
}

.dispatcher-kpi-row .dispatcher-kpi:last-child {
    padding-right: 0;
}

.dispatcher-kpi span,
.dispatcher-kpi em {
    font-size: 9px;
}

.dispatcher-kpi strong {
    margin-top: 2px;
    font-size: clamp(13px, .82vw, 16px);
}

.dispatcher-kpi.kpi-wide strong {
    font-size: clamp(12px, .78vw, 15px);
}

.dispatcher-kpi:not(.kpi-wide):not(.kpi-compact):not(.kpi-alert) strong {
    font-size: clamp(13px, .8vw, 15px);
}

.dispatcher-clock {
    display: grid;
    justify-items: end;
    align-content: center;
    min-width: 78px;
    border-left: 1px solid var(--gd-line-soft);
    padding-left: 10px;
    text-align: right;
}

.dispatcher-clock strong {
    font-size: clamp(18px, 1.25vw, 24px);
}

.dispatcher-clock span {
    margin-top: 2px;
    font-size: 10px;
}

.dispatcher-theme-button {
    position: static;
    flex: 0 0 34px;
    width: 34px;
    height: 28px;
    min-width: 34px;
    padding: 0;
    font-size: 0;
    margin: 0;
    cursor: pointer;
}

.dispatcher-top-actions button.dispatcher-theme-button:not([data-dispatcher-theme-toggle]) {
    flex: 0 0 auto;
    width: auto;
    min-width: 82px;
    padding: 0 10px;
    font-size: 11px;
}

.dispatcher-theme-button[data-dispatcher-theme-toggle] {
    position: relative;
    overflow: hidden;
    font-size: 0;
}

.dispatcher-theme-button[data-dispatcher-theme-toggle]::before,
.dispatcher-theme-button[data-dispatcher-theme-toggle]::after {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    transition: opacity .15s ease;
}

.dispatcher-theme-button[data-theme-icon="sun"]::before {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #f2b23a;
    box-shadow:
        0 -8px 0 -5px #f2b23a,
        0 8px 0 -5px #f2b23a,
        8px 0 0 -5px #f2b23a,
        -8px 0 0 -5px #f2b23a,
        6px 6px 0 -5px #f2b23a,
        -6px 6px 0 -5px #f2b23a,
        6px -6px 0 -5px #f2b23a,
        -6px -6px 0 -5px #f2b23a;
}

.dispatcher-theme-button[data-theme-icon="moon"]::before {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #d9f3ff;
}

.dispatcher-theme-button[data-theme-icon="moon"]::after {
    width: 14px;
    height: 14px;
    transform: translate(5px, -3px);
    border-radius: 50%;
    background: var(--gd-panel-soft);
}

.dispatcher-day .dispatcher-theme-button[data-theme-icon="moon"]::after {
    background: #f7fbfa;
}

.dispatcher-analytics-shell {
    height: 100vh;
    overflow-y: scroll;
    overflow-x: hidden;
    scrollbar-gutter: stable;
}

.dispatcher-analytics-board {
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    gap: 10px;
    width: 100%;
    min-height: 100%;
    margin: 0 auto;
}

.dispatcher-analytics-topbar {
    min-height: var(--gd-header-h);
}

.dispatcher-analytics-topbar .dispatcher-nav-row {
    height: 58px;
}

.dispatcher-analytics-topbar .dispatcher-kpi-row {
    min-height: 30px;
}

.dispatcher-unified-topbar {
    --gd-header-identity-width: clamp(330px, 24vw, 462px);
    --gd-header-actions-width: clamp(290px, 22vw, 430px);
    --gd-header-clock-width: clamp(176px, 11.4vw, 218px);
    display: flex;
    align-items: center;
    grid-template-columns: none;
    grid-template-rows: none;
    height: var(--gd-header-h);
    min-height: var(--gd-header-h);
    max-height: var(--gd-header-h);
    padding: 0;
    border: 1px solid var(--gd-line-soft);
    border-radius: 12px 12px 0 0;
    background: var(--gd-top);
}

.dispatcher-header-row {
    display: grid;
    grid-template-columns: var(--gd-header-identity-width) minmax(0, 1fr) var(--gd-header-actions-width) var(--gd-header-clock-width);
    align-items: stretch;
    gap: 0;
    width: 100%;
    height: 100%;
    min-width: 0;
    font-family: "Roboto Condensed", "Arial Narrow", "Segoe UI", Arial, sans-serif;
}

.dispatcher-command-header {
    overflow: hidden;
    border-radius: inherit;
}

.dispatcher-header-row .dispatcher-title {
    min-width: 0;
    padding: 0;
    border-left: 0;
}

.dispatcher-header-row .dispatcher-title > strong,
.dispatcher-header-row .dispatcher-title > span {
    overflow: hidden;
    text-overflow: ellipsis;
}

.dispatcher-header-row .dispatcher-title > strong {
    font-size: clamp(21px, 1.25vw, 26px);
}

.dispatcher-header-row .dispatcher-title > span {
    margin-top: 7px;
    font-size: clamp(12px, .78vw, 15px);
}

.dispatcher-command-identity,
.dispatcher-command-main,
.dispatcher-command-actions,
.dispatcher-radial-clock {
    box-sizing: border-box;
    height: 100%;
    max-height: 100%;
    min-width: 0;
    cursor: pointer;
}

.dispatcher-command-identity {
    display: grid;
    align-items: center;
    padding: 12px 18px;
    border-right: 1px solid rgba(123, 211, 25, .38);
    background:
        radial-gradient(circle at 12% 18%, rgba(123, 211, 25, .08), transparent 34%),
        #071f13;
}

.dispatcher-command-identity .dispatcher-active-badge {
    position: relative;
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    align-items: center;
    gap: 18px;
    width: 100%;
    max-width: none;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.dispatcher-command-identity .dispatcher-active-avatar {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    overflow: hidden;
    border: 1.5px solid var(--gd-green);
    border-radius: 10px;
    background: rgba(123, 211, 25, .11);
    color: var(--gd-green);
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
}

.dispatcher-command-identity .dispatcher-active-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dispatcher-command-identity .dispatcher-active-text {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.dispatcher-command-identity .dispatcher-active-text strong {
    display: block;
    overflow: hidden;
    max-width: none;
    color: var(--gd-green);
    font-size: clamp(18px, 1.35vw, 23px);
    font-weight: 900;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dispatcher-command-identity .dispatcher-active-role,
.dispatcher-command-identity .dispatcher-active-text em {
    overflow: hidden;
    color: #b7c6bf;
    font-size: clamp(12px, .85vw, 15px);
    font-style: normal;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dispatcher-command-identity .dispatcher-active-text em {
    position: relative;
    padding-left: 17px;
    color: #e7f0ee;
}

.dispatcher-command-identity .dispatcher-active-text em::before {
    content: "";
    position: absolute;
    left: 1px;
    top: 50%;
    width: 8px;
    height: 8px;
    transform: translateY(-50%);
    border-radius: 50%;
    background: var(--gd-green);
}

.dispatcher-command-identity .dispatcher-active-dot {
    display: none;
}

.dispatcher-command-identity .dispatcher-active-badge.is-muted .dispatcher-active-avatar,
.dispatcher-command-identity .dispatcher-active-badge.is-muted .dispatcher-active-text strong,
.dispatcher-command-identity .dispatcher-active-badge.is-muted .dispatcher-active-role {
    color: var(--gd-muted);
    border-color: var(--gd-line);
}

.dispatcher-command-main {
    display: grid;
    grid-template-rows: minmax(38px, .9fr) minmax(36px, .75fr);
    padding: 12px 30px 8px;
    border-right: 1px solid var(--gd-line-soft);
}

.dispatcher-command-context {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto auto;
    align-items: center;
    justify-content: stretch;
    gap: 0 22px;
    min-width: 0;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--gd-line-soft);
}

.dispatcher-command-context strong {
    grid-row: 1;
    grid-column: 1;
    min-width: 0;
    color: var(--gd-ink);
    font-size: clamp(20px, 1.5vw, 26px);
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

.dispatcher-command-shift-name,
.dispatcher-command-date,
.dispatcher-command-time-range {
    grid-row: 1;
    color: #b7c6cf;
    font-size: clamp(12px, .8vw, 15px);
    line-height: 1;
    white-space: nowrap;
}

.dispatcher-command-shift-name {
    margin-left: 0;
}

.dispatcher-command-date {
    position: static;
    padding-left: 0;
}

.dispatcher-command-time-range {
    position: relative;
    padding-left: 25px;
}

.dispatcher-command-time-range::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 16px;
    height: 16px;
    transform: translateY(-50%);
    border: 1.7px solid #8fa1aa;
    border-radius: 50%;
}

.dispatcher-command-time-range::after {
    content: "";
    position: absolute;
    left: 7px;
    top: calc(50% - 5px);
    width: 5px;
    height: 7px;
    border-left: 1.7px solid #8fa1aa;
    border-bottom: 1.7px solid #8fa1aa;
}

.dispatcher-header-row .dispatcher-nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
    gap: clamp(18px, 2.15vw, 34px);
    width: 100%;
    max-width: none;
    min-width: 0;
    padding-top: 7px;
}

.dispatcher-header-row .dispatcher-nav a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    min-height: 30px;
    padding: 0 0 8px;
    border: 0;
    border-bottom: 2px solid var(--gd-line-soft);
    border-radius: 0;
    background: transparent;
    color: var(--gd-muted);
    font-size: clamp(12px, .85vw, 15px);
    font-weight: 900;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    box-shadow: none;
}

.dispatcher-header-row .dispatcher-nav a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -2px;
    width: 0;
    height: 2px;
    transform: translateX(-50%);
    border-radius: 999px;
    background: var(--gd-green);
    transition: width .14s ease;
}

.dispatcher-header-row .dispatcher-nav a:hover {
    color: var(--gd-ink);
}

.dispatcher-header-row .dispatcher-nav a.is-active {
    border-bottom-color: var(--gd-green);
    color: var(--gd-green);
}

.dispatcher-header-row .dispatcher-nav a.is-active::after {
    width: min(94px, 72%);
}

.dispatcher-command-actions {
    display: grid;
    grid-template-rows: 38px 38px;
    align-content: center;
    justify-items: center;
    gap: 6px;
    padding: 10px 22px;
    border-right: 1px solid var(--gd-line-soft);
}

.dispatcher-command-actions .dispatcher-shift-slot,
.dispatcher-command-actions .dispatcher-shift-form,
.dispatcher-command-actions .dispatcher-shift-button {
    width: 100%;
    max-width: 300px;
    min-width: 0;
}

.dispatcher-command-actions .dispatcher-shift-placeholder {
    display: block;
    width: 100%;
    height: 38px;
}

.dispatcher-command-actions .dispatcher-shift-button {
    position: relative;
    min-height: 38px;
    padding: 0 16px;
    border-color: rgba(255, 82, 75, .82);
    border-radius: 7px;
    background: rgba(255, 82, 75, .11);
    color: var(--gd-red);
    font-size: clamp(12px, .9vw, 15px);
    font-weight: 900;
    text-transform: uppercase;
}

.dispatcher-command-actions .dispatcher-shift-button:not(.is-danger) {
    border-color: rgba(123, 211, 25, .82);
    background: rgba(123, 211, 25, .12);
    color: var(--gd-green);
}

.dispatcher-command-utility {
    display: grid;
    grid-template-columns: 38px repeat(2, minmax(0, 1fr));
    column-gap: 10px;
    align-items: center;
    justify-content: space-evenly;
    width: 100%;
    max-width: 300px;
}

.dispatcher-command-utility .dispatcher-theme-button,
.dispatcher-utility-link {
    display: grid;
    align-self: center;
    place-items: center;
    min-width: 0;
    min-height: 38px;
    height: 38px;
    border: 1px solid var(--gd-line);
    border-radius: 7px;
    background: rgba(95, 123, 131, .12);
    color: var(--gd-muted);
    font: inherit;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
    transition:
        transform .16s ease,
        border-color .16s ease,
        background .16s ease,
        color .16s ease,
        box-shadow .16s ease,
        filter .16s ease;
    will-change: transform, filter;
}

.dispatcher-command-utility .dispatcher-theme-button {
    position: relative;
    right: auto;
    bottom: auto;
    flex: none;
    width: 38px;
    min-width: 38px;
    height: 38px;
    margin: 0;
    padding: 0;
}

.dispatcher-utility-link {
    grid-template-rows: none;
    gap: 0;
}

.dispatcher-utility-link span {
    display: none;
}

.dispatcher-header-exit-group {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 6px;
    min-width: 0;
    padding-left: 8px;
    border-left: 1px solid var(--gd-line-soft);
}

.dispatcher-header-exit-group a,
.dispatcher-report-actions a,
.dispatcher-report-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    border: 1px solid var(--gd-line);
    border-radius: 4px;
    background: rgba(95, 123, 131, .12);
    color: var(--gd-muted);
    font: inherit;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
}

.dispatcher-header-exit-group a {
    flex: 0 0 68px;
    width: 68px;
    padding: 0 7px;
}

.dispatcher-header-exit-group a:hover,
.dispatcher-report-actions a:hover,
.dispatcher-report-actions button:hover {
    border-color: var(--gd-cyan);
    color: var(--gd-ink);
}

.dispatcher-header-row .dispatcher-clock,
.dispatcher-radial-clock {
    position: relative;
    display: grid;
    place-items: center;
    width: auto;
    max-width: none;
    min-width: 0;
    padding: 0;
    border-left: 0;
    background:
        linear-gradient(90deg, rgba(143, 161, 170, .16), transparent 1px),
        rgba(7, 21, 28, .62);
    text-align: center;
    cursor: pointer;
    isolation: isolate;
    overflow: hidden;
}

.dispatcher-radial-clock::before,
.dispatcher-radial-clock::after {
    content: "";
    position: absolute;
    pointer-events: none;
    opacity: 0;
}

.dispatcher-radial-clock::before {
    inset: 8px;
    z-index: 0;
    border-radius: 50%;
    background:
        radial-gradient(circle at 42% 42%, rgba(123, 211, 25, .22), transparent 42%),
        radial-gradient(circle at 62% 58%, rgba(52, 194, 211, .18), transparent 48%);
    filter: blur(6px);
}

.dispatcher-radial-clock::after {
    left: 50%;
    bottom: 12px;
    z-index: 2;
    width: 58px;
    height: 22px;
    transform: translateX(-50%);
    background:
        linear-gradient(to top, rgba(123, 211, 25, .95), rgba(52, 194, 211, .78)) 0 100% / 6px 38% no-repeat,
        linear-gradient(to top, rgba(123, 211, 25, .95), rgba(52, 194, 211, .78)) 13px 100% / 6px 72% no-repeat,
        linear-gradient(to top, rgba(123, 211, 25, .95), rgba(52, 194, 211, .78)) 26px 100% / 6px 48% no-repeat,
        linear-gradient(to top, rgba(123, 211, 25, .95), rgba(52, 194, 211, .78)) 39px 100% / 6px 86% no-repeat,
        linear-gradient(to top, rgba(123, 211, 25, .95), rgba(52, 194, 211, .78)) 52px 100% / 6px 54% no-repeat;
    border-radius: 3px;
    filter: drop-shadow(0 0 7px rgba(123, 211, 25, .42));
}

.dispatcher-radial-clock-ring {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 1;
    width: min(124px, calc(100% - 10px), calc(var(--gd-header-h) - 1px));
    height: auto;
    aspect-ratio: 1 / 1;
    transform: translate(-50%, -50%);
    transform-origin: center;
    overflow: visible;
}

.dispatcher-radial-clock-base,
.dispatcher-radial-clock-ticks,
.dispatcher-radial-clock-progress {
    fill: none;
    transform: rotate(-90deg);
    transform-origin: 60px 60px;
}

.dispatcher-radial-clock-base {
    stroke: rgba(143, 161, 170, .14);
    stroke-width: 1;
    filter: blur(.45px);
}

.dispatcher-radial-clock-ticks {
    stroke: rgba(123, 211, 25, .22);
    stroke-width: 1.45;
    stroke-linecap: round;
    stroke-dasharray: 1 3;
    filter: blur(.35px);
}

.dispatcher-radial-clock-progress {
    stroke: rgba(123, 211, 25, .38);
    stroke-width: 1.1;
    stroke-linecap: round;
    stroke-dasharray: 62 100;
    filter: blur(.35px);
}

.dispatcher-radial-clock .dispatcher-radial-clock-dot {
    display: none;
}

.dispatcher-radial-clock-face {
    position: relative;
    z-index: 3;
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 7px;
    width: 92px;
    height: 94px;
    color: var(--gd-ink);
    transform-origin: center;
    will-change: transform, filter;
}

.dispatcher-radial-clock:hover .dispatcher-radial-clock-face {
    animation: dispatcher-clock-face-spin 2.8s linear infinite;
    filter: saturate(1.18) brightness(1.08);
}

.dispatcher-radial-clock:hover .dispatcher-radial-clock-ring {
    animation: dispatcher-clock-ring-spin 2.8s linear infinite;
    filter: drop-shadow(0 0 10px rgba(123, 211, 25, .28)) saturate(1.22);
}

.dispatcher-radial-clock.is-music {
    background:
        radial-gradient(circle at 50% 50%, rgba(123, 211, 25, .16), transparent 42%),
        linear-gradient(90deg, rgba(143, 161, 170, .16), transparent 1px),
        rgba(7, 21, 28, .74);
}

.dispatcher-radial-clock.is-music::before {
    opacity: 1;
    animation: dispatcher-clock-light-show 1.15s ease-in-out infinite;
}

.dispatcher-radial-clock.is-music::after {
    opacity: .86;
    animation: dispatcher-clock-equalizer .72s steps(4, end) infinite;
}

.dispatcher-radial-clock.is-music .dispatcher-radial-clock-face {
    animation: dispatcher-clock-face-spin 2.8s linear infinite;
    filter: saturate(1.2) brightness(1.08);
}

.dispatcher-radial-clock.is-music .dispatcher-radial-clock-ring {
    animation: dispatcher-clock-ring-spin 2.8s linear infinite;
    filter: drop-shadow(0 0 13px rgba(123, 211, 25, .36)) saturate(1.28);
}

.dispatcher-radial-clock.is-music-stopping::before {
    animation: dispatcher-clock-light-fade .7s ease-out forwards;
}

.dispatcher-radial-clock.is-music-stopping::after {
    animation: dispatcher-clock-equalizer-fade .7s ease-out forwards;
}

.dispatcher-radial-clock.is-music-stopping .dispatcher-radial-clock-face {
    animation: dispatcher-clock-face-settle .7s ease-out forwards;
}

.dispatcher-radial-clock.is-music-stopping .dispatcher-radial-clock-ring {
    animation: dispatcher-clock-ring-settle .7s ease-out forwards;
}

.dispatcher-radial-clock strong,
.dispatcher-header-row .dispatcher-clock strong {
    margin: 0;
    color: var(--gd-ink);
    font-size: clamp(24px, 1.78vw, 30px);
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

.dispatcher-radial-clock strong .dispatcher-radial-clock-hour,
.dispatcher-radial-clock strong .dispatcher-radial-clock-separator,
.dispatcher-radial-clock strong .dispatcher-radial-clock-minute {
    display: inline-block;
    margin: 0;
    color: inherit;
    font: inherit;
    line-height: inherit;
}

.dispatcher-radial-clock strong .dispatcher-radial-clock-separator {
    min-width: .32em;
    text-align: center;
    animation: dispatcher-clock-separator-tick 1s steps(1, end) infinite;
}

.dispatcher-radial-clock span,
.dispatcher-radial-clock em {
    display: block;
    margin-top: 0;
    color: var(--gd-ink);
    font-size: clamp(11px, .78vw, 14px);
    font-style: normal;
    line-height: 1;
    white-space: nowrap;
}

.dispatcher-radial-clock em {
    margin-top: 0;
    color: var(--gd-muted);
    font-size: 10px;
}

.dispatcher-day .dispatcher-unified-topbar {
    background: var(--gd-top);
    border-color: var(--gd-line);
}

.dispatcher-day .dispatcher-command-identity {
    border-right-color: rgba(25, 142, 85, .28);
    background:
        radial-gradient(circle at 12% 18%, rgba(25, 142, 85, .08), transparent 34%),
        #e8f3ee;
}

.dispatcher-day .dispatcher-command-identity .dispatcher-active-avatar {
    background: rgba(25, 142, 85, .08);
    color: var(--gd-green);
}

.dispatcher-day .dispatcher-command-identity .dispatcher-active-text strong {
    color: var(--gd-green);
}

.dispatcher-day .dispatcher-command-identity .dispatcher-active-role,
.dispatcher-day .dispatcher-command-identity .dispatcher-active-text em {
    color: #2e4541;
}

.dispatcher-day .dispatcher-command-main,
.dispatcher-day .dispatcher-command-actions {
    border-right-color: var(--gd-line);
}

.dispatcher-day .dispatcher-command-context {
    border-bottom-color: var(--gd-line);
}

.dispatcher-day .dispatcher-radial-clock {
    background:
        linear-gradient(90deg, rgba(82, 100, 106, .16), transparent 1px),
        #e3ecef;
}

.dispatcher-day .dispatcher-radial-clock-base {
    stroke: rgba(82, 100, 106, .22);
}

.dispatcher-day .dispatcher-radial-clock-ticks {
    stroke: rgba(25, 142, 85, .34);
}

.dispatcher-day .dispatcher-radial-clock-progress {
    stroke: rgba(25, 142, 85, .72);
}

.dispatcher-day .dispatcher-command-utility .dispatcher-theme-button,
.dispatcher-day .dispatcher-utility-link {
    border-color: #c8d4d8;
    background: #eef4f5;
    color: #4f6269;
}

.dispatcher-command-utility .dispatcher-theme-button:hover,
.dispatcher-utility-link:hover,
.dispatcher-header-exit-group a:hover,
.dispatcher-report-actions a:hover,
.dispatcher-report-actions button:hover {
    animation: dispatcher-button-pulse .9s ease-in-out infinite;
    border-color: rgba(52, 194, 211, .72);
    background: rgba(52, 194, 211, .16);
    color: var(--gd-ink);
    box-shadow:
        0 0 0 1px rgba(52, 194, 211, .18),
        0 0 16px rgba(52, 194, 211, .2),
        inset 0 0 16px rgba(52, 194, 211, .08);
    filter: saturate(1.18) brightness(1.08);
}

.dispatcher-command-utility .dispatcher-theme-button:hover {
    border-color: rgba(123, 211, 25, .82);
    background: rgba(123, 211, 25, .18);
    color: var(--gd-green);
    box-shadow:
        0 0 0 1px rgba(123, 211, 25, .26),
        0 0 20px rgba(123, 211, 25, .28),
        inset 0 0 16px rgba(123, 211, 25, .12);
}

.dispatcher-command-utility .dispatcher-theme-button:hover::before,
.dispatcher-command-utility .dispatcher-theme-button:hover::after {
    filter: drop-shadow(0 0 6px rgba(123, 211, 25, .55));
}

.dispatcher-day .dispatcher-command-utility .dispatcher-theme-button:hover {
    border-color: rgba(25, 142, 85, .72);
    background: rgba(25, 142, 85, .14);
    color: var(--gd-green);
    box-shadow:
        0 0 0 1px rgba(25, 142, 85, .18),
        0 8px 18px rgba(32, 62, 70, .16),
        inset 0 0 16px rgba(25, 142, 85, .1);
}

.dispatcher-day .dispatcher-utility-link:hover,
.dispatcher-day .dispatcher-header-exit-group a:hover,
.dispatcher-day .dispatcher-report-actions a:hover,
.dispatcher-day .dispatcher-report-actions button:hover {
    border-color: rgba(52, 194, 211, .62);
    background: rgba(52, 194, 211, .12);
    color: var(--gd-ink);
    box-shadow:
        0 0 0 1px rgba(52, 194, 211, .14),
        0 8px 18px rgba(32, 62, 70, .14),
        inset 0 0 16px rgba(52, 194, 211, .08);
}

.dispatcher-command-utility .dispatcher-theme-button:active,
.dispatcher-utility-link:active,
.dispatcher-header-exit-group a:active,
.dispatcher-report-actions a:active,
.dispatcher-report-actions button:active {
    animation: none;
    transform: scale(.94);
}

.dispatcher-day .dispatcher-command-actions .dispatcher-shift-button.is-danger {
    border-color: rgba(214, 74, 66, .62);
    background: #fff2f0;
    color: var(--gd-red);
}

.dispatcher-topbar.dispatcher-unified-topbar {
    width: 100%;
}

.dispatcher-topbar.dispatcher-unified-topbar .dispatcher-header-row {
    min-width: 100%;
}

.dispatcher-board > .dispatcher-topbar.dispatcher-unified-topbar .dispatcher-header-row {
    min-width: 0;
    width: calc(100% - var(--gd-header-scrollbar-comp));
}

.dispatcher-day .dispatcher-header-exit-group a,
.dispatcher-day .dispatcher-report-actions a,
.dispatcher-day .dispatcher-report-actions button {
    background: #f7fbfa;
    color: #3f4d52;
    box-shadow: inset 0 -1px 0 rgba(22, 32, 34, .08);
}

.dispatcher-day .dispatcher-header-exit-group a:hover,
.dispatcher-day .dispatcher-report-actions a:hover,
.dispatcher-day .dispatcher-report-actions button:hover {
    background: #ffffff;
    color: var(--gd-ink);
}

.dispatcher-report-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex: 0 0 auto;
    min-width: 0;
    min-height: 34px;
}

.dispatcher-report-actions a,
.dispatcher-report-actions button {
    flex: 0 0 auto;
    width: auto;
    min-width: 82px;
    padding: 0 10px;
    cursor: pointer;
}

.dispatcher-analytics-board {
    grid-template-rows: auto auto auto minmax(0, 1fr);
}

.dispatcher-report-filters {
    display: flex;
    align-items: end;
    gap: 8px;
    min-width: 0;
    padding: 8px;
    border: 1px solid var(--gd-line);
    border-radius: 6px;
    background: var(--gd-panel);
}

.dispatcher-report-filters label {
    display: grid;
    gap: 4px;
    min-width: 138px;
    color: var(--gd-muted);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.dispatcher-report-filters input,
.dispatcher-report-filters select,
.dispatcher-report-filters button {
    min-height: 30px;
    border: 1px solid var(--gd-line);
    border-radius: 4px;
    background: var(--gd-panel-soft);
    color: var(--gd-text);
    font: inherit;
    font-weight: 900;
}

.dispatcher-report-filters button {
    min-width: 110px;
    width: auto;
    flex: 0 0 auto;
    padding: 0 22px;
    color: var(--gd-green);
    cursor: pointer;
}

.dispatcher-report-filters[data-auto-filter-form] button[type="submit"] {
    display: none;
}

.dispatcher-report-filters[data-auto-filter-form] label:has(input[type="date"]),
.dispatcher-report-filters[data-auto-filter-form] input[type="date"] {
    cursor: pointer;
}

.dispatcher-analytics-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    min-height: 0;
}

.dispatcher-report-card {
    min-width: 0;
    min-height: 220px;
    padding: 12px;
    border: 1px solid var(--gd-line);
    border-radius: 6px;
    background:
        radial-gradient(circle at 100% 0, rgba(71, 214, 142, .08), transparent 32%),
        var(--gd-card);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .02);
}

.dispatcher-report-card-wide {
    grid-column: span 2;
}

.dispatcher-report-card-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.dispatcher-report-card h2 {
    margin: 0;
    color: var(--gd-text);
    font-size: 16px;
    line-height: 1;
    text-transform: uppercase;
}

.dispatcher-report-card-head span {
    color: var(--gd-muted);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.dispatcher-shift-pulse {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: end;
    gap: 8px;
    height: 176px;
}

.dispatcher-hour-bar {
    display: grid;
    grid-template-rows: 18px minmax(0, 1fr) 18px;
    gap: 4px;
    height: 100%;
    min-width: 0;
    color: var(--gd-muted);
    font-size: 9px;
    font-weight: 900;
    text-align: center;
}

.dispatcher-hour-bar i {
    display: flex;
    align-items: end;
    min-height: 0;
    border: 1px solid var(--gd-line-soft);
    border-radius: 4px;
    background: linear-gradient(to top, rgba(102, 227, 18, .18), rgba(38, 178, 218, .08));
    overflow: hidden;
}

.dispatcher-hour-bar i b {
    display: block;
    width: 100%;
    border-radius: 4px 4px 0 0;
    background: linear-gradient(to top, var(--gd-green), var(--gd-cyan));
}

.dispatcher-ring-list,
.dispatcher-split-list,
.dispatcher-complex-report {
    display: grid;
    gap: 9px;
}

.dispatcher-ring-row {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.dispatcher-ring-row strong,
.dispatcher-split-row span,
.dispatcher-complex-report-row strong {
    color: var(--gd-text);
}

.dispatcher-ring-row small,
.dispatcher-complex-report-row small,
.dispatcher-complex-report-row span,
.dispatcher-complex-report-row em {
    color: var(--gd-muted);
    font-size: 10px;
    font-style: normal;
    font-weight: 900;
}

.dispatcher-mini-ring {
    display: grid;
    place-items: center;
    width: 48px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: conic-gradient(var(--gd-green) var(--ring), rgba(255, 255, 255, .08) 0);
}

.dispatcher-mini-ring span {
    display: grid;
    place-items: center;
    width: 32px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--gd-card);
    color: var(--gd-text);
    font-size: 10px;
    font-weight: 900;
}

.dispatcher-split-row {
    display: grid;
    grid-template-columns: minmax(80px, 1fr) 90px;
    gap: 8px;
    align-items: center;
    min-width: 0;
}

.dispatcher-split-row i,
.dispatcher-face-tile i {
    grid-column: 1 / -1;
    height: 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .07);
    overflow: hidden;
}

.dispatcher-split-row i b,
.dispatcher-face-tile i b {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--gd-green), var(--gd-cyan));
}

.dispatcher-face-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.dispatcher-face-tile {
    display: grid;
    gap: 6px;
    min-height: 92px;
    padding: 10px;
    border: 1px solid var(--gd-line);
    border-radius: 6px;
    background: var(--gd-panel-soft);
}

.dispatcher-face-tile strong {
    color: var(--gd-text);
    font-size: 14px;
}

.dispatcher-face-tile span {
    color: var(--gd-text);
    font-size: 18px;
    font-weight: 900;
}

.dispatcher-face-tile small {
    color: var(--gd-muted);
    font-weight: 900;
}

.dispatcher-face-tile.is-risk,
.dispatcher-complex-report-row.is-risk {
    border-color: var(--gd-yellow);
}

.dispatcher-face-tile.is-danger,
.dispatcher-complex-report-row.is-danger {
    border-color: var(--gd-red);
}

.dispatcher-complex-report-row {
    display: grid;
    grid-template-columns: 92px 112px 90px minmax(120px, 1fr) minmax(160px, 1.2fr);
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 9px 10px;
    border: 1px solid var(--gd-line);
    border-left: 4px solid var(--gd-green);
    border-radius: 6px;
    background: rgba(255, 255, 255, .03);
}

.dispatcher-complex-report-row.is-risk {
    border-left-color: var(--gd-yellow);
}

.dispatcher-complex-report-row.is-danger {
    border-left-color: var(--gd-red);
}

.dispatcher-complex-report-row > div {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.dispatcher-complex-dumps {
    display: flex !important;
    flex-wrap: wrap;
    gap: 4px;
}

.dispatcher-complex-dumps span {
    padding: 3px 6px;
    border: 1px solid var(--gd-line);
    border-radius: 4px;
    background: var(--gd-panel-soft);
    color: var(--gd-text);
}

.dispatcher-empty-note {
    margin: 0;
    color: var(--gd-muted);
    font-weight: 900;
}

.dispatcher-shift-pulse .dispatcher-empty-note {
    grid-column: 1 / -1;
    align-self: center;
    text-align: center;
}

.dispatcher-day .dispatcher-report-filters,
.dispatcher-day .dispatcher-report-card,
.dispatcher-day .dispatcher-face-tile,
.dispatcher-day .dispatcher-complex-report-row {
    background: #f4f9f8;
    color: var(--gd-ink);
}

.dispatcher-day .dispatcher-report-filters input,
.dispatcher-day .dispatcher-report-filters select,
.dispatcher-day .dispatcher-report-filters button,
.dispatcher-day .dispatcher-complex-dumps span {
    background: #ffffff;
    color: var(--gd-ink);
}

.dispatcher-transport-grid {
    grid-auto-rows: minmax(198px, auto);
}

.dispatcher-transport-readiness,
.dispatcher-transport-production {
    display: grid;
    gap: 8px;
}

.dispatcher-transport-readiness > div,
.dispatcher-transport-production > div {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-width: 0;
    min-height: 48px;
    padding: 8px 10px;
    border: 1px solid var(--gd-line);
    border-left: 4px solid var(--gd-green);
    border-radius: 5px;
    background: var(--gd-panel-soft);
}

.dispatcher-transport-readiness > div.is-risk {
    border-left-color: var(--gd-yellow);
}

.dispatcher-transport-readiness > div.is-danger {
    border-left-color: var(--gd-red);
}

.dispatcher-transport-readiness strong,
.dispatcher-transport-production strong {
    color: var(--gd-text);
    font-size: 24px;
    line-height: 1;
}

.dispatcher-transport-readiness span,
.dispatcher-transport-production span {
    min-width: 0;
    color: var(--gd-muted);
    font-size: 10px;
    font-weight: 900;
    line-height: 1.15;
    text-transform: uppercase;
}

.dispatcher-transport-fuel-row.is-risk i b {
    background: linear-gradient(90deg, var(--gd-yellow), var(--gd-red));
}

.dispatcher-transport-fuel-row.is-danger i b {
    background: var(--gd-red);
}

.dispatcher-transport-alerts {
    display: grid;
    gap: 8px;
    max-height: 320px;
    overflow: auto;
    padding-right: 2px;
}

.dispatcher-transport-alert {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 3px 10px;
    min-width: 0;
    padding: 8px 10px;
    border: 1px solid var(--gd-line);
    border-left: 4px solid var(--gd-yellow);
    border-radius: 5px;
    background: var(--gd-panel-soft);
}

.dispatcher-transport-alert.is-danger {
    border-left-color: var(--gd-red);
}

.dispatcher-transport-alert strong {
    grid-row: span 2;
    color: var(--gd-text);
    font-size: 18px;
    line-height: 1;
}

.dispatcher-transport-alert span,
.dispatcher-transport-alert em {
    min-width: 0;
    overflow: hidden;
    color: var(--gd-muted);
    font-size: 10px;
    font-style: normal;
    font-weight: 900;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.dispatcher-report-card-table {
    grid-column: 1 / -1;
    min-height: 300px;
}

.dispatcher-transport-table-wrap {
    max-width: 100%;
    overflow: auto;
    border: 1px solid var(--gd-line);
    border-radius: 5px;
}

.dispatcher-transport-table {
    width: 100%;
    min-width: 1040px;
    border-collapse: collapse;
    color: var(--gd-text);
}

.dispatcher-transport-table th,
.dispatcher-transport-table td {
    padding: 8px 9px;
    border-bottom: 1px solid var(--gd-line-soft);
    text-align: left;
    vertical-align: top;
}

.dispatcher-transport-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: var(--gd-panel);
    color: var(--gd-muted);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.dispatcher-transport-table td {
    font-size: 12px;
    font-weight: 800;
}

.dispatcher-transport-table small {
    display: block;
    margin-top: 3px;
    color: var(--gd-muted);
    font-size: 10px;
    font-weight: 900;
}

.dispatcher-transport-table tr.is-risk td {
    background: rgba(255, 178, 29, .08);
}

.dispatcher-transport-table tr.is-danger td {
    background: rgba(255, 82, 75, .1);
}

.dispatcher-day .dispatcher-transport-readiness > div,
.dispatcher-day .dispatcher-transport-production > div,
.dispatcher-day .dispatcher-transport-alert,
.dispatcher-day .dispatcher-transport-table-wrap {
    background: #ffffff;
}

.dispatcher-day .dispatcher-transport-table th {
    background: #eaf2f1;
    color: #607177;
}

.dispatcher-day .dispatcher-transport-table td {
    color: var(--gd-ink);
}

.dispatcher-reports-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
    gap: 10px;
    min-height: 0;
}

.dispatcher-report-tile-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    min-width: 0;
}

.dispatcher-report-tile {
    display: grid;
    grid-template-rows: auto auto auto auto 1fr;
    gap: 9px;
    min-width: 0;
    min-height: 214px;
    padding: 12px;
    border: 1px solid var(--gd-line);
    border-left: 5px solid var(--gd-green);
    border-radius: 6px;
    background:
        radial-gradient(circle at 100% 0, rgba(102, 227, 18, .12), transparent 36%),
        var(--gd-card);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .02);
}

.dispatcher-report-tile.is-risk {
    border-left-color: var(--gd-yellow);
    background:
        radial-gradient(circle at 100% 0, rgba(255, 178, 29, .16), transparent 36%),
        var(--gd-card);
}

.dispatcher-report-tile.is-danger {
    border-left-color: var(--gd-red);
    background:
        radial-gradient(circle at 100% 0, rgba(255, 82, 75, .16), transparent 36%),
        var(--gd-card);
}

.dispatcher-report-tile-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
}

.dispatcher-report-tile h2 {
    margin: 0;
    color: var(--gd-text);
    font-size: clamp(16px, 1.05vw, 20px);
    line-height: 1;
    text-transform: uppercase;
}

.dispatcher-report-tile-head span {
    flex: 0 0 auto;
    padding: 4px 7px;
    border: 1px solid currentColor;
    border-radius: 4px;
    color: var(--gd-green);
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
}

.dispatcher-report-tile.is-risk .dispatcher-report-tile-head span {
    color: var(--gd-yellow);
}

.dispatcher-report-tile.is-danger .dispatcher-report-tile-head span {
    color: var(--gd-red);
}

.dispatcher-report-tile > strong {
    color: var(--gd-text);
    font-size: clamp(26px, 2vw, 38px);
    line-height: .95;
}

.dispatcher-report-tile p,
.dispatcher-report-tile em {
    margin: 0;
    color: var(--gd-muted);
    font-size: 11px;
    font-style: normal;
    font-weight: 900;
    line-height: 1.2;
    text-transform: uppercase;
}

.dispatcher-report-actions-row {
    display: flex;
    flex-wrap: wrap;
    align-self: end;
    gap: 7px;
    min-width: 0;
}

.dispatcher-report-actions-row a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 12px;
    border: 1px solid var(--gd-line);
    border-radius: 4px;
    background: var(--gd-panel-soft);
    color: var(--gd-text);
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
}

.dispatcher-report-actions-row a:hover {
    border-color: var(--gd-cyan);
}

.dispatcher-report-hub-card {
    min-height: 0;
}

.dispatcher-report-template-list {
    display: grid;
    gap: 8px;
    margin-bottom: 12px;
}

.dispatcher-report-template-list a {
    display: grid;
    gap: 4px;
    min-width: 0;
    padding: 9px 10px;
    border: 1px solid var(--gd-line);
    border-left: 4px solid var(--gd-cyan);
    border-radius: 5px;
    background: var(--gd-panel-soft);
    text-decoration: none;
}

.dispatcher-report-template-list strong {
    overflow: hidden;
    color: var(--gd-text);
    font-size: 13px;
    line-height: 1.1;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.dispatcher-report-template-list span {
    overflow: hidden;
    color: var(--gd-muted);
    font-size: 10px;
    font-weight: 900;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.dispatcher-report-actions-row-wide a {
    flex: 1 1 92px;
}

.dispatcher-day .dispatcher-report-tile,
.dispatcher-day .dispatcher-report-template-list a {
    background: #f4f9f8;
    color: var(--gd-ink);
}

.dispatcher-day .dispatcher-report-tile.is-risk {
    background: linear-gradient(135deg, #fff3c7, #f4f9f8 58%);
}

.dispatcher-day .dispatcher-report-tile.is-danger {
    background: linear-gradient(135deg, #ffe2df, #f4f9f8 58%);
}

.dispatcher-day .dispatcher-report-tile h2,
.dispatcher-day .dispatcher-report-tile > strong,
.dispatcher-day .dispatcher-report-template-list strong {
    color: var(--gd-ink);
}

.dispatcher-day .dispatcher-report-actions-row a {
    background: #ffffff;
    color: var(--gd-ink);
}

.dispatcher-management-board {
    width: 100%;
}

.dispatcher-management-layout {
    display: grid;
    grid-template-columns: minmax(280px, .92fr) minmax(300px, 1fr) minmax(260px, .78fr) minmax(320px, 1.1fr);
    grid-auto-rows: minmax(218px, auto);
    gap: 10px;
    min-height: 0;
}

.dispatcher-management-summary {
    border-left: 5px solid var(--gd-green);
}

.dispatcher-management-summary.is-risk {
    border-left-color: var(--gd-yellow);
}

.dispatcher-management-summary.is-danger {
    border-left-color: var(--gd-red);
}

.dispatcher-management-attention,
.dispatcher-management-month {
    min-height: 0;
}

.dispatcher-management-complexes {
    grid-column: span 2;
    grid-row: span 2;
}

.dispatcher-management-score {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    min-width: 0;
}

.dispatcher-management-ring {
    display: grid;
    place-items: center;
    width: 116px;
    aspect-ratio: 1;
    border-radius: 50%;
    background:
        radial-gradient(circle, transparent 56%, rgba(255, 255, 255, .06) 57% 62%, transparent 63%),
        conic-gradient(var(--gd-green) var(--ring), rgba(255, 255, 255, .08) 0);
    box-shadow: 0 0 18px rgba(102, 227, 18, .12);
}

.dispatcher-management-summary.is-risk .dispatcher-management-ring {
    background:
        radial-gradient(circle, transparent 56%, rgba(255, 255, 255, .06) 57% 62%, transparent 63%),
        conic-gradient(var(--gd-yellow) var(--ring), rgba(255, 255, 255, .08) 0);
    box-shadow: 0 0 18px rgba(255, 178, 29, .16);
}

.dispatcher-management-summary.is-danger .dispatcher-management-ring {
    background:
        radial-gradient(circle, transparent 56%, rgba(255, 255, 255, .06) 57% 62%, transparent 63%),
        conic-gradient(var(--gd-red) var(--ring), rgba(255, 255, 255, .08) 0);
    box-shadow: 0 0 18px rgba(255, 82, 75, .18);
}

.dispatcher-management-ring span {
    display: grid;
    place-items: center;
    width: 72px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--gd-card);
    color: var(--gd-text);
    font-size: 22px;
    font-weight: 900;
}

.dispatcher-management-score-data {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.dispatcher-management-score-data strong {
    color: var(--gd-text);
    font-size: clamp(30px, 2.3vw, 42px);
    line-height: .95;
}

.dispatcher-management-score-data span,
.dispatcher-management-score-data em {
    color: var(--gd-muted);
    font-size: 12px;
    font-style: normal;
    font-weight: 900;
    line-height: 1.1;
    text-transform: uppercase;
}

.dispatcher-management-score-data em.is-danger {
    color: var(--gd-red);
}

.dispatcher-management-score-data em.is-ok {
    color: var(--gd-green);
}

.dispatcher-management-mini-kpis,
.dispatcher-management-month-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 14px;
}

.dispatcher-management-mini-kpis div,
.dispatcher-management-month-grid div {
    display: grid;
    gap: 3px;
    min-width: 0;
    padding: 9px 10px;
    border: 1px solid var(--gd-line);
    border-radius: 5px;
    background: var(--gd-panel-soft);
}

.dispatcher-management-mini-kpis strong,
.dispatcher-management-month-grid strong {
    color: var(--gd-text);
    font-size: 20px;
    line-height: 1;
}

.dispatcher-management-mini-kpis span,
.dispatcher-management-month-grid span {
    color: var(--gd-muted);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.dispatcher-management-alert-list {
    display: grid;
    gap: 8px;
    max-height: 360px;
    overflow: auto;
    padding-right: 2px;
}

.dispatcher-management-alert {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 3px 9px;
    min-width: 0;
    padding: 8px 10px;
    border: 1px solid var(--gd-line);
    border-left: 5px solid var(--gd-yellow);
    border-radius: 5px;
    background: var(--gd-panel-soft);
}

.dispatcher-management-alert.is-danger {
    border-left-color: var(--gd-red);
}

.dispatcher-management-alert strong {
    grid-row: span 2;
    color: var(--gd-text);
    font-size: 18px;
    line-height: 1;
}

.dispatcher-management-alert span,
.dispatcher-management-alert em {
    min-width: 0;
    overflow: hidden;
    color: var(--gd-muted);
    font-size: 10px;
    font-style: normal;
    font-weight: 900;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.dispatcher-management-pulse {
    height: 170px;
}

.dispatcher-day .dispatcher-management-ring span,
.dispatcher-day .dispatcher-management-mini-kpis div,
.dispatcher-day .dispatcher-management-month-grid div,
.dispatcher-day .dispatcher-management-alert {
    background: #ffffff;
    color: var(--gd-ink);
}

.dispatcher-day .dispatcher-management-score-data strong,
.dispatcher-day .dispatcher-management-ring span,
.dispatcher-day .dispatcher-management-mini-kpis strong,
.dispatcher-day .dispatcher-management-month-grid strong,
.dispatcher-day .dispatcher-management-alert strong {
    color: var(--gd-ink);
}

.dispatcher-downtime-grid {
    grid-auto-rows: minmax(210px, auto);
}

.dispatcher-downtime-events,
.dispatcher-downtime-critical,
.dispatcher-downtime-equipment-grid {
    display: grid;
    gap: 8px;
}

.dispatcher-downtime-events {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: 336px;
    overflow: auto;
    padding-right: 2px;
}

.dispatcher-downtime-event {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 4px 10px;
    min-height: 58px;
    margin: 0;
    padding: 9px 10px;
    border: 1px solid var(--gd-line);
    border-left: 5px solid var(--gd-yellow);
    border-radius: 5px;
    background: var(--gd-panel-soft);
    color: var(--gd-text);
    font: inherit;
    text-align: left;
    cursor: default;
}

.dispatcher-downtime-event.is-danger {
    border-left-color: var(--gd-red);
}

.dispatcher-downtime-event.is-ok {
    border-left-color: var(--gd-green);
}

.dispatcher-downtime-event strong {
    grid-row: span 2;
    align-self: center;
    color: var(--gd-text);
    font-size: 22px;
    line-height: 1;
}

.dispatcher-downtime-event span,
.dispatcher-downtime-event em,
.dispatcher-downtime-critical-item span,
.dispatcher-downtime-critical-item small {
    min-width: 0;
    overflow: hidden;
    color: var(--gd-muted);
    font-size: 10px;
    font-style: normal;
    font-weight: 900;
    line-height: 1.2;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.dispatcher-downtime-critical {
    max-height: 336px;
    overflow: auto;
    padding-right: 2px;
}

.dispatcher-downtime-critical-item,
.dispatcher-downtime-equipment {
    display: grid;
    gap: 5px;
    min-width: 0;
    padding: 9px 10px;
    border: 1px solid var(--gd-line);
    border-left: 5px solid var(--gd-yellow);
    border-radius: 5px;
    background: var(--gd-panel-soft);
}

.dispatcher-downtime-critical-item.is-danger,
.dispatcher-downtime-equipment.is-danger {
    border-left-color: var(--gd-red);
}

.dispatcher-downtime-critical-item.is-ok,
.dispatcher-downtime-equipment.is-ok {
    border-left-color: var(--gd-green);
}

.dispatcher-downtime-critical-item strong,
.dispatcher-downtime-equipment strong {
    color: var(--gd-text);
    font-size: 18px;
    line-height: 1;
}

.dispatcher-downtime-ring.is-danger {
    background: conic-gradient(var(--gd-red) var(--ring), rgba(255, 255, 255, .08) 0);
}

.dispatcher-downtime-ring.is-risk {
    background: conic-gradient(var(--gd-yellow) var(--ring), rgba(255, 255, 255, .08) 0);
}

.dispatcher-downtime-split {
    grid-template-columns: minmax(120px, 1fr) 84px;
}

.dispatcher-downtime-split small {
    grid-column: 1 / -1;
    min-width: 0;
    overflow: hidden;
    color: var(--gd-muted);
    font-size: 10px;
    font-weight: 900;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.dispatcher-downtime-split.is-risk i b,
.dispatcher-downtime-equipment.is-risk i b {
    background: linear-gradient(90deg, var(--gd-yellow), var(--gd-green));
}

.dispatcher-downtime-split.is-danger i b,
.dispatcher-downtime-equipment.is-danger i b {
    background: linear-gradient(90deg, var(--gd-red), var(--gd-yellow));
}

.dispatcher-downtime-equipment-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dispatcher-downtime-equipment span {
    color: var(--gd-text);
    font-size: 20px;
    font-weight: 900;
    line-height: 1;
}

.dispatcher-downtime-equipment small {
    color: var(--gd-muted);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.dispatcher-downtime-equipment i {
    height: 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .07);
    overflow: hidden;
}

.dispatcher-downtime-equipment i b {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--gd-green), var(--gd-cyan));
}

.dispatcher-downtime-table {
    min-width: 1160px;
}

.dispatcher-day .dispatcher-downtime-event,
.dispatcher-day .dispatcher-downtime-critical-item,
.dispatcher-day .dispatcher-downtime-equipment {
    background: #ffffff;
    color: var(--gd-ink);
}

.dispatcher-day .dispatcher-downtime-event strong,
.dispatcher-day .dispatcher-downtime-critical-item strong,
.dispatcher-day .dispatcher-downtime-equipment strong,
.dispatcher-day .dispatcher-downtime-equipment span {
    color: var(--gd-ink);
}

.dispatcher-left,
.dispatcher-right,
.dispatcher-complexes {
    grid-row: 2;
    min-height: 0;
}

.dispatcher-left {
    grid-column: 1;
    display: block;
}

.dispatcher-board.is-excavator-garage-empty .dispatcher-left {
    display: none;
}

.dispatcher-board.is-excavator-garage-empty.is-complex-dragging .dispatcher-left {
    display: block;
}

.dispatcher-board.is-excavator-garage-empty .dispatcher-complexes {
    margin-left: 10px;
}

.dispatcher-board.is-excavator-garage-empty.is-complex-dragging .dispatcher-complexes {
    margin-left: 0;
}

.dispatcher-right {
    grid-column: 3;
    display: block;
}

.dispatcher-board.is-truck-garage-empty .dispatcher-right {
    display: none;
}

.dispatcher-garage-panel {
    height: 100%;
    min-height: 0;
    padding: 8px;
    border: 1px solid var(--gd-line);
    border-radius: 7px;
    background: var(--gd-panel);
    box-shadow: var(--gd-shadow);
    overflow: hidden;
}

.dispatcher-excavator-garage {
    padding: 6px;
}

.dispatcher-truck-garage {
    padding: 6px;
}

.dispatcher-panel-head,
.dispatcher-zone-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 10px;
    min-height: 32px;
    margin-bottom: 8px;
}

.dispatcher-truck-garage .dispatcher-panel-head,
.dispatcher-zone-head {
    display: none;
}

.dispatcher-panel-head h2,
.dispatcher-zone-head h2 {
    margin: 0;
    color: var(--gd-ink);
    font-size: clamp(16px, 1vw, 20px);
    font-weight: 900;
    line-height: 1;
}

.dispatcher-excavator-garage .dispatcher-panel-head {
    display: none;
}

.dispatcher-panel-head span,
.dispatcher-zone-head span,
.dispatcher-zone-head strong {
    color: var(--gd-muted);
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

.dispatcher-excavators {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(12, var(--gd-equipment-slot-h));
    grid-auto-rows: var(--gd-equipment-slot-h);
    align-content: stretch;
    gap: var(--gd-equipment-slot-gap);
    height: 100%;
    overflow: hidden;
}

.dispatcher-equipment-tile {
    height: auto;
    min-height: 82px;
    cursor: grab;
}

.dispatcher-excavator-garage-tile {
    position: relative;
    z-index: 1;
    display: grid;
    order: 0;
    place-items: center;
    min-height: 0;
    width: 100%;
    height: auto;
    padding: 2px 3px;
    border: 1px solid rgba(123, 211, 25, .28);
    border-radius: 5px;
    background: var(--gd-green-soft);
    color: var(--gd-green);
    overflow: hidden;
    box-shadow: inset 0 0 16px rgba(123, 211, 25, .12), 0 0 0 1px rgba(123, 211, 25, .14);
    transition:
        transform .16s ease,
        filter .16s ease,
        border-color .16s ease,
        background .16s ease,
        box-shadow .16s ease;
    will-change: transform;
}

.dispatcher-excavator-garage-tile.status-yellow {
    border-color: rgba(255, 178, 29, .32);
    background: var(--gd-yellow-soft);
    color: var(--gd-yellow);
    box-shadow: inset 0 0 16px rgba(255, 178, 29, .12), 0 0 0 1px rgba(255, 178, 29, .16);
}

.dispatcher-excavator-garage-tile.status-red {
    border-color: rgba(255, 82, 75, .32);
    background: var(--gd-red-soft);
    color: var(--gd-red);
    box-shadow: inset 0 0 16px rgba(255, 82, 75, .12), 0 0 0 1px rgba(255, 82, 75, .16);
}

.dispatcher-excavator-garage-tile::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: inherit;
    padding: 3px;
    background: conic-gradient(
        from -90deg,
        currentColor 0 var(--tile-progress),
        rgba(142, 158, 166, .2) var(--tile-progress) 100%
    );
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    mask-composite: exclude;
    pointer-events: none;
}

.dispatcher-excavator-garage-tile strong {
    position: absolute;
    left: 4px;
    top: 4px;
    z-index: 2;
    color: var(--gd-ink);
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
}

.dispatcher-excavator-garage-tile span {
    position: absolute;
    right: 3px;
    bottom: 3px;
    left: 3px;
    z-index: 2;
    display: block;
    overflow: hidden;
    color: currentColor;
    font-size: 7px;
    font-weight: 900;
    line-height: 1;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dispatcher-excavator-garage-tile img {
    position: relative;
    z-index: 1;
    width: clamp(34px, 2.6vw, 42px);
    height: clamp(26px, 2vw, 32px);
    object-fit: contain;
    opacity: .86;
    transition: opacity .16s ease, filter .16s ease, transform .16s ease;
}

.dispatcher-excavator-garage-tile:not(.is-placeholder):not(.is-assigned):hover {
    z-index: 40;
    animation: dispatcher-tile-pulse .92s ease-in-out infinite;
    filter: saturate(1.16);
    border-color: color-mix(in srgb, currentColor 72%, #ffffff);
    box-shadow: inset 0 0 18px color-mix(in srgb, currentColor 18%, transparent), 0 0 0 1px color-mix(in srgb, currentColor 30%, transparent), 0 0 18px color-mix(in srgb, currentColor 22%, transparent);
}

.dispatcher-excavator-garage-tile:not(.is-placeholder):not(.is-assigned):hover img {
    opacity: 1;
    filter: drop-shadow(0 0 7px color-mix(in srgb, currentColor 34%, transparent));
}

.dispatcher-excavator-garage-tile.is-placeholder {
    order: 3;
    border: 1px solid rgba(142, 158, 166, .22);
    background: rgba(142, 158, 166, .035);
    color: rgba(159, 174, 181, .35);
    cursor: default;
    box-shadow: none;
}

.dispatcher-excavator-garage-tile.is-placeholder strong,
.dispatcher-excavator-garage-tile.is-placeholder span {
    color: rgba(159, 174, 181, .35);
}

.dispatcher-excavator-garage-tile.is-placeholder::before {
    display: none;
}

.dispatcher-excavator-garage-tile.is-placeholder img {
    filter: grayscale(1);
    opacity: .1;
}

.dispatcher-excavator-garage-tile.is-assigned,
.dispatcher-excavator-garage-tile.status-yellow.is-assigned,
.dispatcher-excavator-garage-tile.status-red.is-assigned {
    order: 2;
    border: 1px solid rgba(142, 158, 166, .22);
    background: rgba(142, 158, 166, .035);
    color: rgba(159, 174, 181, .35);
    box-shadow: none;
    cursor: default;
}

.dispatcher-excavator-garage-tile.is-assigned strong,
.dispatcher-excavator-garage-tile.is-assigned span {
    display: none;
}

.dispatcher-excavator-garage-tile.is-assigned::before {
    display: none;
}

.dispatcher-excavator-garage-tile.is-assigned img {
    filter: grayscale(1);
    opacity: .1;
    visibility: visible;
}

.dispatcher-drag-ghost {
    position: fixed;
    left: -9999px;
    top: -9999px;
    z-index: 9999;
    width: 58px;
    height: 58px;
    pointer-events: none;
}

.dispatcher-equipment-tile:active,
.dispatcher-truck-tile:active {
    cursor: grabbing;
}

.dispatcher-complexes {
    grid-column: 2;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr);
    gap: 0;
    overflow: hidden;
}

.dispatcher-zone-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: minmax(188px, 1fr);
    gap: 9px;
    min-height: 0;
    overflow: hidden auto;
    padding-right: 2px;
    scrollbar-color: var(--gd-line) transparent;
}

.dispatcher-complex-card {
    min-height: 0;
    z-index: 1;
    padding: clamp(12px, .8vw, 16px) clamp(12px, .9vw, 18px);
    transition:
        transform .16s ease,
        filter .16s ease,
        border-color .16s ease,
        background .16s ease,
        box-shadow .16s ease;
    will-change: transform;
}

.dispatcher-complex-card:not(.status-empty):hover {
    z-index: 30;
    animation: dispatcher-complex-pulse .96s ease-in-out infinite;
    filter: saturate(1.08);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 18%, transparent), 0 0 24px color-mix(in srgb, currentColor 13%, transparent);
}

.dispatcher-complex-card.status-risk:not(.status-empty),
.dispatcher-complex-card.state-warning:not(.status-empty),
.mm-complex-card.state-warning {
    animation: dispatcher-complex-warning-pulse 1s ease-in-out infinite;
}

.dispatcher-complex-card.status-danger:not(.status-empty),
.dispatcher-complex-card.state-danger:not(.status-empty),
.mm-complex-card.state-danger {
    animation: dispatcher-complex-danger-pulse 1s ease-in-out infinite;
}

.dispatcher-complex-card:not(.status-empty):has(.dispatcher-truck-tile:hover) {
    z-index: 30;
    overflow: hidden;
    animation: none;
    transform: none;
    filter: none;
    box-shadow: var(--gd-shadow);
}

.dispatcher-complex-card.status-risk:not(.status-empty):has(.dispatcher-truck-tile:hover),
.dispatcher-complex-card.state-warning:not(.status-empty):has(.dispatcher-truck-tile:hover) {
    animation: dispatcher-complex-warning-pulse 1s ease-in-out infinite;
}

.dispatcher-complex-card.status-danger:not(.status-empty):has(.dispatcher-truck-tile:hover),
.dispatcher-complex-card.state-danger:not(.status-empty):has(.dispatcher-truck-tile:hover) {
    animation: dispatcher-complex-danger-pulse 1s ease-in-out infinite;
}

.dispatcher-complex-card.status-empty {
    display: grid;
    place-items: center;
    border-color: rgba(120, 138, 145, .28);
    background: rgba(125, 143, 151, .05);
    box-shadow: inset 0 0 0 1px rgba(125, 143, 151, .06);
}

.dispatcher-complex-card.status-empty::before {
    background: conic-gradient(from -90deg, rgba(126, 143, 151, .2) 0 100%);
}

.complex-empty {
    display: grid;
    gap: 8px;
    place-items: center;
    color: rgba(159, 174, 181, .44);
    text-align: center;
}

.complex-empty strong {
    font-size: clamp(36px, 3.2vw, 54px);
    font-weight: 900;
    line-height: 1;
}

.complex-empty span {
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.dispatcher-trucks {
    display: grid;
    grid-template-columns: repeat(var(--truck-garage-columns), var(--gd-truck-slot-w));
    grid-auto-rows: var(--gd-truck-slot-h);
    align-content: start;
    justify-content: start;
    gap: var(--gd-truck-slot-gap);
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    padding-right: 0;
    scrollbar-color: var(--gd-line) transparent;
    scrollbar-width: thin;
}

.dispatcher-truck-tile {
    position: relative;
    z-index: 1;
    order: 0;
    min-height: 0;
    min-width: 0;
    padding: 3px 4px;
    border: 1px solid rgba(142, 158, 166, .48);
    border-radius: 5px;
    background: rgba(142, 158, 166, .08);
    color: var(--gd-muted);
    overflow: hidden;
    cursor: grab;
    transition:
        transform .16s ease,
        filter .16s ease,
        border-color .16s ease,
        background .16s ease,
        box-shadow .16s ease;
    will-change: transform;
}

.dispatcher-truck-tile::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: inherit;
    padding: 3px;
    background: conic-gradient(
        from -90deg,
        currentColor 0 var(--tile-progress),
        rgba(142, 158, 166, .2) var(--tile-progress) 100%
    );
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    mask-composite: exclude;
    pointer-events: none;
}

.dispatcher-truck-tile.status-yellow {
    border-color: var(--gd-yellow);
    background: var(--gd-yellow-soft);
    color: var(--gd-yellow);
}

.dispatcher-truck-tile.status-red {
    border-color: var(--gd-red);
    background: var(--gd-red-soft);
    color: var(--gd-red);
}

.dispatcher-truck-tile.is-placeholder {
    border-color: rgba(142, 158, 166, .22);
    background: rgba(142, 158, 166, .035);
    color: rgba(159, 174, 181, .35);
    box-shadow: none;
    cursor: default;
    pointer-events: none;
}

.dispatcher-truck-tile.is-placeholder::before {
    display: none;
}

.dispatcher-truck-tile.is-placeholder strong,
.dispatcher-truck-tile.is-placeholder span {
    display: none;
}

.dispatcher-truck-tile.is-placeholder img {
    filter: grayscale(1);
    opacity: .1;
}

.dispatcher-truck-tile.is-assigned {
    display: none;
    order: 2;
    border-color: rgba(142, 158, 166, .24);
    background: rgba(142, 158, 166, .035);
    color: rgba(159, 174, 181, .35);
    box-shadow: none;
    cursor: default;
    pointer-events: none;
}

.dispatcher-truck-tile.is-assigned strong,
.dispatcher-truck-tile.is-assigned span {
    display: none;
}

.dispatcher-truck-tile.is-assigned img {
    filter: grayscale(1);
    opacity: .1;
}

.complex-assigned-trucks {
    position: absolute;
    left: clamp(14px, 1vw, 18px);
    right: clamp(14px, 1vw, 18px);
    bottom: clamp(31px, 3.4vh, 40px);
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    max-height: 36px;
    overflow: hidden;
}

.complex-assigned-truck {
    max-width: 58px;
    overflow: hidden;
    padding: 2px 5px;
    border: 1px solid rgba(142, 158, 166, .38);
    border-radius: 3px;
    background: rgba(142, 158, 166, .1);
    color: var(--gd-ink);
    font-size: 9px;
    font-weight: 900;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dispatcher-complex-card {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    gap: 8px;
    padding: clamp(12px, .9vw, 16px);
}

.complex-work-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    min-width: 0;
}

.complex-work-head h2 {
    margin: 0;
    color: var(--gd-ink);
    font-size: clamp(30px, 2.4vw, 42px);
    font-weight: 800;
    line-height: .92;
}

.complex-context {
    display: grid;
    justify-self: end;
    align-self: start;
    justify-items: end;
    width: max-content;
    min-width: 0;
    max-width: min(210px, 100%);
    gap: 2px;
    text-align: right;
}

.complex-info-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    max-width: 100%;
    min-height: 17px;
    padding: 2px 7px;
    border: 1px solid rgba(142, 158, 166, .35);
    border-radius: 4px;
    background: rgba(142, 158, 166, .11);
    color: var(--gd-ink);
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: clamp(9px, .64vw, 12px);
    font-style: normal;
    font-weight: 900;
    line-height: 1;
}

.complex-info-chip.chip-horizon,
.complex-info-chip.chip-block {
    font-size: clamp(10px, .74vw, 13px);
}

.complex-info-chip.chip-rock {
    color: var(--gd-muted);
    background: rgba(142, 158, 166, .08);
}

.complex-unload-points {
    display: grid;
    width: 100%;
    justify-items: end;
    gap: 3px;
    max-height: 41px;
    overflow: hidden;
}

.complex-info-chip.chip-unload {
    min-height: 17px;
    padding: 2px 7px;
    font-size: clamp(9px, .62vw, 11px);
}

.dispatcher-complex-card .complex-assigned-trucks {
    position: static;
    z-index: 2;
    display: grid;
    grid-auto-flow: row;
    grid-template-columns: repeat(var(--complex-truck-cols, 5), var(--complex-truck-w, var(--gd-truck-slot-w)));
    grid-auto-rows: var(--complex-truck-h, var(--gd-truck-slot-h));
    align-content: end;
    justify-content: var(--complex-truck-justify, start);
    gap: var(--complex-truck-gap, 6px);
    min-height: 0;
    max-height: none;
    overflow: visible;
}

.dispatcher-complex-card .complex-assigned-trucks.truck-fill-1 {
    --complex-truck-cols: 6;
    --complex-truck-w: var(--gd-truck-slot-w);
    --complex-truck-h: var(--gd-truck-slot-h);
    --complex-truck-gap: 6px;
}

.dispatcher-complex-card .complex-assigned-trucks.truck-fill-2 {
    --complex-truck-cols: 6;
    --complex-truck-w: 66px;
    --complex-truck-h: 66px;
    --complex-truck-gap: 6px;
}

.dispatcher-complex-card .complex-assigned-trucks.truck-fill-3 {
    --complex-truck-cols: 6;
    --complex-truck-w: 58px;
    --complex-truck-h: 58px;
    --complex-truck-gap: 5px;
}

.dispatcher-complex-card .complex-assigned-trucks.truck-fill-4 {
    --complex-truck-cols: 6;
    --complex-truck-w: 50px;
    --complex-truck-h: 50px;
    --complex-truck-gap: 5px;
}

.complex-truck-tile {
    width: var(--complex-truck-w, var(--gd-truck-slot-w));
    height: var(--complex-truck-h, var(--gd-truck-slot-h));
    min-height: 0;
    cursor: grab;
}

.complex-truck-tile strong {
    font-size: clamp(9px, .7vw, 11px);
}

.complex-truck-tile img {
    width: 64%;
    height: 46%;
}

.complex-truck-tile span {
    font-size: clamp(6px, .5vw, 8px);
}

body.mining-master-screen .dispatcher-complex-card .complex-assigned-trucks.truck-fill-1 {
    --complex-truck-h: clamp(58px, 6.2vh, 74px);
}

body.mining-master-screen .dispatcher-complex-card .complex-assigned-trucks.truck-fill-2 {
    --complex-truck-h: 66px;
}

body.mining-master-screen .dispatcher-complex-card .complex-assigned-trucks.truck-fill-3 {
    --complex-truck-h: 58px;
}

body.mining-master-screen .dispatcher-complex-card .complex-assigned-trucks.truck-fill-4 {
    --complex-truck-h: 50px;
}

body.mining-master-screen .dispatcher-complex-card .complex-truck-tile {
    height: var(--complex-truck-h, 64px);
}

@keyframes dispatcher-tile-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(.955);
    }
}

@keyframes dispatcher-complex-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(.992);
    }
}

@keyframes dispatcher-complex-warning-pulse {
    0%, 100% {
        filter: saturate(1.03);
        box-shadow: var(--gd-shadow);
    }
    50% {
        filter: saturate(1.16) brightness(1.04);
        box-shadow:
            var(--gd-shadow),
            inset 0 0 0 2px rgba(255, 178, 29, .28),
            inset 0 0 28px rgba(255, 178, 29, .18);
    }
}

@keyframes dispatcher-complex-danger-pulse {
    0%, 100% {
        filter: saturate(1.06);
        box-shadow: var(--gd-shadow);
    }
    50% {
        filter: saturate(1.28) brightness(1.08);
        box-shadow:
            var(--gd-shadow),
            inset 0 0 0 2px rgba(255, 82, 75, .34),
            inset 0 0 32px rgba(255, 82, 75, .22);
    }
}

@keyframes mm-mobile-truck-fly-to-garage {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
    72% {
        opacity: .9;
        transform: translate(88px, -6px) scale(.92);
    }
    100% {
        opacity: 0;
        transform: translate(150px, -10px) scale(.72);
    }
}

@keyframes dispatcher-button-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(.965);
    }
}

@keyframes dispatcher-clock-face-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes dispatcher-clock-ring-spin {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes dispatcher-clock-separator-tick {
    0%, 49% {
        opacity: 1;
    }
    50%, 100% {
        opacity: 0;
    }
}

@keyframes dispatcher-clock-light-show {
    0%, 100% {
        opacity: .72;
        transform: scale(.96) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1.05) rotate(16deg);
    }
}

@keyframes dispatcher-clock-equalizer {
    0% {
        background-size: 6px 38%, 6px 72%, 6px 48%, 6px 86%, 6px 54%;
    }
    25% {
        background-size: 6px 78%, 6px 44%, 6px 92%, 6px 58%, 6px 36%;
    }
    50% {
        background-size: 6px 52%, 6px 88%, 6px 42%, 6px 74%, 6px 96%;
    }
    75% {
        background-size: 6px 88%, 6px 56%, 6px 76%, 6px 40%, 6px 68%;
    }
    100% {
        background-size: 6px 38%, 6px 72%, 6px 48%, 6px 86%, 6px 54%;
    }
}

@keyframes dispatcher-clock-light-fade {
    from {
        opacity: 1;
        transform: scale(1.03);
    }
    to {
        opacity: 0;
        transform: scale(.92);
    }
}

@keyframes dispatcher-clock-equalizer-fade {
    from {
        opacity: .86;
        background-size: 6px 72%, 6px 48%, 6px 88%, 6px 56%, 6px 76%;
    }
    to {
        opacity: 0;
        background-size: 6px 12%, 6px 12%, 6px 12%, 6px 12%, 6px 12%;
    }
}

@keyframes dispatcher-clock-face-settle {
    from {
        transform: rotate(0deg);
        filter: saturate(1.2) brightness(1.08);
    }
    to {
        transform: rotate(360deg);
        filter: none;
    }
}

@keyframes dispatcher-clock-ring-settle {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
        filter: drop-shadow(0 0 13px rgba(123, 211, 25, .36)) saturate(1.28);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
        filter: none;
    }
}

.complex-truck-empty {
    grid-column: 1 / -1;
    align-self: end;
    justify-self: stretch;
    width: 100%;
    max-width: 100%;
    padding: 0 0 2px;
    border: 0;
    border-radius: 0;
    color: var(--gd-muted);
    background: transparent;
    font-size: clamp(11px, .78vw, 13px);
    font-style: normal;
    font-weight: 900;
    line-height: 1;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dispatcher-truck-tile strong,
.dispatcher-truck-tile span {
    position: relative;
    z-index: 2;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dispatcher-truck-tile strong {
    color: var(--gd-ink);
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
}

.dispatcher-truck-tile img {
    position: absolute;
    left: 50%;
    top: 54%;
    z-index: 1;
    width: 42px;
    height: 32px;
    object-fit: contain;
    opacity: .78;
    transform: translate(-50%, -50%);
    transition: opacity .16s ease, filter .16s ease, transform .16s ease;
}

.dispatcher-truck-tile span {
    position: absolute;
    right: 3px;
    bottom: 3px;
    left: 3px;
    color: currentColor;
    font-size: 7px;
    font-weight: 900;
    text-align: center;
}

.dispatcher-truck-tile:not(.is-placeholder):not(.is-assigned):hover {
    z-index: 50;
    animation: dispatcher-tile-pulse .92s ease-in-out infinite;
    filter: saturate(1.16);
    border-color: color-mix(in srgb, currentColor 70%, #ffffff);
    background: color-mix(in srgb, currentColor 16%, rgba(142, 158, 166, .08));
    box-shadow: inset 0 0 14px color-mix(in srgb, currentColor 16%, transparent), 0 0 0 1px color-mix(in srgb, currentColor 24%, transparent), 0 0 18px color-mix(in srgb, currentColor 22%, transparent);
}

.dispatcher-truck-tile:not(.is-placeholder):not(.is-assigned):hover img {
    opacity: 1;
    filter: drop-shadow(0 0 7px color-mix(in srgb, currentColor 34%, transparent));
    transform: translate(-50%, -50%);
}

.dispatcher-equipment-tile:not(.is-placeholder):not(.is-assigned):active,
.dispatcher-truck-tile:not(.is-placeholder):not(.is-assigned):active,
.dispatcher-complex-card:not(.status-empty):active {
    transform: translateY(0) scale(.985);
    filter: saturate(1.05);
}

.gd-equipment-detail {
    --gd-detail-panel: #0d171f;
    --gd-detail-ink: #eaf3f6;
    --gd-detail-muted: #91a4ad;
    --gd-detail-line: rgba(142, 158, 166, .24);
    --gd-detail-shadow: 0 24px 80px rgba(0, 0, 0, .68), inset 0 0 0 1px rgba(231, 241, 246, .03);
    --gd-detail-employee: linear-gradient(135deg, rgba(0, 195, 255, .13), rgba(123, 211, 25, .09));
    --gd-detail-backdrop: rgba(0, 5, 10, .72);
}

.dispatcher-day .gd-equipment-detail {
    --gd-detail-panel: #f6faf9;
    --gd-detail-ink: #132124;
    --gd-detail-muted: #5d7279;
    --gd-detail-line: rgba(58, 78, 86, .20);
    --gd-detail-shadow: 0 24px 70px rgba(13, 31, 36, .30), inset 0 0 0 1px rgba(255, 255, 255, .72);
    --gd-detail-employee: linear-gradient(135deg, rgba(0, 137, 180, .13), rgba(74, 164, 44, .12));
    --gd-detail-backdrop: rgba(9, 19, 22, .42);
}

.gd-equipment-detail .mm-equipment-detail-backdrop {
    background: var(--gd-detail-backdrop);
    backdrop-filter: blur(2px);
}

.gd-equipment-detail .mm-equipment-detail-panel {
    box-sizing: border-box;
    width: min(1020px, calc(100vw - 32px));
    max-height: min(760px, calc(100dvh - 56px));
    overflow: auto;
    padding: 16px;
    border-color: var(--gd-detail-line);
    border-radius: 8px;
    background: var(--gd-detail-panel);
    color: var(--gd-detail-ink);
    box-shadow: var(--gd-detail-shadow);
    scrollbar-color: rgba(142, 158, 166, .55) transparent;
    scrollbar-width: thin;
}

.gd-equipment-detail .mm-equipment-detail-panel::-webkit-scrollbar {
    width: 8px;
}

.gd-equipment-detail .mm-equipment-detail-panel::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(142, 158, 166, .46);
}

.gd-equipment-detail .mm-detail-head {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    min-width: 0;
    padding-right: 38px;
}

.gd-detail-garage-slot {
    display: block;
    width: 104px;
    height: 76px;
    min-width: 104px;
}

.gd-detail-garage-slot .dispatcher-excavator-garage-tile,
.gd-detail-garage-slot .dispatcher-truck-tile {
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    min-height: 0;
    cursor: default;
    pointer-events: none;
}

.gd-detail-garage-slot .dispatcher-excavator-garage-tile strong {
    font-size: 18px;
}

.gd-detail-garage-slot .dispatcher-excavator-garage-tile img,
.gd-detail-garage-slot .dispatcher-truck-tile img {
    width: 58px;
    height: 42px;
}

.gd-detail-garage-slot .dispatcher-truck-tile strong {
    position: absolute;
    left: 6px;
    top: 5px;
    z-index: 2;
    color: var(--gd-ink);
    font-size: 18px;
    line-height: 1;
}

.gd-detail-garage-slot .dispatcher-excavator-garage-tile span,
.gd-detail-garage-slot .dispatcher-truck-tile span {
    font-size: 9px;
}

.gd-equipment-detail .mm-detail-head h2,
.gd-equipment-detail .mm-detail-list dd,
.gd-equipment-detail .mm-detail-employee-info strong {
    color: var(--gd-detail-ink);
}

.gd-equipment-detail .mm-detail-head span,
.gd-equipment-detail .mm-detail-list dt,
.gd-equipment-detail .mm-detail-employee-info span,
.gd-equipment-detail .mm-detail-tags small,
.gd-equipment-detail .mm-detail-employee-info a[aria-disabled="true"] {
    color: var(--gd-detail-muted);
}

.gd-equipment-detail .mm-detail-icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 104px;
    height: 76px;
    min-width: 104px;
    overflow: hidden;
    border: 1px solid rgba(142, 158, 166, .46);
    border-radius: 6px;
    background: rgba(142, 158, 166, .08);
    color: var(--gd-detail-muted);
}

.gd-equipment-detail .mm-detail-icon.status-green {
    border-color: rgba(123, 211, 25, .48);
    background: var(--gd-green-soft);
    color: var(--gd-green);
}

.gd-equipment-detail .mm-detail-icon.status-yellow,
.gd-equipment-detail .mm-detail-icon.status-risk {
    border-color: rgba(255, 178, 29, .56);
    background: var(--gd-yellow-soft);
    color: var(--gd-yellow);
}

.gd-equipment-detail .mm-detail-icon.status-red,
.gd-equipment-detail .mm-detail-icon.status-danger {
    border-color: rgba(255, 82, 75, .56);
    background: var(--gd-red-soft);
    color: var(--gd-red);
}

.gd-equipment-detail .mm-detail-icon img {
    width: 58px;
    height: 42px;
    object-fit: contain;
    opacity: .82;
}

.gd-equipment-detail .mm-detail-icon strong {
    position: absolute;
    left: 6px;
    top: 5px;
    color: var(--gd-detail-ink);
    font-size: 18px;
    font-weight: 900;
    line-height: 1;
}

.gd-equipment-detail .mm-detail-head > div:last-child {
    min-width: 0;
}

.gd-equipment-detail .mm-detail-head span {
    margin-bottom: 2px;
    font-size: 10px;
    line-height: 1;
}

.gd-equipment-detail .mm-detail-head h2 {
    overflow: hidden;
    font-size: 24px;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gd-equipment-detail .mm-detail-tags {
    gap: 6px;
    margin-top: 8px;
}

.gd-equipment-detail .mm-detail-tags mark,
.gd-equipment-detail .mm-detail-tags small {
    min-height: 22px;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 12px;
    line-height: 1;
}

.gd-equipment-detail .mm-detail-tags mark {
    background: rgba(123, 211, 25, .14);
    color: var(--gd-green);
}

.gd-equipment-detail .mm-detail-tags small {
    background: rgba(142, 158, 166, .12);
}

.gd-equipment-detail .mm-detail-employee {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 10px;
    margin-top: 12px;
    padding: 10px;
    border-color: var(--gd-detail-line);
    border-radius: 8px;
    background: var(--gd-detail-employee);
}

.gd-equipment-detail .mm-detail-employee-photo {
    width: 46px;
    height: 46px;
    border-color: rgba(231, 241, 246, .26);
    border-radius: 8px;
    background: rgba(142, 158, 166, .14);
}

.gd-equipment-detail .mm-detail-employee-photo span {
    color: var(--gd-detail-ink);
    font-size: 16px;
}

.gd-equipment-detail .mm-detail-employee-info a {
    color: var(--gd-blue);
}

.gd-equipment-detail .mm-detail-employee-info span {
    margin-bottom: 2px;
    font-size: 10px;
    line-height: 1;
}

.gd-equipment-detail .mm-detail-employee-info strong {
    overflow: hidden;
    font-size: 16px;
    line-height: 1.12;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gd-equipment-detail .mm-detail-employee-info a {
    margin-top: 4px;
    font-size: 13px;
    line-height: 1;
}

.gd-equipment-detail .mm-detail-list {
    grid-template-columns: minmax(96px, .48fr) minmax(0, 1fr);
    gap: 0 12px;
    margin-top: 12px;
}

.gd-equipment-detail .mm-detail-list dt,
.gd-equipment-detail .mm-detail-list dd {
    min-height: 28px;
    padding: 7px 0;
    border-top-color: rgba(142, 158, 166, .18);
    font-size: 12px;
    line-height: 1.15;
}

.gd-equipment-detail .mm-detail-list dd {
    overflow-wrap: anywhere;
    font-size: 15px;
    line-height: 1.12;
    text-align: right;
}

.gd-detail-shift-report {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--gd-detail-line);
}

.gd-detail-section-title,
.gd-detail-report-title {
    color: var(--gd-detail-muted);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .04em;
    line-height: 1;
    text-transform: uppercase;
}

.gd-detail-metrics {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    margin-top: 9px;
}

.gd-detail-metrics > div {
    min-width: 0;
    padding: 8px 8px;
    border: 1px solid var(--gd-detail-line);
    border-radius: 6px;
    background: rgba(142, 158, 166, .08);
}

.dispatcher-day .gd-detail-metrics > div {
    background: rgba(58, 78, 86, .055);
}

.gd-detail-metrics span,
.gd-detail-metrics strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gd-detail-metrics span {
    color: var(--gd-detail-muted);
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
}

.gd-detail-metrics strong {
    margin-top: 5px;
    color: var(--gd-detail-ink);
    font-size: 17px;
    font-weight: 900;
    line-height: 1;
}

.gd-detail-report-tables {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.gd-detail-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    margin-top: 10px;
    padding-bottom: 2px;
    scrollbar-width: thin;
}

.gd-detail-tab {
    flex: 0 0 auto;
    width: auto;
    max-width: 180px;
    min-height: 26px;
    padding: 5px 10px;
    border: 1px solid var(--gd-detail-line);
    border-radius: 6px;
    background: rgba(142, 158, 166, .08);
    color: var(--gd-detail-muted);
    font: inherit;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
}

.gd-detail-tab.is-active {
    border-color: color-mix(in srgb, var(--gd-green) 68%, var(--gd-detail-line));
    background: color-mix(in srgb, var(--gd-green) 16%, transparent);
    color: var(--gd-green);
}

.dispatcher-day .gd-detail-tab {
    background: rgba(58, 78, 86, .055);
}

.dispatcher-day .gd-detail-tab.is-active {
    background: color-mix(in srgb, var(--gd-green) 12%, rgba(255, 255, 255, .72));
}

.gd-detail-dashboard {
    display: grid;
    gap: 10px;
    margin-top: 10px;
}

.gd-detail-chart-card {
    --pie-green: var(--gd-green);
    --pie-yellow: var(--gd-yellow);
    --pie-blue: var(--gd-cyan);
    --pie-red: var(--gd-red);
    padding: 10px;
    border: 1px solid var(--gd-detail-line);
    border-radius: 7px;
    background: rgba(8, 18, 24, .34);
}

.dispatcher-day .gd-detail-chart-card {
    background: rgba(58, 78, 86, .045);
}

.gd-detail-report-title {
    margin-bottom: 6px;
}

.gd-detail-gauge-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 8px 0 7px;
}

.gd-detail-gauge-summary {
    --chart-accent: var(--gd-green);
    display: grid;
    gap: 5px;
    justify-items: center;
    min-width: 0;
    padding: 8px 6px;
    border: 1px solid color-mix(in srgb, var(--chart-accent) 26%, var(--gd-detail-line));
    border-radius: 7px;
    background: color-mix(in srgb, var(--chart-accent) 7%, transparent);
}

.gd-detail-gauge-summary.accent-yellow {
    --chart-accent: var(--gd-yellow);
}

.gd-detail-gauge-summary.accent-blue {
    --chart-accent: var(--gd-cyan);
}

.gd-detail-gauge-summary.accent-red {
    --chart-accent: var(--gd-red);
}

.gd-detail-gauge-summary span {
    max-width: 100%;
    overflow: hidden;
    color: var(--gd-detail-muted);
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gd-detail-route-row,
.gd-detail-matrix-row,
.gd-detail-donut-card,
.gd-detail-breakdown-row,
.gd-detail-stack i,
.gd-detail-truck-ledger-row {
    --chart-accent: var(--gd-green);
}

.gd-detail-route-row.accent-yellow,
.gd-detail-matrix-row.accent-yellow,
.gd-detail-donut-card.accent-yellow,
.gd-detail-breakdown-row.accent-yellow,
.gd-detail-stack i.accent-yellow,
.gd-detail-truck-ledger-row.accent-yellow {
    --chart-accent: var(--gd-yellow);
}

.gd-detail-route-row.accent-blue,
.gd-detail-matrix-row.accent-blue,
.gd-detail-donut-card.accent-blue,
.gd-detail-breakdown-row.accent-blue,
.gd-detail-stack i.accent-blue,
.gd-detail-truck-ledger-row.accent-blue {
    --chart-accent: var(--gd-cyan);
}

.gd-detail-route-row.accent-red,
.gd-detail-matrix-row.accent-red,
.gd-detail-donut-card.accent-red,
.gd-detail-breakdown-row.accent-red,
.gd-detail-stack i.accent-red,
.gd-detail-truck-ledger-row.accent-red {
    --chart-accent: var(--gd-red);
}

.gd-detail-route-row {
    display: grid;
    grid-template-columns: minmax(104px, .72fr) minmax(78px, .55fr) minmax(86px, .62fr) 76px;
    gap: 8px;
    align-items: center;
    padding: 8px 0;
    border-top: 1px solid rgba(142, 158, 166, .14);
}

.gd-detail-route-row:first-of-type,
.gd-detail-matrix-row:first-of-type {
    border-top: 0;
}

.gd-detail-route-node {
    overflow: hidden;
    padding: 7px 8px;
    border: 1px solid var(--gd-detail-line);
    border-radius: 6px;
    background: rgba(142, 158, 166, .08);
    color: var(--gd-detail-ink);
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gd-detail-route-flow {
    position: relative;
    display: grid;
    align-items: center;
    min-height: 34px;
}

.gd-detail-route-flow::before {
    content: "";
    position: absolute;
    right: 0;
    left: 0;
    top: 50%;
    height: 2px;
    background: rgba(142, 158, 166, .24);
    transform: translateY(-50%);
}

.gd-detail-route-flow::after {
    content: "";
    position: absolute;
    right: -1px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-top: 2px solid rgba(142, 158, 166, .42);
    border-right: 2px solid rgba(142, 158, 166, .42);
    transform: translateY(-50%) rotate(45deg);
}

.gd-detail-route-flow i {
    position: absolute;
    left: 0;
    top: 50%;
    right: 0;
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--chart-accent) 0 8px, transparent 8px 12px);
    opacity: .72;
    transform: translateY(-50%);
}

.gd-detail-route-meta {
    grid-column: 1 / -1;
    overflow: hidden;
    color: var(--gd-detail-muted);
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gd-detail-matrix-row {
    display: grid;
    grid-template-columns: minmax(132px, .74fr) minmax(0, 1fr);
    gap: 8px;
    align-items: stretch;
    padding: 7px 0;
    border-top: 1px solid rgba(142, 158, 166, .14);
}

.gd-detail-matrix-face {
    overflow: hidden;
    padding: 8px;
    border: 1px solid var(--gd-detail-line);
    border-radius: 6px;
    background: rgba(142, 158, 166, .08);
    color: var(--gd-detail-ink);
    font-size: 12px;
    font-weight: 900;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gd-detail-matrix-cell {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 76px;
    gap: 8px;
    align-items: center;
    overflow: hidden;
    padding: 8px;
    border: 1px solid color-mix(in srgb, var(--chart-accent) 34%, var(--gd-detail-line));
    border-radius: 6px;
    background: color-mix(in srgb, var(--chart-accent) 10%, transparent);
}

.gd-detail-matrix-row.is-grouped .gd-detail-matrix-cell {
    grid-template-columns: 86px minmax(0, 1fr);
}

.gd-detail-pie {
    position: relative;
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px rgba(142, 158, 166, .18), 0 0 14px rgba(0, 0, 0, .12);
}

.gd-detail-pie::after {
    content: "";
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(142, 158, 166, .22);
    border-radius: 50%;
}

.gd-detail-pie strong {
    position: relative;
    z-index: 1;
    color: var(--gd-detail-ink);
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
}

.gd-detail-pie-legend {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.gd-detail-pie-item {
    --legend-accent: var(--gd-green);
    display: grid;
    grid-template-columns: 7px minmax(54px, .7fr) auto minmax(0, .7fr);
    gap: 6px;
    align-items: center;
    min-width: 0;
}

.gd-detail-pie-item.accent-yellow {
    --legend-accent: var(--gd-yellow);
}

.gd-detail-pie-item.accent-blue {
    --legend-accent: var(--gd-cyan);
}

.gd-detail-pie-item.accent-red {
    --legend-accent: var(--gd-red);
}

.gd-detail-pie-item span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--legend-accent);
}

.gd-detail-pie-item strong,
.gd-detail-pie-item em,
.gd-detail-pie-item small {
    overflow: hidden;
    font-style: normal;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gd-detail-pie-item strong {
    color: var(--gd-detail-ink);
    font-size: 11px;
    font-weight: 900;
}

.gd-detail-pie-item em {
    color: var(--legend-accent);
    font-size: 11px;
    font-weight: 900;
    text-align: right;
}

.gd-detail-pie-item small {
    color: var(--gd-detail-muted);
    font-size: 10px;
    font-weight: 800;
}

.gd-detail-donut-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 8px;
}

.gd-detail-donut-card {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    min-width: 0;
    padding: 8px;
    border: 1px solid color-mix(in srgb, var(--chart-accent) 34%, var(--gd-detail-line));
    border-radius: 7px;
    background: color-mix(in srgb, var(--chart-accent) 9%, transparent);
}

.gd-detail-donut-card > div:last-child {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.gd-detail-donut-card strong,
.gd-detail-donut-card span {
    overflow: hidden;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gd-detail-donut-card > div:last-child strong {
    color: var(--gd-detail-ink);
    font-size: 13px;
    font-weight: 900;
}

.gd-detail-donut-card span {
    color: var(--gd-detail-muted);
    font-size: 10px;
    font-weight: 800;
}

.gd-detail-breakdown {
    display: grid;
    gap: 10px;
    margin-top: 9px;
}

.gd-detail-stack {
    display: flex;
    overflow: hidden;
    height: 16px;
    border: 1px solid var(--gd-detail-line);
    border-radius: 999px;
    background: rgba(142, 158, 166, .12);
}

.gd-detail-stack i {
    display: block;
    width: var(--segment-share);
    min-width: 8px;
    height: 100%;
    background: linear-gradient(90deg, color-mix(in srgb, var(--chart-accent) 58%, transparent), var(--chart-accent));
    box-shadow: 0 0 14px color-mix(in srgb, var(--chart-accent) 28%, transparent);
}

.gd-detail-breakdown-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.gd-detail-breakdown-row {
    display: grid;
    grid-template-columns: 8px minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    min-width: 0;
    padding: 8px;
    border: 1px solid color-mix(in srgb, var(--chart-accent) 32%, var(--gd-detail-line));
    border-radius: 7px;
    background: color-mix(in srgb, var(--chart-accent) 8%, transparent);
}

.gd-detail-breakdown-mark {
    width: 8px;
    height: 100%;
    min-height: 44px;
    border-radius: 999px;
    background: var(--chart-accent);
    box-shadow: 0 0 12px color-mix(in srgb, var(--chart-accent) 34%, transparent);
}

.gd-detail-breakdown-main {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.gd-detail-breakdown-main strong,
.gd-detail-breakdown-main span,
.gd-detail-breakdown-row b {
    overflow: hidden;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gd-detail-breakdown-main strong {
    color: var(--gd-detail-ink);
    font-size: 13px;
    font-weight: 900;
}

.gd-detail-breakdown-main span {
    color: var(--gd-detail-muted);
    font-size: 10px;
    font-weight: 800;
}

.gd-detail-breakdown-main em {
    display: block;
    overflow: hidden;
    height: 6px;
    border-radius: 999px;
    background: rgba(142, 158, 166, .16);
}

.gd-detail-breakdown-main em i {
    display: block;
    width: var(--bar-pct);
    height: 100%;
    border-radius: inherit;
    background: var(--chart-accent);
}

.gd-detail-breakdown-row b {
    color: var(--chart-accent);
    font-size: 13px;
    font-weight: 900;
    text-align: right;
}

.gd-detail-truck-ledger {
    display: grid;
    gap: 10px;
    margin-top: 9px;
}

.gd-detail-truck-group {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.gd-detail-truck-group > strong {
    color: var(--gd-detail-muted);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .04em;
    line-height: 1;
    text-transform: uppercase;
}

.gd-detail-truck-ledger-row {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr) auto;
    gap: 9px;
    align-items: center;
    min-width: 0;
    padding: 7px;
    border: 1px solid color-mix(in srgb, var(--chart-accent) 32%, var(--gd-detail-line));
    border-radius: 7px;
    background: color-mix(in srgb, var(--chart-accent) 8%, transparent);
}

.gd-detail-truck-group.is-removed .gd-detail-truck-ledger-row {
    opacity: .82;
}

.gd-detail-truck-mini {
    position: relative;
    display: grid;
    align-content: center;
    justify-items: center;
    min-height: 54px;
    overflow: hidden;
    padding: 6px;
    border: 1px solid rgba(142, 158, 166, .22);
    border-radius: 7px;
    background: rgba(142, 158, 166, .08);
}

.gd-detail-truck-mini::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: conic-gradient(var(--chart-accent) 0 var(--tile-progress), rgba(142, 158, 166, .22) var(--tile-progress) 100%);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    pointer-events: none;
}

.gd-detail-truck-mini b,
.gd-detail-truck-mini span {
    position: relative;
    z-index: 1;
    overflow: hidden;
    max-width: 100%;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gd-detail-truck-mini b {
    color: var(--gd-detail-ink);
    font-size: 18px;
    font-weight: 900;
}

.gd-detail-truck-mini span {
    margin-top: 5px;
    color: var(--chart-accent);
    font-size: 9px;
    font-weight: 900;
}

.gd-detail-truck-route {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.gd-detail-truck-route strong,
.gd-detail-truck-route span,
.gd-detail-truck-value {
    overflow: hidden;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gd-detail-truck-route strong {
    color: var(--gd-detail-ink);
    font-size: 13px;
    font-weight: 900;
}

.gd-detail-truck-route span {
    color: var(--gd-detail-muted);
    font-size: 10px;
    font-weight: 800;
}

.gd-detail-truck-route em {
    display: block;
    overflow: hidden;
    height: 6px;
    border-radius: 999px;
    background: rgba(142, 158, 166, .16);
}

.gd-detail-truck-route em i {
    display: block;
    width: var(--tile-progress);
    height: 100%;
    border-radius: inherit;
    background: var(--chart-accent);
}

.gd-detail-truck-value {
    color: var(--chart-accent);
    font-size: 14px;
    font-weight: 900;
    text-align: right;
}

.gd-detail-matrix-cell > div {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
}

.gd-detail-matrix-cell strong,
.gd-detail-matrix-cell span,
.gd-detail-matrix-cell small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gd-detail-matrix-cell strong {
    color: var(--gd-detail-ink);
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
}

.gd-detail-matrix-cell span {
    color: var(--chart-accent);
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
}

.gd-detail-matrix-cell small {
    position: relative;
    z-index: 1;
    display: block;
    margin-top: 5px;
    color: var(--gd-detail-muted);
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
}

.gd-detail-gauge {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    justify-self: center;
    border-radius: 50%;
    background:
        radial-gradient(circle at center, var(--gd-detail-panel) 0 54%, transparent 55%),
        conic-gradient(var(--chart-accent) 0 var(--gauge-pct), rgba(142, 158, 166, .18) var(--gauge-pct) 100%);
    box-shadow: inset 0 0 0 1px rgba(142, 158, 166, .18), 0 0 14px color-mix(in srgb, var(--chart-accent) 22%, transparent);
}

.gd-detail-gauge::after {
    content: "";
    position: absolute;
    inset: 10px;
    border-radius: 50%;
    border: 1px solid color-mix(in srgb, var(--chart-accent) 38%, transparent);
}

.gd-detail-gauge strong {
    position: relative;
    z-index: 1;
    max-width: 48px;
    overflow: hidden;
    color: var(--gd-detail-ink);
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gd-detail-chart-row {
    --chart-accent: var(--gd-green);
    display: grid;
    gap: 4px;
    padding: 7px 0;
    border-top: 1px solid rgba(142, 158, 166, .14);
}

.gd-detail-chart-row.accent-yellow {
    --chart-accent: var(--gd-yellow);
}

.gd-detail-chart-row.accent-blue {
    --chart-accent: var(--gd-cyan);
}

.gd-detail-chart-row.accent-red {
    --chart-accent: var(--gd-red);
}

.gd-detail-chart-row:first-of-type {
    border-top: 0;
}

.gd-detail-chart-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: baseline;
}

.gd-detail-chart-head strong,
.gd-detail-chart-head span,
.gd-detail-chart-meta {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gd-detail-chart-head strong {
    color: var(--gd-detail-ink);
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
}

.gd-detail-chart-head span {
    color: var(--chart-accent);
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
}

.gd-detail-chart-meta {
    color: var(--gd-detail-muted);
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
}

.gd-detail-chart-bar {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(142, 158, 166, .16);
}

.gd-detail-chart-bar i {
    display: block;
    width: var(--bar-pct);
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, color-mix(in srgb, var(--chart-accent) 62%, transparent), var(--chart-accent));
    box-shadow: 0 0 14px color-mix(in srgb, var(--chart-accent) 34%, transparent);
}

.gd-detail-report-table {
    overflow: hidden;
    border: 1px solid var(--gd-detail-line);
    border-radius: 7px;
}

.gd-detail-report-table table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.gd-detail-report-table th,
.gd-detail-report-table td {
    overflow: hidden;
    padding: 7px 8px;
    border-bottom: 1px solid rgba(142, 158, 166, .14);
    color: var(--gd-detail-ink);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.12;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gd-detail-report-table th {
    color: var(--gd-detail-muted);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.gd-detail-report-table tbody tr:last-child td {
    border-bottom: 0;
}

.dispatcher-dragging {
    z-index: 80 !important;
    opacity: .82;
    animation: dispatcher-tile-pulse .92s ease-in-out infinite;
    filter: saturate(1.16);
    box-shadow: inset 0 0 14px color-mix(in srgb, currentColor 16%, transparent), 0 0 0 1px color-mix(in srgb, currentColor 24%, transparent), 0 10px 22px rgba(0, 0, 0, .38) !important;
}

.dispatcher-drop-target {
    outline: 2px solid var(--gd-cyan);
    outline-offset: -5px;
}

@media (max-width: 1180px) {
    .dispatcher-board {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        min-height: 0;
    }

    .dispatcher-topbar,
    .dispatcher-left,
    .dispatcher-complexes,
    .dispatcher-right,
    .dispatcher-forecast,
    .dispatcher-losses {
        grid-column: 1;
        grid-row: auto;
    }

    .dispatcher-topbar {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        height: auto;
    }

    .dispatcher-title {
        grid-column: auto;
    }

    .dispatcher-nav-row {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .dispatcher-header-row {
        grid-template-columns: minmax(0, 1fr) minmax(0, 434px);
    }

    .dispatcher-header-row .dispatcher-nav,
    .dispatcher-header-controls {
        grid-column: 1 / -1;
    }

    .dispatcher-header-row .dispatcher-clock {
        grid-column: 2;
        grid-row: 1;
    }

    .dispatcher-nav {
        grid-column: 1 / -1;
        order: 3;
    }

    .dispatcher-kpi-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .dispatcher-left,
    .dispatcher-right {
        grid-template-rows: auto;
    }

    .dispatcher-complexes {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: none;
    }

    .dispatcher-complex-card {
        min-height: 226px;
    }

    .dispatcher-forecast,
    .dispatcher-losses {
        min-height: 154px;
    }

    .dispatcher-filters,
    .dispatcher-lists-grid {
        grid-template-columns: 1fr;
    }

    .dispatcher-tool-head {
        grid-template-columns: 1fr;
    }

    .dispatcher-tool-actions {
        justify-content: flex-start;
    }

    .dispatcher-analytics-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dispatcher-reports-layout {
        grid-template-columns: 1fr;
    }

    .dispatcher-management-layout {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dispatcher-report-tile-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dispatcher-report-card-wide {
        grid-column: span 2;
    }

    .dispatcher-management-complexes {
        grid-column: 1 / -1;
    }

    .dispatcher-complex-report-row {
        grid-template-columns: 90px 1fr 90px;
    }

    .dispatcher-downtime-events,
    .dispatcher-downtime-equipment-grid {
        grid-template-columns: 1fr;
    }

    .dispatcher-complex-dumps,
    .dispatcher-complex-report-row em {
        grid-column: 1 / -1;
    }
}

@media (max-width: 620px) {
    .dispatcher-shell {
        padding: 6px;
    }

    .dispatcher-board,
    .dispatcher-tools {
        width: 100%;
    }

    .dispatcher-topbar,
    .dispatcher-excavators,
    .dispatcher-complexes,
    .dispatcher-forecast,
    .dispatcher-losses {
        grid-template-columns: 1fr;
    }

    .dispatcher-topbar {
        display: grid;
    }

    .dispatcher-nav-row {
        grid-template-columns: 1fr;
    }

    .dispatcher-header-row {
        grid-template-columns: 1fr;
    }

    .dispatcher-header-row .dispatcher-clock {
        grid-column: 1;
        grid-row: auto;
        justify-items: start;
        border-left: 0;
        padding-left: 0;
        text-align: left;
    }

    .dispatcher-nav,
    .dispatcher-top-actions {
        overflow-x: auto;
        justify-content: flex-start;
    }

    .dispatcher-report-tile-grid,
    .dispatcher-reports-layout,
    .dispatcher-management-layout {
        grid-template-columns: 1fr;
    }

    .dispatcher-clock {
        justify-items: start;
        border-left: 0;
        padding-left: 0;
        text-align: left;
    }

    .dispatcher-kpi-row {
        grid-template-columns: 1fr 1fr;
    }

    .dispatcher-kpi,
    .dispatcher-clock {
        border-left: 0;
        border-top: 1px solid var(--gd-line-soft);
    }

    .dispatcher-forecast,
    .dispatcher-losses {
        display: block;
    }

    .forecast-chart,
    .loss-donut {
        margin-top: 10px;
    }

    .dispatcher-inline-form {
        grid-template-columns: 1fr;
    }

    .dispatcher-analytics-shell {
        height: auto;
        min-height: 100vh;
    }

    .dispatcher-report-filters,
    .dispatcher-analytics-grid,
    .dispatcher-face-grid,
    .dispatcher-complex-report-row {
        grid-template-columns: 1fr;
    }

    .dispatcher-report-filters {
        display: grid;
    }

    .dispatcher-report-card-wide {
        grid-column: auto;
    }

    .dispatcher-management-complexes {
        grid-column: auto;
    }

    .dispatcher-management-score {
        grid-template-columns: 96px minmax(0, 1fr);
    }

    .dispatcher-management-ring {
        width: 94px;
    }

    .dispatcher-management-ring span {
        width: 60px;
        font-size: 18px;
    }

    .dispatcher-shift-pulse {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .dispatcher-downtime-event {
        grid-template-columns: 52px minmax(0, 1fr);
    }
}

.dispatcher-shift-log-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(320px, .6fr);
}

.dispatcher-shift-timeline-card {
    grid-row: span 2;
}

.dispatcher-shift-timeline {
    display: grid;
    gap: 10px;
    max-height: 620px;
    overflow: auto;
    padding-right: 4px;
}

.dispatcher-shift-event {
    align-items: stretch;
    background: rgba(8, 22, 29, .62);
    border: 1px solid rgba(126, 150, 162, .28);
    border-left: 4px solid #7e96a2;
    border-radius: 8px;
    display: grid;
    gap: 12px;
    grid-template-columns: 62px minmax(0, 1fr);
    min-height: 76px;
    padding: 10px 12px;
}

.dispatcher-shift-event time {
    align-items: center;
    color: #e8f5f7;
    display: flex;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 0;
}

.dispatcher-shift-event span,
.dispatcher-shift-event small,
.dispatcher-shift-mini-row span,
.dispatcher-shift-trip small {
    color: #9fb2bc;
    display: block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.dispatcher-shift-event strong {
    color: #f4fbff;
    display: block;
    font-size: 16px;
    margin: 2px 0 4px;
}

.dispatcher-shift-event p {
    color: #d7e4e8;
    margin: 0 0 5px;
}

.dispatcher-shift-event.is-ok,
.dispatcher-shift-mini-row.is-ok,
.dispatcher-shift-trip.is-ok {
    border-color: rgba(104, 219, 13, .48);
    border-left-color: #68db0d;
}

.dispatcher-shift-event.is-risk,
.dispatcher-shift-mini-row.is-risk,
.dispatcher-shift-trip.is-risk {
    border-color: rgba(255, 176, 26, .58);
    border-left-color: #ffb01a;
}

.dispatcher-shift-event.is-danger,
.dispatcher-shift-mini-row.is-danger,
.dispatcher-shift-trip.is-danger {
    border-color: rgba(255, 79, 75, .62);
    border-left-color: #ff4f4b;
}

.dispatcher-shift-event.is-info,
.dispatcher-shift-mini-row.is-info,
.dispatcher-shift-trip.is-info {
    border-color: rgba(42, 188, 232, .52);
    border-left-color: #2abce8;
}

.dispatcher-shift-mini-list {
    display: grid;
    gap: 8px;
}

.dispatcher-shift-mini-row,
.dispatcher-shift-trip {
    background: rgba(8, 22, 29, .58);
    border: 1px solid rgba(126, 150, 162, .26);
    border-left: 4px solid #7e96a2;
    border-radius: 8px;
    padding: 10px 12px;
}

.dispatcher-shift-mini-row strong,
.dispatcher-shift-trip strong {
    color: #f4fbff;
    display: block;
    font-size: 15px;
    line-height: 1.2;
    margin-bottom: 5px;
}

.dispatcher-shift-trip-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dispatcher-shift-trip span {
    color: #d7e4e8;
    display: block;
    margin-bottom: 5px;
}

.dispatcher-shift-table tr.is-ok td:first-child {
    border-left: 4px solid #68db0d;
}

.dispatcher-shift-table tr.is-risk td:first-child {
    border-left: 4px solid #ffb01a;
}

.dispatcher-shift-table tr.is-danger td:first-child {
    border-left: 4px solid #ff4f4b;
}

.dispatcher-shift-table tr.is-info td:first-child {
    border-left: 4px solid #2abce8;
}

.dispatcher-day .dispatcher-shift-event,
.dispatcher-day .dispatcher-shift-mini-row,
.dispatcher-day .dispatcher-shift-trip {
    background: rgba(255, 255, 255, .72);
    border-color: rgba(101, 119, 128, .25);
}

.dispatcher-day .dispatcher-shift-event time,
.dispatcher-day .dispatcher-shift-event strong,
.dispatcher-day .dispatcher-shift-mini-row strong,
.dispatcher-day .dispatcher-shift-trip strong {
    color: #142229;
}

.dispatcher-day .dispatcher-shift-event p,
.dispatcher-day .dispatcher-shift-trip span {
    color: #30424b;
}

.dispatcher-day .dispatcher-shift-event span,
.dispatcher-day .dispatcher-shift-event small,
.dispatcher-day .dispatcher-shift-mini-row span,
.dispatcher-day .dispatcher-shift-trip small {
    color: #62737c;
}

@media (max-width: 980px) {
    .dispatcher-shift-log-grid,
    .dispatcher-shift-trip-grid {
        grid-template-columns: 1fr;
    }

    .dispatcher-shift-timeline {
        max-height: none;
    }
}

@media print {
    body.dispatcher-control-screen {
        background: #ffffff;
    }

    .dispatcher-analytics-shell {
        height: auto;
        overflow: visible;
        background: #ffffff;
        color: #111820;
    }

    .dispatcher-nav-row,
    .dispatcher-header-row,
    .dispatcher-analytics-toolbar,
    .dispatcher-report-actions,
    .dispatcher-report-filters,
    .dispatcher-top-actions {
        display: none !important;
    }

    .dispatcher-analytics-board,
    .dispatcher-analytics-grid {
        display: block;
        width: 100%;
    }

    .dispatcher-topbar,
    .dispatcher-report-card {
        break-inside: avoid;
        margin-bottom: 10px;
        border-color: #b8c5ca;
        background: #ffffff !important;
        color: #111820;
    }

    .dispatcher-report-card h2,
    .dispatcher-ring-row strong,
    .dispatcher-split-row span,
    .dispatcher-complex-report-row strong,
    .dispatcher-face-tile strong,
    .dispatcher-face-tile span {
        color: #111820;
    }
}

.mm-mobile-shell {
    display: none;
}

@media (max-width: 760px) {
    body.mining-master-mobile-screen {
        overflow: hidden;
        background: #041017;
    }

    body.mining-master-mobile-screen .dispatcher-shell {
        position: relative;
        width: 100%;
        height: 100svh;
        min-height: 100svh;
        padding: 0;
        overflow: hidden;
        background:
            radial-gradient(circle at 25% 12%, rgba(79, 210, 68, .08), transparent 34%),
            linear-gradient(180deg, #07151d 0%, #030a0f 100%);
        color: #eef6fb;
    }

    body.mining-master-mobile-screen .dispatcher-compat-title,
    body.mining-master-mobile-screen .dispatcher-messages,
    body.mining-master-mobile-screen .dispatcher-board,
    body.mining-master-mobile-screen .dispatcher-tools {
        display: none !important;
    }

    body.mining-master-mobile-screen .mm-mobile-shell {
        position: relative;
        display: block;
        gap: 8px;
        width: 100%;
        height: 100svh;
        padding: max(14px, env(safe-area-inset-top)) 10px max(8px, env(safe-area-inset-bottom));
        overflow: hidden;
    }

    .mm-mobile-home,
    .mm-mobile-complex-detail,
    .mm-mobile-tab-panel {
        width: 100%;
        height: 100%;
        min-height: 0;
    }

    .mm-mobile-home {
        position: relative;
        display: grid;
        grid-template-rows: auto auto 1fr auto;
        gap: 8px;
    }

    .mm-mobile-home::before,
    .mm-mobile-home::after {
        position: absolute;
        left: 50%;
        z-index: 70;
        pointer-events: none;
        opacity: 0;
        transition: opacity .16s ease, transform .18s ease, filter .18s ease;
    }

    .mm-mobile-home::before {
        content: "";
        top: -86px;
        width: min(92vw, 330px);
        height: 168px;
        border-radius: 0 0 999px 999px / 0 0 100% 100%;
        background:
            radial-gradient(ellipse at 50% 100%, rgba(145, 255, 137, .46) 0%, rgba(88, 223, 82, .32) 34%, rgba(30, 118, 58, .15) 64%, rgba(7, 28, 19, 0) 86%),
            linear-gradient(180deg, rgba(12, 44, 29, .72), rgba(32, 155, 68, .34) 48%, rgba(8, 24, 18, 0));
        box-shadow:
            0 18px 42px rgba(88, 223, 82, .22),
            inset 0 -20px 38px rgba(159, 255, 151, .16),
            inset 0 22px 40px rgba(2, 14, 10, .18);
        mask-image: linear-gradient(180deg, #000 0 66%, rgba(0, 0, 0, .68) 82%, transparent 100%);
        transform: translate(-50%, -72%) scaleY(.94);
    }

    .mm-mobile-home::after {
        content: "+";
        top: 13px;
        display: grid;
        place-items: center;
        width: 150px;
        height: 58px;
        color: rgba(220, 255, 224, .88);
        font-size: 40px;
        font-weight: 900;
        line-height: 1;
        text-shadow: 0 2px 16px rgba(0, 0, 0, .7), 0 0 18px rgba(88, 223, 82, .44);
        background:
            url("/static/img/equipment/truck-green.png") 14% 54% / 48px auto no-repeat,
            url("/static/img/equipment/truck-green.png") 86% 54% / 48px auto no-repeat;
        filter: drop-shadow(0 12px 20px rgba(0, 0, 0, .48));
        transform: translate(-50%, -48px) scale(.9);
    }

    .mm-mobile-shell.is-fill-target-peeking .mm-mobile-home::before,
    .mm-mobile-shell.is-fill-target-peeking .mm-mobile-home::after {
        opacity: 1;
        transform: translate(-50%, 0) scale(1);
    }

    .mm-mobile-shell.is-fill-target-ready .mm-mobile-home::before,
    .mm-mobile-shell.is-fill-target-ready .mm-mobile-home::after {
        filter: brightness(1.18) saturate(1.16);
    }

    .mm-mobile-create-complex-target {
        position: absolute;
        left: 50%;
        bottom: 0;
        z-index: 120;
        display: grid;
        grid-template-columns: auto auto;
        align-items: center;
        justify-content: center;
        gap: 12px;
        width: min(92vw, 340px);
        height: 132px;
        padding-bottom: 12px;
        border-radius: 999px 999px 0 0 / 100% 100% 0 0;
        color: rgba(220, 255, 224, .82);
        text-transform: uppercase;
        pointer-events: none;
        opacity: 0;
        background:
            url("/static/img/equipment/excavator-green.png") calc(50% - 92px) 54% / 54px auto no-repeat,
            radial-gradient(ellipse at 50% 0%, rgba(145, 255, 137, .42) 0%, rgba(88, 223, 82, .3) 38%, rgba(30, 118, 58, .14) 66%, rgba(7, 28, 19, 0) 88%),
            linear-gradient(0deg, rgba(12, 44, 29, .72), rgba(32, 155, 68, .34) 48%, rgba(8, 24, 18, 0));
        box-shadow:
            0 -18px 42px rgba(88, 223, 82, .2),
            inset 0 20px 38px rgba(159, 255, 151, .14),
            inset 0 -20px 40px rgba(2, 14, 10, .2);
        mask-image: linear-gradient(0deg, #000 0 66%, rgba(0, 0, 0, .68) 82%, transparent 100%);
        filter: saturate(1.05);
        transform: translate(-50%, 72%) scaleY(.94);
        transition: opacity .16s ease, transform .18s ease, filter .18s ease;
    }

    .mm-mobile-create-complex-target span {
        display: grid;
        place-items: center;
        width: 44px;
        height: 44px;
        margin-left: 54px;
        border-radius: 50%;
        border: 1px solid rgba(220, 255, 224, .72);
        background: rgba(9, 46, 25, .68);
        color: rgba(226, 255, 229, .92);
        font-size: 34px;
        font-weight: 900;
        line-height: 1;
        box-shadow: 0 0 20px rgba(88, 223, 82, .28);
    }

    .mm-mobile-create-complex-target strong {
        max-width: 136px;
        color: rgba(220, 255, 224, .78);
        font-size: 15px;
        font-weight: 900;
        line-height: .98;
        letter-spacing: .035em;
        text-align: left;
        text-shadow: 0 2px 16px rgba(0, 0, 0, .7), 0 0 18px rgba(88, 223, 82, .34);
    }

    .mm-mobile-shell.is-create-complex-peeking .mm-mobile-create-complex-target {
        opacity: 1;
        transform: translate(-50%, 0) scaleY(1);
    }

    .mm-mobile-shell.is-create-complex-ready .mm-mobile-create-complex-target {
        filter: brightness(1.18) saturate(1.16);
    }

    .mm-mobile-home[hidden],
    .mm-mobile-tab-panel[hidden],
    .mm-mobile-complex-detail[hidden],
    .mm-mobile-fill-screen[hidden] {
        display: none !important;
    }

    .mm-mobile-tab-panel {
        display: grid;
        grid-template-rows: auto auto minmax(0, 1fr) auto;
        gap: 8px;
        overflow: hidden;
    }

    .mm-mobile-tab-panel[data-mm-mobile-panel="reports"] {
        grid-template-rows: auto auto minmax(0, 1fr) auto auto;
    }

    .mm-mobile-tab-panel[data-mm-mobile-panel="excavators"] {
        position: relative;
    }

    .mm-mobile-tab-panel[data-mm-mobile-panel="excavators"]::before,
    .mm-mobile-tab-panel[data-mm-mobile-panel="excavators"]::after {
        content: "В работу";
        position: absolute;
        top: 72px;
        bottom: 72px;
        z-index: 80;
        display: grid;
        place-items: center;
        width: 172px;
        box-sizing: border-box;
        color: rgba(212, 242, 216, .82);
        font-size: 18px;
        font-weight: 800;
        line-height: 1;
        letter-spacing: .045em;
        text-transform: uppercase;
        writing-mode: vertical-rl;
        text-orientation: mixed;
        opacity: 0;
        filter: saturate(1.08);
        pointer-events: none;
        text-shadow: 0 2px 12px rgba(0, 0, 0, .55);
        transition: opacity .16s ease, transform .18s ease, filter .18s ease;
    }

    .mm-mobile-tab-panel[data-mm-mobile-panel="excavators"]::before {
        left: -74px;
        padding-left: 42px;
        border-radius: 0 999px 999px 0 / 0 999px 999px 0;
        background:
            radial-gradient(ellipse at 0% 50%, rgba(145, 255, 137, .46) 0%, rgba(88, 223, 82, .34) 30%, rgba(30, 118, 58, .16) 62%, rgba(7, 28, 19, 0) 84%),
            linear-gradient(90deg, rgba(64, 214, 82, .52), rgba(30, 155, 69, .32) 42%, rgba(21, 84, 45, .12) 68%, rgba(8, 24, 18, 0));
        box-shadow:
            10px 0 34px rgba(88, 223, 82, .24),
            inset -18px 0 34px rgba(159, 255, 151, .16),
            inset 22px 0 40px rgba(2, 14, 10, .18);
        mask-image: linear-gradient(90deg, #000 0 64%, rgba(0, 0, 0, .72) 78%, transparent 100%);
        transform: translateX(-72%) scaleX(.96);
    }

    .mm-mobile-tab-panel[data-mm-mobile-panel="excavators"]::after {
        right: -74px;
        padding-right: 42px;
        border-radius: 999px 0 0 999px / 999px 0 0 999px;
        background:
            radial-gradient(ellipse at 100% 50%, rgba(145, 255, 137, .46) 0%, rgba(88, 223, 82, .34) 30%, rgba(30, 118, 58, .16) 62%, rgba(7, 28, 19, 0) 84%),
            linear-gradient(90deg, rgba(8, 24, 18, 0), rgba(21, 84, 45, .12) 34%, rgba(30, 155, 69, .32) 68%, rgba(64, 214, 82, .52));
        box-shadow:
            -10px 0 34px rgba(88, 223, 82, .24),
            inset 18px 0 34px rgba(159, 255, 151, .16),
            inset -22px 0 40px rgba(2, 14, 10, .18);
        mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .72) 22%, #000 36% 100%);
        transform: translateX(72%) scaleX(.96);
    }

    .mm-mobile-shell.is-excavator-work-left .mm-mobile-tab-panel[data-mm-mobile-panel="excavators"]::before,
    .mm-mobile-shell.is-excavator-work-right .mm-mobile-tab-panel[data-mm-mobile-panel="excavators"]::after {
        opacity: 1;
        transform: translateX(0) scaleX(1);
    }

    .mm-mobile-shell.is-excavator-work-ready .mm-mobile-tab-panel[data-mm-mobile-panel="excavators"]::before,
    .mm-mobile-shell.is-excavator-work-ready .mm-mobile-tab-panel[data-mm-mobile-panel="excavators"]::after {
        filter: brightness(1.28) saturate(1.18);
    }

    .mm-mobile-excavator-work-up-target {
        position: absolute;
        left: 50%;
        top: -54px;
        z-index: 120;
        display: grid;
        place-items: end center;
        width: min(92vw, 340px);
        height: 142px;
        padding-bottom: 28px;
        border-radius: 0 0 999px 999px / 0 0 100% 100%;
        color: rgba(222, 255, 226, .86);
        font-size: 22px;
        font-weight: 900;
        line-height: 1;
        letter-spacing: .035em;
        text-transform: uppercase;
        pointer-events: none;
        opacity: 0;
        background:
            radial-gradient(ellipse at 50% 100%, rgba(145, 255, 137, .5) 0%, rgba(88, 223, 82, .34) 34%, rgba(30, 118, 58, .17) 66%, rgba(7, 28, 19, 0) 88%),
            linear-gradient(180deg, rgba(12, 44, 29, .7), rgba(32, 155, 68, .36) 50%, rgba(8, 24, 18, 0));
        box-shadow:
            0 18px 42px rgba(88, 223, 82, .2),
            inset 0 -22px 38px rgba(159, 255, 151, .16),
            inset 0 22px 40px rgba(2, 14, 10, .16);
        mask-image: linear-gradient(180deg, #000 0 66%, rgba(0, 0, 0, .68) 82%, transparent 100%);
        text-shadow: 0 2px 16px rgba(0, 0, 0, .7), 0 0 18px rgba(88, 223, 82, .42);
        transform: translate(-50%, -72%) scaleY(.94);
        transition: opacity .16s ease, transform .18s ease, filter .18s ease;
    }

    .mm-mobile-shell.is-excavator-work-up .mm-mobile-excavator-work-up-target {
        opacity: 1;
        transform: translate(-50%, 0) scaleY(1);
    }

    .mm-mobile-shell.is-excavator-work-up.is-excavator-work-ready .mm-mobile-excavator-work-up-target {
        filter: brightness(1.2) saturate(1.16);
    }

    .mm-mobile-shell.is-excavator-work-up .mm-mobile-excavator-garage-grid {
        position: relative;
        z-index: 100;
        overflow: visible;
    }

    .mm-mobile-complex-detail,
    .mm-mobile-fill-screen {
        display: grid;
        grid-template-rows: auto auto auto auto minmax(0, 1fr) auto auto;
        gap: 8px;
        overflow: hidden;
    }

    .mm-mobile-fill-screen {
        position: relative;
        grid-template-rows: auto minmax(308px, 308px) minmax(0, 1fr);
        height: 100%;
    }

    .mm-mobile-fill-screen::before,
    .mm-mobile-fill-screen::after {
        position: absolute;
        left: 50%;
        z-index: 120;
        display: grid;
        pointer-events: none;
        opacity: 0;
        text-shadow: 0 2px 16px rgba(0, 0, 0, .7), 0 0 18px rgba(88, 223, 82, .42);
        transition: opacity .16s ease, transform .18s ease, filter .18s ease;
    }

    .mm-mobile-fill-screen::before {
        content: "";
        top: -84px;
        place-items: end center;
        width: min(92vw, 340px);
        height: 142px;
        padding-bottom: 28px;
        border-radius: 0 0 999px 999px / 0 0 100% 100%;
        color: rgba(222, 255, 226, .86);
        font-size: 22px;
        font-weight: 900;
        line-height: 1;
        letter-spacing: .035em;
        text-transform: uppercase;
        background:
            radial-gradient(ellipse at 50% 100%, rgba(145, 255, 137, .5) 0%, rgba(88, 223, 82, .34) 34%, rgba(30, 118, 58, .17) 66%, rgba(7, 28, 19, 0) 88%),
            linear-gradient(180deg, rgba(12, 44, 29, .7), rgba(32, 155, 68, .36) 50%, rgba(8, 24, 18, 0));
        box-shadow:
            0 18px 42px rgba(88, 223, 82, .2),
            inset 0 -22px 38px rgba(159, 255, 151, .16),
            inset 0 22px 40px rgba(2, 14, 10, .16);
        mask-image: linear-gradient(180deg, #000 0 66%, rgba(0, 0, 0, .68) 82%, transparent 100%);
        transform: translate(-50%, -72%) scaleY(.94);
    }

    .mm-mobile-fill-screen::after {
        content: "";
        bottom: -84px;
        place-items: start center;
        width: min(92vw, 340px);
        height: 142px;
        padding-top: 28px;
        border-radius: 999px 999px 0 0 / 100% 100% 0 0;
        color: rgba(222, 255, 226, .78);
        font-size: 20px;
        font-weight: 900;
        line-height: 1;
        letter-spacing: .035em;
        text-transform: uppercase;
        background:
            radial-gradient(ellipse at 50% 0%, rgba(145, 255, 137, .34) 0%, rgba(88, 223, 82, .24) 34%, rgba(30, 118, 58, .13) 66%, rgba(7, 28, 19, 0) 88%),
            linear-gradient(0deg, rgba(12, 44, 29, .56), rgba(32, 155, 68, .28) 50%, rgba(8, 24, 18, 0));
        box-shadow:
            0 -18px 42px rgba(88, 223, 82, .16),
            inset 0 22px 38px rgba(159, 255, 151, .12),
            inset 0 -22px 40px rgba(2, 14, 10, .16);
        mask-image: linear-gradient(0deg, #000 0 66%, rgba(0, 0, 0, .68) 82%, transparent 100%);
        transform: translate(-50%, 72%) scaleY(.94);
    }

    .mm-mobile-fill-screen.is-save-peeking::before,
    .mm-mobile-fill-screen.is-shake-peeking::after {
        opacity: 1 !important;
        transform: translate(-50%, 0) scaleY(1) !important;
    }

    .mm-mobile-fill-screen.is-save-ready::before,
    .mm-mobile-fill-screen.is-shake-ready::after {
        filter: brightness(1.2) saturate(1.16) !important;
    }

    .mm-mobile-fill-save-overlay,
    .mm-mobile-fill-shake-overlay {
        position: absolute;
        left: 50%;
        z-index: 140;
        display: grid;
        pointer-events: none;
        opacity: 0;
        text-shadow: 0 2px 16px rgba(0, 0, 0, .7), 0 0 18px rgba(88, 223, 82, .42);
        transition: opacity .16s ease, transform .18s ease, filter .18s ease;
    }

    .mm-mobile-fill-save-overlay {
        top: -84px;
        place-items: end center;
        width: min(92vw, 340px);
        height: 142px;
        padding-bottom: 28px;
        color: rgba(222, 255, 226, .86);
        font-size: 22px;
        font-weight: 900;
        line-height: 1;
        letter-spacing: .035em;
        text-transform: uppercase;
        transform: translate(-50%, -72%) scaleY(.94);
    }

    .mm-mobile-fill-shake-overlay {
        bottom: -84px;
        place-items: start center;
        width: min(92vw, 340px);
        height: 142px;
        padding-top: 28px;
        color: rgba(222, 255, 226, .78);
        font-size: 20px;
        font-weight: 900;
        line-height: 1;
        letter-spacing: .035em;
        text-transform: uppercase;
        transform: translate(-50%, 72%) scaleY(.94);
    }

    .mm-mobile-fill-screen.is-save-peeking .mm-mobile-fill-save-overlay,
    .mm-mobile-fill-screen.is-shake-peeking .mm-mobile-fill-shake-overlay {
        opacity: 1;
        transform: translate(-50%, 0) scaleY(1);
    }

    .mm-mobile-fill-screen.is-save-ready .mm-mobile-fill-save-overlay,
    .mm-mobile-fill-screen.is-shake-ready .mm-mobile-fill-shake-overlay {
        filter: brightness(1.2) saturate(1.16);
    }

    .mm-mobile-header {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 56px;
        align-items: center;
        gap: 10px;
        min-height: 62px;
        min-width: 0;
    }

    .mm-mobile-detail-header {
        display: grid;
        grid-template-columns: 34px minmax(0, 1fr) 56px;
        align-items: center;
        gap: 9px;
        min-width: 0;
    }

    .mm-mobile-back-button {
        position: relative;
        display: grid;
        place-items: center;
        width: 34px;
        height: 34px;
        border: 1px solid rgba(139, 159, 170, .45);
        border-radius: 8px;
        background: rgba(12, 26, 35, .72);
        color: #f1f7fb;
        font-size: 0;
        font-weight: 700;
        line-height: 1;
        box-shadow: inset 0 0 20px rgba(255, 255, 255, .03), 0 8px 18px rgba(0, 0, 0, .28);
        transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, background .16s ease;
    }

    .mm-mobile-back-button::before {
        content: "";
        position: absolute;
        left: 50%;
        top: 50%;
        display: block;
        width: 15px;
        height: 2px;
        border-radius: 999px;
        background: currentColor;
        transform: translate(-50%, -50%);
    }

    .mm-mobile-back-button::after {
        content: "";
        position: absolute;
        left: 50%;
        top: 50%;
        width: 8px;
        height: 8px;
        border-left: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: translate(calc(-50% - 4px), -50%) rotate(45deg);
        transform-origin: center;
    }

    .mm-mobile-detail-title {
        display: flex;
        align-items: center;
        gap: 6px;
        min-width: 0;
        overflow: hidden;
        transition: opacity .14s ease, filter .14s ease;
    }

    .mm-mobile-detail-title h1 {
        margin: 0;
        color: #f3f7f8;
        font-size: 27px;
        font-weight: 900;
        line-height: .9;
        letter-spacing: 0;
        text-transform: uppercase;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .mm-mobile-fill-title h1 {
        font-size: 22px;
    }

    .mm-mobile-fill-title {
        display: grid;
        align-content: center;
        justify-items: start;
        gap: 2px;
    }

    .mm-mobile-shell.is-fill-target-peeking .mm-mobile-title,
    .mm-mobile-shell.is-create-complex-peeking .mm-mobile-title,
    .mm-mobile-shell.is-excavator-garage-peeking .mm-mobile-title,
    .mm-mobile-shell.is-truck-garage-peeking .mm-mobile-title,
    .mm-mobile-shell.is-fill-target-peeking .mm-mobile-home > .mm-mobile-section-title,
    .mm-mobile-shell.is-create-complex-peeking .mm-mobile-home > .mm-mobile-section-title,
    .mm-mobile-shell.is-excavator-garage-peeking .mm-mobile-home > .mm-mobile-section-title,
    .mm-mobile-shell.is-truck-garage-peeking .mm-mobile-home > .mm-mobile-section-title,
    .mm-mobile-shell.is-excavator-work-left .mm-mobile-tab-panel[data-mm-mobile-panel="excavators"] .mm-mobile-detail-title,
    .mm-mobile-shell.is-excavator-work-right .mm-mobile-tab-panel[data-mm-mobile-panel="excavators"] .mm-mobile-detail-title,
    .mm-mobile-shell.is-excavator-work-up .mm-mobile-tab-panel[data-mm-mobile-panel="excavators"] .mm-mobile-detail-title,
    .mm-mobile-shell.is-excavator-work-left .mm-mobile-tab-panel[data-mm-mobile-panel="excavators"] .mm-mobile-section-title,
    .mm-mobile-shell.is-excavator-work-right .mm-mobile-tab-panel[data-mm-mobile-panel="excavators"] .mm-mobile-section-title,
    .mm-mobile-shell.is-excavator-work-up .mm-mobile-tab-panel[data-mm-mobile-panel="excavators"] .mm-mobile-section-title,
    .mm-mobile-fill-screen.is-save-peeking .mm-mobile-detail-title,
    .mm-mobile-fill-screen.is-shake-peeking .mm-mobile-detail-title,
    .mm-mobile-fill-screen.is-save-peeking .mm-mobile-section-title,
    .mm-mobile-fill-screen.is-shake-peeking .mm-mobile-section-title {
        opacity: .08;
        filter: blur(.2px);
    }

    .mm-mobile-shell.is-create-complex-peeking .mm-mobile-home .mm-mobile-shift-form,
    .mm-mobile-shell.is-create-complex-peeking .mm-mobile-home .mm-mobile-bottom-nav,
    .mm-mobile-fill-screen.is-shake-peeking .mm-mobile-fill-garage-zone {
        opacity: .14;
        filter: blur(.2px);
    }

    .mm-mobile-detail-alert {
        color: #ff514c;
        font-size: 15px;
        font-weight: 800;
        line-height: 1;
        letter-spacing: 0;
    }

    .mm-mobile-excavator-panel {
        position: relative;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-rows: 1fr auto;
        gap: 8px;
        min-height: 116px;
        padding: 12px;
        border: 1.5px solid #58df52;
        border-radius: 7px;
        background:
            radial-gradient(circle at 72% 45%, rgba(255, 255, 255, .07), transparent 48%),
            linear-gradient(145deg, rgba(20, 36, 44, .88), rgba(4, 14, 20, .92));
        overflow: hidden;
        box-shadow: inset 0 0 28px rgba(255, 255, 255, .025), 0 14px 24px rgba(0, 0, 0, .28);
    }

    .mm-mobile-complex-detail.status-risk .mm-mobile-excavator-panel {
        border-color: #ffd200;
        background:
            radial-gradient(circle at 72% 45%, rgba(255, 210, 0, .09), transparent 48%),
            linear-gradient(145deg, rgba(36, 34, 13, .68), rgba(4, 14, 20, .92));
    }

    .mm-mobile-complex-detail.status-danger .mm-mobile-excavator-panel {
        border-color: #ff4540;
        background:
            radial-gradient(circle at 72% 45%, rgba(255, 69, 64, .1), transparent 48%),
            linear-gradient(145deg, rgba(52, 19, 20, .68), rgba(4, 14, 20, .92));
    }

    .mm-mobile-excavator-panel > div {
        display: grid;
        gap: 7px;
        align-content: start;
        min-width: 0;
    }

    .mm-mobile-excavator-panel strong {
        color: #f3f7f8;
        font-size: 24px;
        font-weight: 900;
        line-height: 1;
    }

    .mm-mobile-excavator-panel span {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        width: max-content;
        max-width: 100%;
        color: rgba(213, 225, 231, .8);
        font-size: 13px;
        font-weight: 700;
        line-height: 1;
        text-transform: lowercase;
    }

    .mm-mobile-excavator-panel span::before {
        content: "";
        width: .8em;
        height: .8em;
        border-radius: 999px;
        background: #58df52;
        box-shadow: 0 0 10px #58df52;
    }

    .mm-mobile-complex-detail.status-risk .mm-mobile-excavator-panel span::before {
        background: #ffd200;
        box-shadow: 0 0 10px #ffd200;
    }

    .mm-mobile-complex-detail.status-danger .mm-mobile-excavator-panel span::before {
        background: #ff4540;
        box-shadow: 0 0 10px #ff4540;
    }

    .mm-mobile-excavator-panel img {
        width: 92px;
        height: 70px;
        object-fit: contain;
        opacity: .22;
        filter: grayscale(.25);
    }

    .mm-mobile-excavator-panel dl {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: minmax(0, .75fr) minmax(0, .75fr) minmax(0, 1.5fr);
        gap: 6px;
        margin: 0;
        padding-top: 8px;
        border-top: 1px solid rgba(166, 184, 192, .28);
    }

    .mm-mobile-excavator-panel dl div {
        display: flex;
        align-items: center;
        gap: 5px;
        min-width: 0;
        padding: 5px 6px;
        border: 1px solid rgba(139, 159, 170, .34);
        border-radius: 5px;
        background: rgba(5, 15, 21, .36);
    }

    .mm-mobile-excavator-panel dt,
    .mm-mobile-excavator-panel dd {
        margin: 0;
        min-width: 0;
        color: rgba(210, 222, 228, .78);
        font-size: 11px;
        font-weight: 700;
        line-height: 1;
        white-space: nowrap;
    }

    .mm-mobile-excavator-panel dd {
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .mm-mobile-detail-trucks {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-auto-rows: 92px;
        align-content: start;
        gap: 8px;
        min-height: 0;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        padding-right: 2px;
        scrollbar-width: thin;
        scrollbar-color: rgba(88, 223, 82, .55) rgba(13, 27, 36, .35);
    }

    .mm-mobile-excavator-garage-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: repeat(var(--mm-mobile-garage-rows, 3), minmax(0, 1fr));
        grid-auto-rows: minmax(0, 1fr);
        align-content: stretch;
    }

    .mm-mobile-excavator-garage-grid[data-mm-mobile-excavator-count="1"],
    .mm-mobile-excavator-garage-grid[data-mm-mobile-excavator-count="2"],
    .mm-mobile-excavator-garage-grid[data-mm-mobile-excavator-count="3"] {
        grid-template-columns: minmax(0, 1fr);
        grid-auto-rows: minmax(0, 1fr);
    }

    .mm-mobile-excavator-garage-grid[data-mm-mobile-excavator-count="1"] {
        grid-template-rows: minmax(0, 1fr);
    }

    .mm-mobile-excavator-garage-grid[data-mm-mobile-excavator-count="2"] {
        grid-template-rows: repeat(2, minmax(0, 1fr));
    }

    .mm-mobile-excavator-garage-grid[data-mm-mobile-excavator-count="3"] {
        grid-template-rows: repeat(3, minmax(0, 1fr));
    }

    .mm-mobile-excavator-garage-grid[data-mm-mobile-excavator-count="4"] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: repeat(2, minmax(0, 1fr));
        grid-auto-rows: minmax(0, 1fr);
    }

    .mm-mobile-fill-zone {
        --mm-mobile-fill-exit-y: 0px;
        position: relative;
        z-index: 90;
        display: grid;
        grid-template-columns: 48px minmax(0, 1fr);
        grid-template-rows: minmax(0, 1fr);
        align-items: stretch;
        gap: 8px;
        min-height: 0;
        padding: 6px;
        border: 1.5px solid #58df52;
        border-radius: 7px;
        background:
            radial-gradient(circle at 50% 58%, rgba(255, 255, 255, .08), transparent 48%),
            linear-gradient(145deg, rgba(20, 36, 44, .88), rgba(4, 14, 20, .92));
        box-shadow: inset 0 0 28px rgba(255, 255, 255, .025), 0 14px 24px rgba(0, 0, 0, .28);
        transform: translateY(var(--mm-mobile-fill-exit-y));
        touch-action: none;
        transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, filter .16s ease;
    }

    .mm-mobile-fill-zone.status-risk {
        border-color: #ffd200;
        background:
            radial-gradient(circle at 50% 58%, rgba(255, 210, 0, .09), transparent 50%),
            linear-gradient(145deg, rgba(36, 34, 13, .68), rgba(4, 14, 20, .92));
    }

    .mm-mobile-fill-zone.status-danger {
        border-color: #ff4540;
        background:
            radial-gradient(circle at 50% 58%, rgba(255, 69, 64, .1), transparent 50%),
            linear-gradient(145deg, rgba(52, 19, 20, .68), rgba(4, 14, 20, .92));
    }

    .mm-mobile-fill-zone.is-drop-ready,
    .mm-mobile-fill-zone.is-finish-ready {
        border-color: #58df52;
        box-shadow: inset 0 0 30px rgba(88, 223, 82, .14), 0 0 24px rgba(88, 223, 82, .32), 0 20px 32px rgba(0, 0, 0, .36);
        filter: brightness(1.1) saturate(1.08);
    }

    .mm-mobile-fill-screen.is-save-peeking .mm-mobile-fill-zone,
    .mm-mobile-fill-screen.is-shake-peeking .mm-mobile-fill-zone {
        transition: border-color .16s ease, box-shadow .16s ease, filter .16s ease;
    }

    .mm-mobile-fill-zone-head {
        display: grid;
        justify-items: center;
        align-content: center;
        gap: 7px;
        grid-column: 1;
        grid-row: 1;
        min-width: 0;
        min-height: 0;
        padding: 6px 2px;
        border-right: 1px solid rgba(88, 223, 82, .32);
    }

    .mm-mobile-fill-zone-head strong,
    .mm-mobile-fill-garage-rail strong {
        font-size: 18px;
        font-weight: 900;
        line-height: 1;
        letter-spacing: .035em;
        text-transform: uppercase;
        writing-mode: vertical-rl;
        transform: rotate(180deg);
        text-shadow: 0 2px 12px rgba(0, 0, 0, .58);
    }

    .mm-mobile-fill-zone-head strong {
        color: #f3f7f8;
    }

    .mm-mobile-fill-zone-head span {
        display: none;
    }

    .mm-mobile-fill-visual {
        display: none;
    }

    .mm-mobile-fill-visual img {
        width: 36px;
        max-height: 100%;
        object-fit: contain;
        filter: grayscale(.25);
    }

    .mm-mobile-fill-assigned {
        --mm-fill-assigned-columns: 3;
        --mm-fill-assigned-rows: 2;
        display: grid;
        grid-template-columns: repeat(var(--mm-fill-assigned-columns), minmax(0, 1fr));
        grid-template-rows: repeat(var(--mm-fill-assigned-rows), 92px);
        grid-auto-rows: 92px;
        justify-content: start;
        align-content: start;
        align-items: center;
        gap: 8px;
        grid-column: 2;
        grid-row: 1;
        min-width: 0;
        min-height: 0;
        height: 100%;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        touch-action: none;
        scrollbar-width: thin;
        scrollbar-color: rgba(88, 223, 82, .55) rgba(13, 27, 36, .35);
    }

    .mm-mobile-fill-assigned .mm-mobile-truck-mini {
        width: 100%;
        height: 92px;
        aspect-ratio: auto;
        justify-self: center;
        align-self: center;
        border-width: 1.5px;
        border-color: rgba(139, 159, 170, .72);
        border-radius: 7px;
        background:
            radial-gradient(circle at 50% 60%, rgba(255, 255, 255, .07), transparent 55%),
            rgba(8, 19, 27, .72);
        color: #f3f7f8;
        font-size: 30px;
        text-shadow: 0 2px 10px rgba(0, 0, 0, .55);
        cursor: grab;
        touch-action: none;
    }

    .mm-mobile-fill-assigned .mm-mobile-truck-mini::before {
        display: none;
    }

    .mm-mobile-fill-assigned .mm-mobile-truck-mini::after {
        content: "";
        position: absolute;
        top: 9px;
        left: 50%;
        width: min(48px, 58%);
        height: 25px;
        background: url("/static/img/equipment/truck-gray.png") center / contain no-repeat;
        opacity: .72;
        transform: translateX(-50%);
        pointer-events: none;
    }

    .mm-mobile-fill-assigned .mm-mobile-truck-mini.is-pulling-down {
        z-index: 3;
        opacity: .42;
        filter: brightness(1.18) saturate(1.12);
    }

    .mm-mobile-fill-assigned .mm-mobile-truck-mini.is-hold-pending,
    .mm-mobile-fill-assigned .mm-mobile-truck-mini.is-hold-ready {
        filter: brightness(1.12) saturate(1.08);
    }

    .mm-mobile-fill-assigned .mm-mobile-truck-mini.is-hold-ready {
        box-shadow: inset 0 0 24px rgba(139, 159, 170, .12), 0 0 18px rgba(139, 159, 170, .24);
    }

    .mm-mobile-fill-assigned .mm-mobile-truck-mini.is-release-ready,
    .mm-mobile-fill-assigned .mm-mobile-truck-mini.is-releasing {
        border-color: #58df52;
        box-shadow: inset 0 0 18px rgba(88, 223, 82, .14), 0 0 18px rgba(88, 223, 82, .28);
    }

    .mm-mobile-fill-screen.is-clearing-added .mm-mobile-fill-assigned .mm-mobile-truck-mini[data-mm-mobile-fill-added="true"] {
        transform: translateY(24px) scale(.84);
        opacity: .45;
    }

    .mm-mobile-fill-garage-zone {
        display: grid;
        grid-template-columns: 48px minmax(0, 1fr);
        gap: 8px;
        min-width: 0;
        min-height: 0;
        padding: 6px;
        overflow: hidden;
        transition: opacity .14s ease, filter .14s ease;
        border: 1.5px solid rgba(139, 159, 170, .72);
        border-radius: 7px;
        background:
            radial-gradient(circle at 50% 24%, rgba(255, 255, 255, .05), transparent 46%),
            linear-gradient(145deg, rgba(17, 29, 36, .72), rgba(4, 14, 20, .9));
        box-shadow: inset 0 0 24px rgba(255, 255, 255, .02), 0 14px 24px rgba(0, 0, 0, .22);
    }

    .mm-mobile-fill-garage-rail {
        display: grid;
        place-items: center;
        min-width: 0;
        min-height: 0;
        border-right: 1px solid rgba(139, 159, 170, .34);
        background: rgba(3, 15, 15, .22);
    }

    .mm-mobile-fill-garage-rail strong {
        color: #ff4540;
    }

    .mm-mobile-fill-truck-garage {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-auto-rows: 92px;
        align-content: start;
        gap: 8px;
        min-height: 0;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        padding-right: 2px;
        scrollbar-width: thin;
        scrollbar-color: rgba(88, 223, 82, .55) rgba(13, 27, 36, .35);
    }

    .mm-mobile-fill-truck {
        cursor: grab;
        touch-action: pan-y;
    }

    .mm-mobile-fill-truck.is-hold-pending,
    .mm-mobile-fill-truck.is-hold-ready {
        filter: brightness(1.12) saturate(1.08);
    }

    .mm-mobile-fill-truck.is-hold-ready {
        box-shadow: inset 0 0 24px rgba(88, 223, 82, .1), 0 0 18px rgba(88, 223, 82, .22);
    }

    .mm-mobile-fill-truck.is-dragging {
        opacity: .42;
        filter: brightness(1.2);
    }

    .mm-mobile-fill-truck.is-assigned {
        pointer-events: none;
        opacity: 0;
        transform: scale(.72);
    }

    .mm-mobile-fill-truck-ghost {
        position: fixed !important;
        z-index: 2147483600;
        margin: 0;
        opacity: 1 !important;
        pointer-events: none;
        transform: translate(-50%, -50%) scale(1.16) rotate(var(--mm-mobile-fill-ghost-rotate, -4deg));
        box-shadow: 0 18px 30px rgba(0, 0, 0, .54), 0 0 24px rgba(88, 223, 82, .28);
        filter: brightness(1.34) saturate(1.22) drop-shadow(0 16px 22px rgba(0, 0, 0, .46));
    }

    .mm-mobile-fill-assigned-truck-ghost {
        display: grid;
        place-items: center;
        border-width: 1.5px;
        border-color: rgba(139, 159, 170, .82);
        border-radius: 7px;
        background:
            radial-gradient(circle at 50% 60%, rgba(255, 255, 255, .08), transparent 55%),
            rgba(8, 19, 27, .86);
        color: #f3f7f8;
        font-size: 30px;
        font-weight: 900;
        text-shadow: 0 2px 10px rgba(0, 0, 0, .55);
        transform: translate(-50%, -50%) scale(1.12) rotate(var(--mm-mobile-fill-ghost-rotate, -4deg));
    }

    .mm-mobile-fill-assigned-truck-ghost::before {
        display: none;
    }

    .mm-mobile-fill-assigned-truck-ghost::after {
        content: "";
        position: absolute;
        top: 9px;
        left: 50%;
        width: min(48px, 58%);
        height: 25px;
        background: url("/static/img/equipment/truck-gray.png") center / contain no-repeat;
        opacity: .72;
        transform: translateX(-50%);
        pointer-events: none;
    }

    .mm-mobile-fill-assigned-truck-ghost.is-dropping {
        opacity: 0 !important;
        transform: translate(-50%, -50%) scale(.88) rotate(var(--mm-mobile-fill-ghost-rotate, -4deg));
        transition: opacity .14s ease, transform .14s ease;
    }

    .mm-mobile-detail-trucks::-webkit-scrollbar {
        width: 3px;
    }

    .mm-mobile-detail-trucks::-webkit-scrollbar-track {
        background: rgba(13, 27, 36, .35);
        border-radius: 999px;
    }

    .mm-mobile-detail-trucks::-webkit-scrollbar-thumb {
        background: rgba(88, 223, 82, .55);
        border-radius: 999px;
    }

    .mm-mobile-truck-card {
        position: relative;
        display: grid;
        grid-template-rows: 24px 1fr 8px;
        place-items: center;
        min-width: 0;
        min-height: 0;
        padding: 7px 5px;
        border: 1.5px solid rgba(139, 159, 170, .72);
        border-radius: 7px;
        background:
            radial-gradient(circle at 50% 60%, rgba(255, 255, 255, .07), transparent 55%),
            rgba(8, 19, 27, .72);
        box-shadow: inset 0 0 18px rgba(255, 255, 255, .025), 0 10px 18px rgba(0, 0, 0, .22);
        transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, background .16s ease;
    }

    .mm-mobile-truck-card.status-green {
        border-color: #58df52;
        background: radial-gradient(circle at 50% 60%, rgba(88, 223, 82, .1), transparent 55%), rgba(8, 19, 27, .72);
    }

    .mm-mobile-truck-card.status-yellow {
        border-color: #ffd200;
        background: radial-gradient(circle at 50% 60%, rgba(255, 210, 0, .12), transparent 55%), rgba(8, 19, 27, .72);
    }

    .mm-mobile-truck-card.status-red {
        border-color: #ff4540;
        background: radial-gradient(circle at 50% 60%, rgba(255, 69, 64, .14), transparent 55%), rgba(8, 19, 27, .72);
    }

    .mm-mobile-truck-card img {
        width: 48px;
        height: 24px;
        object-fit: contain;
        opacity: .76;
    }

    .mm-mobile-truck-card strong {
        color: #f3f7f8;
        font-size: 30px;
        font-weight: 900;
        line-height: .9;
        text-shadow: 0 2px 10px rgba(0, 0, 0, .55);
    }

    .mm-mobile-truck-card > span {
        width: 8px;
        height: 8px;
        border-radius: 999px;
        background: rgba(160, 176, 185, .78);
    }

    .mm-mobile-truck-card.status-green > span {
        background: #58df52;
        box-shadow: 0 0 10px #58df52;
    }

    .mm-mobile-truck-card.status-yellow > span {
        background: #ffd200;
        box-shadow: 0 0 10px #ffd200;
    }

    .mm-mobile-truck-card.status-red > span {
        background: #ff4540;
        box-shadow: 0 0 10px #ff4540;
    }

    .mm-mobile-detail-empty {
        grid-column: 1 / -1;
        display: grid;
        place-items: center;
        min-height: 96px;
        border: 1px solid rgba(139, 159, 170, .34);
        border-radius: 7px;
        color: rgba(190, 202, 209, .72);
        font-size: 14px;
        font-weight: 800;
        text-transform: lowercase;
    }

    .mm-mobile-detail-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .mm-mobile-report-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: minmax(118px, 1fr);
        gap: 8px;
        min-height: 0;
        overflow: hidden;
    }

    .mm-mobile-report-grid article {
        display: grid;
        align-content: center;
        justify-items: center;
        gap: 10px;
        min-width: 0;
        border: 1.5px solid rgba(139, 159, 170, .52);
        border-radius: 7px;
        background:
            radial-gradient(circle at 50% 58%, rgba(88, 223, 82, .08), transparent 52%),
            rgba(8, 19, 27, .72);
        box-shadow: inset 0 0 22px rgba(255, 255, 255, .025), 0 12px 22px rgba(0, 0, 0, .24);
    }

    .mm-mobile-report-grid span {
        color: rgba(180, 194, 201, .78);
        font-size: 13px;
        font-weight: 900;
        line-height: 1;
        text-transform: uppercase;
    }

    .mm-mobile-report-grid strong {
        max-width: 100%;
        overflow: hidden;
        color: #f3f7f8;
        font-size: 34px;
        font-weight: 900;
        line-height: .92;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mm-mobile-back-button:active,
    .mm-mobile-truck-card:active {
        transform: scale(.97);
    }

    .mm-mobile-title {
        display: grid;
        align-content: center;
        gap: 4px;
        min-width: 0;
        height: 100%;
        padding-top: 0;
        transition: opacity .14s ease, filter .14s ease;
    }

    .mm-mobile-title span {
        color: rgba(180, 194, 201, .78);
        font-size: 13px;
        font-weight: 900;
        line-height: 1;
        text-transform: uppercase;
    }

    .mm-mobile-title h1 {
        margin: 0;
        color: #f3f7f8;
        max-width: 100%;
        overflow: hidden;
        font-size: 24px;
        font-weight: 900;
        line-height: .88;
        letter-spacing: 0;
        text-transform: uppercase;
        text-shadow: 0 2px 10px rgba(0, 0, 0, .55);
        white-space: nowrap;
    }

    .mm-mobile-shell.is-shift-open .mm-mobile-title h1,
    .mm-mobile-shell.is-shift-open .mm-mobile-detail-title h1 {
        color: #dfffe1;
        text-shadow:
            0 2px 10px rgba(0, 0, 0, .55),
            0 0 14px rgba(88, 223, 82, .46);
    }

    .mm-mobile-header-actions {
        display: grid;
        align-items: center;
        justify-items: end;
        min-width: 0;
    }

    .mm-mobile-plan-ring {
        display: inline-grid;
        place-items: center;
        border: 1px solid rgba(139, 159, 170, .45);
        background: rgba(12, 26, 35, .72);
        color: #f1f7fb;
        box-shadow: inset 0 0 20px rgba(255, 255, 255, .03), 0 8px 18px rgba(0, 0, 0, .28);
        transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, background .16s ease;
    }

    .mm-mobile-plan-ring {
        width: 56px;
        height: 56px;
        border-color: rgba(87, 223, 81, .86);
        border-radius: 999px;
        color: #eaffec;
        background:
            radial-gradient(circle at center, rgba(9, 21, 28, .96) 0 57%, transparent 58%),
            conic-gradient(#58df52 0 var(--mm-mobile-plan-progress, 0%), rgba(54, 82, 91, .48) var(--mm-mobile-plan-progress, 0%) 100%);
        font-size: 16px;
        font-weight: 900;
        letter-spacing: 0;
        line-height: 1;
        font-variant-numeric: tabular-nums;
        box-shadow:
            inset 0 0 18px rgba(88, 223, 82, .08),
            0 0 18px rgba(88, 223, 82, .24),
            0 8px 18px rgba(0, 0, 0, .32);
    }

    .mm-mobile-shell.is-shift-closed .mm-mobile-plan-ring {
        border-color: rgba(139, 159, 170, .5);
        color: #95a4ab;
        background:
            radial-gradient(circle at center, rgba(9, 21, 28, .96) 0 57%, transparent 58%),
            conic-gradient(rgba(139, 159, 170, .42) 0 var(--mm-mobile-plan-progress, 0%), rgba(54, 82, 91, .32) var(--mm-mobile-plan-progress, 0%) 100%);
        box-shadow: inset 0 0 18px rgba(255, 255, 255, .025), 0 8px 18px rgba(0, 0, 0, .28);
    }

    .mm-mobile-shell.is-shift-blocked .mm-mobile-plan-ring {
        border-color: rgba(255, 69, 64, .88);
        color: #ffe5e3;
        background:
            radial-gradient(circle at center, rgba(21, 9, 12, .96) 0 57%, transparent 58%),
            conic-gradient(#ff4540 0 var(--mm-mobile-plan-progress, 0%), rgba(91, 54, 54, .5) var(--mm-mobile-plan-progress, 0%) 100%);
        box-shadow:
            inset 0 0 18px rgba(255, 69, 64, .1),
            0 0 18px rgba(255, 69, 64, .24),
            0 8px 18px rgba(0, 0, 0, .32);
    }

    .mm-mobile-shell.is-sync-pending .mm-mobile-plan-ring,
    .mm-mobile-shell.is-shift-open.is-sync-pending .mm-mobile-plan-ring,
    .mm-mobile-shell.is-shift-blocked.is-sync-pending .mm-mobile-plan-ring,
    .mm-mobile-shell.is-shift-closed.is-sync-pending .mm-mobile-plan-ring {
        border: 1px solid rgba(255, 210, 0, .9) !important;
        border-color: rgba(255, 210, 0, .9) !important;
        color: #fff4b8 !important;
        background:
            radial-gradient(circle at center, rgba(24, 19, 7, .97) 0 57%, transparent 58%),
            conic-gradient(#ffd200 0 var(--mm-mobile-plan-progress, 0%), rgba(92, 78, 38, .55) var(--mm-mobile-plan-progress, 0%) 100%) !important;
        box-shadow:
            inset 0 0 18px rgba(255, 210, 0, .12),
            0 0 18px rgba(255, 210, 0, .26),
            0 8px 18px rgba(0, 0, 0, .32) !important;
    }

    .mm-mobile-shift-button:active,
    .mm-mobile-complex-card:active,
    .mm-mobile-garage-excavator:active,
    .mm-mobile-nav-item:active {
        transform: scale(.97);
    }

    .mm-mobile-garage-excavator.is-work-swiping:active,
    .mm-mobile-garage-excavator.is-work-ready:active,
    .mm-mobile-garage-excavator.is-activating:active {
        transform: translate(var(--mm-excavator-work-swipe-x, 0), var(--mm-excavator-work-swipe-y, 0));
    }

    .mm-mobile-section-title {
        display: grid;
        grid-template-columns: auto 1fr;
        align-items: center;
        gap: 10px;
        min-width: 0;
        transition: opacity .14s ease, filter .14s ease;
    }

    .mm-mobile-section-title span {
        color: rgba(180, 194, 201, .78);
        font-size: 16px;
        font-weight: 900;
        letter-spacing: 0;
        text-transform: uppercase;
    }

    .mm-mobile-section-title::after {
        content: "";
        height: 1px;
        background: rgba(158, 177, 187, .35);
    }

    .mm-mobile-complex-grid {
        position: relative;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: repeat(3, minmax(0, 1fr));
        grid-auto-rows: minmax(124px, 1fr);
        gap: 6px;
        min-height: 0;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        padding-right: 0;
        scrollbar-width: thin;
        scrollbar-color: rgba(88, 223, 82, .55) rgba(13, 27, 36, .35);
    }

    .mm-mobile-complex-grid[data-mm-mobile-active-complex-count="1"],
    .mm-mobile-complex-grid[data-mm-mobile-active-complex-count="2"],
    .mm-mobile-complex-grid[data-mm-mobile-active-complex-count="3"] {
        grid-template-columns: minmax(0, 1fr);
        grid-auto-rows: minmax(0, 1fr);
    }

    .mm-mobile-complex-grid[data-mm-mobile-active-complex-count="0"] {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: minmax(0, 1fr);
        grid-auto-rows: minmax(0, 1fr);
    }

    .mm-mobile-complex-grid[data-mm-mobile-active-complex-count="1"] {
        grid-template-rows: minmax(0, 1fr);
    }

    .mm-mobile-complex-grid[data-mm-mobile-active-complex-count="2"] {
        grid-template-rows: repeat(2, minmax(0, 1fr));
    }

    .mm-mobile-complex-grid[data-mm-mobile-active-complex-count="3"] {
        grid-template-rows: repeat(3, minmax(0, 1fr));
    }

    .mm-mobile-complex-grid[data-mm-mobile-active-complex-count="4"] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: repeat(2, minmax(0, 1fr));
        grid-auto-rows: minmax(0, 1fr);
    }

    .mm-mobile-complex-grid::before,
    .mm-mobile-complex-grid::after {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        z-index: 80;
        display: block;
        width: 172px;
        pointer-events: none;
        opacity: 0;
        filter: saturate(1.08);
        mask-image: linear-gradient(90deg, #000 0 64%, rgba(0, 0, 0, .72) 78%, transparent 100%);
        transition: opacity .16s ease, transform .18s ease, filter .16s ease;
    }

    .mm-mobile-complex-grid::before {
        left: -74px;
        border-radius: 0 999px 999px 0 / 0 999px 999px 0;
        background:
            url("/static/img/equipment/excavator-gray.png") 68% 50% / 64px auto no-repeat,
            radial-gradient(ellipse at 0% 50%, rgba(255, 166, 91, .44) 0%, rgba(255, 91, 65, .34) 30%, rgba(132, 39, 32, .16) 62%, rgba(28, 8, 8, 0) 84%),
            linear-gradient(90deg, rgba(194, 66, 45, .52), rgba(91, 28, 26, .26) 42%, rgba(28, 8, 8, .08) 68%, rgba(28, 8, 8, 0));
        box-shadow:
            10px 0 34px rgba(255, 91, 65, .24),
            inset -18px 0 34px rgba(255, 185, 112, .15),
            inset 22px 0 40px rgba(14, 2, 2, .2);
        transform: translateX(-72%) scaleX(.96);
    }

    .mm-mobile-complex-grid::after {
        right: -74px;
        border-radius: 999px 0 0 999px / 999px 0 0 999px;
        mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .72) 22%, #000 36% 100%);
        background:
            url("/static/img/equipment/truck-gray.png") 32% 50% / 58px auto no-repeat,
            radial-gradient(ellipse at 100% 50%, rgba(145, 255, 137, .46) 0%, rgba(88, 223, 82, .34) 30%, rgba(30, 118, 58, .16) 62%, rgba(7, 28, 19, 0) 84%),
            linear-gradient(90deg, rgba(8, 24, 18, 0), rgba(21, 84, 45, .12) 34%, rgba(30, 155, 69, .32) 68%, rgba(64, 214, 82, .52));
        box-shadow:
            -10px 0 34px rgba(88, 223, 82, .24),
            inset 18px 0 34px rgba(159, 255, 151, .16),
            inset -22px 0 40px rgba(2, 14, 10, .18);
        transform: translateX(72%) scaleX(.96);
    }

    body.mining-master-mobile-screen .mm-mobile-shell.is-excavator-garage-peeking .mm-mobile-complex-grid::before {
        opacity: 1;
        transform: translateX(0) scaleX(1);
    }

    body.mining-master-mobile-screen .mm-mobile-shell.is-truck-garage-peeking .mm-mobile-complex-grid::after {
        opacity: 1;
        transform: translateX(0) scaleX(1);
    }

    body.mining-master-mobile-screen .mm-mobile-shell.is-truck-garage-ready .mm-mobile-complex-grid::after {
        filter: brightness(1.22) saturate(1.18);
    }

.mm-mobile-complex-card {
        --mm-mobile-swipe-x: 0px;
        --mm-mobile-truck-swipe-x: 0px;
        --mm-mobile-fill-swipe-y: 0px;
        position: relative;
        touch-action: none;
        display: grid;
        grid-template-rows: auto minmax(0, 1fr);
        gap: 4px;
        min-width: 0;
        min-height: 0;
        padding: 5px;
        border: 1.5px solid #58df52;
        border-radius: 7px;
        background:
            radial-gradient(circle at 50% 58%, rgba(255, 255, 255, .08), transparent 48%),
            linear-gradient(145deg, rgba(20, 36, 44, .88), rgba(4, 14, 20, .92));
        box-shadow: inset 0 0 28px rgba(255, 255, 255, .025), 0 14px 24px rgba(0, 0, 0, .28);
        cursor: pointer;
        touch-action: none;
        transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
    }

    .mm-mobile-complex-card[hidden] {
        display: none !important;
    }

    .mm-mobile-complex-grid[data-mm-mobile-active-complex-count="0"] .mm-mobile-complex-card.status-empty:not(.is-primary-empty) {
        display: none !important;
    }

    .mm-mobile-complex-card > * {
        position: relative;
        z-index: 1;
    }

    .mm-mobile-complex-card::before {
        content: "";
        position: absolute;
        left: -28px;
        top: 50%;
        z-index: 0;
        display: grid;
        place-items: center;
        width: 82px;
        height: 126px;
        border: 1.5px solid rgba(255, 69, 64, .75);
        border-left: 0;
        border-radius: 0 999px 999px 0;
        background:
            url("/static/img/equipment/excavator-gray.png") 58% 50% / 48px auto no-repeat,
            radial-gradient(circle at 64% 50%, rgba(255, 69, 64, .22), transparent 58%),
            rgba(94, 16, 18, .92);
        opacity: 0;
        pointer-events: none;
        transform: translate(-105%, -50%);
        transition: opacity .16s ease, filter .16s ease, border-color .16s ease;
    }

    .mm-mobile-complex-card::after {
        content: "";
        position: absolute;
        right: -28px;
        top: 50%;
        z-index: 0;
        display: grid;
        place-items: center;
        width: 82px;
        height: 126px;
        border: 1.5px solid rgba(88, 223, 82, .72);
        border-right: 0;
        border-radius: 999px 0 0 999px;
        background:
            url("/static/img/equipment/truck-gray.png") 42% 50% / 50px auto no-repeat,
            radial-gradient(circle at 36% 50%, rgba(88, 223, 82, .22), transparent 58%),
            rgba(15, 65, 36, .9);
        opacity: 0;
        pointer-events: none;
        transform: translate(105%, -50%);
        transition: opacity .16s ease, filter .16s ease, border-color .16s ease;
    }

    .mm-mobile-complex-card::before,
    .mm-mobile-complex-card::after {
        display: none;
    }

    .mm-mobile-complex-card.is-swiping {
        transition: box-shadow .16s ease, filter .16s ease;
        z-index: 20;
    }

    .mm-mobile-complex-card.is-swiping::before,
    .mm-mobile-complex-card.is-releasing::before {
        opacity: 1;
    }

    .mm-mobile-complex-card.is-swipe-ready::before,
    .mm-mobile-complex-card.is-releasing::before {
        border-color: #ff4540;
        filter: brightness(1.18);
    }

    .mm-mobile-complex-card.is-truck-swiping {
        z-index: 20;
    }

    .mm-mobile-complex-card.is-mobile-truck-drop-target {
        border-color: #58df52;
        box-shadow: inset 0 0 34px rgba(88, 223, 82, .16), 0 0 26px rgba(88, 223, 82, .32), 0 18px 28px rgba(0, 0, 0, .34);
        filter: brightness(1.12) saturate(1.08);
        z-index: 22;
    }

    .mm-mobile-complex-card.is-fill-swiping,
    .mm-mobile-complex-card.is-create-swiping {
        transform: translateY(var(--mm-mobile-fill-swipe-y));
        transition: box-shadow .16s ease, filter .16s ease;
        z-index: 20;
    }

    .mm-mobile-complex-card.is-create-ready {
        box-shadow: inset 0 0 34px rgba(88, 223, 82, .16), 0 0 26px rgba(88, 223, 82, .28);
        filter: brightness(1.1) saturate(1.08);
    }

    .mm-mobile-complex-card.is-truck-swiping::after,
    .mm-mobile-complex-card.is-releasing-trucks::after {
        opacity: 1;
    }

    .mm-mobile-complex-card.is-truck-swipe-ready::after,
    .mm-mobile-complex-card.is-releasing-trucks::after {
        border-color: #58df52;
        filter: brightness(1.18);
    }

    .mm-mobile-complex-card.is-releasing,
    .mm-mobile-complex-card.is-releasing-trucks {
        pointer-events: none;
        opacity: .72;
    }

    .mm-mobile-complex-card.status-risk {
        border-color: #ffd200;
        background:
            radial-gradient(circle at 50% 58%, rgba(255, 210, 0, .09), transparent 50%),
            linear-gradient(145deg, rgba(36, 34, 13, .68), rgba(4, 14, 20, .92));
        animation: dispatcher-complex-warning-pulse 1s ease-in-out infinite;
    }

    .mm-mobile-complex-card.status-danger {
        border-color: #ff4540;
        background:
            radial-gradient(circle at 50% 58%, rgba(255, 69, 64, .1), transparent 50%),
            linear-gradient(145deg, rgba(52, 19, 20, .68), rgba(4, 14, 20, .92));
        animation: dispatcher-complex-danger-pulse 1s ease-in-out infinite;
    }

    .mm-mobile-complex-card.status-empty {
        display: grid;
        grid-template-rows: 1fr;
        place-items: center;
        border-color: rgba(139, 159, 170, .38);
        background:
            radial-gradient(circle at 50% 52%, rgba(139, 159, 170, .08), transparent 56%),
            linear-gradient(145deg, rgba(20, 34, 42, .46), rgba(4, 14, 20, .78));
        box-shadow: inset 0 0 22px rgba(255, 255, 255, .018), 0 10px 18px rgba(0, 0, 0, .2);
        cursor: grab;
        filter: saturate(.62);
        opacity: .74;
        pointer-events: auto;
        touch-action: none;
    }

    .mm-mobile-complex-grid[data-mm-mobile-active-complex-count="0"] .mm-mobile-complex-card.status-empty {
        min-height: 0;
    }

    .mm-mobile-garage-excavator {
        position: relative;
        display: grid;
        grid-template-rows: auto minmax(0, 1fr);
        align-items: center;
        justify-items: center;
        min-width: 0;
        min-height: 0;
        padding: 8px;
        border: 1.5px solid rgba(139, 159, 170, .58);
        border-radius: 7px;
        background:
            radial-gradient(circle at 50% 58%, rgba(255, 255, 255, .06), transparent 50%),
            linear-gradient(145deg, rgba(18, 31, 39, .74), rgba(4, 14, 20, .9));
        color: #f3f7f8;
        cursor: pointer;
        box-shadow: inset 0 0 28px rgba(255, 255, 255, .025), 0 14px 24px rgba(0, 0, 0, .24);
        touch-action: none;
        transform: translate(var(--mm-excavator-work-swipe-x, 0), var(--mm-excavator-work-swipe-y, 0));
        transition: transform .16s ease, box-shadow .16s ease, filter .16s ease, opacity .16s ease;
        z-index: 1;
    }

    .mm-mobile-garage-excavator.is-work-swiping,
    .mm-mobile-garage-excavator.is-work-ready,
    .mm-mobile-garage-excavator.is-activating {
        z-index: 6;
    }

    .mm-mobile-garage-excavator.is-work-swiping {
        transition: box-shadow .16s ease, filter .16s ease, opacity .16s ease;
    }

    .mm-mobile-garage-excavator.is-work-ready {
        border-color: #58df52;
        box-shadow: inset 0 0 30px rgba(88, 223, 82, .12), 0 0 24px rgba(88, 223, 82, .32);
        filter: brightness(1.12) saturate(1.08);
    }

    .mm-mobile-garage-excavator span {
        justify-self: start;
        color: #f3f7f8;
        font-size: 28px;
        font-weight: 900;
        line-height: .86;
        text-transform: uppercase;
    }

    .mm-mobile-garage-excavator img {
        width: min(50%, 72px);
        max-height: 100%;
        object-fit: contain;
        opacity: .58;
        filter: grayscale(.35);
    }

    .mm-mobile-excavator-garage-grid .mm-mobile-garage-excavator img {
        width: min(58%, 78px);
    }

    .mm-mobile-garage-excavator.status-red {
        border-color: #ff4540;
        background:
            radial-gradient(circle at 50% 58%, rgba(255, 69, 64, .1), transparent 50%),
            linear-gradient(145deg, rgba(52, 19, 20, .64), rgba(4, 14, 20, .9));
    }

    .mm-mobile-garage-excavator.status-green {
        border-color: rgba(88, 223, 82, .62);
    }

    .mm-mobile-garage-slot.status-empty {
        min-width: 0;
        min-height: 0;
        border: 1.5px solid rgba(139, 159, 170, .38);
        border-radius: 7px;
        background:
            radial-gradient(circle at 50% 52%, rgba(139, 159, 170, .08), transparent 56%),
            linear-gradient(145deg, rgba(20, 34, 42, .46), rgba(4, 14, 20, .78));
        box-shadow: inset 0 0 22px rgba(255, 255, 255, .018), 0 10px 18px rgba(0, 0, 0, .2);
        opacity: .74;
        pointer-events: none;
    }

    .mm-mobile-garage-excavator.is-activating,
    .mm-mobile-garage-excavator:disabled {
        pointer-events: none;
        opacity: .62;
        filter: brightness(1.18);
    }

    .mm-mobile-garage-excavator.is-removing {
        opacity: 0;
        transform: translate(var(--mm-excavator-work-exit-x, 0), var(--mm-excavator-work-exit-y, 0)) scale(.78);
    }

    .mm-mobile-complex-grid::-webkit-scrollbar {
        width: 3px;
    }

    .mm-mobile-complex-grid::-webkit-scrollbar-track {
        background: rgba(13, 27, 36, .35);
        border-radius: 999px;
    }

    .mm-mobile-complex-grid::-webkit-scrollbar-thumb {
        background: rgba(88, 223, 82, .55);
        border-radius: 999px;
    }

    .mm-mobile-complex-card-head {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 6px;
        min-width: 0;
        border-bottom: 1px solid rgba(166, 184, 192, .35);
        padding-bottom: 5px;
    }

    .mm-mobile-complex-card h2 {
        margin: 0;
        color: #f3f7f8;
        font-size: 28px;
        font-weight: 900;
        line-height: .86;
        letter-spacing: 0;
        text-transform: uppercase;
        white-space: nowrap;
    }

    .mm-mobile-status-chip {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        max-width: 56%;
        min-height: 20px;
        padding: 0 4px;
        border: 1px solid rgba(149, 167, 176, .42);
        border-radius: 5px;
        color: #dbe6eb;
        background: rgba(10, 19, 26, .58);
        font-size: 9px;
        font-weight: 700;
        line-height: 1;
        text-transform: lowercase;
        white-space: nowrap;
    }

    .mm-mobile-status-chip::before {
        content: "";
        flex: 0 0 auto;
        width: .75em;
        height: .75em;
        border-radius: 999px;
        background: #58df52;
        box-shadow: 0 0 10px #58df52;
    }

    .status-risk .mm-mobile-status-chip::before {
        background: #ffd200;
        box-shadow: 0 0 10px #ffd200;
    }

    .status-danger .mm-mobile-status-chip::before {
        background: #ff4540;
        box-shadow: 0 0 10px #ff4540;
    }

    .mm-mobile-complex-visual {
        position: absolute;
        inset: 36px 6px 6px;
        z-index: 0;
        display: grid;
        place-items: center;
        opacity: .16;
        pointer-events: auto;
        transform: translateX(var(--mm-mobile-swipe-x));
        transition: transform .16s ease, filter .16s ease;
    }

    .mm-mobile-complex-card.is-swiping .mm-mobile-complex-visual {
        transition: filter .16s ease;
    }

    .mm-mobile-complex-card.is-swipe-ready .mm-mobile-complex-visual,
    .mm-mobile-complex-card.is-releasing .mm-mobile-complex-visual {
        filter: brightness(1.18) saturate(1.15);
    }

    .mm-mobile-complex-card.is-releasing .mm-mobile-complex-visual {
        transform: translateX(-115%);
    }

    .mm-mobile-complex-visual img {
        width: min(34%, 54px);
        max-height: 100%;
        object-fit: contain;
        filter: grayscale(.25);
    }

    .mm-mobile-truck-preview {
        --mm-mobile-preview-columns: 1;
        --mm-mobile-preview-tile: 44px;
        --mm-mobile-preview-gap: 5px;
        --mm-mobile-preview-font: 17px;
        display: grid;
        grid-template-columns: repeat(var(--mm-mobile-preview-columns), var(--mm-mobile-preview-tile));
        grid-auto-rows: var(--mm-mobile-preview-tile);
        gap: var(--mm-mobile-preview-gap);
        min-width: 0;
        min-height: 0;
        height: 100%;
        align-content: start;
        align-items: stretch;
        justify-content: center;
        z-index: 2;
        border-radius: 5px;
        background: rgba(4, 14, 20, .2);
        box-shadow: inset 0 0 0 1px rgba(139, 159, 170, .54);
        transform: translateX(var(--mm-mobile-truck-swipe-x));
        transition: transform .16s ease, filter .16s ease;
    }

    .mm-mobile-truck-preview[data-mm-mobile-truck-count="0"] {
        --mm-mobile-preview-columns: 1;
        --mm-mobile-preview-tile: 100%;
        --mm-mobile-preview-gap: 0;
    }

    .mm-mobile-complex-card.is-truck-swiping .mm-mobile-truck-preview {
        transition: filter .16s ease;
    }

    .mm-mobile-complex-card.is-truck-swipe-ready .mm-mobile-truck-preview,
    .mm-mobile-complex-card.is-releasing-trucks .mm-mobile-truck-preview {
        filter: brightness(1.18) saturate(1.15);
    }

    .mm-mobile-complex-card.is-releasing .mm-mobile-truck-preview {
        filter: brightness(1.12) saturate(1.1);
    }

    .mm-mobile-complex-card.is-fill-swiping .mm-mobile-complex-visual {
        transform: translateX(0);
    }

    .mm-mobile-complex-card.is-fill-ready {
        box-shadow: inset 0 0 34px rgba(88, 223, 82, .16), 0 0 26px rgba(88, 223, 82, .28);
    }

    .mm-mobile-complex-card.is-fill-ready .mm-mobile-complex-visual {
        filter: brightness(1.22) saturate(1.18);
    }

    .mm-mobile-truck-mini,
    .mm-mobile-truck-empty {
        --mm-mobile-truck-accent: #58df52;
        position: relative;
        display: grid;
        place-items: center;
        width: var(--mm-mobile-preview-tile);
        height: var(--mm-mobile-preview-tile);
        min-width: 0;
        min-height: 0;
        aspect-ratio: 1 / 1;
        border: 1px solid var(--mm-mobile-truck-accent);
        border-radius: 5px;
        color: #eef5f8;
        background: rgba(5, 15, 21, .62);
        font-size: var(--mm-mobile-preview-font);
        font-weight: 900;
        line-height: 1;
        box-shadow: inset 0 0 14px rgba(255, 255, 255, .025);
        overflow: hidden;
        touch-action: none;
        transition: opacity .14s ease, transform .18s ease, filter .16s ease;
    }

    .mm-mobile-complex-card.is-trucks-flying .mm-mobile-truck-mini:not(.is-more) {
        opacity: 0;
        transform: scale(.68) translateX(10px);
        filter: blur(1px);
    }

    .mm-mobile-truck-mini.is-hold-pending,
    .mm-mobile-truck-mini.is-hold-ready {
        filter: brightness(1.14) saturate(1.1);
    }

    .mm-mobile-truck-mini.is-hold-ready {
        box-shadow: inset 0 0 18px rgba(255, 255, 255, .06), 0 0 18px var(--mm-mobile-truck-accent);
    }

    .mm-mobile-truck-mini.is-dragging,
    .mm-mobile-truck-mini.is-moving {
        opacity: .42;
        filter: brightness(1.18) saturate(1.12);
    }

    .mm-mobile-truck-mini::before {
        content: "";
        position: absolute;
        inset: 0 auto 0 0;
        width: 3px;
        border-radius: 5px 0 0 5px;
        background: var(--mm-mobile-truck-accent);
        box-shadow: 0 0 10px var(--mm-mobile-truck-accent);
        opacity: .95;
    }

    .mm-mobile-flying-truck {
        position: fixed !important;
        z-index: 2147483600 !important;
        margin: 0 !important;
        pointer-events: none !important;
        transform-origin: 50% 50%;
        will-change: transform, opacity;
        filter: brightness(1.28) saturate(1.24) drop-shadow(0 16px 22px rgba(0, 0, 0, .46));
        box-shadow: inset 0 0 14px rgba(255, 255, 255, .05), 0 0 22px var(--mm-mobile-truck-accent);
    }

    .mm-mobile-home-truck-ghost {
        position: fixed !important;
        z-index: 2147483600 !important;
        margin: 0 !important;
        opacity: 1 !important;
        pointer-events: none !important;
        transform: translate(-50%, -50%) scale(1.18) rotate(var(--mm-mobile-home-truck-ghost-rotate, -4deg));
        transform-origin: 50% 50%;
        box-shadow: 0 18px 30px rgba(0, 0, 0, .54), 0 0 24px var(--mm-mobile-truck-accent);
        filter: brightness(1.34) saturate(1.22) drop-shadow(0 16px 22px rgba(0, 0, 0, .46));
    }

    .mm-mobile-home-truck-ghost.is-dropping {
        opacity: .72 !important;
        transform: translate(-50%, -50%) scale(.9) rotate(var(--mm-mobile-home-truck-ghost-rotate, -4deg));
        transition: opacity .16s ease, transform .16s ease;
    }

    .mm-mobile-truck-empty {
        grid-column: 1 / -1;
        aspect-ratio: auto;
        min-height: 0;
        height: auto;
        border: 0;
        background: transparent;
        box-shadow: none;
        font-size: 10px;
        font-weight: 800;
        text-transform: lowercase;
    }

    .mm-mobile-truck-mini.status-yellow {
        --mm-mobile-truck-accent: #ffd200;
        color: #ffd200;
    }

    .mm-mobile-truck-mini.status-red {
        --mm-mobile-truck-accent: #ff4540;
        color: #ff4540;
    }

    .mm-mobile-truck-mini.status-gray,
    .mm-mobile-truck-empty {
        --mm-mobile-truck-accent: rgba(148, 166, 176, .72);
        border-color: var(--mm-mobile-truck-accent);
        color: rgba(190, 202, 209, .75);
    }

    .mm-mobile-truck-mini.is-more {
        color: #58df52;
    }

    .status-risk .mm-mobile-truck-mini,
    .status-risk .mm-mobile-truck-mini.is-more {
        --mm-mobile-truck-accent: #ffd200;
        color: #ffd200;
    }

    .status-danger .mm-mobile-truck-mini,
    .status-danger .mm-mobile-truck-mini.is-more {
        --mm-mobile-truck-accent: #ff4540;
        color: #ff4540;
    }

    .mm-mobile-shift-form {
        min-width: 0;
    }

    .mm-mobile-shift-button {
        width: 100%;
        min-height: 46px;
        border: 1px solid #58df52;
        border-radius: 7px;
        background: rgba(40, 130, 42, .18);
        color: #58df52;
        font-size: 21px;
        font-weight: 900;
        letter-spacing: 0;
        text-transform: uppercase;
        box-shadow: inset 0 0 22px rgba(88, 223, 82, .08), 0 12px 22px rgba(0, 0, 0, .26);
        transition: transform .16s ease, box-shadow .16s ease, filter .16s ease, background .16s ease;
    }

    .mm-mobile-shift-button.is-danger {
        border-color: #ff4540;
        background: rgba(119, 26, 31, .22);
        color: #ff514c;
        box-shadow: inset 0 0 22px rgba(255, 69, 64, .08), 0 12px 22px rgba(0, 0, 0, .26);
    }

    .mm-mobile-shift-button:disabled {
        border-color: rgba(133, 153, 164, .32);
        color: rgba(176, 190, 198, .42);
        background: rgba(24, 34, 41, .44);
        box-shadow: none;
    }

    .mm-mobile-bottom-nav {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        min-height: 66px;
        border: 1px solid rgba(139, 159, 170, .34);
        border-radius: 10px;
        background: rgba(8, 19, 27, .84);
        box-shadow: inset 0 0 24px rgba(255, 255, 255, .025), 0 -8px 20px rgba(0, 0, 0, .18);
        overflow: hidden;
    }

    .mm-mobile-nav-item {
        position: relative;
        display: grid;
        place-items: center;
        align-content: center;
        gap: 3px;
        padding: 7px 2px 6px;
        min-width: 0;
        border-left: 1px solid rgba(139, 159, 170, .25);
        color: rgba(177, 190, 198, .72);
        text-decoration: none;
        font-size: 9px;
        font-weight: 800;
        line-height: 1;
        transition: color .16s ease, background .16s ease, transform .16s ease;
    }

    .mm-mobile-nav-item:first-child {
        border-left: 0;
    }

    .mm-mobile-nav-item.is-active {
        color: #58df52;
        background: rgba(88, 223, 82, .05);
    }

    .mm-mobile-nav-item.is-disabled,
    .mm-mobile-nav-item[aria-disabled="true"] {
        color: rgba(135, 151, 159, .34);
        background: rgba(10, 18, 24, .34);
        cursor: default;
        filter: grayscale(1) saturate(.35);
        opacity: .48;
        pointer-events: none;
    }

    .mm-mobile-nav-item.is-disabled img,
    .mm-mobile-nav-item[aria-disabled="true"] img,
    .mm-mobile-nav-item.is-disabled .mm-mobile-nav-icon,
    .mm-mobile-nav-item[aria-disabled="true"] .mm-mobile-nav-icon {
        opacity: .42;
    }

    .mm-mobile-nav-item.is-active::before {
        content: "";
        position: absolute;
        top: 0;
        left: 22%;
        right: 22%;
        height: 3px;
        border-radius: 0 0 999px 999px;
        background: #58df52;
        box-shadow: 0 0 12px rgba(88, 223, 82, .7);
    }

    .mm-mobile-nav-item img,
    .mm-mobile-nav-icon {
        width: 22px;
        height: 22px;
        object-fit: contain;
        opacity: .85;
    }

    .mm-mobile-nav-icon {
        position: relative;
        border: 1.5px solid currentColor;
        border-radius: 4px;
    }

    .mm-mobile-nav-icon-pult::before,
    .mm-mobile-nav-icon-pult::after {
        content: "";
        position: absolute;
        inset: 6px;
        border-top: 1.5px solid currentColor;
        border-bottom: 1.5px solid currentColor;
    }

    .mm-mobile-nav-icon-pult::after {
        inset: 10px 6px;
        border-top: 0;
        border-bottom: 0;
        border-left: 1.5px solid currentColor;
        border-right: 1.5px solid currentColor;
    }

    .mm-mobile-nav-icon-reports {
        display: flex;
        align-items: flex-end;
        justify-content: center;
        gap: 3px;
        border: 0;
    }

    .mm-mobile-nav-icon-reports::before,
    .mm-mobile-nav-icon-reports::after {
        content: "";
        width: 4px;
        border-radius: 2px 2px 0 0;
        background: currentColor;
        box-shadow: 7px -7px 0 currentColor;
    }

    .mm-mobile-nav-icon-reports::before {
        height: 12px;
    }

    .mm-mobile-nav-icon-reports::after {
        height: 21px;
    }
}

@media (max-width: 390px) {
    body.mining-master-mobile-screen .mm-mobile-shell {
        gap: 7px;
        padding-left: 10px;
        padding-right: 10px;
    }

    .mm-mobile-complex-card {
        padding: 7px;
    }

    .mm-mobile-truck-preview {
        gap: 3px;
    }
}

.admin-employee-detail-shell .employee-detail-page {
    width: 100%;
    height: calc((100dvh / var(--admin-interface-scale)) - 158px);
    max-height: calc((100dvh / var(--admin-interface-scale)) - 158px);
    grid-template-columns: minmax(720px, 1fr) clamp(520px, 31vw, 650px);
    grid-template-rows: minmax(0, 1fr);
    align-items: stretch;
    zoom: 1;
    gap: 12px;
    padding-top: 12px;
    padding-bottom: 12px;
}

.admin-employee-detail-shell .employee-detail-grid {
    display: contents;
}

.admin-employee-detail-shell .employee-profile-form {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    min-height: 0;
    overflow: auto;
    scrollbar-gutter: auto;
}

.admin-employee-detail-shell .employee-detail-side {
    grid-column: 2;
    grid-row: 1;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: 10px;
    align-content: start;
    align-items: start;
    min-width: 0;
    min-height: 0;
    max-height: 100%;
    overflow-y: auto;
    padding-right: 0;
    scrollbar-gutter: auto;
}

.admin-employee-detail-shell .employee-photo-upload-field {
    display: none;
}

.admin-employee-detail-shell .employee-detail-card-head {
    margin-bottom: 0;
}

.admin-employee-detail-shell .employee-detail-card-head h2 {
    font-size: 22px;
    line-height: 1;
}

.admin-employee-detail-shell .employee-detail-card-head p {
    font-size: 12px;
    line-height: 1.25;
}

.admin-employee-detail-shell .employee-detail-bottom-grid {
    grid-column: auto;
    grid-row: auto;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr);
    gap: 0;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

.admin-employee-detail-shell .employee-access-issue-card,
.admin-employee-detail-shell .employee-danger-card,
.admin-employee-detail-shell .employee-access-list-card,
.admin-employee-detail-shell .employee-log-card {
    grid-column: auto;
    grid-row: auto;
    align-self: start;
    padding: 12px;
}

.admin-employee-detail-shell .employee-access-list-card {
    min-height: 0;
}

.admin-employee-detail-shell .employee-access-list {
    max-height: none;
    overflow-y: auto;
    scrollbar-gutter: stable;
}

.admin-employee-detail-shell .employee-log-card {
    display: none;
}

.admin-employee-detail-shell .employee-access-actions {
    display: none;
}

.admin-employee-detail-shell .employee-access-card {
    gap: 8px;
}

.admin-employee-detail-shell .employee-access-meta {
    grid-template-columns: 1fr;
    gap: 4px;
}

.admin-employee-detail-shell .employee-card-v2-top {
    grid-template-columns: 196px minmax(0, 1fr);
    gap: 16px;
}

.admin-employee-detail-shell .employee-card-v2-photo-box {
    width: 196px;
    gap: 8px;
}

.admin-employee-detail-shell .employee-card-v2-photo {
    width: 196px;
    height: 196px;
    flex-basis: 196px;
    border-radius: 8px;
}

.admin-employee-detail-shell .employee-card-v2-photo-controls {
    min-height: 24px;
    margin-top: 5px;
}

.admin-employee-detail-shell .employee-detail-card {
    border-radius: 8px;
}

.admin-employee-detail-shell .employee-detail-field input,
.admin-employee-detail-shell .employee-detail-field select,
.admin-employee-detail-shell .employee-access-issue-form select,
.admin-employee-detail-shell .employee-access-actions input,
.admin-employee-detail-shell .employee-card-v2-grid .employee-detail-field input,
.admin-employee-detail-shell .employee-card-v2-grid .employee-detail-field select,
.admin-employee-detail-shell .employee-card-v2-name-grid .employee-detail-field input {
    height: 40px;
    min-height: 40px;
    border-radius: 8px;
}

.admin-employee-detail-shell .employee-detail-field select,
.admin-employee-detail-shell .employee-access-issue-form select,
.admin-employee-detail-shell .employee-card-v2-grid .employee-detail-field select {
    padding: 0 38px 0 14px;
    line-height: 40px;
}

.admin-employee-detail-shell .employee-detail-field input,
.admin-employee-detail-shell .employee-access-actions input,
.admin-employee-detail-shell .employee-card-v2-grid .employee-detail-field input,
.admin-employee-detail-shell .employee-card-v2-name-grid .employee-detail-field input {
    padding-top: 0;
    padding-bottom: 0;
    line-height: 40px;
}

.admin-employee-detail-shell .employee-detail-field textarea,
.admin-employee-detail-shell .employee-card-v2-textareas .employee-detail-field textarea {
    min-height: 68px;
    border-radius: 8px;
}

.admin-employee-detail-shell .employee-card-v2-grid,
.admin-employee-detail-shell .employee-card-v2-textareas {
    gap: 8px 12px;
    margin-top: 6px;
}

.admin-employee-detail-shell .employee-detail-save-row {
    margin-top: 2px;
}

.admin-employee-detail-shell .employee-detail-save-row button,
.admin-employee-detail-shell .employee-access-issue-form button,
.admin-employee-detail-shell .employee-danger-actions button,
.admin-employee-detail-shell .employee-access-actions button {
    min-height: 40px;
    font-size: 14px;
    line-height: 1.1;
}

.admin-employee-detail-shell .employee-access-card,
.admin-employee-detail-shell .employee-log-row {
    padding: 10px;
}

@media (max-width: 1180px) {
    .admin-employee-detail-shell .employee-detail-page {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        height: auto;
        max-height: none;
        overflow: visible;
    }

    .admin-employee-detail-shell .employee-profile-form,
    .admin-employee-detail-shell .employee-detail-side {
        grid-column: auto;
        grid-row: auto;
        max-height: none;
        overflow: visible;
    }
}

@media (max-width: 720px) {
    .admin-employee-detail-shell .employee-card-v2-top,
    .admin-employee-detail-shell .employee-card-v2-grid,
    .admin-employee-detail-shell .employee-card-v2-textareas {
        grid-template-columns: 1fr;
    }

    .admin-employee-detail-shell .employee-card-v2-photo-box,
    .admin-employee-detail-shell .employee-card-v2-photo {
        width: min(220px, 100%);
    }

    .admin-employee-detail-shell .employee-card-v2-photo {
        height: min(220px, 58vw);
        flex-basis: auto;
    }
}

body.employee-detail-screen .admin-employee-detail-shell .admin-page {
    width: 100%;
    height: calc((100dvh / var(--admin-interface-scale)) - 158px);
    max-height: calc((100dvh / var(--admin-interface-scale)) - 158px);
    zoom: 1;
}

@supports not (zoom: 1) {
    body.employee-detail-screen .admin-employee-detail-shell .admin-page {
        transform: none;
    }
}

.admin-employee-create-shell > .app-header {
    display: none;
}

.admin-employee-create-shell .employee-create-page {
    width: 100%;
    height: calc((100dvh / var(--admin-interface-scale)) - 158px);
    max-height: calc((100dvh / var(--admin-interface-scale)) - 158px);
    grid-template-rows: minmax(0, 1fr);
    margin: 0;
    padding: 12px 0;
    overflow: hidden;
    zoom: 1;
}

.admin-employee-create-shell .employee-create-layout {
    display: grid;
    grid-template-columns: minmax(720px, 1fr) clamp(520px, 31vw, 650px);
    gap: 12px;
    align-items: stretch;
    width: 100%;
    height: 100%;
    min-height: 0;
    margin: 0;
}

.admin-employee-create-shell .employee-create-main,
.admin-employee-create-shell .employee-create-side {
    min-width: 0;
    min-height: 0;
    max-height: 100%;
    overflow-y: auto;
    scrollbar-gutter: auto;
}

.admin-employee-create-shell .employee-create-side {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: 10px;
    align-content: start;
    align-items: start;
    overflow-y: auto;
}

.admin-employee-create-shell .employee-create-card {
    margin: 0;
    padding: 12px;
    border: 1px solid var(--admin-line);
    border-radius: 8px;
    background: var(--admin-panel);
    color: var(--admin-ink);
    box-shadow: var(--admin-shadow);
}

.admin-employee-create-shell .employee-create-main {
    display: grid;
    gap: 10px;
}

.admin-employee-create-shell .employee-detail-card-head {
    margin-bottom: 0;
}

.admin-employee-create-shell .employee-detail-card-head h2 {
    color: var(--admin-ink);
    font-size: 22px;
    line-height: 1;
    text-transform: uppercase;
}

.admin-employee-create-shell .employee-detail-card-head p,
.admin-employee-create-shell .muted {
    color: var(--admin-muted);
    font-size: 12px;
    line-height: 1.25;
}

.admin-employee-create-shell .employee-profile-head {
    padding: 0;
}

.admin-employee-create-shell .employee-photo-upload-field {
    display: none;
}

.admin-employee-create-shell .employee-card-v2-top {
    grid-template-columns: 196px minmax(0, 1fr);
    gap: 16px;
}

.admin-employee-create-shell .employee-card-v2-photo-box {
    width: 196px;
    gap: 8px;
}

.admin-employee-create-shell .employee-card-v2-photo,
.admin-employee-create-shell .employee-create-card-v2 .employee-create-photo {
    width: 196px;
    height: 196px;
    min-height: 196px;
    flex-basis: 196px;
    border: 1px solid var(--admin-line);
    border-radius: 8px;
    background: color-mix(in srgb, var(--admin-panel-soft) 82%, var(--admin-green) 18%);
}

.admin-employee-create-shell .employee-card-v2-photo-controls {
    min-height: 24px;
    margin-top: 5px;
}

.admin-employee-create-shell .employee-photo-symbol {
    min-width: 34px;
    min-height: 24px;
    color: var(--admin-green);
    font-size: 28px;
}

.admin-employee-create-shell .employee-photo-symbol.remove {
    color: var(--admin-red);
}

.admin-employee-create-shell .employee-photo-symbol:disabled {
    color: var(--admin-muted);
    opacity: .45;
}

.admin-employee-create-shell .employee-card-v2-name-grid {
    gap: 7px;
    max-width: none;
}

.admin-employee-create-shell .employee-card-v2-grid,
.admin-employee-create-shell .employee-card-v2-textareas {
    gap: 8px 12px;
    margin-top: 6px;
}

.admin-employee-create-shell .employee-card-v2-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-employee-create-shell .employee-card-v2-textareas {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-employee-create-shell .employee-detail-field {
    gap: 4px;
}

.admin-employee-create-shell .employee-detail-field label,
.admin-employee-create-shell .employee-create-checkline strong {
    color: var(--admin-ink);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0;
}

.admin-employee-create-shell .employee-detail-field input,
.admin-employee-create-shell .employee-detail-field select,
.admin-employee-create-shell .employee-detail-field textarea {
    border-color: var(--admin-line);
    border-radius: 8px;
    background: var(--admin-panel);
    color: var(--admin-ink);
    font-size: 14px;
}

.admin-employee-create-shell .employee-detail-field input,
.admin-employee-create-shell .employee-detail-field select,
.admin-employee-create-shell .employee-card-v2-grid .employee-detail-field input,
.admin-employee-create-shell .employee-card-v2-grid .employee-detail-field select,
.admin-employee-create-shell .employee-card-v2-name-grid .employee-detail-field input {
    height: 40px;
    min-height: 40px;
    border-radius: 8px;
}

.admin-employee-create-shell .employee-detail-field select,
.admin-employee-create-shell .employee-card-v2-grid .employee-detail-field select {
    padding: 0 38px 0 14px;
    line-height: 40px;
}

.admin-employee-create-shell .employee-detail-field input,
.admin-employee-create-shell .employee-card-v2-grid .employee-detail-field input,
.admin-employee-create-shell .employee-card-v2-name-grid .employee-detail-field input {
    padding-top: 0;
    padding-bottom: 0;
    line-height: 40px;
}

.admin-employee-create-shell .employee-detail-field textarea,
.admin-employee-create-shell .employee-card-v2-textareas .employee-detail-field textarea {
    min-height: 68px;
    border-radius: 8px;
}

.admin-employee-create-shell .employee-create-access-stack,
.admin-employee-create-shell .employee-create-result-list,
.admin-employee-create-shell .employee-create-actions {
    display: grid;
    gap: 10px;
}

.admin-employee-create-shell .employee-create-checkline {
    min-height: 46px;
    padding: 8px 10px;
    border-color: color-mix(in srgb, var(--admin-yellow) 34%, var(--admin-line));
    border-left: 5px solid var(--admin-yellow);
    border-radius: 8px;
    background: var(--admin-yellow-soft);
}

.admin-employee-create-shell .employee-create-checkline input {
    width: 18px;
    height: 18px;
}

.admin-employee-create-shell .employee-create-checkline small,
.admin-employee-create-shell .employee-create-result-list .admin-summary-row span {
    color: var(--admin-muted);
}

.admin-employee-create-shell .employee-create-result-list .admin-summary-row {
    border-color: var(--admin-line);
    border-radius: 8px;
    background: var(--admin-panel);
    box-shadow: none;
}

.admin-employee-create-shell .employee-create-actions button,
.admin-employee-create-shell .employee-create-actions .button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: .08em;
    line-height: 1.1;
    text-transform: uppercase;
    box-shadow: none;
}

.admin-employee-create-shell .employee-create-actions button {
    background: var(--admin-green);
    color: #061311;
}

.admin-employee-create-shell.admin-night .employee-detail-field input,
.admin-employee-create-shell.admin-night .employee-detail-field select,
.admin-employee-create-shell.admin-night .employee-detail-field textarea {
    background: var(--admin-panel-soft);
}

@media (max-width: 1180px) {
    .admin-employee-create-shell .employee-create-page {
        height: auto;
        max-height: none;
        overflow: visible;
    }

    .admin-employee-create-shell .employee-create-layout {
        grid-template-columns: 1fr;
        height: auto;
    }

    .admin-employee-create-shell .employee-create-main,
    .admin-employee-create-shell .employee-create-side {
        max-height: none;
        overflow: visible;
    }
}

@media (max-width: 720px) {
    .admin-employee-create-shell .employee-card-v2-top,
    .admin-employee-create-shell .employee-card-v2-grid,
    .admin-employee-create-shell .employee-card-v2-textareas {
        grid-template-columns: 1fr;
    }

    .admin-employee-create-shell .employee-card-v2-photo-box,
    .admin-employee-create-shell .employee-card-v2-photo,
    .admin-employee-create-shell .employee-create-card-v2 .employee-create-photo {
        width: min(220px, 100%);
    }

    .admin-employee-create-shell .employee-card-v2-photo,
    .admin-employee-create-shell .employee-create-card-v2 .employee-create-photo {
        height: min(220px, 58vw);
        min-height: min(220px, 58vw);
        flex-basis: auto;
    }
}

body.employee-create-screen .admin-employee-create-shell .admin-page {
    width: 100%;
    height: calc((100dvh / var(--admin-interface-scale)) - 158px);
    max-height: calc((100dvh / var(--admin-interface-scale)) - 158px);
    zoom: 1;
}

@media (max-width: 1180px) {
    body.employee-create-screen .admin-employee-create-shell .admin-page {
        height: auto;
        max-height: none;
    }
}

@supports not (zoom: 1) {
    body.employee-create-screen .admin-employee-create-shell .admin-page {
        transform: none;
    }
}

/* Excavator operator mobile workplace */
html:has(body.excavator-operator-screen),
body.excavator-operator-screen {
    min-height: 100%;
    margin: 0;
    background: #030708;
}

body.excavator-operator-screen {
    color: #f3f7f8;
    font-family: "Roboto Condensed", "Arial Narrow", "Segoe UI", Arial, sans-serif;
    overflow-x: hidden;
}

.eo-shell {
    --eo-bg: #030708;
    --eo-panel: #11181d;
    --eo-line: rgba(143, 161, 171, .48);
    --eo-line-soft: rgba(143, 161, 171, .28);
    --eo-muted: #9aa5ac;
    --eo-yellow: #ffb900;
    --eo-green: #47d44a;
    --eo-red: #ff463f;
    --eo-blue: #2f8cf0;
    position: relative;
    display: grid;
    grid-template-rows: 42px 1fr 66px;
    width: min(100vw, 390px);
    min-height: 100dvh;
    margin: 0 auto;
    padding: 7px 14px 10px;
    box-sizing: border-box;
    background:
        radial-gradient(circle at 52% 28%, rgba(255, 185, 0, .08), transparent 25%),
        linear-gradient(180deg, #061014 0%, var(--eo-bg) 45%, #020506 100%);
    overflow: hidden;
}

.eo-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .06;
    background:
        linear-gradient(90deg, transparent 0, rgba(255, 255, 255, .06) 50%, transparent 100%);
    mix-blend-mode: screen;
}

.eo-shell > * {
    position: relative;
    z-index: 1;
}

.eo-messages {
    position: fixed;
    z-index: 50;
    top: 8px;
    left: 50%;
    width: min(360px, calc(100vw - 28px));
    transform: translateX(-50%);
}

.eo-form {
    display: contents;
}

.eo-topbar {
    display: grid;
    grid-template-columns: .9fr 1.13fr 1fr 1.32fr;
    height: 42px;
    border: 1px solid var(--eo-line-soft);
    border-radius: 7px;
    background: rgba(10, 16, 20, .88);
    box-shadow: inset 0 0 18px rgba(255, 255, 255, .035);
    overflow: hidden;
}

.eo-topbar-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 0;
    padding: 0 4px;
    border-right: 1px solid rgba(143, 161, 171, .22);
    color: #e9eef1;
}

.eo-topbar-cell:last-child {
    border-right: 0;
}

.eo-topbar-cell img {
    width: 19px;
    height: 19px;
    object-fit: contain;
}

.eo-topbar-cell strong {
    min-width: 0;
    overflow: hidden;
    font-size: 12.5px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.eo-status-cell {
    color: var(--eo-yellow);
}

.eo-status-cell.is-work {
    color: var(--eo-green);
}

.eo-status-cell > span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 11px currentColor;
}

.eo-face-cell strong {
    font-size: 11px;
    line-height: 1.05;
}

.eo-clock-icon,
.eo-pin-icon,
.eo-nav-clock,
.eo-nav-bell {
    position: relative;
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid currentColor;
    border-radius: 50%;
    opacity: .78;
}

.eo-clock-icon::before,
.eo-nav-clock::before {
    content: "";
    position: absolute;
    left: 7px;
    top: 3px;
    width: 2px;
    height: 7px;
    background: currentColor;
}

.eo-clock-icon::after,
.eo-nav-clock::after {
    content: "";
    position: absolute;
    left: 7px;
    top: 8px;
    width: 6px;
    height: 2px;
    background: currentColor;
    transform: rotate(32deg);
    transform-origin: left center;
}

.eo-pin-icon {
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
}

.eo-pin-icon::before {
    content: "";
    position: absolute;
    inset: 4px;
    border: 2px solid currentColor;
    border-radius: 50%;
}

.eo-screen {
    grid-row: 2;
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding-top: 13px;
}

.eo-screen[hidden] {
    display: none !important;
}

.eo-screen h1 {
    margin: 0 0 9px;
    font-size: 34px;
    font-weight: 900;
    line-height: .95;
    letter-spacing: 0;
    text-shadow: 0 2px 9px rgba(0, 0, 0, .72);
}

.eo-title-row {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 10px;
}

.eo-title-row > strong {
    display: inline-grid;
    place-items: center;
    min-width: 56px;
    height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(143, 161, 171, .26);
    border-radius: 12px;
    background: rgba(255, 255, 255, .09);
    color: #dce4e7;
    font-size: 19px;
    line-height: 1;
    box-sizing: border-box;
}

.eo-truck-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: minmax(76px, 1fr);
    gap: 7px;
    min-height: 0;
    height: 332px;
    margin-bottom: 10px;
}

.eo-truck-grid.is-empty {
    height: 285px;
}

.eo-truck-card {
    position: relative;
    display: grid;
    grid-template-rows: 23px 27px 15px;
    align-content: center;
    place-items: center;
    gap: 2px;
    min-width: 0;
    min-height: 0;
    padding: 5px 6px 4px;
    border: 1.5px solid var(--eo-line);
    border-radius: 6px;
    background:
        radial-gradient(circle at 50% 46%, rgba(255, 255, 255, .09), transparent 56%),
        rgba(16, 23, 28, .88);
    color: #dfe6e9;
    font: inherit;
    cursor: grab;
    box-shadow: inset 0 0 16px rgba(255, 255, 255, .025), 0 7px 13px rgba(0, 0, 0, .22);
}

.eo-truck-card strong {
    justify-self: start;
    font-size: 26px;
    font-weight: 900;
    line-height: 1;
}

.eo-truck-card img {
    width: min(52px, 72%);
    height: 27px;
    object-fit: contain;
    opacity: .78;
}

.eo-truck-card span {
    overflow: hidden;
    width: 100%;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.eo-truck-card em {
    position: absolute;
    right: 5px;
    bottom: 5px;
    max-width: 58%;
    overflow: hidden;
    color: var(--eo-muted);
    font-size: 11px;
    font-style: normal;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.eo-truck-card.status-yellow {
    border-color: var(--eo-yellow);
    color: var(--eo-yellow);
    box-shadow: inset 0 0 20px rgba(255, 185, 0, .13), 0 0 15px rgba(255, 185, 0, .18);
}

.eo-truck-card.status-green {
    border-color: var(--eo-green);
    color: var(--eo-green);
}

.eo-truck-card.status-red {
    border-color: var(--eo-red);
    color: var(--eo-red);
}

.eo-truck-card.is-selected {
    outline: 2px solid rgba(255, 255, 255, .82);
    outline-offset: -4px;
}

.eo-empty-state {
    grid-column: 1 / -1;
    display: grid;
    align-content: center;
    place-items: center;
    gap: 8px;
    min-height: 180px;
    border: 1px dashed rgba(143, 161, 171, .45);
    border-radius: 7px;
    color: var(--eo-muted);
    font-size: 18px;
    font-weight: 800;
    background: rgba(15, 22, 27, .62);
}

.eo-empty-state img {
    width: 86px;
    height: 56px;
    object-fit: contain;
    opacity: .72;
}

.eo-empty-state strong {
    color: #d9e1e4;
    font-size: 26px;
    font-weight: 900;
    line-height: 1;
}

.eo-empty-state span {
    color: var(--eo-muted);
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
}

.eo-unload-grid {
    display: grid;
    gap: 8px;
}

.eo-unload-grid-work {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: minmax(92px, 1fr);
    flex: 1 1 auto;
    min-height: 194px;
    padding-bottom: 3px;
}

.eo-unload-grid-settings {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 110px;
    margin-top: 8px;
}

.eo-unload-card {
    display: grid;
    place-items: center;
    gap: 6px;
    min-width: 0;
    min-height: 0;
    padding: 9px 6px;
    border: 1.5px solid var(--eo-line);
    border-radius: 7px;
    background: rgba(16, 23, 28, .82);
    color: #a9b2b8;
    font: inherit;
    cursor: pointer;
    box-shadow: inset 0 0 16px rgba(255, 255, 255, .025);
}

.eo-unload-card strong {
    max-width: 100%;
    overflow: hidden;
    font-size: 25px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.eo-unload-card small {
    color: currentColor;
    font-size: 15px;
    font-weight: 700;
}

.eo-unload-card.status-yellow,
.eo-unload-card.is-selected.status-yellow {
    border-color: var(--eo-yellow);
    color: var(--eo-yellow);
    background: rgba(83, 59, 0, .52);
}

.eo-unload-card.status-green,
.eo-unload-card.is-selected.status-green {
    border-color: var(--eo-green);
    color: var(--eo-green);
}

.eo-unload-card.is-drop-ready {
    transform: scale(.985);
    box-shadow: inset 0 0 28px currentColor, 0 0 18px currentColor;
}

.eo-unload-card.is-add {
    border-style: dashed;
    color: #9ca7ae;
}

.eo-unload-card.is-add span {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 3px solid currentColor;
    border-radius: 50%;
    font-size: 38px;
    line-height: 1;
}

.eo-unload-icon {
    position: relative;
    width: 50px;
    height: 38px;
    color: currentColor;
}

.eo-unload-icon::before,
.eo-unload-icon::after {
    content: "";
    position: absolute;
    inset: auto 8px 7px;
    height: 16px;
    border: 3px solid currentColor;
    border-top: 0;
}

.eo-unload-icon::after {
    inset: 8px 16px auto;
    width: 16px;
    height: 18px;
    border: 3px solid currentColor;
    border-bottom: 0;
    transform: skew(-12deg);
}

.eo-unload-icon.is-2::before,
.eo-unload-icon.is-4::before {
    inset: 13px 2px 5px;
    height: 20px;
    border: 0;
    border-bottom: 4px solid currentColor;
    border-radius: 50% 50% 0 0;
    background: radial-gradient(circle at 45% 20%, currentColor 0 3px, transparent 4px);
}

.eo-unload-icon.is-2::after,
.eo-unload-icon.is-4::after {
    display: none;
}

.eo-unload-icon.is-3::before {
    inset: 9px 4px 4px;
    height: 26px;
    border: 3px solid currentColor;
    border-bottom-width: 6px;
}

.eo-unload-icon.is-3::after {
    display: none;
}

.eo-face-form {
    display: grid;
    gap: 8px;
}

.eo-large-field,
.eo-field-card {
    display: grid;
    align-content: center;
    min-height: 68px;
    padding: 10px 16px;
    border: 1px solid var(--eo-line);
    border-radius: 7px;
    background: rgba(18, 26, 32, .9);
    box-sizing: border-box;
}

.eo-large-field span,
.eo-field-card span {
    color: var(--eo-muted);
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
}

.eo-large-field input,
.eo-large-field select,
.eo-field-card input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #f3f7f8;
    font: inherit;
    font-size: 30px;
    font-weight: 900;
    line-height: 1.05;
}

.eo-large-field select {
    appearance: none;
}

.eo-primary-action {
    display: grid;
    place-items: center;
    width: 100%;
    min-height: 58px;
    margin-top: auto;
    border: 0;
    border-radius: 7px;
    background: linear-gradient(180deg, #ffc21a, #ffae00);
    color: #050606;
    font: inherit;
    font-size: 20px;
    font-weight: 900;
    line-height: 23px;
    text-align: center;
    cursor: pointer;
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .16), 0 0 16px rgba(255, 185, 0, .16);
}

.eo-shift-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.eo-shift-metrics .eo-field-card {
    min-height: 94px;
    padding: 10px;
}

.eo-shift-metrics input {
    font-size: 25px;
}

.eo-shift-face {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
}

.eo-shift-face > div {
    min-height: 104px;
    padding: 14px;
    border: 1px solid var(--eo-line);
    border-radius: 7px;
    background: rgba(18, 26, 32, .9);
    box-sizing: border-box;
}

.eo-shift-face span {
    display: block;
    margin-bottom: 6px;
    color: var(--eo-muted);
    font-size: 17px;
    font-weight: 800;
}

.eo-shift-face strong {
    display: block;
    overflow: hidden;
    color: #f3f7f8;
    font-size: 31px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.eo-downtime-card {
    display: grid;
    grid-template-columns: 103px 1fr;
    align-items: center;
    min-height: 132px;
    margin-bottom: 12px;
    padding: 16px;
    border: 2px solid var(--eo-yellow);
    border-radius: 7px;
    background: radial-gradient(circle at 50% 50%, rgba(255, 185, 0, .18), rgba(80, 56, 0, .48));
    color: var(--eo-yellow);
    box-shadow: inset 0 0 22px rgba(255, 185, 0, .09), 0 0 14px rgba(255, 185, 0, .14);
    box-sizing: border-box;
}

.eo-downtime-clock {
    position: relative;
    width: 76px;
    height: 76px;
    border: 8px solid currentColor;
    border-radius: 50%;
}

.eo-downtime-clock::before {
    content: "";
    position: absolute;
    left: 31px;
    top: 16px;
    width: 8px;
    height: 31px;
    background: currentColor;
}

.eo-downtime-clock::after {
    content: "";
    position: absolute;
    left: 34px;
    top: 40px;
    width: 28px;
    height: 8px;
    background: currentColor;
    transform: rotate(42deg);
    transform-origin: left center;
}

.eo-downtime-card strong,
.eo-downtime-card b,
.eo-downtime-card em {
    display: block;
}

.eo-downtime-card strong {
    font-size: 21px;
    font-weight: 900;
    text-transform: uppercase;
}

.eo-downtime-card b {
    font-size: 48px;
    font-weight: 900;
    line-height: .95;
}

.eo-downtime-card em {
    color: #f3f7f8;
    font-size: 20px;
    font-style: normal;
    font-weight: 800;
    line-height: 1.05;
}

.eo-reason-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 12px;
}

.eo-reason-grid button,
.eo-event-actions button,
.eo-refresh-button {
    min-width: 0;
    border: 1px solid var(--eo-line);
    border-radius: 6px;
    background: rgba(18, 26, 32, .9);
    color: #eef3f5;
    font: inherit;
    font-size: 17px;
    font-weight: 900;
    cursor: pointer;
}

.eo-reason-grid button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    padding: 0 8px;
}

.eo-reason-grid button img {
    width: 25px;
    height: 18px;
    object-fit: contain;
}

.eo-reason-grid button.is-selected {
    border-color: var(--eo-yellow);
    color: var(--eo-yellow);
    background: rgba(83, 59, 0, .52);
}

.eo-event-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 11px;
}

.eo-event-actions button {
    height: 53px;
    font-size: 24px;
}

.eo-event-actions .is-move {
    border-color: var(--eo-blue);
    color: #dfefff;
    background: rgba(18, 70, 128, .82);
}

.eo-event-actions .is-alarm {
    border-color: var(--eo-red);
    color: #fff0ef;
    background: rgba(105, 25, 20, .76);
}

.eo-refresh-button {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    font-size: 28px;
    line-height: 1;
}

.eo-bottom-nav {
    grid-row: 3;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    height: 66px;
    margin-top: 8px;
    border: 1px solid rgba(143, 161, 171, .28);
    border-radius: 7px;
    background: rgba(8, 17, 22, .94);
    overflow: hidden;
}

.eo-bottom-nav button {
    position: relative;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 4px;
    min-width: 0;
    border: 0;
    border-right: 1px solid rgba(143, 161, 171, .18);
    background: transparent;
    color: #8f9aa1;
    font: inherit;
    cursor: pointer;
}

.eo-bottom-nav button:last-child {
    border-right: 0;
}

.eo-bottom-nav button.is-active {
    color: var(--eo-yellow);
    background: rgba(41, 65, 38, .32);
}

.eo-bottom-nav button.is-active::before {
    content: "";
    position: absolute;
    top: 0;
    left: 24%;
    right: 24%;
    height: 3px;
    border-radius: 0 0 999px 999px;
    background: currentColor;
}

.eo-bottom-nav img,
.eo-bottom-nav .eo-nav-clock,
.eo-bottom-nav .eo-nav-bell {
    width: 25px;
    height: 25px;
    object-fit: contain;
}

.eo-bottom-nav strong {
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
}

.eo-nav-bell {
    border-radius: 50% 50% 44% 44%;
    border-bottom-width: 5px;
}

@media (max-width: 370px) {
    .eo-shell {
        padding-left: 10px;
        padding-right: 10px;
    }

    .eo-topbar-cell strong {
        font-size: 12px;
    }

    .eo-truck-grid {
        gap: 6px;
    }

    .eo-truck-card strong {
        font-size: 24px;
    }

    .eo-unload-card strong {
        font-size: 21px;
    }
}
