.tool-hero--gather {
  margin-bottom: .9rem;
  background: radial-gradient(ellipse at 78% 58%,#5e6342,#253123 62%,#16221b);
}
.gather-tool {
  display:grid; grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr); gap:.9rem;
  --gather-border:#495845; --gather-muted:#b9c6b3; --gather-focus:#d8e7b2;
}
.gather-tool form,.gather-result {
  min-width:0; padding:clamp(.85rem,2.5vw,1.55rem); border:1px solid var(--gather-border);
  border-radius:12px; background:#1b281e;
}
.gather-result { align-self:start; scroll-margin-top:1rem; }
.gather-tool h2 { margin:.5rem 0 .85rem; font-size:clamp(1.35rem,2.25vw,1.95rem); }
.gather-tool p,.gather-node-list small { color:var(--gather-muted); }
.gather-options { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.15fr); gap:.75rem; align-items:end; }
.gather-options fieldset { border:0; margin:0; padding:0; min-width:0; }
.gather-options legend,.gather-options > label { font-size:.88rem; }
.gather-options > label,.gather-measure label { display:grid; gap:.3rem; }
.gather-options select,.gather-targets input,.gather-measure input {
  width:100%; min-width:0; min-height:44px; padding:.4rem .55rem; font:inherit; border-radius:8px;
  border:1px solid var(--gather-border); color:#ecf1e7; background:#131c15;
}
.gather-rates { display:grid; grid-template-columns:repeat(3,1fr); gap:.3rem; margin-top:.35rem; }
.gather-rates label { position:relative; cursor:pointer; }
.gather-rates input { position:absolute; width:1px; height:1px; opacity:0; }
.gather-rates span,.gather-actions button,.gather-links a {
  display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:.4rem .65rem;
  border:1px solid #566b51; border-radius:8px; font:inherit; color:#e1eddb; background:#273b2c;
}
.gather-rates span { width:100%; }
.gather-rates input:checked + span,.gather-links [aria-current="page"] { background:#435a35; border-color:#a8ba86; }
.gather-rates input:focus-visible + span { outline:2px solid var(--gather-focus); outline-offset:2px; }
.gather-actions, .gather-links { display:flex; gap:.5rem; flex-wrap:wrap; margin:.75rem 0 1rem; }
.gather-links a { font-size:.88rem; }
.gather-actions [hidden] { display:none; }
.gather-targets { width:100%; border-collapse:collapse; table-layout:fixed; }
.gather-targets th,.gather-targets td { padding:.4rem .25rem; text-align:left; border-top:1px solid var(--gather-border); }
.gather-targets th:first-child { width:44%; }
.gather-targets th a { display:flex; align-items:center; gap:.4rem; min-width:0; overflow-wrap:anywhere; }
.gather-targets img { width:30px; height:30px; flex-shrink:0; object-fit:contain; }
.gather-measure { border:1px solid var(--gather-border); border-radius:8px; padding:.7rem; margin:0 0 .8rem; }
.gather-measure summary { cursor:pointer; }
.gather-measure > div { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.55rem; }
.gather-measure label { font-size:.85rem; }
.gather-node-list,.gather-resource-list { padding:0; list-style:none; }
.gather-node-list li,.gather-resource-list li {
  display:grid; gap:.2rem .4rem; padding:.55rem; border:1px solid var(--gather-border);
  border-radius:8px; margin:0 0 .38rem; background:#202f23;
}
.gather-node-list li { grid-template-columns:minmax(0,1fr) auto; }
.gather-node-list small { grid-column:1; }
.gather-node-list strong { grid-column:2; grid-row:1 / span 2; align-self:center; font-size:1.32rem; }
.gather-resource-list span { font-size:.87rem; }
.gather-resource-list a { color:#d5e4b1; text-decoration:underline; text-underline-offset:3px; padding:.25rem 0; }
.gather-tool input[aria-invalid] { border-color:#f1a18c; }
@media (max-width: 850px) { .gather-tool { grid-template-columns:minmax(0,1fr); } }
@media (max-width: 440px) {
  .battery-main:has(.gather-tool) .breadcrumb { margin-bottom:1.15rem; }
  .tool-hero--gather .tool-hero-items { display:none; }
  .gather-links:has(+ .gather-tool) { flex-wrap:nowrap; overflow-x:auto; padding-block:3px; }
  .gather-links:has(+ .gather-tool) a { white-space:nowrap; }
  .gather-options { grid-template-columns:minmax(0,1fr); }
  .gather-targets th,.gather-targets td { font-size:.82rem; }
  .gather-targets img { width:24px; height:24px; }
}
