/* Readable text pairs for CTOJ; do not recolor nickname ranks or judge badges. */
html.ctoj-ui[data-ctoj-contrast="light"]{--cc-text:#172b44;--cc-muted:#4b6078;--cc-link:#0759a3;--cc-link-hover:#063e73;--cc-input:#fff;--cc-soft:#edf5fc;--cc-line:#8a9db3;--cc-selection:#cce5ff;--cc-selection-ink:#102a43;--cu-muted:#4b6078}
html.ctoj-ui[data-ctoj-contrast="dark"]{--cc-text:#edf4ff;--cc-muted:#b7c9dd;--cc-link:#91cbff;--cc-link-hover:#cce8ff;--cc-input:#142335;--cc-soft:#243b53;--cc-line:#7894ae;--cc-selection:#385c82;--cc-selection-ink:#fff;--cu-muted:#b7c9dd}
html.ctoj-ui[data-ctoj-contrast] #app .content-app{color:var(--cc-text)!important}
html.ctoj-ui[data-ctoj-contrast] #app :is(.panel-title,.panel-title h2,.ivu-card-head,.ivu-card-head p,.ivu-table td,.ivu-table th,.ivu-table-tip){color:var(--cc-text)!important}
html.ctoj-ui[data-ctoj-contrast] #app .ivu-table td>.ivu-table-cell{color:inherit!important}
html.ctoj-ui[data-ctoj-contrast][data-cc-problems] #app .ivu-table :is(td:nth-child(1),td:nth-child(2)) :is(.ivu-table-cell,a,span){color:var(--cc-link)!important;opacity:1!important}
html.ctoj-ui[data-ctoj-contrast][data-cc-problems] #app .ivu-table td:nth-child(2) a{font-weight:600!important;text-decoration:none}
html.ctoj-ui[data-ctoj-contrast][data-cc-problems] #app .ivu-table :is(td:nth-child(1),td:nth-child(2)) a:hover{color:var(--cc-link-hover)!important;text-decoration:underline!important;text-underline-offset:3px}
html.ctoj-ui[data-ctoj-contrast] #app #problem-main :is(#problem-content,.markdown-body){color:var(--cc-text)!important}
html.ctoj-ui[data-ctoj-contrast] #app #problem-main #problem-content :is(p,li,div,span,strong,b,em,i,td,th,h1,h2,h3,h4,h5,h6):not(pre *):not(code *):not(.katex *):not(.MathJax *){color:inherit!important}
html.ctoj-ui[data-ctoj-contrast] #app #problem-main #problem-content :is(a,a span){color:var(--cc-link)!important}
html.ctoj-ui[data-ctoj-contrast] #app #problem-main #problem-content :is(pre,pre code){background:var(--cc-soft)!important;color:var(--cc-text)!important;border-color:var(--cc-line)!important}
html.ctoj-ui[data-ctoj-contrast] #app #problem-main #problem-content :not(pre)>code{background:var(--cc-soft)!important;color:var(--cc-text)!important}
html.ctoj-ui[data-ctoj-contrast] #app :is(.ivu-input,.ivu-select-selection,.ivu-input-number-input){background:var(--cc-input)!important;color:var(--cc-text)!important;border-color:var(--cc-line)!important;opacity:1}
html.ctoj-ui[data-ctoj-contrast] #app :is(.ivu-input,.ivu-input-number-input)::placeholder{color:var(--cc-muted)!important;opacity:1!important}
html.ctoj-ui[data-ctoj-contrast] #app :is(.ivu-select-placeholder,.ivu-select-selected-value,.ivu-select-item){color:var(--cc-text)!important}
html.ctoj-ui[data-ctoj-contrast] #app .ivu-select-item-selected{background:var(--cc-soft)!important;color:var(--cc-link)!important}
html.ctoj-ui[data-ctoj-contrast] #app #submit-code :is(.csw-tests textarea,.ci-expected-label textarea){background:var(--cc-input)!important;color:var(--cc-text)!important;border-color:var(--cc-line)!important}
html.ctoj-ui[data-ctoj-contrast] #app #submit-code .csw-tests textarea::placeholder{color:var(--cc-muted)!important;opacity:1!important}
html.ctoj-ui[data-ctoj-contrast] #app :is(.ctc-state,.ccp-title,.ccp-header .ctc-state,.rh-metric-label,.rh-footer p,.rh-place){color:var(--cc-muted)!important}
html.ctoj-ui[data-ctoj-contrast] #app :is(.ctc-height button,.ctc-modes button,.ctc-tabs button,.ccp-header .ccp-copy){background:var(--cc-soft)!important;color:var(--cc-text)!important;border-color:var(--cc-line)!important}
html.ctoj-ui[data-ctoj-contrast] #app :is(.ctc-height button,.ctc-modes button,.ctc-tabs button)[aria-pressed="true"]{background:var(--cc-selection)!important;color:var(--cc-selection-ink)!important;border-color:var(--cc-link)!important}
html.ctoj-ui[data-ctoj-contrast] #app :is(a,button,input,textarea,select):focus-visible{outline:3px solid var(--cc-link)!important;outline-offset:3px}
html.ctoj-ui[data-ctoj-contrast] #app #problem-content ::selection{background:var(--cc-selection)!important;color:var(--cc-selection-ink)!important}
@media print{html.ctoj-ui[data-ctoj-contrast] #app #problem-main #problem-content{color:#111!important;background:#fff!important}html.ctoj-ui[data-ctoj-contrast] #app #problem-main #problem-content :is(pre,pre code){color:#111!important;background:#f5f5f5!important}}

html.ctoj-ui[data-ctoj-contrast] #app #header :is(.drop-menu-title,.change-menu-title){color:var(--cc-text)!important}
html.ctoj-ui[data-ctoj-contrast] #app #problem-main #submit-code .ccp-header .ccp-copy{background:var(--cc-soft)!important;color:var(--cc-text)!important;border-color:var(--cc-line)!important}
html.ctoj-ui[data-ctoj-contrast] #app #problem-main #submit-code .ccp-header .ctc-state{color:var(--cc-muted)!important}
