.dmcr24-popover {
    position: fixed;
    inset: 0;
    width: min(1040px, calc(100vw - 36px));
    max-height: calc(100dvh - 36px);
    margin: auto;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 24px;
    background: transparent;
    color: #14283c;
    font-family: inherit;
}

.dmcr24-popover::backdrop {
    background: rgba(4, 15, 28, .72);
    backdrop-filter: blur(10px);
}

.dmcr24-shell {
    display: flex;
    width: 100%;
    max-height: calc(100dvh - 36px);
    flex-direction: column;
    overflow: hidden;
    border-radius: 24px;
    background: #f7f9fc;
    box-shadow: 0 40px 100px rgba(2, 17, 33, .38);
}

.dmcr24-header {
    display: flex;
    min-height: 82px;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 17px 20px;
    color: #fff;
    background:
        radial-gradient(circle at 86% -35%, rgba(50, 198, 255, .36), transparent 42%),
        linear-gradient(135deg, #092d4d 0%, #075b91 58%, #0884b0 100%);
}

.dmcr24-title small {
    display: block;
    margin-bottom: 2px;
    color: rgba(255,255,255,.67);
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .1em;
}

.dmcr24-title h2 {
    margin: 0;
    color: #fff;
    font-size: 23px;
    letter-spacing: -.035em;
}

.dmcr24-close {
    display: grid;
    width: 39px;
    height: 39px;
    place-items: center;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 12px;
    color: #fff;
    background: rgba(255,255,255,.08);
    font: inherit;
    font-size: 21px;
    cursor: pointer;
}

.dmcr24-body {
    min-height: 0;
    flex: 1;
    overflow-y: auto;
    padding: 13px;
}

.dmcr24-groups {
    display: grid;
    gap: 13px;
}

.dmcr24-group {
    overflow: hidden;
    border: 1px solid #dce6ee;
    border-radius: 17px;
    background: #fff;
}

.dmcr24-equipment {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 14px;
    border-bottom: 1px solid #e6edf2;
    background:
        radial-gradient(circle at 92% 0, rgba(45,158,224,.09), transparent 38%),
        linear-gradient(180deg,#fff,#fafcfd);
}

.dmcr24-equipment-copy {
    min-width: 0;
}

.dmcr24-equipment-copy span {
    display: block;
    margin-bottom: 2px;
    color: #8190a0;
    font-size: 7px;
    font-weight: 900;
    letter-spacing: .1em;
}

.dmcr24-equipment-copy strong {
    display: block;
    color: #173a55;
    font-size: 15px;
    line-height: 1.25;
}

.dmcr24-equipment-copy small {
    display: block;
    margin-top: 4px;
    color: #6d8092;
    font-size: 8px;
}

.dmcr24-summary {
    display: flex;
    flex: 0 0 auto;
    gap: 6px;
}

.dmcr24-pill {
    display: grid;
    min-width: 76px;
    justify-items: center;
    gap: 1px;
    padding: 7px 9px;
    border-radius: 10px;
    background: #eef5fa;
}

.dmcr24-pill.alert {
    color: #a5462d;
    background: #fff0e9;
}

.dmcr24-pill span {
    font-size: 7px;
    font-weight: 900;
}

.dmcr24-pill strong {
    font-size: 14px;
}

.dmcr24-timeline-wrap {
    padding: 13px 14px;
    border-bottom: 1px solid #e8eef2;
}

.dmcr24-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.dmcr24-section-head strong {
    color: #203d57;
    font-size: 12px;
}

.dmcr24-section-head span {
    color: #718295;
    font-size: 8px;
}

.dmcr24-timeline {
    display: grid;
    grid-template-columns: 132px minmax(0,1fr);
    overflow: hidden;
    border: 1px solid #d9e4ec;
    border-radius: 12px;
    background: #f9fbfc;
}

.dmcr24-labels {
    padding-top: 35px;
    border-right: 1px solid #dde7ee;
    background: #fbfcfd;
}

.dmcr24-label {
    display: flex;
    height: 36px;
    align-items: center;
    gap: 6px;
    padding: 0 9px;
    border-top: 1px solid #edf2f5;
}

.dmcr24-label:first-child {
    border-top: 0;
}

.dmcr24-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 999px;
}

.dmcr24-dot.t1 { background: #2f8df0; }
.dmcr24-dot.t2 { background: #20b7ba; }
.dmcr24-dot.t3 { background: #7b50eb; }
.dmcr24-dot.t4 { background: #e2942c; }

.dmcr24-label strong {
    overflow: hidden;
    color: #1f3d56;
    font-size: 8px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dmcr24-tracks {
    position: relative;
    min-width: 0;
    overflow: hidden;
}

.dmcr24-scale {
    position: relative;
    height: 35px;
    border-bottom: 1px solid #dde7ee;
    background: #f8fafc;
}

.dmcr24-tick {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--x);
    width: 1px;
    background: #e2e9ee;
}

.dmcr24-tick-label {
    position: absolute;
    top: 10px;
    left: var(--x);
    transform: translateX(-50%);
    color: #506579;
    font-size: 6px;
    font-weight: 900;
    white-space: nowrap;
}

.dmcr24-track-row {
    position: relative;
    height: 36px;
    border-top: 1px solid #edf2f5;
    background:
        repeating-linear-gradient(
            90deg,
            transparent 0 calc(10% - 1px),
            rgba(120,145,165,.06) calc(10% - 1px) 10%
        );
}

.dmcr24-track-row:first-of-type {
    border-top: 0;
}

.dmcr24-bar {
    position: absolute;
    top: 9px;
    left: var(--left);
    width: var(--width);
    min-width: 5px;
    height: 18px;
    border-radius: 6px;
    box-shadow: 0 3px 7px rgba(26,66,101,.12);
}

.dmcr24-bar.t1 { background: linear-gradient(90deg,#2f8df0,#4da7f5); }
.dmcr24-bar.t2 { background: linear-gradient(90deg,#20a7ac,#3ec5c5); }
.dmcr24-bar.t3 { background: linear-gradient(90deg,#7344e5,#9a70ef); }
.dmcr24-bar.t4 { background: linear-gradient(90deg,#d9821d,#efa846); }

.dmcr24-collision {
    position: absolute;
    z-index: 6;
    top: 35px;
    bottom: 0;
    left: var(--x);
    width: 2px;
    transform: translateX(-1px);
    background: rgba(218,52,52,.72);
    pointer-events: none;
}

.dmcr24-collision::before {
    content: attr(data-number);
    position: absolute;
    top: -8px;
    left: 50%;
    display: grid;
    width: 18px;
    height: 18px;
    place-items: center;
    transform: translateX(-50%);
    border: 2px solid #fff;
    border-radius: 999px;
    color: #fff;
    background: #db3434;
    box-shadow: 0 0 0 2px rgba(219,52,52,.18);
    font-size: 7px;
    font-weight: 900;
}

.dmcr24-conflicts {
    display: grid;
    gap: 9px;
    padding: 12px 14px 14px;
}

.dmcr24-conflicts-title {
    margin: 0;
    color: #203d57;
    font-size: 12px;
}

.dmcr24-conflict {
    overflow: hidden;
    border: 1px solid #ecd9d1;
    border-radius: 12px;
    background: #fffaf7;
}

.dmcr24-conflict-top {
    display: grid;
    grid-template-columns: 30px minmax(0,1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 9px 10px;
    background: linear-gradient(90deg,#fff6f2,#fffaf8);
}

.dmcr24-number {
    display: grid;
    width: 26px;
    height: 26px;
    place-items: center;
    border-radius: 999px;
    color: #fff;
    background: #db3f35;
    font-size: 9px;
    font-weight: 900;
}

.dmcr24-pair {
    min-width: 0;
}

.dmcr24-pair strong {
    display: block;
    color: #263f55;
    font-size: 10px;
}

.dmcr24-pair span {
    display: block;
    margin-top: 2px;
    color: #8a5e52;
    font-size: 8px;
}

.dmcr24-hit {
    display: grid;
    justify-items: end;
    gap: 2px;
    text-align: right;
}

.dmcr24-hit span {
    color: #ad6250;
    font-size: 7px;
    font-weight: 900;
    letter-spacing: .06em;
}

.dmcr24-hit strong {
    color: #a2352d;
    font-size: 9px;
}

.dmcr24-periods {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 7px;
    padding: 0 10px 10px 48px;
}

.dmcr24-period {
    display: grid;
    gap: 2px;
    padding: 7px 8px;
    border-radius: 8px;
    background: #fff;
}

.dmcr24-period span {
    color: #8a97a4;
    font-size: 7px;
    font-weight: 900;
}

.dmcr24-period strong {
    color: #40586c;
    font-size: 8px;
}

.dmcr24-no-section {
    margin: 0 14px 14px;
    padding: 10px;
    border: 1px solid #dfe8e4;
    border-radius: 12px;
    background: #f7fbf9;
}

.dmcr24-no-title {
    margin: 0 0 7px;
    color: #416456;
    font-size: 10px;
}

.dmcr24-no-list {
    display: grid;
    gap: 5px;
}

.dmcr24-no-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 7px 8px;
    border-radius: 8px;
    background: #fff;
}

.dmcr24-no-item strong {
    color: #496156;
    font-size: 8px;
}

.dmcr24-no-item span {
    flex: 0 0 auto;
    color: #29845d;
    font-size: 7px;
    font-weight: 900;
}

.dmcr24-footer {
    display: flex;
    justify-content: flex-end;
    padding: 10px 13px;
    border-top: 1px solid #e0e7ed;
    background: #fff;
}

.dmcr24-footer button {
    min-height: 36px;
    padding: 0 16px;
    border: 1px solid #cfdae3;
    border-radius: 9px;
    color: #30495f;
    background: #fff;
    font: inherit;
    font-size: 9px;
    font-weight: 900;
    cursor: pointer;
}

.dmcr24-empty {
    display: grid;
    min-height: 250px;
    place-items: center;
    align-content: center;
    color: #617486;
    text-align: center;
}

@media (max-width: 720px) {
    .dmcr24-popover {
        width: calc(100vw - 12px);
        max-height: calc(100dvh - 12px);
        border-radius: 16px;
    }

    .dmcr24-shell {
        max-height: calc(100dvh - 12px);
        border-radius: 16px;
    }

    .dmcr24-header {
        min-height: 70px;
        padding: 12px 13px;
    }

    .dmcr24-title h2 {
        font-size: 19px;
    }

    .dmcr24-body {
        padding: 7px;
    }

    .dmcr24-equipment {
        align-items: flex-start;
        flex-direction: column;
        padding: 11px;
    }

    .dmcr24-summary {
        width: 100%;
    }

    .dmcr24-pill {
        flex: 1;
        min-width: 0;
    }

    .dmcr24-timeline-wrap {
        padding: 10px 8px;
    }

    .dmcr24-section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .dmcr24-timeline {
        grid-template-columns: 92px minmax(0,1fr);
    }

    .dmcr24-label {
        padding: 0 6px;
    }

    .dmcr24-label strong {
        font-size: 7px;
    }

    .dmcr24-tick-label {
        font-size: 5px;
    }

    .dmcr24-conflicts {
        padding: 10px 8px;
    }

    .dmcr24-conflict-top {
        grid-template-columns: 28px minmax(0,1fr);
    }

    .dmcr24-hit {
        grid-column: 2;
        justify-items: start;
        text-align: left;
    }

    .dmcr24-periods {
        grid-template-columns: 1fr;
        padding: 0 8px 8px 44px;
    }

    .dmcr24-no-section {
        margin: 0 8px 10px;
    }

    .dmcr24-no-item {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* DM_CRUCE_COMPLETE_V26_START */
.dmcr26-complete {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    padding: 11px 13px;
    border: 1px solid #d7e8df;
    border-radius: 12px;
    color: #28694d;
    background: #f5fbf8;
}

.dmcr26-complete span {
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 999px;
    color: #fff;
    background: #2f8b65;
    font-size: 12px;
    font-weight: 900;
}

.dmcr26-complete strong {
    font-size: 12px;
    font-weight: 900;
}

@media (max-width: 720px) {
    .dmcr26-complete {
        padding: 10px;
    }

    .dmcr26-complete strong {
        font-size: 11px;
    }
}
/* DM_CRUCE_COMPLETE_V26_END */
