.tool-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: clamp(1rem, 3vw, 2rem); }
.tool-form { display: grid; gap: .9rem; max-width: 34rem; }
.tool-form label, .tool-overlay-controls label { display: grid; gap: .35rem; font-weight: 650; }
.tool-form input, .tool-form select, .tool-form textarea, .tool-overlay-controls input { font: inherit; max-width: 100%; min-width: 0; color: var(--ink); }
.tool-form :is(input,select,textarea) { min-height: 44px; border: 1px solid #aa9c87; border-radius: 6px; background: white; padding: .5rem .65rem; }
.tool-form button { justify-self: start; }
.tool-output:not(:empty) { padding: .75rem; background: #efe6d4; border-left: 3px solid var(--copper); margin-top: .6rem; }
.tool-check-groups, .tool-overlay-controls { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: .85rem; }
.tool-check-groups fieldset { display: grid; min-width: 0; align-content: start; gap: .7rem; border: 1px solid var(--line); border-radius: 8px; }
.tool-check-groups legend { font-weight: 700; }
.tool-check-groups input { accent-color: var(--jade); width: 1.2rem; height: 1.2rem; vertical-align: middle; }
.tool-plan-board { position: relative; margin-block: 1rem; aspect-ratio: 5 / 3; max-height: 65vh; overflow: hidden; border-radius: 10px; border: 1px solid var(--line); background: var(--paper); }
.tool-plan-board img { width: 100%; height: 100%; object-fit: contain; }
.tool-plan-grid { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 74%; aspect-ratio: 5 / 3; display: grid; grid-template: repeat(3,1fr) / repeat(3,1fr); touch-action: none; cursor: grab; border: 2px solid var(--jade); }
.tool-plan-grid span { display: grid; place-content: center; text-align: center; border: 1px solid var(--jade); background: #fffcf6ba; }
.tool-plan-grid small { font-size: .72rem; }
.tool-plan-grid strong { font: 600 clamp(.9rem, 2vw, 1.6rem) Georgia, serif; }
