/* B02: compact action selector. Owns these components; no stage overrides. */
.tools-section{padding-block:48px}
.tools-section .section-head{margin-bottom:24px;align-items:center}
.search{display:flex;align-items:center;gap:10px;width:320px;min-height:48px;padding:0 5px 0 15px;border:1px solid var(--dark-line);border-radius:12px;background:rgba(255,255,255,.025);flex:none}
.search>svg{width:19px;height:19px;fill:none;stroke:var(--dark-muted);stroke-width:1.6;flex:none}
.search input{font:inherit;font-size:14px;width:100%;min-width:0;border:0;padding:12px 0;background:none;color:var(--white);outline:none}
.search input::placeholder{color:var(--dark-muted);opacity:1}
.search input::-webkit-search-cancel-button{display:none}
.search:focus-within{outline:2px solid var(--blue);outline-offset:3px}
.search input:focus-visible{outline:none}
.search button{display:grid;place-items:center;background:none;color:var(--dark-muted);width:44px;min-width:44px;height:44px;border-radius:8px;font-size:23px}
.search button:hover{color:var(--white);background:rgba(255,255,255,.06)}
.tools-toolbar{display:flex;align-items:start;gap:16px;margin-bottom:20px;min-height:44px}
.category-list{display:flex;flex-wrap:wrap;gap:6px;flex:1;min-width:0}
.category-list button{display:inline-flex;align-items:center;gap:8px;white-space:nowrap;min-height:44px;padding:9px 13px;background:none;border:1px solid transparent;border-radius:10px;color:var(--dark-muted);font-size:14px;line-height:1.25;transition:background .16s,color .16s,border-color .16s}
.category-list button:hover{color:var(--white);border-color:var(--dark-line)}
.category-list button[aria-pressed=true]{background:var(--white);border-color:var(--white);color:var(--ink)}
.category-list svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;flex:none}
.category-count{font-size:11px;opacity:.7;font-variant-numeric:tabular-nums;min-width:10px;text-align:right}
#reset-filters{font-size:12px;color:var(--dark-muted);flex:none;padding-inline:6px}
.tool-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.tool-card{position:relative;display:grid;grid-template-columns:72px 1fr;align-items:center;gap:14px;min-height:132px;height:100%;width:100%;padding:16px;text-align:left;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.035);border-radius:18px;transition:background .18s,border-color .18s}
.tool-card:hover{background:rgba(112,91,255,.09);border-color:rgba(112,91,255,.4)}
.tool-card:focus-visible{outline-offset:3px}
.tool-thumb{width:72px;height:80px;display:grid;place-items:center;border-radius:12px;overflow:hidden;background:rgba(112,91,255,.08)}
.tool-thumb img{height:100%;width:100%;object-fit:cover;object-position:45% 25%}
.tool-thumb svg{width:54px;height:54px;stroke:var(--white);stroke-width:1.4;fill:none;stroke-linecap:round;stroke-linejoin:round}
.tool-thumb svg .accent{stroke:var(--violet)}
.tool-thumb svg .soft{stroke:rgba(255,255,255,.38)}
.tool-content{min-width:0;padding-right:3px}
.tool-content strong{display:block;font-size:16px;line-height:1.3;font-weight:500;letter-spacing:-.02em}
.tool-content small{display:block;font-size:13px;line-height:1.4;color:var(--dark-muted);margin-top:7px}
.tool-arrow{position:absolute;right:12px;top:8px;font-size:13px;color:var(--dark-muted);opacity:0;transition:opacity .18s}
.tool-card:hover .tool-arrow,.tool-card:focus-visible .tool-arrow{opacity:1}
.tools-bottom{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:52px;margin-top:12px;font-size:13px}
.tools-bottom .text-button{border:1px solid var(--dark-line);padding:10px 16px;border-radius:10px;min-height:44px;font-size:13px;white-space:nowrap}
.expand-count{display:inline-grid;place-items:center;min-width:26px;height:24px;padding-inline:5px;background:rgba(112,91,255,.16);color:var(--white);border-radius:6px;font-size:12px;font-variant-numeric:tabular-nums}
.tools-empty{padding:32px 20px;text-align:center;border:1px solid var(--dark-line);border-radius:14px;background:rgba(255,255,255,.025)}
.tools-empty>strong{font-size:20px;font-weight:500;letter-spacing:-.02em}
.tools-empty p{font-size:14px;color:var(--dark-muted);margin:10px auto 20px;max-width:400px;overflow-wrap:anywhere}
.tools-empty .button{font-size:14px;min-height:44px}
@media(max-width:1190px){
  .tool-card{grid-template-columns:60px 1fr;gap:12px;padding:14px;min-height:132px}.tool-thumb{width:60px;height:72px}.tool-thumb svg{width:48px;height:48px}.tool-content strong{font-size:15px}.tool-content small{font-size:12px}
  .category-list button{gap:7px;padding-inline:10px}.category-list svg{display:none}.search{width:290px}
}
@media(max-width:1100px){.tool-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:980px){
  .tool-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.tool-card{grid-template-columns:72px 1fr;min-height:114px;padding:16px}.tool-thumb{width:72px;height:80px}.tool-content strong{font-size:17px}.tool-content small{font-size:13px}.search{width:260px}
  .tools-section .section-head{align-items:end}.tools-section h2{font-size:36px}
}
@media(max-width:680px){
  .tools-section{padding-top:36px;padding-bottom:28px}.tools-section h2{font-size:32px}.tools-section .section-head{margin-bottom:18px}
  .search{width:100%;margin-top:20px}.search input{font-size:16px}.tools-toolbar{flex-wrap:wrap;gap:4px;margin-bottom:18px}.category-list{flex-basis:100%;gap:4px}.category-list button{padding-inline:11px;font-size:13px;min-height:44px}.category-count{display:none}
  .category-list button[data-category=all] .category-count{display:inline}
  #reset-filters{margin-left:auto;min-height:44px;padding:6px}
  .tool-grid{grid-template-columns:1fr;gap:8px}.tool-card{grid-template-columns:60px 1fr 16px;gap:12px;min-height:88px;padding:12px;border-radius:12px}.tool-thumb{width:60px;height:64px;border-radius:8px}.tool-thumb svg{width:46px;height:46px}.tool-content{padding:0}.tool-content strong{font-size:16px;line-height:1.3}.tool-content small{font-size:12px;margin-top:5px;line-height:1.4}.tool-arrow{position:static;opacity:1;align-self:center;font-size:15px}
  .tools-bottom{font-size:12px;gap:10px;margin-top:16px;flex-wrap:wrap}.tools-bottom .text-button{font-size:12px;padding-inline:13px}
  .tools-empty{padding:28px 16px}.tools-empty>strong{font-size:18px}
}
@media(prefers-reduced-motion:reduce){.tool-card,.tool-arrow,.category-list button{transition:none}}
