.tool-selection{margin:24px 0;color:var(--ink);min-width:0}
.tool-select-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:12px}
.tool-select-heading h3{font-size:15px;margin:0 0 4px;letter-spacing:-.25px}
.tool-select-heading p{font-size:12px;color:var(--muted);margin:0;line-height:1.45}
.tool-select-total{font-size:11px;font-weight:600;border:1px solid #cde4db;background:#eef6f1;border-radius:20px;padding:6px 9px;white-space:nowrap}
.tool-select-search{margin:0 0 12px}.tool-select-search input{margin:0;background:#fffdfa;font-size:12px;padding:11px 13px}
.tool-select-connections{display:grid;gap:9px}
.tool-select-connection{margin:0;border:1px solid var(--line);border-radius:13px;background:#fffdfa;overflow:hidden;color:var(--ink)}
.tool-select-connection>summary{list-style:none;display:flex;align-items:center;gap:10px;padding:15px 13px;min-height:76px;transition:background .15s}
.tool-select-connection>summary::-webkit-details-marker{display:none}.tool-select-connection>summary:hover{background:#f0f7f1}.tool-select-connection>summary:focus-visible{outline:2px solid var(--green);outline-offset:-3px;border-radius:12px}
.tool-select-icon{width:34px;height:36px;flex:none;display:flex;align-items:center;justify-content:center;border-radius:10px;background:#e7f2ed;color:var(--green)}
.tool-select-icon svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.tool-select-connection-copy{flex:1;min-width:0}.tool-select-connection-copy>strong{display:block;font-size:13px;font-weight:650;overflow-wrap:anywhere}.tool-select-connection-copy>small{font-size:11px;margin-top:3px;line-height:1.5}
.tool-select-manage{color:var(--green);font-size:11px;font-weight:600;display:flex;align-items:center;gap:8px;white-space:nowrap}.tool-select-manage span{display:inline-block;font-size:18px;line-height:1}.tool-select-connection[open] .tool-select-manage span{transform:rotate(180deg)}
.tool-select-connection-body{border-top:1px solid var(--line);padding:12px;background:#fafcf9}
.tool-select-scope{display:flex;justify-content:space-between;gap:8px;align-items:center}.tool-select-scope>label,.tool-select-category-heading>label{display:flex;align-items:center;gap:8px;font-size:11px;font-weight:600;margin:0;min-width:0}
.tool-selection input[type=checkbox]{width:15px;height:15px;min-width:15px;flex:none;accent-color:var(--green);margin:0;padding:0;cursor:pointer}.tool-selection input[type=checkbox]:disabled{cursor:not-allowed}
.tool-select-scope>div{display:flex;gap:5px;flex-wrap:wrap;justify-content:flex-end}.tool-select-scope button{border:1px solid var(--line);background:#fff;color:var(--green);border-radius:6px;font-size:10px;font-weight:550;padding:7px 8px;line-height:1.2}.tool-select-scope button:hover{background:#e7f2ed}
.tool-select-scope-hint{font-size:10px;line-height:1.5;color:var(--muted);margin:8px 0 14px}
.tool-select-category{border:0;border-top:1px solid var(--line);padding:0;margin:0;min-width:0}.tool-select-category-heading{display:flex;align-items:center;justify-content:space-between;padding:14px 2px 8px;gap:12px}.tool-select-category-heading strong{font-size:11px;font-weight:650}.tool-select-category-heading>small{font-size:10px;margin:0}
.tool-select-action{display:flex;gap:9px;align-items:flex-start;padding:10px 8px;margin:2px 0;border-radius:8px;font-size:11px;font-weight:400;cursor:pointer}.tool-select-action:hover{background:#edf5ee}.tool-select-action:has(input:checked){background:#edf5ee}.tool-select-action:has(input:focus-visible){outline:2px solid var(--green);outline-offset:1px}.tool-select-action>input{margin-top:2px!important}.tool-select-action-copy{min-width:0;flex:1}.tool-select-action-copy>strong{display:block;overflow-wrap:anywhere;font-size:11px;font-weight:600;line-height:1.6}.tool-select-action-copy>small{margin:2px 0 0;font-size:10px;line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-weight:400}.tool-select-permission{font-size:9px;color:#346b5a;background:#dfeee5;padding:3px 6px;white-space:nowrap;border-radius:5px;margin-top:2px;line-height:1.5}.tool-select-permission.can-write{color:#7b5319;background:#faf0d8}
.tool-select-unavailable{color:#8c5d21;font-size:10px}.tool-select-action.is-unavailable{background:#f7f4ed}.tool-select-action.is-unavailable .tool-select-permission{background:#ede8de;color:#756349}
.tool-select-footer{font-size:10px;margin:12px 0 0;line-height:1.6}.tool-select-feedback{font-size:11px;color:#9d3934;line-height:1.55;margin:10px 0 0}.tool-select-feedback:empty{display:none}
.tool-select-empty{padding:20px 15px;background:#f0f5ee;border:1px dashed #cfdfd4;border-radius:10px;text-align:center;font-size:12px;line-height:1.6;color:var(--muted);margin:0}
.tool-select-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.tool-connection-summaries{display:grid;gap:8px;margin:14px 0}.tool-connection-summary{display:flex;align-items:flex-start;gap:10px;border:1px solid var(--line);background:#f4f8f1;border-radius:10px;padding:12px}.tool-connection-summary>div{min-width:0}.tool-connection-summary strong{display:block;font-size:13px;overflow-wrap:anywhere}.tool-connection-summary small{font-size:11px;margin:3px 0 0}
@media(max-width:540px){.tool-select-heading{align-items:flex-start;gap:7px}.tool-select-total{font-size:10px;padding:5px 7px}.tool-select-connection>summary{padding:12px 10px;gap:8px}.tool-select-icon{width:29px;height:32px}.tool-select-manage{font-size:10px;gap:4px}.tool-select-connection-body{padding:10px}.tool-select-scope{flex-wrap:wrap}.tool-select-scope>div{margin-left:23px}.tool-select-action{padding:9px 5px;flex-wrap:wrap;gap:7px}.tool-select-action-copy{flex-basis:calc(100% - 24px)}.tool-select-permission{margin-left:22px;margin-top:-3px}.tool-select-connection-copy>small{font-size:10px}}
