.compare-poc-page .compare-poc-search {
    margin-top: 0;
}

.compare-poc-page .cvm-subtabs {
    margin-top: 20px;
}

.compare-poc-page .miners-title {
    font-size: 22px;
    font-weight: 700;
}

.compare-poc-page .compare-poc-controls {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 0;
    margin-bottom: 16px;
}

.compare-poc-page .compare-poc-open-btn {
    width: 100%;
    height: 46px;
    padding: 0 18px;
    border: 0;
    border-radius: 4px 0 0 4px;
    background: #2563eb;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
}

.compare-poc-page .compare-poc-open-btn:hover {
    background: #1d4ed8;
}

.compare-poc-page .compare-poc-metric-select,
.compare-poc-page .compare-poc-algorithm-select {
    width: 100%;
    height: 46px;
    padding: 0 36px 0 14px;
    border: 1px solid #111827;
    border-radius: 4px;
    background: #fff;
    color: #111827;
    font-size: 14px;
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, #6b7280 50%),
        linear-gradient(135deg, #6b7280 50%, transparent 50%);
    background-position:
        calc(100% - 18px) calc(50% - 3px),
        calc(100% - 12px) calc(50% - 3px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

.compare-poc-page .compare-poc-metric-select {
    border-radius: 0 4px 4px 0;
    border-left: 0;
}

.compare-poc-page .compare-poc-select-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.compare-poc-page .compare-poc-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    align-items: center;
    margin-bottom: 16px;
    padding: 14px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #f3f4f6;
    font-size: 13px;
    color: #374151;
}

.compare-poc-page .compare-poc-stats.is-hidden {
    display: none;
}

.compare-poc-page .compare-poc-stats__icon {
    width: 18px;
    height: 18px;
    fill: #f59e0b;
    flex-shrink: 0;
}

.compare-poc-page .compare-poc-stat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.compare-poc-page .compare-poc-stat strong {
    font-weight: 500;
}

.compare-poc-page .compare-poc-stat--notice {
    flex: 1 1 100%;
    color: #92400e;
    white-space: normal;
}

.compare-poc-page .compare-poc-stat__badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 600;
    line-height: 1.2;
}

.compare-poc-page .compare-poc-stat__badge.is-negative {
    background: #ef4444;
    color: #fff;
}

.compare-poc-page .compare-poc-stat__badge.is-positive {
    background: #22c55e;
    color: #fff;
}

.compare-poc-page .compare-poc-stat__badge.is-neutral {
    background: #111827;
    color: #fff;
}

.compare-poc-page .compare-poc-chart-panel {
    position: relative;
    min-height: 520px;
    padding-top: 0;
}

.compare-poc-page .compare-poc-chart-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 4px;
}

.compare-poc-page .compare-poc-chart-menu {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
}

.compare-poc-page .compare-poc-chart-menu span {
    display: block;
    width: 16px;
    height: 2px;
    margin: 0 auto;
    background: #6b7280;
}

.compare-poc-page .compare-poc-chart-menu:hover {
    border-color: #9ca3af;
    background: #f9fafb;
}

.compare-poc-page .compare-poc-highchart {
    width: 100%;
    min-height: 420px;
}

.compare-poc-page .compare-poc-chart-footer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-top: 8px;
}

.compare-poc-page .compare-poc-range-tabs {
    margin-bottom: 0;
}

.compare-poc-page .cvm-chart-legend {
    align-self: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 0;
}

.compare-poc-page .cvm-chart-legend__item--coin::before {
    background: #2c6fd2;
}

.compare-poc-page .cvm-chart-legend__item--compare::before {
    background: #f59e0b;
}

.compare-poc-page .cvm-chart-legend__item--ma::before {
    background: #dc2626;
}

.compare-poc-page .cvm-chart-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(90%, 520px);
    text-align: center;
    margin: 0;
    z-index: 2;
}

.compare-poc-page .cvm-chart-message.is-hidden {
    display: none;
}

@media (max-width: 1000px) {
    .compare-poc-page .compare-poc-select-row,
    .compare-poc-page .compare-poc-controls {
        grid-template-columns: 1fr;
    }

    .compare-poc-page .compare-poc-open-btn {
        border-radius: 4px 4px 0 0;
    }

    .compare-poc-page .compare-poc-metric-select {
        border-left: 1px solid #111827;
        border-radius: 0 0 4px 4px;
    }

    .compare-poc-page .cvm-chart-legend {
        align-self: stretch;
    }
}
