.cn-writing-check{
  --cn-writing-ink:#0b2742;
  --cn-writing-muted:#64788d;
  --cn-writing-line:#d7e1eb;
  --cn-writing-blue:#0e5079;
  overflow:hidden;
  border:1px solid var(--cn-writing-line);
  border-radius:14px;
  color:var(--cn-writing-ink);
  background:#fff;
  box-shadow:0 8px 24px rgba(9,35,58,.08);
}

.cn-writing-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:14px 16px;
  border-bottom:1px solid var(--cn-writing-line);
  background:#f6f9fc;
}

.cn-writing-head>div{
  min-width:0;
  display:grid;
  gap:3px;
}

.cn-writing-head strong{
  color:var(--cn-writing-ink);
  font-size:14px;
}

.cn-writing-head small{
  color:var(--cn-writing-muted);
  font-size:11px;
}

.cn-writing-run{
  flex:0 0 auto;
  min-height:38px;
  border-color:#b9cad9!important;
  color:#fff!important;
  background:var(--cn-writing-blue)!important;
}

.cn-writing-summary{
  padding:10px 16px;
  border-bottom:1px solid var(--cn-writing-line);
  color:#536a80;
  background:#fff;
  font-size:12px;
  font-weight:800;
}

.cn-writing-summary[data-tone="clear"]{
  color:#176c43;
  background:#eef9f3;
}

.cn-writing-summary[data-tone="review"]{
  color:#865b05;
  background:#fff9e8;
}

.cn-writing-summary[data-tone="warning"]{
  color:#9c302b;
  background:#fff1ef;
}

.cn-writing-list{
  max-height:420px;
  overflow:auto;
  overscroll-behavior:contain;
}

.cn-writing-issue{
  display:grid;
  gap:9px;
  padding:14px 16px;
  border-bottom:1px solid #e7edf3;
}

.cn-writing-issue:last-child{border-bottom:0}

.cn-writing-issue-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

.cn-writing-kind{
  padding:4px 8px;
  border-radius:999px;
  color:#194d72;
  background:#e8f2fa;
  font-size:10px;
  font-weight:900;
  letter-spacing:.055em;
  text-transform:uppercase;
}

.cn-writing-issue[data-type="grammar"] .cn-writing-kind{
  color:#704c08;
  background:#fff2cf;
}

.cn-writing-issue[data-type="clarity"] .cn-writing-kind{
  color:#5e3e83;
  background:#f1eafb;
}

.cn-writing-field{
  overflow:hidden;
  color:var(--cn-writing-muted);
  font-size:11px;
  font-weight:700;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.cn-writing-issue p{
  margin:0;
  color:var(--cn-writing-ink);
  font-size:13px;
  line-height:1.45;
}

.cn-writing-context{
  overflow:hidden;
  padding:9px 10px;
  border:1px solid #e1e8ef;
  border-radius:8px;
  color:#52677b;
  background:#f8fafc;
  font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  font-size:11px;
  line-height:1.45;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.cn-writing-change{
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
  font-size:12px;
}

.cn-writing-change span{
  overflow:hidden;
  color:#9d3832;
  text-decoration:line-through;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.cn-writing-change b{color:#8293a4}

.cn-writing-change strong{
  overflow:hidden;
  color:#176c43;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.cn-writing-apply{
  justify-self:start;
  min-height:34px;
  padding:6px 10px!important;
  border-color:#b8ccdc!important;
  color:#164d72!important;
  background:#edf5fb!important;
  font-size:11px!important;
  font-weight:800!important;
}

.cn-writing-issue>small{
  color:#77899b;
  font-size:11px;
}

.cn-writing-clear{
  padding:24px 18px;
  color:#176c43;
  text-align:center;
  font-size:13px;
  font-weight:800;
}

@media(max-width:680px){
  .cn-writing-head{
    align-items:stretch;
    flex-direction:column;
  }

  .cn-writing-run{width:100%}
  .cn-writing-list{max-height:340px}
}

