.prediction-odds-edit-cell {
    position: relative;
    padding-right: 42px !important;
}

.prediction-edit-button {
    position: absolute;
    top: 50%;
    right: 7px;
    width: 30px;
    height: 30px;
    min-width: 30px;
    min-height: 30px;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(120, 177, 255, .28);
    border-radius: 9px;
    background: rgba(33, 107, 204, .10);
    color: #9bc5ff;
    cursor: pointer;
    transform: translateY(-50%);
    transition: border-color .16s ease, background .16s ease, color .16s ease, transform .16s ease;
}

.prediction-edit-button svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.prediction-edit-button:hover {
    border-color: rgba(120, 177, 255, .62);
    background: rgba(33, 107, 204, .24);
    color: #d9eaff;
}

.prediction-edit-button:active {
    transform: translateY(-50%) scale(.94);
}

.prediction-edit-button:focus-visible {
    outline: 2px solid #76adff;
    outline-offset: 2px;
}

.prediction-editor-dialog {
    width: min(640px, calc(100vw - 28px));
    max-width: 640px;
    margin: auto;
    padding: 0;
    border: 1px solid rgba(121, 171, 239, .22);
    border-radius: 22px;
    background: #081625;
    color: #edf5ff;
    box-shadow: 0 28px 80px rgba(0, 0, 0, .58);
    overflow: hidden;
}

.prediction-editor-dialog::backdrop {
    background: rgba(0, 7, 18, .72);
    backdrop-filter: blur(6px);
}

.prediction-editor-shell {
    position: relative;
}

.prediction-editor-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px;
    align-items: start;
    padding: 24px 24px 20px;
    border-bottom: 1px solid rgba(137, 179, 231, .12);
    background:
        radial-gradient(circle at 92% 10%, rgba(48, 119, 218, .20), transparent 34%),
        linear-gradient(135deg, rgba(15, 48, 84, .52), rgba(7, 22, 38, .16));
}

.prediction-editor-kicker {
    display: block;
    margin-bottom: 7px;
    color: #78adf7;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.prediction-editor-head h2 {
    margin: 0;
    font-size: clamp(1.25rem, 3vw, 1.65rem);
    line-height: 1.12;
}

.prediction-editor-match {
    margin: 9px 0 0;
    color: #b9c9dc;
    font-size: .93rem;
    line-height: 1.45;
}

.prediction-editor-close {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border: 1px solid rgba(151, 183, 222, .18);
    border-radius: 12px;
    background: rgba(255, 255, 255, .035);
    color: #b9cce2;
    font-size: 1.45rem;
    line-height: 1;
    cursor: pointer;
}

.prediction-editor-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, .08);
}

.prediction-editor-form {
    padding: 22px 24px 24px;
}

.prediction-editor-current {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.prediction-editor-chip {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 10px;
    border: 1px solid rgba(127, 169, 220, .15);
    border-radius: 999px;
    background: rgba(255, 255, 255, .035);
    color: #b9cbe0;
    font-size: .78rem;
}

.prediction-editor-chip strong {
    margin-left: 5px;
    color: #eef6ff;
    font-weight: 750;
}

.prediction-editor-section {
    padding: 17px;
    border: 1px solid rgba(132, 175, 225, .13);
    border-radius: 16px;
    background: rgba(255, 255, 255, .025);
}

.prediction-editor-section + .prediction-editor-section {
    margin-top: 12px;
}

.prediction-editor-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 13px;
}

.prediction-editor-section-head strong {
    display: block;
    font-size: .94rem;
}

.prediction-editor-section-head small {
    display: block;
    margin-top: 3px;
    color: #8095ad;
    font-size: .76rem;
    line-height: 1.4;
}

.prediction-editor-section-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: rgba(47, 113, 205, .12);
    color: #88b7f8;
    font-size: .95rem;
    font-weight: 800;
}

.prediction-editor-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.prediction-editor-field {
    min-width: 0;
}

.prediction-editor-field label {
    display: block;
    margin: 0 0 6px;
    color: #aebfd3;
    font-size: .76rem;
    font-weight: 700;
}

.prediction-editor-field input {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    box-sizing: border-box;
    padding: 9px 11px;
    border: 1px solid rgba(136, 177, 224, .20);
    border-radius: 11px;
    outline: none;
    background: #06111e;
    color: #f1f7ff;
    font: inherit;
    font-size: 16px;
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
    color-scheme: dark;
}

.prediction-editor-field input:hover {
    border-color: rgba(136, 177, 224, .34);
}

.prediction-editor-field input:focus {
    border-color: #5f9ef2;
    box-shadow: 0 0 0 3px rgba(73, 141, 234, .13);
    background: #081725;
}

.prediction-editor-field-wide {
    grid-column: 1 / -1;
}

.prediction-editor-note {
    display: flex;
    gap: 9px;
    margin: 12px 1px 0;
    color: #8095ad;
    font-size: .75rem;
    line-height: 1.45;
}

.prediction-editor-note::before {
    content: "i";
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    display: grid;
    place-items: center;
    margin-top: 1px;
    border: 1px solid rgba(119, 171, 238, .28);
    border-radius: 50%;
    color: #7fb3f7;
    font-size: .66rem;
    font-weight: 800;
}

.prediction-editor-status {
    min-height: 22px;
    margin: 14px 2px 0;
    color: #9eb2c8;
    font-size: .82rem;
    line-height: 1.4;
}

.prediction-editor-status.is-error {
    color: #ff9b9b;
}

.prediction-editor-status.is-success {
    color: #8fe3b1;
}

.prediction-editor-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(134, 177, 226, .10);
}

.prediction-editor-actions .btn {
    min-height: 42px;
}

.prediction-editor-save.is-busy {
    opacity: .72;
    cursor: progress;
}

@media (max-width: 560px) {
    .prediction-editor-dialog {
        width: calc(100vw - 18px);
        border-radius: 18px;
    }

    .prediction-editor-head {
        padding: 20px 18px 17px;
    }

    .prediction-editor-form {
        padding: 18px;
    }

    .prediction-editor-grid {
        grid-template-columns: 1fr;
    }

    .prediction-editor-field-wide {
        grid-column: auto;
    }

    .prediction-editor-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .prediction-edit-button {
        width: 34px;
        height: 34px;
        min-width: 34px;
        min-height: 34px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .prediction-edit-button,
    .prediction-editor-field input {
        transition: none;
    }
}

@media print {
    .prediction-edit-button,
    .prediction-editor-dialog {
        display: none !important;
    }
}
