/* 도구 쪽 공통 모양 (T-04-114, README §8) — site.css의 색 토큰만 씀. 외부 글꼴·주소 없음, 움직임(애니메이션·transition) 없음.
   뒤 세션이 쓰는 클래스: tool tool-title tool-field tool-label tool-hint tool-input tool-choices tool-choice tool-btn tool-btn-quiet tool-actions tool-result tool-error tool-note */
.tool { background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); padding: 1.1rem; margin: 1.2rem 0; }
.tool-title { margin: 0 0 0.6rem; font-size: 1.15em; font-weight: 700; line-height: 1.4; }
.tool-field { display: block; margin: 0 0 1rem; border: 0; padding: 0; min-width: 0; }
.tool-label { display: block; font-weight: 700; margin-bottom: 0.25rem; padding: 0; }
.tool-hint { display: block; color: var(--muted); font-size: 0.9em; line-height: 1.5; margin: 0 0 0.35rem; }
.tool-input { display: block; width: 100%; min-height: 44px; padding: 0.5rem 0.75rem; font: inherit; font-size: max(16px, 1em); color: var(--text); background: var(--bg); border: 2px solid var(--line); border-radius: 10px; }
textarea.tool-input { min-height: 7rem; line-height: 1.5; resize: vertical; }
.tool-input:focus-visible, .tool-btn:focus-visible, .tool-btn-quiet:focus-visible, .tool-choice input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.tool-choices { display: grid; gap: 0.4rem; margin: 0; padding: 0; border: 0; min-width: 0; }
.tool-choice { display: flex; align-items: center; gap: 0.6rem; min-height: 44px; padding: 0.3rem 0.5rem; border: 2px solid var(--line); border-radius: 10px; background: var(--bg); cursor: pointer; }
.tool-choice input { width: 24px; height: 24px; flex: none; margin: 0; accent-color: var(--accent); }
.tool-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1rem 0 0; }
.tool-btn, .tool-btn-quiet { min-height: 44px; min-width: 44px; padding: 0.55rem 1.1rem; font: inherit; font-weight: 700; border-radius: 10px; cursor: pointer; }
.tool-btn { background: var(--accent); color: var(--on-accent); border: 2px solid var(--accent); }
.tool-btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.tool-btn-quiet { background: var(--surface); color: var(--text); border: 2px solid var(--accent); }
.tool-btn-quiet:hover { background: var(--card); }
.tool-btn:disabled, .tool-btn-quiet:disabled { opacity: 0.6; cursor: not-allowed; }
.tool-result { margin: 1rem 0 0; padding: 0.8rem 1rem; background: var(--card); border: 2px solid var(--line); border-radius: 10px; }
.tool-result:empty { display: none; }
.tool-error { margin: 1rem 0 0; padding: 0.7rem 1rem; background: var(--warn-bg); border: 2px solid var(--warn-line); border-radius: 10px; font-weight: 600; }
.tool-error:empty { display: none; }
.tool-note { margin: 0.8rem 0 0; color: var(--muted); font-size: 0.9em; line-height: 1.5; }
@media (forced-colors: active) { .tool, .tool-input, .tool-choice, .tool-result, .tool-error, .tool-btn, .tool-btn-quiet { border-color: CanvasText; } }
