/* 무료 웹 도구 화면 — 홈페이지 색(흰 바탕 + 노랑, 보라는 선택 상태만)을 그대로 쓴다. */
.tool-main { padding-block: 34px 70px; }
.tool-intro { max-width: 760px; margin-bottom: 26px; }
.tool-intro h1 { margin: 0 0 12px; font-size: clamp(30px, 4.6vw, 48px); line-height: 1.2; letter-spacing: -.02em; }
.tool-intro h1 span { box-shadow: inset 0 -.32em 0 var(--lemon); }
.tool-lede { margin: 0 0 10px; color: var(--muted); font-size: 16px; line-height: 1.7; }
.tool-privacy { display: inline-block; margin: 0; padding: 7px 12px; border-radius: 12px; background: var(--surface); color: var(--muted); font-size: 13px; font-weight: 700; }
.tool-nav { display: flex; align-items: center; }

.tool-grid { display: grid; grid-template-columns: 1fr 1fr 1.15fr; gap: 16px; align-items: start; }
.tool-card { min-width: 0; padding: 18px; border: 1px solid var(--line-strong); border-radius: var(--radius-card); background: var(--white); }
.tool-card h2 { display: flex; gap: 9px; align-items: center; margin: 0 0 14px; font-size: 17px; }
.tool-card h2 b { display: inline-grid; width: 26px; height: 26px; place-items: center; border-radius: 50%; background: var(--lemon); font-size: 13px; }

.tool-drop { position: relative; display: grid; min-height: 230px; place-items: center; overflow: hidden; border: 2px dashed var(--line-strong); border-radius: 18px; background: var(--surface); cursor: pointer; text-align: center; }
.tool-drop.is-over { border-color: var(--point); background: #f1f0ff; }
.tool-drop img { width: 100%; height: 230px; object-fit: contain; background: repeating-conic-gradient(#eee 0 25%, #fff 0 50%) 0 0 / 16px 16px; }
.tool-drop__text { display: grid; gap: 6px; padding: 16px; }
.tool-drop__text strong { font-size: 14px; }
.tool-drop__text small { color: var(--faint); font-size: 12px; line-height: 1.5; }
.tool-drop.has-image .tool-drop__text { position: absolute; right: 10px; bottom: 10px; padding: 6px 10px; border-radius: 10px; background: rgb(255 255 255 / 92%); }
.tool-drop:focus-within { outline: 3px solid var(--point); outline-offset: 2px; }

.tool-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
.tool-label { color: var(--muted); font-size: 12px; font-weight: 800; }
.tool-seg { display: inline-flex; gap: 4px; padding: 3px; border-radius: 12px; background: var(--surface); }
.tool-seg button, .tool-motions button { border: 1px solid transparent; font: inherit; color: inherit; cursor: pointer; }
.tool-seg button { padding: 7px 10px; border-radius: 9px; background: transparent; font-size: 12px; font-weight: 700; }
.tool-seg button[aria-checked="true"] { border-color: var(--point); background: var(--white); color: var(--point); }

.tool-motions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.tool-motions button { display: grid; gap: 3px; padding: 11px; border-color: var(--line-strong); border-radius: 14px; background: var(--white); text-align: left; }
.tool-motions button strong { font-size: 14px; }
.tool-motions button small { color: var(--faint); font-size: 11px; line-height: 1.4; }
.tool-motions button[aria-checked="true"] { border: 2px solid var(--point); padding: 10px; background: #f6f5ff; }
.tool-slider { display: grid; grid-template-columns: 56px 1fr; gap: 8px; align-items: center; margin-top: 8px; color: var(--muted); font-size: 12px; font-weight: 800; }
.tool-slider input { width: 100%; accent-color: var(--point); }

.tool-preview { position: relative; display: grid; aspect-ratio: 1; place-items: center; overflow: hidden; border-radius: 18px; background: repeating-conic-gradient(#eee 0 25%, #fff 0 50%) 0 0 / 18px 18px; color: var(--faint); font-size: 13px; text-align: center; }
.tool-preview img { width: 100%; height: 100%; object-fit: contain; image-rendering: auto; }
.tool-preview.is-busy::after { position: absolute; top: 10px; right: 10px; width: 18px; height: 18px; border: 3px solid var(--lemon); border-top-color: transparent; border-radius: 50%; animation: tool-spin .8s linear infinite; content: ""; }
@keyframes tool-spin { to { transform: rotate(360deg); } }
.tool-size { margin: 8px 0 12px; color: var(--faint); font-size: 12px; text-align: center; }
.tool-actions { display: grid; gap: 8px; }
.tool-actions .button { width: 100%; }
.button:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.button--ghost { border: 1px solid var(--line-strong); background: var(--white); }
.button--ghost:hover { background: var(--surface); }
.tool-error { margin: 10px 0 0; color: #c0392b; font-size: 13px; font-weight: 700; }

.tool-more { margin-top: 30px; padding: 24px; border-radius: var(--radius-card); background: var(--lemon-soft); }
.tool-more h2 { margin: 0 0 10px; font-size: 20px; }
.tool-more ul { margin: 0 0 16px; padding-left: 18px; line-height: 1.9; }
.tool-note { margin: 14px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.tool-engine { position: fixed; left: -10000px; top: 0; width: 360px; height: 360px; border: 0; opacity: 0; pointer-events: none; }

@media (max-width: 980px) { .tool-grid { grid-template-columns: 1fr 1fr; } .tool-card--preview { grid-column: 1 / -1; } .tool-preview { max-width: 420px; margin-inline: auto; width: 100%; } }
@media (max-width: 640px) { .tool-grid { grid-template-columns: 1fr; } .tool-main { padding-top: 22px; } }
@media (max-width: 640px) { .tool-page .brand-label { display: none; } .tool-nav .lang-switch a { padding: 6px 5px; font-size: 11px; } }
