html, body {
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    color: #222222;
}

.container {
    width: 1250px;
    margin: 0 auto;
    padding: 0;
    position: relative;
    background-color: rgb(243, 243, 243);
}

#body {
    width: 100%;
    padding-bottom: 10px;
}

.card {
    width: 1064px;
    margin: 65px auto 0 auto;
    border-radius: 8px 8px 2px 2px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.cardTitle {
    border-radius: 8px 8px 0 0;
    background-color: rgb(90,19,92);
    color: #ffffff;
    text-align: center;
    font-weight: bolder;
    font-size: 24px;
    padding-top: 5px;
    padding-bottom: 5px;
}

.cardP {
    font-size: 18px;
    margin: 14px 0 0 0;
    padding-left: 100px;
    padding-right: 100px;
    text-align: justify;
}

.cardContext {
    width: 100%;
    margin: 0;
    padding: 18px 100px 18px 100px;
    background-color: rgb(243, 243, 243);
    box-sizing: border-box;
}

.cardHr {
    border: 0;
    border-top: 1px solid #e5e0ea;
    margin: 4px 0 0 0;
}

.options-panel {
    width: 100%;
    box-sizing: border-box;
    background: linear-gradient(180deg, #faf8fb 0%, #f3eef6 100%);
    border: 1px solid #ddd0e4;
    border-radius: 8px;
    padding: 16px 18px 14px;
    margin: 0 0 18px 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.option-item {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
}

.option-label {
    font-size: 16px;
    font-weight: 700;
    color: #3d2144;
}

.option-control,
.static-value {
    font-size: 15px;
    height: 34px;
    box-sizing: border-box;
    border: 1px solid #c4b3cf;
    border-radius: 6px;
    padding: 0 10px;
    background: #ffffff;
    color: #222222;
    display: flex;
    align-items: center;
}

.input-panel {
    width: 100%;
    box-sizing: border-box;
}

.section-title,
.section-heading {
    margin: 16px 0 10px 0;
    color: rgb(90,19,92);
    font-size: 19px;
    font-weight: bold;
}

.upload-row,
.download-row,
.submit-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.upload-row {
    justify-content: flex-end;
    margin-top: 8px;
}

.download-row {
    margin-top: 14px;
}

.result-actions {
    margin: 16px 0 14px 0;
    align-items: center;
}

.compact-download-row {
    margin: 12px 0 0 0;
    gap: 10px;
}

.submit-row {
    justify-content: center;
    margin-top: 20px;
}

.file-name {
    font-size: 17px;
    color: #555555;
    min-width: 210px;
    text-align: right;
    word-break: break-all;
}

.hidden-file,
.hidden {
    display: none !important;
}

.tool-button,
.submit-button,
.archive-button {
    cursor: pointer;
    border-radius: 4px;
    text-decoration: none;
}

.tool-button {
    border: 1px solid #9e9e9e;
    background: #e6e6e6;
    color: #000000;
    padding: 3px 14px;
    height: 32px;
    font-size: 17px;
}

.submit-button,
.archive-button {
    border: 0;
    background: rgb(90,19,92);
    color: #ffffff;
}

.submit-button {
    width: 120px;
    height: 38px;
    font-size: 18px;
}

.archive-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    font-size: 15px;
}

.archive-button:hover {
    background: #7a1a7c;
}

.secondary-link {
    font-size: 17px;
    color: rgb(90,19,92);
    text-decoration: underline;
}

.tip-text,
.muted-note,
.empty-note,
.table-note {
    font-size: 16px;
    color: #555555;
    line-height: 1.45;
    text-align: justify;
}

.error-box {
    width: 100%;
    margin: 0 auto 15px auto;
    padding: 10px 14px;
    border: 1px solid #cc7777;
    background-color: #fff1f1;
    color: #9b0000;
    font-size: 16px;
    border-radius: 4px;
    box-sizing: border-box;
    white-space: pre-wrap;
}

.info-table,
.meta-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
    background: #ffffff;
}

.info-table th,
.info-table td,
.meta-table th,
.meta-table td {
    border: 1px solid #ddd6e4;
    padding: 8px 12px;
    text-align: left;
    vertical-align: top;
}

.info-table th,
.meta-table th {
    width: 220px;
    background: #f6f2f8;
    color: #4b3450;
}

.summary-table th {
    width: 260px;
}

.score-info-table th {
    width: 150px;
}

.result-area {
    min-height: 68px;
}

.result-width {
    width: 100%;
    max-width: none;
    margin-left: auto;
    margin-right: auto;
}

.prompt-box {
    margin: 0 0 14px 0;
    padding: 12px 14px;
    border: 1px solid #d8c8e4;
    border-radius: 6px;
    background: #fbf8fd;
    box-sizing: border-box;
}

.prompt-title {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: bold;
    color: #4b3450;
}

.prompt-list {
    margin: 0;
    padding-left: 20px;
    font-size: 15px;
    line-height: 1.5;
    color: #4b3450;
}

.centered-section-heading {
    text-align: center;
}

.result-table-heading {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
}

.centered-download-row {
    justify-content: center;
    margin-top: 14px;
}

.table-details {
    border: 1px solid #ddd6e4;
    border-radius: 6px;
    margin: 0;
    padding: 10px 12px 12px 12px;
    background: #ffffff;
}

.table-details + .table-details {
    margin-top: 14px;
}

.table-details[open] {
    box-shadow: inset 0 0 0 1px rgba(90, 19, 92, 0.03);
}

.table-details summary {
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    color: #4b3450;
}

.result-panel {
    margin-top: 14px;
}

.result-panel .info-table,
.result-panel .table-scroll {
    margin-top: 10px;
}

.table-summary-name {
    font-weight: normal;
    color: #6e6275;
    font-size: 15px;
}

.status-list {
    margin-top: 18px;
    display: grid;
    gap: 10px;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    color: #5a5060;
}

.status-item span {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid #b7acbe;
    background: #ffffff;
    box-sizing: border-box;
}

.status-item.done span {
    border-color: #1b7f2a;
    background: #1b7f2a;
}

.status-item.active span {
    border-color: rgb(90,19,92);
    background: rgb(90,19,92);
}

.status-item.failed span {
    border-color: #b00020;
    background: #b00020;
}

.table-scroll {
    max-height: 460px;
    overflow: auto;
    margin-top: 10px;
    border: 1px solid #ddd6e4;
    border-radius: 4px;
    background: #ffffff;
}

.score-table-scroll {
    width: 100%;
}

.result-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: #ffffff;
}

.score-table {
    margin: 0 auto;
}

.result-error-box {
    width: 100%;
    margin: 0 auto 15px auto;
    padding: 10px 14px;
    border: 1px solid #cc7777;
    background-color: #fff1f1;
    color: #9b0000;
    font-size: 16px;
    border-radius: 4px;
    box-sizing: border-box;
    white-space: pre-wrap;
}

.result-error-title {
    font-weight: bold;
    margin-bottom: 6px;
}

.result-error-text {
    line-height: 1.45;
}

.result-table th,
.result-table td {
    border: 1px solid #ddd6e4;
    padding: 8px 10px;
    text-align: left;
    vertical-align: top;
}

.result-table th {
    background-color: #f6f2f8;
    color: #4b3450;
    font-weight: bold;
}

.sticky-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
}

.footer {
    background-color: rgb(90,19,92);
    min-height: 60px;
    line-height: 20px;
    text-align: center;
    color: white;
    padding-top: 12px;
    box-sizing: border-box;
    margin-top: 18px;
}

.footer-line {
    height: 20px;
    line-height: 20px;
}

@media (max-width: 1100px) {
    .container,
    .card {
        width: 95%;
    }

    .cardContext,
    .cardP {
        padding-left: 24px;
        padding-right: 24px;
    }

    .options-panel {
        grid-template-columns: 1fr;
    }

    .file-name {
        text-align: left;
    }
}
