/* Bolor 10-26 «Автомат хяналт» — кодын мөр, төлөв, сэтгэгдэл бүр карт, нугалсан тоо. Энгийн хүнд ойлгомжтой. */
body[data-view=comments] #stats,body[data-view=comments] #mode-banner{display:none}
.cw-intro{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:4px 0 14px;flex-wrap:wrap}
.cw-intro p{max-width:760px;margin:0;font-size:14px}
.cw-intro .cw-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.cw-intro small{color:var(--muted);font-size:12px}
.cw-help{font-size:13px;line-height:1.7;color:#5d6f5a;background:#f0f5eb;border:1px solid #deead8;border-radius:9px;padding:10px 16px;margin:16px 0}
.cw-help b{color:#3f5a37}.cw-help summary{cursor:pointer;list-style:none}.cw-help summary::-webkit-details-marker{display:none}.cw-help[open] summary{margin-bottom:6px}
.cw-alert{color:#b14b2a;font-weight:650}
.cw-c-step .ok{color:#2f7a5f}.cw-c-step .warn{color:#9a6a1a}.cw-c-step .bad{color:#b14b2a}.cw-c-step .muted{color:var(--muted)}

/* кодын мөр */
.cw-codes{margin-bottom:16px}
.cw-codes-head{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap;margin-bottom:8px}.cw-codes-head h3{font-size:15px;font-weight:700;margin:0}.cw-codes-head small{color:var(--muted);font-size:12px}
.cw-codegrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:10px}
.cw-codecard{position:relative;background:#fff;border:1.5px solid var(--line);border-radius:12px;box-shadow:var(--shadow);display:flex;min-height:92px}
.cw-codecard.on{border-color:var(--teal);box-shadow:0 0 0 3px #137c7722}.cw-codecard.off{opacity:.6}
.cw-codebtn{flex:1;text-align:left;padding:12px 40px 12px 14px;display:flex;flex-direction:column;gap:3px}
.cw-codebig{font-size:26px;font-weight:800;color:var(--teal);line-height:1.1;letter-spacing:.5px}
.cw-codetitle{font-size:13px;font-weight:650;color:var(--ink)}
.cw-codemeta{font-size:12px;color:var(--muted)}
.cw-gear{position:absolute;top:8px;right:8px;width:30px;height:30px;border-radius:8px;border:1px solid var(--line);background:#f7faf9;font-size:16px;color:#5b7172}
.cw-gear:hover{background:#e4f2ef;color:var(--teal)}
.cw-newcode{align-items:center;justify-content:center;font-weight:700;color:var(--teal);border-style:dashed;background:#f7fbfa;font-size:14px}

/* төлөв */
.cw-status{padding:16px 20px;margin-bottom:16px;border-left:5px solid #3fa18d}
.cw-status.bad{border-left-color:#d36f45}
.cw-status h3{font-size:17px;margin:0 0 8px}
.cw-status ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.cw-status li{display:flex;gap:9px;font-size:14px;line-height:1.55;color:var(--ink)}.cw-status li i{font-style:normal;width:20px;flex:none;text-align:center}
.cw-why{font-size:12.5px;color:#7a5a3a;background:#fff8f1;border-radius:8px;padding:8px 12px;margin:10px 0 0}

/* сэтгэгдлийн картууд */
.cw-feed{margin-bottom:16px}
.cw-feed-head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:10px}
.cw-feed-head h3{font-size:16px;font-weight:700;margin:0}.cw-clear{font-size:12px;color:var(--teal);margin-left:6px}
.cw-filter{flex-wrap:wrap}.cw-filter button{font-size:12.5px;padding:6px 10px}
.cw-post{margin-bottom:14px}
.cw-post-head{font-size:13px;color:#5d7172;margin:6px 2px 8px}.cw-post-head a{color:var(--teal);font-weight:600}
.cw-c{background:#fff;border:1px solid var(--line);border-radius:12px;padding:12px 16px;margin-bottom:8px;box-shadow:var(--shadow)}
.cw-c.nothing{border-color:#efc2ad;background:#fffaf7}
.cw-c-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.cw-c-head b{font-size:14px}.cw-c-head small{color:var(--muted);font-size:12px}
.cw-ava{width:30px;height:30px;border-radius:50%;background:#e4f2ef;color:var(--teal);display:grid;place-items:center;font-weight:700;font-size:13px;flex:none}
.cw-tag{margin-left:auto;font-size:12px;font-weight:700;color:var(--teal);background:#eef7f5;border-radius:999px;padding:2px 9px}
.cw-c-text{margin:6px 0 8px 38px;font-size:15px;color:var(--ink);background:#f2f4f5;border-radius:12px;padding:7px 12px;display:inline-block;max-width:calc(100% - 38px);overflow-wrap:anywhere}
.cw-c-text a{color:var(--teal);text-decoration:none;font-weight:700;margin-left:4px}
.cw-c-step{display:flex;gap:8px;margin:4px 0 0 38px;font-size:13.5px;line-height:1.5}.cw-c-step i{font-style:normal;flex:none}
.cw-act{display:inline-block;margin-left:6px;font-weight:700;color:#fff;background:#d36f45;border-radius:7px;padding:3px 9px;text-decoration:none;font-size:12.5px}
.cw-said{color:#1f4f4c}
.cw-c-foot{margin:8px 0 0 38px}.cw-chatbtn{padding:6px 10px;font-size:12.5px}
.cw-more{display:block;margin:6px auto 0}
.cw-thread{display:flex;flex-direction:column;gap:7px;margin:10px 0 0 38px;padding:12px;background:#f6f9f9;border-radius:10px}
.cw-msg{max-width:78%;border-radius:12px;padding:8px 12px;background:#fff;border:1px solid var(--line)}
.cw-msg p{margin:0;font-size:13.5px;line-height:1.5;color:var(--ink);white-space:pre-wrap;overflow-wrap:anywhere}
.cw-msg small{display:block;font-size:11px;color:var(--muted);margin-top:3px}
.cw-msg.in{align-self:flex-start}.cw-msg.out{align-self:flex-end;background:#e4f2ef;border-color:#cde6e1}
.cw-thread-foot{margin-top:6px}

/* нугалсан тоо */
.cw-more-box{padding:0;margin-bottom:16px}.cw-more-box summary{cursor:pointer;padding:14px 20px;font-weight:650;font-size:14px;color:#4f6566}
.cw-tbl{white-space:normal}.cw-tbl th{padding:10px 14px}.cw-tbl td{font-size:13.5px;padding:10px 14px;vertical-align:top}
.cw-tbl td.num{font-size:16px;font-weight:650;text-align:center}.cw-tbl th:nth-child(n+3){text-align:center}
.cw-tbl td.ok{color:#2f7a5f}.cw-tbl td.bad{color:#b14b2a;background:#fff4ee}.cw-tbl td.muted{color:#8a9c9d}.cw-tbl tr.cw-off td{opacity:.6}
.cw-code{color:var(--teal);font-weight:700;white-space:nowrap}
.cw-botline{font-size:13px;color:#5d7172;margin:0;padding:12px 20px;border-top:1px solid var(--line)}

/* тохируулах цонх */
.cw-dialog{width:min(560px,calc(100% - 24px))}
.cw-form label{margin-bottom:12px}.cw-form small{color:var(--muted);font-weight:400}
.cw-chips{display:flex;flex-wrap:wrap;gap:6px;margin:6px 0 10px}
.cw-chipcode{display:inline-flex;align-items:center;gap:4px;background:#e4f2ef;color:var(--dark);font-weight:700;border-radius:999px;padding:4px 6px 4px 12px;font-size:14px}
.cw-chipcode.new{background:#fff5df;color:#8a6420}
.cw-chipcode button{width:22px;height:22px;border-radius:50%;font-size:12px;color:#7c8f90}.cw-chipcode button:hover{background:#fff;color:#b14b2a}
.cw-addrow{display:flex;gap:8px;margin-bottom:14px}.cw-addrow input{flex:1}

@media(max-width:680px){
  .cw-codegrid{grid-template-columns:1fr 1fr}.cw-codebig{font-size:22px}
  .cw-c{padding:10px 12px}.cw-c-text,.cw-c-step,.cw-c-foot,.cw-thread{margin-left:0}.cw-c-text{max-width:100%}
  .cw-msg{max-width:92%}
}
