/* 도구 화면 공용(2026-10-31 개발자3 - 글자 수 세기·영어 점수 기준 비교). 글꼴은 사이트 공용 Pretendard 조각 css. 가독성: 본문 15px 이상. */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css');
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
    font-family: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
    background: #F6F7FB; color: #1A1D29; -webkit-font-smoothing: antialiased; line-height: 1.6;
}
a { color: #3B5BDB; }
.hidden { display: none !important; }
.tl { max-width: 760px; margin: 0 auto; padding: 0 16px 48px; }
.tl-top { padding: 14px 0 0; font-size: 14px; }
.tl-top a { color: #6B7085; text-decoration: none; font-weight: 700; }
.tl-head { padding: 22px 0 18px; }
.tl-eyebrow { font-size: 13px; font-weight: 800; color: #3B5BDB; letter-spacing: .02em; }
.tl-title { font-size: 28px; font-weight: 800; letter-spacing: -.02em; line-height: 1.3; margin-top: 4px; }
.tl-sub { font-size: 15px; color: #4A4F63; margin-top: 8px; word-break: keep-all; }
.tl-card { background: #fff; border: 1px solid #E3E6EF; border-radius: 18px; padding: 18px; margin-bottom: 16px; }
.tl-card h2 { font-size: 18px; font-weight: 800; letter-spacing: -.01em; margin-bottom: 10px; }
.tl-card h3 { font-size: 16px; font-weight: 800; margin: 14px 0 6px; }
.tl-card p, .tl-card li { font-size: 15px; color: #33384A; word-break: keep-all; }
.tl-card ul, .tl-card ol { padding-left: 20px; }
.tl-card li + li { margin-top: 4px; }
.tl-note { font-size: 13.5px; color: #6B7085; margin-top: 8px; word-break: keep-all; }
.tl-privacy { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; font-weight: 700; color: #2B8A3E; background: #EBFBEE; border-radius: 12px; padding: 10px 12px; margin-bottom: 12px; }
.tl-btn { font-family: inherit; font-size: 15px; font-weight: 800; border: 1px solid #CED4E5; background: #fff; color: #1A1D29; border-radius: 12px; padding: 10px 14px; cursor: pointer; }
.tl-btn.primary { background: #3B5BDB; border-color: #3B5BDB; color: #fff; }
.tl-btn:active { transform: scale(.98); }
.tl-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tl-links a { display: block; background: #F3F5FC; border-radius: 12px; padding: 12px; text-decoration: none; color: #1A1D29; font-size: 15px; font-weight: 800; }
.tl-links a span { display: block; font-size: 13px; font-weight: 600; color: #6B7085; margin-top: 2px; }
.tl-foot { text-align: center; font-size: 13px; color: #8A8FA3; margin-top: 24px; }
@media (max-width: 420px) { .tl-title { font-size: 24px; } .tl-links { grid-template-columns: 1fr; } }

/* 글자 수 세기 */
.cc-input { width: 100%; min-height: 220px; resize: vertical; font-family: inherit; font-size: 16px; line-height: 1.7; color: #1A1D29;
    border: 1.5px solid #CED4E5; border-radius: 14px; padding: 14px; background: #fff; }
.cc-input:focus { outline: none; border-color: #3B5BDB; }
.cc-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.cc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.cc-stat { background: #F3F5FC; border-radius: 12px; padding: 12px 8px; text-align: center; }
.cc-stat .k { font-size: 13px; font-weight: 700; color: #4A4F63; word-break: keep-all; }
.cc-stat .v { font-size: 24px; font-weight: 800; color: #1A1D29; margin-top: 2px; font-variant-numeric: tabular-nums; }
.cc-stat.main { background: #E7ECFF; }
.cc-stat.main .v { color: #3B5BDB; }
@media (max-width: 420px) { .cc-stats { grid-template-columns: repeat(2, 1fr); } }
.cc-limit { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 14px; font-size: 15px; }
.cc-limit input, .cc-limit select { font-family: inherit; font-size: 15px; border: 1px solid #CED4E5; border-radius: 10px; padding: 8px 10px; background: #fff; }
.cc-limit input { width: 110px; }
.cc-bar { height: 10px; background: #E9ECF5; border-radius: 99px; overflow: hidden; margin-top: 10px; }
.cc-bar i { display: block; height: 100%; width: 0; background: #3B5BDB; transition: width .15s; }
.cc-bar.over i { background: #E03131; }
.cc-left { font-size: 15px; font-weight: 800; margin-top: 6px; }
.cc-left.over { color: #E03131; }
.cc-opt { display: flex; gap: 6px; align-items: center; font-size: 14px; color: #4A4F63; margin-top: 10px; }

/* 영어 점수 기준 비교 */
.es-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 420px) { .es-grid { grid-template-columns: 1fr; } }
.es-field label { display: block; font-size: 14px; font-weight: 800; color: #33384A; margin-bottom: 4px; }
.es-field input { width: 100%; font-family: inherit; font-size: 17px; border: 1.5px solid #CED4E5; border-radius: 12px; padding: 10px 12px; background: #fff; }
.es-field input:focus { outline: none; border-color: #3B5BDB; }
.es-field small { display: block; font-size: 12.5px; color: #8A8FA3; margin-top: 2px; }
.es-err { color: #E03131; font-size: 13px; font-weight: 700; }
.es-group { font-size: 15px; font-weight: 800; color: #4A4F63; margin: 18px 0 8px; }
.es-row { border: 1px solid #E3E6EF; border-radius: 14px; padding: 12px 14px; margin-bottom: 8px; background: #fff; }
.es-row.pass { border-color: #8CE99A; background: #F4FCF5; }
.es-row-head { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.es-name { font-size: 16px; font-weight: 800; word-break: keep-all; }
.es-badge { flex-shrink: 0; font-size: 13px; font-weight: 800; border-radius: 99px; padding: 4px 10px; background: #F1F3F5; color: #6B7085; }
.es-row.pass .es-badge { background: #2B8A3E; color: #fff; }
.es-crit { font-size: 14px; color: #4A4F63; margin-top: 6px; word-break: keep-all; }
.es-crit b.ok { color: #2B8A3E; }
.es-src { font-size: 12.5px; color: #8A8FA3; margin-top: 4px; word-break: keep-all; }
.es-src a { color: #8A8FA3; }
.es-table-wrap { overflow-x: auto; }
.es-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
.es-table th, .es-table td { border: 1px solid #CED4E5; padding: 8px 6px; text-align: center; word-break: keep-all; }
.es-table thead th { background: #E7ECFF; font-weight: 800; border-bottom: 2px solid #91A7FF; }
.es-table tbody tr:nth-child(even) td { background: #F3F5FC; }
.es-table td:first-child { text-align: left; font-weight: 700; }
