/* 문장 정리 · 맞춤법 찾기 */
.tc { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.tc-text { width: 100%; min-height: 300px; padding: 16px 18px; border: 1px solid var(--line-strong); border-radius: var(--r-md); background: var(--surface); font-size: 16px; line-height: 1.75; resize: vertical; outline: none; transition: border-color .15s, box-shadow .15s; }
.tc-text:focus { border-color: var(--primary); box-shadow: var(--ring); }
.tc-count { margin: 6px 2px 14px; text-align: right; font-variant-numeric: tabular-nums; }
.tc-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.tc-group { margin: 0; padding: 12px 14px 8px; border: 1px solid var(--line); border-radius: var(--r-md); min-width: 0; }
.tc-group legend { padding: 0 6px; font-size: 13.5px; font-weight: 800; color: var(--link); }
.tc-opt { display: flex; align-items: flex-start; gap: 9px; padding: 6px 0; font-size: 14.5px; line-height: 1.5; cursor: pointer; }
.tc-opt input { flex: none; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--primary); }
.tc-opt small { display: block; color: var(--subtle); font-size: 12.5px; }

.tc-result { position: sticky; top: 86px; margin-top: 0; }
.tc-result-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.tc-result-head h2 { margin: 0 0 4px; font-size: 18px; }
.tc-result-head .hint { margin: 0; }
.tc-issues { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; max-height: 62vh; overflow-y: auto; overscroll-behavior: contain; }
.tc-issue { display: grid; gap: 6px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.tc-fix { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 17px; font-weight: 800; }
.tc-fix del { color: #c0392b; text-decoration-thickness: 2px; }
.tc-fix ins { color: var(--link); text-decoration: none; padding: 1px 8px; border-radius: 6px; background: color-mix(in srgb, var(--primary) 10%, var(--surface)); }
.tc-fix span { color: var(--subtle); }
.tc-ctx { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; word-break: break-all; }
.tc-ctx mark { background: color-mix(in srgb, #ffe066 70%, transparent); color: var(--text); border-radius: 3px; padding: 0 2px; }
.tc-why { margin: 0; color: var(--subtle); font-size: 13px; }
.tc-btns { display: flex; gap: 6px; margin-top: 2px; }
.tc-empty { margin: 8px 0 0; padding: 26px 16px; border-radius: var(--r-md); background: color-mix(in srgb, var(--text) 3.5%, var(--surface)); color: var(--muted); text-align: center; font-size: 14.5px; }

@media (max-width: 900px) {
  .tc { grid-template-columns: 1fr; }
  .tc-result { position: static; }
  .tc-issues { max-height: none; }
}
@media (max-width: 520px) { .tc-text { min-height: 240px; } .tc .tool-actions .btn { flex: 1 1 auto; } }
