* {
    box-sizing: border-box;
}


body {
    margin: 0;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    background: #f4f6f8;

    color: #1f2937;
}


button,
textarea {
    font: inherit;
}


.container {
    width: 100%;
    max-width: 1100px;

    margin: 0 auto;

    padding: 20px;
}


.header {
    display: flex;

    justify-content: space-between;
    align-items: center;

    gap: 20px;

    margin-bottom: 20px;
}


.header h1 {
    margin: 0;

    font-size: 26px;
}


.header p {
    margin: 5px 0 0;

    color: #6b7280;
}


.status {
    padding: 8px 12px;

    border-radius: 8px;

    background: #e5e7eb;

    font-size: 13px;
}


.card {
    background: white;

    border-radius: 12px;

    padding: 20px;

    margin-bottom: 20px;

    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.06);
}


.hidden {
    display: none !important;
}


.section-header {
    display: flex;

    justify-content: space-between;
    align-items: center;
}


.label {
    display: block;

    color: #6b7280;

    font-size: 12px;

    text-transform: uppercase;

    letter-spacing: 0.05em;
}


.section-header h2 {
    margin: 5px 0 0;

    font-size: 24px;
}


.batch-progress {
    font-size: 14px;

    color: #6b7280;
}


.trade-id {
    margin-top: 6px;

    font-family: monospace;

    font-size: 14px;

    word-break: break-all;
}


.details-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 12px;

    margin-top: 20px;
}


.detail {
    padding: 12px;

    background: #f8fafc;

    border-radius: 8px;
}


.detail-label {
    display: block;

    font-size: 11px;

    color: #6b7280;

    margin-bottom: 5px;

    text-transform: uppercase;
}


.detail-value {
    font-size: 14px;

    font-weight: 600;

    word-break: break-word;
}


.chart-section {
    margin-top: 25px;
}


.chart-header {
    display: flex;

    justify-content: space-between;
    align-items: center;

    gap: 15px;

    margin-bottom: 12px;
}


.chart-header h3,
.review-section h3 {
    margin: 0;
}


.chart-container {
    width: 100%;

    overflow: auto;

    border: 1px solid #e5e7eb;

    border-radius: 8px;

    background: #111827;
}


.chart-container img {
    display: block;

    width: 100%;

    height: auto;

    min-width: 700px;
}


.secondary-button {
    border: 1px solid #d1d5db;

    background: white;

    color: #111827;

    padding: 10px 16px;

    border-radius: 8px;

    cursor: pointer;
}


.secondary-button:hover {
    background: #f3f4f6;
}


.evaluation-progress {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;

    margin-top: 18px;
    padding-top: 14px;

    border-top: 1px solid #e5e7eb;

    font-size: 14px;
    color: #4b5563;
}

.evaluation-progress strong {
    color: #111827;
}


.review-section {
    margin-top: 30px;

    padding-top: 25px;

    border-top: 1px solid #e5e7eb;
}


.decision-buttons {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 15px;

    margin-top: 15px;
}


.decision-button {
    min-height: 60px;

    border: 2px solid transparent;

    border-radius: 10px;

    background: #f3f4f6;

    cursor: pointer;

    font-size: 18px;

    font-weight: 700;
}


.decision-button.yes.selected {
    border-color: #15803d;

    background: #dcfce7;
}


.decision-button.no.selected {
    border-color: #b91c1c;

    background: #fee2e2;
}


/* Marking quality selected states */

.decision-button#marking-correct-button.selected {
    border-color: #15803d;

    background: #dcfce7;
}


.decision-button#marking-incorrect-button.selected {
    border-color: #b91c1c;

    background: #fee2e2;
}


.reason-label {
    display: block;

    margin-top: 20px;

    margin-bottom: 8px;

    font-weight: 600;
}


textarea {
    width: 100%;

    resize: vertical;

    padding: 12px;

    border: 1px solid #d1d5db;

    border-radius: 8px;

    outline: none;
}


textarea:focus {
    border-color: #6b7280;
}


.submit-button {
    width: 100%;

    margin-top: 15px;

    min-height: 52px;

    border: none;

    border-radius: 9px;

    background: #111827;

    color: white;

    font-size: 16px;

    font-weight: 700;

    cursor: pointer;
}


.submit-button:disabled {
    background: #9ca3af;

    cursor: not-allowed;
}


.message {
    margin-top: 12px;

    font-size: 14px;
}


.empty {
    text-align: center;

    padding: 50px 20px;
}


.empty p {
    color: #6b7280;
}


.error {
    border-left: 5px solid #dc2626;
}


.error h2 {
    margin-top: 0;
}


@media (max-width: 800px) {

    .container {
        padding: 12px;
    }


    .header {
        align-items: flex-start;

        flex-direction: column;
    }


    .details-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


    .card {
        padding: 15px;
    }

}


@media (max-width: 480px) {

    .details-grid {
        grid-template-columns: 1fr;
    }


    .decision-buttons {
        grid-template-columns: 1fr;
    }


    .chart-header {
        align-items: stretch;

        flex-direction: column;
    }


    .secondary-button {
        width: 100%;
    }


    .header h1 {
        font-size: 22px;
    }

}