.submit-box .form-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.5em;
}

.submit-box label {
    color: #fcb092;
}

.submit-box select,
.submit-box textarea {
    font-family: 'Cozette', monospace;
    background: #1f2126;
    border: 1px solid #444;
    color: #fff;
    padding: 0.5rem;
    outline: none;
}

.submit-box select {
    width: fit-content;
    cursor: pointer;
}

.submit-box select:focus,
.submit-box textarea:focus {
    border-color: #666;
}

.submit-box textarea {
    resize: vertical;
    width: 100%;
    box-sizing: border-box;
    tab-size: 4;
    -moz-tab-size: 4;
    white-space: pre;
    overflow-x: auto;
}

.submit-box #error-message {
    color: #ff2a5f;
    display: none;
    font-size: 0.9em;
    line-height: 1.3;
}

.submit-box button[type="submit"] {
    border: 1px solid;
    padding: 0.5rem 2em;
    align-self: flex-end;
    margin-top: 0.5rem;
}

.nav-user {
    color: #fcb092;
}

.problem-preview {
    background-color: rgb(23.25, 24.75, 28.5);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    margin-top: 0.8em;
    margin-bottom: 0.8em;
    gap: 0.5rem;
    position: relative;
}

.problem-preview:hover {
    cursor: pointer;
}

.problem-preview .problem-progress.solved {
    color: #00ffcc;
}

.problem-preview .problem-progress.attempted {
    color: #ff2a5f;
}

.problem-preview .main-link {
    text-decoration: none;
}

.problem-preview .main-link::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
}

.problem-preview .main-link:hover {
    color: #aaaef1;
}

.problem-preview .problem-title {
    font-size: calc(28px * 0.85);
    color: #aaaef1;
}

.problem-preview .problem-detail {
    font-size: calc(17px * 0.85);
    color: #fcb092;
}

.problem-preview .problem-progress {
    font-size: 0.9em;
    color: #b3bdca;
}

.problem-preview .problem-tags {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.problem-preview .tags {
    color: #00ffcc;
    background-color: rgb(42.887826087, 45.6547826087, 52.572173913);
    padding: 4px 10px 4px 10px;
    text-decoration: none;
    font-size: calc(0.9rem * 0.95);
}

.problem-preview .tags:hover {
    text-decoration: underline;
}

@media (min-width: 48em) {
    .problem-preview .problem-title {
        font-size: 28px;
    }
    .problem-preview .problem-detail {
        font-size: 17px;
    }
    .problem-preview .tags {
        font-size: 0.9rem;
    }
}

.register-hint {
    text-align: center;
    margin-top: 0.5rem;
}

.consent-section {
    display: flex;
    gap: 0.5rem;
    align-items: baseline;
    font-size: 0.9em;
    line-height: 1.3;
}

.consent-section input[type="checkbox"] {
    accent-color: #aaaef1;
    cursor: pointer;
}

.problem-view {
    background-color: rgb(23.25, 24.75, 28.5);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    margin-top: 0.8em;
    margin-bottom: 0.8em;
    gap: 0.5rem;
    position: relative;
}

.problem-view .problem-title {
    font-size: calc(28px * 0.85);
    color: #aaaef1;
}

.problem-view .problem-detail {
    font-size: calc(20px * 0.85);
    color: #fcb092;
}

.problem-view .problem-tags {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.problem-view .tags {
    color: #00ffcc;
    background-color: rgb(42.887826087, 45.6547826087, 52.572173913);
    padding: 4px 10px 4px 10px;
    text-decoration: none;
    font-size: calc(0.9rem * 0.95);
}

.problem-view .problem-line {
    opacity: 0.25;
}

.problem-view .problem-statement p {
    margin-top: 0.416vw;
    line-height: 1.3em;
}

.problem-view .problem-statement ul {
    color: #fcb092;
    padding-top: 1em;
    padding-bottom: 1em;
    padding-left: 1em;
}

.problem-view .problem-statement ol {
    color: #fcb092;
    padding-top: 1em;
    padding-bottom: 1em;
    padding-left: 2em;
}

.problem-view .problem-statement img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 1em auto;
}

.problem-view .problem-statement .code {
    margin-top: 1em;
    text-indent: 0;
    line-height: 1.4;
}

@media (min-width: 48em) {
    .problem-view .problem-title {
        font-size: 28px;
    }
    .problem-view .problem-detail {
        font-size: 20px;
    }
    .problem-view .tags {
        font-size: 0.9rem;
    }
}

.sub-meta {
    color: #fcb092;
    line-height: 1.4;
}

.sub-table-wrap {
    overflow-x: auto;
}

.sub-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.5rem;
}

.sub-table th,
.sub-table td {
    border: 1px solid #444;
    padding: 0.4rem 0.6rem;
    text-align: left;
    white-space: nowrap;
}

.sub-table th {
    color: #fcb092;
}

.verdict-ac {
    color: #00ffcc;
}

.verdict-fail {
    color: #ff2a5f;
}

.verdict-pd {
    color: #6c7586;
}
