.leet-status {
    color: #64748b;
    font-size: 11px;
    margin: 8px 0 16px;
}

.leet-status:empty {
    display: none;
}

.leet-status.is-error {
    color: #cc0000;
    font-weight: bold;
}

.solution-controls {
    margin: 10px 0 8px;
}

.solution-search-label {
    color: #333;
    display: block;
    font-family: Tahoma, Verdana, sans-serif;
    font-size: 10px;
    font-weight: bold;
    letter-spacing: .8px;
    margin: 0 0 3px;
    text-transform: uppercase;
}

.solution-search {
    border: 1px solid #cbd5e1;
    font-family: Verdana, Tahoma, Arial, sans-serif;
    font-size: 12px;
    padding: 5px 6px;
    width: 100%;
}

.solution-table-wrap {
    border: 1px solid #cbd5e1;
    margin: 8px 0 14px;
    max-width: 100%;
    overflow-x: auto;
}

.solution-table-wrap[hidden] {
    display: none;
}

.solution-table {
    border-collapse: collapse;
    font-size: 11px;
    min-width: 560px;
    width: 100%;
}

.solution-table th,
.solution-table td {
    border-bottom: 1px solid #cbd5e1;
    padding: 5px 6px;
    text-align: left;
    vertical-align: top;
}

.solution-table th {
    background: #eef4ff;
    color: #333;
    font-family: Tahoma, Verdana, sans-serif;
    font-size: 10px;
    letter-spacing: .7px;
    text-transform: uppercase;
}

.solution-row {
    cursor: pointer;
}

.solution-row:focus {
    outline: 2px solid #4a7fc4;
    outline-offset: -2px;
}

.solution-row:hover,
.solution-row:hover {
    background: #f8fbff;
}

.solution-row.is-active {
    background: #1a3f77;
    color: #fff;
    box-shadow: inset 0 0 0 2px #0b1020;
}

.solution-row.is-active td {
    border-bottom-color: #1a3f77;
}

.solution-row.is-active .difficulty,
.solution-row.is-active .solution-open-cell {
    color: #fff;
}

.solution-title-cell {
    font-weight: bold;
}

.solution-open-cell {
    color: #1d4ed8;
    font-family: Tahoma, Verdana, sans-serif;
    font-size: 10px;
    font-weight: bold;
    letter-spacing: .6px;
    text-transform: uppercase;
    white-space: nowrap;
}

.solution-detail {
    margin: 14px 0 18px;
}

.solution-detail:empty {
    display: none;
}

.solution-detail-panel {
    background: #fff;
    border: 1px solid #4a7fc4;
    border-top-width: 6px;
    padding: 10px;
}

.solution-entry {
    border-top: 0;
    padding: 0;
}

.solution-entry h3 {
    margin-top: 0;
}

.solution-meta {
    color: #64748b;
    font-size: 10px;
    margin: 4px 0 10px;
}

.solution-meta span {
    display: inline-block;
    margin-right: 8px;
    white-space: nowrap;
}

.difficulty {
    color: #0b1020;
    font-weight: bold;
    text-transform: uppercase;
}

.difficulty-easy {
    color: #047857;
}

.difficulty-medium {
    color: #b45309;
}

.difficulty-hard {
    color: #b91c1c;
}

.solution-section {
    margin: 8px 0;
}

.solution-section h4 {
    color: #333;
    font-family: Tahoma, Verdana, sans-serif;
    font-size: 10px;
    letter-spacing: .8px;
    margin: 0 0 3px;
    text-transform: uppercase;
}

.solution-section p {
    margin: 0;
    white-space: pre-wrap;
}

.solution-complexity {
    display: grid;
    gap: 4px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 8px 0;
}

.complexity-item {
    background: #eef4ff;
    border: 1px solid #cbd5e1;
    padding: 5px 6px;
}

.complexity-label {
    color: #64748b;
    display: block;
    font-size: 9px;
    letter-spacing: .6px;
    text-transform: uppercase;
}

.complexity-value {
    color: #0b1020;
    font-family: Consolas, "Courier New", monospace;
    font-size: 12px;
}

.solution-warning {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
    font-size: 11px;
    margin: 8px 0;
    padding: 6px;
}

.code-panel {
    margin-top: 10px;
}

.source-link {
    font-size: 10px;
}

.solution-code {
    background: #1e1e1e;
    border: 1px solid #0b1020;
    margin: 6px 0 0;
    max-width: 100%;
    overflow-x: auto;
}

.solution-code code.hljs,
.solution-code code {
    font-family: Consolas, "Courier New", monospace;
    font-size: 12px;
    line-height: 1.45;
    min-width: max-content;
    padding: 10px;
}

.test-results-panel {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    margin-top: 10px;
    padding: 8px;
}

.test-results-header {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: space-between;
    margin-bottom: 6px;
}

.test-results-header h4 {
    color: #333;
    font-family: Tahoma, Verdana, sans-serif;
    font-size: 10px;
    letter-spacing: .8px;
    margin: 0;
    text-transform: uppercase;
}

.test-summary {
    color: #fff;
    font-family: Tahoma, Verdana, sans-serif;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 5px;
    text-transform: uppercase;
}

.test-summary.is-pass {
    background: #047857;
}

.test-summary.is-fail {
    background: #b91c1c;
}

.test-results-list {
    margin: 0;
    padding: 0;
}

.test-result {
    align-items: baseline;
    display: grid;
    gap: 4px 6px;
    grid-template-columns: auto minmax(0, 1fr);
    margin: 4px 0;
    padding: 5px 6px;
}

.test-result.is-pass {
    background: #ecfdf5;
    color: #065f46;
}

.test-result.is-fail {
    background: #fef2f2;
    color: #991b1b;
}

.test-case-label {
    font-family: Consolas, "Courier New", monospace;
    font-size: 11px;
    min-width: 0;
}

.test-case-result {
    font-family: Consolas, "Courier New", monospace;
    font-size: 11px;
    grid-column: 2;
    min-width: 0;
    overflow-wrap: anywhere;
}

.test-results-empty {
    color: #64748b;
    margin: 0;
}

@media (max-width: 600px) {
    .solution-meta,
    .leet-status,
    .solution-warning {
        font-size: 13px;
    }

    .solution-search-label,
    .solution-table th,
    .solution-table td,
    .solution-open-cell {
        font-size: 13px;
    }

    .solution-search {
        font-size: 16px;
    }

    .solution-section h4 {
        font-size: 13px;
    }

    .test-results-header h4,
    .test-summary,
    .test-case-label,
    .test-case-result {
        font-size: 13px;
    }

    .solution-complexity {
        grid-template-columns: 1fr;
    }

    .source-link {
        font-size: 13px;
    }

    .solution-code code.hljs,
    .solution-code code {
        font-size: 13px;
    }
}
