.pu-date-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #dbeafe;
}

.pu-date-field {
    display: grid;
    gap: 3px;
    color: #64748b;
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.pu-date-field input {
    width: 100%;
    min-width: 0;
    height: 30px;
    padding: 0 7px;
    color: #0f2f68;
    background: #fff;
    border: 1px solid #bfdbfe;
    border-radius: 7px;
    font: 750 11px Inter, system-ui, sans-serif;
}

.pu-date-field input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,.11);
}

.pu-date-calculate {
    grid-column: 1 / -1;
    min-height: 31px;
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
    border: 0;
    border-radius: 7px;
    box-shadow: 0 6px 14px rgba(37,99,235,.18);
    font: 850 11px Inter, system-ui, sans-serif;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease;
}

.pu-date-calculate:hover {
    transform: translateY(-1px);
    box-shadow: 0 9px 18px rgba(37,99,235,.25);
}

.custom-pu-comparison {
    margin-top: 18px;
    scroll-margin-top: 18px;
}

.custom-pu-comparison .section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pu-comparison-range {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 3px 9px;
    color: #1d4ed8;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 850;
}

.pu-comparison-note {
    margin: -6px 0 14px;
    color: #64748b;
    font-size: 11px;
}

.pu-comparison-table {
    min-width: 1460px;
    table-layout: fixed;
}

.pu-comparison-table th {
    text-align: center !important;
    vertical-align: middle;
    line-height: 1.25;
}

.pu-comparison-table td {
    padding-top: 9px !important;
    padding-bottom: 9px !important;
    text-align: center;
    vertical-align: middle;
}

.pu-comparison-table .pu-res-cell {
    min-width: 180px;
    color: #0969da;
    text-align: left;
    font-weight: 850;
}

.pu-comparison-table .pu-row-number {
    width: 42px;
    color: #2563eb;
    font-weight: 900;
}

.pu-compare-main {
    color: #0f172a;
    font-size: 13px;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
}

.pu-compare-sub {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 4px;
    color: #94a3b8;
    font-size: 9px;
    font-weight: 700;
    white-space: nowrap;
}

.pu-delta-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 18px;
    padding: 2px 6px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
}

.pu-delta-pill.positive {
    color: #047857;
    background: #d1fae5;
}

.pu-delta-pill.negative {
    color: #b91c1c;
    background: #fee2e2;
}

.pu-delta-pill.neutral {
    color: #64748b;
    background: #e2e8f0;
}

.pu-percent-value {
    font-size: 15px;
    font-weight: 950;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.pu-percent-track {
    width: 82px;
    height: 5px;
    margin: 6px auto 0;
    overflow: hidden;
    background: #e2e8f0;
    border-radius: 999px;
}

.pu-percent-track > span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #ef4444 0%, #f59e0b 38%, #22d3ee 68%, #2563eb 100%);
    border-radius: inherit;
    box-shadow: 0 0 7px rgba(37,99,235,.25);
}

.pu-comparison-total td {
    background: linear-gradient(180deg, #eff6ff, #e8f2ff) !important;
    border-top: 2px solid #60a5fa;
    font-weight: 900;
}

.pu-comparison-empty {
    padding: 28px;
    color: #64748b;
    text-align: center;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 750;
}

@media (max-width: 860px) {
    .pu-date-controls { grid-template-columns: 1fr; }
    .pu-date-calculate { grid-column: 1; }
}
