/* OJ 代码区深色可读补丁（2026-10-27）
 * 问题：深色主题下代码区仍是浅底深字，实际对比度不足，看不清
 * 处理：背景压深 + 文字提亮 + 光标/选中高亮，行号区同步
 */
#view .cc-editor,
.cc-editor {
  background: #0f1430 !important;
  border: 1px solid rgba(255,255,255,.16) !important;
  border-radius: 12px !important;
  box-shadow: 0 0 0 1px rgba(124,92,240,.18), 0 10px 30px rgba(0,0,0,.35) inset !important;
}

#view #editor,
#view .cc-editor #editor {
  background: #0f1430 !important;
  color: #eef1ff !important;
  caret-color: #7cf3ff !important;
  font-size: 14.5px !important;
  line-height: 1.65 !important;
  text-shadow: 0 0 1px rgba(255,255,255,.15) !important;
}

/* 行号 */
.cc-gutter {
  background: #0b1029 !important;
  color: #7f88b0 !important;
  border-right: 1px solid rgba(255,255,255,.1) !important;
}

/* 选中文字 */
#view #editor::selection,
#view #editor *::selection { background: rgba(124,92,240,.45) !important; color: #fff !important; }

/* 出错行高亮条在深底上要更明显 */
.cc-hl { background: rgba(255,80,80,.22) !important; border-left-color: #ff5a5a !important; }

/* 运行输入框也同步 */
#view #stdin {
  background: #0f1430 !important;
  color: #eef1ff !important;
  border-color: rgba(255,255,255,.16) !important;
}

/* 判题输出区 */
#view pre.out, #result pre {
  background: #0b1029 !important;
  color: #dfe5ff !important;
  border-radius: 10px !important;
}
