/* web/hud/builds.css
   The Builds strip (web/hud/builds.js): a chip per build, a tap putting it on, and its title
   bar holding the build in use with Save and Save as new. */

.bd-chips { display: flex; flex-wrap: wrap; gap: .35em; margin: .25em 0 .4em; }
.bd-chip {
  border: 1px solid var(--pn-hair); background: none; color: var(--pn-soft);
  border-radius: 6px; padding: .15em .55em; font: inherit; cursor: pointer;
  display: inline-flex; gap: .4em; align-items: baseline;
}
.bd-chip.on {
  border-color: var(--tc); color: var(--pn-text);
  background: color-mix(in srgb, var(--tc) 10%, transparent);
}
.bd-chip:hover:not(:disabled) { border-color: var(--tc); }
.bd-chip:disabled { opacity: .5; cursor: default; }
.bd-chip:focus-visible, .bd-btn:focus-visible { outline: 1px solid #7fb2ff; outline-offset: 1px; }

.bd-refusal { margin: .3em 0 0; font-size: .85em; color: var(--warn); }
.bd-btn {
  border: 1px solid var(--pn-hair); background: none; color: var(--pn-text); border-radius: 5px;
  padding: .1em .6em; font: inherit; font-size: .88em; cursor: pointer;
}
.bd-btn:hover:not(:disabled) { border-color: var(--tc); }
.bd-btn.go { border-color: color-mix(in srgb, var(--tc) 60%, var(--pn-hair)); color: var(--tc); }
.bd-btn:disabled { opacity: .45; cursor: default; }
.bd-form { display: flex; gap: .35em; margin: .35em 0; }
.bd-form input {
  flex: 1; min-width: 0; font: inherit; color: var(--pn-text); background: none;
  border: 1px solid var(--pn-hair); border-radius: 5px; padding: .1em .4em;
}

/* ---- its title bar: the build in use ---------------------------------------- */
/* Its title keeps its words; the build's name is what gives way on a narrow column. */
.dkpanel[data-panel="builds"] .dkname { flex: none; }
.dkpanel[data-panel="builds"] .dkcontrol { flex: 0 1 auto; min-width: 0; }
.bd-head {
  display: inline-flex; flex-wrap: wrap; justify-content: flex-end; gap: .25em .4em;
  align-items: center; min-width: 0; font-size: 12px; font-weight: 600;
}
.bd-current { color: var(--tc); min-width: 3em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bd-head .bd-btn, .bd-changed { flex: none; }
.bd-changed { font-weight: 400; color: var(--warn); }
.bd-none { color: var(--pn-label); font-weight: 400; }
.bd-head .bd-btn { font-size: 11.5px; padding: 0 .5em; }
