.code-help {
  --ch-ink:#162b48;
  --ch-border:#d9e4f3;
  --ch-subtle:#536782;
  --ch-primary:#245bde;
  max-width: 1060px;
  margin: 0 auto 42px;
  padding: 0 20px;
  color: var(--ch-ink);
}
.ch-heading, .ch-row, .ch-subheading, .ch-actions, .ch-tabs {
  display:flex;
  gap:12px;
  align-items:center;
  justify-content:space-between;
}
.ch-heading { margin-bottom: 17px; flex-wrap:wrap; }
.ch-heading h1 { margin:0; font-size:clamp(25px, 3vw, 34px); overflow-wrap:anywhere; }
.ch-heading p { margin:5px 0 0; color:var(--ch-subtle); }
.ch-card { background:#fff; border:1px solid var(--ch-border); border-radius:16px; margin-bottom:16px; }
.ch-row, .ch-body, .ch-form { padding:20px 24px; }
.ch-row + .ch-row, .ch-tabs { border-bottom: 0; border-top: 1px solid var(--ch-border); }
.ch-tabs { border-top:0; border-bottom:1px solid var(--ch-border); justify-content:flex-start; padding:14px 24px; }
.ch-row h2 { margin:0 0 5px; font-size:18px; overflow-wrap:anywhere; }
.ch-row h2 a { color:var(--ch-ink); }
.ch-row h2 a:hover, .ch-back { color:var(--ch-primary); }
.ch-meta { color:var(--ch-subtle); font-size:13px; }
.ch-status { flex:none; border-radius:99px; padding:4px 10px; color:#805100; background:#fff3d3; font-size:12px; font-weight:700; }
.ch-status-new { background:#fde6e9; color:#9c1d34; }
.ch-status-done { background:#e3f4eb; color:#11613d; }
.ch-empty { padding:32px 20px; margin:0; color:var(--ch-subtle); text-align:center; }
.ch-back { display:inline-block; margin-bottom:12px; }
.ch-button {
  display:inline-flex; align-items:center; justify-content:center;
  min-height:36px; padding:7px 12px; border-radius:8px; border:1px solid #d9e4f3;
  color:#21456e; background:#fff; font:inherit; font-weight:650; cursor:pointer;
}
.ch-button[hidden], .ch-count[hidden] { display:none !important; }
.ch-primary { background:#245bde; border-color:#245bde; color:#fff !important; }
.ch-primary:hover { background:#1847bc; color:#fff; }
.ch-selected { color:#1c4fc9; background:#edf3ff; }
.ch-form label, .ch-rank-weights label { display:block; font-weight:650; }
.ch-form input, .ch-form textarea, .ch-rank-weights input {
  display:block; width:100%; margin:6px 0 13px; padding:9px 11px;
  border:1px solid #cfdcee; border-radius:8px; background:#f8faff; color:#162b48; font:inherit;
}
.ch-form textarea { resize:vertical; }
.ch-fields { display:grid; grid-template-columns: 2fr 1fr; gap:12px; }
.ch-actions { justify-content:flex-end; }
.ch-form textarea.ch-code-input, .ch-line code, .ch-revision { font-family:Consolas, Monaco, monospace; font-size:14px; }
.ch-subheading { flex-wrap:wrap; margin-bottom:12px; }
.ch-body h2, .ch-form h2 { font-size:18px; margin:0 0 9px; }
.ch-text { white-space:pre-wrap; overflow-wrap:anywhere; margin:0; }
.ch-lines, .ch-revision { border:1px solid var(--ch-border); border-radius:10px; background:#f6f8fc; padding:8px 0; margin:0; }
.ch-lines { max-height:66vh; overflow:auto; list-style:none; }
.ch-line { display:grid; grid-template-columns:3.1rem minmax(0, 1fr); column-gap:8px; min-height:24px; }
.ch-line code { padding:2px 10px 2px 0; white-space:pre-wrap; overflow-wrap:anywhere; }
.ch-line button, .ch-line-num { border:0; background:none; color:#566b8b; font:inherit; padding:0 8px; text-align:right; }
.ch-line button:hover, .ch-line button:focus-visible { background:#e3edff; color:#1c47ac; cursor:pointer; }
.ch-line-notes { margin:4px 10px 7px 3.6rem; padding:7px 22px; border-left:3px solid #5a84fa; background:#eaf0ff; overflow-wrap:anywhere; }
.ch-revision { overflow:auto; padding:12px; margin:0; }
.ch-count { display:inline-block; min-width:1.35em; padding:0 .25em; border-radius:20px; background:#bd2141; color:white;
  text-align:center; font:700 11px/1.35rem system-ui,sans-serif; vertical-align:middle; }
.ch-mobile-links { display:flex; align-items:center; gap:8px; color:#224fb9; }
.ch-rank-weights { margin:0 0 16px; padding:12px 16px; border:1px solid #d9e4f3; border-radius:12px; background:#fff; }
.ch-rank-weights form { display:flex; flex-wrap:wrap; align-items:flex-end; gap:8px 14px; margin:10px 0; }
.ch-rank-weights summary { color:#204eac; font-weight:700; cursor:pointer; }
.ch-rank-weights input { max-width:11em; margin-bottom:0; }
.ch-rank-weights p { margin:6px 0; color:#536782; }
.ch-inbox-top { padding:16px 20px; background:#f2f6ff; border-bottom:1px solid #d9e4f3; }
.ch-inbox-top h1 { margin:0 0 4px; font-size:21px; }
.ch-inbox-top p { margin:0; color:#536782; }
.ch-inbox .messagepad__list-item.active { background:#eaf1ff; border-color:#3871ed; }
.ch-inbox .messagepad__username { font-weight:700; color:#152943; }
.ch-inbox .messagepad__desc { color:#506783; }
.ch-inbox .messagepad__message__body { border-radius:11px; line-height:1.65; }
.ch-inbox .messagepad__header { height:2.35rem; font-weight:700; background:#f7faff; }
.ch-inbox .messagepad__content { top:2.35rem; padding:1.2rem; }
@media (max-width:600px) {
  .code-help { padding:0 12px; }
  .ch-row, .ch-body, .ch-form, .ch-tabs, .ch-inbox-top { padding:14px; }
  .ch-fields { grid-template-columns:1fr; gap:0; }
  .ch-inbox .messagepad__sidebar { width:6rem; }
  .ch-inbox :is(.messagepad__header,.messagepad__content,.messagepad__input) { left:6rem; }
  .ch-inbox .messagepad__content { padding:.6rem; }
  .ch-inbox .messagepad__list-item .user-profile-avatar { display:none; }
  .ch-inbox .messagepad__list-item { padding:.45rem; }
  .ch-inbox .messagepad__message__avatar { display:none; }
}
