/* 무료 도구 페이지(/tools/*, /en/tools/*) — 가이드 페이지 스타일 위에 입력·결과 칸만 더한다. */
.tool-main { max-width: 820px; margin-inline: auto; padding-bottom: 64px; }
.tool-hero { padding-block: 26px 22px; }
.tool-hero h1 { font-size: clamp(30px, 3.6vw, 44px); margin-block: 14px 16px; line-height: 1.3; }
.tool-hero p { color: var(--muted); font-size: 17px; line-height: 1.85; }
.tool-card { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 24px; }
.tool-fields { display: flex; flex-wrap: wrap; gap: 14px; align-items: end; }
.tool-fields label { display: grid; gap: 6px; font-size: 13px; font-weight: 700; color: var(--muted); }
.tool-fields .grow { flex: 1 1 260px; }
.tool-card input { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); color: var(--ink); font: inherit; font-size: 16px; }
.tool-card input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.tool-card .short-input { width: 96px; }
.tool-card .button { min-height: 48px; }
.tool-presets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; font-size: 13px; color: var(--muted); align-items: center; }
.tool-presets button, .tool-chips button { min-height: 34px; padding: 5px 13px; border: 1px solid var(--line); border-radius: 30px; background: var(--surface); color: var(--ink); font: inherit; font-size: 13px; cursor: pointer; }
.tool-presets button:hover, .tool-chips button:hover { border-color: var(--accent); color: var(--accent); }
.tool-result { margin-top: 20px; }
.tool-result:empty { display: none; }
.tool-big { font-size: clamp(30px, 4vw, 40px); font-weight: 900; line-height: 1.2; }
.tool-sub { margin-top: 6px; color: var(--muted); font-size: 14px; }
.tool-error { color: #b91c1c; font-size: 14px; }
.tool-spin { width: 28px; height: 28px; border: 3px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: tool-spin .8s linear infinite; }
@keyframes tool-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .tool-spin { animation-duration: 2.4s; } }
:root[data-theme="dark"] .tool-error { color: #fca5a5; }
.tool-scores { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tool-score { border: 1px solid var(--line); border-radius: 9px; padding: 14px 16px; }
.tool-score b { display: block; font-size: 13px; color: var(--muted); }
.tool-score strong { font-size: 30px; }
.tool-score span { margin-left: 6px; font-size: 13px; font-weight: 700; }
.tool-meter { height: 6px; margin-top: 8px; border-radius: 3px; background: var(--tint); overflow: hidden; }
.tool-meter i { display: block; height: 100%; background: var(--accent); }
.tone-good { color: #15803d; } .tone-mid { color: #b45309; } .tone-bad { color: #b91c1c; }
:root[data-theme="dark"] .tone-good { color: #86efac; } :root[data-theme="dark"] .tone-mid { color: #fcd34d; } :root[data-theme="dark"] .tone-bad { color: #fca5a5; }
.tool-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.tool-next { margin-top: 20px; padding: 18px 20px; border-radius: 9px; background: var(--accent-soft); border-left: 3px solid var(--accent); font-size: 15px; line-height: 1.8; }
.tool-next strong { display: block; margin-bottom: 4px; }
.tool-next a { text-decoration: underline; text-underline-offset: 4px; }
.tool-main .article-body { margin-top: 40px; }
.tool-main .article-body tr.is-current > * { background: var(--accent-soft); font-weight: 800; }
@media (max-width: 760px) {
  .tool-card { padding: 18px; }
  .tool-scores { gap: 8px; }
  .tool-score { padding: 12px; }
  .tool-score strong { font-size: 24px; }
}
