.tool-hero--commands {
  background: radial-gradient(ellipse at 83% 53%, #3b6153 0%, #252f2d 47%, transparent 75%), #181d1a;
  border-color: #4e7065;
}

[data-commands] [hidden] { display: none; }
.command-tabs { display: flex; flex-wrap: wrap; gap: .48rem; margin-block: 1rem; }
.command-tabs a, .command-row button {
  align-items: center;
  background: #253631;
  border: 1px solid #496159;
  border-radius: .58rem;
  color: #deeee9;
  display: inline-flex;
  min-height: 44px;
  padding: .43rem .68rem;
  text-decoration: none;
}
.command-tabs a[aria-current], .command-tabs a:hover, .command-row button:hover {
  background: #344f43;
  border-color: #89ab98;
}

.command-panel {
  background: linear-gradient(145deg, #212c28 0%, #18231e 90%);
  border: 1px solid #43574d;
  border-radius: .8rem;
  min-width: 0;
  padding: clamp(.85rem, 3vw, 1.35rem);
}
.command-panel h2 { margin: 0 0 .8rem; }
.command-panel :is(ol, ul) { padding-inline-start: 1.35rem; }
.command-panel p, .command-how ol { color: #d0dbd4; }
.command-how, .command-builder, .command-references { margin-block: .9rem; }
.command-builder { border-color: #617c6d; }
.command-fields { display: flex; gap: .65rem; flex-wrap: wrap; }
.command-fields label { flex: 1 1 10rem; min-width: 0; }
.command-fields label:first-child { flex-grow: 2; }
.command-fields :is(input, select), .command-find input, .command-feedback textarea {
  background: #111b17;
  border: 1px solid #5a7065;
  border-radius: .5rem;
  color: #eef3ed;
  display: block;
  font: inherit;
  margin: .28rem 0 .45rem;
  min-height: 44px;
  min-width: 0;
  padding: .45rem .6rem;
  width: 100%;
}
.command-fields input::placeholder, .command-find input::placeholder { color: #a1b4aa; }
[data-commands] :where(a, input, select, button, summary, textarea):focus-visible {
  outline: 2px solid #b8e0c7;
  outline-offset: 2px;
}
.command-field-caption { margin-block: .45rem .25rem; font-size: .9rem; }
.command-note { color: #c6d4cc; font-size: .9rem; margin-bottom: 0; }
.command-builder details { margin-top: .6rem; }
.command-builder summary { cursor: pointer; max-width: fit-content; min-height: 44px; padding-block: .52rem; }
.command-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; align-items: start; }
.command-find { display: block; max-width: 36rem; margin-bottom: .9rem; }
.command-entry { scroll-margin-block-start: 6rem; }
.command-entry:target { border-color: #a4c7af; }
.command-entry h3 { font-size: clamp(1.3rem, 3vw, 1.6rem); margin: 0; }
.command-entry h3 a { color: #f2f5ed; text-decoration: none; }
.command-entry p { margin-block: .55rem .75rem; }
.command-row {
  align-items: center;
  background: #101814;
  border: 1px solid #394e41;
  border-radius: .55rem;
  display: grid;
  gap: .35rem;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-block: .38rem;
  padding: .32rem;
}
.command-row code {
  color: #d8e5ae;
  display: block;
  font-size: .87rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
  padding-inline: .32rem;
  user-select: all;
  white-space: pre-wrap;
}
.command-source { color: #afd4c0; display: inline-flex; align-items: center; min-height: 32px; font-size: .83rem; }
.command-feedback {
  align-items: center;
  background: #263c32;
  border: 1px solid #799e89;
  border-radius: .65rem;
  bottom: max(1rem, env(safe-area-inset-bottom));
  box-shadow: 0 .7rem 2rem #101612b3;
  color: #f1f7ed;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .25rem .6rem;
  left: 50%;
  max-width: min(450px, calc(100% - 1.2rem));
  padding: .45rem .65rem;
  position: fixed;
  transform: translateX(-50%);
  width: max-content;
  z-index: 20;
}
.command-feedback p { margin: 0; }
.command-feedback button { min-width: 44px; min-height: 44px; }
.command-feedback textarea { grid-column: 1 / -1; resize: vertical; }

@media (max-width: 720px) {
  .command-grid { grid-template-columns: minmax(0, 1fr); }
  .command-fields label:first-child { flex-basis: 100%; }
}

@media (prefers-reduced-motion: no-preference) {
  .command-tabs a, .command-row button, .command-entry { transition: border-color .2s ease, background-color .2s ease; }
}
